mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-17 18:51:33 +08:00
feat(form): groupList新增默认展开所有的配置
This commit is contained in:
parent
05dfd9d936
commit
9281d06723
@ -76,7 +76,7 @@ const mForm = inject<FormState | undefined>('mForm');
|
|||||||
const expand = ref(false);
|
const expand = ref(false);
|
||||||
|
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
expand.value = !props.index;
|
expand.value = props.config.expandAll || !props.index;
|
||||||
});
|
});
|
||||||
|
|
||||||
const rowConfig = computed(() => ({
|
const rowConfig = computed(() => ({
|
||||||
|
@ -662,6 +662,7 @@ export interface GroupListConfig extends FormItem {
|
|||||||
tableItems?: FormConfig;
|
tableItems?: FormConfig;
|
||||||
titleKey?: string;
|
titleKey?: string;
|
||||||
itemExtra?: string | FilterFunction;
|
itemExtra?: string | FilterFunction;
|
||||||
|
expandAll?: boolean;
|
||||||
addable?: (mForm: FormState | undefined, data: any) => boolean | 'undefined' | boolean;
|
addable?: (mForm: FormState | undefined, data: any) => boolean | 'undefined' | boolean;
|
||||||
defaultAdd?: (mForm: FormState | undefined, data: any) => any;
|
defaultAdd?: (mForm: FormState | undefined, data: any) => any;
|
||||||
delete?: (model: any, index: number | string | symbol, values: any) => boolean | boolean;
|
delete?: (model: any, index: number | string | symbol, values: any) => boolean | boolean;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user