@ebiz/designer-components 0.0.23 → 0.0.25
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/index.mjs
CHANGED
@@ -114463,6 +114463,18 @@ dm.interceptors.response.use(
|
|
114463
114463
|
}
|
114464
114464
|
);
|
114465
114465
|
let $D = {
|
114466
|
+
0: "/appdata/select",
|
114467
|
+
1: "/appdata/detailData",
|
114468
|
+
2: "/appdata/plugin",
|
114469
|
+
3: "/appdata/addData",
|
114470
|
+
4: "/appdata/addDatas",
|
114471
|
+
5: "/appdata/updateData",
|
114472
|
+
6: "/appdata/updateDatas",
|
114473
|
+
7: "/appdata/delData",
|
114474
|
+
8: "/appdata/delDatas",
|
114475
|
+
9: "/api/appdata/link/select",
|
114476
|
+
10: "/api/file/upload",
|
114477
|
+
// 文件上传API
|
114466
114478
|
MULTIPLE_DATA_SEARCH: "/appdata/select",
|
114467
114479
|
DETAILS_DATA: "/appdata/detailData",
|
114468
114480
|
INTERFACE_PLUGIN: "/appdata/plugin",
|
@@ -114488,7 +114500,7 @@ const Pa = {
|
|
114488
114500
|
* @example
|
114489
114501
|
*/
|
114490
114502
|
fetch: (e = {}, t = {}, n = "") => {
|
114491
|
-
n || (n = $D[t.apiType]);
|
114503
|
+
n || (n = $D[t.apiType + ""]);
|
114492
114504
|
const { apiId: r = "", ...a } = t, o = {
|
114493
114505
|
// 默认列表查询配置
|
114494
114506
|
headers: {
|
@@ -116763,7 +116775,7 @@ const Pa = {
|
|
116763
116775
|
}, h = (g, w) => {
|
116764
116776
|
l("blur", g, w);
|
116765
116777
|
}, m = (g, w) => {
|
116766
|
-
l("update:modelValue", g), l("change", g, w);
|
116778
|
+
l("update:modelValue", g), l("change", g, w, u.value);
|
116767
116779
|
};
|
116768
116780
|
return yt(async () => {
|
116769
116781
|
if (o.value.apiId && o.value.apiType >= 0) {
|
@@ -116823,7 +116835,7 @@ const Pa = {
|
|
116823
116835
|
} : void 0
|
116824
116836
|
]), 1032, ["modelValue", "options", "loading", "multiple", "placeholder", "clearable", "disabled", "size", "empty", "popupProps"]));
|
116825
116837
|
}
|
116826
|
-
}), k2t = /* @__PURE__ */ Ot(Qbt, [["__scopeId", "data-v-
|
116838
|
+
}), k2t = /* @__PURE__ */ Ot(Qbt, [["__scopeId", "data-v-15c3bdd6"]]);
|
116827
116839
|
function yg(e) {
|
116828
116840
|
return Object.prototype.toString.call(e) === "[object Array]";
|
116829
116841
|
}
|
@@ -127088,7 +127100,7 @@ const tkt = /* @__PURE__ */ Ot(pCt, [["render", hCt], ["__scopeId", "data-v-d22a
|
|
127088
127100
|
get: () => n.modelValue,
|
127089
127101
|
set: (d) => r("update:modelValue", d)
|
127090
127102
|
}), s = (d, f) => {
|
127091
|
-
r("change", d, f);
|
127103
|
+
console.log(d, f.node.data), r("change", d, f);
|
127092
127104
|
}, u = (d, f = null) => d.filter((v) => v.manager_dept === f).map((v) => {
|
127093
127105
|
const p = u(d, v.id);
|
127094
127106
|
return {
|
package/package.json
CHANGED
@@ -129,6 +129,18 @@ axiosInstance.interceptors.response.use(
|
|
129
129
|
)
|
130
130
|
|
131
131
|
let apiMap = {
|
132
|
+
"0": '/appdata/select',
|
133
|
+
"1": '/appdata/detailData',
|
134
|
+
"2": '/appdata/plugin',
|
135
|
+
"3": '/appdata/addData',
|
136
|
+
"4": '/appdata/addDatas',
|
137
|
+
"5": '/appdata/updateData',
|
138
|
+
"6": '/appdata/updateDatas',
|
139
|
+
"7": '/appdata/delData',
|
140
|
+
"8": '/appdata/delDatas',
|
141
|
+
"9": '/api/appdata/link/select',
|
142
|
+
"10": '/api/file/upload', // 文件上传API
|
143
|
+
|
132
144
|
MULTIPLE_DATA_SEARCH: '/appdata/select',
|
133
145
|
DETAILS_DATA: '/appdata/detailData',
|
134
146
|
INTERFACE_PLUGIN: '/appdata/plugin',
|
@@ -158,7 +170,7 @@ const dataService = {
|
|
158
170
|
*/
|
159
171
|
fetch: (params = {}, apiConfig = {}, url = '') => {
|
160
172
|
if (!url) {
|
161
|
-
url = apiMap[apiConfig.apiType]
|
173
|
+
url = apiMap[apiConfig.apiType+'']
|
162
174
|
}
|
163
175
|
|
164
176
|
const { apiId = '', ...restConfig } = apiConfig
|
@@ -194,7 +194,7 @@ const handleBlur = (value, context) => {
|
|
194
194
|
// 值变化处理函数
|
195
195
|
const handleChange = (value, context) => {
|
196
196
|
emit('update:modelValue', value);
|
197
|
-
emit('change', value, context);
|
197
|
+
emit('change', value, context, options.value);
|
198
198
|
};
|
199
199
|
|
200
200
|
// 组件挂载时,如果有默认值则加载对应的选项
|