@tmagic/form 1.3.0-alpha.3 → 1.3.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0-alpha.3",
2
+ "version": "1.3.0-alpha.5",
3
3
  "name": "@tmagic/form",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -36,8 +36,8 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@element-plus/icons-vue": "^2.0.9",
39
- "@tmagic/design": "1.3.0-alpha.3",
40
- "@tmagic/utils": "1.3.0-alpha.3",
39
+ "@tmagic/design": "1.3.0-alpha.5",
40
+ "@tmagic/utils": "1.3.0-alpha.5",
41
41
  "lodash-es": "^4.17.21",
42
42
  "sortablejs": "^1.14.0",
43
43
  "vue": "^3.3.4"
@@ -76,7 +76,7 @@ const mForm = inject<FormState | undefined>('mForm');
76
76
  const expand = ref(false);
77
77
 
78
78
  watchEffect(() => {
79
- expand.value = !props.index;
79
+ expand.value = props.config.expandAll || !props.index;
80
80
  });
81
81
 
82
82
  const rowConfig = computed(() => ({
package/src/schema.ts CHANGED
@@ -662,6 +662,7 @@ export interface GroupListConfig extends FormItem {
662
662
  tableItems?: FormConfig;
663
663
  titleKey?: string;
664
664
  itemExtra?: string | FilterFunction;
665
+ expandAll?: boolean;
665
666
  addable?: (mForm: FormState | undefined, data: any) => boolean | 'undefined' | boolean;
666
667
  defaultAdd?: (mForm: FormState | undefined, data: any) => any;
667
668
  delete?: (model: any, index: number | string | symbol, values: any) => boolean | boolean;
package/types/schema.d.ts CHANGED
@@ -546,6 +546,7 @@ export interface GroupListConfig extends FormItem {
546
546
  tableItems?: FormConfig;
547
547
  titleKey?: string;
548
548
  itemExtra?: string | FilterFunction;
549
+ expandAll?: boolean;
549
550
  addable?: (mForm: FormState | undefined, data: any) => boolean | 'undefined' | boolean;
550
551
  defaultAdd?: (mForm: FormState | undefined, data: any) => any;
551
552
  delete?: (model: any, index: number | string | symbol, values: any) => boolean | boolean;