component.hbs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div>
  3. <vxe-modal
  4. v-model="visible"
  5. :width="width"
  6. :height="height"
  7. :title="title"
  8. :loading="loading"
  9. show-footer
  10. remember
  11. resize
  12. ref="xModal"
  13. @close="closeModal"
  14. >
  15. <div>
  16. {{ name }}
  17. </div>
  18. <template #footer>
  19. <el-button type="primary" size="mini" @click="confirm()">
  20. 确认
  21. </el-button>
  22. <el-button size="mini" @click="visible = false">
  23. 取消
  24. </el-button>
  25. </template>
  26. </vxe-modal>
  27. </div>
  28. </template>
  29. <script>
  30. export default {
  31. name: '{{ properCase name }}',
  32. i18n: {
  33. messages: {
  34. cn: {
  35. },
  36. tw: {
  37. },
  38. en: {
  39. }
  40. }
  41. },
  42. components: {
  43. },
  44. props: {
  45. title: {
  46. required: false,
  47. type: String,
  48. default() {
  49. return ''
  50. }
  51. },
  52. width: {
  53. required: false,
  54. type: String,
  55. default: '1100'
  56. },
  57. height: {
  58. required: false,
  59. type: String,
  60. default: '600'
  61. }
  62. },
  63. data() {
  64. return {
  65. visible: false,
  66. loading: false
  67. }
  68. },
  69. created() {
  70. },
  71. methods: {
  72. openModal() {
  73. this.visible = true
  74. },
  75. closeModal() {
  76. this.visible = false
  77. },
  78. confirm() {
  79. }
  80. }
  81. }
  82. </script>
  83. <style lang="scss" scoped>
  84. </style>