Ver Fonte

add:增加编辑、删除等功能

zlong há 1 ano atrás
pai
commit
fdf572d3ef
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      src/pages/carousal/components/CarousalDialog.vue

+ 2 - 0
src/pages/carousal/components/CarousalDialog.vue

@@ -1,6 +1,7 @@
 <template>
   <t-dialog
     width="70%"
+    v-model:visible="visible"
     :header="header"
     :confirmBtn="confirmBtn"
     :closeOnOverlayClick="false"
@@ -45,6 +46,7 @@ const formType = computed(() => `${props.isEdit ? 'update' : 'add'}`)
 const confirmBtn = computed(() => (props.isEdit ? '保存' : '确定'))
 const carousalData: FormProps['data'] = ref({})
 const imgUrl = ref({})
+const visible = ref(false)
 const rules = computed(() => {
   const commonRules = {
     imageUrl: [