@tmagic/form 1.0.6 → 1.1.0-beta.2
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.es.js +7 -8
- package/dist/tmagic-form.es.js.map +1 -1
- package/dist/tmagic-form.umd.js +18 -19
- package/dist/tmagic-form.umd.js.map +1 -1
- package/dist/types/src/containers/GroupListItem.vue.d.ts +2 -2
- package/dist/types/src/containers/Table.vue.d.ts +6 -6
- package/package.json +3 -3
- package/src/containers/Container.vue +1 -1
- package/src/containers/GroupListItem.vue +4 -4
- package/src/containers/Panel.vue +1 -1
- package/src/containers/Table.vue +1 -1
package/dist/tmagic-form.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('@element-plus/icons'), require('lodash-es'), require('element-plus'), require('sortablejs'), require('@tmagic/utils')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'vue', '@element-plus/icons', 'lodash-es', 'element-plus', 'sortablejs', '@tmagic/utils'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TMagicForm = {}, global.Vue, global.
|
|
5
|
-
})(this, (function (exports, vue,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('@element-plus/icons-vue'), require('lodash-es'), require('element-plus'), require('sortablejs'), require('@tmagic/utils')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'vue', '@element-plus/icons-vue', 'lodash-es', 'element-plus', 'sortablejs', '@tmagic/utils'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TMagicForm = {}, global.Vue, global.iconsVue, global.lodashEs, global.ElementPlus, global.Sortable, global.utils));
|
|
5
|
+
})(this, (function (exports, vue, iconsVue, lodashEs, elementPlus, Sortable, utils) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
|
|
172
172
|
const _sfc_main$v = vue.defineComponent({
|
|
173
173
|
name: "m-form-container",
|
|
174
|
-
components: { WarningFilled:
|
|
174
|
+
components: { WarningFilled: iconsVue.WarningFilled },
|
|
175
175
|
props: {
|
|
176
176
|
labelWidth: String,
|
|
177
177
|
expandMore: Boolean,
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
|
|
578
578
|
const _sfc_main$t = vue.defineComponent({
|
|
579
579
|
name: "m-form-group-list-item",
|
|
580
|
-
components: { CaretRight:
|
|
580
|
+
components: { CaretBottom: iconsVue.CaretBottom, CaretRight: iconsVue.CaretRight, CaretTop: iconsVue.CaretTop },
|
|
581
581
|
props: {
|
|
582
582
|
labelWidth: String,
|
|
583
583
|
model: {
|
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
rowConfig,
|
|
656
656
|
changeHandler,
|
|
657
657
|
length,
|
|
658
|
-
Delete:
|
|
658
|
+
Delete: iconsVue.Delete
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
});
|
|
@@ -664,12 +664,11 @@
|
|
|
664
664
|
const _hoisted_3$5 = /* @__PURE__ */ vue.createTextVNode("\u4E0B\u79FB");
|
|
665
665
|
const _hoisted_4$4 = ["innerHTML"];
|
|
666
666
|
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
667
|
-
const
|
|
668
|
-
const
|
|
667
|
+
const _component_CaretBottom = vue.resolveComponent("CaretBottom");
|
|
668
|
+
const _component_CaretRight = vue.resolveComponent("CaretRight");
|
|
669
669
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
670
670
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
671
|
-
const
|
|
672
|
-
const _component_CaretBottom = vue.resolveComponent("CaretBottom");
|
|
671
|
+
const _component_CaretTop = vue.resolveComponent("CaretTop");
|
|
673
672
|
const _component_m_form_container = vue.resolveComponent("m-form-container");
|
|
674
673
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
|
|
675
674
|
vue.createElementVNode("div", null, [
|
|
@@ -678,7 +677,7 @@
|
|
|
678
677
|
onClick: _ctx.expandHandler
|
|
679
678
|
}, {
|
|
680
679
|
default: vue.withCtx(() => [
|
|
681
|
-
_ctx.expand ? (vue.openBlock(), vue.createBlock(
|
|
680
|
+
_ctx.expand ? (vue.openBlock(), vue.createBlock(_component_CaretBottom, { key: 0 })) : (vue.openBlock(), vue.createBlock(_component_CaretRight, { key: 1 }))
|
|
682
681
|
]),
|
|
683
682
|
_: 1
|
|
684
683
|
}, 8, ["onClick"]),
|
|
@@ -709,7 +708,7 @@
|
|
|
709
708
|
_hoisted_2$5,
|
|
710
709
|
vue.createVNode(_component_el_icon, null, {
|
|
711
710
|
default: vue.withCtx(() => [
|
|
712
|
-
vue.createVNode(
|
|
711
|
+
vue.createVNode(_component_CaretTop)
|
|
713
712
|
]),
|
|
714
713
|
_: 1
|
|
715
714
|
})
|
|
@@ -915,7 +914,7 @@
|
|
|
915
914
|
|
|
916
915
|
const _sfc_main$r = vue.defineComponent({
|
|
917
916
|
name: "m-form-panel",
|
|
918
|
-
components: { CaretBottom:
|
|
917
|
+
components: { CaretBottom: iconsVue.CaretBottom, CaretRight: iconsVue.CaretRight },
|
|
919
918
|
props: {
|
|
920
919
|
labelWidth: String,
|
|
921
920
|
model: {
|
|
@@ -1390,11 +1389,11 @@
|
|
|
1390
1389
|
excelBtn,
|
|
1391
1390
|
modelName,
|
|
1392
1391
|
updateKey,
|
|
1393
|
-
ArrowDown:
|
|
1394
|
-
ArrowUp:
|
|
1395
|
-
Delete:
|
|
1396
|
-
FullScreen:
|
|
1397
|
-
Grid:
|
|
1392
|
+
ArrowDown: iconsVue.ArrowDown,
|
|
1393
|
+
ArrowUp: iconsVue.ArrowUp,
|
|
1394
|
+
Delete: iconsVue.Delete,
|
|
1395
|
+
FullScreen: iconsVue.FullScreen,
|
|
1396
|
+
Grid: iconsVue.Grid,
|
|
1398
1397
|
data: vue.computed(() => props.model[modelName.value].filter((item, index) => index >= pagecontext.value * pagesize.value && index + 1 <= (pagecontext.value + 1) * pagesize.value)),
|
|
1399
1398
|
addable: vue.computed(() => {
|
|
1400
1399
|
if (!props.model[modelName.value].length) {
|