@tmagic/form 1.2.0 → 1.2.1
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/dist/tmagic-form.js +6 -5
- package/dist/tmagic-form.js.map +1 -1
- package/dist/tmagic-form.umd.cjs +6 -5
- package/dist/tmagic-form.umd.cjs.map +1 -1
- package/package.json +3 -3
- package/src/containers/Table.vue +2 -1
- package/src/index.ts +1 -1
- package/src/schema.ts +8 -6
- package/src/utils/config.ts +1 -1
- package/src/utils/containerProps.ts +1 -1
- package/src/utils/createForm.ts +1 -1
- package/src/utils/form.ts +1 -1
- package/src/utils/useAddField.ts +1 -1
- package/types/containers/Table.vue.d.ts +6 -0
- package/types/schema.d.ts +7 -5
package/dist/tmagic-form.js
CHANGED
|
@@ -1511,11 +1511,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1511
1511
|
})) : createCommentVNode("", true),
|
|
1512
1512
|
createVNode(unref(TMagicTableColumn), {
|
|
1513
1513
|
label: "\u64CD\u4F5C",
|
|
1514
|
-
width:
|
|
1514
|
+
width: __props.config.operateColWidth || 55,
|
|
1515
1515
|
align: "center",
|
|
1516
1516
|
fixed: __props.config.fixed === false ? void 0 : "left"
|
|
1517
1517
|
}, {
|
|
1518
1518
|
default: withCtx((scope) => [
|
|
1519
|
+
renderSlot(_ctx.$slots, "operateCol", { scope }),
|
|
1519
1520
|
withDirectives(createVNode(unref(TMagicIcon), {
|
|
1520
1521
|
class: "m-table-delete-icon",
|
|
1521
1522
|
onClick: ($event) => removeHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
@@ -1528,8 +1529,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1528
1529
|
[vShow, showDelete(scope.$index + 1 + pagecontext.value * pagesize.value - 1)]
|
|
1529
1530
|
])
|
|
1530
1531
|
]),
|
|
1531
|
-
_:
|
|
1532
|
-
}, 8, ["fixed"]),
|
|
1532
|
+
_: 3
|
|
1533
|
+
}, 8, ["width", "fixed"]),
|
|
1533
1534
|
__props.sort && __props.model[unref(modelName)] && __props.model[unref(modelName)].length > 1 ? (openBlock(), createBlock(unref(TMagicTableColumn), {
|
|
1534
1535
|
key: 1,
|
|
1535
1536
|
label: "\u6392\u5E8F",
|
|
@@ -1623,10 +1624,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1623
1624
|
], 64);
|
|
1624
1625
|
}), 256))
|
|
1625
1626
|
]),
|
|
1626
|
-
_:
|
|
1627
|
+
_: 3
|
|
1627
1628
|
}, 8, ["row-key", "data", "border", "max-height"])) : createCommentVNode("", true)
|
|
1628
1629
|
]),
|
|
1629
|
-
_:
|
|
1630
|
+
_: 3
|
|
1630
1631
|
}, 8, ["disabled"]),
|
|
1631
1632
|
renderSlot(_ctx.$slots, "default"),
|
|
1632
1633
|
unref(addable) ? (openBlock(), createBlock(unref(TMagicButton), {
|