wlwy-package 3.1.62 → 3.1.63
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/wlwy-package.es.js
CHANGED
|
@@ -1753,13 +1753,13 @@ function mergeConfig$1(config1, config2) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
const resolveConfig = (config2) => {
|
|
1755
1755
|
const newConfig = mergeConfig$1({}, config2);
|
|
1756
|
-
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth
|
|
1756
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
1757
1757
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
1758
1758
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config2.params, config2.paramsSerializer);
|
|
1759
|
-
if (
|
|
1759
|
+
if (auth) {
|
|
1760
1760
|
headers.set(
|
|
1761
1761
|
"Authorization",
|
|
1762
|
-
"Basic " + btoa((
|
|
1762
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
1763
1763
|
);
|
|
1764
1764
|
}
|
|
1765
1765
|
if (utils$1.isFormData(data)) {
|
|
@@ -9583,8 +9583,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
9583
9583
|
emits: ["click"],
|
|
9584
9584
|
setup(__props, { emit: __emit }) {
|
|
9585
9585
|
useCssVars((_ctx) => ({
|
|
9586
|
-
"
|
|
9587
|
-
"
|
|
9586
|
+
"v6f1ae822": unref(token).colorTextDisabled,
|
|
9587
|
+
"v34145909": unref(token).colorPrimary
|
|
9588
9588
|
}));
|
|
9589
9589
|
const { t: t2 } = useI18n();
|
|
9590
9590
|
const { token } = theme.useToken();
|
|
@@ -9627,13 +9627,16 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
9627
9627
|
createTextVNode(toDisplayString$1(title.value), 1)
|
|
9628
9628
|
]),
|
|
9629
9629
|
default: withCtx(() => [
|
|
9630
|
-
|
|
9630
|
+
type.value ? (openBlock(), createBlock(unref(_sfc_main$16), {
|
|
9631
|
+
key: 0,
|
|
9632
|
+
type: type.value
|
|
9633
|
+
}, null, 8, ["type"])) : createCommentVNode("", true)
|
|
9631
9634
|
]),
|
|
9632
9635
|
_: 1
|
|
9633
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$16), {
|
|
9636
|
+
})) : type.value ? (openBlock(), createBlock(unref(_sfc_main$16), {
|
|
9634
9637
|
key: 1,
|
|
9635
9638
|
type: type.value
|
|
9636
|
-
}, null, 8, ["type"]))
|
|
9639
|
+
}, null, 8, ["type"])) : createCommentVNode("", true)
|
|
9637
9640
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
9638
9641
|
createTextVNode(toDisplayString$1(title.value), 1)
|
|
9639
9642
|
], 64))
|
|
@@ -9649,7 +9652,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
9649
9652
|
}
|
|
9650
9653
|
return target;
|
|
9651
9654
|
};
|
|
9652
|
-
const WIcon = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-
|
|
9655
|
+
const WIcon = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-0ef826b6"]]);
|
|
9653
9656
|
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
9654
9657
|
...{
|
|
9655
9658
|
name: "Icon"
|
|
@@ -19698,26 +19701,25 @@ const hasAuth$1 = (value) => {
|
|
|
19698
19701
|
}
|
|
19699
19702
|
return false;
|
|
19700
19703
|
};
|
|
19701
|
-
function
|
|
19702
|
-
var _a;
|
|
19704
|
+
function updateElement(el, binding) {
|
|
19703
19705
|
const {
|
|
19704
|
-
|
|
19705
|
-
|
|
19706
|
+
value,
|
|
19707
|
+
oldValue,
|
|
19708
|
+
modifiers: { page: page2 }
|
|
19706
19709
|
} = binding;
|
|
19707
|
-
|
|
19708
|
-
|
|
19709
|
-
|
|
19710
|
-
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
|
|
19710
|
+
if (!value || value !== oldValue) {
|
|
19711
|
+
nextTick(() => {
|
|
19712
|
+
if (page2) {
|
|
19713
|
+
!hasAuth$1(value) && (el.innerHTML = `<div class="page-no-auth">${t("com_msg_4527")}</div>`);
|
|
19714
|
+
} else if (el.style) {
|
|
19715
|
+
el.style.display = hasAuth$1(value) ? "" : "none";
|
|
19716
|
+
}
|
|
19717
|
+
});
|
|
19714
19718
|
}
|
|
19715
19719
|
}
|
|
19716
|
-
const mounted$1 = (el, binding) => {
|
|
19717
|
-
auth(el, binding);
|
|
19718
|
-
};
|
|
19719
19720
|
const authDirective = {
|
|
19720
|
-
mounted:
|
|
19721
|
+
mounted: updateElement,
|
|
19722
|
+
updated: updateElement
|
|
19721
19723
|
};
|
|
19722
19724
|
const setupAuthDirective = (app) => {
|
|
19723
19725
|
app.directive("auth", authDirective);
|