@ctzy-web-client/plugin-component-vue 1.0.26 → 1.0.27
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/es/_virtual/_plugin-vue_export-helper.mjs +11 -0
- package/es/advance-select/advance-operation.mjs +48 -51
- package/es/advance-select/advance-option.mjs +128 -163
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +11 -5
- package/es/advance-select/advance-select.mjs +323 -370
- package/es/advance-select/events-helpers.mjs +9 -0
- package/es/advance-select/index.mjs +9 -0
- package/es/advance-select/use-advance-option.mjs +9 -0
- package/es/advance-select/use-advance-select.mjs +9 -0
- package/es/application-slot/application-slot.mjs +9 -0
- package/es/application-slot/breadcrumb-item.mjs +26 -20
- package/es/application-slot/header-tools-item.mjs +26 -20
- package/es/application-slot/index.mjs +9 -0
- package/es/breadcrumb-select/breadcrumb-select.mjs +123 -137
- package/es/breadcrumb-select/index.mjs +9 -0
- package/es/components.mjs +9 -0
- package/es/contextmenu/contextmenu-item.mjs +24 -19
- package/es/contextmenu/contextmenu.mjs +68 -73
- package/es/contextmenu/index.mjs +9 -0
- package/es/contextmenu/use-contextmenu.mjs +10 -1
- package/es/data-form/data-form-item.mjs +41 -49
- package/es/data-form/data-form.mjs +176 -213
- package/es/data-form/dynamic-component.mjs +9 -0
- package/es/data-form/form-components/Blots/AtBlot.mjs +9 -0
- package/es/data-form/form-components/bwa-date-picker.mjs +50 -51
- package/es/data-form/form-components/bwa-date-time-picker.mjs +55 -56
- package/es/data-form/form-components/bwa-input-float.mjs +48 -48
- package/es/data-form/form-components/bwa-input-integer.mjs +61 -68
- package/es/data-form/form-components/bwa-input.mjs +43 -43
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -40
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +230 -555
- package/es/data-form/form-components/bwa-rich-text.mjs +326 -404
- package/es/data-form/form-components/bwa-select.mjs +81 -84
- package/es/data-form/form-components/bwa-textarea.mjs +38 -38
- package/es/data-form/form-components/bwa-upload.mjs +160 -173
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -35
- package/es/data-form/form-components/bwa-user-select.mjs +72 -86
- package/es/data-form/index.mjs +9 -0
- package/es/data-table/data-column-view.mjs +124 -146
- package/es/data-table/data-table-card.mjs +49 -48
- package/es/data-table/data-table-column.mjs +55 -58
- package/es/data-table/data-table.mjs +328 -404
- package/es/data-table/dynamic-component.mjs +9 -0
- package/es/data-table/index.mjs +9 -0
- package/es/data-table/use-datatable-drag.mjs +9 -0
- package/es/datatable-settings/datatable-settings.mjs +286 -328
- package/es/datatable-settings/index.mjs +9 -0
- package/es/date-range/date-picker.mjs +125 -131
- package/es/date-range/date-range.mjs +173 -216
- package/es/date-range/index.mjs +9 -0
- package/es/drag-list/constants.mjs +10 -0
- package/es/drag-list/drag-item.mjs +51 -56
- package/es/drag-list/drag-list.mjs +58 -60
- package/es/drag-list/index.mjs +9 -0
- package/es/drag-list/use-drag-list.mjs +10 -1
- package/es/dragable/constants.mjs +10 -0
- package/es/dragable/dragable-item.mjs +27 -23
- package/es/dragable/dragable-operation.mjs +33 -32
- package/es/dragable/dragable.mjs +33 -32
- package/es/dragable/index.mjs +9 -0
- package/es/dragable/use-dragable.mjs +9 -0
- package/es/filter-panel/conditions/condition.mjs +9 -0
- package/es/filter-panel/conditions/date-range-condition.mjs +51 -50
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +82 -99
- package/es/filter-panel/conditions/department-condition/department-node.mjs +69 -73
- package/es/filter-panel/conditions/index.mjs +9 -0
- package/es/filter-panel/conditions/input-condition.mjs +88 -91
- package/es/filter-panel/conditions/multi-user-condition.mjs +66 -67
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +44 -54
- package/es/filter-panel/conditions/single-menu-condition.mjs +71 -65
- package/es/filter-panel/conditions/single-user-condition.mjs +66 -67
- package/es/filter-panel/filter-panel-item.mjs +51 -55
- package/es/filter-panel/filter-panel.mjs +147 -156
- package/es/filter-panel/index.mjs +9 -0
- package/es/filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/filter-panel/use-filter-panel.mjs +9 -0
- package/es/hooks/use-data/index.mjs +9 -0
- package/es/index.mjs +9 -0
- package/es/layout/index.mjs +9 -0
- package/es/layout/layout.mjs +87 -85
- package/es/make-installer.mjs +9 -0
- package/es/math/Rectangle.mjs +10 -0
- package/es/menu/index.mjs +9 -0
- package/es/menu/menu-item.mjs +65 -70
- package/es/menu/menu.mjs +64 -70
- package/es/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.mjs +680 -454
- package/es/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.mjs +108 -46
- package/es/panel/index.mjs +9 -0
- package/es/panel/panel.mjs +49 -53
- package/es/panel-tabs/index.mjs +9 -0
- package/es/panel-tabs/panel-tabs.mjs +9 -0
- package/es/pct-filter-panel/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +73 -75
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +77 -77
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +345 -374
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +149 -154
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +52 -56
- package/es/pct-filter-panel/pct-filter-panel.mjs +235 -248
- package/es/pct-filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/pct-filter-panel/use-filter-panel.mjs +9 -0
- package/es/plugins.mjs +9 -0
- package/es/progress/index.mjs +9 -0
- package/es/progress/progress-item.mjs +71 -81
- package/es/progress/progress.mjs +74 -78
- package/es/progress/use-progress.mjs +9 -0
- package/es/utils/db.mjs +9 -0
- package/es/utils.css +1 -0
- package/es/utils.mjs +9 -0
- package/es/where-filter-panel/index.mjs +9 -1
- package/es/where-filter-panel/use-where-filter-panel.mjs +9 -0
- package/es/where-filter-panel/where-filter-panel.mjs +21 -15
- package/lib/_virtual/_plugin-vue_export-helper.js +11 -0
- package/lib/advance-select/advance-operation.js +47 -50
- package/lib/advance-select/advance-option.js +127 -162
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +11 -6
- package/lib/advance-select/advance-select.js +322 -369
- package/lib/advance-select/events-helpers.js +9 -0
- package/lib/advance-select/index.js +9 -0
- package/lib/advance-select/use-advance-option.js +9 -0
- package/lib/advance-select/use-advance-select.js +9 -0
- package/lib/application-slot/application-slot.js +9 -0
- package/lib/application-slot/breadcrumb-item.js +25 -19
- package/lib/application-slot/header-tools-item.js +25 -19
- package/lib/application-slot/index.js +9 -0
- package/lib/breadcrumb-select/breadcrumb-select.js +122 -136
- package/lib/breadcrumb-select/index.js +9 -0
- package/lib/components.js +9 -0
- package/lib/contextmenu/contextmenu-item.js +23 -18
- package/lib/contextmenu/contextmenu.js +67 -72
- package/lib/contextmenu/index.js +9 -0
- package/lib/contextmenu/use-contextmenu.js +10 -1
- package/lib/data-form/data-form-item.js +40 -48
- package/lib/data-form/data-form.js +175 -212
- package/lib/data-form/dynamic-component.js +9 -0
- package/lib/data-form/form-components/Blots/AtBlot.js +9 -0
- package/lib/data-form/form-components/bwa-date-picker.js +49 -50
- package/lib/data-form/form-components/bwa-date-time-picker.js +54 -55
- package/lib/data-form/form-components/bwa-input-float.js +47 -47
- package/lib/data-form/form-components/bwa-input-integer.js +60 -67
- package/lib/data-form/form-components/bwa-input.js +42 -42
- package/lib/data-form/form-components/bwa-multi-select.js +39 -39
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +229 -554
- package/lib/data-form/form-components/bwa-rich-text.js +325 -403
- package/lib/data-form/form-components/bwa-select.js +80 -83
- package/lib/data-form/form-components/bwa-textarea.js +37 -37
- package/lib/data-form/form-components/bwa-upload.js +159 -172
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -34
- package/lib/data-form/form-components/bwa-user-select.js +71 -85
- package/lib/data-form/index.js +9 -0
- package/lib/data-table/data-column-view.js +124 -146
- package/lib/data-table/data-table-card.js +49 -48
- package/lib/data-table/data-table-column.js +54 -57
- package/lib/data-table/data-table.js +327 -403
- package/lib/data-table/dynamic-component.js +9 -0
- package/lib/data-table/index.js +9 -0
- package/lib/data-table/use-datatable-drag.js +9 -0
- package/lib/datatable-settings/datatable-settings.js +285 -327
- package/lib/datatable-settings/index.js +9 -0
- package/lib/date-range/date-picker.js +124 -130
- package/lib/date-range/date-range.js +172 -215
- package/lib/date-range/index.js +9 -0
- package/lib/drag-list/constants.js +10 -0
- package/lib/drag-list/drag-item.js +50 -55
- package/lib/drag-list/drag-list.js +57 -59
- package/lib/drag-list/index.js +9 -0
- package/lib/drag-list/use-drag-list.js +10 -1
- package/lib/dragable/constants.js +10 -0
- package/lib/dragable/dragable-item.js +26 -22
- package/lib/dragable/dragable-operation.js +32 -31
- package/lib/dragable/dragable.js +32 -31
- package/lib/dragable/index.js +9 -0
- package/lib/dragable/use-dragable.js +9 -0
- package/lib/filter-panel/conditions/condition.js +9 -0
- package/lib/filter-panel/conditions/date-range-condition.js +50 -49
- package/lib/filter-panel/conditions/department-condition/department-condition.js +81 -98
- package/lib/filter-panel/conditions/department-condition/department-node.js +68 -72
- package/lib/filter-panel/conditions/index.js +9 -0
- package/lib/filter-panel/conditions/input-condition.js +87 -90
- package/lib/filter-panel/conditions/multi-user-condition.js +65 -66
- package/lib/filter-panel/conditions/multiple-menu-condition.js +43 -53
- package/lib/filter-panel/conditions/single-menu-condition.js +70 -64
- package/lib/filter-panel/conditions/single-user-condition.js +65 -66
- package/lib/filter-panel/filter-panel-item.js +50 -54
- package/lib/filter-panel/filter-panel.js +146 -155
- package/lib/filter-panel/index.js +9 -0
- package/lib/filter-panel/use-filter-panel-item.js +9 -0
- package/lib/filter-panel/use-filter-panel.js +9 -0
- package/lib/hooks/use-data/index.js +9 -0
- package/lib/index.js +9 -0
- package/lib/layout/index.js +9 -0
- package/lib/layout/layout.js +86 -84
- package/lib/make-installer.js +9 -0
- package/lib/math/Rectangle.js +10 -0
- package/lib/menu/index.js +9 -0
- package/lib/menu/menu-item.js +64 -69
- package/lib/menu/menu.js +63 -69
- package/lib/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.js +685 -451
- package/lib/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.js +109 -44
- package/lib/panel/index.js +9 -0
- package/lib/panel/panel.js +48 -52
- package/lib/panel-tabs/index.js +9 -0
- package/lib/panel-tabs/panel-tabs.js +9 -0
- package/lib/pct-filter-panel/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +72 -74
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +76 -76
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +344 -373
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +148 -153
- package/lib/pct-filter-panel/pct-filter-panel-item.js +51 -55
- package/lib/pct-filter-panel/pct-filter-panel.js +234 -247
- package/lib/pct-filter-panel/use-filter-panel-item.js +9 -0
- package/lib/pct-filter-panel/use-filter-panel.js +9 -0
- package/lib/plugins.js +9 -0
- package/lib/progress/index.js +9 -0
- package/lib/progress/progress-item.js +70 -80
- package/lib/progress/progress.js +73 -77
- package/lib/progress/use-progress.js +9 -0
- package/lib/utils/db.js +9 -0
- package/lib/utils.css +1 -0
- package/lib/utils.js +9 -0
- package/lib/where-filter-panel/index.js +9 -0
- package/lib/where-filter-panel/use-where-filter-panel.js +9 -0
- package/lib/where-filter-panel/where-filter-panel.js +20 -14
- package/package.json +1 -1
- package/style/index.css +1 -1
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -32
|
@@ -7,78 +7,73 @@ var ElementPlus = require('element-plus');
|
|
|
7
7
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
8
8
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
default: false,
|
|
19
|
-
},
|
|
20
|
-
menus: {
|
|
21
|
-
type: Array,
|
|
22
|
-
default: () => [],
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
emits: ['select'],
|
|
26
|
-
setup(__props, { emit }) {
|
|
27
|
-
|
|
28
|
-
const props = __props;
|
|
29
|
-
|
|
30
|
-
defineOptions({ name: 'BwaContextmenu' });
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const ns = webBaseClientVue.useNamespace('contextmenu');
|
|
37
|
-
|
|
38
|
-
const scrollbarRef = vue.ref(null);
|
|
39
|
-
|
|
40
|
-
const clickHandle = (item) => {
|
|
41
|
-
emit('select', item);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
vue.onMounted(() => {
|
|
45
|
-
vue.watch(
|
|
46
|
-
vue.computed(() => props.visible),
|
|
47
|
-
(visible) => {
|
|
48
|
-
if (!visible) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
vue.unref(scrollbarRef).scrollTo(0, 0);
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
return (_ctx, _cache) => {
|
|
58
|
-
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
59
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
|
60
|
-
}, [
|
|
61
|
-
vue.createVNode(vue.unref(ElementPlus.ElScrollbar), {
|
|
62
|
-
"max-height": "400px",
|
|
63
|
-
ref_key: "scrollbarRef",
|
|
64
|
-
ref: scrollbarRef
|
|
65
|
-
}, {
|
|
66
|
-
default: vue.withCtx(() => [
|
|
67
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.menus, (menu) => {
|
|
68
|
-
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
69
|
-
onClick: $event => (clickHandle(menu)),
|
|
70
|
-
key: menu.id,
|
|
71
|
-
class: vue.normalizeClass(vue.unref(ns).b('item'))
|
|
72
|
-
}, vue.toDisplayString(menu.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_1))
|
|
73
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
74
|
-
]),
|
|
75
|
-
_: 1 /* STABLE */
|
|
76
|
-
}, 512 /* NEED_PATCH */)
|
|
77
|
-
], 2 /* CLASS */))
|
|
10
|
+
// Inject __name helper
|
|
11
|
+
if (typeof __name === 'undefined') {
|
|
12
|
+
function __name(obj, name) {
|
|
13
|
+
Object.defineProperty(obj, "name", {
|
|
14
|
+
value: name,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
}
|
|
78
18
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
19
|
+
const _hoisted_1 = ["onClick"];
|
|
20
|
+
const __default__ = vue.defineComponent({ name: "BwaContextmenu" });
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
22
|
+
props: {
|
|
23
|
+
visible: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
menus: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => []
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["select"],
|
|
33
|
+
setup(__props, { emit: __emit }) {
|
|
34
|
+
;
|
|
35
|
+
const props = __props;
|
|
36
|
+
const emit = __emit;
|
|
37
|
+
const ns = webBaseClientVue.useNamespace("contextmenu");
|
|
38
|
+
const scrollbarRef = vue.ref(null);
|
|
39
|
+
const clickHandle = (item) => {
|
|
40
|
+
emit("select", item);
|
|
41
|
+
};
|
|
42
|
+
vue.onMounted(() => {
|
|
43
|
+
vue.watch(
|
|
44
|
+
vue.computed(() => props.visible),
|
|
45
|
+
(visible) => {
|
|
46
|
+
if (!visible) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
vue.unref(scrollbarRef).scrollTo(0, 0);
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
});
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
55
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
56
|
+
}, [
|
|
57
|
+
vue.createVNode(vue.unref(ElementPlus.ElScrollbar), {
|
|
58
|
+
"max-height": "400px",
|
|
59
|
+
ref_key: "scrollbarRef",
|
|
60
|
+
ref: scrollbarRef
|
|
61
|
+
}, {
|
|
62
|
+
default: vue.withCtx(() => [
|
|
63
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.menus, (menu) => {
|
|
64
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
65
|
+
onClick: ($event) => clickHandle(menu),
|
|
66
|
+
key: menu.id,
|
|
67
|
+
class: vue.normalizeClass(vue.unref(ns).b("item"))
|
|
68
|
+
}, vue.toDisplayString(menu.label), 11, _hoisted_1);
|
|
69
|
+
}), 128))
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 512)
|
|
73
|
+
], 2);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
var Contextmenu = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "contextmenu.vue"]]);
|
|
83
78
|
|
|
84
79
|
exports["default"] = Contextmenu;
|
package/lib/contextmenu/index.js
CHANGED
|
@@ -5,6 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var contextmenu = require('./contextmenu.js');
|
|
6
6
|
var useContextmenu = require('./use-contextmenu.js');
|
|
7
7
|
|
|
8
|
+
// Inject __name helper
|
|
9
|
+
if (typeof __name === 'undefined') {
|
|
10
|
+
function __name(obj, name) {
|
|
11
|
+
Object.defineProperty(obj, "name", {
|
|
12
|
+
value: name,
|
|
13
|
+
configurable: true
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
8
17
|
contextmenu["default"].install = (app) => {
|
|
9
18
|
contextmenu["default"]._context = app._context;
|
|
10
19
|
app.component(contextmenu["default"].name, contextmenu["default"]);
|
|
@@ -3,10 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var index = require('../node_modules/.pnpm/@vueuse_core@9.
|
|
6
|
+
var index = require('../node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_/node_modules/@vueuse/core/index.js');
|
|
7
7
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
8
8
|
var contextmenu = require('./contextmenu.js');
|
|
9
9
|
|
|
10
|
+
// Inject __name helper
|
|
11
|
+
if (typeof __name === 'undefined') {
|
|
12
|
+
function __name(obj, name) {
|
|
13
|
+
Object.defineProperty(obj, "name", {
|
|
14
|
+
value: name,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
10
19
|
function useContextmenu({
|
|
11
20
|
menus = []
|
|
12
21
|
} = {}) {
|
|
@@ -8,46 +8,40 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
8
8
|
var dynamicComponent = require('./dynamic-component.js');
|
|
9
9
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
// Inject __name helper
|
|
12
|
+
if (typeof __name === 'undefined') {
|
|
13
|
+
function __name(obj, name) {
|
|
14
|
+
Object.defineProperty(obj, "name", {
|
|
15
|
+
value: name,
|
|
16
|
+
configurable: true
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const __default__ = vue.defineComponent({ name: "BwaDataFormItem" });
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
22
|
+
props: {
|
|
23
|
+
name: { type: String },
|
|
24
|
+
isShowLabelColon: { type: Boolean }
|
|
25
|
+
},
|
|
17
26
|
setup(__props) {
|
|
18
|
-
|
|
19
|
-
const props = __props;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return attrs.label || (formColumn ? formColumn.title + (props.isShowLabelColon ? ' :' : '') : '');
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
const _formContext = {};
|
|
40
|
-
_formContext.disabled = vue.computed(
|
|
41
|
-
() => formContext.disabled || formColumn?.disabled
|
|
42
|
-
);
|
|
43
|
-
Reflect.setPrototypeOf(_formContext, formContext);
|
|
44
|
-
|
|
45
|
-
vue.provide(ElementPlus.formContextKey, vue.reactive(_formContext));
|
|
46
|
-
|
|
47
|
-
return (_ctx, _cache) => {
|
|
48
|
-
return (vue.unref(formColumn) && vue.unref(formColumn).visible)
|
|
49
|
-
? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElFormItem), vue.mergeProps({ key: 0 }, vue.unref(attrs), {
|
|
50
|
-
label: vue.unref(label),
|
|
27
|
+
;
|
|
28
|
+
const props = __props;
|
|
29
|
+
const attrs = vue.useAttrs();
|
|
30
|
+
const dataForm = vue.inject(webBaseClientVue.dataFormKey);
|
|
31
|
+
const formContext = vue.inject(ElementPlus.formContextKey, {});
|
|
32
|
+
const formColumn = dataForm.getDisplayColumns().find((col) => col.fullAttrName == props.name);
|
|
33
|
+
const label = vue.computed(() => {
|
|
34
|
+
return attrs.label || (formColumn ? formColumn.title + (props.isShowLabelColon ? " :" : "") : "");
|
|
35
|
+
});
|
|
36
|
+
const _formContext = {};
|
|
37
|
+
_formContext.disabled = vue.computed(
|
|
38
|
+
() => formContext.disabled || (formColumn == null ? void 0 : formColumn.disabled)
|
|
39
|
+
);
|
|
40
|
+
Reflect.setPrototypeOf(_formContext, formContext);
|
|
41
|
+
vue.provide(ElementPlus.formContextKey, vue.reactive(_formContext));
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return vue.unref(formColumn) && vue.unref(formColumn).visible ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElFormItem), vue.mergeProps({ key: 0 }, vue.unref(attrs), {
|
|
44
|
+
label: label.value,
|
|
51
45
|
class: { custom: !_ctx.$slots.default },
|
|
52
46
|
prop: vue.unref(formColumn).fullAttrName
|
|
53
47
|
}), {
|
|
@@ -60,16 +54,14 @@ return (_ctx, _cache) => {
|
|
|
60
54
|
vue.createVNode(vue.unref(dynamicComponent["default"]), {
|
|
61
55
|
column: vue.unref(formColumn),
|
|
62
56
|
record: vue.unref(dataForm).data
|
|
63
|
-
}, null, 8
|
|
57
|
+
}, null, 8, ["column", "record"])
|
|
64
58
|
])
|
|
65
59
|
]),
|
|
66
|
-
_: 3
|
|
67
|
-
}, 16
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
var DataFormItem = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"data-form-item.vue"]]);
|
|
60
|
+
_: 3
|
|
61
|
+
}, 16, ["label", "class", "prop"])) : vue.createCommentVNode("v-if", true);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
var DataFormItem = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "data-form-item.vue"]]);
|
|
74
66
|
|
|
75
67
|
exports["default"] = DataFormItem;
|
|
@@ -9,218 +9,181 @@ var lodash = require('lodash');
|
|
|
9
9
|
var dataFormItem = require('./data-form-item.js');
|
|
10
10
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
default: true,
|
|
21
|
-
},
|
|
22
|
-
//注册id 和 记录数据
|
|
23
|
-
record: {
|
|
24
|
-
type: Object,
|
|
25
|
-
},
|
|
26
|
-
recID: {
|
|
27
|
-
type: String,
|
|
28
|
-
},
|
|
29
|
-
labelPosition: {
|
|
30
|
-
type: String,
|
|
31
|
-
},
|
|
32
|
-
labelWidth: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: '',
|
|
35
|
-
},
|
|
36
|
-
rules: {
|
|
37
|
-
type: Object,
|
|
38
|
-
default: () => ({}),
|
|
39
|
-
},
|
|
40
|
-
validateOnRuleChange: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: false,
|
|
43
|
-
},
|
|
44
|
-
isShowLabelColon: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: true,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
setup(__props, { expose }) {
|
|
50
|
-
|
|
51
|
-
const props = __props;
|
|
52
|
-
|
|
53
|
-
defineOptions({ name: 'BwaDataForm' });
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const attrs = vue.useAttrs();
|
|
58
|
-
|
|
59
|
-
const dataForm = props.dataForm;
|
|
60
|
-
|
|
61
|
-
//表单对象的引用
|
|
62
|
-
const dataFormElRef = vue.ref();
|
|
63
|
-
|
|
64
|
-
//验证规则
|
|
65
|
-
const rules = vue.computed(() => {
|
|
66
|
-
let data = {};
|
|
67
|
-
|
|
68
|
-
dataForm.getDisplayColumns().forEach((item) => {
|
|
69
|
-
data[item.fullAttrName] = (
|
|
70
|
-
item.required ? [{ required: true, message: item.title + '必填!' }] : []
|
|
71
|
-
).concat(item.rules);
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
return lodash.mergeWith(
|
|
75
|
-
{},
|
|
76
|
-
data,
|
|
77
|
-
props.rules,
|
|
78
|
-
function customizer(objValue, srcValue) {
|
|
79
|
-
if (lodash.isArray(objValue)) {
|
|
80
|
-
return objValue.concat(srcValue);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
//计算后的描述宽度
|
|
87
|
-
const computedLabelWidth = vue.computed(() => {
|
|
88
|
-
if (props.labelWidth) {
|
|
89
|
-
return props.labelWidth;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
let labelWidth = 0;
|
|
93
|
-
|
|
94
|
-
if (props.labelPosition != 'top') {
|
|
95
|
-
let maxLabelCharCount = 0;
|
|
96
|
-
dataForm.getDisplayColumns().forEach((item) => {
|
|
97
|
-
maxLabelCharCount = Math.max(
|
|
98
|
-
maxLabelCharCount,
|
|
99
|
-
item.title.length + (item.required ? 1 : 0)
|
|
100
|
-
);
|
|
101
|
-
});
|
|
102
|
-
labelWidth = (maxLabelCharCount + 1) * 18;
|
|
103
|
-
}
|
|
104
|
-
return labelWidth + 'px';
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
if (props.autoLoad) {
|
|
108
|
-
//监听recid的变化 是否自动加载数据
|
|
109
|
-
vue.watch(
|
|
110
|
-
vue.computed(() => props.record),
|
|
111
|
-
async () => {
|
|
112
|
-
if (props.recID) {
|
|
113
|
-
try {
|
|
114
|
-
await dataForm.loadDataByRecId(props.recID);
|
|
115
|
-
} catch (e) {
|
|
116
|
-
console.error(e);
|
|
117
|
-
ElementPlus.ElMessage.error('获取记录失败。');
|
|
118
|
-
}
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (props.record) {
|
|
123
|
-
dataForm.setData(props.record);
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
dataForm.setData();
|
|
128
|
-
},
|
|
129
|
-
{ immediate: true }
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
//当前data table 上下文对象
|
|
134
|
-
vue.provide(webBaseClientVue.dataFormKey, dataForm);
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* 表单验证
|
|
138
|
-
* @param {*} data
|
|
139
|
-
*/
|
|
140
|
-
const validate = (callback) => {
|
|
141
|
-
return dataFormElRef.value.validate(callback);
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
window.dataFormElRef = dataFormElRef;
|
|
145
|
-
window.aaavvv = validate;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* 提交表单
|
|
149
|
-
* @param {Object} 额外附加的提交数据
|
|
150
|
-
*/
|
|
151
|
-
const submit = (data) => {
|
|
152
|
-
return validate()
|
|
153
|
-
.then(() => {
|
|
154
|
-
dataForm
|
|
155
|
-
.submit(data)
|
|
156
|
-
.then(() => {
|
|
157
|
-
ElementPlus.ElMessage.info('保存成功!');
|
|
158
|
-
})
|
|
159
|
-
.catch((e) => ElementPlus.ElMessage.error(e.message));
|
|
160
|
-
})
|
|
161
|
-
.catch((result) => {
|
|
162
|
-
console.log(result);
|
|
163
|
-
});
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
vue.onMounted(() => {
|
|
167
|
-
vue.unref(dataForm).formValivators.push(vue.unref(dataFormElRef));
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
vue.onBeforeUnmount(() => {
|
|
171
|
-
const _dataFormEl = vue.unref(dataFormElRef);
|
|
172
|
-
vue.unref(dataForm).formValivators = vue.unref(dataForm).formValivators.filter(
|
|
173
|
-
(validate) => validate !== _dataFormEl
|
|
174
|
-
);
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
expose({
|
|
178
|
-
dataForm,
|
|
179
|
-
dataFormElRef,
|
|
180
|
-
validate,
|
|
181
|
-
submit,
|
|
182
|
-
rules,
|
|
183
|
-
computedLabelWidth,
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
return (_ctx, _cache) => {
|
|
187
|
-
return (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElForm), vue.mergeProps({
|
|
188
|
-
ref_key: "dataFormElRef",
|
|
189
|
-
ref: dataFormElRef
|
|
190
|
-
}, vue.unref(attrs), {
|
|
191
|
-
model: vue.unref(dataForm).data,
|
|
192
|
-
"label-position": __props.labelPosition,
|
|
193
|
-
"label-width": vue.unref(computedLabelWidth),
|
|
194
|
-
rules: vue.unref(rules),
|
|
195
|
-
"validate-on-rule-change": __props.validateOnRuleChange,
|
|
196
|
-
disabled: vue.unref(dataForm).disabled
|
|
197
|
-
}), {
|
|
198
|
-
default: vue.withCtx(() => [
|
|
199
|
-
vue.renderSlot(_ctx.$slots, "default", { dataForm: vue.unref(dataForm) }, () => [
|
|
200
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(dataForm).getDisplayColumns(), (column) => {
|
|
201
|
-
return (vue.openBlock(), vue.createBlock(dataFormItem["default"], {
|
|
202
|
-
key: column.fullAttrName,
|
|
203
|
-
name: column.fullAttrName,
|
|
204
|
-
isShowLabelColon: __props.isShowLabelColon
|
|
205
|
-
}, {
|
|
206
|
-
default: vue.withCtx(() => [
|
|
207
|
-
vue.renderSlot(_ctx.$slots, 'form-item-' + column.fullAttrName, {
|
|
208
|
-
column: column,
|
|
209
|
-
record: vue.unref(dataForm).data,
|
|
210
|
-
dataForm: vue.unref(dataForm)
|
|
211
|
-
})
|
|
212
|
-
]),
|
|
213
|
-
_: 2 /* DYNAMIC */
|
|
214
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["name", "isShowLabelColon"]))
|
|
215
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
216
|
-
])
|
|
217
|
-
]),
|
|
218
|
-
_: 3 /* FORWARDED */
|
|
219
|
-
}, 16 /* FULL_PROPS */, ["model", "label-position", "label-width", "rules", "validate-on-rule-change", "disabled"]))
|
|
12
|
+
// Inject __name helper
|
|
13
|
+
if (typeof __name === 'undefined') {
|
|
14
|
+
function __name(obj, name) {
|
|
15
|
+
Object.defineProperty(obj, "name", {
|
|
16
|
+
value: name,
|
|
17
|
+
configurable: true
|
|
18
|
+
});
|
|
19
|
+
}
|
|
220
20
|
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
21
|
+
const __default__ = vue.defineComponent({ name: "BwaDataForm" });
|
|
22
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
23
|
+
props: {
|
|
24
|
+
dataForm: {
|
|
25
|
+
type: Object
|
|
26
|
+
},
|
|
27
|
+
autoLoad: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: true
|
|
30
|
+
},
|
|
31
|
+
record: {
|
|
32
|
+
type: Object
|
|
33
|
+
},
|
|
34
|
+
recID: {
|
|
35
|
+
type: String
|
|
36
|
+
},
|
|
37
|
+
labelPosition: {
|
|
38
|
+
type: String
|
|
39
|
+
},
|
|
40
|
+
labelWidth: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
rules: {
|
|
45
|
+
type: Object,
|
|
46
|
+
default: () => ({})
|
|
47
|
+
},
|
|
48
|
+
validateOnRuleChange: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
isShowLabelColon: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: true
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
setup(__props, { expose: __expose }) {
|
|
58
|
+
;
|
|
59
|
+
const props = __props;
|
|
60
|
+
const attrs = vue.useAttrs();
|
|
61
|
+
const dataForm = props.dataForm;
|
|
62
|
+
const dataFormElRef = vue.ref();
|
|
63
|
+
const rules = vue.computed(() => {
|
|
64
|
+
let data = {};
|
|
65
|
+
dataForm.getDisplayColumns().forEach((item) => {
|
|
66
|
+
data[item.fullAttrName] = (item.required ? [{ required: true, message: item.title + "\u5FC5\u586B!" }] : []).concat(item.rules);
|
|
67
|
+
});
|
|
68
|
+
return lodash.mergeWith(
|
|
69
|
+
{},
|
|
70
|
+
data,
|
|
71
|
+
props.rules,
|
|
72
|
+
function customizer(objValue, srcValue) {
|
|
73
|
+
if (lodash.isArray(objValue)) {
|
|
74
|
+
return objValue.concat(srcValue);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
});
|
|
79
|
+
const computedLabelWidth = vue.computed(() => {
|
|
80
|
+
if (props.labelWidth) {
|
|
81
|
+
return props.labelWidth;
|
|
82
|
+
}
|
|
83
|
+
let labelWidth = 0;
|
|
84
|
+
if (props.labelPosition != "top") {
|
|
85
|
+
let maxLabelCharCount = 0;
|
|
86
|
+
dataForm.getDisplayColumns().forEach((item) => {
|
|
87
|
+
maxLabelCharCount = Math.max(
|
|
88
|
+
maxLabelCharCount,
|
|
89
|
+
item.title.length + (item.required ? 1 : 0)
|
|
90
|
+
);
|
|
91
|
+
});
|
|
92
|
+
labelWidth = (maxLabelCharCount + 1) * 18;
|
|
93
|
+
}
|
|
94
|
+
return labelWidth + "px";
|
|
95
|
+
});
|
|
96
|
+
if (props.autoLoad) {
|
|
97
|
+
vue.watch(
|
|
98
|
+
vue.computed(() => props.record),
|
|
99
|
+
async () => {
|
|
100
|
+
if (props.recID) {
|
|
101
|
+
try {
|
|
102
|
+
await dataForm.loadDataByRecId(props.recID);
|
|
103
|
+
} catch (e) {
|
|
104
|
+
console.error(e);
|
|
105
|
+
ElementPlus.ElMessage.error("\u83B7\u53D6\u8BB0\u5F55\u5931\u8D25\u3002");
|
|
106
|
+
}
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (props.record) {
|
|
110
|
+
dataForm.setData(props.record);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
dataForm.setData();
|
|
114
|
+
},
|
|
115
|
+
{ immediate: true }
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
vue.provide(webBaseClientVue.dataFormKey, dataForm);
|
|
119
|
+
const validate = (callback) => {
|
|
120
|
+
return dataFormElRef.value.validate(callback);
|
|
121
|
+
};
|
|
122
|
+
window.dataFormElRef = dataFormElRef;
|
|
123
|
+
window.aaavvv = validate;
|
|
124
|
+
const submit = (data) => {
|
|
125
|
+
return validate().then(() => {
|
|
126
|
+
dataForm.submit(data).then(() => {
|
|
127
|
+
ElementPlus.ElMessage.info("\u4FDD\u5B58\u6210\u529F!");
|
|
128
|
+
}).catch((e) => ElementPlus.ElMessage.error(e.message));
|
|
129
|
+
}).catch((result) => {
|
|
130
|
+
console.log(result);
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
vue.onMounted(() => {
|
|
134
|
+
vue.unref(dataForm).formValivators.push(vue.unref(dataFormElRef));
|
|
135
|
+
});
|
|
136
|
+
vue.onBeforeUnmount(() => {
|
|
137
|
+
const _dataFormEl = vue.unref(dataFormElRef);
|
|
138
|
+
vue.unref(dataForm).formValivators = vue.unref(dataForm).formValivators.filter(
|
|
139
|
+
(validate2) => validate2 !== _dataFormEl
|
|
140
|
+
);
|
|
141
|
+
});
|
|
142
|
+
__expose({
|
|
143
|
+
dataForm,
|
|
144
|
+
dataFormElRef,
|
|
145
|
+
validate,
|
|
146
|
+
submit,
|
|
147
|
+
rules,
|
|
148
|
+
computedLabelWidth
|
|
149
|
+
});
|
|
150
|
+
return (_ctx, _cache) => {
|
|
151
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElForm), vue.mergeProps({
|
|
152
|
+
ref_key: "dataFormElRef",
|
|
153
|
+
ref: dataFormElRef
|
|
154
|
+
}, vue.unref(attrs), {
|
|
155
|
+
model: vue.unref(dataForm).data,
|
|
156
|
+
"label-position": __props.labelPosition,
|
|
157
|
+
"label-width": computedLabelWidth.value,
|
|
158
|
+
rules: rules.value,
|
|
159
|
+
"validate-on-rule-change": __props.validateOnRuleChange,
|
|
160
|
+
disabled: vue.unref(dataForm).disabled
|
|
161
|
+
}), {
|
|
162
|
+
default: vue.withCtx(() => [
|
|
163
|
+
vue.renderSlot(_ctx.$slots, "default", { dataForm: vue.unref(dataForm) }, () => [
|
|
164
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(dataForm).getDisplayColumns(), (column) => {
|
|
165
|
+
return vue.openBlock(), vue.createBlock(dataFormItem["default"], {
|
|
166
|
+
key: column.fullAttrName,
|
|
167
|
+
name: column.fullAttrName,
|
|
168
|
+
isShowLabelColon: __props.isShowLabelColon
|
|
169
|
+
}, {
|
|
170
|
+
default: vue.withCtx(() => [
|
|
171
|
+
vue.renderSlot(_ctx.$slots, "form-item-" + column.fullAttrName, {
|
|
172
|
+
column,
|
|
173
|
+
record: vue.unref(dataForm).data,
|
|
174
|
+
dataForm: vue.unref(dataForm)
|
|
175
|
+
})
|
|
176
|
+
]),
|
|
177
|
+
_: 2
|
|
178
|
+
}, 1032, ["name", "isShowLabelColon"]);
|
|
179
|
+
}), 128))
|
|
180
|
+
])
|
|
181
|
+
]),
|
|
182
|
+
_: 3
|
|
183
|
+
}, 16, ["model", "label-position", "label-width", "rules", "validate-on-rule-change", "disabled"]);
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
var DataForm = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "data-form.vue"]]);
|
|
225
188
|
|
|
226
189
|
exports["default"] = DataForm;
|
|
@@ -7,6 +7,15 @@ require('lodash/get');
|
|
|
7
7
|
require('lodash/set');
|
|
8
8
|
var utils = require('../utils.js');
|
|
9
9
|
|
|
10
|
+
// Inject __name helper
|
|
11
|
+
if (typeof __name === 'undefined') {
|
|
12
|
+
function __name(obj, name) {
|
|
13
|
+
Object.defineProperty(obj, "name", {
|
|
14
|
+
value: name,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
10
19
|
var DynamicComponent = {
|
|
11
20
|
props: {
|
|
12
21
|
column: Object,
|