@airpower/web 1.5.0 → 1.5.2
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/http/Http.d.ts +1 -1
- package/dist/main.js +12 -5
- package/package.json +2 -2
package/dist/http/Http.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -10525,11 +10525,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10525
10525
|
}
|
|
10526
10526
|
function onChange() {
|
|
10527
10527
|
const val = formData.value[props.field];
|
|
10528
|
-
emits("update:modelValue", val);
|
|
10529
|
-
emits("changed", val);
|
|
10530
10528
|
if (injectFormData) {
|
|
10531
10529
|
injectFormData.value[props.field] = val;
|
|
10532
10530
|
}
|
|
10531
|
+
emits("update:modelValue", formData.value);
|
|
10532
|
+
emits("changed", val);
|
|
10533
10533
|
}
|
|
10534
10534
|
return (_ctx, _cache) => {
|
|
10535
10535
|
return openBlock(), createBlock(unref(ElFormItem), {
|
|
@@ -14147,6 +14147,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14147
14147
|
emitValue();
|
|
14148
14148
|
emitBlur();
|
|
14149
14149
|
}
|
|
14150
|
+
watch([props.list, props.tree], () => {
|
|
14151
|
+
console.warn("list changed");
|
|
14152
|
+
init();
|
|
14153
|
+
}, {
|
|
14154
|
+
deep: true,
|
|
14155
|
+
immediate: true
|
|
14156
|
+
});
|
|
14150
14157
|
watch(value, () => {
|
|
14151
14158
|
emitValue();
|
|
14152
14159
|
});
|
|
@@ -14983,7 +14990,7 @@ class Http {
|
|
|
14983
14990
|
/**
|
|
14984
14991
|
* ### 是否携带 `Cookies`
|
|
14985
14992
|
*/
|
|
14986
|
-
|
|
14993
|
+
withCookie = false;
|
|
14987
14994
|
/**
|
|
14988
14995
|
* ### 请求头
|
|
14989
14996
|
*/
|
|
@@ -15040,7 +15047,7 @@ class Http {
|
|
|
15040
15047
|
* ### 允许携带 `Cookies`
|
|
15041
15048
|
*/
|
|
15042
15049
|
withCredentials() {
|
|
15043
|
-
this.
|
|
15050
|
+
this.withCookie = true;
|
|
15044
15051
|
return this;
|
|
15045
15052
|
}
|
|
15046
15053
|
/**
|
|
@@ -15183,7 +15190,7 @@ class Http {
|
|
|
15183
15190
|
axiosConfig.method = this.method;
|
|
15184
15191
|
axiosConfig.data = body;
|
|
15185
15192
|
axiosConfig.params = params;
|
|
15186
|
-
axiosConfig.withCredentials = this.
|
|
15193
|
+
axiosConfig.withCredentials = this.withCookie;
|
|
15187
15194
|
const response = new HttpResponse();
|
|
15188
15195
|
try {
|
|
15189
15196
|
const res = await axios.request(axiosConfig);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airpower/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"description": "AirPower-Web",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Hamm",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@airpower/enum": "^1.3.3",
|
|
43
43
|
"@airpower/i18n": "^1.3.3",
|
|
44
44
|
"@airpower/transformer": "^1.3.3",
|
|
45
|
-
"@airpower/util": "^1.3.
|
|
45
|
+
"@airpower/util": "^1.3.4",
|
|
46
46
|
"@element-plus/icons-vue": "^2.3.1",
|
|
47
47
|
"axios": "1.11.0",
|
|
48
48
|
"element-plus": "^2.10.4",
|