@robot-admin/layout 3.0.0 β 3.1.0
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/CHANGELOG.md +9 -0
- package/README.md +85 -25
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +214 -25
- package/dist/index.d.ts +214 -25
- package/dist/index.js +48 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -35,9 +35,13 @@ function Z(e = {}) {
|
|
|
35
35
|
}, u = () => {
|
|
36
36
|
o.value = [], n && console.debug("[KeepAlive] ποΈ ζΈ
η©ΊζζηΌε");
|
|
37
37
|
}, d = () => o.value;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
if (r && typeof window < "u") {
|
|
39
|
+
let e = window;
|
|
40
|
+
e.__clearCache__ = u, e.__removeCache__ = l, e.__getCachedViews__ = d, y(() => {
|
|
41
|
+
e.__clearCache__ === u && delete e.__clearCache__, e.__removeCache__ === l && delete e.__removeCache__, e.__getCachedViews__ === d && delete e.__getCachedViews__;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return j(() => [i.name, i.meta.keepAlive], () => {
|
|
41
45
|
fe(i) && c(i.name);
|
|
42
46
|
}, { immediate: !0 }), {
|
|
43
47
|
cachedViews: o,
|
|
@@ -1259,7 +1263,7 @@ var je = { class: "mix-layout-container" }, Me = { class: "logo-container" }, Ne
|
|
|
1259
1263
|
sidebarCollapsedWidth: 64,
|
|
1260
1264
|
headerHeight: 56,
|
|
1261
1265
|
enableHotkeys: !0,
|
|
1262
|
-
version: "3.
|
|
1266
|
+
version: "3.1.0"
|
|
1263
1267
|
}, sn = tn.map((e) => e.value), cn = {
|
|
1264
1268
|
themeMode: new Set([
|
|
1265
1269
|
"light",
|
|
@@ -2008,7 +2012,7 @@ var gn = hn(), _n = [
|
|
|
2008
2012
|
_: 3
|
|
2009
2013
|
}, 8, ["show", "width"]));
|
|
2010
2014
|
}
|
|
2011
|
-
}), [["__scopeId", "data-v-
|
|
2015
|
+
}), [["__scopeId", "data-v-d9843552"]]), Tr = { class: "brand-logo__icon" }, Er = [
|
|
2012
2016
|
"src",
|
|
2013
2017
|
"width",
|
|
2014
2018
|
"height"
|
|
@@ -2291,6 +2295,44 @@ function xi(e, t = {}) {
|
|
|
2291
2295
|
return e.provide(ce, r), n;
|
|
2292
2296
|
}
|
|
2293
2297
|
//#endregion
|
|
2294
|
-
|
|
2298
|
+
//#region src/composables/createLayoutContext.ts
|
|
2299
|
+
function Si(e) {
|
|
2300
|
+
let { settings: t } = e;
|
|
2301
|
+
return {
|
|
2302
|
+
menus: r(() => O(e.menus)),
|
|
2303
|
+
isDark: r(() => O(e.isDark)),
|
|
2304
|
+
layoutMode: r(() => t.layoutMode),
|
|
2305
|
+
collapsed: r({
|
|
2306
|
+
get: () => t.collapsed,
|
|
2307
|
+
set: (e) => {
|
|
2308
|
+
t.collapsed = e;
|
|
2309
|
+
}
|
|
2310
|
+
}),
|
|
2311
|
+
menuExpandMode: r(() => t.menuExpandMode),
|
|
2312
|
+
sidebarWidth: r(() => t.sidebarWidth),
|
|
2313
|
+
sidebarCollapsedWidth: r(() => t.sidebarCollapsedWidth),
|
|
2314
|
+
showFooter: r(() => t.showFooter),
|
|
2315
|
+
showTagsView: r(() => t.showTagsView),
|
|
2316
|
+
tagsViewHeight: r(() => t.tagsViewHeight),
|
|
2317
|
+
headerHeight: r(() => t.headerHeight),
|
|
2318
|
+
transitionName: r(() => t.transitionName),
|
|
2319
|
+
showBreadcrumb: r(() => t.showBreadcrumb),
|
|
2320
|
+
showBreadcrumbIcon: r(() => t.showBreadcrumbIcon),
|
|
2321
|
+
fixedHeader: r(() => t.fixedHeader),
|
|
2322
|
+
brand: {
|
|
2323
|
+
...X,
|
|
2324
|
+
...e.brand
|
|
2325
|
+
},
|
|
2326
|
+
iconComponent: e.iconComponent
|
|
2327
|
+
};
|
|
2328
|
+
}
|
|
2329
|
+
function Ci(e) {
|
|
2330
|
+
return de(Si(e));
|
|
2331
|
+
}
|
|
2332
|
+
//#endregion
|
|
2333
|
+
//#region src/index.ts
|
|
2334
|
+
var wi = pe, Ti = Oe, Ei = Ke, Di = lt, Oi = jt, ki = Qt;
|
|
2335
|
+
//#endregion
|
|
2336
|
+
export { an as BORDER_RADIUS_MAP, Mr as BrandLogo, sn as COLOR_SWATCHES, ki as C_CardLayout, en as C_LayoutContainer, Ei as C_MixLayout, Di as C_MixTopLayout, Oi as C_ReverseHorizontalMixLayout, wi as C_SideLayout, Ti as C_TopLayout, Qt as CardLayout, X as DEFAULT_BRAND_CONFIG, $ as DEFAULT_SETTINGS, ue as DRAWER_HANDLER_KEY, yi as DrawerMenu, Xr as FloatingMenu, Rr as IconMenu, J as LAYOUT_CONTEXT_KEY, rn as LAYOUT_MODES, ce as LAYOUT_SETTINGS_KEY, le as MENU_COLLAPSE_KEY, bi as MenuTrigger, Ke as MixLayout, lt as MixTopLayout, tn as PRESET_COLORS, _e as ResponsiveMenu, jt as ReverseHorizontalMixLayout, dn as SETTINGS_CONFIG_SCHEMA_VERSION, wr as SettingsDrawer, pe as SideLayout, si as SideMenu, nn as THEME_PRESETS, on as TRANSITION_MAP, Oe as TopLayout, mn as adjustColor, Si as createLayoutContext, hn as createSettingsStore, Ci as provideLayout, de as provideLayoutContext, pn as sanitizeLayoutSettingsConfig, fn as sanitizeSettingsPatch, xi as setupLayout, fe as shouldCacheRoute, Z as useLayoutCache, Y as useLayoutContext, Ae as useMenuSplit, gn as useSettingsStore };
|
|
2295
2337
|
|
|
2296
2338
|
//# sourceMappingURL=index.js.map
|