f
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
// 分类选项(包含子分类)
|
// 分类选项(包含子分类)
|
||||||
|
|||||||
Reference in New Issue
Block a user