lw-cdp-ui 1.2.36 → 1.2.37
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 +5 -59
- package/dist/lw-cdp-ui.umd.js +6 -11
- package/dist/pwa/index.js +52 -0
- package/package.json +6 -3
package/dist/lw-cdp-ui.esm.js
CHANGED
|
@@ -19672,73 +19672,20 @@ 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) {
|
|
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
|
-
发现新版本!请点击 "刷新" 以获取最新功能和优化
|
|
19683
|
-
<button style="background: white; color: #42b983; border: none; padding: 5px 10px; cursor: pointer;">刷新</button>
|
|
19684
|
-
</div>
|
|
19685
|
-
`, document.body.appendChild(n), n.querySelector("button").addEventListener("click", () => {
|
|
19686
|
-
t(!0);
|
|
19687
|
-
});
|
|
19688
|
-
},
|
|
19689
|
-
onOfflineReady() {
|
|
19690
|
-
console.log("应用已准备好离线工作。");
|
|
19691
|
-
}
|
|
19692
|
-
});
|
|
19693
|
-
}
|
|
19694
|
-
function MA(e, t) {
|
|
19695
|
-
return t({
|
|
19696
|
-
registerType: "prompt",
|
|
19697
|
-
manifest: {
|
|
19698
|
-
name: `联蔚数字科技营销云-${e}`,
|
|
19699
|
-
short_name: `联蔚-${e}`,
|
|
19700
|
-
description: `联蔚数字科技营销云 PWA App -${e}`,
|
|
19701
|
-
theme_color: "#84ADEA",
|
|
19702
|
-
icons: [
|
|
19703
|
-
{
|
|
19704
|
-
src: "icons/logo.svg",
|
|
19705
|
-
sizes: "192x192",
|
|
19706
|
-
type: "image/svg+xml"
|
|
19707
|
-
},
|
|
19708
|
-
{
|
|
19709
|
-
src: "icons/logo.svg",
|
|
19710
|
-
sizes: "512x512",
|
|
19711
|
-
type: "image/svg+xml"
|
|
19712
|
-
}
|
|
19713
|
-
]
|
|
19714
|
-
},
|
|
19715
|
-
devOptions: {
|
|
19716
|
-
enabled: !0
|
|
19717
|
-
// 确保在开发环境中启用 PWA
|
|
19718
|
-
},
|
|
19719
|
-
workbox: {
|
|
19720
|
-
maximumFileSizeToCacheInBytes: 4 * 1024 * 1024,
|
|
19721
|
-
globPatterns: ["**/*.{js,css,html,png,jpg,svg}"]
|
|
19722
|
-
}
|
|
19723
|
-
});
|
|
19724
|
-
}
|
|
19725
|
-
function TA(e, t = {}) {
|
|
19675
|
+
function VA(e, t = {}) {
|
|
19726
19676
|
if (t)
|
|
19727
19677
|
for (const n in t)
|
|
19728
19678
|
t.hasOwnProperty(n) && (e.config.globalProperties[`$${n.toUpperCase()}`] = t[n]);
|
|
19729
19679
|
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);
|
|
19730
19680
|
}
|
|
19731
|
-
const
|
|
19732
|
-
install:
|
|
19681
|
+
const QA = {
|
|
19682
|
+
install: VA,
|
|
19733
19683
|
// 插件的 install 方法,用于 Vue.use() 安装插件
|
|
19734
|
-
uiI18n: Ut
|
|
19684
|
+
uiI18n: Ut
|
|
19735
19685
|
// 国际化配置导出,便于配置或使用
|
|
19736
|
-
registerServiceWorker: VA,
|
|
19737
|
-
LwVitePWA: MA
|
|
19738
19686
|
};
|
|
19739
19687
|
export {
|
|
19740
|
-
|
|
19741
|
-
UA as default,
|
|
19688
|
+
QA as default,
|
|
19742
19689
|
w9 as lwCronSelect,
|
|
19743
19690
|
wA as lwFlow,
|
|
19744
19691
|
Dc as lwForm,
|
|
@@ -19754,6 +19701,5 @@ export {
|
|
|
19754
19701
|
L7 as lwTableForm,
|
|
19755
19702
|
A7 as lwTableSelect,
|
|
19756
19703
|
H2 as lwUpload,
|
|
19757
|
-
VA as registerServiceWorker,
|
|
19758
19704
|
Ut as uiI18n
|
|
19759
19705
|
};
|