lw-cdp-ui 1.2.39 → 1.2.41
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/lw-cdp-ui.esm.js +25 -5
- package/dist/lw-cdp-ui.umd.js +10 -6
- package/package.json +3 -5
package/dist/lw-cdp-ui.esm.js
CHANGED
|
@@ -19672,20 +19672,39 @@ let xA = localStorage.getItem("langMessageUi"), SA = JSON.parse(xA) || {}, Ut =
|
|
|
19672
19672
|
Ut["en-us"] = { ...IA, ...BA, ...FA };
|
|
19673
19673
|
Ut["zh-cn"] = { ..._A, ...kA, ...LA };
|
|
19674
19674
|
localStorage.setItem("langMessageUi", JSON.stringify(Ut));
|
|
19675
|
-
function VA(e
|
|
19675
|
+
function VA(e) {
|
|
19676
|
+
const t = e({
|
|
19677
|
+
onNeedRefresh() {
|
|
19678
|
+
console.log("有更新 等待确定...");
|
|
19679
|
+
const n = document.createElement("div");
|
|
19680
|
+
n.innerHTML = `
|
|
19681
|
+
<div style="position: fixed; top: 0; width: 100%; background: #42b983; color: white; text-align: center; padding: 10px 0; z-index: 1000;">
|
|
19682
|
+
发现新版本! 请点击 "刷新" 以获取最新功能和优化 <button style="background: white; color: #42b983; border: none; padding: 5px 10px; cursor: pointer;">刷新</button>
|
|
19683
|
+
</div>
|
|
19684
|
+
`, document.body.appendChild(n), n.querySelector("button").addEventListener("click", () => {
|
|
19685
|
+
t(!0);
|
|
19686
|
+
});
|
|
19687
|
+
},
|
|
19688
|
+
onOfflineReady() {
|
|
19689
|
+
console.log("应用已准备好离线工作。");
|
|
19690
|
+
}
|
|
19691
|
+
});
|
|
19692
|
+
}
|
|
19693
|
+
function MA(e, t = {}) {
|
|
19676
19694
|
if (t)
|
|
19677
19695
|
for (const n in t)
|
|
19678
19696
|
t.hasOwnProperty(n) && (e.config.globalProperties[`$${n.toUpperCase()}`] = t[n]);
|
|
19679
19697
|
e.directive("copy", Au), e.directive("auth", vu), e.component("lwLayout", e6), e.component("lwLogin", y6), e.component("lwSearch", J6), e.component("lwSvgIcon", tc), e.component("lwTable", Ac), e.component("lwForm", Dc), e.component("lwFormMini", r7), e.component("lwUpload", H2), e.component("lwIconSelect", d7), e.component("lwTableSelect", A7), e.component("lwTableForm", L7), e.component("lwFormView", v9), e.component("lwFormJson", s9), e.component("lwCronSelect", w9), e.component("lwFlow", wA);
|
|
19680
19698
|
}
|
|
19681
|
-
const
|
|
19682
|
-
install:
|
|
19699
|
+
const NA = {
|
|
19700
|
+
install: MA,
|
|
19683
19701
|
// 插件的 install 方法,用于 Vue.use() 安装插件
|
|
19684
|
-
uiI18n: Ut
|
|
19702
|
+
uiI18n: Ut,
|
|
19685
19703
|
// 国际化配置导出,便于配置或使用
|
|
19704
|
+
registerServiceWorker: VA
|
|
19686
19705
|
};
|
|
19687
19706
|
export {
|
|
19688
|
-
|
|
19707
|
+
NA as default,
|
|
19689
19708
|
w9 as lwCronSelect,
|
|
19690
19709
|
wA as lwFlow,
|
|
19691
19710
|
Dc as lwForm,
|
|
@@ -19701,5 +19720,6 @@ export {
|
|
|
19701
19720
|
L7 as lwTableForm,
|
|
19702
19721
|
A7 as lwTableSelect,
|
|
19703
19722
|
H2 as lwUpload,
|
|
19723
|
+
VA as registerServiceWorker,
|
|
19704
19724
|
Ut as uiI18n
|
|
19705
19725
|
};
|