@tmagic/form 1.5.21 → 1.5.22

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.5.21",
2
+ "version": "1.5.22",
3
3
  "name": "@tmagic/form",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -51,9 +51,9 @@
51
51
  "peerDependencies": {
52
52
  "vue": ">=3.5.0",
53
53
  "typescript": "*",
54
- "@tmagic/design": "1.5.21",
55
- "@tmagic/form-schema": "1.5.21",
56
- "@tmagic/utils": "1.5.21"
54
+ "@tmagic/utils": "1.5.22",
55
+ "@tmagic/form-schema": "1.5.22",
56
+ "@tmagic/design": "1.5.22"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "typescript": {
@@ -133,7 +133,9 @@ const props = defineProps<{
133
133
  const emit = defineEmits(['swap-item', 'remove-item', 'change', 'addDiffCount', 'copy-item']);
134
134
 
135
135
  const mForm = inject<FormState | undefined>('mForm');
136
- const expand = ref(props.config.expandAll || !props.index);
136
+
137
+ const defaultExpandQuantity = props.config.defaultExpandQuantity ?? 7;
138
+ const expand = ref(props.config.expandAll || defaultExpandQuantity > props.index);
137
139
 
138
140
  const rowConfig = computed(() => ({
139
141
  type: 'row',