@tmagic/form 1.5.21 → 1.5.23

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.
@@ -888,7 +888,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
888
888
  const props = __props;
889
889
  const emit = __emit;
890
890
  const mForm = inject("mForm");
891
- const expand = ref(props.config.expandAll || !props.index);
891
+ const defaultExpandQuantity = props.config.defaultExpandQuantity ?? 7;
892
+ const expand = ref(props.config.expandAll || defaultExpandQuantity > props.index);
892
893
  const rowConfig = computed(() => ({
893
894
  type: "row",
894
895
  span: props.config.span || 24,
@@ -989,8 +990,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
989
990
  default: withCtx(() => _cache[6] || (_cache[6] = [
990
991
  createTextVNode("复制")
991
992
  ])),
992
- _: 1
993
- /* STABLE */
993
+ _: 1,
994
+ __: [6]
994
995
  }, 8, ["icon", "disabled"])) : createCommentVNode("v-if", true),
995
996
  movable.value ? (openBlock(), createElementBlock(
996
997
  Fragment,
@@ -1006,8 +1007,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1006
1007
  default: withCtx(() => _cache[7] || (_cache[7] = [
1007
1008
  createTextVNode("上移")
1008
1009
  ])),
1009
- _: 1
1010
- /* STABLE */
1010
+ _: 1,
1011
+ __: [7]
1011
1012
  }, 8, ["disabled", "icon"]), [
1012
1013
  [vShow, _ctx.index !== 0]
1013
1014
  ]),
@@ -1021,8 +1022,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1021
1022
  default: withCtx(() => _cache[8] || (_cache[8] = [
1022
1023
  createTextVNode("下移")
1023
1024
  ])),
1024
- _: 1
1025
- /* STABLE */
1025
+ _: 1,
1026
+ __: [8]
1026
1027
  }, 8, ["disabled", "icon"]), [
1027
1028
  [vShow, _ctx.index !== length.value - 1]
1028
1029
  ])
@@ -1049,8 +1050,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1049
1050
  default: withCtx(() => _cache[9] || (_cache[9] = [
1050
1051
  createTextVNode("移动至")
1051
1052
  ])),
1052
- _: 1
1053
- /* STABLE */
1053
+ _: 1,
1054
+ __: [9]
1054
1055
  }, 8, ["icon", "disabled"])
1055
1056
  ]),
1056
1057
  default: withCtx(() => [
@@ -1076,8 +1077,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1076
1077
  default: withCtx(() => _cache[12] || (_cache[12] = [
1077
1078
  createTextVNode("取消")
1078
1079
  ])),
1079
- _: 1
1080
- /* STABLE */
1080
+ _: 1,
1081
+ __: [12]
1081
1082
  }),
1082
1083
  createVNode(unref(TMagicButton), {
1083
1084
  size: "small",
@@ -1087,8 +1088,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1087
1088
  default: withCtx(() => _cache[13] || (_cache[13] = [
1088
1089
  createTextVNode("确认")
1089
1090
  ])),
1090
- _: 1
1091
- /* STABLE */
1091
+ _: 1,
1092
+ __: [13]
1092
1093
  })
1093
1094
  ])
1094
1095
  ])
@@ -1228,7 +1229,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1228
1229
  { class: "el-table__empty-text" },
1229
1230
  "暂无数据",
1230
1231
  -1
1231
- /* HOISTED */
1232
+ /* CACHED */
1232
1233
  )
1233
1234
  ]))) : (openBlock(true), createElementBlock(
1234
1235
  Fragment,
@@ -1266,8 +1267,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1266
1267
  default: withCtx(() => _cache[2] || (_cache[2] = [
1267
1268
  createTextVNode("新增")
1268
1269
  ])),
1269
- _: 1
1270
- /* STABLE */
1270
+ _: 1,
1271
+ __: [2]
1271
1272
  }, 8, ["size", "disabled"])) : createCommentVNode("v-if", true),
1272
1273
  _ctx.config.enableToggleMode ? (openBlock(), createBlock(unref(TMagicButton), {
1273
1274
  key: 4,
@@ -1278,8 +1279,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1278
1279
  default: withCtx(() => _cache[3] || (_cache[3] = [
1279
1280
  createTextVNode("切换为表格")
1280
1281
  ])),
1281
- _: 1
1282
- /* STABLE */
1282
+ _: 1,
1283
+ __: [3]
1283
1284
  }, 8, ["icon"])) : createCommentVNode("v-if", true)
1284
1285
  ]);
1285
1286
  };
@@ -2254,8 +2255,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2254
2255
  default: withCtx(() => _cache[3] || (_cache[3] = [
2255
2256
  createTextVNode("新增一行")
2256
2257
  ])),
2257
- _: 1
2258
- /* STABLE */
2258
+ _: 1,
2259
+ __: [3]
2259
2260
  }, 8, ["disabled"])) : createCommentVNode("v-if", true),
2260
2261
  createElementVNode("div", _hoisted_5, [
2261
2262
  _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (openBlock(), createBlock(unref(TMagicButton), {
@@ -2268,8 +2269,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2268
2269
  default: withCtx(() => _cache[4] || (_cache[4] = [
2269
2270
  createTextVNode("展开配置")
2270
2271
  ])),
2271
- _: 1
2272
- /* STABLE */
2272
+ _: 1,
2273
+ __: [4]
2273
2274
  }, 8, ["icon"])) : createCommentVNode("v-if", true),
2274
2275
  _ctx.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
2275
2276
  key: 1,
@@ -2308,8 +2309,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2308
2309
  default: withCtx(() => _cache[5] || (_cache[5] = [
2309
2310
  createTextVNode("导入EXCEL")
2310
2311
  ])),
2311
- _: 1
2312
- /* STABLE */
2312
+ _: 1,
2313
+ __: [5]
2313
2314
  }, 8, ["disabled"])
2314
2315
  ]),
2315
2316
  _: 1
@@ -2326,8 +2327,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2326
2327
  default: withCtx(() => _cache[6] || (_cache[6] = [
2327
2328
  createTextVNode("清空")
2328
2329
  ])),
2329
- _: 1
2330
- /* STABLE */
2330
+ _: 1,
2331
+ __: [6]
2331
2332
  }, 8, ["disabled"])) : createCommentVNode("v-if", true)
2332
2333
  ])
2333
2334
  ]),
@@ -2499,9 +2500,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2499
2500
  resolveDynamicComponent(unref(tabPaneComponent)?.component || "el-tab-pane"),
2500
2501
  mergeProps(
2501
2502
  {
2502
- key: tab[unref(mForm)?.keyProp || "__key"] ?? tabIndex,
2503
- ref_for: true
2503
+ key: tab[unref(mForm)?.keyProp || "__key"] ?? tabIndex
2504
2504
  },
2505
+ { ref_for: true },
2505
2506
  unref(tabPaneComponent)?.props({ name: filter(tab.status) || tabIndex.toString(), lazy: tab.lazy || false }) || {}
2506
2507
  ),
2507
2508
  {
@@ -3563,8 +3564,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3563
3564
  default: withCtx(() => _cache[2] || (_cache[2] = [
3564
3565
  createTextVNode("取 消")
3565
3566
  ])),
3566
- _: 1
3567
- /* STABLE */
3567
+ _: 1,
3568
+ __: [2]
3568
3569
  }),
3569
3570
  hasStep.value && stepActive.value > 1 ? (openBlock(), createBlock(unref(TMagicButton), {
3570
3571
  key: 0,
@@ -3575,8 +3576,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3575
3576
  default: withCtx(() => _cache[3] || (_cache[3] = [
3576
3577
  createTextVNode("上一步")
3577
3578
  ])),
3578
- _: 1
3579
- /* STABLE */
3579
+ _: 1,
3580
+ __: [3]
3580
3581
  })) : createCommentVNode("v-if", true),
3581
3582
  hasStep.value && stepCount.value > stepActive.value ? (openBlock(), createBlock(unref(TMagicButton), {
3582
3583
  key: 1,
@@ -3587,8 +3588,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3587
3588
  default: withCtx(() => _cache[4] || (_cache[4] = [
3588
3589
  createTextVNode("下一步")
3589
3590
  ])),
3590
- _: 1
3591
- /* STABLE */
3591
+ _: 1,
3592
+ __: [4]
3592
3593
  })) : (openBlock(), createBlock(unref(TMagicButton), {
3593
3594
  key: 2,
3594
3595
  type: "primary",
@@ -3747,8 +3748,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3747
3748
  default: withCtx(() => _cache[0] || (_cache[0] = [
3748
3749
  createTextVNode("点击编辑")
3749
3750
  ])),
3750
- _: 1
3751
- /* STABLE */
3751
+ _: 1,
3752
+ __: [0]
3752
3753
  }),
3753
3754
  createVNode(_sfc_main$c, {
3754
3755
  ref_key: "editor",
@@ -3861,7 +3862,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3861
3862
  { class: "split-tag" },
3862
3863
  "-",
3863
3864
  -1
3864
- /* HOISTED */
3865
+ /* CACHED */
3865
3866
  )),
3866
3867
  createVNode(unref(TMagicInput), {
3867
3868
  modelValue: _ctx.model[_ctx.name][1],
@@ -4355,10 +4356,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4355
4356
  return openBlock(), createBlock(
4356
4357
  resolveDynamicComponent(unref(optionGroupComponent)?.component || "el-option-group"),
4357
4358
  mergeProps(
4358
- {
4359
- key: index,
4360
- ref_for: true
4361
- },
4359
+ { key: index },
4360
+ { ref_for: true },
4362
4361
  unref(optionGroupComponent)?.props({
4363
4362
  label: group.label,
4364
4363
  disabled: group.disabled
@@ -4376,10 +4375,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4376
4375
  return openBlock(), createBlock(
4377
4376
  resolveDynamicComponent(unref(optionComponent)?.component || "el-option"),
4378
4377
  mergeProps(
4379
- {
4380
- key: index2,
4381
- ref_for: true
4382
- },
4378
+ { key: index2 },
4379
+ { ref_for: true },
4383
4380
  unref(optionComponent)?.props({
4384
4381
  label: item.label || item.text,
4385
4382
  value: item.value,
@@ -4417,9 +4414,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4417
4414
  mergeProps(
4418
4415
  {
4419
4416
  class: "tmagic-design-option",
4420
- key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value,
4421
- ref_for: true
4417
+ key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value
4422
4418
  },
4419
+ { ref_for: true },
4423
4420
  unref(optionComponent)?.props({
4424
4421
  label: option.text,
4425
4422
  value: option.value,
@@ -4711,7 +4708,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4711
4708
  { class: "m-form-validate__warning" },
4712
4709
  "输入内容前后有空格,是否移除空格?",
4713
4710
  -1
4714
- /* HOISTED */
4711
+ /* CACHED */
4715
4712
  )),
4716
4713
  createElementVNode("div", _hoisted_2, [
4717
4714
  createVNode(unref(TMagicButton), {
@@ -4722,8 +4719,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4722
4719
  default: withCtx(() => _cache[3] || (_cache[3] = [
4723
4720
  createTextVNode("保持原样")
4724
4721
  ])),
4725
- _: 1
4726
- /* STABLE */
4722
+ _: 1,
4723
+ __: [3]
4727
4724
  }),
4728
4725
  createVNode(unref(TMagicButton), {
4729
4726
  type: "primary",
@@ -4733,8 +4730,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4733
4730
  default: withCtx(() => _cache[4] || (_cache[4] = [
4734
4731
  createTextVNode("移除空格")
4735
4732
  ])),
4736
- _: 1
4737
- /* STABLE */
4733
+ _: 1,
4734
+ __: [4]
4738
4735
  })
4739
4736
  ]),
4740
4737
  _cache[6] || (_cache[6] = createElementVNode(
@@ -4745,7 +4742,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4745
4742
  },
4746
4743
  null,
4747
4744
  -1
4748
- /* HOISTED */
4745
+ /* CACHED */
4749
4746
  ))
4750
4747
  ],
4751
4748
  512
@@ -5036,8 +5033,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5036
5033
  default: withCtx(() => _cache[1] || (_cache[1] = [
5037
5034
  createTextVNode("关闭")
5038
5035
  ])),
5039
- _: 1
5040
- /* STABLE */
5036
+ _: 1,
5037
+ __: [1]
5041
5038
  }),
5042
5039
  createVNode(unref(TMagicButton), {
5043
5040
  type: "primary",
@@ -3818,7 +3818,8 @@
3818
3818
  const props = __props;
3819
3819
  const emit = __emit;
3820
3820
  const mForm = vue.inject("mForm");
3821
- const expand = vue.ref(props.config.expandAll || !props.index);
3821
+ const defaultExpandQuantity = props.config.defaultExpandQuantity ?? 7;
3822
+ const expand = vue.ref(props.config.expandAll || defaultExpandQuantity > props.index);
3822
3823
  const rowConfig = vue.computed(() => ({
3823
3824
  type: "row",
3824
3825
  span: props.config.span || 24,
@@ -3919,8 +3920,8 @@
3919
3920
  default: vue.withCtx(() => _cache[6] || (_cache[6] = [
3920
3921
  vue.createTextVNode("复制")
3921
3922
  ])),
3922
- _: 1
3923
- /* STABLE */
3923
+ _: 1,
3924
+ __: [6]
3924
3925
  }, 8, ["icon", "disabled"])) : vue.createCommentVNode("v-if", true),
3925
3926
  movable.value ? (vue.openBlock(), vue.createElementBlock(
3926
3927
  vue.Fragment,
@@ -3936,8 +3937,8 @@
3936
3937
  default: vue.withCtx(() => _cache[7] || (_cache[7] = [
3937
3938
  vue.createTextVNode("上移")
3938
3939
  ])),
3939
- _: 1
3940
- /* STABLE */
3940
+ _: 1,
3941
+ __: [7]
3941
3942
  }, 8, ["disabled", "icon"]), [
3942
3943
  [vue.vShow, _ctx.index !== 0]
3943
3944
  ]),
@@ -3951,8 +3952,8 @@
3951
3952
  default: vue.withCtx(() => _cache[8] || (_cache[8] = [
3952
3953
  vue.createTextVNode("下移")
3953
3954
  ])),
3954
- _: 1
3955
- /* STABLE */
3955
+ _: 1,
3956
+ __: [8]
3956
3957
  }, 8, ["disabled", "icon"]), [
3957
3958
  [vue.vShow, _ctx.index !== length.value - 1]
3958
3959
  ])
@@ -3979,8 +3980,8 @@
3979
3980
  default: vue.withCtx(() => _cache[9] || (_cache[9] = [
3980
3981
  vue.createTextVNode("移动至")
3981
3982
  ])),
3982
- _: 1
3983
- /* STABLE */
3983
+ _: 1,
3984
+ __: [9]
3984
3985
  }, 8, ["icon", "disabled"])
3985
3986
  ]),
3986
3987
  default: vue.withCtx(() => [
@@ -4006,8 +4007,8 @@
4006
4007
  default: vue.withCtx(() => _cache[12] || (_cache[12] = [
4007
4008
  vue.createTextVNode("取消")
4008
4009
  ])),
4009
- _: 1
4010
- /* STABLE */
4010
+ _: 1,
4011
+ __: [12]
4011
4012
  }),
4012
4013
  vue.createVNode(vue.unref(design.TMagicButton), {
4013
4014
  size: "small",
@@ -4017,8 +4018,8 @@
4017
4018
  default: vue.withCtx(() => _cache[13] || (_cache[13] = [
4018
4019
  vue.createTextVNode("确认")
4019
4020
  ])),
4020
- _: 1
4021
- /* STABLE */
4021
+ _: 1,
4022
+ __: [13]
4022
4023
  })
4023
4024
  ])
4024
4025
  ])
@@ -4158,7 +4159,7 @@
4158
4159
  { class: "el-table__empty-text" },
4159
4160
  "暂无数据",
4160
4161
  -1
4161
- /* HOISTED */
4162
+ /* CACHED */
4162
4163
  )
4163
4164
  ]))) : (vue.openBlock(true), vue.createElementBlock(
4164
4165
  vue.Fragment,
@@ -4196,8 +4197,8 @@
4196
4197
  default: vue.withCtx(() => _cache[2] || (_cache[2] = [
4197
4198
  vue.createTextVNode("新增")
4198
4199
  ])),
4199
- _: 1
4200
- /* STABLE */
4200
+ _: 1,
4201
+ __: [2]
4201
4202
  }, 8, ["size", "disabled"])) : vue.createCommentVNode("v-if", true),
4202
4203
  _ctx.config.enableToggleMode ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
4203
4204
  key: 4,
@@ -4208,8 +4209,8 @@
4208
4209
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
4209
4210
  vue.createTextVNode("切换为表格")
4210
4211
  ])),
4211
- _: 1
4212
- /* STABLE */
4212
+ _: 1,
4213
+ __: [3]
4213
4214
  }, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
4214
4215
  ]);
4215
4216
  };
@@ -5184,8 +5185,8 @@
5184
5185
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
5185
5186
  vue.createTextVNode("新增一行")
5186
5187
  ])),
5187
- _: 1
5188
- /* STABLE */
5188
+ _: 1,
5189
+ __: [3]
5189
5190
  }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
5190
5191
  vue.createElementVNode("div", _hoisted_5, [
5191
5192
  _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
@@ -5198,8 +5199,8 @@
5198
5199
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
5199
5200
  vue.createTextVNode("展开配置")
5200
5201
  ])),
5201
- _: 1
5202
- /* STABLE */
5202
+ _: 1,
5203
+ __: [4]
5203
5204
  }, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
5204
5205
  _ctx.config.enableFullscreen !== false ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
5205
5206
  key: 1,
@@ -5238,8 +5239,8 @@
5238
5239
  default: vue.withCtx(() => _cache[5] || (_cache[5] = [
5239
5240
  vue.createTextVNode("导入EXCEL")
5240
5241
  ])),
5241
- _: 1
5242
- /* STABLE */
5242
+ _: 1,
5243
+ __: [5]
5243
5244
  }, 8, ["disabled"])
5244
5245
  ]),
5245
5246
  _: 1
@@ -5256,8 +5257,8 @@
5256
5257
  default: vue.withCtx(() => _cache[6] || (_cache[6] = [
5257
5258
  vue.createTextVNode("清空")
5258
5259
  ])),
5259
- _: 1
5260
- /* STABLE */
5260
+ _: 1,
5261
+ __: [6]
5261
5262
  }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
5262
5263
  ])
5263
5264
  ]),
@@ -5429,9 +5430,9 @@
5429
5430
  vue.resolveDynamicComponent(vue.unref(tabPaneComponent)?.component || "el-tab-pane"),
5430
5431
  vue.mergeProps(
5431
5432
  {
5432
- key: tab[vue.unref(mForm)?.keyProp || "__key"] ?? tabIndex,
5433
- ref_for: true
5433
+ key: tab[vue.unref(mForm)?.keyProp || "__key"] ?? tabIndex
5434
5434
  },
5435
+ { ref_for: true },
5435
5436
  vue.unref(tabPaneComponent)?.props({ name: filter(tab.status) || tabIndex.toString(), lazy: tab.lazy || false }) || {}
5436
5437
  ),
5437
5438
  {
@@ -6493,8 +6494,8 @@
6493
6494
  default: vue.withCtx(() => _cache[2] || (_cache[2] = [
6494
6495
  vue.createTextVNode("取 消")
6495
6496
  ])),
6496
- _: 1
6497
- /* STABLE */
6497
+ _: 1,
6498
+ __: [2]
6498
6499
  }),
6499
6500
  hasStep.value && stepActive.value > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
6500
6501
  key: 0,
@@ -6505,8 +6506,8 @@
6505
6506
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
6506
6507
  vue.createTextVNode("上一步")
6507
6508
  ])),
6508
- _: 1
6509
- /* STABLE */
6509
+ _: 1,
6510
+ __: [3]
6510
6511
  })) : vue.createCommentVNode("v-if", true),
6511
6512
  hasStep.value && stepCount.value > stepActive.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
6512
6513
  key: 1,
@@ -6517,8 +6518,8 @@
6517
6518
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
6518
6519
  vue.createTextVNode("下一步")
6519
6520
  ])),
6520
- _: 1
6521
- /* STABLE */
6521
+ _: 1,
6522
+ __: [4]
6522
6523
  })) : (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
6523
6524
  key: 2,
6524
6525
  type: "primary",
@@ -6677,8 +6678,8 @@
6677
6678
  default: vue.withCtx(() => _cache[0] || (_cache[0] = [
6678
6679
  vue.createTextVNode("点击编辑")
6679
6680
  ])),
6680
- _: 1
6681
- /* STABLE */
6681
+ _: 1,
6682
+ __: [0]
6682
6683
  }),
6683
6684
  vue.createVNode(_sfc_main$c, {
6684
6685
  ref_key: "editor",
@@ -6791,7 +6792,7 @@
6791
6792
  { class: "split-tag" },
6792
6793
  "-",
6793
6794
  -1
6794
- /* HOISTED */
6795
+ /* CACHED */
6795
6796
  )),
6796
6797
  vue.createVNode(vue.unref(design.TMagicInput), {
6797
6798
  modelValue: _ctx.model[_ctx.name][1],
@@ -7285,10 +7286,8 @@
7285
7286
  return vue.openBlock(), vue.createBlock(
7286
7287
  vue.resolveDynamicComponent(vue.unref(optionGroupComponent)?.component || "el-option-group"),
7287
7288
  vue.mergeProps(
7288
- {
7289
- key: index,
7290
- ref_for: true
7291
- },
7289
+ { key: index },
7290
+ { ref_for: true },
7292
7291
  vue.unref(optionGroupComponent)?.props({
7293
7292
  label: group.label,
7294
7293
  disabled: group.disabled
@@ -7306,10 +7305,8 @@
7306
7305
  return vue.openBlock(), vue.createBlock(
7307
7306
  vue.resolveDynamicComponent(vue.unref(optionComponent)?.component || "el-option"),
7308
7307
  vue.mergeProps(
7309
- {
7310
- key: index2,
7311
- ref_for: true
7312
- },
7308
+ { key: index2 },
7309
+ { ref_for: true },
7313
7310
  vue.unref(optionComponent)?.props({
7314
7311
  label: item.label || item.text,
7315
7312
  value: item.value,
@@ -7347,9 +7344,9 @@
7347
7344
  vue.mergeProps(
7348
7345
  {
7349
7346
  class: "tmagic-design-option",
7350
- key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value,
7351
- ref_for: true
7347
+ key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value
7352
7348
  },
7349
+ { ref_for: true },
7353
7350
  vue.unref(optionComponent)?.props({
7354
7351
  label: option.text,
7355
7352
  value: option.value,
@@ -7641,7 +7638,7 @@
7641
7638
  { class: "m-form-validate__warning" },
7642
7639
  "输入内容前后有空格,是否移除空格?",
7643
7640
  -1
7644
- /* HOISTED */
7641
+ /* CACHED */
7645
7642
  )),
7646
7643
  vue.createElementVNode("div", _hoisted_2, [
7647
7644
  vue.createVNode(vue.unref(design.TMagicButton), {
@@ -7652,8 +7649,8 @@
7652
7649
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
7653
7650
  vue.createTextVNode("保持原样")
7654
7651
  ])),
7655
- _: 1
7656
- /* STABLE */
7652
+ _: 1,
7653
+ __: [3]
7657
7654
  }),
7658
7655
  vue.createVNode(vue.unref(design.TMagicButton), {
7659
7656
  type: "primary",
@@ -7663,8 +7660,8 @@
7663
7660
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
7664
7661
  vue.createTextVNode("移除空格")
7665
7662
  ])),
7666
- _: 1
7667
- /* STABLE */
7663
+ _: 1,
7664
+ __: [4]
7668
7665
  })
7669
7666
  ]),
7670
7667
  _cache[6] || (_cache[6] = vue.createElementVNode(
@@ -7675,7 +7672,7 @@
7675
7672
  },
7676
7673
  null,
7677
7674
  -1
7678
- /* HOISTED */
7675
+ /* CACHED */
7679
7676
  ))
7680
7677
  ],
7681
7678
  512
@@ -7966,8 +7963,8 @@
7966
7963
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
7967
7964
  vue.createTextVNode("关闭")
7968
7965
  ])),
7969
- _: 1
7970
- /* STABLE */
7966
+ _: 1,
7967
+ __: [1]
7971
7968
  }),
7972
7969
  vue.createVNode(vue.unref(design.TMagicButton), {
7973
7970
  type: "primary",
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.21",
2
+ "version": "1.5.23",
3
3
  "name": "@tmagic/form",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -49,11 +49,11 @@
49
49
  "@vue/test-utils": "^2.4.6"
50
50
  },
51
51
  "peerDependencies": {
52
- "vue": ">=3.5.0",
53
- "typescript": "*",
54
- "@tmagic/design": "1.5.21",
55
- "@tmagic/form-schema": "1.5.21",
56
- "@tmagic/utils": "1.5.21"
52
+ "vue": "^3.5.17",
53
+ "typescript": "^5.8.3",
54
+ "@tmagic/utils": "1.5.23",
55
+ "@tmagic/form-schema": "1.5.23",
56
+ "@tmagic/design": "1.5.23"
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',