@fecp/designer 5.5.51 → 5.5.54
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/designer/package.json.mjs +1 -1
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/default.mjs +1 -0
- package/es/designer/src/packages/form/formSetting.vue.mjs +27 -20
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer/src/packages/table/index.vue.mjs +1 -1
- package/es/designer.css +299 -203
- package/es/packages/vue/src/components/details/main/Main.vue.mjs +7 -4
- package/es/packages/vue/src/components/details/main/index.mjs +2 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +157 -67
- package/es/packages/vue/src/components/forms/form/FormAnchorNav.vue.mjs +109 -0
- package/es/packages/vue/src/components/forms/form/RightAnchorNav.vue.mjs +126 -0
- package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +7 -4
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +7 -3
- package/es/packages/vue/src/components/layout/Layout.vue.mjs +9 -17
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +4 -2
- package/es/packages/vue/src/components/table/Table.vue.mjs +26 -7
- package/es/packages/vue/src/components/table/TableFilter.vue.mjs +3 -2
- package/es/packages/vue/src/utils/eventBus.mjs +5 -0
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/default.js +1 -0
- package/lib/designer/src/packages/form/formSetting.vue.js +33 -26
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer/src/packages/table/index.vue.js +1 -1
- package/lib/designer.css +299 -203
- package/lib/packages/vue/src/components/details/main/Main.vue.js +7 -4
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +162 -72
- package/lib/packages/vue/src/components/forms/form/FormAnchorNav.vue.js +109 -0
- package/lib/packages/vue/src/components/forms/form/RightAnchorNav.vue.js +126 -0
- package/lib/packages/vue/src/components/forms/h2/H2.vue.js +7 -4
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +7 -3
- package/lib/packages/vue/src/components/layout/Layout.vue.js +9 -17
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +4 -2
- package/lib/packages/vue/src/components/table/Table.vue.js +25 -6
- package/lib/packages/vue/src/components/table/TableFilter.vue.js +3 -2
- package/lib/packages/vue/src/utils/eventBus.js +5 -0
- package/package.json +1 -1
|
@@ -4,14 +4,12 @@ require("../../../../../node_modules/element-plus/es/index.js");
|
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
|
-
;/* empty css */
|
|
8
7
|
const Vue = require("vue");
|
|
9
8
|
const common = require("../../utils/common.js");
|
|
10
9
|
;/* empty css */
|
|
11
10
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
12
11
|
const index = require("../../../../../node_modules/element-plus/es/components/row/index.js");
|
|
13
12
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/col/index.js");
|
|
14
|
-
const index$2 = require("../../../../../node_modules/element-plus/es/components/scrollbar/index.js");
|
|
15
13
|
const _hoisted_1 = { class: "grid-content" };
|
|
16
14
|
const _hoisted_2 = { class: "grid-content-statistics" };
|
|
17
15
|
const _sfc_main = {
|
|
@@ -48,7 +46,6 @@ const _sfc_main = {
|
|
|
48
46
|
}
|
|
49
47
|
return (_ctx, _cache) => {
|
|
50
48
|
const _component_fec_form = Vue.resolveComponent("fec-form");
|
|
51
|
-
const _component_el_scrollbar = index$2.ElScrollbar;
|
|
52
49
|
const _component_el_col = index$1.ElCol;
|
|
53
50
|
const _component_el_row = index.ElRow;
|
|
54
51
|
const _directive_fec_layout = Vue.resolveDirective("fec-layout");
|
|
@@ -65,19 +62,14 @@ const _sfc_main = {
|
|
|
65
62
|
}, {
|
|
66
63
|
default: Vue.withCtx(() => [
|
|
67
64
|
Vue.createElementVNode("div", _hoisted_1, [
|
|
68
|
-
Vue.createVNode(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
initFormMode: __props.initFormMode
|
|
77
|
-
}, null, 8, ["templateKey", "modelValue", "initFormMode"])
|
|
78
|
-
]),
|
|
79
|
-
_: 1
|
|
80
|
-
}, 512)
|
|
65
|
+
Vue.createVNode(_component_fec_form, {
|
|
66
|
+
ref: "formRef",
|
|
67
|
+
templateKey: __props.templateKey,
|
|
68
|
+
modelValue: Vue.unref(formData),
|
|
69
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(formData) ? formData.value = $event : null),
|
|
70
|
+
onLoaded: loaded,
|
|
71
|
+
initFormMode: __props.initFormMode
|
|
72
|
+
}, null, 8, ["templateKey", "modelValue", "initFormMode"])
|
|
81
73
|
])
|
|
82
74
|
]),
|
|
83
75
|
_: 1
|
|
@@ -101,5 +93,5 @@ const _sfc_main = {
|
|
|
101
93
|
};
|
|
102
94
|
}
|
|
103
95
|
};
|
|
104
|
-
const _Layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
96
|
+
const _Layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1eb7b697"]]);
|
|
105
97
|
exports.default = _Layout;
|
|
@@ -322,6 +322,7 @@ const _sfc_main = {
|
|
|
322
322
|
placeholder: "请输入查询条件",
|
|
323
323
|
class: "search-input",
|
|
324
324
|
clearable: "",
|
|
325
|
+
size: "default",
|
|
325
326
|
onKeyup: onSearchInputKeyup
|
|
326
327
|
}, Vue.createSlots({
|
|
327
328
|
suffix: Vue.withCtx(() => [
|
|
@@ -388,7 +389,8 @@ const _sfc_main = {
|
|
|
388
389
|
model: filterValues.value,
|
|
389
390
|
class: "filter-form",
|
|
390
391
|
"label-width": "100px",
|
|
391
|
-
inline: ""
|
|
392
|
+
inline: "",
|
|
393
|
+
size: "default"
|
|
392
394
|
}, {
|
|
393
395
|
default: Vue.withCtx(() => [
|
|
394
396
|
Vue.createElementVNode("div", _hoisted_10, [
|
|
@@ -485,5 +487,5 @@ const _sfc_main = {
|
|
|
485
487
|
};
|
|
486
488
|
}
|
|
487
489
|
};
|
|
488
|
-
const DynamicQuery = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
490
|
+
const DynamicQuery = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ba490486"]]);
|
|
489
491
|
exports.default = DynamicQuery;
|
|
@@ -42,6 +42,7 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
|
|
|
42
42
|
;/* empty css */
|
|
43
43
|
;/* empty css */
|
|
44
44
|
const getJsonAsyncUtil = require("../../utils/getJsonAsyncUtil.js");
|
|
45
|
+
const eventBus = require("../../utils/eventBus.js");
|
|
45
46
|
;/* empty css */
|
|
46
47
|
const index = require("../../../../../node_modules/element-plus/es/components/container/index.js");
|
|
47
48
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/message/index.js");
|
|
@@ -122,6 +123,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
122
123
|
btnRollbackEvent: {
|
|
123
124
|
type: Object,
|
|
124
125
|
default: {}
|
|
126
|
+
},
|
|
127
|
+
subTableConfig: {
|
|
128
|
+
type: Object,
|
|
129
|
+
default: {}
|
|
125
130
|
}
|
|
126
131
|
},
|
|
127
132
|
emits: [
|
|
@@ -131,7 +136,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
131
136
|
"selection-change",
|
|
132
137
|
"sort-change",
|
|
133
138
|
"page-change",
|
|
134
|
-
"loaded"
|
|
139
|
+
"loaded",
|
|
140
|
+
"height-loaded"
|
|
135
141
|
],
|
|
136
142
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
137
143
|
const props = __props;
|
|
@@ -548,9 +554,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
548
554
|
emit("selection-change", [checked.row]);
|
|
549
555
|
};
|
|
550
556
|
const handleInitRendered = ({ visibleColumn, visibleData, $event }) => {
|
|
557
|
+
const offsetHeight = fecTableContainerRef.value.$el.offsetHeight;
|
|
558
|
+
emit("height-loaded", localConfig.value, offsetHeight);
|
|
551
559
|
if ((visibleData == null ? void 0 : visibleData.length) > 0) {
|
|
552
|
-
|
|
553
|
-
|
|
560
|
+
eventBus.default.emit("onSubTableDataLoaded", {
|
|
561
|
+
subTableConfig: props.subTableConfig,
|
|
562
|
+
visibleData
|
|
563
|
+
});
|
|
554
564
|
}
|
|
555
565
|
};
|
|
556
566
|
const handleDataRendered = ({
|
|
@@ -559,9 +569,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
559
569
|
visibleData,
|
|
560
570
|
$event
|
|
561
571
|
}) => {
|
|
572
|
+
const offsetHeight = fecTableContainerRef.value.$el.offsetHeight;
|
|
573
|
+
emit("height-loaded", localConfig.value, offsetHeight);
|
|
562
574
|
if ((visibleData == null ? void 0 : visibleData.length) > 0) {
|
|
563
|
-
|
|
564
|
-
|
|
575
|
+
eventBus.default.emit("onSubTableDataLoaded", {
|
|
576
|
+
subTableConfig: props.subTableConfig,
|
|
577
|
+
visibleData
|
|
578
|
+
});
|
|
565
579
|
}
|
|
566
580
|
};
|
|
567
581
|
const handleFilterSearch = (filters) => {
|
|
@@ -765,6 +779,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
765
779
|
});
|
|
766
780
|
initHandleEvent();
|
|
767
781
|
configLoading.value = false;
|
|
782
|
+
Vue.nextTick(() => {
|
|
783
|
+
var _a2;
|
|
784
|
+
const offsetHeight = ((_a2 = fecTableContainerRef.value) == null ? void 0 : _a2.$el.offsetHeight) || 300;
|
|
785
|
+
emit("height-loaded", localConfig.value, offsetHeight);
|
|
786
|
+
});
|
|
768
787
|
return;
|
|
769
788
|
}
|
|
770
789
|
configLoading.value = true;
|
|
@@ -971,5 +990,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
971
990
|
};
|
|
972
991
|
}
|
|
973
992
|
});
|
|
974
|
-
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
993
|
+
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3726d701"]]);
|
|
975
994
|
exports.default = _Table;
|
|
@@ -54,7 +54,7 @@ const _sfc_main = {
|
|
|
54
54
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
55
55
|
var _a;
|
|
56
56
|
Vue.useCssVars((_ctx) => ({
|
|
57
|
-
"
|
|
57
|
+
"12f9d7c1": `${config.value.collapseRows * 90}px`
|
|
58
58
|
}));
|
|
59
59
|
const props = __props;
|
|
60
60
|
const emit = __emit;
|
|
@@ -190,6 +190,7 @@ const _sfc_main = {
|
|
|
190
190
|
"label-position": "right",
|
|
191
191
|
style: Vue.normalizeStyle({ "--column-count": config.value.columnCount }),
|
|
192
192
|
tabindex: "0",
|
|
193
|
+
size: "default",
|
|
193
194
|
onKeydown: Vue.withKeys(handleSearch, ["enter"])
|
|
194
195
|
}, {
|
|
195
196
|
default: Vue.withCtx(() => [
|
|
@@ -302,5 +303,5 @@ const _sfc_main = {
|
|
|
302
303
|
};
|
|
303
304
|
}
|
|
304
305
|
};
|
|
305
|
-
const TableFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
306
|
+
const TableFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-220e0331"]]);
|
|
306
307
|
exports.default = TableFilter;
|