refactor: 轮播图模态框

This commit is contained in:
ilhamtahir committed 2024-12-04 21:00:21 +08:00
1 parent 0558261ba7
commit 73fb136b91
5 files changed
+45 -38

No files matched your search

@@ -60,9 +60,9 @@ const props = defineProps<{
article?: Article | {}
categoryList: Category[] | []
}>()
const form = ref<FormInstanceFunctions | null>(null)
const header = computed(() => `${props.isEdit ? '编辑' : '创建'}${props.headerTitle || ''}`)
const confirmBtn = computed(() => (props.isEdit ? '保存' : '确定'))
const formRef = ref<FormInstanceFunctions | null>(null)
const headerText = computed(() => `${props.isEdit ? '编辑' : '创建'}${props.headerTitle || ''}`)
const confirmBtnText = computed(() => (props.isEdit ? '保存' : '确定'))
const articleData: FormProps['data'] = reactive({ categoryName: '' })
const popupVisible = ref(false)