duck-vue-components 0.2.91 → 0.2.92

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.
@@ -3712,6 +3712,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
3712
3712
  emits: ["update:value", "update:dialogShow"],
3713
3713
  setup(__props) {
3714
3714
  const config = (0, vue.inject)("frameworkConfig");
3715
+ console.log("dialog:Upload component received config:", config);
3715
3716
  const props = __props;
3716
3717
  const fieldValue = (0, vue.useModel)(__props, "value");
3717
3718
  const dialogShow = (0, vue.useModel)(__props, "dialogShow");
@@ -4654,6 +4655,8 @@ var upload_exports = /* @__PURE__ */ require_locale.__exportAll({
4654
4655
  showUploadExceedMessage: () => showUploadExceedMessage,
4655
4656
  validateUploadLimit: () => validateUploadLimit
4656
4657
  });
4658
+ const config = (0, vue.inject)("frameworkConfig");
4659
+ console.log("Upload component received config:", config);
4657
4660
  const Template$15 = require_utils.withInstall(upload_default);
4658
4661
  function init$18(moduleName, name, options = {}) {
4659
4662
  return {
@@ -4687,7 +4690,7 @@ const getUploadAccept = (fileType) => {
4687
4690
  const removeUploadedFile = async (fileId, userType = "0") => {
4688
4691
  try {
4689
4692
  const endpoint = userType === "0" ? "?p=files&a=delUserFile" : "?p=files&a=delSiteFile";
4690
- if ((await require_utils.http.post(endpoint, { FileID: fileId }))?.status === 0) {
4693
+ if ((await require_utils.http.post(config.apiBaseUrl + endpoint, { FileID: fileId }))?.status === 0) {
4691
4694
  element_plus.ElMessage.success("成功删除上传的文件");
4692
4695
  return true;
4693
4696
  } else {
@@ -4705,10 +4708,10 @@ const handleUploadError = (error, fileName) => {
4705
4708
  element_plus.ElMessage.error(`文件 ${fileName} 上传失败(${message})`);
4706
4709
  };
4707
4710
  const initFile = async (data) => {
4708
- return require_utils.http.post("?p=Files&a=getInitFile&apiName=Files/getInitFile", data);
4711
+ return require_utils.http.post(config.apiBaseUrl + "?p=Files&a=getInitFile&apiName=Files/getInitFile", data);
4709
4712
  };
4710
4713
  const getFileList = async (data) => {
4711
- return require_utils.http.post("?p=Files&a=getFileList", data);
4714
+ return require_utils.http.post(config.apiBaseUrl + "?p=Files&a=getFileList", data);
4712
4715
  };
4713
4716
  const isEmpty = (value) => {
4714
4717
  if (value == null) return true;
@@ -3710,6 +3710,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
3710
3710
  emits: ["update:value", "update:dialogShow"],
3711
3711
  setup(__props) {
3712
3712
  const config = inject("frameworkConfig");
3713
+ console.log("dialog:Upload component received config:", config);
3713
3714
  const props = __props;
3714
3715
  const fieldValue = useModel(__props, "value");
3715
3716
  const dialogShow = useModel(__props, "dialogShow");
@@ -4652,6 +4653,8 @@ var upload_exports = /* @__PURE__ */ __exportAll({
4652
4653
  showUploadExceedMessage: () => showUploadExceedMessage,
4653
4654
  validateUploadLimit: () => validateUploadLimit
4654
4655
  });
4656
+ const config = inject("frameworkConfig");
4657
+ console.log("Upload component received config:", config);
4655
4658
  const Template$15 = withInstall(upload_default);
4656
4659
  function init$18(moduleName, name, options = {}) {
4657
4660
  return {
@@ -4685,7 +4688,7 @@ const getUploadAccept = (fileType) => {
4685
4688
  const removeUploadedFile = async (fileId, userType = "0") => {
4686
4689
  try {
4687
4690
  const endpoint = userType === "0" ? "?p=files&a=delUserFile" : "?p=files&a=delSiteFile";
4688
- if ((await http.post(endpoint, { FileID: fileId }))?.status === 0) {
4691
+ if ((await http.post(config.apiBaseUrl + endpoint, { FileID: fileId }))?.status === 0) {
4689
4692
  ElMessage.success("成功删除上传的文件");
4690
4693
  return true;
4691
4694
  } else {
@@ -4703,10 +4706,10 @@ const handleUploadError = (error, fileName) => {
4703
4706
  ElMessage.error(`文件 ${fileName} 上传失败(${message})`);
4704
4707
  };
4705
4708
  const initFile = async (data) => {
4706
- return http.post("?p=Files&a=getInitFile&apiName=Files/getInitFile", data);
4709
+ return http.post(config.apiBaseUrl + "?p=Files&a=getInitFile&apiName=Files/getInitFile", data);
4707
4710
  };
4708
4711
  const getFileList = async (data) => {
4709
- return http.post("?p=Files&a=getFileList", data);
4712
+ return http.post(config.apiBaseUrl + "?p=Files&a=getFileList", data);
4710
4713
  };
4711
4714
  const isEmpty = (value) => {
4712
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-DG8fwV0k.cjs");
2
+ const require_controls = require("./controls-DkJ6remv.cjs");
3
3
  Object.defineProperty(exports, "RwAffix", {
4
4
  enumerable: true,
5
5
  get: function() {
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-Dxh5hv4E.js";
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-YLRGNQue.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 };
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-DG8fwV0k.cjs");
6
+ const require_controls = require("./controls-DkJ6remv.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.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-Dxh5hv4E.js";
2
+ import { t as controls_exports } from "./controls-YLRGNQue.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-DG8fwV0k.cjs");
4
+ const require_controls = require("./controls-DkJ6remv.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.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-Dxh5hv4E.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-YLRGNQue.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duck-vue-components",
3
3
  "type": "module",
4
- "version": "0.2.91",
4
+ "version": "0.2.92",
5
5
  "description": "A Vue 3 component library with controls, utils, stores and more.",
6
6
  "author": "Your Name <your.email@mail.com>",
7
7
  "license": "MIT",