@funcho/ui 1.1.16 → 1.1.18
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 +2 -0
- package/dist/cjs/business/EditFormCard/EditFormCard.vue.js +2 -0
- package/dist/cjs/business/ProForm/ProForm.vue.js +2 -0
- package/dist/cjs/business/SidebarMainLayout/SidebarMainLayout.vue.js +23 -7
- package/dist/cjs/business/TreeCheckFilter/TreeCheckFilter.vue.js +2 -0
- package/dist/cjs/business/TreeTransfer/TreeTransfer.vue.js +2 -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/DotStatus/DotStatus.vue.js +15 -0
- package/dist/cjs/components/DotStatus/index.js +11 -0
- 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 +4 -0
- package/dist/cjs/index.js +24 -20
- package/dist/cjs/packages/ui/package.json.js +1 -1
- package/dist/esm/business/DataTable/DataTable.vue.mjs +2 -0
- package/dist/esm/business/EditFormCard/EditFormCard.vue.mjs +2 -0
- package/dist/esm/business/ProForm/ProForm.vue.mjs +2 -0
- package/dist/esm/business/SidebarMainLayout/SidebarMainLayout.vue.mjs +23 -7
- package/dist/esm/business/TreeCheckFilter/TreeCheckFilter.vue.mjs +2 -0
- package/dist/esm/business/TreeTransfer/TreeTransfer.vue.mjs +2 -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/DotStatus/DotStatus.vue.mjs +11 -0
- package/dist/esm/components/DotStatus/index.mjs +6 -0
- 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 +2 -0
- package/dist/esm/index.mjs +2 -0
- package/dist/esm/packages/ui/package.json.mjs +1 -1
- package/dist/style.css +9 -0
- package/dist/types/business/SidebarMainLayout/SidebarMainLayout.vue.d.ts +4 -0
- package/dist/types/business/SidebarMainLayout/index.d.ts +8 -0
- 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/DotStatus/DotStatus.types.d.ts +1 -0
- package/dist/types/components/DotStatus/DotStatus.vue.d.ts +2 -0
- package/dist/types/components/DotStatus/index.d.ts +15 -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 +2 -0
- package/package.json +1 -1
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,8 @@ 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');
|
|
83
|
+
require('../../components/DotStatus/index.js');
|
|
82
84
|
const ProForm_vue_vue_type_script_setup_true_lang = require('../ProForm/ProForm.vue.js');
|
|
83
85
|
;/* empty css */
|
|
84
86
|
const core = require('@vueuse/core');
|
|
@@ -78,6 +78,8 @@ 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');
|
|
82
|
+
require('../../components/DotStatus/index.js');
|
|
81
83
|
const ProForm_vue_vue_type_script_setup_true_lang = require('../ProForm/ProForm.vue.js');
|
|
82
84
|
;/* empty css */
|
|
83
85
|
const cloneDeep = require('../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js');
|
|
@@ -79,6 +79,8 @@ 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');
|
|
83
|
+
require('../../components/DotStatus/index.js');
|
|
82
84
|
const componentsMap = require('./componentsMap.js');
|
|
83
85
|
const isPlainObject = require('../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js');
|
|
84
86
|
const cloneDeep = require('../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js');
|
|
@@ -79,6 +79,8 @@ 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');
|
|
83
|
+
require('../../components/DotStatus/index.js');
|
|
82
84
|
const useNamespace = require('../../hooks/use-namespace.js');
|
|
83
85
|
|
|
84
86
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -88,17 +90,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
88
90
|
__name: "SidebarMainLayout",
|
|
89
91
|
props: {
|
|
90
92
|
leftBorder: { type: Boolean, default: true },
|
|
91
|
-
rightBorder: { type: Boolean, default: true }
|
|
93
|
+
rightBorder: { type: Boolean, default: true },
|
|
94
|
+
direction: { default: "vertical" }
|
|
92
95
|
},
|
|
93
96
|
setup(__props) {
|
|
94
97
|
const ns = useNamespace.useNamespace("sidebar-main-layout");
|
|
95
98
|
const rightContainer = vue.ref(null);
|
|
96
|
-
const { height } = core.useElementSize(rightContainer);
|
|
99
|
+
const { height, width } = core.useElementSize(rightContainer);
|
|
97
100
|
return (_ctx, _cache) => {
|
|
98
101
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
99
102
|
class: vue.normalizeClass(vue.unref(ns).b())
|
|
100
103
|
}, [
|
|
101
|
-
_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
104
|
+
_ctx.$slots.header && __props.direction === "vertical" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
102
105
|
key: 0,
|
|
103
106
|
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
104
107
|
}, [
|
|
@@ -127,11 +130,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
127
130
|
vue.createVNode(vue.unref(index$1.FcSplitterPanel), { min: "50%" }, {
|
|
128
131
|
default: vue.withCtx(() => [
|
|
129
132
|
vue.createElementVNode("div", {
|
|
130
|
-
|
|
131
|
-
ref: rightContainer,
|
|
132
|
-
class: vue.normalizeClass({ [vue.unref(ns).e("right")]: true, [vue.unref(ns).is("border")]: __props.rightBorder })
|
|
133
|
+
class: vue.normalizeClass({ [vue.unref(ns).e("right")]: true })
|
|
133
134
|
}, [
|
|
134
|
-
|
|
135
|
+
_ctx.$slots.header && __props.direction === "horizontal" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
136
|
+
key: 0,
|
|
137
|
+
class: vue.normalizeClass({ [vue.unref(ns).e("header")]: true })
|
|
138
|
+
}, [
|
|
139
|
+
vue.renderSlot(_ctx.$slots, "header")
|
|
140
|
+
], 2)) : vue.createCommentVNode("", true),
|
|
141
|
+
vue.createElementVNode("div", {
|
|
142
|
+
ref_key: "rightContainer",
|
|
143
|
+
ref: rightContainer,
|
|
144
|
+
class: vue.normalizeClass({ [vue.unref(ns).e("container")]: true, [vue.unref(ns).is("border")]: __props.rightBorder })
|
|
145
|
+
}, [
|
|
146
|
+
vue.renderSlot(_ctx.$slots, "right", {
|
|
147
|
+
height: vue.unref(height),
|
|
148
|
+
width: vue.unref(width)
|
|
149
|
+
})
|
|
150
|
+
], 2)
|
|
135
151
|
], 2)
|
|
136
152
|
]),
|
|
137
153
|
_: 3
|
|
@@ -79,6 +79,8 @@ 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');
|
|
83
|
+
require('../../components/DotStatus/index.js');
|
|
82
84
|
const Icons = require('@funcho/icons-vue');
|
|
83
85
|
const core = require('@vueuse/core');
|
|
84
86
|
|
|
@@ -81,6 +81,8 @@ 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');
|
|
85
|
+
require('../../components/DotStatus/index.js');
|
|
84
86
|
|
|
85
87
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
86
88
|
...{
|
|
@@ -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) {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
const _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
7
|
+
|
|
8
|
+
const _sfc_main = { };
|
|
9
|
+
|
|
10
|
+
function _sfc_render(_ctx, _cache) {
|
|
11
|
+
return (vue.openBlock(), vue.createElementBlock("div", null, "1"))
|
|
12
|
+
}
|
|
13
|
+
const DotStatus = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render]]);
|
|
14
|
+
|
|
15
|
+
exports.default = DotStatus;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const DotStatus = require('./DotStatus.vue.js');
|
|
6
|
+
const withInstall = require('../../_utils/with-install.js');
|
|
7
|
+
|
|
8
|
+
const FcDotStatus = withInstall.withInstall(DotStatus.default);
|
|
9
|
+
|
|
10
|
+
exports.FcDotStatus = FcDotStatus;
|
|
11
|
+
exports.default = FcDotStatus;
|
|
@@ -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,8 @@ 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');
|
|
84
|
+
const index$1f = require('./DotStatus/index.js');
|
|
83
85
|
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
86
|
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
87
|
|
|
@@ -190,6 +192,8 @@ exports.FcCodeEditor = index$1c.FcCodeEditor;
|
|
|
190
192
|
exports.FcCodeEditorInput = index$1c.FcCodeEditorInput;
|
|
191
193
|
exports.FcRichEditor = index$1d.FcRichEditor;
|
|
192
194
|
exports.FcRichEditorInput = index$1d.FcRichEditorInput;
|
|
195
|
+
exports.FcLovText = index$1e.FcLovText;
|
|
196
|
+
exports.FcDotStatus = index$1f.FcDotStatus;
|
|
193
197
|
exports.FcLoadingDirective = directive.default;
|
|
194
198
|
exports.vLoading = directive.default;
|
|
195
199
|
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$1o = require('./components/index.js');
|
|
11
|
+
const index$1p = 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,19 +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('./
|
|
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('./components/DotStatus/index.js');
|
|
93
|
+
const index$1h = require('./business/SidebarMainLayout/index.js');
|
|
94
|
+
const index$1i = require('./business/DataTable/index.js');
|
|
95
|
+
const index$1j = require('./business/ProForm/index.js');
|
|
96
|
+
const index$1k = require('./business/TreeCheckFilter/index.js');
|
|
97
|
+
const index$1l = require('./business/TreeTransfer/index.js');
|
|
98
|
+
const index$1m = require('./business/EditFormCard/index.js');
|
|
99
|
+
const index$1n = require('./business/FormDialog/index.js');
|
|
98
100
|
|
|
99
|
-
const components = Object.keys(index$
|
|
100
|
-
return index$
|
|
101
|
+
const components = Object.keys(index$1o).map((key) => {
|
|
102
|
+
return index$1o[key];
|
|
101
103
|
});
|
|
102
|
-
const proComponents = Object.keys(index$
|
|
103
|
-
return index$
|
|
104
|
+
const proComponents = Object.keys(index$1p).map((key) => {
|
|
105
|
+
return index$1p[key];
|
|
104
106
|
});
|
|
105
107
|
const installComponents = [...components, ...proComponents].filter((comp) => {
|
|
106
108
|
return typeof comp === "object" && comp.name && typeof comp.install === "function";
|
|
@@ -225,12 +227,14 @@ exports.FcCodeEditor = index$1d.FcCodeEditor;
|
|
|
225
227
|
exports.FcCodeEditorInput = index$1d.FcCodeEditorInput;
|
|
226
228
|
exports.FcRichEditor = index$1e.FcRichEditor;
|
|
227
229
|
exports.FcRichEditorInput = index$1e.FcRichEditorInput;
|
|
228
|
-
exports.
|
|
229
|
-
exports.
|
|
230
|
-
exports.
|
|
231
|
-
exports.
|
|
232
|
-
exports.
|
|
233
|
-
exports.
|
|
234
|
-
exports.
|
|
230
|
+
exports.FcLovText = index$1f.FcLovText;
|
|
231
|
+
exports.FcDotStatus = index$1g.FcDotStatus;
|
|
232
|
+
exports.FcProSidebarMainLayout = index$1h.FcProSidebarMainLayout;
|
|
233
|
+
exports.FcProDataTable = index$1i.FcProDataTable;
|
|
234
|
+
exports.FcProForm = index$1j.FcProForm;
|
|
235
|
+
exports.FcProTreeCheckFilter = index$1k.FcProTreeCheckFilter;
|
|
236
|
+
exports.FcProTreeTransfer = index$1l.FcProTreeTransfer;
|
|
237
|
+
exports.FcProEditFormCard = index$1m.FcProEditFormCard;
|
|
238
|
+
exports.FcProFormDialog = index$1n.FcProFormDialog;
|
|
235
239
|
exports.default = index;
|
|
236
240
|
exports.install = install;
|
|
@@ -75,6 +75,8 @@ 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';
|
|
79
|
+
import '../../components/DotStatus/index.mjs';
|
|
78
80
|
import _sfc_main$1 from '../ProForm/ProForm.vue.mjs';
|
|
79
81
|
/* empty css */
|
|
80
82
|
import { useElementSize } from '@vueuse/core';
|
|
@@ -74,6 +74,8 @@ 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';
|
|
78
|
+
import '../../components/DotStatus/index.mjs';
|
|
77
79
|
import _sfc_main$1 from '../ProForm/ProForm.vue.mjs';
|
|
78
80
|
/* empty css */
|
|
79
81
|
import cloneDeep from '../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.mjs';
|
|
@@ -75,6 +75,8 @@ 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';
|
|
79
|
+
import '../../components/DotStatus/index.mjs';
|
|
78
80
|
import { ComponentsMap } from './componentsMap.mjs';
|
|
79
81
|
import isPlainObject from '../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.mjs';
|
|
80
82
|
import cloneDeep from '../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.mjs';
|
|
@@ -75,6 +75,8 @@ 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';
|
|
79
|
+
import '../../components/DotStatus/index.mjs';
|
|
78
80
|
import { useNamespace } from '../../hooks/use-namespace.mjs';
|
|
79
81
|
|
|
80
82
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -84,17 +86,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
86
|
__name: "SidebarMainLayout",
|
|
85
87
|
props: {
|
|
86
88
|
leftBorder: { type: Boolean, default: true },
|
|
87
|
-
rightBorder: { type: Boolean, default: true }
|
|
89
|
+
rightBorder: { type: Boolean, default: true },
|
|
90
|
+
direction: { default: "vertical" }
|
|
88
91
|
},
|
|
89
92
|
setup(__props) {
|
|
90
93
|
const ns = useNamespace("sidebar-main-layout");
|
|
91
94
|
const rightContainer = ref(null);
|
|
92
|
-
const { height } = useElementSize(rightContainer);
|
|
95
|
+
const { height, width } = useElementSize(rightContainer);
|
|
93
96
|
return (_ctx, _cache) => {
|
|
94
97
|
return openBlock(), createElementBlock("div", {
|
|
95
98
|
class: normalizeClass(unref(ns).b())
|
|
96
99
|
}, [
|
|
97
|
-
_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
100
|
+
_ctx.$slots.header && __props.direction === "vertical" ? (openBlock(), createElementBlock("div", {
|
|
98
101
|
key: 0,
|
|
99
102
|
class: normalizeClass(unref(ns).e("header"))
|
|
100
103
|
}, [
|
|
@@ -123,11 +126,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
126
|
createVNode(unref(FcSplitterPanel), { min: "50%" }, {
|
|
124
127
|
default: withCtx(() => [
|
|
125
128
|
createElementVNode("div", {
|
|
126
|
-
|
|
127
|
-
ref: rightContainer,
|
|
128
|
-
class: normalizeClass({ [unref(ns).e("right")]: true, [unref(ns).is("border")]: __props.rightBorder })
|
|
129
|
+
class: normalizeClass({ [unref(ns).e("right")]: true })
|
|
129
130
|
}, [
|
|
130
|
-
|
|
131
|
+
_ctx.$slots.header && __props.direction === "horizontal" ? (openBlock(), createElementBlock("div", {
|
|
132
|
+
key: 0,
|
|
133
|
+
class: normalizeClass({ [unref(ns).e("header")]: true })
|
|
134
|
+
}, [
|
|
135
|
+
renderSlot(_ctx.$slots, "header")
|
|
136
|
+
], 2)) : createCommentVNode("", true),
|
|
137
|
+
createElementVNode("div", {
|
|
138
|
+
ref_key: "rightContainer",
|
|
139
|
+
ref: rightContainer,
|
|
140
|
+
class: normalizeClass({ [unref(ns).e("container")]: true, [unref(ns).is("border")]: __props.rightBorder })
|
|
141
|
+
}, [
|
|
142
|
+
renderSlot(_ctx.$slots, "right", {
|
|
143
|
+
height: unref(height),
|
|
144
|
+
width: unref(width)
|
|
145
|
+
})
|
|
146
|
+
], 2)
|
|
131
147
|
], 2)
|
|
132
148
|
]),
|
|
133
149
|
_: 3
|
|
@@ -75,6 +75,8 @@ 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';
|
|
79
|
+
import '../../components/DotStatus/index.mjs';
|
|
78
80
|
import { Search } from '@funcho/icons-vue';
|
|
79
81
|
import { useElementSize } from '@vueuse/core';
|
|
80
82
|
|
|
@@ -77,6 +77,8 @@ 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';
|
|
81
|
+
import '../../components/DotStatus/index.mjs';
|
|
80
82
|
|
|
81
83
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
84
|
...{
|
|
@@ -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) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElementBlock, openBlock } from 'vue';
|
|
2
|
+
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
const _sfc_main = { };
|
|
5
|
+
|
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
|
7
|
+
return (openBlock(), createElementBlock("div", null, "1"))
|
|
8
|
+
}
|
|
9
|
+
const DotStatus = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
|
|
10
|
+
|
|
11
|
+
export { DotStatus as default };
|
|
@@ -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) {
|