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