@funcho/ui 1.1.16 → 1.1.17
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/README.md +3 -0
- package/dist/cjs/business/DataTable/DataTable.vue.js +1 -0
- package/dist/cjs/business/EditFormCard/EditFormCard.vue.js +1 -0
- package/dist/cjs/business/ProForm/ProForm.vue.js +1 -0
- package/dist/cjs/business/SidebarMainLayout/SidebarMainLayout.vue.js +1 -0
- package/dist/cjs/business/TreeCheckFilter/TreeCheckFilter.vue.js +1 -0
- package/dist/cjs/business/TreeTransfer/TreeTransfer.vue.js +1 -0
- package/dist/cjs/components/Cascader/Cascader.vue.js +3 -1
- package/dist/cjs/components/CheckboxGroup/CheckboxGroup.vue.js +3 -1
- package/dist/cjs/components/Dropdown/Dropdown.vue.js +3 -1
- package/dist/cjs/components/LovText/LovText.vue.js +61 -0
- package/dist/cjs/components/LovText/LovText.vue3.js +10 -0
- package/dist/cjs/components/LovText/index.js +12 -0
- package/dist/cjs/components/Radio/Radio.vue.js +3 -1
- package/dist/cjs/components/Select/Select.vue.js +3 -1
- package/dist/cjs/components/index.js +2 -0
- package/dist/cjs/index.js +22 -20
- package/dist/cjs/packages/ui/package.json.js +1 -1
- package/dist/esm/business/DataTable/DataTable.vue.mjs +1 -0
- package/dist/esm/business/EditFormCard/EditFormCard.vue.mjs +1 -0
- package/dist/esm/business/ProForm/ProForm.vue.mjs +1 -0
- package/dist/esm/business/SidebarMainLayout/SidebarMainLayout.vue.mjs +1 -0
- package/dist/esm/business/TreeCheckFilter/TreeCheckFilter.vue.mjs +1 -0
- package/dist/esm/business/TreeTransfer/TreeTransfer.vue.mjs +1 -0
- package/dist/esm/components/Cascader/Cascader.vue.mjs +3 -1
- package/dist/esm/components/CheckboxGroup/CheckboxGroup.vue.mjs +3 -1
- package/dist/esm/components/Dropdown/Dropdown.vue.mjs +3 -1
- package/dist/esm/components/LovText/LovText.vue.mjs +57 -0
- package/dist/esm/components/LovText/LovText.vue3.mjs +6 -0
- package/dist/esm/components/LovText/index.mjs +7 -0
- package/dist/esm/components/Radio/Radio.vue.mjs +3 -1
- package/dist/esm/components/Select/Select.vue.mjs +3 -1
- package/dist/esm/components/index.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/packages/ui/package.json.mjs +1 -1
- package/dist/types/components/Cascader/Cascader.vue.d.ts +2 -0
- package/dist/types/components/Cascader/CascaderCheck.vue.d.ts +16 -2
- package/dist/types/components/Cascader/CascaderEnd.vue.d.ts +16 -2
- package/dist/types/components/Cascader/CascaderMultiple.vue.d.ts +16 -2
- package/dist/types/components/Cascader/index.d.ts +60 -3
- package/dist/types/components/CheckboxGroup/CheckboxGroup.vue.d.ts +2 -0
- package/dist/types/components/CheckboxGroup/index.d.ts +6 -0
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/dist/types/components/Dropdown/index.d.ts +6 -0
- package/dist/types/components/LovText/LovText.types.d.ts +1 -0
- package/dist/types/components/LovText/LovText.vue.d.ts +13 -0
- package/dist/types/components/LovText/index.d.ts +45 -0
- package/dist/types/components/Radio/Radio.vue.d.ts +2 -0
- package/dist/types/components/Radio/index.d.ts +6 -0
- package/dist/types/components/Select/Select.vue.d.ts +2 -0
- package/dist/types/components/Select/SelectAllowCreateSelect.vue.d.ts +12 -2
- package/dist/types/components/Select/SelectMultiple.vue.d.ts +12 -2
- package/dist/types/components/Select/index.d.ts +18 -2
- package/dist/types/components/index.d.ts +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -167,6 +167,7 @@ const open = ref(false);
|
|
|
167
167
|
| 102 | `FcTree` |
|
|
168
168
|
| 103 | `FcTreeSelect` |
|
|
169
169
|
| 104 | `FcUpload` |
|
|
170
|
+
| 105 | `FcLovText` |
|
|
170
171
|
|
|
171
172
|
| 序号 | 组件名称 |
|
|
172
173
|
| :---: | :--- |
|
|
@@ -175,3 +176,5 @@ const open = ref(false);
|
|
|
175
176
|
| 3 | `FcSidebarMainLayout` |
|
|
176
177
|
| 4 | `FcProTreeCheckFilter` |
|
|
177
178
|
| 5 | `FcProTreeTransfer` |
|
|
179
|
+
| 6 | `FcProEditFormCard` |
|
|
180
|
+
| 7 | `FcProFormDialog` |
|
|
@@ -79,6 +79,7 @@ require('../../components/CollapseItem/index.js');
|
|
|
79
79
|
require('../../components/ContextMenu/index.js');
|
|
80
80
|
require('../../components/CodeEditor/index.js');
|
|
81
81
|
require('../../components/RichEditor/index.js');
|
|
82
|
+
require('../../components/LovText/index.js');
|
|
82
83
|
const ProForm_vue_vue_type_script_setup_true_lang = require('../ProForm/ProForm.vue.js');
|
|
83
84
|
;/* empty css */
|
|
84
85
|
const core = require('@vueuse/core');
|
|
@@ -78,6 +78,7 @@ require('../../components/CollapseItem/index.js');
|
|
|
78
78
|
require('../../components/ContextMenu/index.js');
|
|
79
79
|
require('../../components/CodeEditor/index.js');
|
|
80
80
|
require('../../components/RichEditor/index.js');
|
|
81
|
+
require('../../components/LovText/index.js');
|
|
81
82
|
const ProForm_vue_vue_type_script_setup_true_lang = require('../ProForm/ProForm.vue.js');
|
|
82
83
|
;/* empty css */
|
|
83
84
|
const cloneDeep = require('../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js');
|
|
@@ -79,6 +79,7 @@ require('../../components/CollapseItem/index.js');
|
|
|
79
79
|
require('../../components/ContextMenu/index.js');
|
|
80
80
|
require('../../components/CodeEditor/index.js');
|
|
81
81
|
require('../../components/RichEditor/index.js');
|
|
82
|
+
require('../../components/LovText/index.js');
|
|
82
83
|
const componentsMap = require('./componentsMap.js');
|
|
83
84
|
const isPlainObject = require('../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js');
|
|
84
85
|
const cloneDeep = require('../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js');
|
|
@@ -79,6 +79,7 @@ require('../../components/CollapseItem/index.js');
|
|
|
79
79
|
require('../../components/ContextMenu/index.js');
|
|
80
80
|
require('../../components/CodeEditor/index.js');
|
|
81
81
|
require('../../components/RichEditor/index.js');
|
|
82
|
+
require('../../components/LovText/index.js');
|
|
82
83
|
const useNamespace = require('../../hooks/use-namespace.js');
|
|
83
84
|
|
|
84
85
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -79,6 +79,7 @@ require('../../components/CollapseItem/index.js');
|
|
|
79
79
|
require('../../components/ContextMenu/index.js');
|
|
80
80
|
require('../../components/CodeEditor/index.js');
|
|
81
81
|
require('../../components/RichEditor/index.js');
|
|
82
|
+
require('../../components/LovText/index.js');
|
|
82
83
|
const Icons = require('@funcho/icons-vue');
|
|
83
84
|
const core = require('@vueuse/core');
|
|
84
85
|
|
|
@@ -81,6 +81,7 @@ require('../../components/CollapseItem/index.js');
|
|
|
81
81
|
require('../../components/ContextMenu/index.js');
|
|
82
82
|
require('../../components/CodeEditor/index.js');
|
|
83
83
|
require('../../components/RichEditor/index.js');
|
|
84
|
+
require('../../components/LovText/index.js');
|
|
84
85
|
|
|
85
86
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
86
87
|
...{
|
|
@@ -20,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
20
|
filterable: { type: Boolean, default: true },
|
|
21
21
|
collapseTags: { type: Boolean, default: true },
|
|
22
22
|
collapseTagsTooltip: { type: Boolean, default: true },
|
|
23
|
+
isSql: { type: Boolean, default: false },
|
|
23
24
|
tagType: { default: "primary" }
|
|
24
25
|
},
|
|
25
26
|
setup(__props, { expose: __expose }) {
|
|
@@ -34,7 +35,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
35
|
try {
|
|
35
36
|
const context = {
|
|
36
37
|
lovId: props.lovId,
|
|
37
|
-
isUpdateLovOptions: props.isUpdateLovOptions
|
|
38
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
39
|
+
isSql: props.isSql
|
|
38
40
|
};
|
|
39
41
|
lovIdOptions.value = await config.requestHandler(context);
|
|
40
42
|
} catch (error) {
|
|
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
17
|
__name: "CheckboxGroup",
|
|
18
18
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
19
19
|
lovId: { default: "" },
|
|
20
|
+
isSql: { type: Boolean, default: false },
|
|
20
21
|
isUpdateLovOptions: { type: Boolean, default: false },
|
|
21
22
|
hasIndeterminate: { type: Boolean, default: false },
|
|
22
23
|
options: { default: () => [] },
|
|
@@ -51,7 +52,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
51
52
|
try {
|
|
52
53
|
const context = {
|
|
53
54
|
lovId: myProps.lovId,
|
|
54
|
-
isUpdateLovOptions: myProps.isUpdateLovOptions
|
|
55
|
+
isUpdateLovOptions: myProps.isUpdateLovOptions,
|
|
56
|
+
isSql: myProps.isSql
|
|
55
57
|
};
|
|
56
58
|
lovIdOptions.value = await config.requestHandler(context);
|
|
57
59
|
} catch (error) {
|
|
@@ -21,6 +21,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
__name: "Dropdown",
|
|
22
22
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
23
23
|
lovId: { default: "" },
|
|
24
|
+
isSql: { type: Boolean, default: false },
|
|
24
25
|
isUpdateLovOptions: { type: Boolean, default: false },
|
|
25
26
|
options: { default: () => [] },
|
|
26
27
|
maxHeight: { default: 320 },
|
|
@@ -60,7 +61,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
61
|
try {
|
|
61
62
|
const context = {
|
|
62
63
|
lovId: props.lovId,
|
|
63
|
-
isUpdateLovOptions: props.isUpdateLovOptions
|
|
64
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
65
|
+
isSql: props.isSql
|
|
64
66
|
};
|
|
65
67
|
lovIdOptions.value = await config.requestHandler(context);
|
|
66
68
|
} catch (error) {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
const lovIdRequestProvide = require('../../config/lovId-request-provide.js');
|
|
7
|
+
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
...{
|
|
10
|
+
name: "FcLovText"
|
|
11
|
+
},
|
|
12
|
+
__name: "LovText",
|
|
13
|
+
props: {
|
|
14
|
+
lovId: { default: "" },
|
|
15
|
+
value: { default: null },
|
|
16
|
+
isSql: { type: Boolean, default: false },
|
|
17
|
+
isUpdateLovOptions: { type: Boolean, default: false }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const config = vue.inject(lovIdRequestProvide.FC_LOVID_REQUEST_CONFIG_KEY, {});
|
|
21
|
+
const props = __props;
|
|
22
|
+
const lovIdLoading = vue.ref(false);
|
|
23
|
+
const lovIdOptions = vue.ref([]);
|
|
24
|
+
const loadData = async () => {
|
|
25
|
+
if (!props.lovId || !config.requestHandler) return;
|
|
26
|
+
lovIdLoading.value = true;
|
|
27
|
+
try {
|
|
28
|
+
const context = {
|
|
29
|
+
lovId: props.lovId,
|
|
30
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
31
|
+
isSql: props.isSql
|
|
32
|
+
};
|
|
33
|
+
lovIdOptions.value = await config.requestHandler(context);
|
|
34
|
+
} finally {
|
|
35
|
+
lovIdLoading.value = false;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
vue.watch(
|
|
39
|
+
() => props.lovId,
|
|
40
|
+
(newId) => {
|
|
41
|
+
lovIdOptions.value = [];
|
|
42
|
+
if (newId) {
|
|
43
|
+
loadData();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
vue.onMounted(() => {
|
|
48
|
+
if (props.lovId) loadData();
|
|
49
|
+
});
|
|
50
|
+
const displayText = vue.computed(() => {
|
|
51
|
+
if (!props.value) return "";
|
|
52
|
+
const matched = lovIdOptions.value.find((opt) => opt.value === props.value);
|
|
53
|
+
return matched ? matched.label : props.value;
|
|
54
|
+
});
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
return vue.openBlock(), vue.createElementBlock("span", null, vue.toDisplayString(displayText.value), 1);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const LovText_vue_vue_type_script_setup_true_lang = require('./LovText.vue.js');
|
|
6
|
+
;/* empty css */
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.default = LovText_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const LovText_vue_vue_type_script_setup_true_lang = require('./LovText.vue.js');
|
|
6
|
+
;/* empty css */
|
|
7
|
+
const withInstall = require('../../_utils/with-install.js');
|
|
8
|
+
|
|
9
|
+
const FcLovText = withInstall.withInstall(LovText_vue_vue_type_script_setup_true_lang.default);
|
|
10
|
+
|
|
11
|
+
exports.FcLovText = FcLovText;
|
|
12
|
+
exports.default = FcLovText;
|
|
@@ -14,6 +14,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
__name: "Radio",
|
|
15
15
|
props: {
|
|
16
16
|
lovId: { default: "" },
|
|
17
|
+
isSql: { type: Boolean, default: false },
|
|
17
18
|
isUpdateLovOptions: { type: Boolean, default: false },
|
|
18
19
|
options: { default: () => [] }
|
|
19
20
|
},
|
|
@@ -29,7 +30,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
29
30
|
try {
|
|
30
31
|
const context = {
|
|
31
32
|
lovId: props.lovId,
|
|
32
|
-
isUpdateLovOptions: props.isUpdateLovOptions
|
|
33
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
34
|
+
isSql: props.isSql
|
|
33
35
|
};
|
|
34
36
|
lovIdOptions.value = await config.requestHandler(context);
|
|
35
37
|
} catch (error) {
|
|
@@ -14,6 +14,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
__name: "Select",
|
|
15
15
|
props: {
|
|
16
16
|
lovId: { default: "" },
|
|
17
|
+
isSql: { type: Boolean, default: false },
|
|
17
18
|
loading: { type: Boolean, default: false },
|
|
18
19
|
isUpdateLovOptions: { type: Boolean, default: false },
|
|
19
20
|
options: { default: () => [] },
|
|
@@ -38,7 +39,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
38
39
|
try {
|
|
39
40
|
const context = {
|
|
40
41
|
lovId: props.lovId,
|
|
41
|
-
isUpdateLovOptions: props.isUpdateLovOptions
|
|
42
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
43
|
+
isSql: props.isSql
|
|
42
44
|
};
|
|
43
45
|
lovIdOptions.value = await config.requestHandler(context);
|
|
44
46
|
} finally {
|
|
@@ -80,6 +80,7 @@ const index$1a = require('./CollapseItem/index.js');
|
|
|
80
80
|
const index$1b = require('./ContextMenu/index.js');
|
|
81
81
|
const index$1c = require('./CodeEditor/index.js');
|
|
82
82
|
const index$1d = require('./RichEditor/index.js');
|
|
83
|
+
const index$1e = require('./LovText/index.js');
|
|
83
84
|
const directive = require('../node_modules/.pnpm/element-plus@2.13.5_patch_hash_415fe9eaeb4c26121ef1304c7dfbfaa75441fcd0d7ca1a8beb1acd12_87ac520f28bb40f5a8b03aa48269c150/node_modules/element-plus/es/components/loading/src/directive.js');
|
|
84
85
|
const service = require('../node_modules/.pnpm/element-plus@2.13.5_patch_hash_415fe9eaeb4c26121ef1304c7dfbfaa75441fcd0d7ca1a8beb1acd12_87ac520f28bb40f5a8b03aa48269c150/node_modules/element-plus/es/components/loading/src/service.js');
|
|
85
86
|
|
|
@@ -190,6 +191,7 @@ exports.FcCodeEditor = index$1c.FcCodeEditor;
|
|
|
190
191
|
exports.FcCodeEditorInput = index$1c.FcCodeEditorInput;
|
|
191
192
|
exports.FcRichEditor = index$1d.FcRichEditor;
|
|
192
193
|
exports.FcRichEditorInput = index$1d.FcRichEditorInput;
|
|
194
|
+
exports.FcLovText = index$1e.FcLovText;
|
|
193
195
|
exports.FcLoadingDirective = directive.default;
|
|
194
196
|
exports.vLoading = directive.default;
|
|
195
197
|
exports.FcLoadingService = service.default;
|
package/dist/cjs/index.js
CHANGED
|
@@ -7,8 +7,8 @@ const directive = require('./node_modules/.pnpm/element-plus@2.13.5_patch_hash_4
|
|
|
7
7
|
const dayjs_min = require('./_virtual/dayjs.min.js');
|
|
8
8
|
;/* empty css */
|
|
9
9
|
const lovIdRequestProvide = require('./config/lovId-request-provide.js');
|
|
10
|
-
const index$
|
|
11
|
-
const index$
|
|
10
|
+
const index$1n = require('./components/index.js');
|
|
11
|
+
const index$1o = require('./business/index.js');
|
|
12
12
|
const version = require('./version.js');
|
|
13
13
|
const index$1 = require('./components/Button/index.js');
|
|
14
14
|
const index$2 = require('./components/Dialog/index.js');
|
|
@@ -88,20 +88,21 @@ const index$1b = require('./components/CollapseItem/index.js');
|
|
|
88
88
|
const index$1c = require('./components/ContextMenu/index.js');
|
|
89
89
|
const index$1d = require('./components/CodeEditor/index.js');
|
|
90
90
|
const index$1e = require('./components/RichEditor/index.js');
|
|
91
|
-
const index$1f = require('./
|
|
92
|
-
const index$1g = require('./business/
|
|
93
|
-
const index$1h = require('./business/
|
|
94
|
-
const index$1i = require('./business/
|
|
95
|
-
const index$1j = require('./business/
|
|
96
|
-
const index$1k = require('./business/
|
|
97
|
-
const index$1l = require('./business/
|
|
91
|
+
const index$1f = require('./components/LovText/index.js');
|
|
92
|
+
const index$1g = require('./business/SidebarMainLayout/index.js');
|
|
93
|
+
const index$1h = require('./business/DataTable/index.js');
|
|
94
|
+
const index$1i = require('./business/ProForm/index.js');
|
|
95
|
+
const index$1j = require('./business/TreeCheckFilter/index.js');
|
|
96
|
+
const index$1k = require('./business/TreeTransfer/index.js');
|
|
97
|
+
const index$1l = require('./business/EditFormCard/index.js');
|
|
98
|
+
const index$1m = require('./business/FormDialog/index.js');
|
|
98
99
|
|
|
99
|
-
const components = Object.keys(index$
|
|
100
|
-
return index$1m[key];
|
|
101
|
-
});
|
|
102
|
-
const proComponents = Object.keys(index$1n).map((key) => {
|
|
100
|
+
const components = Object.keys(index$1n).map((key) => {
|
|
103
101
|
return index$1n[key];
|
|
104
102
|
});
|
|
103
|
+
const proComponents = Object.keys(index$1o).map((key) => {
|
|
104
|
+
return index$1o[key];
|
|
105
|
+
});
|
|
105
106
|
const installComponents = [...components, ...proComponents].filter((comp) => {
|
|
106
107
|
return typeof comp === "object" && comp.name && typeof comp.install === "function";
|
|
107
108
|
});
|
|
@@ -225,12 +226,13 @@ exports.FcCodeEditor = index$1d.FcCodeEditor;
|
|
|
225
226
|
exports.FcCodeEditorInput = index$1d.FcCodeEditorInput;
|
|
226
227
|
exports.FcRichEditor = index$1e.FcRichEditor;
|
|
227
228
|
exports.FcRichEditorInput = index$1e.FcRichEditorInput;
|
|
228
|
-
exports.
|
|
229
|
-
exports.
|
|
230
|
-
exports.
|
|
231
|
-
exports.
|
|
232
|
-
exports.
|
|
233
|
-
exports.
|
|
234
|
-
exports.
|
|
229
|
+
exports.FcLovText = index$1f.FcLovText;
|
|
230
|
+
exports.FcProSidebarMainLayout = index$1g.FcProSidebarMainLayout;
|
|
231
|
+
exports.FcProDataTable = index$1h.FcProDataTable;
|
|
232
|
+
exports.FcProForm = index$1i.FcProForm;
|
|
233
|
+
exports.FcProTreeCheckFilter = index$1j.FcProTreeCheckFilter;
|
|
234
|
+
exports.FcProTreeTransfer = index$1k.FcProTreeTransfer;
|
|
235
|
+
exports.FcProEditFormCard = index$1l.FcProEditFormCard;
|
|
236
|
+
exports.FcProFormDialog = index$1m.FcProFormDialog;
|
|
235
237
|
exports.default = index;
|
|
236
238
|
exports.install = install;
|
|
@@ -75,6 +75,7 @@ import '../../components/CollapseItem/index.mjs';
|
|
|
75
75
|
import '../../components/ContextMenu/index.mjs';
|
|
76
76
|
import '../../components/CodeEditor/index.mjs';
|
|
77
77
|
import '../../components/RichEditor/index.mjs';
|
|
78
|
+
import '../../components/LovText/index.mjs';
|
|
78
79
|
import _sfc_main$1 from '../ProForm/ProForm.vue.mjs';
|
|
79
80
|
/* empty css */
|
|
80
81
|
import { useElementSize } from '@vueuse/core';
|
|
@@ -74,6 +74,7 @@ import '../../components/CollapseItem/index.mjs';
|
|
|
74
74
|
import '../../components/ContextMenu/index.mjs';
|
|
75
75
|
import '../../components/CodeEditor/index.mjs';
|
|
76
76
|
import '../../components/RichEditor/index.mjs';
|
|
77
|
+
import '../../components/LovText/index.mjs';
|
|
77
78
|
import _sfc_main$1 from '../ProForm/ProForm.vue.mjs';
|
|
78
79
|
/* empty css */
|
|
79
80
|
import cloneDeep from '../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.mjs';
|
|
@@ -75,6 +75,7 @@ import '../../components/CollapseItem/index.mjs';
|
|
|
75
75
|
import '../../components/ContextMenu/index.mjs';
|
|
76
76
|
import '../../components/CodeEditor/index.mjs';
|
|
77
77
|
import '../../components/RichEditor/index.mjs';
|
|
78
|
+
import '../../components/LovText/index.mjs';
|
|
78
79
|
import { ComponentsMap } from './componentsMap.mjs';
|
|
79
80
|
import isPlainObject from '../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.mjs';
|
|
80
81
|
import cloneDeep from '../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.mjs';
|
|
@@ -75,6 +75,7 @@ import '../../components/CollapseItem/index.mjs';
|
|
|
75
75
|
import '../../components/ContextMenu/index.mjs';
|
|
76
76
|
import '../../components/CodeEditor/index.mjs';
|
|
77
77
|
import '../../components/RichEditor/index.mjs';
|
|
78
|
+
import '../../components/LovText/index.mjs';
|
|
78
79
|
import { useNamespace } from '../../hooks/use-namespace.mjs';
|
|
79
80
|
|
|
80
81
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -75,6 +75,7 @@ import '../../components/CollapseItem/index.mjs';
|
|
|
75
75
|
import '../../components/ContextMenu/index.mjs';
|
|
76
76
|
import '../../components/CodeEditor/index.mjs';
|
|
77
77
|
import '../../components/RichEditor/index.mjs';
|
|
78
|
+
import '../../components/LovText/index.mjs';
|
|
78
79
|
import { Search } from '@funcho/icons-vue';
|
|
79
80
|
import { useElementSize } from '@vueuse/core';
|
|
80
81
|
|
|
@@ -77,6 +77,7 @@ import '../../components/CollapseItem/index.mjs';
|
|
|
77
77
|
import '../../components/ContextMenu/index.mjs';
|
|
78
78
|
import '../../components/CodeEditor/index.mjs';
|
|
79
79
|
import '../../components/RichEditor/index.mjs';
|
|
80
|
+
import '../../components/LovText/index.mjs';
|
|
80
81
|
|
|
81
82
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
83
|
...{
|
|
@@ -16,6 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
filterable: { type: Boolean, default: true },
|
|
17
17
|
collapseTags: { type: Boolean, default: true },
|
|
18
18
|
collapseTagsTooltip: { type: Boolean, default: true },
|
|
19
|
+
isSql: { type: Boolean, default: false },
|
|
19
20
|
tagType: { default: "primary" }
|
|
20
21
|
},
|
|
21
22
|
setup(__props, { expose: __expose }) {
|
|
@@ -30,7 +31,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
31
|
try {
|
|
31
32
|
const context = {
|
|
32
33
|
lovId: props.lovId,
|
|
33
|
-
isUpdateLovOptions: props.isUpdateLovOptions
|
|
34
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
35
|
+
isSql: props.isSql
|
|
34
36
|
};
|
|
35
37
|
lovIdOptions.value = await config.requestHandler(context);
|
|
36
38
|
} catch (error) {
|
|
@@ -13,6 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
__name: "CheckboxGroup",
|
|
14
14
|
props: /* @__PURE__ */ mergeModels({
|
|
15
15
|
lovId: { default: "" },
|
|
16
|
+
isSql: { type: Boolean, default: false },
|
|
16
17
|
isUpdateLovOptions: { type: Boolean, default: false },
|
|
17
18
|
hasIndeterminate: { type: Boolean, default: false },
|
|
18
19
|
options: { default: () => [] },
|
|
@@ -47,7 +48,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
48
|
try {
|
|
48
49
|
const context = {
|
|
49
50
|
lovId: myProps.lovId,
|
|
50
|
-
isUpdateLovOptions: myProps.isUpdateLovOptions
|
|
51
|
+
isUpdateLovOptions: myProps.isUpdateLovOptions,
|
|
52
|
+
isSql: myProps.isSql
|
|
51
53
|
};
|
|
52
54
|
lovIdOptions.value = await config.requestHandler(context);
|
|
53
55
|
} catch (error) {
|
|
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
__name: "Dropdown",
|
|
18
18
|
props: /* @__PURE__ */ mergeModels({
|
|
19
19
|
lovId: { default: "" },
|
|
20
|
+
isSql: { type: Boolean, default: false },
|
|
20
21
|
isUpdateLovOptions: { type: Boolean, default: false },
|
|
21
22
|
options: { default: () => [] },
|
|
22
23
|
maxHeight: { default: 320 },
|
|
@@ -56,7 +57,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
57
|
try {
|
|
57
58
|
const context = {
|
|
58
59
|
lovId: props.lovId,
|
|
59
|
-
isUpdateLovOptions: props.isUpdateLovOptions
|
|
60
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
61
|
+
isSql: props.isSql
|
|
60
62
|
};
|
|
61
63
|
lovIdOptions.value = await config.requestHandler(context);
|
|
62
64
|
} catch (error) {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent, inject, ref, watch, onMounted, computed, createElementBlock, openBlock, toDisplayString } from 'vue';
|
|
2
|
+
import { FC_LOVID_REQUEST_CONFIG_KEY } from '../../config/lovId-request-provide.mjs';
|
|
3
|
+
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
...{
|
|
6
|
+
name: "FcLovText"
|
|
7
|
+
},
|
|
8
|
+
__name: "LovText",
|
|
9
|
+
props: {
|
|
10
|
+
lovId: { default: "" },
|
|
11
|
+
value: { default: null },
|
|
12
|
+
isSql: { type: Boolean, default: false },
|
|
13
|
+
isUpdateLovOptions: { type: Boolean, default: false }
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const config = inject(FC_LOVID_REQUEST_CONFIG_KEY, {});
|
|
17
|
+
const props = __props;
|
|
18
|
+
const lovIdLoading = ref(false);
|
|
19
|
+
const lovIdOptions = ref([]);
|
|
20
|
+
const loadData = async () => {
|
|
21
|
+
if (!props.lovId || !config.requestHandler) return;
|
|
22
|
+
lovIdLoading.value = true;
|
|
23
|
+
try {
|
|
24
|
+
const context = {
|
|
25
|
+
lovId: props.lovId,
|
|
26
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
27
|
+
isSql: props.isSql
|
|
28
|
+
};
|
|
29
|
+
lovIdOptions.value = await config.requestHandler(context);
|
|
30
|
+
} finally {
|
|
31
|
+
lovIdLoading.value = false;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
watch(
|
|
35
|
+
() => props.lovId,
|
|
36
|
+
(newId) => {
|
|
37
|
+
lovIdOptions.value = [];
|
|
38
|
+
if (newId) {
|
|
39
|
+
loadData();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
onMounted(() => {
|
|
44
|
+
if (props.lovId) loadData();
|
|
45
|
+
});
|
|
46
|
+
const displayText = computed(() => {
|
|
47
|
+
if (!props.value) return "";
|
|
48
|
+
const matched = lovIdOptions.value.find((opt) => opt.value === props.value);
|
|
49
|
+
return matched ? matched.label : props.value;
|
|
50
|
+
});
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return openBlock(), createElementBlock("span", null, toDisplayString(displayText.value), 1);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export { _sfc_main as default };
|
|
@@ -10,6 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
__name: "Radio",
|
|
11
11
|
props: {
|
|
12
12
|
lovId: { default: "" },
|
|
13
|
+
isSql: { type: Boolean, default: false },
|
|
13
14
|
isUpdateLovOptions: { type: Boolean, default: false },
|
|
14
15
|
options: { default: () => [] }
|
|
15
16
|
},
|
|
@@ -25,7 +26,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
26
|
try {
|
|
26
27
|
const context = {
|
|
27
28
|
lovId: props.lovId,
|
|
28
|
-
isUpdateLovOptions: props.isUpdateLovOptions
|
|
29
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
30
|
+
isSql: props.isSql
|
|
29
31
|
};
|
|
30
32
|
lovIdOptions.value = await config.requestHandler(context);
|
|
31
33
|
} catch (error) {
|
|
@@ -10,6 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
__name: "Select",
|
|
11
11
|
props: {
|
|
12
12
|
lovId: { default: "" },
|
|
13
|
+
isSql: { type: Boolean, default: false },
|
|
13
14
|
loading: { type: Boolean, default: false },
|
|
14
15
|
isUpdateLovOptions: { type: Boolean, default: false },
|
|
15
16
|
options: { default: () => [] },
|
|
@@ -34,7 +35,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
35
|
try {
|
|
35
36
|
const context = {
|
|
36
37
|
lovId: props.lovId,
|
|
37
|
-
isUpdateLovOptions: props.isUpdateLovOptions
|
|
38
|
+
isUpdateLovOptions: props.isUpdateLovOptions,
|
|
39
|
+
isSql: props.isSql
|
|
38
40
|
};
|
|
39
41
|
lovIdOptions.value = await config.requestHandler(context);
|
|
40
42
|
} finally {
|
|
@@ -76,5 +76,6 @@ export { FcCollapseItem } from './CollapseItem/index.mjs';
|
|
|
76
76
|
export { FcContextMenu } from './ContextMenu/index.mjs';
|
|
77
77
|
export { FcCodeEditor, FcCodeEditorInput } from './CodeEditor/index.mjs';
|
|
78
78
|
export { FcRichEditor, FcRichEditorInput } from './RichEditor/index.mjs';
|
|
79
|
+
export { FcLovText } from './LovText/index.mjs';
|
|
79
80
|
export { default as FcLoadingDirective, default as vLoading } from '../node_modules/.pnpm/element-plus@2.13.5_patch_hash_415fe9eaeb4c26121ef1304c7dfbfaa75441fcd0d7ca1a8beb1acd12_87ac520f28bb40f5a8b03aa48269c150/node_modules/element-plus/es/components/loading/src/directive.mjs';
|
|
80
81
|
export { default as FcLoadingService } from '../node_modules/.pnpm/element-plus@2.13.5_patch_hash_415fe9eaeb4c26121ef1304c7dfbfaa75441fcd0d7ca1a8beb1acd12_87ac520f28bb40f5a8b03aa48269c150/node_modules/element-plus/es/components/loading/src/service.mjs';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -84,6 +84,7 @@ export { FcCollapseItem } from './components/CollapseItem/index.mjs';
|
|
|
84
84
|
export { FcContextMenu } from './components/ContextMenu/index.mjs';
|
|
85
85
|
export { FcCodeEditor, FcCodeEditorInput } from './components/CodeEditor/index.mjs';
|
|
86
86
|
export { FcRichEditor, FcRichEditorInput } from './components/RichEditor/index.mjs';
|
|
87
|
+
export { FcLovText } from './components/LovText/index.mjs';
|
|
87
88
|
export { FcProSidebarMainLayout } from './business/SidebarMainLayout/index.mjs';
|
|
88
89
|
export { FcProDataTable } from './business/DataTable/index.mjs';
|
|
89
90
|
export { FcProForm } from './business/ProForm/index.mjs';
|
|
@@ -6,6 +6,7 @@ type __VLS_Props = {
|
|
|
6
6
|
filterable?: boolean;
|
|
7
7
|
collapseTags?: boolean;
|
|
8
8
|
collapseTagsTooltip?: boolean;
|
|
9
|
+
isSql?: boolean;
|
|
9
10
|
tagType?: 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
10
11
|
};
|
|
11
12
|
declare function __VLS_template(): {
|
|
@@ -772,6 +773,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
772
773
|
lovId: string;
|
|
773
774
|
clearable: boolean;
|
|
774
775
|
options: any[];
|
|
776
|
+
isSql: boolean;
|
|
775
777
|
isUpdateLovOptions: boolean;
|
|
776
778
|
filterable: boolean;
|
|
777
779
|
collapseTags: boolean;
|