keli-ui 0.0.19 → 0.0.20
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/keli-ui.js +31 -19
- package/dist/keli-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/keli-ui.js
CHANGED
|
@@ -38722,13 +38722,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
38722
38722
|
if (node.data) {
|
|
38723
38723
|
componentValueMap.nodeValue = node.data.value;
|
|
38724
38724
|
}
|
|
38725
|
-
const
|
|
38725
|
+
const opt = {
|
|
38726
38726
|
method: props.detail.optionHttpMethod,
|
|
38727
38727
|
headers: {
|
|
38728
38728
|
"Content-Type": "application/json"
|
|
38729
|
-
}
|
|
38730
|
-
|
|
38731
|
-
|
|
38729
|
+
}
|
|
38730
|
+
};
|
|
38731
|
+
if (!["get", "GET", "post", "POST"].includes(props.detail.optionHttpMethod)) {
|
|
38732
|
+
opt.body = JSON.stringify({ ...props.detail.optionHttpParams, ...componentValueMap });
|
|
38733
|
+
}
|
|
38734
|
+
const response = await fetch(props.detail.optionHttpUrl, opt);
|
|
38732
38735
|
let result = {
|
|
38733
38736
|
code: -5,
|
|
38734
38737
|
msg: "请求失败",
|
|
@@ -38815,17 +38818,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
38815
38818
|
return;
|
|
38816
38819
|
options2.loading = true;
|
|
38817
38820
|
oldComponentValueMap = componentValueMap;
|
|
38818
|
-
const
|
|
38821
|
+
const opt = {
|
|
38819
38822
|
method: props.detail.optionHttpMethod,
|
|
38820
38823
|
headers: {
|
|
38821
38824
|
"Content-Type": "application/json"
|
|
38822
|
-
}
|
|
38823
|
-
|
|
38825
|
+
}
|
|
38826
|
+
};
|
|
38827
|
+
if (!["get", "GET", "post", "POST"].includes(props.detail.optionHttpMethod)) {
|
|
38828
|
+
opt.body = JSON.stringify({
|
|
38824
38829
|
...props.detail.optionHttpParams,
|
|
38825
38830
|
...componentValueMap,
|
|
38826
38831
|
prop: props.detail.field
|
|
38827
|
-
})
|
|
38828
|
-
}
|
|
38832
|
+
});
|
|
38833
|
+
}
|
|
38834
|
+
const response = await fetch(props.detail.optionHttpUrl, opt);
|
|
38829
38835
|
let result = {
|
|
38830
38836
|
code: -5,
|
|
38831
38837
|
msg: "请求失败",
|
|
@@ -89742,17 +89748,20 @@ const useSelectAsync = (params) => {
|
|
|
89742
89748
|
}
|
|
89743
89749
|
loading.value = true;
|
|
89744
89750
|
oldComponentValueMap = componentValueMap;
|
|
89745
|
-
const
|
|
89751
|
+
const opt = {
|
|
89746
89752
|
method: props.detail.optionHttpMethod,
|
|
89747
89753
|
headers: {
|
|
89748
89754
|
"Content-Type": "application/json"
|
|
89749
|
-
}
|
|
89750
|
-
|
|
89755
|
+
}
|
|
89756
|
+
};
|
|
89757
|
+
if (!["get", "GET", "post", "POST"].includes(props.detail.optionHttpMethod)) {
|
|
89758
|
+
opt.body = JSON.stringify({
|
|
89751
89759
|
prop: props.detail.field,
|
|
89752
89760
|
...props.detail.optionHttpParams,
|
|
89753
89761
|
...componentValueMap
|
|
89754
|
-
})
|
|
89755
|
-
}
|
|
89762
|
+
});
|
|
89763
|
+
}
|
|
89764
|
+
const response = await fetch(props.detail.optionHttpUrl, opt);
|
|
89756
89765
|
let result = {
|
|
89757
89766
|
code: -5,
|
|
89758
89767
|
data: {}
|
|
@@ -90091,17 +90100,20 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
90091
90100
|
}
|
|
90092
90101
|
);
|
|
90093
90102
|
loading.value = true;
|
|
90094
|
-
const
|
|
90103
|
+
const opt = {
|
|
90095
90104
|
method: props.detail.optionHttpMethod,
|
|
90096
90105
|
headers: {
|
|
90097
90106
|
"Content-Type": "application/json"
|
|
90098
|
-
}
|
|
90099
|
-
|
|
90107
|
+
}
|
|
90108
|
+
};
|
|
90109
|
+
if (!["get", "GET", "post", "POST"].includes(props.detail.optionHttpMethod)) {
|
|
90110
|
+
opt.body = JSON.stringify({
|
|
90100
90111
|
...props.detail.optionHttpParams,
|
|
90101
90112
|
...componentValueMap,
|
|
90102
90113
|
searchValue: queryStr
|
|
90103
|
-
})
|
|
90104
|
-
}
|
|
90114
|
+
});
|
|
90115
|
+
}
|
|
90116
|
+
const response = await fetch(props.detail.optionHttpUrl, opt);
|
|
90105
90117
|
let result = {
|
|
90106
90118
|
code: -5,
|
|
90107
90119
|
data: {}
|