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

@@ -39,9 +39,9 @@ const props = defineProps<{
headerTitle?: string
category: Category | null
}>()
const form = ref<FormInstanceFunctions | null>(null)
const header = computed(() => `${props.category ? '编辑' : '创建'}${props.headerTitle || ''}`)
const confirmBtn = computed(() => (props.category ? '保存' : '确定'))
const formRef = ref<FormInstanceFunctions | null>(null)
const headerText = computed(() => `${props.category ? '编辑' : '创建'}${props.headerTitle || ''}`)
const confirmBtnText = computed(() => (props.category ? '保存' : '确定'))
const categoryData: FormProps['data'] = reactive({ name: '', order: 1 })
const rules: FormProps['rules'] = {
name: [