bmp-layout 0.0.3 → 0.0.5

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.
@@ -1,5 +1,5 @@
1
1
  import { openBlock, createElementBlock } from "vue";
2
- import { a as _export_sfc } from "./index-DlR_1Fbm.mjs";
2
+ import { a as _export_sfc } from "./index-mesAqlQk.mjs";
3
3
  const _sfc_main = {};
4
4
  function _sfc_render(_ctx, _cache) {
5
5
  return openBlock(), createElementBlock("div", null, "Home");
@@ -0,0 +1,77 @@
1
+ import { a as _export_sfc, u as useI18n, b as useDesign, c as _sfc_main$2 } from "./index-mesAqlQk.mjs";
2
+ import { ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createVNode, createCommentVNode, toDisplayString, renderSlot, createBlock } from "vue";
3
+ import { useRoute } from "vue-router";
4
+ const _hoisted_1 = { class: "flex items-center" };
5
+ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ name: "ContentHeader" }, {
6
+ __name: "ContentHeader",
7
+ props: {
8
+ title: {
9
+ type: String,
10
+ default: ""
11
+ },
12
+ backAble: {
13
+ type: Boolean,
14
+ default: false
15
+ }
16
+ },
17
+ emits: ["back"],
18
+ setup(__props, { emit: __emit }) {
19
+ const route = useRoute();
20
+ const { t } = useI18n();
21
+ const { getPrefixCls } = useDesign();
22
+ const prefixCls = getPrefixCls("content-header");
23
+ const emit = __emit;
24
+ const handleClick = () => {
25
+ emit("back");
26
+ };
27
+ ref(60);
28
+ return (_ctx, _cache) => {
29
+ const _component_Icon = _sfc_main$2;
30
+ return openBlock(), createElementBlock("div", {
31
+ ref: "contentHeader",
32
+ class: normalizeClass([`${unref(prefixCls)}`])
33
+ }, [
34
+ createElementVNode("div", {
35
+ class: normalizeClass([`${unref(prefixCls)}-sticky`, "h-[var(--top-tool-height)] flex items-center justify-between bg-white pl-20px pr-20px"])
36
+ }, [
37
+ createElementVNode("div", {
38
+ class: normalizeClass([`${unref(prefixCls)}-sticky__left`, "flex items-center text-16px font-500 c-[var(--text-color)]"])
39
+ }, [
40
+ __props.backAble ? (openBlock(), createElementBlock("div", {
41
+ key: 0,
42
+ class: normalizeClass([`${unref(prefixCls)}-sticky__back`, "flex items-center text-14px font-normal"])
43
+ }, [
44
+ createElementVNode("div", {
45
+ class: normalizeClass([`${unref(prefixCls)}-sticky__back-btn`, "flex items-center"]),
46
+ onClick: handleClick
47
+ }, [
48
+ createVNode(_component_Icon, {
49
+ icon: "ant-design:left-outlined",
50
+ size: 12
51
+ }),
52
+ _cache[0] || (_cache[0] = createElementVNode("span", { class: "ml-2px" }, "返回", -1))
53
+ ], 2),
54
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "flex items-center ml-4px mr-4px" }, "/", -1))
55
+ ], 2)) : createCommentVNode("", true),
56
+ createElementVNode("div", _hoisted_1, toDisplayString(__props.title || unref(t)(unref(route).meta.title)), 1)
57
+ ], 2),
58
+ createElementVNode("div", {
59
+ class: normalizeClass([`${unref(prefixCls)}-sticky__right`])
60
+ }, [
61
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
62
+ ], 2)
63
+ ], 2)
64
+ ], 2);
65
+ };
66
+ }
67
+ });
68
+ const __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-556dca00"]]);
69
+ const _sfc_main = {};
70
+ function _sfc_render(_ctx, _cache) {
71
+ const _component_ContentHeader = __unplugin_components_0;
72
+ return openBlock(), createBlock(_component_ContentHeader);
73
+ }
74
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
75
+ export {
76
+ index as default
77
+ };
@@ -1030,7 +1030,6 @@ const useAppStore = defineStore("app", {
1030
1030
  setCssVarTheme() {
1031
1031
  this.isSetTheme = true;
1032
1032
  const theme = systemTheme[this.theme];
1033
- console.log("theme", theme);
1034
1033
  for (const key in theme) {
1035
1034
  setCssVar(`--${humpToUnderline(key)}`, theme[key]);
1036
1035
  }
@@ -1150,7 +1149,7 @@ const remainingRouter = [
1150
1149
  },
1151
1150
  {
1152
1151
  path: "/403",
1153
- component: () => import("./403-DYgT5iKa.mjs"),
1152
+ component: () => import("./403-DUIWwX1L.mjs"),
1154
1153
  name: "NoAccess",
1155
1154
  meta: {
1156
1155
  hidden: true,
@@ -1160,7 +1159,7 @@ const remainingRouter = [
1160
1159
  },
1161
1160
  {
1162
1161
  path: "/404",
1163
- component: () => import("./404-CnkhuPaP.mjs"),
1162
+ component: () => import("./404-CYEErLzh.mjs"),
1164
1163
  name: "NoFound",
1165
1164
  meta: {
1166
1165
  hidden: true,
@@ -1170,7 +1169,7 @@ const remainingRouter = [
1170
1169
  },
1171
1170
  {
1172
1171
  path: "/500",
1173
- component: () => import("./500-DluI2QaR.mjs"),
1172
+ component: () => import("./500-BWqJrsOS.mjs"),
1174
1173
  name: "Error",
1175
1174
  meta: {
1176
1175
  hidden: true,
@@ -1180,7 +1179,7 @@ const remainingRouter = [
1180
1179
  },
1181
1180
  {
1182
1181
  path: "/:pathMatch(.*)*",
1183
- component: () => import("./404-CnkhuPaP.mjs"),
1182
+ component: () => import("./404-CYEErLzh.mjs"),
1184
1183
  name: "",
1185
1184
  meta: {
1186
1185
  title: "404",
@@ -3344,7 +3343,7 @@ var lib = {
3344
3343
  stringify: stringify2
3345
3344
  };
3346
3345
  const qs = /* @__PURE__ */ getDefaultExportFromCjs(lib);
3347
- const modules = /* @__PURE__ */ Object.assign({ "../views/Error/403.vue": () => import("./403-DYgT5iKa.mjs"), "../views/Error/404.vue": () => import("./404-CnkhuPaP.mjs"), "../views/Error/500.vue": () => import("./500-DluI2QaR.mjs"), "../views/Home/index.vue": () => import("./index-D3muoTnk.mjs"), "../views/Login/Login.vue": () => Promise.resolve().then(() => Login$1), "../views/Login/components/ForgetPasswordForm.vue": () => Promise.resolve().then(() => ForgetPasswordForm$1), "../views/Login/components/LoginForm.vue": () => Promise.resolve().then(() => LoginForm$1), "../views/Login/components/LoginFormTitle.vue": () => Promise.resolve().then(() => LoginFormTitle), "../views/Login/components/MobileForm.vue": () => Promise.resolve().then(() => MobileForm$1), "../views/Login/components/RegisterForm.vue": () => Promise.resolve().then(() => RegisterForm$1), "../views/Redirect/Redirect.vue": () => import("./Redirect-CRTyBnlH.mjs") });
3346
+ const modules = /* @__PURE__ */ Object.assign({ "../views/Error/403.vue": () => import("./403-DUIWwX1L.mjs"), "../views/Error/404.vue": () => import("./404-CYEErLzh.mjs"), "../views/Error/500.vue": () => import("./500-BWqJrsOS.mjs"), "../views/Home/index.vue": () => import("./index-C6FIBBXC.mjs"), "../views/Login/Login.vue": () => Promise.resolve().then(() => Login$1), "../views/Login/components/ForgetPasswordForm.vue": () => Promise.resolve().then(() => ForgetPasswordForm$1), "../views/Login/components/LoginForm.vue": () => Promise.resolve().then(() => LoginForm$1), "../views/Login/components/LoginFormTitle.vue": () => Promise.resolve().then(() => LoginFormTitle), "../views/Login/components/MobileForm.vue": () => Promise.resolve().then(() => MobileForm$1), "../views/Login/components/RegisterForm.vue": () => Promise.resolve().then(() => RegisterForm$1), "../views/Redirect/Redirect.vue": () => import("./Redirect-CRTyBnlH.mjs"), "../views/system/tenant/index.vue": () => import("./index-NAf_EX7O.mjs") });
3348
3347
  const Layout$2 = () => Promise.resolve().then(() => Layout$1);
3349
3348
  const getRawRoute = (route) => {
3350
3349
  if (!route)
@@ -3554,7 +3553,7 @@ const usePermissionStore = defineStore("permission", {
3554
3553
  {
3555
3554
  path: "/:path(.*)*",
3556
3555
  // redirect: '/404',
3557
- component: () => import("./404-CnkhuPaP.mjs"),
3556
+ component: () => import("./404-CYEErLzh.mjs"),
3558
3557
  name: "404Page",
3559
3558
  meta: {
3560
3559
  hidden: true,
@@ -24931,7 +24930,7 @@ const useRenderLayout = () => {
24931
24930
  });
24932
24931
  const zIndexClass = computed(() => {
24933
24932
  return {
24934
- "z-10": theme.value === "whiteLight"
24933
+ "z-100": theme.value === "whiteLight"
24935
24934
  };
24936
24935
  });
24937
24936
  const renderLeft = () => {
@@ -39283,12 +39282,15 @@ export {
39283
39282
  Layout as L,
39284
39283
  _sfc_main$c as _,
39285
39284
  _export_sfc as a,
39286
- Login as b,
39287
- _sfc_main as c,
39288
- useAppStoreWithOut as d,
39289
- useUserStore as e,
39290
- useUserStoreWithOut as f,
39291
- useLayout as g,
39285
+ useDesign as b,
39286
+ _sfc_main$A as c,
39287
+ Login as d,
39288
+ _sfc_main as e,
39289
+ useAppStore as f,
39290
+ useAppStoreWithOut as g,
39291
+ useUserStore as h,
39292
+ useUserStoreWithOut as i,
39293
+ useLayout as j,
39292
39294
  setI18n as s,
39293
- useAppStore as u
39295
+ useI18n as u
39294
39296
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmp-layout",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "基于 Vue3、Element Plus 的后台管理布局组件库",
5
5
  "main": "./bmp-layout.umd.js",
6
6
  "module": "./bmp-layout.es.js",
@@ -19,7 +19,8 @@
19
19
  "*.mjs",
20
20
  "*.css",
21
21
  "*.svg",
22
- "locales/"
22
+ "locales/",
23
+ "svgs/"
23
24
  ],
24
25
  "peerDependencies": {
25
26
  "vue": ">=3.3.0",