@fecp/designer 5.5.3 → 5.5.5
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/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer.css +106 -106
- package/es/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.mjs +7 -30
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +1 -2
- package/es/packages/vue/src/components/forms/roleSelect/RoleSelect.vue.mjs +7 -3
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/userSelect/UserSelect.vue.mjs +7 -3
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +6 -2
- package/es/packages/vue/src/components/table/Table.vue.mjs +7 -5
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/TableFilter.vue.mjs +7 -3
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.mjs +1 -1
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer.css +106 -106
- package/lib/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.js +6 -29
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +1 -2
- package/lib/packages/vue/src/components/forms/roleSelect/RoleSelect.vue.js +7 -3
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/userSelect/UserSelect.vue.js +7 -3
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +6 -2
- package/lib/packages/vue/src/components/table/Table.vue.js +7 -5
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
- package/lib/packages/vue/src/components/table/TableFilter.vue.js +7 -3
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +1 -1
- package/package.json +1 -1
|
@@ -55,6 +55,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
55
55
|
const inputValue = computed(
|
|
56
56
|
() => formData.value[props.config.displayFieldName]
|
|
57
57
|
);
|
|
58
|
+
function handleClear() {
|
|
59
|
+
formData.value[props.config.displayFieldName] = "";
|
|
60
|
+
formData.value[props.config.fieldName] = "";
|
|
61
|
+
}
|
|
58
62
|
const fieldsList = [
|
|
59
63
|
...(fieldsData == null ? void 0 : fieldsData.value) || [],
|
|
60
64
|
...(hiddenFields == null ? void 0 : hiddenFields.value) || []
|
|
@@ -96,9 +100,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
96
100
|
}, toHandlers(__props.config.eventHandlers), {
|
|
97
101
|
placeholder: __props.placeholder,
|
|
98
102
|
disabled: __props.disabled,
|
|
99
|
-
readonly: true,
|
|
100
103
|
onChange: handleChange,
|
|
101
|
-
clearable: ""
|
|
104
|
+
clearable: "",
|
|
105
|
+
onClear: handleClear
|
|
102
106
|
}), createSlots({ _: 2 }, [
|
|
103
107
|
__props.formMode != "query" ? {
|
|
104
108
|
name: "append",
|
|
@@ -120,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
120
124
|
};
|
|
121
125
|
}
|
|
122
126
|
});
|
|
123
|
-
const _RoleSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
127
|
+
const _RoleSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1b45cabd"]]);
|
|
124
128
|
export {
|
|
125
129
|
_RoleSelect as default
|
|
126
130
|
};
|
|
@@ -3,8 +3,8 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { computed, getCurrentInstance, inject, createElementBlock, openBlock, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
|
|
6
|
-
/* empty css */
|
|
7
6
|
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { openDialog } from "../../dialog/index.mjs";
|
|
10
10
|
/* empty css */
|
|
@@ -55,6 +55,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
55
55
|
const inputValue = computed(
|
|
56
56
|
() => formData.value[props.config.displayFieldName]
|
|
57
57
|
);
|
|
58
|
+
function handleClear() {
|
|
59
|
+
formData.value[props.config.displayFieldName] = "";
|
|
60
|
+
formData.value[props.config.fieldName] = "";
|
|
61
|
+
}
|
|
58
62
|
const fieldsList = [
|
|
59
63
|
...(fieldsData == null ? void 0 : fieldsData.value) || [],
|
|
60
64
|
...(hiddenFields == null ? void 0 : hiddenFields.value) || []
|
|
@@ -96,9 +100,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
96
100
|
}, toHandlers(__props.config.eventHandlers), {
|
|
97
101
|
placeholder: __props.placeholder,
|
|
98
102
|
disabled: __props.disabled,
|
|
99
|
-
readonly: true,
|
|
100
103
|
onChange: handleChange,
|
|
101
|
-
clearable: ""
|
|
104
|
+
clearable: "",
|
|
105
|
+
onClear: handleClear
|
|
102
106
|
}), createSlots({ _: 2 }, [
|
|
103
107
|
__props.formMode != "query" ? {
|
|
104
108
|
name: "append",
|
|
@@ -120,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
120
124
|
};
|
|
121
125
|
}
|
|
122
126
|
});
|
|
123
|
-
const _UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
127
|
+
const _UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b75f4ba0"]]);
|
|
124
128
|
export {
|
|
125
129
|
_UserSelect as default
|
|
126
130
|
};
|
|
@@ -86,6 +86,10 @@ const _sfc_main = {
|
|
|
86
86
|
hiddenFormData: {
|
|
87
87
|
type: Object,
|
|
88
88
|
default: {}
|
|
89
|
+
},
|
|
90
|
+
isCache: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: false
|
|
89
93
|
}
|
|
90
94
|
},
|
|
91
95
|
emits: ["click", "search"],
|
|
@@ -167,7 +171,7 @@ const _sfc_main = {
|
|
|
167
171
|
const searchInputValue = ref("");
|
|
168
172
|
const ctx = getCurrentVueInstance();
|
|
169
173
|
const route = (_a = ctx.$route) == null ? void 0 : _a.path;
|
|
170
|
-
if (route) {
|
|
174
|
+
if (route && props.isCache) {
|
|
171
175
|
const routeParams = JSON.parse(sessionStorage.getItem(route));
|
|
172
176
|
const filters = JSON.parse((routeParams == null ? void 0 : routeParams.filters) || "{}");
|
|
173
177
|
searchInputValue.value = (filters == null ? void 0 : filters.dynamicFilter) || "";
|
|
@@ -480,7 +484,7 @@ const _sfc_main = {
|
|
|
480
484
|
};
|
|
481
485
|
}
|
|
482
486
|
};
|
|
483
|
-
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
487
|
+
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3d06dba1"]]);
|
|
484
488
|
export {
|
|
485
489
|
DynamicQuery as default
|
|
486
490
|
};
|
|
@@ -288,7 +288,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
288
288
|
if (!((_a = localConfig.value.dataSources) == null ? void 0 : _a.length)) return;
|
|
289
289
|
let pageNo = 1;
|
|
290
290
|
let pageSize = isPagination.value ? (_b = localConfig.value.paginationConfig) == null ? void 0 : _b.pageSize : 0;
|
|
291
|
-
if (!props.isSubTable && !props.
|
|
291
|
+
if (!props.isSubTable && !props.isDialog) {
|
|
292
292
|
const route = (_c = ctx.$route) == null ? void 0 : _c.path;
|
|
293
293
|
if (route) {
|
|
294
294
|
routeParams.value = JSON.parse(sessionStorage.getItem(route));
|
|
@@ -582,7 +582,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
582
582
|
};
|
|
583
583
|
async function tableDataFetch(extraParams = {}) {
|
|
584
584
|
var _a;
|
|
585
|
-
if (!props.isSubTable && !props.
|
|
585
|
+
if (!props.isSubTable && !props.isDialog) {
|
|
586
586
|
const params = dataSourceManager.value.buildRequestParams(extraParams);
|
|
587
587
|
const route = (_a = ctx.$route) == null ? void 0 : _a.path;
|
|
588
588
|
if (route) {
|
|
@@ -805,9 +805,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
805
805
|
createVNode(TableFilter, {
|
|
806
806
|
"query-config": localConfig.value.queryConfig,
|
|
807
807
|
"fields-data": fieldsData.value,
|
|
808
|
+
isCache: !__props.isSubTable && !__props.isDialog,
|
|
808
809
|
onSearch: handleFilterSearch,
|
|
809
810
|
onReset: handleFilterReset
|
|
810
|
-
}, null, 8, ["query-config", "fields-data"]),
|
|
811
|
+
}, null, 8, ["query-config", "fields-data", "isCache"]),
|
|
811
812
|
createVNode(CustomButtons, {
|
|
812
813
|
"custom-btns": localConfig.value.customBtns,
|
|
813
814
|
localConfig: localConfig.value,
|
|
@@ -823,10 +824,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
823
824
|
isSubTable: __props.titleMode == "label",
|
|
824
825
|
localConfig: localConfig.value,
|
|
825
826
|
"fields-data": fieldsData.value,
|
|
827
|
+
isCache: !__props.isSubTable && !__props.isDialog,
|
|
826
828
|
onSearch: handleFilterSearch,
|
|
827
829
|
onClick: handleCustomBtnClick,
|
|
828
830
|
hiddenFormData: hiddenFormData.value
|
|
829
|
-
}, null, 8, ["readonly", "isSubTable", "localConfig", "fields-data", "hiddenFormData"])) : createCommentVNode("", true),
|
|
831
|
+
}, null, 8, ["readonly", "isSubTable", "localConfig", "fields-data", "isCache", "hiddenFormData"])) : createCommentVNode("", true),
|
|
830
832
|
createElementVNode("div", _hoisted_1, [
|
|
831
833
|
createVNode(unref(VxeTable), {
|
|
832
834
|
ref_key: "tableRef",
|
|
@@ -897,7 +899,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
897
899
|
};
|
|
898
900
|
}
|
|
899
901
|
});
|
|
900
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
902
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7dad99a5"]]);
|
|
901
903
|
export {
|
|
902
904
|
_Table as default
|
|
903
905
|
};
|
|
@@ -7,8 +7,8 @@ import "../../../../../node_modules/vxe-table/es/components.mjs";
|
|
|
7
7
|
import { CopyDocument as copy_document_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
8
8
|
import { checkFilterMatch } from "../../utils/parseFilterConfig.mjs";
|
|
9
9
|
import { removeEmptyValues } from "../../utils/common.mjs";
|
|
10
|
-
/* empty css */
|
|
11
10
|
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
@@ -42,13 +42,17 @@ const _sfc_main = {
|
|
|
42
42
|
fieldsData: {
|
|
43
43
|
type: Array,
|
|
44
44
|
default: () => []
|
|
45
|
+
},
|
|
46
|
+
isCache: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
45
49
|
}
|
|
46
50
|
},
|
|
47
51
|
emits: ["search", "reset"],
|
|
48
52
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
49
53
|
var _a;
|
|
50
54
|
useCssVars((_ctx) => ({
|
|
51
|
-
"
|
|
55
|
+
"6f90a0ef": `${config.value.collapseRows * 90}px`
|
|
52
56
|
}));
|
|
53
57
|
const props = __props;
|
|
54
58
|
const emit = __emit;
|
|
@@ -77,7 +81,7 @@ const _sfc_main = {
|
|
|
77
81
|
const filterValues = ref({});
|
|
78
82
|
const ctx = getCurrentVueInstance();
|
|
79
83
|
const route = (_a = ctx.$route) == null ? void 0 : _a.path;
|
|
80
|
-
if (route) {
|
|
84
|
+
if (route && props.isCache) {
|
|
81
85
|
const routeParams = JSON.parse(sessionStorage.getItem(route));
|
|
82
86
|
const filters = JSON.parse((routeParams == null ? void 0 : routeParams.filters) || "{}");
|
|
83
87
|
filterValues.value = reverseHandleSearchData(
|
|
@@ -294,7 +298,7 @@ const _sfc_main = {
|
|
|
294
298
|
};
|
|
295
299
|
}
|
|
296
300
|
};
|
|
297
|
-
const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
301
|
+
const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8af059f7"]]);
|
|
298
302
|
export {
|
|
299
303
|
TableFilter as default
|
|
300
304
|
};
|
|
@@ -2,8 +2,8 @@ import { reactive } from "vue";
|
|
|
2
2
|
import { parseRouteParams } from "./parseRouteParams.mjs";
|
|
3
3
|
import "../../../../node_modules/element-plus/es/index.mjs";
|
|
4
4
|
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
5
|
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { ElLoading } from "../../../../node_modules/element-plus/es/components/loading/index.mjs";
|
|
9
9
|
import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const vue = require("vue");
|
|
5
5
|
function useDialogDialog() {
|
|
6
6
|
const dialogDialogVisible = vue.ref(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const vue = require("vue");
|
|
5
5
|
function useDialogGlobalDialog() {
|
|
6
6
|
const dialogGlobalDialogVisible = vue.ref(false);
|
|
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
|
|
|
54
54
|
require("../../../components/TemplateSelector.vue.js");
|
|
55
55
|
require("../../table/default.js");
|
|
56
56
|
;/* empty css */
|
|
57
|
-
;/* empty css
|
|
58
|
-
;/* empty css
|
|
57
|
+
;/* empty css */
|
|
58
|
+
;/* empty css */
|
|
59
59
|
require("../../../store/index.js");
|
|
60
60
|
;/* empty css */
|
|
61
61
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|