This commit is contained in:
Mrx
2026-01-28 14:11:33 +08:00
parent 80ea79edc3
commit a02e27f270

View File

@@ -380,13 +380,13 @@ const props = defineProps({
// 子分类数据 // 子分类数据
const subCategories = ref([]) const subCategories = ref([])
// 级联选择器配置 // 级联选择器配置checkStrictly: true 允许只选一级分类,不强制选子类)
const cascaderProps = { const cascaderProps = {
value: 'id', value: 'id',
label: 'name', label: 'name',
children: 'children', children: 'children',
emitPath: false, emitPath: false,
checkStrictly: false checkStrictly: true
} }
// 分类选项(包含子分类) // 分类选项(包含子分类)