@fecp/designer 5.5.8 → 5.5.9

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.
Files changed (28) hide show
  1. package/es/_virtual/_commonjsHelpers.mjs +0 -27
  2. package/es/designer/package.json.mjs +1 -1
  3. package/es/designer/src/packages/dataLinkage/index.vue.mjs +0 -1
  4. package/es/designer/src/packages/dataSource/dataSource.vue.mjs +7 -6
  5. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  6. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +0 -1
  7. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  8. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  9. package/es/designer/src/packages/table/headerBtn.vue.mjs +0 -1
  10. package/es/designer/src/packages/utils/datasource.mjs +1 -2
  11. package/es/designer.css +79 -77
  12. package/es/node_modules/element-plus/es/utils/vue/icon.mjs +1 -1
  13. package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +1 -1
  14. package/es/packages/vue/src/components/table/TableFilter.vue.mjs +2 -2
  15. package/lib/_virtual/_commonjsHelpers.js +0 -27
  16. package/lib/designer/package.json.js +1 -1
  17. package/lib/designer/src/packages/dataLinkage/index.vue.js +0 -1
  18. package/lib/designer/src/packages/dataSource/dataSource.vue.js +6 -5
  19. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  20. package/lib/designer/src/packages/dialogGlobal/index.vue.js +0 -1
  21. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  22. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  23. package/lib/designer/src/packages/table/headerBtn.vue.js +0 -1
  24. package/lib/designer/src/packages/utils/datasource.js +6 -7
  25. package/lib/designer.css +79 -77
  26. package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +1 -1
  27. package/lib/packages/vue/src/components/table/TableFilter.vue.js +2 -2
  28. package/package.json +1 -1
@@ -52,7 +52,7 @@ const _sfc_main = {
52
52
  setup(__props, { expose: __expose, emit: __emit }) {
53
53
  var _a;
54
54
  useCssVars((_ctx) => ({
55
- "6f90a0ef": `${config.value.collapseRows * 90}px`
55
+ "04738910": `${config.value.collapseRows * 90}px`
56
56
  }));
57
57
  const props = __props;
58
58
  const emit = __emit;
@@ -298,7 +298,7 @@ const _sfc_main = {
298
298
  };
299
299
  }
300
300
  };
301
- const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8af059f7"]]);
301
+ const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9c6e8c47"]]);
302
302
  export {
303
303
  TableFilter as default
304
304
  };
@@ -1,33 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
4
3
  function getDefaultExportFromCjs(x) {
5
4
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
6
5
  }
7
- function getAugmentedNamespace(n) {
8
- if (n.__esModule) return n;
9
- var f = n.default;
10
- if (typeof f == "function") {
11
- var a = function a2() {
12
- if (this instanceof a2) {
13
- return Reflect.construct(f, arguments, this.constructor);
14
- }
15
- return f.apply(this, arguments);
16
- };
17
- a.prototype = f.prototype;
18
- } else a = {};
19
- Object.defineProperty(a, "__esModule", { value: true });
20
- Object.keys(n).forEach(function(k) {
21
- var d = Object.getOwnPropertyDescriptor(n, k);
22
- Object.defineProperty(a, k, d.get ? d : {
23
- enumerable: true,
24
- get: function() {
25
- return n[k];
26
- }
27
- });
28
- });
29
- return a;
30
- }
31
- exports.commonjsGlobal = commonjsGlobal;
32
- exports.getAugmentedNamespace = getAugmentedNamespace;
33
6
  exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.8";
3
+ const version = "5.5.9";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -33,7 +33,6 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
33
33
  ;/* empty css */
34
34
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
35
35
  ;/* empty css */
36
- require("../../axios/config.js");
37
36
  ;/* empty css */
38
37
  ;/* empty css */
39
38
  ;/* empty css */
@@ -22,7 +22,6 @@ const ParamsConfig = require("../../components/ParamsConfig.vue2.js");
22
22
  require("../../store/index.js");
23
23
  const vue3JsonViewer = require("../../../../node_modules/vue3-json-viewer/dist/vue3-json-viewer.js");
24
24
  ;/* empty css */
25
- const index$b = require("../../axios/index.js");
26
25
  const env = require("../../utils/env.js");
27
26
  ;/* empty css */
28
27
  ;/* empty css */
@@ -66,6 +65,8 @@ const _sfc_main = {
66
65
  requestConfigData: Object
67
66
  },
68
67
  setup(__props) {
68
+ const currentInstance = vue.getCurrentInstance();
69
+ const ctx = currentInstance.proxy;
69
70
  const props = __props;
70
71
  const activeName = vue.ref("requestConfig");
71
72
  const loading = vue.ref(false);
@@ -113,12 +114,12 @@ const _sfc_main = {
113
114
  if (requestConfig.method === "get") {
114
115
  const queryString = new URLSearchParams(params).toString();
115
116
  const url = queryString ? `${fullUrl}?${queryString}` : fullUrl;
116
- res = await index$b.get(url, loading.value);
117
+ res = await ctx.$http.get(url, loading.value);
117
118
  } else {
118
119
  if (requestConfig.contentType === "json") {
119
- res = await index$b.post(fullUrl, params, loading.value);
120
+ res = await ctx.$http.post(fullUrl, params, loading.value);
120
121
  } else {
121
- res = await index$b.postForm(fullUrl, params, loading.value);
122
+ res = await ctx.$http.postForm(fullUrl, params, loading.value);
122
123
  }
123
124
  }
124
125
  responseData.value = {
@@ -382,5 +383,5 @@ const _sfc_main = {
382
383
  };
383
384
  }
384
385
  };
385
- const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b94fbb2f"]]);
386
+ const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5c11127e"]]);
386
387
  exports.default = DataSource;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue2.js");
3
+ const index = require("./index.vue.js");
4
4
  const vue = require("vue");
5
5
  function useDialogDialog() {
6
6
  const dialogDialogVisible = vue.ref(false);
@@ -94,7 +94,6 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
94
94
  ;/* empty css */
95
95
  ;/* empty css */
96
96
  require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
97
- require("../../axios/config.js");
98
97
  ;/* empty css */
99
98
  ;/* empty css */
100
99
  ;/* empty css */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue2.js");
3
+ const index = require("./index.vue.js");
4
4
  const vue = require("vue");
5
5
  function useDialogGlobalDialog() {
6
6
  const dialogGlobalDialogVisible = vue.ref(false);
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
54
54
  require("../../../components/TemplateSelector.vue.js");
55
55
  require("../../table/default.js");
56
56
  ;/* empty css */
57
- ;/* empty css */
58
- ;/* empty css */
57
+ ;/* empty css */
58
+ ;/* empty css */
59
59
  require("../../../store/index.js");
60
60
  ;/* empty css */
61
61
  const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
@@ -93,7 +93,6 @@ const useAdvancedFilterDialog = require("../advancedFilter/useAdvancedFilterDial
93
93
  ;/* empty css */
94
94
  ;/* empty css */
95
95
  require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
96
- require("../../axios/config.js");
97
96
  ;/* empty css */
98
97
  ;/* empty css */
99
98
  ;/* empty css */
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const config = require("../../axios/config.js");
4
3
  const vue = require("vue");
5
4
  require("../../../../node_modules/element-plus/es/index.js");
6
5
  ;/* empty css */
@@ -9,7 +8,7 @@ require("../../../../node_modules/element-plus/es/index.js");
9
8
  const index = require("../../../../node_modules/element-plus/es/components/message/index.js");
10
9
  class DataSourceManager {
11
10
  constructor(options = {}) {
12
- this.http = config.default;
11
+ this.http = options.http;
13
12
  this.params = options.params || {};
14
13
  this.dataSources = options.dataSources || [];
15
14
  this.currentDataSourceId = options.currentDataSourceId;
@@ -78,24 +77,24 @@ class DataSourceManager {
78
77
  getRequestConfig() {
79
78
  const currentDs = this.getCurrentDataSource();
80
79
  if (!currentDs) return {};
81
- const config2 = {
80
+ const config = {
82
81
  url: `/${currentDs.serverName}${currentDs.url}`,
83
82
  method: currentDs.method
84
83
  };
85
84
  if (currentDs.contentType === "formData") {
86
- config2.headers = {
85
+ config.headers = {
87
86
  "Content-Type": "multipart/form-data"
88
87
  };
89
88
  } else if (currentDs.contentType === "formUrlencoded") {
90
- config2.headers = {
89
+ config.headers = {
91
90
  "Content-Type": "application/x-www-form-urlencoded"
92
91
  };
93
92
  } else {
94
- config2.headers = {
93
+ config.headers = {
95
94
  "Content-Type": "application/json"
96
95
  };
97
96
  }
98
- return config2;
97
+ return config;
99
98
  }
100
99
  /**
101
100
  * 发起请求