@tmagic/form 1.0.0-beta.14 → 1.0.0-beta.15
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/coverage/clover.xml +40 -40
- package/coverage/coverage-final.json +37 -37
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/src/Form.vue.html +1 -1
- package/coverage/lcov-report/src/FormDialog.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Col.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Container.vue.html +4 -4
- package/coverage/lcov-report/src/containers/Fieldset.vue.html +1 -1
- package/coverage/lcov-report/src/containers/GroupList.vue.html +1 -1
- package/coverage/lcov-report/src/containers/GroupListItem.vue.html +5 -5
- package/coverage/lcov-report/src/containers/Panel.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Row.vue.html +2 -2
- package/coverage/lcov-report/src/containers/Step.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Table.vue.html +5 -5
- package/coverage/lcov-report/src/containers/Tabs.vue.html +1 -1
- package/coverage/lcov-report/src/containers/index.html +1 -1
- package/coverage/lcov-report/src/fields/Cascader.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Checkbox.vue.html +1 -1
- package/coverage/lcov-report/src/fields/CheckboxGroup.vue.html +1 -1
- package/coverage/lcov-report/src/fields/ColorPicker.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Date.vue.html +1 -1
- package/coverage/lcov-report/src/fields/DateTime.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Daterange.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Display.vue.html +1 -1
- package/coverage/lcov-report/src/fields/DynamicField.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Hidden.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Link.vue.html +2 -2
- package/coverage/lcov-report/src/fields/Number.vue.html +1 -1
- package/coverage/lcov-report/src/fields/RadioGroup.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Select.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Switch.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Text.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Textarea.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Time.vue.html +1 -1
- package/coverage/lcov-report/src/fields/index.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov-report/src/theme/index.html +1 -1
- package/coverage/lcov-report/src/theme/index.scss.html +1 -1
- package/coverage/lcov-report/src/utils/config.ts.html +1 -1
- package/coverage/lcov-report/src/utils/createForm.ts.html +1 -1
- package/coverage/lcov-report/src/utils/fieldProps.ts.html +1 -1
- package/coverage/lcov-report/src/utils/form.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/coverage/lcov-report/src/utils/useAddField.ts.html +1 -1
- package/coverage/lcov.info +5 -5
- package/dist/tmagic-form.es.js +12 -12
- package/dist/tmagic-form.es.js.map +1 -1
- package/dist/tmagic-form.umd.js +12 -12
- package/dist/tmagic-form.umd.js.map +1 -1
- package/dist/types/src/Form.vue.d.ts +8 -0
- package/dist/types/src/FormDialog.vue.d.ts +16 -0
- package/dist/types/src/containers/Table.vue.d.ts +2601 -0
- package/dist/types/src/fields/Link.vue.d.ts +32 -0
- package/package.json +10 -6
- package/src/containers/Container.vue +2 -2
- package/src/containers/GroupListItem.vue +4 -4
- package/src/containers/Row.vue +1 -1
- package/src/containers/Table.vue +4 -4
- package/src/fields/Link.vue +1 -1
package/dist/tmagic-form.es.js
CHANGED
|
@@ -392,7 +392,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
392
392
|
}, 8, ["style", "prop", "label-width", "rules"]),
|
|
393
393
|
_ctx.config.tip ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
394
394
|
key: 0,
|
|
395
|
-
placement: "
|
|
395
|
+
placement: "left"
|
|
396
396
|
}, {
|
|
397
397
|
content: withCtx(() => [
|
|
398
398
|
createElementVNode("div", {
|
|
@@ -426,7 +426,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
426
426
|
], 64)) : createCommentVNode("", true),
|
|
427
427
|
_ctx.config.expand && _ctx.type !== "fieldset" ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
428
428
|
createVNode(_component_el_button, {
|
|
429
|
-
|
|
429
|
+
text: "",
|
|
430
430
|
onClick: _ctx.expandHandler
|
|
431
431
|
}, {
|
|
432
432
|
default: withCtx(() => [
|
|
@@ -707,7 +707,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
707
707
|
_: 1
|
|
708
708
|
}, 8, ["onClick"]),
|
|
709
709
|
createVNode(_component_el_button, {
|
|
710
|
-
|
|
710
|
+
text: "",
|
|
711
711
|
onClick: _ctx.expandHandler
|
|
712
712
|
}, {
|
|
713
713
|
default: withCtx(() => [
|
|
@@ -716,7 +716,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
716
716
|
_: 1
|
|
717
717
|
}, 8, ["onClick"]),
|
|
718
718
|
withDirectives(createVNode(_component_el_button, {
|
|
719
|
-
|
|
719
|
+
text: "",
|
|
720
720
|
icon: _ctx.Delete,
|
|
721
721
|
style: { "color": "#f56c6c" },
|
|
722
722
|
onClick: _ctx.removeHandler
|
|
@@ -725,7 +725,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
725
725
|
]),
|
|
726
726
|
_ctx.movable() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
727
727
|
withDirectives(createVNode(_component_el_button, {
|
|
728
|
-
|
|
728
|
+
text: "",
|
|
729
729
|
size: "small",
|
|
730
730
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.changeOrder(-1))
|
|
731
731
|
}, {
|
|
@@ -743,7 +743,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
743
743
|
[vShow, _ctx.index !== 0]
|
|
744
744
|
]),
|
|
745
745
|
withDirectives(createVNode(_component_el_button, {
|
|
746
|
-
|
|
746
|
+
text: "",
|
|
747
747
|
size: "small",
|
|
748
748
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.changeOrder(1))
|
|
749
749
|
}, {
|
|
@@ -1131,7 +1131,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1131
1131
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.items, (col, index) => {
|
|
1132
1132
|
return openBlock(), createBlock(_component_Col, {
|
|
1133
1133
|
key: col[_ctx.mForm?.keyProp || "__key"] ?? index,
|
|
1134
|
-
span:
|
|
1134
|
+
span: col.span || _ctx.config.span || 24 / _ctx.config.items.length,
|
|
1135
1135
|
config: col,
|
|
1136
1136
|
labelWidth: _ctx.config.labelWidth || _ctx.labelWidth,
|
|
1137
1137
|
expandMore: _ctx.expandMore,
|
|
@@ -1668,8 +1668,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1668
1668
|
}, {
|
|
1669
1669
|
default: withCtx((scope) => [
|
|
1670
1670
|
withDirectives(createVNode(_component_el_button, {
|
|
1671
|
-
|
|
1672
|
-
|
|
1671
|
+
type: "danger",
|
|
1672
|
+
text: "",
|
|
1673
1673
|
icon: _ctx.Delete,
|
|
1674
1674
|
onClick: ($event) => _ctx.removeHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1)
|
|
1675
1675
|
}, null, 8, ["icon", "onClick"]), [
|
|
@@ -1694,7 +1694,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1694
1694
|
plain: "",
|
|
1695
1695
|
size: "small",
|
|
1696
1696
|
icon: _ctx.ArrowUp,
|
|
1697
|
-
|
|
1697
|
+
text: "",
|
|
1698
1698
|
onClick: ($event) => _ctx.upHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1),
|
|
1699
1699
|
onDblclick: ($event) => _ctx.topHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1)
|
|
1700
1700
|
}, null, 8, ["icon", "onClick", "onDblclick"])
|
|
@@ -1711,7 +1711,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1711
1711
|
plain: "",
|
|
1712
1712
|
size: "small",
|
|
1713
1713
|
icon: _ctx.ArrowDown,
|
|
1714
|
-
|
|
1714
|
+
text: "",
|
|
1715
1715
|
onClick: ($event) => _ctx.downHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1),
|
|
1716
1716
|
onDblclick: ($event) => _ctx.bottomHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1)
|
|
1717
1717
|
}, null, 8, ["icon", "onClick", "onDblclick"])
|
|
@@ -2698,7 +2698,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2698
2698
|
style: normalizeStyle(_ctx.config.disabledCss || {})
|
|
2699
2699
|
}, toDisplayString(_ctx.displayText), 5)) : (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
2700
2700
|
createVNode(_component_el_button, {
|
|
2701
|
-
|
|
2701
|
+
text: "",
|
|
2702
2702
|
onClick: _ctx.editHandler
|
|
2703
2703
|
}, {
|
|
2704
2704
|
default: withCtx(() => [
|