duck-vue-components 0.2.97 → 0.2.98
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-CWssBE80.cjs → controls-Co4b80fK.cjs} +7 -16
- package/dist/{controls-Cugxz_l-.js → controls-DChLTdrs.js} +7 -16
- package/dist/controls.cjs +1 -1
- package/dist/controls.d.cts +1 -1
- package/dist/controls.d.ts +1 -1
- package/dist/controls.js +1 -1
- package/dist/{index-DZ-Ukcsb.d.ts → index-D7J0bM92.d.ts} +6 -7
- package/dist/{index-BiU80jj5.d.cts → index-Irx8VXt_.d.cts} +6 -7
- 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/package.json +1 -1
|
@@ -4513,10 +4513,6 @@ var upload_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4513
4513
|
"faf3e6da-control.imgWidth ? (control.imgHeight ? control.imgHeight + \"px\" : control.imgWidth + \"px\") : \"var(--el-upload-list-picture-card-size, 148px)\"": _ctx.control.imgWidth ? _ctx.control.imgHeight ? _ctx.control.imgHeight + "px" : _ctx.control.imgWidth + "px" : "var(--el-upload-list-picture-card-size, 148px)"
|
|
4514
4514
|
}));
|
|
4515
4515
|
const config = (0, vue.inject)("frameworkConfig");
|
|
4516
|
-
(0, vue.onMounted)(() => {
|
|
4517
|
-
if (config?.apiBaseUrl) setBaseUrl(config.apiBaseUrl);
|
|
4518
|
-
else console.warn("No apiBaseUrl found in frameworkConfig, using default \"/\"");
|
|
4519
|
-
});
|
|
4520
4516
|
console.log("upload:Upload component received config:", config);
|
|
4521
4517
|
const props = __props;
|
|
4522
4518
|
const { fieldValue } = require_hooks.useFormValue("RwUpload", props.control);
|
|
@@ -4556,7 +4552,7 @@ var upload_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4556
4552
|
const response = await initFile({
|
|
4557
4553
|
apiParam: "Files/getInitFile",
|
|
4558
4554
|
FileID: Array.isArray(value) ? value.join(",") : String(value)
|
|
4559
|
-
});
|
|
4555
|
+
}, config?.apiBaseUrl || "/");
|
|
4560
4556
|
if (!response?.data || response.data.length === 0) {
|
|
4561
4557
|
fileList.value = [];
|
|
4562
4558
|
fieldValue.value = isEmpty(fieldValue.value) ? "" : fieldValue.value;
|
|
@@ -4658,14 +4654,9 @@ var upload_exports = /* @__PURE__ */ require_locale.__exportAll({
|
|
|
4658
4654
|
initFile: () => initFile,
|
|
4659
4655
|
isEmpty: () => isEmpty,
|
|
4660
4656
|
removeUploadedFile: () => removeUploadedFile,
|
|
4661
|
-
setBaseUrl: () => setBaseUrl,
|
|
4662
4657
|
showUploadExceedMessage: () => showUploadExceedMessage,
|
|
4663
4658
|
validateUploadLimit: () => validateUploadLimit
|
|
4664
4659
|
});
|
|
4665
|
-
const baseUrl = (0, vue.ref)("");
|
|
4666
|
-
function setBaseUrl(apiBaseUrl) {
|
|
4667
|
-
baseUrl.value = apiBaseUrl;
|
|
4668
|
-
}
|
|
4669
4660
|
const Template$15 = require_utils.withInstall(upload_default);
|
|
4670
4661
|
function init$18(moduleName, name, options = {}) {
|
|
4671
4662
|
return {
|
|
@@ -4696,10 +4687,10 @@ const getUploadAccept = (fileType) => {
|
|
|
4696
4687
|
file: "*"
|
|
4697
4688
|
}[fileType] || "*";
|
|
4698
4689
|
};
|
|
4699
|
-
const removeUploadedFile = async (fileId, userType = "0") => {
|
|
4690
|
+
const removeUploadedFile = async (fileId, userType = "0", baseUrl) => {
|
|
4700
4691
|
try {
|
|
4701
4692
|
const endpoint = userType === "0" ? "?p=files&a=delUserFile" : "?p=files&a=delSiteFile";
|
|
4702
|
-
if ((await require_utils.http.post(baseUrl
|
|
4693
|
+
if ((await require_utils.http.post(baseUrl + endpoint, { FileID: fileId }))?.status === 0) {
|
|
4703
4694
|
element_plus.ElMessage.success("成功删除上传的文件");
|
|
4704
4695
|
return true;
|
|
4705
4696
|
} else {
|
|
@@ -4716,11 +4707,11 @@ const handleUploadError = (error, fileName) => {
|
|
|
4716
4707
|
const message = error.message || "未知错误";
|
|
4717
4708
|
element_plus.ElMessage.error(`文件 ${fileName} 上传失败(${message})`);
|
|
4718
4709
|
};
|
|
4719
|
-
const initFile = async (data) => {
|
|
4720
|
-
return require_utils.http.post(baseUrl
|
|
4710
|
+
const initFile = async (data, baseUrl) => {
|
|
4711
|
+
return require_utils.http.post(baseUrl + "?p=Files&a=getInitFile&apiName=Files/getInitFile", data);
|
|
4721
4712
|
};
|
|
4722
|
-
const getFileList = async (data) => {
|
|
4723
|
-
return require_utils.http.post(baseUrl
|
|
4713
|
+
const getFileList = async (baseUrl, data) => {
|
|
4714
|
+
return require_utils.http.post(baseUrl + "?p=Files&a=getFileList", data);
|
|
4724
4715
|
};
|
|
4725
4716
|
const isEmpty = (value) => {
|
|
4726
4717
|
if (value == null) return true;
|
|
@@ -4511,10 +4511,6 @@ var upload_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4511
4511
|
"faf3e6da-control.imgWidth ? (control.imgHeight ? control.imgHeight + \"px\" : control.imgWidth + \"px\") : \"var(--el-upload-list-picture-card-size, 148px)\"": _ctx.control.imgWidth ? _ctx.control.imgHeight ? _ctx.control.imgHeight + "px" : _ctx.control.imgWidth + "px" : "var(--el-upload-list-picture-card-size, 148px)"
|
|
4512
4512
|
}));
|
|
4513
4513
|
const config = inject("frameworkConfig");
|
|
4514
|
-
onMounted(() => {
|
|
4515
|
-
if (config?.apiBaseUrl) setBaseUrl(config.apiBaseUrl);
|
|
4516
|
-
else console.warn("No apiBaseUrl found in frameworkConfig, using default \"/\"");
|
|
4517
|
-
});
|
|
4518
4514
|
console.log("upload:Upload component received config:", config);
|
|
4519
4515
|
const props = __props;
|
|
4520
4516
|
const { fieldValue } = useFormValue("RwUpload", props.control);
|
|
@@ -4554,7 +4550,7 @@ var upload_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
4554
4550
|
const response = await initFile({
|
|
4555
4551
|
apiParam: "Files/getInitFile",
|
|
4556
4552
|
FileID: Array.isArray(value) ? value.join(",") : String(value)
|
|
4557
|
-
});
|
|
4553
|
+
}, config?.apiBaseUrl || "/");
|
|
4558
4554
|
if (!response?.data || response.data.length === 0) {
|
|
4559
4555
|
fileList.value = [];
|
|
4560
4556
|
fieldValue.value = isEmpty(fieldValue.value) ? "" : fieldValue.value;
|
|
@@ -4656,14 +4652,9 @@ var upload_exports = /* @__PURE__ */ __exportAll({
|
|
|
4656
4652
|
initFile: () => initFile,
|
|
4657
4653
|
isEmpty: () => isEmpty,
|
|
4658
4654
|
removeUploadedFile: () => removeUploadedFile,
|
|
4659
|
-
setBaseUrl: () => setBaseUrl,
|
|
4660
4655
|
showUploadExceedMessage: () => showUploadExceedMessage,
|
|
4661
4656
|
validateUploadLimit: () => validateUploadLimit
|
|
4662
4657
|
});
|
|
4663
|
-
const baseUrl = ref("");
|
|
4664
|
-
function setBaseUrl(apiBaseUrl) {
|
|
4665
|
-
baseUrl.value = apiBaseUrl;
|
|
4666
|
-
}
|
|
4667
4658
|
const Template$15 = withInstall(upload_default);
|
|
4668
4659
|
function init$18(moduleName, name, options = {}) {
|
|
4669
4660
|
return {
|
|
@@ -4694,10 +4685,10 @@ const getUploadAccept = (fileType) => {
|
|
|
4694
4685
|
file: "*"
|
|
4695
4686
|
}[fileType] || "*";
|
|
4696
4687
|
};
|
|
4697
|
-
const removeUploadedFile = async (fileId, userType = "0") => {
|
|
4688
|
+
const removeUploadedFile = async (fileId, userType = "0", baseUrl) => {
|
|
4698
4689
|
try {
|
|
4699
4690
|
const endpoint = userType === "0" ? "?p=files&a=delUserFile" : "?p=files&a=delSiteFile";
|
|
4700
|
-
if ((await http.post(baseUrl
|
|
4691
|
+
if ((await http.post(baseUrl + endpoint, { FileID: fileId }))?.status === 0) {
|
|
4701
4692
|
ElMessage.success("成功删除上传的文件");
|
|
4702
4693
|
return true;
|
|
4703
4694
|
} else {
|
|
@@ -4714,11 +4705,11 @@ const handleUploadError = (error, fileName) => {
|
|
|
4714
4705
|
const message = error.message || "未知错误";
|
|
4715
4706
|
ElMessage.error(`文件 ${fileName} 上传失败(${message})`);
|
|
4716
4707
|
};
|
|
4717
|
-
const initFile = async (data) => {
|
|
4718
|
-
return http.post(baseUrl
|
|
4708
|
+
const initFile = async (data, baseUrl) => {
|
|
4709
|
+
return http.post(baseUrl + "?p=Files&a=getInitFile&apiName=Files/getInitFile", data);
|
|
4719
4710
|
};
|
|
4720
|
-
const getFileList = async (data) => {
|
|
4721
|
-
return http.post(baseUrl
|
|
4711
|
+
const getFileList = async (baseUrl, data) => {
|
|
4712
|
+
return http.post(baseUrl + "?p=Files&a=getFileList", data);
|
|
4722
4713
|
};
|
|
4723
4714
|
const isEmpty = (value) => {
|
|
4724
4715
|
if (value == null) return true;
|
package/dist/controls.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_controls = require("./controls-
|
|
2
|
+
const require_controls = require("./controls-Co4b80fK.cjs");
|
|
3
3
|
Object.defineProperty(exports, "RwAffix", {
|
|
4
4
|
enumerable: true,
|
|
5
5
|
get: function() {
|
package/dist/controls.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as inputNumber_d_exports, B as autocomplete_d_exports, C as upload_d_exports, D as mergeSelect_d_exports, E as switch_d_exports, F as dialog_d_exports, H as alert_d_exports, I as buttonGroup_d_exports, L as dropdown_d_exports, M as select_d_exports, N as input_d_exports, O as mergeInput_d_exports, P as divider_d_exports, R as popconfirm_d_exports, S as tree_d_exports, T as slider_d_exports, U as affix_d_exports, V as avatar_d_exports, _ as table_d_exports, a as mTreeSTable_d_exports, b as image_d_exports, d as pageBase_d_exports, f as RwForm, g as segmented_d_exports, h as RwFormItems, i as progress_d_exports, j as inputTag_d_exports, k as radio_d_exports, l as pageStruct_d_exports, m as tabPane_d_exports, n as search_d_exports, o as pageTable_d_exports, p as tabs_d_exports, r as pagination_d_exports, s as pageForm_d_exports, u as tableStruct_d_exports, v as tagComp_d_exports, w as map_d_exports, x as text_d_exports, y as tag_d_exports, z as button_d_exports } from "./index-
|
|
1
|
+
import { A as inputNumber_d_exports, B as autocomplete_d_exports, C as upload_d_exports, D as mergeSelect_d_exports, E as switch_d_exports, F as dialog_d_exports, H as alert_d_exports, I as buttonGroup_d_exports, L as dropdown_d_exports, M as select_d_exports, N as input_d_exports, O as mergeInput_d_exports, P as divider_d_exports, R as popconfirm_d_exports, S as tree_d_exports, T as slider_d_exports, U as affix_d_exports, V as avatar_d_exports, _ as table_d_exports, a as mTreeSTable_d_exports, b as image_d_exports, d as pageBase_d_exports, f as RwForm, g as segmented_d_exports, h as RwFormItems, i as progress_d_exports, j as inputTag_d_exports, k as radio_d_exports, l as pageStruct_d_exports, m as tabPane_d_exports, n as search_d_exports, o as pageTable_d_exports, p as tabs_d_exports, r as pagination_d_exports, s as pageForm_d_exports, u as tableStruct_d_exports, v as tagComp_d_exports, w as map_d_exports, x as text_d_exports, y as tag_d_exports, z as button_d_exports } from "./index-Irx8VXt_.cjs";
|
|
2
2
|
export { affix_d_exports as RwAffix, alert_d_exports as RwAlert, autocomplete_d_exports as RwAutocomplete, avatar_d_exports as RwAvatar, button_d_exports as RwButton, buttonGroup_d_exports as RwButtonGroup, dialog_d_exports as RwDialog, divider_d_exports as RwDivider, dropdown_d_exports as RwDropdown, RwForm, RwFormItems, image_d_exports as RwImage, input_d_exports as RwInput, inputNumber_d_exports as RwInputNumber, inputTag_d_exports as RwInputTag, mTreeSTable_d_exports as RwMTreeSTable, map_d_exports as RwMap, mergeInput_d_exports as RwMergeInput, mergeSelect_d_exports as RwMergeSelect, pageBase_d_exports as RwPageBase, pageForm_d_exports as RwPageForm, pageTable_d_exports as RwPageTable, pagination_d_exports as RwPagination, popconfirm_d_exports as RwPopconfirm, progress_d_exports as RwProgress, radio_d_exports as RwRadio, search_d_exports as RwSearch, segmented_d_exports as RwSegmented, select_d_exports as RwSelect, slider_d_exports as RwSlider, switch_d_exports as RwSwitch, tabPane_d_exports as RwTabPane, table_d_exports as RwTable, tabs_d_exports as RwTabs, tag_d_exports as RwTag, tagComp_d_exports as RwTagComp, text_d_exports as RwText, tree_d_exports as RwTree, upload_d_exports as RwUpload, pageStruct_d_exports as pageStruct, tableStruct_d_exports as tableStruct };
|
package/dist/controls.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as inputNumber_d_exports, B as autocomplete_d_exports, C as upload_d_exports, D as mergeSelect_d_exports, E as switch_d_exports, F as dialog_d_exports, H as alert_d_exports, I as buttonGroup_d_exports, L as dropdown_d_exports, M as select_d_exports, N as input_d_exports, O as mergeInput_d_exports, P as divider_d_exports, R as popconfirm_d_exports, S as tree_d_exports, T as slider_d_exports, U as affix_d_exports, V as avatar_d_exports, _ as table_d_exports, a as mTreeSTable_d_exports, b as image_d_exports, d as pageBase_d_exports, f as RwForm, g as segmented_d_exports, h as RwFormItems, i as progress_d_exports, j as inputTag_d_exports, k as radio_d_exports, l as pageStruct_d_exports, m as tabPane_d_exports, n as search_d_exports, o as pageTable_d_exports, p as tabs_d_exports, r as pagination_d_exports, s as pageForm_d_exports, u as tableStruct_d_exports, v as tagComp_d_exports, w as map_d_exports, x as text_d_exports, y as tag_d_exports, z as button_d_exports } from "./index-
|
|
1
|
+
import { A as inputNumber_d_exports, B as autocomplete_d_exports, C as upload_d_exports, D as mergeSelect_d_exports, E as switch_d_exports, F as dialog_d_exports, H as alert_d_exports, I as buttonGroup_d_exports, L as dropdown_d_exports, M as select_d_exports, N as input_d_exports, O as mergeInput_d_exports, P as divider_d_exports, R as popconfirm_d_exports, S as tree_d_exports, T as slider_d_exports, U as affix_d_exports, V as avatar_d_exports, _ as table_d_exports, a as mTreeSTable_d_exports, b as image_d_exports, d as pageBase_d_exports, f as RwForm, g as segmented_d_exports, h as RwFormItems, i as progress_d_exports, j as inputTag_d_exports, k as radio_d_exports, l as pageStruct_d_exports, m as tabPane_d_exports, n as search_d_exports, o as pageTable_d_exports, p as tabs_d_exports, r as pagination_d_exports, s as pageForm_d_exports, u as tableStruct_d_exports, v as tagComp_d_exports, w as map_d_exports, x as text_d_exports, y as tag_d_exports, z as button_d_exports } from "./index-D7J0bM92.js";
|
|
2
2
|
export { affix_d_exports as RwAffix, alert_d_exports as RwAlert, autocomplete_d_exports as RwAutocomplete, avatar_d_exports as RwAvatar, button_d_exports as RwButton, buttonGroup_d_exports as RwButtonGroup, dialog_d_exports as RwDialog, divider_d_exports as RwDivider, dropdown_d_exports as RwDropdown, RwForm, RwFormItems, image_d_exports as RwImage, input_d_exports as RwInput, inputNumber_d_exports as RwInputNumber, inputTag_d_exports as RwInputTag, mTreeSTable_d_exports as RwMTreeSTable, map_d_exports as RwMap, mergeInput_d_exports as RwMergeInput, mergeSelect_d_exports as RwMergeSelect, pageBase_d_exports as RwPageBase, pageForm_d_exports as RwPageForm, pageTable_d_exports as RwPageTable, pagination_d_exports as RwPagination, popconfirm_d_exports as RwPopconfirm, progress_d_exports as RwProgress, radio_d_exports as RwRadio, search_d_exports as RwSearch, segmented_d_exports as RwSegmented, select_d_exports as RwSelect, slider_d_exports as RwSlider, switch_d_exports as RwSwitch, tabPane_d_exports as RwTabPane, table_d_exports as RwTable, tabs_d_exports as RwTabs, tag_d_exports as RwTag, tagComp_d_exports as RwTagComp, text_d_exports as RwText, tree_d_exports as RwTree, upload_d_exports as RwUpload, pageStruct_d_exports as pageStruct, tableStruct_d_exports as tableStruct };
|
package/dist/controls.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as mergeInput_exports, B as popconfirm_exports, C as upload_exports, D as mergeSelect_exports, E as slider_exports, F as input_exports, G as alert_exports, I as divider_exports, K as affix_exports, L as dialog_exports, M as inputNumber_exports, N as inputTag_exports, O as image_exports, P as select_exports, R as buttonGroup_exports, S as tree_exports, T as map_exports, U as autocomplete_exports, V as button_exports, W as avatar_exports, _ as segmented_exports, a as pageTable_exports, b as tag_exports, d as pageBase_exports, f as RwForm, g as RwFormItems, h as tabPane_exports, i as mTreeSTable_exports, j as radio_exports, k as switch_exports, l as pageStruct_exports, m as tabs_exports, n as search_exports, r as progress_exports, s as pageForm_exports, u as tableStruct_exports, v as table_exports, w as pagination_exports, x as text_exports, y as tagComp_exports, z as dropdown_exports } from "./controls-
|
|
1
|
+
import { A as mergeInput_exports, B as popconfirm_exports, C as upload_exports, D as mergeSelect_exports, E as slider_exports, F as input_exports, G as alert_exports, I as divider_exports, K as affix_exports, L as dialog_exports, M as inputNumber_exports, N as inputTag_exports, O as image_exports, P as select_exports, R as buttonGroup_exports, S as tree_exports, T as map_exports, U as autocomplete_exports, V as button_exports, W as avatar_exports, _ as segmented_exports, a as pageTable_exports, b as tag_exports, d as pageBase_exports, f as RwForm, g as RwFormItems, h as tabPane_exports, i as mTreeSTable_exports, j as radio_exports, k as switch_exports, l as pageStruct_exports, m as tabs_exports, n as search_exports, r as progress_exports, s as pageForm_exports, u as tableStruct_exports, v as table_exports, w as pagination_exports, x as text_exports, y as tagComp_exports, z as dropdown_exports } from "./controls-DChLTdrs.js";
|
|
2
2
|
export { affix_exports as RwAffix, alert_exports as RwAlert, autocomplete_exports as RwAutocomplete, avatar_exports as RwAvatar, button_exports as RwButton, buttonGroup_exports as RwButtonGroup, dialog_exports as RwDialog, divider_exports as RwDivider, dropdown_exports as RwDropdown, RwForm, RwFormItems, image_exports as RwImage, input_exports as RwInput, inputNumber_exports as RwInputNumber, inputTag_exports as RwInputTag, mTreeSTable_exports as RwMTreeSTable, map_exports as RwMap, mergeInput_exports as RwMergeInput, mergeSelect_exports as RwMergeSelect, pageBase_exports as RwPageBase, pageForm_exports as RwPageForm, pageTable_exports as RwPageTable, pagination_exports as RwPagination, popconfirm_exports as RwPopconfirm, progress_exports as RwProgress, radio_exports as RwRadio, search_exports as RwSearch, segmented_exports as RwSegmented, select_exports as RwSelect, slider_exports as RwSlider, switch_exports as RwSwitch, tabPane_exports as RwTabPane, table_exports as RwTable, tabs_exports as RwTabs, tag_exports as RwTag, tagComp_exports as RwTagComp, text_exports as RwText, tree_exports as RwTree, upload_exports as RwUpload, pageStruct_exports as pageStruct, tableStruct_exports as tableStruct };
|
|
@@ -509,7 +509,7 @@ declare const __VLS_base$14: _$vue.DefineComponent<__VLS_Props$23, {
|
|
|
509
509
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
510
510
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
511
511
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
512
|
-
}>, "
|
|
512
|
+
}>, "clear" | "input" | "type" | "modelValue" | "disabled" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
|
|
513
513
|
input: HTMLInputElement | undefined;
|
|
514
514
|
textarea: HTMLTextAreaElement | undefined;
|
|
515
515
|
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
@@ -691,7 +691,7 @@ declare const __VLS_base$14: _$vue.DefineComponent<__VLS_Props$23, {
|
|
|
691
691
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
692
692
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
693
693
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
694
|
-
}>, "
|
|
694
|
+
}>, "clear" | "input" | "type" | "modelValue" | "disabled" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
|
|
695
695
|
input: HTMLInputElement | undefined;
|
|
696
696
|
textarea: HTMLTextAreaElement | undefined;
|
|
697
697
|
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
@@ -1188,9 +1188,8 @@ declare const __VLS_export$17: _$vue.DefineComponent<Props$1, {}, {}, {}, {}, _$
|
|
|
1188
1188
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1189
1189
|
declare const _default$13: typeof __VLS_export$17;
|
|
1190
1190
|
declare namespace upload_d_exports {
|
|
1191
|
-
export { ApiResponse, Awaitable, FileData, FileTypeT, ImageTypeT, InitFileParams, MediaTypeT, Mutable, OptionT$21 as OptionT, Template$15 as Template, UploadFile$1 as UploadFile, UploadFiles, UploadTypeT, UploadUserFile, UserTypeT, getFileList, getUploadAccept, handleUploadError, init$20 as init, initFile, isEmpty, removeUploadedFile,
|
|
1191
|
+
export { ApiResponse, Awaitable, FileData, FileTypeT, ImageTypeT, InitFileParams, MediaTypeT, Mutable, OptionT$21 as OptionT, Template$15 as Template, UploadFile$1 as UploadFile, UploadFiles, UploadTypeT, UploadUserFile, UserTypeT, getFileList, getUploadAccept, handleUploadError, init$20 as init, initFile, isEmpty, removeUploadedFile, showUploadExceedMessage, validateUploadLimit };
|
|
1192
1192
|
}
|
|
1193
|
-
declare function setBaseUrl(apiBaseUrl: string): void;
|
|
1194
1193
|
declare const Template$15: SFCWithInstall<typeof _default$13>;
|
|
1195
1194
|
type ImageTypeT = 'png' | 'jpg' | 'jpeg' | 'gif' | 'webp';
|
|
1196
1195
|
type FileTypeT = 'doc' | 'docx' | 'xls' | 'xlsx' | 'ppt' | 'pptx' | 'pdf' | 'txt' | 'zip' | 'rar';
|
|
@@ -1236,10 +1235,10 @@ declare function init$20(moduleName: string, name: string, options?: Partial<Opt
|
|
|
1236
1235
|
declare const validateUploadLimit: (currentCount: number, limit: number) => boolean;
|
|
1237
1236
|
declare const showUploadExceedMessage: (limit: number) => void;
|
|
1238
1237
|
declare const getUploadAccept: (fileType: MediaTypeT) => string;
|
|
1239
|
-
declare const removeUploadedFile: (fileId: string | number, userType
|
|
1238
|
+
declare const removeUploadedFile: (fileId: string | number, userType: UserTypeT | undefined, baseUrl: string) => Promise<boolean>;
|
|
1240
1239
|
declare const handleUploadError: (error: Error, fileName: string) => void;
|
|
1241
|
-
declare const initFile: (data: InitFileParams) => Promise<ApiResponse<FileData[]>>;
|
|
1242
|
-
declare const getFileList: (data: {
|
|
1240
|
+
declare const initFile: (data: InitFileParams, baseUrl: string) => Promise<ApiResponse<FileData[]>>;
|
|
1241
|
+
declare const getFileList: (baseUrl: string, data: {
|
|
1243
1242
|
FileType: MediaTypeT;
|
|
1244
1243
|
FileModel: number;
|
|
1245
1244
|
searchVal: string;
|
|
@@ -511,7 +511,7 @@ declare const __VLS_base$14: _$vue.DefineComponent<__VLS_Props$23, {
|
|
|
511
511
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
512
512
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
513
513
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
514
|
-
}>, "
|
|
514
|
+
}>, "clear" | "input" | "type" | "modelValue" | "disabled" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
|
|
515
515
|
input: HTMLInputElement | undefined;
|
|
516
516
|
textarea: HTMLTextAreaElement | undefined;
|
|
517
517
|
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
@@ -693,7 +693,7 @@ declare const __VLS_base$14: _$vue.DefineComponent<__VLS_Props$23, {
|
|
|
693
693
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
694
694
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
695
695
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
696
|
-
}>, "
|
|
696
|
+
}>, "clear" | "input" | "type" | "modelValue" | "disabled" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
|
|
697
697
|
input: HTMLInputElement | undefined;
|
|
698
698
|
textarea: HTMLTextAreaElement | undefined;
|
|
699
699
|
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
@@ -1190,9 +1190,8 @@ declare const __VLS_export$17: _$vue.DefineComponent<Props$1, {}, {}, {}, {}, _$
|
|
|
1190
1190
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1191
1191
|
declare const _default$13: typeof __VLS_export$17;
|
|
1192
1192
|
declare namespace upload_d_exports {
|
|
1193
|
-
export { ApiResponse, Awaitable, FileData, FileTypeT, ImageTypeT, InitFileParams, MediaTypeT, Mutable, OptionT$21 as OptionT, Template$15 as Template, UploadFile$1 as UploadFile, UploadFiles, UploadTypeT, UploadUserFile, UserTypeT, getFileList, getUploadAccept, handleUploadError, init$20 as init, initFile, isEmpty, removeUploadedFile,
|
|
1193
|
+
export { ApiResponse, Awaitable, FileData, FileTypeT, ImageTypeT, InitFileParams, MediaTypeT, Mutable, OptionT$21 as OptionT, Template$15 as Template, UploadFile$1 as UploadFile, UploadFiles, UploadTypeT, UploadUserFile, UserTypeT, getFileList, getUploadAccept, handleUploadError, init$20 as init, initFile, isEmpty, removeUploadedFile, showUploadExceedMessage, validateUploadLimit };
|
|
1194
1194
|
}
|
|
1195
|
-
declare function setBaseUrl(apiBaseUrl: string): void;
|
|
1196
1195
|
declare const Template$15: SFCWithInstall<typeof _default$13>;
|
|
1197
1196
|
type ImageTypeT = 'png' | 'jpg' | 'jpeg' | 'gif' | 'webp';
|
|
1198
1197
|
type FileTypeT = 'doc' | 'docx' | 'xls' | 'xlsx' | 'ppt' | 'pptx' | 'pdf' | 'txt' | 'zip' | 'rar';
|
|
@@ -1238,10 +1237,10 @@ declare function init$20(moduleName: string, name: string, options?: Partial<Opt
|
|
|
1238
1237
|
declare const validateUploadLimit: (currentCount: number, limit: number) => boolean;
|
|
1239
1238
|
declare const showUploadExceedMessage: (limit: number) => void;
|
|
1240
1239
|
declare const getUploadAccept: (fileType: MediaTypeT) => string;
|
|
1241
|
-
declare const removeUploadedFile: (fileId: string | number, userType
|
|
1240
|
+
declare const removeUploadedFile: (fileId: string | number, userType: UserTypeT | undefined, baseUrl: string) => Promise<boolean>;
|
|
1242
1241
|
declare const handleUploadError: (error: Error, fileName: string) => void;
|
|
1243
|
-
declare const initFile: (data: InitFileParams) => Promise<ApiResponse<FileData[]>>;
|
|
1244
|
-
declare const getFileList: (data: {
|
|
1242
|
+
declare const initFile: (data: InitFileParams, baseUrl: string) => Promise<ApiResponse<FileData[]>>;
|
|
1243
|
+
declare const getFileList: (baseUrl: string, data: {
|
|
1245
1244
|
FileType: MediaTypeT;
|
|
1246
1245
|
FileModel: number;
|
|
1247
1246
|
searchVal: string;
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_locale = require("./locale-BTmar3YP.cjs");
|
|
6
|
-
const require_controls = require("./controls-
|
|
6
|
+
const require_controls = require("./controls-Co4b80fK.cjs");
|
|
7
7
|
require("element-plus/dist/index.css");
|
|
8
8
|
require("element-plus/theme-chalk/dark/css-vars.css");
|
|
9
9
|
let element_plus = require("element-plus");
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as FrameworkOptions } from "./index-BPQVuYZD.js";
|
|
2
|
-
import { t as index_d_exports } from "./index-
|
|
2
|
+
import { t as index_d_exports } from "./index-D7J0bM92.js";
|
|
3
3
|
import * as _$vue from "vue";
|
|
4
4
|
export * from "element-plus";
|
|
5
5
|
export * from "pinia";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as tw_default, f as en_default, p as cn_default } from "./locale-BscyDzS3.js";
|
|
2
|
-
import { t as controls_exports } from "./controls-
|
|
2
|
+
import { t as controls_exports } from "./controls-DChLTdrs.js";
|
|
3
3
|
import "element-plus/dist/index.css";
|
|
4
4
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
5
5
|
import ElementPlus from "element-plus";
|
package/dist/pages.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_locale = require("./locale-BTmar3YP.cjs");
|
|
3
3
|
const require_utils = require("./utils-CJUw1Ktb.cjs");
|
|
4
|
-
const require_controls = require("./controls-
|
|
4
|
+
const require_controls = require("./controls-Co4b80fK.cjs");
|
|
5
5
|
const require_stores = require("./stores.cjs");
|
|
6
6
|
const require_hooks = require("./hooks.cjs");
|
|
7
7
|
let element_plus = require("element-plus");
|
package/dist/pages.d.cts
CHANGED
package/dist/pages.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nn as SFCWithInstall } from "./index-DjM1ozxC.js";
|
|
2
|
-
import { c as OptionT$2 } from "./index-
|
|
2
|
+
import { c as OptionT$2 } from "./index-D7J0bM92.js";
|
|
3
3
|
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/packages/pages/localSetting/localSetting.vue.d.ts
|
package/dist/pages.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-pbuEa-1d.js";
|
|
2
2
|
import { P as withInstall, u as useAppConfigStore } from "./utils-Cx01ubSA.js";
|
|
3
3
|
import { a as localeOptions, l as setLanguage, o as mergeLocaleMessage, u as t } from "./locale-BscyDzS3.js";
|
|
4
|
-
import { H as _plugin_vue_export_helper_default, c as init$2, g as RwFormItems, o as init, p as init$1, s as pageForm_exports } from "./controls-
|
|
4
|
+
import { H as _plugin_vue_export_helper_default, c as init$2, g as RwFormItems, o as init, p as init$1, s as pageForm_exports } from "./controls-DChLTdrs.js";
|
|
5
5
|
import { useLocalSettingStore } from "./stores.js";
|
|
6
6
|
import { useMouse } from "./hooks.js";
|
|
7
7
|
import { ElAlert, ElMessage } from "element-plus";
|
package/package.json
CHANGED