@tmagic/form 1.6.0-beta.6 → 1.6.0

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.
@@ -987,11 +987,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
987
987
  disabled: _ctx.disabled,
988
988
  onClick: copyHandler
989
989
  }, {
990
- default: withCtx(() => _cache[6] || (_cache[6] = [
991
- createTextVNode("复制")
992
- ])),
993
- _: 1,
994
- __: [6]
990
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
991
+ createTextVNode(
992
+ "复制",
993
+ -1
994
+ /* CACHED */
995
+ )
996
+ ])]),
997
+ _: 1
998
+ /* STABLE */
995
999
  }, 8, ["icon", "disabled"])) : createCommentVNode("v-if", true),
996
1000
  movable.value ? (openBlock(), createElementBlock(
997
1001
  Fragment,
@@ -1004,11 +1008,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1004
1008
  icon: unref(CaretTop),
1005
1009
  onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
1006
1010
  }, {
1007
- default: withCtx(() => _cache[7] || (_cache[7] = [
1008
- createTextVNode("上移")
1009
- ])),
1010
- _: 1,
1011
- __: [7]
1011
+ default: withCtx(() => [..._cache[7] || (_cache[7] = [
1012
+ createTextVNode(
1013
+ "上移",
1014
+ -1
1015
+ /* CACHED */
1016
+ )
1017
+ ])]),
1018
+ _: 1
1019
+ /* STABLE */
1012
1020
  }, 8, ["disabled", "icon"]), [
1013
1021
  [vShow, _ctx.index !== 0]
1014
1022
  ]),
@@ -1019,11 +1027,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1019
1027
  icon: unref(CaretBottom),
1020
1028
  onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
1021
1029
  }, {
1022
- default: withCtx(() => _cache[8] || (_cache[8] = [
1023
- createTextVNode("下移")
1024
- ])),
1025
- _: 1,
1026
- __: [8]
1030
+ default: withCtx(() => [..._cache[8] || (_cache[8] = [
1031
+ createTextVNode(
1032
+ "下移",
1033
+ -1
1034
+ /* CACHED */
1035
+ )
1036
+ ])]),
1037
+ _: 1
1038
+ /* STABLE */
1027
1039
  }, 8, ["disabled", "icon"]), [
1028
1040
  [vShow, _ctx.index !== length.value - 1]
1029
1041
  ])
@@ -1047,17 +1059,25 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1047
1059
  disabled: _ctx.disabled,
1048
1060
  onClick: _cache[2] || (_cache[2] = ($event) => moveSpecifyLocationVisible.value = true)
1049
1061
  }, {
1050
- default: withCtx(() => _cache[9] || (_cache[9] = [
1051
- createTextVNode("移动至")
1052
- ])),
1053
- _: 1,
1054
- __: [9]
1062
+ default: withCtx(() => [..._cache[9] || (_cache[9] = [
1063
+ createTextVNode(
1064
+ "移动至",
1065
+ -1
1066
+ /* CACHED */
1067
+ )
1068
+ ])]),
1069
+ _: 1
1070
+ /* STABLE */
1055
1071
  }, 8, ["icon", "disabled"])
1056
1072
  ]),
1057
1073
  default: withCtx(() => [
1058
1074
  createElementVNode("div", null, [
1059
1075
  createElementVNode("div", null, [
1060
- _cache[10] || (_cache[10] = createTextVNode(" 第")),
1076
+ _cache[10] || (_cache[10] = createTextVNode(
1077
+ " 第",
1078
+ -1
1079
+ /* CACHED */
1080
+ )),
1061
1081
  createVNode(unref(TMagicInputNumber), {
1062
1082
  style: { "margin": "0 5px" },
1063
1083
  modelValue: moveSpecifyLocationIndex.value,
@@ -1066,7 +1086,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1066
1086
  min: 1,
1067
1087
  disabled: _ctx.disabled
1068
1088
  }, null, 8, ["modelValue", "disabled"]),
1069
- _cache[11] || (_cache[11] = createTextVNode("行 "))
1089
+ _cache[11] || (_cache[11] = createTextVNode(
1090
+ "行 ",
1091
+ -1
1092
+ /* CACHED */
1093
+ ))
1070
1094
  ]),
1071
1095
  createElementVNode("div", _hoisted_2$5, [
1072
1096
  createVNode(unref(TMagicButton), {
@@ -1074,22 +1098,30 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1074
1098
  text: "",
1075
1099
  onClick: _cache[4] || (_cache[4] = ($event) => moveSpecifyLocationVisible.value = false)
1076
1100
  }, {
1077
- default: withCtx(() => _cache[12] || (_cache[12] = [
1078
- createTextVNode("取消")
1079
- ])),
1080
- _: 1,
1081
- __: [12]
1101
+ default: withCtx(() => [..._cache[12] || (_cache[12] = [
1102
+ createTextVNode(
1103
+ "取消",
1104
+ -1
1105
+ /* CACHED */
1106
+ )
1107
+ ])]),
1108
+ _: 1
1109
+ /* STABLE */
1082
1110
  }),
1083
1111
  createVNode(unref(TMagicButton), {
1084
1112
  size: "small",
1085
1113
  type: "primary",
1086
1114
  onClick: moveSpecifyLocationHandler
1087
1115
  }, {
1088
- default: withCtx(() => _cache[13] || (_cache[13] = [
1089
- createTextVNode("确认")
1090
- ])),
1091
- _: 1,
1092
- __: [13]
1116
+ default: withCtx(() => [..._cache[13] || (_cache[13] = [
1117
+ createTextVNode(
1118
+ "确认",
1119
+ -1
1120
+ /* CACHED */
1121
+ )
1122
+ ])]),
1123
+ _: 1
1124
+ /* STABLE */
1093
1125
  })
1094
1126
  ])
1095
1127
  ])
@@ -1223,7 +1255,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1223
1255
  innerHTML: _ctx.config.extra,
1224
1256
  style: { "color": "rgba(0, 0, 0, 0.45)" }
1225
1257
  }, null, 8, _hoisted_2$4)) : createCommentVNode("v-if", true),
1226
- !_ctx.model[_ctx.name] || !_ctx.model[_ctx.name].length ? (openBlock(), createElementBlock("div", _hoisted_3$2, _cache[1] || (_cache[1] = [
1258
+ !_ctx.model[_ctx.name] || !_ctx.model[_ctx.name].length ? (openBlock(), createElementBlock("div", _hoisted_3$2, [..._cache[1] || (_cache[1] = [
1227
1259
  createElementVNode(
1228
1260
  "span",
1229
1261
  { class: "el-table__empty-text" },
@@ -1231,7 +1263,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1231
1263
  -1
1232
1264
  /* CACHED */
1233
1265
  )
1234
- ]))) : (openBlock(true), createElementBlock(
1266
+ ])])) : (openBlock(true), createElementBlock(
1235
1267
  Fragment,
1236
1268
  { key: 2 },
1237
1269
  renderList(_ctx.model[_ctx.name], (item, index) => {
@@ -1264,11 +1296,15 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1264
1296
  disabled: _ctx.disabled,
1265
1297
  onClick: addHandler
1266
1298
  }, {
1267
- default: withCtx(() => _cache[2] || (_cache[2] = [
1268
- createTextVNode("新增")
1269
- ])),
1270
- _: 1,
1271
- __: [2]
1299
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
1300
+ createTextVNode(
1301
+ "新增",
1302
+ -1
1303
+ /* CACHED */
1304
+ )
1305
+ ])]),
1306
+ _: 1
1307
+ /* STABLE */
1272
1308
  }, 8, ["size", "disabled"])) : createCommentVNode("v-if", true),
1273
1309
  _ctx.config.enableToggleMode ? (openBlock(), createBlock(unref(TMagicButton), {
1274
1310
  key: 4,
@@ -1276,11 +1312,15 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1276
1312
  size: "small",
1277
1313
  onClick: toggleMode
1278
1314
  }, {
1279
- default: withCtx(() => _cache[3] || (_cache[3] = [
1280
- createTextVNode("切换为表格")
1281
- ])),
1282
- _: 1,
1283
- __: [3]
1315
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
1316
+ createTextVNode(
1317
+ "切换为表格",
1318
+ -1
1319
+ /* CACHED */
1320
+ )
1321
+ ])]),
1322
+ _: 1
1323
+ /* STABLE */
1284
1324
  }, 8, ["icon"])) : createCommentVNode("v-if", true)
1285
1325
  ]);
1286
1326
  };
@@ -2252,11 +2292,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2252
2292
  plain: "",
2253
2293
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
2254
2294
  }, {
2255
- default: withCtx(() => _cache[3] || (_cache[3] = [
2256
- createTextVNode("新增一行")
2257
- ])),
2258
- _: 1,
2259
- __: [3]
2295
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
2296
+ createTextVNode(
2297
+ "新增一行",
2298
+ -1
2299
+ /* CACHED */
2300
+ )
2301
+ ])]),
2302
+ _: 1
2303
+ /* STABLE */
2260
2304
  }, 8, ["disabled"])) : createCommentVNode("v-if", true),
2261
2305
  createElementVNode("div", _hoisted_5, [
2262
2306
  _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (openBlock(), createBlock(unref(TMagicButton), {
@@ -2266,11 +2310,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2266
2310
  type: "primary",
2267
2311
  onClick: toggleMode
2268
2312
  }, {
2269
- default: withCtx(() => _cache[4] || (_cache[4] = [
2270
- createTextVNode("展开配置")
2271
- ])),
2272
- _: 1,
2273
- __: [4]
2313
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
2314
+ createTextVNode(
2315
+ "展开配置",
2316
+ -1
2317
+ /* CACHED */
2318
+ )
2319
+ ])]),
2320
+ _: 1
2321
+ /* STABLE */
2274
2322
  }, 8, ["icon"])) : createCommentVNode("v-if", true),
2275
2323
  _ctx.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
2276
2324
  key: 1,
@@ -2306,11 +2354,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2306
2354
  disabled: _ctx.disabled,
2307
2355
  plain: ""
2308
2356
  }, {
2309
- default: withCtx(() => _cache[5] || (_cache[5] = [
2310
- createTextVNode("导入EXCEL")
2311
- ])),
2312
- _: 1,
2313
- __: [5]
2357
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
2358
+ createTextVNode(
2359
+ "导入EXCEL",
2360
+ -1
2361
+ /* CACHED */
2362
+ )
2363
+ ])]),
2364
+ _: 1
2365
+ /* STABLE */
2314
2366
  }, 8, ["disabled"])
2315
2367
  ]),
2316
2368
  _: 1
@@ -2324,11 +2376,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2324
2376
  plain: "",
2325
2377
  onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
2326
2378
  }, {
2327
- default: withCtx(() => _cache[6] || (_cache[6] = [
2328
- createTextVNode("清空")
2329
- ])),
2330
- _: 1,
2331
- __: [6]
2379
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
2380
+ createTextVNode(
2381
+ "清空",
2382
+ -1
2383
+ /* CACHED */
2384
+ )
2385
+ ])]),
2386
+ _: 1
2387
+ /* STABLE */
2332
2388
  }, 8, ["disabled"])) : createCommentVNode("v-if", true)
2333
2389
  ])
2334
2390
  ]),
@@ -3561,11 +3617,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3561
3617
  onClick: cancel,
3562
3618
  size: "small"
3563
3619
  }, {
3564
- default: withCtx(() => _cache[2] || (_cache[2] = [
3565
- createTextVNode("取 消")
3566
- ])),
3567
- _: 1,
3568
- __: [2]
3620
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
3621
+ createTextVNode(
3622
+ "取 消",
3623
+ -1
3624
+ /* CACHED */
3625
+ )
3626
+ ])]),
3627
+ _: 1
3628
+ /* STABLE */
3569
3629
  }),
3570
3630
  hasStep.value && stepActive.value > 1 ? (openBlock(), createBlock(unref(TMagicButton), {
3571
3631
  key: 0,
@@ -3573,11 +3633,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3573
3633
  size: "small",
3574
3634
  onClick: preStep
3575
3635
  }, {
3576
- default: withCtx(() => _cache[3] || (_cache[3] = [
3577
- createTextVNode("上一步")
3578
- ])),
3579
- _: 1,
3580
- __: [3]
3636
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
3637
+ createTextVNode(
3638
+ "上一步",
3639
+ -1
3640
+ /* CACHED */
3641
+ )
3642
+ ])]),
3643
+ _: 1
3644
+ /* STABLE */
3581
3645
  })) : createCommentVNode("v-if", true),
3582
3646
  hasStep.value && stepCount.value > stepActive.value ? (openBlock(), createBlock(unref(TMagicButton), {
3583
3647
  key: 1,
@@ -3585,11 +3649,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3585
3649
  size: "small",
3586
3650
  onClick: nextStep
3587
3651
  }, {
3588
- default: withCtx(() => _cache[4] || (_cache[4] = [
3589
- createTextVNode("下一步")
3590
- ])),
3591
- _: 1,
3592
- __: [4]
3652
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
3653
+ createTextVNode(
3654
+ "下一步",
3655
+ -1
3656
+ /* CACHED */
3657
+ )
3658
+ ])]),
3659
+ _: 1
3660
+ /* STABLE */
3593
3661
  })) : (openBlock(), createBlock(unref(TMagicButton), {
3594
3662
  key: 2,
3595
3663
  type: "primary",
@@ -3745,11 +3813,15 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3745
3813
  type: "primary",
3746
3814
  onClick: editHandler
3747
3815
  }, {
3748
- default: withCtx(() => _cache[0] || (_cache[0] = [
3749
- createTextVNode("点击编辑")
3750
- ])),
3751
- _: 1,
3752
- __: [0]
3816
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
3817
+ createTextVNode(
3818
+ "点击编辑",
3819
+ -1
3820
+ /* CACHED */
3821
+ )
3822
+ ])]),
3823
+ _: 1
3824
+ /* STABLE */
3753
3825
  }),
3754
3826
  createVNode(_sfc_main$c, {
3755
3827
  ref_key: "editor",
@@ -4716,22 +4788,30 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4716
4788
  size: "small",
4717
4789
  onClick: _cache[2] || (_cache[2] = ($event) => popoverVisible.value = false)
4718
4790
  }, {
4719
- default: withCtx(() => _cache[3] || (_cache[3] = [
4720
- createTextVNode("保持原样")
4721
- ])),
4722
- _: 1,
4723
- __: [3]
4791
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
4792
+ createTextVNode(
4793
+ "保持原样",
4794
+ -1
4795
+ /* CACHED */
4796
+ )
4797
+ ])]),
4798
+ _: 1
4799
+ /* STABLE */
4724
4800
  }),
4725
4801
  createVNode(unref(TMagicButton), {
4726
4802
  type: "primary",
4727
4803
  size: "small",
4728
4804
  onClick: confirmTrimHandler
4729
4805
  }, {
4730
- default: withCtx(() => _cache[4] || (_cache[4] = [
4731
- createTextVNode("移除空格")
4732
- ])),
4733
- _: 1,
4734
- __: [4]
4806
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
4807
+ createTextVNode(
4808
+ "移除空格",
4809
+ -1
4810
+ /* CACHED */
4811
+ )
4812
+ ])]),
4813
+ _: 1
4814
+ /* STABLE */
4735
4815
  })
4736
4816
  ]),
4737
4817
  _cache[6] || (_cache[6] = createElementVNode(
@@ -5030,11 +5110,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5030
5110
  default: withCtx(() => [
5031
5111
  renderSlot(_ctx.$slots, "footer", {}, () => [
5032
5112
  createVNode(unref(TMagicButton), { onClick: handleClose }, {
5033
- default: withCtx(() => _cache[1] || (_cache[1] = [
5034
- createTextVNode("关闭")
5035
- ])),
5036
- _: 1,
5037
- __: [1]
5113
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
5114
+ createTextVNode(
5115
+ "关闭",
5116
+ -1
5117
+ /* CACHED */
5118
+ )
5119
+ ])]),
5120
+ _: 1
5121
+ /* STABLE */
5038
5122
  }),
5039
5123
  createVNode(unref(TMagicButton), {
5040
5124
  type: "primary",
@@ -3917,11 +3917,15 @@
3917
3917
  disabled: _ctx.disabled,
3918
3918
  onClick: copyHandler
3919
3919
  }, {
3920
- default: vue.withCtx(() => _cache[6] || (_cache[6] = [
3921
- vue.createTextVNode("复制")
3922
- ])),
3923
- _: 1,
3924
- __: [6]
3920
+ default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
3921
+ vue.createTextVNode(
3922
+ "复制",
3923
+ -1
3924
+ /* CACHED */
3925
+ )
3926
+ ])]),
3927
+ _: 1
3928
+ /* STABLE */
3925
3929
  }, 8, ["icon", "disabled"])) : vue.createCommentVNode("v-if", true),
3926
3930
  movable.value ? (vue.openBlock(), vue.createElementBlock(
3927
3931
  vue.Fragment,
@@ -3934,11 +3938,15 @@
3934
3938
  icon: vue.unref(iconsVue.CaretTop),
3935
3939
  onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
3936
3940
  }, {
3937
- default: vue.withCtx(() => _cache[7] || (_cache[7] = [
3938
- vue.createTextVNode("上移")
3939
- ])),
3940
- _: 1,
3941
- __: [7]
3941
+ default: vue.withCtx(() => [..._cache[7] || (_cache[7] = [
3942
+ vue.createTextVNode(
3943
+ "上移",
3944
+ -1
3945
+ /* CACHED */
3946
+ )
3947
+ ])]),
3948
+ _: 1
3949
+ /* STABLE */
3942
3950
  }, 8, ["disabled", "icon"]), [
3943
3951
  [vue.vShow, _ctx.index !== 0]
3944
3952
  ]),
@@ -3949,11 +3957,15 @@
3949
3957
  icon: vue.unref(iconsVue.CaretBottom),
3950
3958
  onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
3951
3959
  }, {
3952
- default: vue.withCtx(() => _cache[8] || (_cache[8] = [
3953
- vue.createTextVNode("下移")
3954
- ])),
3955
- _: 1,
3956
- __: [8]
3960
+ default: vue.withCtx(() => [..._cache[8] || (_cache[8] = [
3961
+ vue.createTextVNode(
3962
+ "下移",
3963
+ -1
3964
+ /* CACHED */
3965
+ )
3966
+ ])]),
3967
+ _: 1
3968
+ /* STABLE */
3957
3969
  }, 8, ["disabled", "icon"]), [
3958
3970
  [vue.vShow, _ctx.index !== length.value - 1]
3959
3971
  ])
@@ -3977,17 +3989,25 @@
3977
3989
  disabled: _ctx.disabled,
3978
3990
  onClick: _cache[2] || (_cache[2] = ($event) => moveSpecifyLocationVisible.value = true)
3979
3991
  }, {
3980
- default: vue.withCtx(() => _cache[9] || (_cache[9] = [
3981
- vue.createTextVNode("移动至")
3982
- ])),
3983
- _: 1,
3984
- __: [9]
3992
+ default: vue.withCtx(() => [..._cache[9] || (_cache[9] = [
3993
+ vue.createTextVNode(
3994
+ "移动至",
3995
+ -1
3996
+ /* CACHED */
3997
+ )
3998
+ ])]),
3999
+ _: 1
4000
+ /* STABLE */
3985
4001
  }, 8, ["icon", "disabled"])
3986
4002
  ]),
3987
4003
  default: vue.withCtx(() => [
3988
4004
  vue.createElementVNode("div", null, [
3989
4005
  vue.createElementVNode("div", null, [
3990
- _cache[10] || (_cache[10] = vue.createTextVNode(" 第")),
4006
+ _cache[10] || (_cache[10] = vue.createTextVNode(
4007
+ " 第",
4008
+ -1
4009
+ /* CACHED */
4010
+ )),
3991
4011
  vue.createVNode(vue.unref(design.TMagicInputNumber), {
3992
4012
  style: { "margin": "0 5px" },
3993
4013
  modelValue: moveSpecifyLocationIndex.value,
@@ -3996,7 +4016,11 @@
3996
4016
  min: 1,
3997
4017
  disabled: _ctx.disabled
3998
4018
  }, null, 8, ["modelValue", "disabled"]),
3999
- _cache[11] || (_cache[11] = vue.createTextVNode("行 "))
4019
+ _cache[11] || (_cache[11] = vue.createTextVNode(
4020
+ "行 ",
4021
+ -1
4022
+ /* CACHED */
4023
+ ))
4000
4024
  ]),
4001
4025
  vue.createElementVNode("div", _hoisted_2$5, [
4002
4026
  vue.createVNode(vue.unref(design.TMagicButton), {
@@ -4004,22 +4028,30 @@
4004
4028
  text: "",
4005
4029
  onClick: _cache[4] || (_cache[4] = ($event) => moveSpecifyLocationVisible.value = false)
4006
4030
  }, {
4007
- default: vue.withCtx(() => _cache[12] || (_cache[12] = [
4008
- vue.createTextVNode("取消")
4009
- ])),
4010
- _: 1,
4011
- __: [12]
4031
+ default: vue.withCtx(() => [..._cache[12] || (_cache[12] = [
4032
+ vue.createTextVNode(
4033
+ "取消",
4034
+ -1
4035
+ /* CACHED */
4036
+ )
4037
+ ])]),
4038
+ _: 1
4039
+ /* STABLE */
4012
4040
  }),
4013
4041
  vue.createVNode(vue.unref(design.TMagicButton), {
4014
4042
  size: "small",
4015
4043
  type: "primary",
4016
4044
  onClick: moveSpecifyLocationHandler
4017
4045
  }, {
4018
- default: vue.withCtx(() => _cache[13] || (_cache[13] = [
4019
- vue.createTextVNode("确认")
4020
- ])),
4021
- _: 1,
4022
- __: [13]
4046
+ default: vue.withCtx(() => [..._cache[13] || (_cache[13] = [
4047
+ vue.createTextVNode(
4048
+ "确认",
4049
+ -1
4050
+ /* CACHED */
4051
+ )
4052
+ ])]),
4053
+ _: 1
4054
+ /* STABLE */
4023
4055
  })
4024
4056
  ])
4025
4057
  ])
@@ -4153,7 +4185,7 @@
4153
4185
  innerHTML: _ctx.config.extra,
4154
4186
  style: { "color": "rgba(0, 0, 0, 0.45)" }
4155
4187
  }, null, 8, _hoisted_2$4)) : vue.createCommentVNode("v-if", true),
4156
- !_ctx.model[_ctx.name] || !_ctx.model[_ctx.name].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, _cache[1] || (_cache[1] = [
4188
+ !_ctx.model[_ctx.name] || !_ctx.model[_ctx.name].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [..._cache[1] || (_cache[1] = [
4157
4189
  vue.createElementVNode(
4158
4190
  "span",
4159
4191
  { class: "el-table__empty-text" },
@@ -4161,7 +4193,7 @@
4161
4193
  -1
4162
4194
  /* CACHED */
4163
4195
  )
4164
- ]))) : (vue.openBlock(true), vue.createElementBlock(
4196
+ ])])) : (vue.openBlock(true), vue.createElementBlock(
4165
4197
  vue.Fragment,
4166
4198
  { key: 2 },
4167
4199
  vue.renderList(_ctx.model[_ctx.name], (item, index) => {
@@ -4194,11 +4226,15 @@
4194
4226
  disabled: _ctx.disabled,
4195
4227
  onClick: addHandler
4196
4228
  }, {
4197
- default: vue.withCtx(() => _cache[2] || (_cache[2] = [
4198
- vue.createTextVNode("新增")
4199
- ])),
4200
- _: 1,
4201
- __: [2]
4229
+ default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
4230
+ vue.createTextVNode(
4231
+ "新增",
4232
+ -1
4233
+ /* CACHED */
4234
+ )
4235
+ ])]),
4236
+ _: 1
4237
+ /* STABLE */
4202
4238
  }, 8, ["size", "disabled"])) : vue.createCommentVNode("v-if", true),
4203
4239
  _ctx.config.enableToggleMode ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
4204
4240
  key: 4,
@@ -4206,11 +4242,15 @@
4206
4242
  size: "small",
4207
4243
  onClick: toggleMode
4208
4244
  }, {
4209
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
4210
- vue.createTextVNode("切换为表格")
4211
- ])),
4212
- _: 1,
4213
- __: [3]
4245
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
4246
+ vue.createTextVNode(
4247
+ "切换为表格",
4248
+ -1
4249
+ /* CACHED */
4250
+ )
4251
+ ])]),
4252
+ _: 1
4253
+ /* STABLE */
4214
4254
  }, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
4215
4255
  ]);
4216
4256
  };
@@ -5182,11 +5222,15 @@
5182
5222
  plain: "",
5183
5223
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
5184
5224
  }, {
5185
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
5186
- vue.createTextVNode("新增一行")
5187
- ])),
5188
- _: 1,
5189
- __: [3]
5225
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
5226
+ vue.createTextVNode(
5227
+ "新增一行",
5228
+ -1
5229
+ /* CACHED */
5230
+ )
5231
+ ])]),
5232
+ _: 1
5233
+ /* STABLE */
5190
5234
  }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
5191
5235
  vue.createElementVNode("div", _hoisted_5, [
5192
5236
  _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
@@ -5196,11 +5240,15 @@
5196
5240
  type: "primary",
5197
5241
  onClick: toggleMode
5198
5242
  }, {
5199
- default: vue.withCtx(() => _cache[4] || (_cache[4] = [
5200
- vue.createTextVNode("展开配置")
5201
- ])),
5202
- _: 1,
5203
- __: [4]
5243
+ default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
5244
+ vue.createTextVNode(
5245
+ "展开配置",
5246
+ -1
5247
+ /* CACHED */
5248
+ )
5249
+ ])]),
5250
+ _: 1
5251
+ /* STABLE */
5204
5252
  }, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
5205
5253
  _ctx.config.enableFullscreen !== false ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
5206
5254
  key: 1,
@@ -5236,11 +5284,15 @@
5236
5284
  disabled: _ctx.disabled,
5237
5285
  plain: ""
5238
5286
  }, {
5239
- default: vue.withCtx(() => _cache[5] || (_cache[5] = [
5240
- vue.createTextVNode("导入EXCEL")
5241
- ])),
5242
- _: 1,
5243
- __: [5]
5287
+ default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
5288
+ vue.createTextVNode(
5289
+ "导入EXCEL",
5290
+ -1
5291
+ /* CACHED */
5292
+ )
5293
+ ])]),
5294
+ _: 1
5295
+ /* STABLE */
5244
5296
  }, 8, ["disabled"])
5245
5297
  ]),
5246
5298
  _: 1
@@ -5254,11 +5306,15 @@
5254
5306
  plain: "",
5255
5307
  onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
5256
5308
  }, {
5257
- default: vue.withCtx(() => _cache[6] || (_cache[6] = [
5258
- vue.createTextVNode("清空")
5259
- ])),
5260
- _: 1,
5261
- __: [6]
5309
+ default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
5310
+ vue.createTextVNode(
5311
+ "清空",
5312
+ -1
5313
+ /* CACHED */
5314
+ )
5315
+ ])]),
5316
+ _: 1
5317
+ /* STABLE */
5262
5318
  }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
5263
5319
  ])
5264
5320
  ]),
@@ -6491,11 +6547,15 @@
6491
6547
  onClick: cancel,
6492
6548
  size: "small"
6493
6549
  }, {
6494
- default: vue.withCtx(() => _cache[2] || (_cache[2] = [
6495
- vue.createTextVNode("取 消")
6496
- ])),
6497
- _: 1,
6498
- __: [2]
6550
+ default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
6551
+ vue.createTextVNode(
6552
+ "取 消",
6553
+ -1
6554
+ /* CACHED */
6555
+ )
6556
+ ])]),
6557
+ _: 1
6558
+ /* STABLE */
6499
6559
  }),
6500
6560
  hasStep.value && stepActive.value > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
6501
6561
  key: 0,
@@ -6503,11 +6563,15 @@
6503
6563
  size: "small",
6504
6564
  onClick: preStep
6505
6565
  }, {
6506
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
6507
- vue.createTextVNode("上一步")
6508
- ])),
6509
- _: 1,
6510
- __: [3]
6566
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
6567
+ vue.createTextVNode(
6568
+ "上一步",
6569
+ -1
6570
+ /* CACHED */
6571
+ )
6572
+ ])]),
6573
+ _: 1
6574
+ /* STABLE */
6511
6575
  })) : vue.createCommentVNode("v-if", true),
6512
6576
  hasStep.value && stepCount.value > stepActive.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
6513
6577
  key: 1,
@@ -6515,11 +6579,15 @@
6515
6579
  size: "small",
6516
6580
  onClick: nextStep
6517
6581
  }, {
6518
- default: vue.withCtx(() => _cache[4] || (_cache[4] = [
6519
- vue.createTextVNode("下一步")
6520
- ])),
6521
- _: 1,
6522
- __: [4]
6582
+ default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
6583
+ vue.createTextVNode(
6584
+ "下一步",
6585
+ -1
6586
+ /* CACHED */
6587
+ )
6588
+ ])]),
6589
+ _: 1
6590
+ /* STABLE */
6523
6591
  })) : (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
6524
6592
  key: 2,
6525
6593
  type: "primary",
@@ -6675,11 +6743,15 @@
6675
6743
  type: "primary",
6676
6744
  onClick: editHandler
6677
6745
  }, {
6678
- default: vue.withCtx(() => _cache[0] || (_cache[0] = [
6679
- vue.createTextVNode("点击编辑")
6680
- ])),
6681
- _: 1,
6682
- __: [0]
6746
+ default: vue.withCtx(() => [..._cache[0] || (_cache[0] = [
6747
+ vue.createTextVNode(
6748
+ "点击编辑",
6749
+ -1
6750
+ /* CACHED */
6751
+ )
6752
+ ])]),
6753
+ _: 1
6754
+ /* STABLE */
6683
6755
  }),
6684
6756
  vue.createVNode(_sfc_main$c, {
6685
6757
  ref_key: "editor",
@@ -7646,22 +7718,30 @@
7646
7718
  size: "small",
7647
7719
  onClick: _cache[2] || (_cache[2] = ($event) => popoverVisible.value = false)
7648
7720
  }, {
7649
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
7650
- vue.createTextVNode("保持原样")
7651
- ])),
7652
- _: 1,
7653
- __: [3]
7721
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
7722
+ vue.createTextVNode(
7723
+ "保持原样",
7724
+ -1
7725
+ /* CACHED */
7726
+ )
7727
+ ])]),
7728
+ _: 1
7729
+ /* STABLE */
7654
7730
  }),
7655
7731
  vue.createVNode(vue.unref(design.TMagicButton), {
7656
7732
  type: "primary",
7657
7733
  size: "small",
7658
7734
  onClick: confirmTrimHandler
7659
7735
  }, {
7660
- default: vue.withCtx(() => _cache[4] || (_cache[4] = [
7661
- vue.createTextVNode("移除空格")
7662
- ])),
7663
- _: 1,
7664
- __: [4]
7736
+ default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
7737
+ vue.createTextVNode(
7738
+ "移除空格",
7739
+ -1
7740
+ /* CACHED */
7741
+ )
7742
+ ])]),
7743
+ _: 1
7744
+ /* STABLE */
7665
7745
  })
7666
7746
  ]),
7667
7747
  _cache[6] || (_cache[6] = vue.createElementVNode(
@@ -7960,11 +8040,15 @@
7960
8040
  default: vue.withCtx(() => [
7961
8041
  vue.renderSlot(_ctx.$slots, "footer", {}, () => [
7962
8042
  vue.createVNode(vue.unref(design.TMagicButton), { onClick: handleClose }, {
7963
- default: vue.withCtx(() => _cache[1] || (_cache[1] = [
7964
- vue.createTextVNode("关闭")
7965
- ])),
7966
- _: 1,
7967
- __: [1]
8043
+ default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
8044
+ vue.createTextVNode(
8045
+ "关闭",
8046
+ -1
8047
+ /* CACHED */
8048
+ )
8049
+ ])]),
8050
+ _: 1
8051
+ /* STABLE */
7968
8052
  }),
7969
8053
  vue.createVNode(vue.unref(design.TMagicButton), {
7970
8054
  type: "primary",
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.0-beta.6",
2
+ "version": "1.6.0",
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.17",
53
- "typescript": "^5.8.3",
54
- "@tmagic/utils": "1.6.0-beta.6",
55
- "@tmagic/form-schema": "1.6.0-beta.6",
56
- "@tmagic/design": "1.6.0-beta.6"
52
+ "vue": "^3.5.20",
53
+ "typescript": "^5.9.2",
54
+ "@tmagic/form-schema": "1.6.0",
55
+ "@tmagic/design": "1.6.0",
56
+ "@tmagic/utils": "1.6.0"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "typescript": {