duck-vue-components 0.2.5 → 0.2.6
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/dist/{controls-CAMRPXvF.cjs → controls-DpkadZFc.cjs} +326 -275
- package/dist/{controls-C2eYKsnS.js → controls-DrfqUxIp.js} +319 -274
- package/dist/controls.cjs +7 -1
- package/dist/controls.d.cts +2 -2
- package/dist/controls.d.ts +2 -2
- package/dist/controls.js +2 -2
- package/dist/{index-CtHSjmJQ.d.cts → index-CEIaHTGG.d.cts} +405 -387
- package/dist/{index-CpIVvKpt.d.ts → index-DC-T2dZD.d.ts} +1 -1
- package/dist/{index-CmiTP4nh.d.cts → index-k9hHlxH9.d.cts} +1 -1
- package/dist/{index-C227XKGI.d.ts → index-pAifGnVL.d.ts} +405 -387
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/pages.cjs +1 -1
- package/dist/pages.d.cts +1 -1
- package/dist/pages.d.ts +1 -1
- package/dist/pages.js +1 -1
- package/dist/stores.d.cts +1 -1
- package/dist/stores.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Et as isHTML, Lt as renderTemplate, P as withInstall, a as bd09ToGcj02,
|
|
|
3
3
|
import { a as localeOptions, i as locale, t as i18n, u as t$3 } from "./locale-B3sWTtoq.js";
|
|
4
4
|
import { useColumnsSettingStore, useLocalSettingStore } from "./stores.js";
|
|
5
5
|
import { useFormValue } from "./hooks.js";
|
|
6
|
-
import { ElAffix, ElAutocomplete, ElButton, ElButtonGroup, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElCol, ElConfigProvider, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElForm, ElFormItem, ElIcon, ElImage, ElInput, ElInputNumber, ElInputTag, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElPagination, ElPopconfirm, ElPopover, ElRadio, ElRadioButton, ElRadioGroup, ElRow, ElSegmented, ElSelect, ElSlider, ElSwitch, ElTabPane, ElTableColumn, ElTabs, ElTag, ElText, ElTooltip, ElTree, ElTreeSelect, ElUpload, ElWatermark } from "element-plus";
|
|
6
|
+
import { ElAffix, ElAutocomplete, ElButton, ElButtonGroup, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElCol, ElConfigProvider, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElForm, ElFormItem, ElIcon, ElImage, ElInput, ElInputNumber, ElInputTag, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElPagination, ElPopconfirm, ElPopover, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRow, ElSegmented, ElSelect, ElSlider, ElSwitch, ElTabPane, ElTableColumn, ElTabs, ElTag, ElText, ElTooltip, ElTree, ElTreeSelect, ElUpload, ElWatermark } from "element-plus";
|
|
7
7
|
import { storeToRefs } from "pinia";
|
|
8
8
|
import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, isReactive, isRef, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onUnmounted, onUpdated, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, toDisplayString, toRaw, unref, useCssVars, useModel, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
9
9
|
import { debounce } from "lodash-es";
|
|
@@ -46,8 +46,8 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
|
46
46
|
var MyButton_default = /* @__PURE__ */ _plugin_vue_export_helper_default(MyButton_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8d6f1d45"]]);
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/packages/controls/affix/affix.vue?vue&type=script&setup=true&lang.ts
|
|
49
|
-
const _hoisted_1$
|
|
50
|
-
const _hoisted_2$
|
|
49
|
+
const _hoisted_1$26 = ["innerHTML"];
|
|
50
|
+
const _hoisted_2$25 = { key: 2 };
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/packages/controls/affix/affix.vue
|
|
53
53
|
var affix_default = /* @__PURE__ */ defineComponent({
|
|
@@ -83,7 +83,7 @@ var affix_default = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
fn: withCtx(() => [unref(isComponent)(__props.control.default) && unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
84
84
|
key: 1,
|
|
85
85
|
innerHTML: __props.control.default
|
|
86
|
-
}, null, 8, _hoisted_1$
|
|
86
|
+
}, null, 8, _hoisted_1$26)) : (openBlock(), createElementBlock("span", _hoisted_2$25, toDisplayString(__props.control.default), 1))]),
|
|
87
87
|
key: "0"
|
|
88
88
|
} : void 0]), 1040);
|
|
89
89
|
};
|
|
@@ -92,11 +92,11 @@ var affix_default = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/packages/controls/affix/affix.ts
|
|
94
94
|
var affix_exports = /* @__PURE__ */ __exportAll({
|
|
95
|
-
Template: () => Template$
|
|
96
|
-
init: () => init$
|
|
95
|
+
Template: () => Template$35,
|
|
96
|
+
init: () => init$38
|
|
97
97
|
});
|
|
98
|
-
const Template$
|
|
99
|
-
function init$
|
|
98
|
+
const Template$35 = withInstall(affix_default);
|
|
99
|
+
function init$38(moduleName, name, options = {}) {
|
|
100
100
|
return {
|
|
101
101
|
moduleName,
|
|
102
102
|
name,
|
|
@@ -105,8 +105,8 @@ function init$37(moduleName, name, options = {}) {
|
|
|
105
105
|
}
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/packages/controls/autocomplete/autocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
108
|
-
const _hoisted_1$
|
|
109
|
-
const _hoisted_2$
|
|
108
|
+
const _hoisted_1$25 = ["innerHTML"];
|
|
109
|
+
const _hoisted_2$24 = { key: 2 };
|
|
110
110
|
const _hoisted_3$19 = ["innerHTML"];
|
|
111
111
|
const _hoisted_4$15 = { key: 2 };
|
|
112
112
|
const _hoisted_5$12 = ["innerHTML"];
|
|
@@ -153,7 +153,7 @@ var autocomplete_default = /* @__PURE__ */ defineComponent({
|
|
|
153
153
|
fn: withCtx(() => [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
154
154
|
key: 1,
|
|
155
155
|
innerHTML: __props.control.default
|
|
156
|
-
}, null, 8, _hoisted_1$
|
|
156
|
+
}, null, 8, _hoisted_1$25)) : (openBlock(), createElementBlock("span", _hoisted_2$24, toDisplayString(__props.control.default), 1))]),
|
|
157
157
|
key: "0"
|
|
158
158
|
} : void 0,
|
|
159
159
|
__props.control?.loadingSlot ? {
|
|
@@ -203,12 +203,12 @@ var autocomplete_default = /* @__PURE__ */ defineComponent({
|
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region src/packages/controls/autocomplete/autocomplete.ts
|
|
205
205
|
var autocomplete_exports = /* @__PURE__ */ __exportAll({
|
|
206
|
-
Template: () => Template$
|
|
207
|
-
init: () => init$
|
|
206
|
+
Template: () => Template$34,
|
|
207
|
+
init: () => init$37
|
|
208
208
|
});
|
|
209
209
|
const { t: t$2 } = i18n.global;
|
|
210
|
-
const Template$
|
|
211
|
-
function init$
|
|
210
|
+
const Template$34 = withInstall(autocomplete_default);
|
|
211
|
+
function init$37(moduleName, name, options = {}) {
|
|
212
212
|
return {
|
|
213
213
|
name,
|
|
214
214
|
placeholder: t$2("controls.pleaseInput") + t$2(moduleName ? `${moduleName}.${name}` : name),
|
|
@@ -217,8 +217,8 @@ function init$36(moduleName, name, options = {}) {
|
|
|
217
217
|
}
|
|
218
218
|
//#endregion
|
|
219
219
|
//#region src/packages/controls/button/button.vue?vue&type=script&setup=true&lang.ts
|
|
220
|
-
const _hoisted_1$
|
|
221
|
-
const _hoisted_2$
|
|
220
|
+
const _hoisted_1$24 = ["innerHTML"];
|
|
221
|
+
const _hoisted_2$23 = { key: 2 };
|
|
222
222
|
const _hoisted_3$18 = ["innerHTML"];
|
|
223
223
|
const _hoisted_4$14 = { key: 2 };
|
|
224
224
|
const _hoisted_5$11 = ["innerHTML"];
|
|
@@ -266,7 +266,7 @@ var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
266
266
|
fn: withCtx(() => [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(markRaw(__props.control.default)), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
267
267
|
key: 1,
|
|
268
268
|
innerHTML: __props.control.default
|
|
269
|
-
}, null, 8, _hoisted_1$
|
|
269
|
+
}, null, 8, _hoisted_1$24)) : (openBlock(), createElementBlock("span", _hoisted_2$23, toDisplayString(__props.control.default), 1))]),
|
|
270
270
|
key: "1"
|
|
271
271
|
} : __props.control.separator ? {
|
|
272
272
|
name: "default",
|
|
@@ -321,11 +321,11 @@ var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region src/packages/controls/button/button.ts
|
|
323
323
|
var button_exports = /* @__PURE__ */ __exportAll({
|
|
324
|
-
Template: () => Template$
|
|
325
|
-
init: () => init$
|
|
324
|
+
Template: () => Template$33,
|
|
325
|
+
init: () => init$36
|
|
326
326
|
});
|
|
327
|
-
const Template$
|
|
328
|
-
function init$
|
|
327
|
+
const Template$33 = withInstall(button_default);
|
|
328
|
+
function init$36(moduleName, name, options) {
|
|
329
329
|
return {
|
|
330
330
|
moduleName,
|
|
331
331
|
name,
|
|
@@ -400,8 +400,8 @@ var buttonGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
400
400
|
});
|
|
401
401
|
//#endregion
|
|
402
402
|
//#region src/packages/controls/popconfirm/popconfirm.vue?vue&type=script&setup=true&lang.ts
|
|
403
|
-
const _hoisted_1$
|
|
404
|
-
const _hoisted_2$
|
|
403
|
+
const _hoisted_1$23 = ["innerHTML"];
|
|
404
|
+
const _hoisted_2$22 = ["innerHTML"];
|
|
405
405
|
const _hoisted_3$17 = { key: 2 };
|
|
406
406
|
//#endregion
|
|
407
407
|
//#region src/packages/controls/popconfirm/popconfirm.vue
|
|
@@ -446,14 +446,14 @@ var popconfirm_default = /* @__PURE__ */ defineComponent({
|
|
|
446
446
|
actions: withCtx(() => [unref(isComponent)(__props.control.actions) && !unref(isHTML)(__props.control.actions) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.actions), { key: 0 })) : typeof __props.control.actions === "string" && unref(isHTML)(__props.control.actions) ? (openBlock(), createElementBlock("div", {
|
|
447
447
|
key: 1,
|
|
448
448
|
innerHTML: __props.control.actions
|
|
449
|
-
}, null, 8, _hoisted_2$
|
|
449
|
+
}, null, 8, _hoisted_2$22)) : (openBlock(), createElementBlock("span", _hoisted_3$17, toDisplayString(__props.control.actions), 1))]),
|
|
450
450
|
_: 2
|
|
451
451
|
}, [__props.control.reference ? {
|
|
452
452
|
name: "reference",
|
|
453
453
|
fn: withCtx(() => [unref(isComponent)(__props.control.reference) && !unref(isHTML)(__props.control.reference) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.reference), { key: 0 })) : typeof __props.control.reference === "string" && unref(isHTML)(__props.control.reference) ? (openBlock(), createElementBlock("div", {
|
|
454
454
|
key: 1,
|
|
455
455
|
innerHTML: __props.control.reference
|
|
456
|
-
}, null, 8, _hoisted_1$
|
|
456
|
+
}, null, 8, _hoisted_1$23)) : (openBlock(), createBlock(unref(button_exports).Template, {
|
|
457
457
|
key: 2,
|
|
458
458
|
control: buttonProps.value
|
|
459
459
|
}, null, 8, ["control"]))]),
|
|
@@ -469,13 +469,13 @@ var popconfirm_default = /* @__PURE__ */ defineComponent({
|
|
|
469
469
|
//#endregion
|
|
470
470
|
//#region src/packages/controls/popconfirm/popconfirm.ts
|
|
471
471
|
var popconfirm_exports = /* @__PURE__ */ __exportAll({
|
|
472
|
-
Template: () => Template$
|
|
473
|
-
init: () => init$
|
|
472
|
+
Template: () => Template$32,
|
|
473
|
+
init: () => init$35
|
|
474
474
|
});
|
|
475
|
-
const Template$
|
|
476
|
-
function init$
|
|
475
|
+
const Template$32 = withInstall(popconfirm_default);
|
|
476
|
+
function init$35(moduleName, name, options = {}) {
|
|
477
477
|
const label = options?.label ?? t$3(`${moduleName}.${name}`);
|
|
478
|
-
const button = options?.button ?? init$
|
|
478
|
+
const button = options?.button ?? init$36(moduleName, name, {
|
|
479
479
|
text: options?.text ?? false,
|
|
480
480
|
label,
|
|
481
481
|
icon: options?.icon,
|
|
@@ -580,13 +580,13 @@ var dropdown_default = /* @__PURE__ */ defineComponent({
|
|
|
580
580
|
//#endregion
|
|
581
581
|
//#region src/packages/controls/dropdown/dropdown.ts
|
|
582
582
|
var dropdown_exports = /* @__PURE__ */ __exportAll({
|
|
583
|
-
Template: () => Template$
|
|
584
|
-
init: () => init$
|
|
583
|
+
Template: () => Template$31,
|
|
584
|
+
init: () => init$34
|
|
585
585
|
});
|
|
586
|
-
const Template$
|
|
587
|
-
function init$
|
|
586
|
+
const Template$31 = withInstall(dropdown_default);
|
|
587
|
+
function init$34(moduleName, name, options) {
|
|
588
588
|
const items = reactive(options?.items ?? []);
|
|
589
|
-
const button = options?.button ?? init$
|
|
589
|
+
const button = options?.button ?? init$36(moduleName, name, {
|
|
590
590
|
suffixIcon: ArrowDown,
|
|
591
591
|
text: options?.text ?? false,
|
|
592
592
|
disabled: options?.disabled ?? false,
|
|
@@ -617,17 +617,17 @@ function init$33(moduleName, name, options) {
|
|
|
617
617
|
//#endregion
|
|
618
618
|
//#region src/packages/controls/buttonGroup/buttonGroup.ts
|
|
619
619
|
var buttonGroup_exports = /* @__PURE__ */ __exportAll({
|
|
620
|
-
Template: () => Template$
|
|
620
|
+
Template: () => Template$30,
|
|
621
621
|
createComponent: () => createComponent$3,
|
|
622
|
-
init: () => init$
|
|
622
|
+
init: () => init$33
|
|
623
623
|
});
|
|
624
|
-
const Template$
|
|
624
|
+
const Template$30 = withInstall(buttonGroup_default);
|
|
625
625
|
const componentMap = {
|
|
626
626
|
button: button_exports,
|
|
627
627
|
popconfirm: popconfirm_exports,
|
|
628
628
|
dropdown: dropdown_exports
|
|
629
629
|
};
|
|
630
|
-
function init$
|
|
630
|
+
function init$33(moduleName, options) {
|
|
631
631
|
const localSetting = useLocalSettingStore();
|
|
632
632
|
const controls = reactive(options?.controls ?? []);
|
|
633
633
|
const buttonsArea = options?.buttonsArea ?? "custom";
|
|
@@ -689,8 +689,8 @@ function createComponent$3(controlType, moduleName, name, options, items) {
|
|
|
689
689
|
}
|
|
690
690
|
//#endregion
|
|
691
691
|
//#region src/packages/controls/dialog/dialog.vue?vue&type=script&setup=true&lang.ts
|
|
692
|
-
const _hoisted_1$
|
|
693
|
-
const _hoisted_2$
|
|
692
|
+
const _hoisted_1$22 = ["innerHTML"];
|
|
693
|
+
const _hoisted_2$21 = { key: 2 };
|
|
694
694
|
const _hoisted_3$16 = ["innerHTML"];
|
|
695
695
|
const _hoisted_4$13 = { key: 2 };
|
|
696
696
|
//#endregion
|
|
@@ -854,7 +854,7 @@ var dialog_default$1 = /* @__PURE__ */ defineComponent({
|
|
|
854
854
|
}, null, 512)) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
855
855
|
key: 1,
|
|
856
856
|
innerHTML: __props.control.default
|
|
857
|
-
}, null, 8, _hoisted_1$
|
|
857
|
+
}, null, 8, _hoisted_1$22)) : (openBlock(), createElementBlock("span", _hoisted_2$21, toDisplayString(__props.control.default), 1))]),
|
|
858
858
|
key: "1"
|
|
859
859
|
} : void 0, _ctx.$slots.footer ? {
|
|
860
860
|
name: "footer",
|
|
@@ -885,10 +885,10 @@ var dialog_default$1 = /* @__PURE__ */ defineComponent({
|
|
|
885
885
|
//#region src/packages/controls/dialog/dialog.ts
|
|
886
886
|
var dialog_exports = /* @__PURE__ */ __exportAll({
|
|
887
887
|
DIALOG_FORM_INJECTION_KEY: () => DIALOG_FORM_INJECTION_KEY,
|
|
888
|
-
Template: () => Template$
|
|
889
|
-
init: () => init$
|
|
888
|
+
Template: () => Template$29,
|
|
889
|
+
init: () => init$32
|
|
890
890
|
});
|
|
891
|
-
const Template$
|
|
891
|
+
const Template$29 = withInstall(dialog_default$1);
|
|
892
892
|
function createButtonClickHandler(formRef, dialogControl) {
|
|
893
893
|
return (buttonName, event) => {
|
|
894
894
|
switch (buttonName.name) {
|
|
@@ -940,7 +940,7 @@ const closeDialog = (dialogControl, done) => {
|
|
|
940
940
|
else handleClose();
|
|
941
941
|
};
|
|
942
942
|
const DIALOG_FORM_INJECTION_KEY = Symbol("dialog-form");
|
|
943
|
-
function init$
|
|
943
|
+
function init$32(name, templateName, buttons, options = {}) {
|
|
944
944
|
const dialogControl = reactive({
|
|
945
945
|
name,
|
|
946
946
|
buttons,
|
|
@@ -993,8 +993,8 @@ function init$31(name, templateName, buttons, options = {}) {
|
|
|
993
993
|
}
|
|
994
994
|
//#endregion
|
|
995
995
|
//#region src/packages/controls/divider/divider.vue?vue&type=script&setup=true&lang.ts
|
|
996
|
-
const _hoisted_1$
|
|
997
|
-
const _hoisted_2$
|
|
996
|
+
const _hoisted_1$21 = ["innerHTML"];
|
|
997
|
+
const _hoisted_2$20 = { key: 2 };
|
|
998
998
|
//#endregion
|
|
999
999
|
//#region src/packages/controls/divider/divider.vue
|
|
1000
1000
|
var divider_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1014,7 +1014,7 @@ var divider_default = /* @__PURE__ */ defineComponent({
|
|
|
1014
1014
|
default: withCtx(() => [__props.control?.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
1015
1015
|
key: 1,
|
|
1016
1016
|
innerHTML: __props.control.default
|
|
1017
|
-
}, null, 8, _hoisted_1$
|
|
1017
|
+
}, null, 8, _hoisted_1$21)) : (openBlock(), createElementBlock("span", _hoisted_2$20, toDisplayString(__props.control.default), 1))], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.control?.text ?? unref(t$3)(`${__props.control.moduleName}.${__props.control.name}`)), 1)], 64))]),
|
|
1018
1018
|
_: 1
|
|
1019
1019
|
}, 16);
|
|
1020
1020
|
};
|
|
@@ -1023,11 +1023,11 @@ var divider_default = /* @__PURE__ */ defineComponent({
|
|
|
1023
1023
|
//#endregion
|
|
1024
1024
|
//#region src/packages/controls/divider/divider.ts
|
|
1025
1025
|
var divider_exports = /* @__PURE__ */ __exportAll({
|
|
1026
|
-
Template: () => Template$
|
|
1027
|
-
init: () => init$
|
|
1026
|
+
Template: () => Template$28,
|
|
1027
|
+
init: () => init$31
|
|
1028
1028
|
});
|
|
1029
|
-
const Template$
|
|
1030
|
-
function init$
|
|
1029
|
+
const Template$28 = withInstall(divider_default);
|
|
1030
|
+
function init$31(moduleName, name, options = {}) {
|
|
1031
1031
|
return {
|
|
1032
1032
|
moduleName,
|
|
1033
1033
|
name,
|
|
@@ -1037,11 +1037,11 @@ function init$30(moduleName, name, options = {}) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
//#endregion
|
|
1039
1039
|
//#region src/packages/controls/input/input.vue?vue&type=script&setup=true&lang.ts
|
|
1040
|
-
const _hoisted_1$
|
|
1040
|
+
const _hoisted_1$20 = {
|
|
1041
1041
|
class: "minput-box",
|
|
1042
1042
|
style: { "width": "100%" }
|
|
1043
1043
|
};
|
|
1044
|
-
const _hoisted_2$
|
|
1044
|
+
const _hoisted_2$19 = ["innerHTML"];
|
|
1045
1045
|
const _hoisted_3$15 = { key: 2 };
|
|
1046
1046
|
const _hoisted_4$12 = ["innerHTML"];
|
|
1047
1047
|
const _hoisted_5$10 = { key: 2 };
|
|
@@ -1202,7 +1202,7 @@ var input_default = /* @__PURE__ */ defineComponent({
|
|
|
1202
1202
|
});
|
|
1203
1203
|
__expose(instance);
|
|
1204
1204
|
return (_ctx, _cache) => {
|
|
1205
|
-
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$
|
|
1205
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$20, [createVNode(unref(ElInput), mergeProps(inputProps.value, {
|
|
1206
1206
|
placeholder: placeholder.value,
|
|
1207
1207
|
modelValue: inputValue.value,
|
|
1208
1208
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => inputValue.value = $event),
|
|
@@ -1226,7 +1226,7 @@ var input_default = /* @__PURE__ */ defineComponent({
|
|
|
1226
1226
|
fn: withCtx(() => [unref(isComponent)(__props.control.prefix) && !unref(isHTML)(__props.control.prefix) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.prefix), { key: 0 })) : typeof __props.control.prefix === "string" && unref(isHTML)(__props.control.prefix) ? (openBlock(), createElementBlock("div", {
|
|
1227
1227
|
key: 1,
|
|
1228
1228
|
innerHTML: __props.control.prefix
|
|
1229
|
-
}, null, 8, _hoisted_2$
|
|
1229
|
+
}, null, 8, _hoisted_2$19)) : (openBlock(), createElementBlock("span", _hoisted_3$15, toDisplayString(__props.control.prefix), 1))]),
|
|
1230
1230
|
key: "1"
|
|
1231
1231
|
} : void 0,
|
|
1232
1232
|
_ctx.$slots.suffix ? {
|
|
@@ -1407,11 +1407,11 @@ var input_default = /* @__PURE__ */ defineComponent({
|
|
|
1407
1407
|
//#endregion
|
|
1408
1408
|
//#region src/packages/controls/input/input.ts
|
|
1409
1409
|
var input_exports = /* @__PURE__ */ __exportAll({
|
|
1410
|
-
Template: () => Template$
|
|
1411
|
-
init: () => init$
|
|
1410
|
+
Template: () => Template$27,
|
|
1411
|
+
init: () => init$30
|
|
1412
1412
|
});
|
|
1413
|
-
const Template$
|
|
1414
|
-
function init$
|
|
1413
|
+
const Template$27 = withInstall(input_default);
|
|
1414
|
+
function init$30(moduleName, name, options) {
|
|
1415
1415
|
let instance = null;
|
|
1416
1416
|
return {
|
|
1417
1417
|
moduleName,
|
|
@@ -1434,8 +1434,8 @@ function init$29(moduleName, name, options) {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
//#endregion
|
|
1436
1436
|
//#region src/packages/controls/select/select.vue?vue&type=script&setup=true&lang.ts
|
|
1437
|
-
const _hoisted_1$
|
|
1438
|
-
const _hoisted_2$
|
|
1437
|
+
const _hoisted_1$19 = ["innerHTML"];
|
|
1438
|
+
const _hoisted_2$18 = { key: 2 };
|
|
1439
1439
|
const _hoisted_3$14 = ["innerHTML"];
|
|
1440
1440
|
const _hoisted_4$11 = { key: 2 };
|
|
1441
1441
|
const _hoisted_5$9 = ["innerHTML"];
|
|
@@ -1620,7 +1620,7 @@ var select_default = /* @__PURE__ */ defineComponent({
|
|
|
1620
1620
|
item,
|
|
1621
1621
|
scope
|
|
1622
1622
|
})
|
|
1623
|
-
}, null, 8, _hoisted_1$
|
|
1623
|
+
}, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("span", _hoisted_2$18, toDisplayString(__props.control.optionTemplate), 1))]),
|
|
1624
1624
|
key: "1"
|
|
1625
1625
|
} : void 0]), 1032, [
|
|
1626
1626
|
"label",
|
|
@@ -1732,11 +1732,11 @@ var select_default = /* @__PURE__ */ defineComponent({
|
|
|
1732
1732
|
//#endregion
|
|
1733
1733
|
//#region src/packages/controls/select/select.ts
|
|
1734
1734
|
var select_exports = /* @__PURE__ */ __exportAll({
|
|
1735
|
-
Template: () => Template$
|
|
1736
|
-
init: () => init$
|
|
1735
|
+
Template: () => Template$26,
|
|
1736
|
+
init: () => init$29
|
|
1737
1737
|
});
|
|
1738
|
-
const Template$
|
|
1739
|
-
function init$
|
|
1738
|
+
const Template$26 = withInstall(select_default);
|
|
1739
|
+
function init$29(moduleName, name, options = {}) {
|
|
1740
1740
|
return {
|
|
1741
1741
|
moduleName,
|
|
1742
1742
|
name,
|
|
@@ -1756,8 +1756,8 @@ function init$28(moduleName, name, options = {}) {
|
|
|
1756
1756
|
* */
|
|
1757
1757
|
//#endregion
|
|
1758
1758
|
//#region src/packages/controls/inputTag/inputTag.vue?vue&type=script&setup=true&lang.ts
|
|
1759
|
-
const _hoisted_1$
|
|
1760
|
-
const _hoisted_2$
|
|
1759
|
+
const _hoisted_1$18 = ["innerHTML"];
|
|
1760
|
+
const _hoisted_2$17 = { key: 2 };
|
|
1761
1761
|
const _hoisted_3$13 = ["innerHTML"];
|
|
1762
1762
|
const _hoisted_4$10 = { key: 2 };
|
|
1763
1763
|
const _hoisted_5$8 = ["innerHTML"];
|
|
@@ -1829,7 +1829,7 @@ var inputTag_default = /* @__PURE__ */ defineComponent({
|
|
|
1829
1829
|
fn: withCtx(() => [unref(isComponent)(__props.control.prefix) && !unref(isHTML)(__props.control.prefix) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.prefix), { key: 0 })) : typeof __props.control.prefix === "string" && unref(isHTML)(__props.control.prefix) ? (openBlock(), createElementBlock("div", {
|
|
1830
1830
|
key: 1,
|
|
1831
1831
|
innerHTML: __props.control.prefix
|
|
1832
|
-
}, null, 8, _hoisted_1$
|
|
1832
|
+
}, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("span", _hoisted_2$17, toDisplayString(__props.control.prefix), 1))]),
|
|
1833
1833
|
key: "0"
|
|
1834
1834
|
} : void 0,
|
|
1835
1835
|
__props.control?.suffix ? {
|
|
@@ -1859,12 +1859,12 @@ var inputTag_default = /* @__PURE__ */ defineComponent({
|
|
|
1859
1859
|
//#endregion
|
|
1860
1860
|
//#region src/packages/controls/inputTag/inputTag.ts
|
|
1861
1861
|
var inputTag_exports = /* @__PURE__ */ __exportAll({
|
|
1862
|
-
Template: () => Template$
|
|
1863
|
-
init: () => init$
|
|
1862
|
+
Template: () => Template$25,
|
|
1863
|
+
init: () => init$28
|
|
1864
1864
|
});
|
|
1865
1865
|
const { t: t$1 } = i18n.global;
|
|
1866
|
-
const Template$
|
|
1867
|
-
function init$
|
|
1866
|
+
const Template$25 = withInstall(inputTag_default);
|
|
1867
|
+
function init$28(moduleName, name, options = {}) {
|
|
1868
1868
|
return {
|
|
1869
1869
|
moduleName,
|
|
1870
1870
|
name,
|
|
@@ -1876,8 +1876,8 @@ function init$27(moduleName, name, options = {}) {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
//#endregion
|
|
1878
1878
|
//#region src/packages/controls/inputNumber/inputNumber.vue?vue&type=script&setup=true&lang.ts
|
|
1879
|
-
const _hoisted_1$
|
|
1880
|
-
const _hoisted_2$
|
|
1879
|
+
const _hoisted_1$17 = ["innerHTML"];
|
|
1880
|
+
const _hoisted_2$16 = { key: 2 };
|
|
1881
1881
|
const _hoisted_3$12 = ["innerHTML"];
|
|
1882
1882
|
const _hoisted_4$9 = { key: 2 };
|
|
1883
1883
|
const _hoisted_5$7 = ["innerHTML"];
|
|
@@ -1928,7 +1928,7 @@ var inputNumber_default = /* @__PURE__ */ defineComponent({
|
|
|
1928
1928
|
fn: withCtx(() => [unref(isComponent)(__props.control.prefix) && !unref(isHTML)(__props.control.prefix) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.prefix), { key: 0 })) : typeof __props.control.prefix === "string" && unref(isHTML)(__props.control.prefix) ? (openBlock(), createElementBlock("div", {
|
|
1929
1929
|
key: 1,
|
|
1930
1930
|
innerHTML: __props.control.prefix
|
|
1931
|
-
}, null, 8, _hoisted_1$
|
|
1931
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("span", _hoisted_2$16, toDisplayString(__props.control.prefix), 1))]),
|
|
1932
1932
|
key: "0"
|
|
1933
1933
|
} : void 0,
|
|
1934
1934
|
__props.control?.suffix ? {
|
|
@@ -1962,12 +1962,12 @@ var inputNumber_default = /* @__PURE__ */ defineComponent({
|
|
|
1962
1962
|
//#endregion
|
|
1963
1963
|
//#region src/packages/controls/inputNumber/inputNumber.ts
|
|
1964
1964
|
var inputNumber_exports = /* @__PURE__ */ __exportAll({
|
|
1965
|
-
Template: () => Template$
|
|
1966
|
-
init: () => init$
|
|
1965
|
+
Template: () => Template$24,
|
|
1966
|
+
init: () => init$27
|
|
1967
1967
|
});
|
|
1968
1968
|
const { t } = i18n.global;
|
|
1969
|
-
const Template$
|
|
1970
|
-
function init$
|
|
1969
|
+
const Template$24 = withInstall(inputNumber_default);
|
|
1970
|
+
function init$27(moduleName, name, options = {}) {
|
|
1971
1971
|
return {
|
|
1972
1972
|
moduleName,
|
|
1973
1973
|
name,
|
|
@@ -1977,8 +1977,8 @@ function init$26(moduleName, name, options = {}) {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
//#endregion
|
|
1979
1979
|
//#region src/packages/controls/radio/radio.vue?vue&type=script&setup=true&lang.ts
|
|
1980
|
-
const _hoisted_1$
|
|
1981
|
-
const _hoisted_2$
|
|
1980
|
+
const _hoisted_1$16 = { class: "rw-radio-container" };
|
|
1981
|
+
const _hoisted_2$15 = { class: "rw-radio-multiple" };
|
|
1982
1982
|
const _hoisted_3$11 = {
|
|
1983
1983
|
key: 0,
|
|
1984
1984
|
class: "rw-radio-loading"
|
|
@@ -2094,7 +2094,7 @@ var radio_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
2094
2094
|
processedOptions
|
|
2095
2095
|
});
|
|
2096
2096
|
return (_ctx, _cache) => {
|
|
2097
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2097
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [createCommentVNode(" 单个单选框模式 "), isSingleMode.value ? (openBlock(), createBlock(unref(ElRadio), mergeProps({
|
|
2098
2098
|
key: 0,
|
|
2099
2099
|
modelValue: unref(fieldValue),
|
|
2100
2100
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(fieldValue) ? fieldValue.value = $event : null)
|
|
@@ -2104,7 +2104,7 @@ var radio_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
2104
2104
|
}), {
|
|
2105
2105
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.control.label || __props.control.default), 1)], true)]),
|
|
2106
2106
|
_: 3
|
|
2107
|
-
}, 16, ["modelValue"])) : isMultipleMode.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 多选模式 "), createElementVNode("div", _hoisted_2$
|
|
2107
|
+
}, 16, ["modelValue"])) : isMultipleMode.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 多选模式 "), createElementVNode("div", _hoisted_2$15, [createCommentVNode(" 加载状态 "), isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_3$11, [createVNode(unref(ElIcon), { class: "is-loading" }, {
|
|
2108
2108
|
default: withCtx(() => [createVNode(unref(Loading))]),
|
|
2109
2109
|
_: 1
|
|
2110
2110
|
}), _cache[3] || (_cache[3] = createElementVNode("span", null, "加载中...", -1))])) : error.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 错误状态 "), createElementVNode("div", _hoisted_4$8, [
|
|
@@ -2195,11 +2195,11 @@ var radio_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
2195
2195
|
//#endregion
|
|
2196
2196
|
//#region src/packages/controls/radio/radio.ts
|
|
2197
2197
|
var radio_exports = /* @__PURE__ */ __exportAll({
|
|
2198
|
-
Template: () => Template$
|
|
2199
|
-
init: () => init$
|
|
2198
|
+
Template: () => Template$23,
|
|
2199
|
+
init: () => init$26
|
|
2200
2200
|
});
|
|
2201
|
-
const Template$
|
|
2202
|
-
function init$
|
|
2201
|
+
const Template$23 = withInstall(radio_default);
|
|
2202
|
+
function init$26(moduleName, name, options = {}) {
|
|
2203
2203
|
return {
|
|
2204
2204
|
moduleName,
|
|
2205
2205
|
name,
|
|
@@ -2235,10 +2235,10 @@ var mergeInput_default = /* @__PURE__ */ defineComponent({
|
|
|
2235
2235
|
emits: ["update:modelValue"],
|
|
2236
2236
|
setup(__props, { emit: __emit }) {
|
|
2237
2237
|
const componentMap = markRaw({
|
|
2238
|
-
"input": Template$
|
|
2239
|
-
"inputNumber": Template$
|
|
2240
|
-
"autocomplete": Template$
|
|
2241
|
-
"inputTag": Template$
|
|
2238
|
+
"input": Template$27,
|
|
2239
|
+
"inputNumber": Template$24,
|
|
2240
|
+
"autocomplete": Template$34,
|
|
2241
|
+
"inputTag": Template$25
|
|
2242
2242
|
});
|
|
2243
2243
|
const props = __props;
|
|
2244
2244
|
const currentComponent = computed(() => {
|
|
@@ -2257,35 +2257,35 @@ var mergeInput_default = /* @__PURE__ */ defineComponent({
|
|
|
2257
2257
|
//#endregion
|
|
2258
2258
|
//#region src/packages/controls/mergeInput/mergeInput.ts
|
|
2259
2259
|
var mergeInput_exports = /* @__PURE__ */ __exportAll({
|
|
2260
|
-
Template: () => Template$
|
|
2261
|
-
init: () => init$
|
|
2260
|
+
Template: () => Template$22,
|
|
2261
|
+
init: () => init$25
|
|
2262
2262
|
});
|
|
2263
|
-
const Template$
|
|
2264
|
-
function init$
|
|
2263
|
+
const Template$22 = withInstall(mergeInput_default);
|
|
2264
|
+
function init$25(moduleName, name, options = {}) {
|
|
2265
2265
|
const { inputType, ...restOptions } = options;
|
|
2266
2266
|
switch (inputType) {
|
|
2267
2267
|
case "inputNumber": return {
|
|
2268
2268
|
inputType,
|
|
2269
|
-
...init$
|
|
2269
|
+
...init$27(moduleName, name, restOptions)
|
|
2270
2270
|
};
|
|
2271
2271
|
case "autocomplete": return {
|
|
2272
2272
|
inputType,
|
|
2273
|
-
...init$
|
|
2273
|
+
...init$37(moduleName, name, restOptions)
|
|
2274
2274
|
};
|
|
2275
2275
|
case "inputTag": return {
|
|
2276
2276
|
inputType,
|
|
2277
|
-
...init$
|
|
2277
|
+
...init$28(moduleName, name, restOptions)
|
|
2278
2278
|
};
|
|
2279
2279
|
default: return {
|
|
2280
2280
|
inputType,
|
|
2281
|
-
...init$
|
|
2281
|
+
...init$30(moduleName, name, restOptions)
|
|
2282
2282
|
};
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
2285
|
//#endregion
|
|
2286
2286
|
//#region src/packages/controls/switch/switch.vue?vue&type=script&setup=true&lang.ts
|
|
2287
|
-
const _hoisted_1$
|
|
2288
|
-
const _hoisted_2$
|
|
2287
|
+
const _hoisted_1$15 = { key: 1 };
|
|
2288
|
+
const _hoisted_2$14 = { key: 1 };
|
|
2289
2289
|
//#endregion
|
|
2290
2290
|
//#region src/packages/controls/switch/switch.vue
|
|
2291
2291
|
var switch_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2321,11 +2321,11 @@ var switch_default = /* @__PURE__ */ defineComponent({
|
|
|
2321
2321
|
onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
|
|
2322
2322
|
}), createSlots({ _: 2 }, [__props.control.activeAction ? {
|
|
2323
2323
|
name: "activeAction",
|
|
2324
|
-
fn: withCtx(() => [unref(isComponent)(__props.control.activeAction) && !unref(isHTML)(__props.control.activeAction) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.activeAction), { key: 0 })) : createCommentVNode("v-if", true), unref(fieldValue) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2324
|
+
fn: withCtx(() => [unref(isComponent)(__props.control.activeAction) && !unref(isHTML)(__props.control.activeAction) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.activeAction), { key: 0 })) : createCommentVNode("v-if", true), unref(fieldValue) ? (openBlock(), createElementBlock("span", _hoisted_1$15, toDisplayString(__props.control.activeAction), 1)) : createCommentVNode("v-if", true)]),
|
|
2325
2325
|
key: "0"
|
|
2326
2326
|
} : void 0, __props.control.inactiveAction ? {
|
|
2327
2327
|
name: "inactiveAction",
|
|
2328
|
-
fn: withCtx(() => [unref(isComponent)(__props.control.inactiveAction) && !unref(isHTML)(__props.control.inactiveAction) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.inactiveAction), { key: 0 })) : createCommentVNode("v-if", true), !unref(fieldValue) ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2328
|
+
fn: withCtx(() => [unref(isComponent)(__props.control.inactiveAction) && !unref(isHTML)(__props.control.inactiveAction) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.inactiveAction), { key: 0 })) : createCommentVNode("v-if", true), !unref(fieldValue) ? (openBlock(), createElementBlock("span", _hoisted_2$14, toDisplayString(__props.control.inactiveAction), 1)) : createCommentVNode("v-if", true)]),
|
|
2329
2329
|
key: "1"
|
|
2330
2330
|
} : void 0]), 1040, [
|
|
2331
2331
|
"modelValue",
|
|
@@ -2338,11 +2338,11 @@ var switch_default = /* @__PURE__ */ defineComponent({
|
|
|
2338
2338
|
//#endregion
|
|
2339
2339
|
//#region src/packages/controls/switch/switch.ts
|
|
2340
2340
|
var switch_exports = /* @__PURE__ */ __exportAll({
|
|
2341
|
-
Template: () => Template$
|
|
2342
|
-
init: () => init$
|
|
2341
|
+
Template: () => Template$21,
|
|
2342
|
+
init: () => init$24
|
|
2343
2343
|
});
|
|
2344
|
-
const Template$
|
|
2345
|
-
function init$
|
|
2344
|
+
const Template$21 = withInstall(switch_default);
|
|
2345
|
+
function init$24(moduleName, name, options = {}) {
|
|
2346
2346
|
return reactive({
|
|
2347
2347
|
moduleName,
|
|
2348
2348
|
name,
|
|
@@ -2352,8 +2352,8 @@ function init$23(moduleName, name, options = {}) {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
//#endregion
|
|
2354
2354
|
//#region src/packages/controls/image/image.vue?vue&type=script&setup=true&lang.ts
|
|
2355
|
-
const _hoisted_1$
|
|
2356
|
-
const _hoisted_2$
|
|
2355
|
+
const _hoisted_1$14 = ["innerHTML"];
|
|
2356
|
+
const _hoisted_2$13 = { key: 2 };
|
|
2357
2357
|
const _hoisted_3$10 = ["innerHTML"];
|
|
2358
2358
|
const _hoisted_4$7 = { key: 2 };
|
|
2359
2359
|
const _hoisted_5$6 = ["innerHTML"];
|
|
@@ -2392,7 +2392,7 @@ var image_default = /* @__PURE__ */ defineComponent({
|
|
|
2392
2392
|
fn: withCtx(() => [unref(isComponent)(__props.control.placeholder) && !unref(isHTML)(__props.control.placeholder) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.placeholder), { key: 0 })) : typeof __props.control.placeholder === "string" && unref(isHTML)(__props.control.placeholder) ? (openBlock(), createElementBlock("div", {
|
|
2393
2393
|
key: 1,
|
|
2394
2394
|
innerHTML: __props.control.placeholder
|
|
2395
|
-
}, null, 8, _hoisted_1$
|
|
2395
|
+
}, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("span", _hoisted_2$13, toDisplayString(__props.control.placeholder), 1))]),
|
|
2396
2396
|
key: "1"
|
|
2397
2397
|
} : void 0,
|
|
2398
2398
|
_ctx.$slots.error ? {
|
|
@@ -2450,11 +2450,11 @@ var image_default = /* @__PURE__ */ defineComponent({
|
|
|
2450
2450
|
//#endregion
|
|
2451
2451
|
//#region src/packages/controls/image/image.ts
|
|
2452
2452
|
var image_exports = /* @__PURE__ */ __exportAll({
|
|
2453
|
-
Template: () => Template$
|
|
2454
|
-
init: () => init$
|
|
2453
|
+
Template: () => Template$20,
|
|
2454
|
+
init: () => init$23
|
|
2455
2455
|
});
|
|
2456
|
-
const Template$
|
|
2457
|
-
function init$
|
|
2456
|
+
const Template$20 = withInstall(image_default);
|
|
2457
|
+
function init$23(modularName, name, options = {}) {
|
|
2458
2458
|
return {
|
|
2459
2459
|
modularName,
|
|
2460
2460
|
name,
|
|
@@ -2466,8 +2466,8 @@ function init$22(modularName, name, options = {}) {
|
|
|
2466
2466
|
}
|
|
2467
2467
|
//#endregion
|
|
2468
2468
|
//#region src/packages/controls/mergeSelect/mergeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
2469
|
-
const _hoisted_1$
|
|
2470
|
-
const _hoisted_2$
|
|
2469
|
+
const _hoisted_1$13 = ["innerHTML"];
|
|
2470
|
+
const _hoisted_2$12 = { key: 2 };
|
|
2471
2471
|
const _hoisted_3$9 = {
|
|
2472
2472
|
key: 1,
|
|
2473
2473
|
class: "label-item"
|
|
@@ -2768,7 +2768,7 @@ var mergeSelect_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
2768
2768
|
}), null, 16)) : typeof __props.control.optionTemplate === "string" && unref(isHTML)(__props.control.optionTemplate) ? (openBlock(), createElementBlock("div", {
|
|
2769
2769
|
key: 1,
|
|
2770
2770
|
innerHTML: __props.control.optionTemplate
|
|
2771
|
-
}, null, 8, _hoisted_1$
|
|
2771
|
+
}, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("span", _hoisted_2$12, toDisplayString(__props.control.optionTemplate), 1))], 64)) : (openBlock(), createElementBlock("div", _hoisted_3$9, [
|
|
2772
2772
|
__props.control?.showImage && item?.image ? (openBlock(), createBlock(unref(image_exports).Template, {
|
|
2773
2773
|
key: 0,
|
|
2774
2774
|
control: { src: item?.image }
|
|
@@ -2884,11 +2884,11 @@ var mergeSelect_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
2884
2884
|
//#endregion
|
|
2885
2885
|
//#region src/packages/controls/mergeSelect/mergeSelect.ts
|
|
2886
2886
|
var mergeSelect_exports = /* @__PURE__ */ __exportAll({
|
|
2887
|
-
Template: () => Template$
|
|
2888
|
-
init: () => init$
|
|
2887
|
+
Template: () => Template$19,
|
|
2888
|
+
init: () => init$22
|
|
2889
2889
|
});
|
|
2890
|
-
const Template$
|
|
2891
|
-
function init$
|
|
2890
|
+
const Template$19 = withInstall(mergeSelect_default);
|
|
2891
|
+
function init$22(moduleName, name, optionFrom, optionValues, options = {}) {
|
|
2892
2892
|
let type = options.type, url = "";
|
|
2893
2893
|
if (!options.type && typeof optionValues !== "string" && optionValues?.length > 0) {
|
|
2894
2894
|
const optionsLength = optionValues.length;
|
|
@@ -2964,11 +2964,11 @@ var slider_default = /* @__PURE__ */ defineComponent({
|
|
|
2964
2964
|
//#endregion
|
|
2965
2965
|
//#region src/packages/controls/slider/slider.ts
|
|
2966
2966
|
var slider_exports = /* @__PURE__ */ __exportAll({
|
|
2967
|
-
Template: () => Template$
|
|
2968
|
-
init: () => init$
|
|
2967
|
+
Template: () => Template$18,
|
|
2968
|
+
init: () => init$21
|
|
2969
2969
|
});
|
|
2970
|
-
const Template$
|
|
2971
|
-
function init$
|
|
2970
|
+
const Template$18 = withInstall(slider_default);
|
|
2971
|
+
function init$21(moduleName, name, options = {}) {
|
|
2972
2972
|
return reactive({
|
|
2973
2973
|
moduleName,
|
|
2974
2974
|
name,
|
|
@@ -2977,11 +2977,11 @@ function init$20(moduleName, name, options = {}) {
|
|
|
2977
2977
|
}
|
|
2978
2978
|
//#endregion
|
|
2979
2979
|
//#region src/packages/controls/map/map.vue?vue&type=script&setup=true&lang.ts
|
|
2980
|
-
const _hoisted_1$
|
|
2980
|
+
const _hoisted_1$12 = {
|
|
2981
2981
|
class: "search-box",
|
|
2982
2982
|
id: "searchBox"
|
|
2983
2983
|
};
|
|
2984
|
-
const _hoisted_2$
|
|
2984
|
+
const _hoisted_2$11 = { id: "searchResultPanel" };
|
|
2985
2985
|
const _hoisted_3$8 = ["onClick"];
|
|
2986
2986
|
const _hoisted_4$5 = { class: "dialog-footer" };
|
|
2987
2987
|
//#endregion
|
|
@@ -2998,7 +2998,7 @@ var map_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
2998
2998
|
const props = __props;
|
|
2999
2999
|
const { fieldValue } = useFormValue("RwMap", props.control);
|
|
3000
3000
|
const currVal = ref(fieldValue.value);
|
|
3001
|
-
const inputControl = reactive(init$
|
|
3001
|
+
const inputControl = reactive(init$30(props.control.moduleName ?? "", props.control.name, {
|
|
3002
3002
|
readonly: true,
|
|
3003
3003
|
label: props.control.label
|
|
3004
3004
|
}));
|
|
@@ -3189,7 +3189,7 @@ var map_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
3189
3189
|
default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("确认", -1)])]),
|
|
3190
3190
|
_: 1
|
|
3191
3191
|
})])]),
|
|
3192
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
3192
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$12, [createVNode(_component_el_col, { span: 24 }, {
|
|
3193
3193
|
default: withCtx(() => [createVNode(_component_el_input, {
|
|
3194
3194
|
style: {
|
|
3195
3195
|
"width": "100%",
|
|
@@ -3206,7 +3206,7 @@ var map_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
3206
3206
|
onClear: _cache[2] || (_cache[2] = ($event) => searchRes.value = [])
|
|
3207
3207
|
}, null, 8, ["modelValue", "prefix-icon"])]),
|
|
3208
3208
|
_: 1
|
|
3209
|
-
}), createElementVNode("div", _hoisted_2$
|
|
3209
|
+
}), createElementVNode("div", _hoisted_2$11, [(openBlock(true), createElementBlock(Fragment, null, renderList(searchRes.value, (item) => {
|
|
3210
3210
|
return openBlock(), createElementBlock("div", {
|
|
3211
3211
|
class: "list",
|
|
3212
3212
|
onClick: withModifiers(($event) => setPlaceBmap(item), ["stop"]),
|
|
@@ -3231,17 +3231,17 @@ var map_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
3231
3231
|
//#endregion
|
|
3232
3232
|
//#region src/packages/controls/map/map.ts
|
|
3233
3233
|
var map_exports = /* @__PURE__ */ __exportAll({
|
|
3234
|
-
Template: () => Template$
|
|
3235
|
-
init: () => init$
|
|
3234
|
+
Template: () => Template$17,
|
|
3235
|
+
init: () => init$20
|
|
3236
3236
|
});
|
|
3237
|
-
const Template$
|
|
3237
|
+
const Template$17 = withInstall(map_default);
|
|
3238
3238
|
var MapSource = /* @__PURE__ */ function(MapSource) {
|
|
3239
3239
|
MapSource["bmap"] = "https://api.map.baidu.com/getscript?v=2.0";
|
|
3240
3240
|
MapSource["amap"] = "https://webapi.amap.com/maps?v=1.4.15";
|
|
3241
3241
|
MapSource["google-map"] = "//api.map.baidu.com/getscript?v=2.0";
|
|
3242
3242
|
return MapSource;
|
|
3243
3243
|
}(MapSource || {});
|
|
3244
|
-
function init$
|
|
3244
|
+
function init$20(moduleName, name, options = {}) {
|
|
3245
3245
|
options.mapType = options.mapType ?? "bmap";
|
|
3246
3246
|
options.src = MapSource[options.mapType];
|
|
3247
3247
|
return {
|
|
@@ -3259,11 +3259,11 @@ function init$19(moduleName, name, options = {}) {
|
|
|
3259
3259
|
}
|
|
3260
3260
|
//#endregion
|
|
3261
3261
|
//#region src/packages/controls/uploadNew/components/fileItem.vue?vue&type=script&setup=true&lang.ts
|
|
3262
|
-
const _hoisted_1$
|
|
3262
|
+
const _hoisted_1$11 = {
|
|
3263
3263
|
key: 0,
|
|
3264
3264
|
class: "file-item-container"
|
|
3265
3265
|
};
|
|
3266
|
-
const _hoisted_2$
|
|
3266
|
+
const _hoisted_2$10 = {
|
|
3267
3267
|
key: 0,
|
|
3268
3268
|
class: "image-grid"
|
|
3269
3269
|
};
|
|
@@ -3400,9 +3400,9 @@ var fileItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
3400
3400
|
const _component_el_row = resolveComponent("el-row");
|
|
3401
3401
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
3402
3402
|
const _directive_loading = resolveDirective("loading");
|
|
3403
|
-
return __props.fileList.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3403
|
+
return __props.fileList.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
3404
3404
|
createCommentVNode(" 图片类型文件展示 "),
|
|
3405
|
-
isImageType.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
3405
|
+
isImageType.value ? (openBlock(), createElementBlock("div", _hoisted_2$10, [createVNode(_component_el_row, {
|
|
3406
3406
|
gutter: 20,
|
|
3407
3407
|
style: { "width": "100%" }
|
|
3408
3408
|
}, {
|
|
@@ -3554,11 +3554,11 @@ var pagination_default = /* @__PURE__ */ defineComponent({
|
|
|
3554
3554
|
//#endregion
|
|
3555
3555
|
//#region src/packages/controls/pagination/pagination.ts
|
|
3556
3556
|
var pagination_exports = /* @__PURE__ */ __exportAll({
|
|
3557
|
-
Template: () => Template$
|
|
3558
|
-
init: () => init$
|
|
3557
|
+
Template: () => Template$16,
|
|
3558
|
+
init: () => init$19
|
|
3559
3559
|
});
|
|
3560
|
-
const Template$
|
|
3561
|
-
const init$
|
|
3560
|
+
const Template$16 = withInstall(pagination_default);
|
|
3561
|
+
const init$19 = (name, options = {}) => {
|
|
3562
3562
|
options.currentPage = options.currentPage ?? 1;
|
|
3563
3563
|
options.page = options.page ?? 1;
|
|
3564
3564
|
options.pageSize = options.pageSize ?? 10;
|
|
@@ -3570,8 +3570,8 @@ const init$18 = (name, options = {}) => {
|
|
|
3570
3570
|
};
|
|
3571
3571
|
//#endregion
|
|
3572
3572
|
//#region src/packages/controls/uploadNew/components/dialog.vue?vue&type=script&setup=true&lang.ts
|
|
3573
|
-
const _hoisted_1$
|
|
3574
|
-
const _hoisted_2$
|
|
3573
|
+
const _hoisted_1$10 = { key: 0 };
|
|
3574
|
+
const _hoisted_2$9 = { class: "el-upload__text" };
|
|
3575
3575
|
const _hoisted_3$6 = {
|
|
3576
3576
|
key: 0,
|
|
3577
3577
|
class: "uploading-files-section"
|
|
@@ -3625,7 +3625,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3625
3625
|
const fileLoading = ref(false);
|
|
3626
3626
|
const successUploadList = ref([]);
|
|
3627
3627
|
const uploadInfo = ref({});
|
|
3628
|
-
const pagination = reactive(init$
|
|
3628
|
+
const pagination = reactive(init$19(""));
|
|
3629
3629
|
const fileMapping = ref(/* @__PURE__ */ new Map());
|
|
3630
3630
|
const uploadingFiles = ref(/* @__PURE__ */ new Map());
|
|
3631
3631
|
const uploadAccept = computed(() => getUploadAccept(props.control.type));
|
|
@@ -4015,7 +4015,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4015
4015
|
"show-file-list": false
|
|
4016
4016
|
}, {
|
|
4017
4017
|
tip: withCtx(() => [createTextVNode(" 最多上传" + toDisplayString(__props.control.limit) + "个文件,已上传" + toDisplayString(successUploadList.value.length) + "个 ", 1)]),
|
|
4018
|
-
default: withCtx(() => [__props.control.type === "file" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4018
|
+
default: withCtx(() => [__props.control.type === "file" ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
4019
4019
|
createVNode(unref(ElIcon), { class: "el-icon--upload" }, {
|
|
4020
4020
|
default: withCtx(() => [createVNode(unref(UploadFilled))]),
|
|
4021
4021
|
_: 1
|
|
@@ -4035,7 +4035,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4035
4035
|
}, null, 8, ["src"])])], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode(" 默认上传区域 "), createElementVNode("div", null, [createVNode(unref(ElIcon), { class: "el-icon--upload" }, {
|
|
4036
4036
|
default: withCtx(() => [createVNode(unref(UploadFilled))]),
|
|
4037
4037
|
_: 1
|
|
4038
|
-
}), createElementVNode("div", _hoisted_2$
|
|
4038
|
+
}), createElementVNode("div", _hoisted_2$9, [createTextVNode(" 将" + toDisplayString(__props.control.type === "image" ? "图片" : __props.control.type === "video" ? "视频" : __props.control.type === "music" ? "音频" : "文件") + "拖到此处,或 ", 1), _cache[10] || (_cache[10] = createElementVNode("em", null, "点击上传", -1))])])], 2112))]),
|
|
4039
4039
|
_: 1
|
|
4040
4040
|
}, 8, [
|
|
4041
4041
|
"file-list",
|
|
@@ -4201,8 +4201,8 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4201
4201
|
}), [["__scopeId", "data-v-eeee0fda"]]);
|
|
4202
4202
|
//#endregion
|
|
4203
4203
|
//#region src/packages/controls/uploadNew/components/showPicture.vue?vue&type=script&setup=true&lang.ts
|
|
4204
|
-
const _hoisted_1$
|
|
4205
|
-
const _hoisted_2$
|
|
4204
|
+
const _hoisted_1$9 = { class: "show-picture-container" };
|
|
4205
|
+
const _hoisted_2$8 = {
|
|
4206
4206
|
key: 0,
|
|
4207
4207
|
class: "card upload_list"
|
|
4208
4208
|
};
|
|
@@ -4313,8 +4313,8 @@ var showPicture_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
4313
4313
|
const _component_el_icon = resolveComponent("el-icon");
|
|
4314
4314
|
const _component_el_image = resolveComponent("el-image");
|
|
4315
4315
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
4316
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4317
|
-
fileList.value.length > 0 && isMounted.value ? (openBlock(), createElementBlock("ul", _hoisted_2$
|
|
4316
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
4317
|
+
fileList.value.length > 0 && isMounted.value ? (openBlock(), createElementBlock("ul", _hoisted_2$8, [(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item, index) => {
|
|
4318
4318
|
return openBlock(), createElementBlock("li", {
|
|
4319
4319
|
key: item.FileID || item.url,
|
|
4320
4320
|
class: "list_item upload_list_item",
|
|
@@ -4389,8 +4389,8 @@ var showPicture_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
4389
4389
|
}), [["__scopeId", "data-v-dd6f9719"]]);
|
|
4390
4390
|
//#endregion
|
|
4391
4391
|
//#region src/packages/controls/uploadNew/upload.vue?vue&type=script&setup=true&lang.ts
|
|
4392
|
-
const _hoisted_1$
|
|
4393
|
-
const _hoisted_2$
|
|
4392
|
+
const _hoisted_1$8 = { class: "rw-upload-container" };
|
|
4393
|
+
const _hoisted_2$7 = { class: "upload_wrapper" };
|
|
4394
4394
|
const _hoisted_3$4 = ["title"];
|
|
4395
4395
|
//#endregion
|
|
4396
4396
|
//#region src/packages/controls/uploadNew/upload.vue
|
|
@@ -4495,7 +4495,7 @@ var upload_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4495
4495
|
return (_ctx, _cache) => {
|
|
4496
4496
|
const _component_el_icon = resolveComponent("el-icon");
|
|
4497
4497
|
const _directive_loading = resolveDirective("loading");
|
|
4498
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4498
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
4499
4499
|
createCommentVNode(" 文件列表显示 "),
|
|
4500
4500
|
withDirectives(createVNode(showPicture_default, {
|
|
4501
4501
|
list: fileList.value,
|
|
@@ -4514,7 +4514,7 @@ var upload_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4514
4514
|
key: 0,
|
|
4515
4515
|
class: "upload-trigger",
|
|
4516
4516
|
onClick: handleOpenDialog
|
|
4517
|
-
}, [createElementVNode("div", _hoisted_2$
|
|
4517
|
+
}, [createElementVNode("div", _hoisted_2$7, [props.control.type === "file" ? (openBlock(), createElementBlock("span", {
|
|
4518
4518
|
key: 0,
|
|
4519
4519
|
title: unref(t$3)("buttons.uploadFile"),
|
|
4520
4520
|
class: "upload-icon"
|
|
@@ -4545,19 +4545,19 @@ var upload_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4545
4545
|
//#endregion
|
|
4546
4546
|
//#region src/packages/controls/uploadNew/upload.ts
|
|
4547
4547
|
var upload_exports = /* @__PURE__ */ __exportAll({
|
|
4548
|
-
Template: () => Template$
|
|
4548
|
+
Template: () => Template$15,
|
|
4549
4549
|
getFileList: () => getFileList,
|
|
4550
4550
|
getUploadAccept: () => getUploadAccept,
|
|
4551
4551
|
handleUploadError: () => handleUploadError,
|
|
4552
|
-
init: () => init$
|
|
4552
|
+
init: () => init$18,
|
|
4553
4553
|
initFile: () => initFile,
|
|
4554
4554
|
isEmpty: () => isEmpty,
|
|
4555
4555
|
removeUploadedFile: () => removeUploadedFile,
|
|
4556
4556
|
showUploadExceedMessage: () => showUploadExceedMessage,
|
|
4557
4557
|
validateUploadLimit: () => validateUploadLimit
|
|
4558
4558
|
});
|
|
4559
|
-
const Template$
|
|
4560
|
-
function init$
|
|
4559
|
+
const Template$15 = withInstall(upload_default);
|
|
4560
|
+
function init$18(moduleName, name, options = {}) {
|
|
4561
4561
|
return {
|
|
4562
4562
|
moduleName,
|
|
4563
4563
|
name,
|
|
@@ -4622,8 +4622,8 @@ const isEmpty = (value) => {
|
|
|
4622
4622
|
};
|
|
4623
4623
|
//#endregion
|
|
4624
4624
|
//#region src/packages/controls/tree/tree.vue?vue&type=script&setup=true&lang.ts
|
|
4625
|
-
const _hoisted_1$
|
|
4626
|
-
const _hoisted_2$
|
|
4625
|
+
const _hoisted_1$7 = { class: "rw-tree-container" };
|
|
4626
|
+
const _hoisted_2$6 = {
|
|
4627
4627
|
key: 0,
|
|
4628
4628
|
class: "rw-tree-loading"
|
|
4629
4629
|
};
|
|
@@ -4832,7 +4832,7 @@ var tree_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
4832
4832
|
});
|
|
4833
4833
|
return (_ctx, _cache) => {
|
|
4834
4834
|
const _directive_loading = resolveDirective("loading");
|
|
4835
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4835
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [createCommentVNode(" 加载状态 "), isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [createVNode(unref(ElIcon), { class: "is-loading" }, {
|
|
4836
4836
|
default: withCtx(() => [createVNode(unref(Loading))]),
|
|
4837
4837
|
_: 1
|
|
4838
4838
|
}), _cache[0] || (_cache[0] = createElementVNode("span", null, "加载中...", -1))])) : error.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 错误状态 "), createElementVNode("div", _hoisted_3$3, [
|
|
@@ -4903,11 +4903,11 @@ var tree_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
4903
4903
|
//#endregion
|
|
4904
4904
|
//#region src/packages/controls/tree/tree.ts
|
|
4905
4905
|
var tree_exports = /* @__PURE__ */ __exportAll({
|
|
4906
|
-
Template: () => Template$
|
|
4907
|
-
init: () => init$
|
|
4906
|
+
Template: () => Template$14,
|
|
4907
|
+
init: () => init$17
|
|
4908
4908
|
});
|
|
4909
|
-
const Template$
|
|
4910
|
-
function init$
|
|
4909
|
+
const Template$14 = withInstall(tree_default);
|
|
4910
|
+
function init$17(moduleName, name, options = {}) {
|
|
4911
4911
|
return {
|
|
4912
4912
|
moduleName,
|
|
4913
4913
|
name,
|
|
@@ -4933,8 +4933,8 @@ function init$16(moduleName, name, options = {}) {
|
|
|
4933
4933
|
}
|
|
4934
4934
|
//#endregion
|
|
4935
4935
|
//#region src/packages/controls/text/text.vue?vue&type=script&setup=true&lang.ts
|
|
4936
|
-
const _hoisted_1$
|
|
4937
|
-
const _hoisted_2$
|
|
4936
|
+
const _hoisted_1$6 = { key: 0 };
|
|
4937
|
+
const _hoisted_2$5 = ["innerHTML"];
|
|
4938
4938
|
const _hoisted_3$2 = { key: 2 };
|
|
4939
4939
|
const _hoisted_4 = {
|
|
4940
4940
|
key: 0,
|
|
@@ -5004,10 +5004,10 @@ var text_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
5004
5004
|
key: "0"
|
|
5005
5005
|
} : __props.control.default ? {
|
|
5006
5006
|
name: "default",
|
|
5007
|
-
fn: withCtx(() => [createCommentVNode(" <component\r\n :is=\"control.default\"\r\n v-if=\"isComponent(control.default) && !isHTML(control.default)\"\r\n />\r\n "), __props.control.default === "null" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5007
|
+
fn: withCtx(() => [createCommentVNode(" <component\r\n :is=\"control.default\"\r\n v-if=\"isComponent(control.default) && !isHTML(control.default)\"\r\n />\r\n "), __props.control.default === "null" ? (openBlock(), createElementBlock("div", _hoisted_1$6, "\xA0")) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
5008
5008
|
key: 1,
|
|
5009
5009
|
innerHTML: __props.control.default
|
|
5010
|
-
}, null, 8, _hoisted_2$
|
|
5010
|
+
}, null, 8, _hoisted_2$5)) : (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(__props.control.default), 1))]),
|
|
5011
5011
|
key: "1"
|
|
5012
5012
|
} : __props.control.multiLang && showTextValue.value instanceof Object ? {
|
|
5013
5013
|
name: "default",
|
|
@@ -5048,11 +5048,11 @@ var text_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
5048
5048
|
//#endregion
|
|
5049
5049
|
//#region src/packages/controls/text/text.ts
|
|
5050
5050
|
var text_exports = /* @__PURE__ */ __exportAll({
|
|
5051
|
-
Template: () => Template$
|
|
5052
|
-
init: () => init$
|
|
5051
|
+
Template: () => Template$13,
|
|
5052
|
+
init: () => init$16
|
|
5053
5053
|
});
|
|
5054
|
-
const Template$
|
|
5055
|
-
function init$
|
|
5054
|
+
const Template$13 = withInstall(text_default);
|
|
5055
|
+
function init$16(moduleName, name, options = {}) {
|
|
5056
5056
|
return {
|
|
5057
5057
|
moduleName,
|
|
5058
5058
|
name,
|
|
@@ -5063,7 +5063,7 @@ function init$15(moduleName, name, options = {}) {
|
|
|
5063
5063
|
}
|
|
5064
5064
|
//#endregion
|
|
5065
5065
|
//#region src/packages/controls/table/table.vue?vue&type=script&setup=true&lang.ts
|
|
5066
|
-
const _hoisted_1$
|
|
5066
|
+
const _hoisted_1$5 = { key: 0 };
|
|
5067
5067
|
//#endregion
|
|
5068
5068
|
//#region src/packages/controls/table/table.vue
|
|
5069
5069
|
var table_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -5397,8 +5397,8 @@ var table_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
5397
5397
|
moduleName: propertys.moduleName,
|
|
5398
5398
|
name: "more",
|
|
5399
5399
|
controlType: "dropdown",
|
|
5400
|
-
Template: markRaw(Template$
|
|
5401
|
-
config: init$
|
|
5400
|
+
Template: markRaw(Template$31),
|
|
5401
|
+
config: init$34(propertys.moduleName, "more", {
|
|
5402
5402
|
label: t$3("buttons.more"),
|
|
5403
5403
|
text: controls[0].config.text
|
|
5404
5404
|
})
|
|
@@ -5468,7 +5468,7 @@ var table_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
5468
5468
|
label: unref(t$3)(item.label),
|
|
5469
5469
|
width: getColumnWidth(item.width)
|
|
5470
5470
|
}), {
|
|
5471
|
-
default: withCtx((scope) => [createCommentVNode(" <div v-if=\"item.init.controlType === 'Html'\">\r\n <div v-html=\"item.init?.formatter(scope.row[scope.column.property]) ?? scope.row[scope.column.property]\"></div>\r\n </div> "), item.init.controlType === "text" && item.init.multiLang ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5471
|
+
default: withCtx((scope) => [createCommentVNode(" <div v-if=\"item.init.controlType === 'Html'\">\r\n <div v-html=\"item.init?.formatter(scope.row[scope.column.property]) ?? scope.row[scope.column.property]\"></div>\r\n </div> "), item.init.controlType === "text" && item.init.multiLang ? (openBlock(), createElementBlock("div", _hoisted_1$5, [createVNode(unref(text_exports).Template, {
|
|
5472
5472
|
control: getTextControlOption(item.init),
|
|
5473
5473
|
modelValue: scope.row[scope.column.property]
|
|
5474
5474
|
}, null, 8, ["control", "modelValue"])])) : item.init.controlType !== "text" ? (openBlock(), createBlock(resolveDynamicComponent(item.Template), mergeProps({
|
|
@@ -5543,8 +5543,8 @@ var table_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
5543
5543
|
}), [["__scopeId", "data-v-33e56526"]]);
|
|
5544
5544
|
//#endregion
|
|
5545
5545
|
//#region src/packages/controls/tag/tag.vue?vue&type=script&setup=true&lang.ts
|
|
5546
|
-
const _hoisted_1$
|
|
5547
|
-
const _hoisted_2$
|
|
5546
|
+
const _hoisted_1$4 = ["innerHTML"];
|
|
5547
|
+
const _hoisted_2$4 = { key: 2 };
|
|
5548
5548
|
//#endregion
|
|
5549
5549
|
//#region src/packages/controls/tag/tag.vue
|
|
5550
5550
|
var tag_default = /* @__PURE__ */ defineComponent({
|
|
@@ -5572,7 +5572,7 @@ var tag_default = /* @__PURE__ */ defineComponent({
|
|
|
5572
5572
|
fn: withCtx(() => [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
5573
5573
|
key: 1,
|
|
5574
5574
|
innerHTML: __props.control.default
|
|
5575
|
-
}, null, 8, _hoisted_1$
|
|
5575
|
+
}, null, 8, _hoisted_1$4)) : (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(__props.control.default), 1))]),
|
|
5576
5576
|
key: "1"
|
|
5577
5577
|
} : void 0]), 1040);
|
|
5578
5578
|
};
|
|
@@ -5581,11 +5581,11 @@ var tag_default = /* @__PURE__ */ defineComponent({
|
|
|
5581
5581
|
//#endregion
|
|
5582
5582
|
//#region src/packages/controls/tag/tag.ts
|
|
5583
5583
|
var tag_exports = /* @__PURE__ */ __exportAll({
|
|
5584
|
-
Template: () => Template$
|
|
5585
|
-
init: () => init$
|
|
5584
|
+
Template: () => Template$12,
|
|
5585
|
+
init: () => init$15
|
|
5586
5586
|
});
|
|
5587
|
-
const Template$
|
|
5588
|
-
function init$
|
|
5587
|
+
const Template$12 = withInstall(tag_default);
|
|
5588
|
+
function init$15(moduleName, name, options = {}) {
|
|
5589
5589
|
return {
|
|
5590
5590
|
moduleName,
|
|
5591
5591
|
name,
|
|
@@ -5595,11 +5595,11 @@ function init$14(moduleName, name, options = {}) {
|
|
|
5595
5595
|
}
|
|
5596
5596
|
//#endregion
|
|
5597
5597
|
//#region src/packages/controls/tagComp/tagComp.vue?vue&type=script&setup=true&lang.ts
|
|
5598
|
-
const _hoisted_1$
|
|
5598
|
+
const _hoisted_1$3 = {
|
|
5599
5599
|
class: "flex gap-1 flex-wrap",
|
|
5600
5600
|
style: { "align-items": "center" }
|
|
5601
5601
|
};
|
|
5602
|
-
const _hoisted_2$
|
|
5602
|
+
const _hoisted_2$3 = { class: "gap-1 flex flex-wrap" };
|
|
5603
5603
|
const _hoisted_3$1 = { key: 1 };
|
|
5604
5604
|
//#endregion
|
|
5605
5605
|
//#region src/packages/controls/tagComp/tagComp.vue
|
|
@@ -5649,7 +5649,7 @@ var tagComp_default = /* @__PURE__ */ defineComponent({
|
|
|
5649
5649
|
}
|
|
5650
5650
|
});
|
|
5651
5651
|
const addButton = computed(() => {
|
|
5652
|
-
return init$
|
|
5652
|
+
return init$36(props.control.moduleName, "addButton", {
|
|
5653
5653
|
label: props.control.buttonLabel,
|
|
5654
5654
|
icon: props.control.buttonIcon
|
|
5655
5655
|
});
|
|
@@ -5735,7 +5735,7 @@ var tagComp_default = /* @__PURE__ */ defineComponent({
|
|
|
5735
5735
|
};
|
|
5736
5736
|
return (_ctx, _cache) => {
|
|
5737
5737
|
const _component_ElPopover = resolveComponent("ElPopover");
|
|
5738
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5738
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
5739
5739
|
(openBlock(true), createElementBlock(Fragment, null, renderList(values.value, (tabInfo, index) => {
|
|
5740
5740
|
return openBlock(), createElementBlock(Fragment, { key: index }, [index < showNumber.value ? (openBlock(), createBlock(unref(tag_exports).Template, {
|
|
5741
5741
|
key: 0,
|
|
@@ -5758,7 +5758,7 @@ var tagComp_default = /* @__PURE__ */ defineComponent({
|
|
|
5758
5758
|
default: withCtx(() => [createTextVNode(toDisplayString(unref(t$3)("buttons.more")) + "(" + toDisplayString(otherNumber.value) + ")... ", 1)]),
|
|
5759
5759
|
_: 1
|
|
5760
5760
|
}, 8, ["control"])]),
|
|
5761
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_2$
|
|
5761
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(values.value, (tabInfo, index) => {
|
|
5762
5762
|
return openBlock(), createElementBlock(Fragment, { key: index }, [index >= showNumber.value ? (openBlock(), createBlock(unref(tag_exports).Template, {
|
|
5763
5763
|
key: 0,
|
|
5764
5764
|
control: tagProps.value,
|
|
@@ -5794,11 +5794,11 @@ var tagComp_default = /* @__PURE__ */ defineComponent({
|
|
|
5794
5794
|
//#endregion
|
|
5795
5795
|
//#region src/packages/controls/tagComp/tagComp.ts
|
|
5796
5796
|
var tagComp_exports = /* @__PURE__ */ __exportAll({
|
|
5797
|
-
Template: () => Template$
|
|
5798
|
-
init: () => init$
|
|
5797
|
+
Template: () => Template$11,
|
|
5798
|
+
init: () => init$14
|
|
5799
5799
|
});
|
|
5800
|
-
const Template$
|
|
5801
|
-
function init$
|
|
5800
|
+
const Template$11 = withInstall(tagComp_default);
|
|
5801
|
+
function init$14(moduleName, name, options = {}) {
|
|
5802
5802
|
return {
|
|
5803
5803
|
moduleName,
|
|
5804
5804
|
name,
|
|
@@ -5809,25 +5809,25 @@ function init$13(moduleName, name, options = {}) {
|
|
|
5809
5809
|
//#endregion
|
|
5810
5810
|
//#region src/packages/controls/table/table.ts
|
|
5811
5811
|
var table_exports = /* @__PURE__ */ __exportAll({
|
|
5812
|
-
Template: () => Template$
|
|
5812
|
+
Template: () => Template$10,
|
|
5813
5813
|
getFormContent: () => getFormContent,
|
|
5814
|
-
init: () => init$
|
|
5814
|
+
init: () => init$13
|
|
5815
5815
|
});
|
|
5816
|
-
const Template$
|
|
5817
|
-
function init$
|
|
5816
|
+
const Template$10 = withInstall(table_default);
|
|
5817
|
+
function init$13(struct, options = {}) {
|
|
5818
5818
|
const showEdit = options?.showEdit ?? true;
|
|
5819
5819
|
const allForm = options?.allForm ?? false;
|
|
5820
5820
|
console.log("allForm", allForm);
|
|
5821
5821
|
const columns = [];
|
|
5822
|
-
const lineButtons = reactive(init$
|
|
5822
|
+
const lineButtons = reactive(init$33(struct.name, {
|
|
5823
5823
|
isGroup: true,
|
|
5824
5824
|
buttonsArea: "tableLine"
|
|
5825
5825
|
}));
|
|
5826
|
-
const headerLineButtons = reactive(init$
|
|
5826
|
+
const headerLineButtons = reactive(init$33(struct.name, {
|
|
5827
5827
|
isGroup: false,
|
|
5828
5828
|
buttonsArea: "tableLine"
|
|
5829
5829
|
}));
|
|
5830
|
-
const otherButtons = reactive(init$
|
|
5830
|
+
const otherButtons = reactive(init$33(struct.name, {
|
|
5831
5831
|
isGroup: false,
|
|
5832
5832
|
buttonsArea: "tableLine"
|
|
5833
5833
|
}));
|
|
@@ -6045,8 +6045,8 @@ function getFormContent(columns) {
|
|
|
6045
6045
|
}
|
|
6046
6046
|
//#endregion
|
|
6047
6047
|
//#region src/packages/controls/segmented/segmented.vue?vue&type=script&setup=true&lang.ts
|
|
6048
|
-
const _hoisted_1$
|
|
6049
|
-
const _hoisted_2$
|
|
6048
|
+
const _hoisted_1$2 = ["innerHTML"];
|
|
6049
|
+
const _hoisted_2$2 = { key: 2 };
|
|
6050
6050
|
//#endregion
|
|
6051
6051
|
//#region src/packages/controls/segmented/segmented.vue
|
|
6052
6052
|
var segmented_default = /* @__PURE__ */ defineComponent({
|
|
@@ -6082,7 +6082,7 @@ var segmented_default = /* @__PURE__ */ defineComponent({
|
|
|
6082
6082
|
fn: withCtx((scope) => [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
6083
6083
|
key: 1,
|
|
6084
6084
|
innerHTML: __props.control.default
|
|
6085
|
-
}, null, 8, _hoisted_1$
|
|
6085
|
+
}, null, 8, _hoisted_1$2)) : (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(__props.control.default), 1))]),
|
|
6086
6086
|
key: "1"
|
|
6087
6087
|
} : void 0]), 1040, ["modelValue"]);
|
|
6088
6088
|
};
|
|
@@ -6091,11 +6091,11 @@ var segmented_default = /* @__PURE__ */ defineComponent({
|
|
|
6091
6091
|
//#endregion
|
|
6092
6092
|
//#region src/packages/controls/segmented/segmented.ts
|
|
6093
6093
|
var segmented_exports = /* @__PURE__ */ __exportAll({
|
|
6094
|
-
Template: () => Template$
|
|
6095
|
-
init: () => init$
|
|
6094
|
+
Template: () => Template$9,
|
|
6095
|
+
init: () => init$12
|
|
6096
6096
|
});
|
|
6097
|
-
const Template$
|
|
6098
|
-
function init$
|
|
6097
|
+
const Template$9 = withInstall(segmented_default);
|
|
6098
|
+
function init$12(moduleName, name, options = {}) {
|
|
6099
6099
|
return {
|
|
6100
6100
|
moduleName,
|
|
6101
6101
|
name,
|
|
@@ -6105,7 +6105,7 @@ function init$11(moduleName, name, options = {}) {
|
|
|
6105
6105
|
}
|
|
6106
6106
|
//#endregion
|
|
6107
6107
|
//#region src/packages/controls/formItems/formItems.ts
|
|
6108
|
-
var formItems_exports = /* @__PURE__ */ __exportAll({ init: () => init$
|
|
6108
|
+
var formItems_exports = /* @__PURE__ */ __exportAll({ init: () => init$11 });
|
|
6109
6109
|
function createFormItemProps(moduleName, name, options) {
|
|
6110
6110
|
return {
|
|
6111
6111
|
required: options?.required,
|
|
@@ -6114,7 +6114,7 @@ function createFormItemProps(moduleName, name, options) {
|
|
|
6114
6114
|
...options?.formItemProps
|
|
6115
6115
|
};
|
|
6116
6116
|
}
|
|
6117
|
-
const init$
|
|
6117
|
+
const init$11 = (struct, options = {}) => {
|
|
6118
6118
|
const formItems = [];
|
|
6119
6119
|
const rowProps = { ...options?.rowProps };
|
|
6120
6120
|
const labelWidth = options.labelWidth;
|
|
@@ -6225,8 +6225,8 @@ function createMergeSelectComponent$1(struct, name, optionFrom, optionValues, op
|
|
|
6225
6225
|
moduleName: struct.name,
|
|
6226
6226
|
name,
|
|
6227
6227
|
...mergeSelectOptions,
|
|
6228
|
-
Template: markRaw(Template$
|
|
6229
|
-
init: init$
|
|
6228
|
+
Template: markRaw(Template$19),
|
|
6229
|
+
init: init$22(struct.name, name, optionFrom, optionValues, mergeSelectOptions),
|
|
6230
6230
|
formItemProps: newFormItemProps,
|
|
6231
6231
|
colProps: {
|
|
6232
6232
|
span: options.span,
|
|
@@ -6252,8 +6252,8 @@ function createTagComponent(struct, name, optionFrom, optionValues, options = {}
|
|
|
6252
6252
|
moduleName: struct.name,
|
|
6253
6253
|
name,
|
|
6254
6254
|
...tagOptions,
|
|
6255
|
-
Template: markRaw(Template$
|
|
6256
|
-
init: init$
|
|
6255
|
+
Template: markRaw(Template$11),
|
|
6256
|
+
init: init$14(struct.name, name, {
|
|
6257
6257
|
optionFrom,
|
|
6258
6258
|
optionValues,
|
|
6259
6259
|
...tagOptions
|
|
@@ -6303,14 +6303,14 @@ function addCustomComponent(component, struct, name, options = {}, items) {
|
|
|
6303
6303
|
}
|
|
6304
6304
|
//#endregion
|
|
6305
6305
|
//#region src/packages/controls/formItems/formItems.vue?vue&type=script&setup=true&lang.ts
|
|
6306
|
-
const _hoisted_1 = {
|
|
6306
|
+
const _hoisted_1$1 = {
|
|
6307
6307
|
key: 0,
|
|
6308
6308
|
style: {
|
|
6309
6309
|
"padding-right": "32px",
|
|
6310
6310
|
"box-sizing": "border-box"
|
|
6311
6311
|
}
|
|
6312
6312
|
};
|
|
6313
|
-
const _hoisted_2 = ["index"];
|
|
6313
|
+
const _hoisted_2$1 = ["index"];
|
|
6314
6314
|
const _hoisted_3 = {
|
|
6315
6315
|
key: 1,
|
|
6316
6316
|
style: {
|
|
@@ -6320,7 +6320,7 @@ const _hoisted_3 = {
|
|
|
6320
6320
|
};
|
|
6321
6321
|
//#endregion
|
|
6322
6322
|
//#region src/packages/controls/formItems/index.ts
|
|
6323
|
-
const Template$
|
|
6323
|
+
const Template$8 = withInstall(/* @__PURE__ */ defineComponent({
|
|
6324
6324
|
__name: "formItems",
|
|
6325
6325
|
props: {
|
|
6326
6326
|
control: {
|
|
@@ -6426,7 +6426,7 @@ const Template$7 = withInstall(/* @__PURE__ */ defineComponent({
|
|
|
6426
6426
|
default: withCtx(() => [
|
|
6427
6427
|
createCommentVNode(" 如果是search 并且 有input "),
|
|
6428
6428
|
__props.control?.type == "search" && unref(localSettingStore).pageTable.search.mergeStringControl && haveInput.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
6429
|
-
unref(localSettingStore).pageTable.search.stringControlLocation == "front" ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ElSelect), {
|
|
6429
|
+
unref(localSettingStore).pageTable.search.stringControlLocation == "front" ? (openBlock(), createElementBlock("div", _hoisted_1$1, [createVNode(unref(ElSelect), {
|
|
6430
6430
|
modelValue: searchKeys.value,
|
|
6431
6431
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKeys.value = $event),
|
|
6432
6432
|
"collapse-tags": true,
|
|
@@ -6469,7 +6469,7 @@ const Template$7 = withInstall(/* @__PURE__ */ defineComponent({
|
|
|
6469
6469
|
}
|
|
6470
6470
|
} : {}), null, 16, ["control"]))]),
|
|
6471
6471
|
_: 2
|
|
6472
|
-
}, 1040, ["label-width"]))], 8, _hoisted_2)) : createCommentVNode("v-if", true)], 64);
|
|
6472
|
+
}, 1040, ["label-width"]))], 8, _hoisted_2$1)) : createCommentVNode("v-if", true)], 64);
|
|
6473
6473
|
}), 128)),
|
|
6474
6474
|
unref(localSettingStore).pageTable.search.stringControlLocation == "end" ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(unref(ElSelect), {
|
|
6475
6475
|
modelValue: searchKeys.value,
|
|
@@ -6531,7 +6531,7 @@ const Template$7 = withInstall(/* @__PURE__ */ defineComponent({
|
|
|
6531
6531
|
};
|
|
6532
6532
|
}
|
|
6533
6533
|
}));
|
|
6534
|
-
const RwFormItems = Object.assign({}, formItems_exports, { Template: Template$
|
|
6534
|
+
const RwFormItems = Object.assign({}, formItems_exports, { Template: Template$8 });
|
|
6535
6535
|
//#endregion
|
|
6536
6536
|
//#region src/packages/controls/tabPane/tabPane.vue
|
|
6537
6537
|
var tabPane_default = /* @__PURE__ */ defineComponent({
|
|
@@ -6568,11 +6568,11 @@ var tabPane_default = /* @__PURE__ */ defineComponent({
|
|
|
6568
6568
|
//#endregion
|
|
6569
6569
|
//#region src/packages/controls/tabPane/tabPane.ts
|
|
6570
6570
|
var tabPane_exports = /* @__PURE__ */ __exportAll({
|
|
6571
|
-
Template: () => Template$
|
|
6572
|
-
init: () => init$
|
|
6571
|
+
Template: () => Template$7,
|
|
6572
|
+
init: () => init$10
|
|
6573
6573
|
});
|
|
6574
|
-
const Template$
|
|
6575
|
-
const init$
|
|
6574
|
+
const Template$7 = withInstall(tabPane_default);
|
|
6575
|
+
const init$10 = (moduleName, name, options) => {
|
|
6576
6576
|
const contents = reactive([]);
|
|
6577
6577
|
const tabPaneProps = reactive({
|
|
6578
6578
|
name,
|
|
@@ -6593,7 +6593,7 @@ const init$9 = (moduleName, name, options) => {
|
|
|
6593
6593
|
}));
|
|
6594
6594
|
},
|
|
6595
6595
|
addTabs: (options = {}) => {
|
|
6596
|
-
contents.push(init$
|
|
6596
|
+
contents.push(init$9(options));
|
|
6597
6597
|
},
|
|
6598
6598
|
...options,
|
|
6599
6599
|
controlType: "tabPane"
|
|
@@ -6640,11 +6640,11 @@ var tabs_default = /* @__PURE__ */ defineComponent({
|
|
|
6640
6640
|
//#endregion
|
|
6641
6641
|
//#region src/packages/controls/tabs/tabs.ts
|
|
6642
6642
|
var tabs_exports = /* @__PURE__ */ __exportAll({
|
|
6643
|
-
Template: () => Template$
|
|
6644
|
-
init: () => init$
|
|
6643
|
+
Template: () => Template$6,
|
|
6644
|
+
init: () => init$9
|
|
6645
6645
|
});
|
|
6646
|
-
const Template$
|
|
6647
|
-
function init$
|
|
6646
|
+
const Template$6 = withInstall(tabs_default);
|
|
6647
|
+
function init$9(options = {}) {
|
|
6648
6648
|
const id = `tabs--${Date.now()}_${Math.random().toString(36).slice(2, 9)}`;
|
|
6649
6649
|
const tabPanes = [];
|
|
6650
6650
|
const inDialog = options?.inDialog ?? false;
|
|
@@ -6653,14 +6653,14 @@ function init$8(options = {}) {
|
|
|
6653
6653
|
tabPanes,
|
|
6654
6654
|
inDialog,
|
|
6655
6655
|
addTabPaneSimple: (moduleName, name, options) => {
|
|
6656
|
-
tabPanes.push(init$
|
|
6656
|
+
tabPanes.push(init$10(moduleName, name, {
|
|
6657
6657
|
...options,
|
|
6658
6658
|
inDialog
|
|
6659
6659
|
}));
|
|
6660
6660
|
return self;
|
|
6661
6661
|
},
|
|
6662
6662
|
addTabPane: (moduleName, name, contents, options) => {
|
|
6663
|
-
tabPanes.push(init$
|
|
6663
|
+
tabPanes.push(init$10(moduleName, name, {
|
|
6664
6664
|
...options,
|
|
6665
6665
|
inDialog,
|
|
6666
6666
|
contents: Array.isArray(contents) ? contents : [contents]
|
|
@@ -6677,9 +6677,9 @@ function init$8(options = {}) {
|
|
|
6677
6677
|
var form_exports = /* @__PURE__ */ __exportAll({
|
|
6678
6678
|
FormTraverser: () => FormTraverser,
|
|
6679
6679
|
batchProcessForm: () => batchProcessForm,
|
|
6680
|
-
init: () => init$
|
|
6680
|
+
init: () => init$8
|
|
6681
6681
|
});
|
|
6682
|
-
const init$
|
|
6682
|
+
const init$8 = (struct, options = {}) => {
|
|
6683
6683
|
const formId = options.id || `form-${struct.name}-${Date.now()}_${Math.random().toString(36).slice(2, 9)}`;
|
|
6684
6684
|
const contents = reactive([]);
|
|
6685
6685
|
const data = (() => {
|
|
@@ -6688,7 +6688,7 @@ const init$7 = (struct, options = {}) => {
|
|
|
6688
6688
|
})();
|
|
6689
6689
|
const contentsMap = reactive(/* @__PURE__ */ new Map());
|
|
6690
6690
|
const customizedDisabled = options?.customizedDisabled ?? false;
|
|
6691
|
-
const buttons = reactive(init$
|
|
6691
|
+
const buttons = reactive(init$33(struct.name, { isGroup: true }));
|
|
6692
6692
|
buttons.addButton("submit", {
|
|
6693
6693
|
label: "buttons.save",
|
|
6694
6694
|
nativeType: "button",
|
|
@@ -6787,7 +6787,7 @@ const init$7 = (struct, options = {}) => {
|
|
|
6787
6787
|
return formItems;
|
|
6788
6788
|
},
|
|
6789
6789
|
addTabs: (options = {}) => {
|
|
6790
|
-
contents.push(init$
|
|
6790
|
+
contents.push(init$9(options));
|
|
6791
6791
|
},
|
|
6792
6792
|
changeButton: (name, options) => {
|
|
6793
6793
|
const item = buttons.controls.find((item) => item.name === name);
|
|
@@ -7010,7 +7010,7 @@ function addInputValidation(rules, control, type) {
|
|
|
7010
7010
|
}
|
|
7011
7011
|
//#endregion
|
|
7012
7012
|
//#region src/packages/controls/form/index.ts
|
|
7013
|
-
const Template$
|
|
7013
|
+
const Template$5 = withInstall(/* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
7014
7014
|
__name: "form",
|
|
7015
7015
|
props: { control: {
|
|
7016
7016
|
type: Object,
|
|
@@ -7449,7 +7449,7 @@ const Template$4 = withInstall(/* @__PURE__ */ _plugin_vue_export_helper_default
|
|
|
7449
7449
|
};
|
|
7450
7450
|
}
|
|
7451
7451
|
}), [["__scopeId", "data-v-599c4886"]]));
|
|
7452
|
-
const RwForm = Object.assign({}, form_exports, { Template: Template$
|
|
7452
|
+
const RwForm = Object.assign({}, form_exports, { Template: Template$5 });
|
|
7453
7453
|
//#endregion
|
|
7454
7454
|
//#region src/packages/controls/pageBase/pageBase.vue
|
|
7455
7455
|
var pageBase_default = /* @__PURE__ */ defineComponent({
|
|
@@ -7544,11 +7544,11 @@ var pageBase_default = /* @__PURE__ */ defineComponent({
|
|
|
7544
7544
|
//#endregion
|
|
7545
7545
|
//#region src/packages/controls/pageBase/pageBase.ts
|
|
7546
7546
|
var pageBase_exports = /* @__PURE__ */ __exportAll({
|
|
7547
|
-
Template: () => Template$
|
|
7548
|
-
init: () => init$
|
|
7547
|
+
Template: () => Template$4,
|
|
7548
|
+
init: () => init$7
|
|
7549
7549
|
});
|
|
7550
|
-
const Template$
|
|
7551
|
-
const init$
|
|
7550
|
+
const Template$4 = withInstall(pageBase_default);
|
|
7551
|
+
const init$7 = (name, pageType, options) => {
|
|
7552
7552
|
const dialogs = reactive([]);
|
|
7553
7553
|
return {
|
|
7554
7554
|
name,
|
|
@@ -7556,7 +7556,7 @@ const init$6 = (name, pageType, options) => {
|
|
|
7556
7556
|
dialogs,
|
|
7557
7557
|
...options,
|
|
7558
7558
|
pushDialog: (name, templateName, buttons, options = {}) => {
|
|
7559
|
-
dialogs.push(init$
|
|
7559
|
+
dialogs.push(init$32(name, templateName, buttons, options));
|
|
7560
7560
|
},
|
|
7561
7561
|
showDialog: (name, id = 0, params) => {
|
|
7562
7562
|
const dialog = dialogs.find((dialog) => dialog.name === name);
|
|
@@ -7634,10 +7634,10 @@ var pageForm_default = /* @__PURE__ */ defineComponent({
|
|
|
7634
7634
|
//#region src/packages/controls/pageStruct/tableStruct.ts
|
|
7635
7635
|
var tableStruct_exports = /* @__PURE__ */ __exportAll({
|
|
7636
7636
|
getDefaultData: () => getDefaultData,
|
|
7637
|
-
init: () => init$
|
|
7637
|
+
init: () => init$6,
|
|
7638
7638
|
textIsSystemKeyword: () => textIsSystemKeyword
|
|
7639
7639
|
});
|
|
7640
|
-
const init$
|
|
7640
|
+
const init$6 = (name, type, options = {}) => {
|
|
7641
7641
|
if (textIsSystemKeyword(name)) console.error(name, "数据库字段名不能为系统关键字");
|
|
7642
7642
|
return {
|
|
7643
7643
|
name,
|
|
@@ -8504,8 +8504,8 @@ const textIsSystemKeyword = (keyword) => {
|
|
|
8504
8504
|
//#endregion
|
|
8505
8505
|
//#region src/packages/controls/pageStruct/pageStruct.ts
|
|
8506
8506
|
/*** 原系统StructsC的类 */
|
|
8507
|
-
var pageStruct_exports = /* @__PURE__ */ __exportAll({ init: () => init$
|
|
8508
|
-
const init$
|
|
8507
|
+
var pageStruct_exports = /* @__PURE__ */ __exportAll({ init: () => init$5 });
|
|
8508
|
+
const init$5 = (name, tableID, apiURLFront, options = {}) => {
|
|
8509
8509
|
const fields = [];
|
|
8510
8510
|
const fieldsMap = /* @__PURE__ */ new Map();
|
|
8511
8511
|
const defaultSubModules = [
|
|
@@ -8598,7 +8598,7 @@ const init$4 = (name, tableID, apiURLFront, options = {}) => {
|
|
|
8598
8598
|
...newOptions,
|
|
8599
8599
|
title: `${name}.${fieldName}`
|
|
8600
8600
|
};
|
|
8601
|
-
const field = init$
|
|
8601
|
+
const field = init$6(fieldName, type, newOptions);
|
|
8602
8602
|
fields.push(field);
|
|
8603
8603
|
fieldsMap.set(fieldName, field);
|
|
8604
8604
|
}
|
|
@@ -8632,13 +8632,13 @@ const init$4 = (name, tableID, apiURLFront, options = {}) => {
|
|
|
8632
8632
|
//#endregion
|
|
8633
8633
|
//#region src/packages/controls/pageForm/pageForm.ts
|
|
8634
8634
|
var pageForm_exports = /* @__PURE__ */ __exportAll({
|
|
8635
|
-
Template: () => Template$
|
|
8636
|
-
init: () => init$
|
|
8635
|
+
Template: () => Template$3,
|
|
8636
|
+
init: () => init$4
|
|
8637
8637
|
});
|
|
8638
|
-
const Template$
|
|
8639
|
-
const init$
|
|
8638
|
+
const Template$3 = withInstall(pageForm_default);
|
|
8639
|
+
const init$4 = (struct, options) => {
|
|
8640
8640
|
return {
|
|
8641
|
-
page: reactive(init$
|
|
8641
|
+
page: reactive(init$7(struct.name, "form")),
|
|
8642
8642
|
form: reactive(RwForm.init(struct, { ...options?.form })),
|
|
8643
8643
|
controlType: "pageForm"
|
|
8644
8644
|
};
|
|
@@ -8886,7 +8886,7 @@ var pageTable_default = /* @__PURE__ */ defineComponent({
|
|
|
8886
8886
|
}
|
|
8887
8887
|
}
|
|
8888
8888
|
function showColumns(arr = []) {
|
|
8889
|
-
let showColumnsDropdown = init$
|
|
8889
|
+
let showColumnsDropdown = init$34("table", "showColumns", {
|
|
8890
8890
|
hideOnClick: false,
|
|
8891
8891
|
type: "primary",
|
|
8892
8892
|
maxHeight: 500,
|
|
@@ -9090,15 +9090,15 @@ var pageTable_default = /* @__PURE__ */ defineComponent({
|
|
|
9090
9090
|
//#endregion
|
|
9091
9091
|
//#region src/packages/controls/pageTable/pageTable.ts
|
|
9092
9092
|
var pageTable_exports = /* @__PURE__ */ __exportAll({
|
|
9093
|
-
Template: () => Template$
|
|
9094
|
-
init: () => init$
|
|
9093
|
+
Template: () => Template$2,
|
|
9094
|
+
init: () => init$3
|
|
9095
9095
|
});
|
|
9096
|
-
const Template$
|
|
9097
|
-
function init$
|
|
9096
|
+
const Template$2 = withInstall(pageTable_default);
|
|
9097
|
+
function init$3(struct, options = {}) {
|
|
9098
9098
|
const showRefresh = options?.showRefresh ?? true;
|
|
9099
9099
|
const localSetting = useLocalSettingStore();
|
|
9100
|
-
const page = reactive(init$
|
|
9101
|
-
const operateButtons = init$
|
|
9100
|
+
const page = reactive(init$7(struct?.name, "table"));
|
|
9101
|
+
const operateButtons = init$33(struct.name, {
|
|
9102
9102
|
isGroup: false,
|
|
9103
9103
|
buttonsArea: "operate",
|
|
9104
9104
|
show: true
|
|
@@ -9149,15 +9149,15 @@ function init$2(struct, options = {}) {
|
|
|
9149
9149
|
type: "danger",
|
|
9150
9150
|
icon: markRaw(Close)
|
|
9151
9151
|
});
|
|
9152
|
-
const tableButtons = init$
|
|
9152
|
+
const tableButtons = init$33(struct.name, {
|
|
9153
9153
|
isGroup: false,
|
|
9154
9154
|
buttonsArea: "table"
|
|
9155
9155
|
});
|
|
9156
|
-
const importDropDown = init$
|
|
9156
|
+
const importDropDown = init$34("buttons", "import", { icon: "Files" });
|
|
9157
9157
|
importDropDown.addItem("importing", { icon: "Files" });
|
|
9158
9158
|
importDropDown.addItem("downloadTemplate", { icon: "Download" });
|
|
9159
9159
|
tableButtons.addDropdown("import", importDropDown);
|
|
9160
|
-
const exportDropDown = init$
|
|
9160
|
+
const exportDropDown = init$34("buttons", "export", { icon: "Document" });
|
|
9161
9161
|
exportDropDown.addItem("exportSelectedToExcel", {
|
|
9162
9162
|
label: "buttons.exportSelected",
|
|
9163
9163
|
icon: "Select"
|
|
@@ -9172,8 +9172,8 @@ function init$2(struct, options = {}) {
|
|
|
9172
9172
|
search,
|
|
9173
9173
|
operateButtons,
|
|
9174
9174
|
tableButtons,
|
|
9175
|
-
table: init$
|
|
9176
|
-
pagination: init$
|
|
9175
|
+
table: init$13(struct, { showEdit: !!options.editName }),
|
|
9176
|
+
pagination: init$19(struct?.name, {}),
|
|
9177
9177
|
struct,
|
|
9178
9178
|
showRefresh,
|
|
9179
9179
|
...options
|
|
@@ -9182,11 +9182,55 @@ function init$2(struct, options = {}) {
|
|
|
9182
9182
|
}
|
|
9183
9183
|
//#endregion
|
|
9184
9184
|
//#region src/packages/controls/pageTable/mTreeSTable.ts
|
|
9185
|
-
var mTreeSTable_exports = /* @__PURE__ */ __exportAll({ init: () => init$
|
|
9186
|
-
function init$
|
|
9185
|
+
var mTreeSTable_exports = /* @__PURE__ */ __exportAll({ init: () => init$2 });
|
|
9186
|
+
function init$2(options) {
|
|
9187
9187
|
return {
|
|
9188
|
-
mTablePage: init$
|
|
9189
|
-
tablePage: init$
|
|
9188
|
+
mTablePage: init$3(options.mTablePage.struct),
|
|
9189
|
+
tablePage: init$3(options.tablePage.struct)
|
|
9190
|
+
};
|
|
9191
|
+
}
|
|
9192
|
+
//#endregion
|
|
9193
|
+
//#region src/packages/controls/progress/progress.vue?vue&type=script&setup=true&lang.ts
|
|
9194
|
+
const _hoisted_1 = ["innerHTML"];
|
|
9195
|
+
const _hoisted_2 = { key: 2 };
|
|
9196
|
+
//#endregion
|
|
9197
|
+
//#region src/packages/controls/progress/progress.vue
|
|
9198
|
+
var progress_default = /* @__PURE__ */ defineComponent({
|
|
9199
|
+
__name: "progress",
|
|
9200
|
+
props: { control: {
|
|
9201
|
+
type: Object,
|
|
9202
|
+
required: true
|
|
9203
|
+
} },
|
|
9204
|
+
setup(__props) {
|
|
9205
|
+
const props = __props;
|
|
9206
|
+
const progressProps = computed(() => {
|
|
9207
|
+
const { default: _default, ...rest } = props.control;
|
|
9208
|
+
return rest;
|
|
9209
|
+
});
|
|
9210
|
+
return (_ctx, _cache) => {
|
|
9211
|
+
return openBlock(), createBlock(unref(ElProgress), normalizeProps(guardReactiveProps(progressProps.value)), createSlots({ _: 2 }, [__props.control.default ? {
|
|
9212
|
+
name: "default",
|
|
9213
|
+
fn: withCtx(() => [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
9214
|
+
key: 1,
|
|
9215
|
+
innerHTML: __props.control.default
|
|
9216
|
+
}, null, 8, _hoisted_1)) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.control.default), 1))]),
|
|
9217
|
+
key: "0"
|
|
9218
|
+
} : void 0]), 1040);
|
|
9219
|
+
};
|
|
9220
|
+
}
|
|
9221
|
+
});
|
|
9222
|
+
//#endregion
|
|
9223
|
+
//#region src/packages/controls/progress/progress.ts
|
|
9224
|
+
var progress_exports = /* @__PURE__ */ __exportAll({
|
|
9225
|
+
Template: () => Template$1,
|
|
9226
|
+
init: () => init$1
|
|
9227
|
+
});
|
|
9228
|
+
const Template$1 = withInstall(progress_default);
|
|
9229
|
+
function init$1(moduleName, name, options = {}) {
|
|
9230
|
+
return {
|
|
9231
|
+
moduleName,
|
|
9232
|
+
name,
|
|
9233
|
+
...options
|
|
9190
9234
|
};
|
|
9191
9235
|
}
|
|
9192
9236
|
//#endregion
|
|
@@ -9337,7 +9381,7 @@ var search_exports = /* @__PURE__ */ __exportAll({
|
|
|
9337
9381
|
const SearchKeyTemplate = withInstall(searchKeys_default);
|
|
9338
9382
|
const Template = withInstall(search_default);
|
|
9339
9383
|
const init = (struct, options = {}) => {
|
|
9340
|
-
const buttons = init$
|
|
9384
|
+
const buttons = init$33(struct.name, {
|
|
9341
9385
|
isGroup: false,
|
|
9342
9386
|
buttonsArea: "search"
|
|
9343
9387
|
});
|
|
@@ -9454,6 +9498,7 @@ var controls_exports = /* @__PURE__ */ __exportAll({
|
|
|
9454
9498
|
RwPageTable: () => pageTable_exports,
|
|
9455
9499
|
RwPagination: () => pagination_exports,
|
|
9456
9500
|
RwPopconfirm: () => popconfirm_exports,
|
|
9501
|
+
RwProgress: () => progress_exports,
|
|
9457
9502
|
RwRadio: () => radio_exports,
|
|
9458
9503
|
RwSearch: () => search_exports,
|
|
9459
9504
|
RwSegmented: () => segmented_exports,
|
|
@@ -9472,4 +9517,4 @@ var controls_exports = /* @__PURE__ */ __exportAll({
|
|
|
9472
9517
|
tableStruct: () => tableStruct_exports
|
|
9473
9518
|
});
|
|
9474
9519
|
//#endregion
|
|
9475
|
-
export {
|
|
9520
|
+
export { mergeInput_exports as A, popconfirm_exports as B, upload_exports as C, mergeSelect_exports as D, slider_exports as E, input_exports as F, _plugin_vue_export_helper_default as G, autocomplete_exports as H, divider_exports as I, dialog_exports as L, inputNumber_exports as M, inputTag_exports as N, image_exports as O, select_exports as P, buttonGroup_exports as R, tree_exports as S, map_exports as T, affix_exports as U, button_exports as V, MyButton_default as W, segmented_exports as _, pageTable_exports as a, tag_exports as b, init$5 as c, pageBase_exports as d, RwForm as f, RwFormItems as g, tabPane_exports as h, mTreeSTable_exports as i, radio_exports as j, switch_exports as k, pageStruct_exports as l, tabs_exports as m, search_exports as n, init$4 as o, init$9 as p, progress_exports as r, pageForm_exports as s, controls_exports as t, tableStruct_exports as u, table_exports as v, pagination_exports as w, text_exports as x, tagComp_exports as y, dropdown_exports as z };
|