bmp-layout 0.0.4 → 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-CG8YK0iL.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
+ };
@@ -1149,7 +1149,7 @@ const remainingRouter = [
1149
1149
  },
1150
1150
  {
1151
1151
  path: "/403",
1152
- component: () => import("./403-BAKBAIzR.mjs"),
1152
+ component: () => import("./403-DUIWwX1L.mjs"),
1153
1153
  name: "NoAccess",
1154
1154
  meta: {
1155
1155
  hidden: true,
@@ -1159,7 +1159,7 @@ const remainingRouter = [
1159
1159
  },
1160
1160
  {
1161
1161
  path: "/404",
1162
- component: () => import("./404-BaDerCfe.mjs"),
1162
+ component: () => import("./404-CYEErLzh.mjs"),
1163
1163
  name: "NoFound",
1164
1164
  meta: {
1165
1165
  hidden: true,
@@ -1169,7 +1169,7 @@ const remainingRouter = [
1169
1169
  },
1170
1170
  {
1171
1171
  path: "/500",
1172
- component: () => import("./500-B5gautsl.mjs"),
1172
+ component: () => import("./500-BWqJrsOS.mjs"),
1173
1173
  name: "Error",
1174
1174
  meta: {
1175
1175
  hidden: true,
@@ -1179,7 +1179,7 @@ const remainingRouter = [
1179
1179
  },
1180
1180
  {
1181
1181
  path: "/:pathMatch(.*)*",
1182
- component: () => import("./404-BaDerCfe.mjs"),
1182
+ component: () => import("./404-CYEErLzh.mjs"),
1183
1183
  name: "",
1184
1184
  meta: {
1185
1185
  title: "404",
@@ -3343,7 +3343,7 @@ var lib = {
3343
3343
  stringify: stringify2
3344
3344
  };
3345
3345
  const qs = /* @__PURE__ */ getDefaultExportFromCjs(lib);
3346
- const modules = /* @__PURE__ */ Object.assign({ "../views/Error/403.vue": () => import("./403-BAKBAIzR.mjs"), "../views/Error/404.vue": () => import("./404-BaDerCfe.mjs"), "../views/Error/500.vue": () => import("./500-B5gautsl.mjs"), "../views/Home/index.vue": () => import("./index-bZn8AhgB.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") });
3347
3347
  const Layout$2 = () => Promise.resolve().then(() => Layout$1);
3348
3348
  const getRawRoute = (route) => {
3349
3349
  if (!route)
@@ -3553,7 +3553,7 @@ const usePermissionStore = defineStore("permission", {
3553
3553
  {
3554
3554
  path: "/:path(.*)*",
3555
3555
  // redirect: '/404',
3556
- component: () => import("./404-BaDerCfe.mjs"),
3556
+ component: () => import("./404-CYEErLzh.mjs"),
3557
3557
  name: "404Page",
3558
3558
  meta: {
3559
3559
  hidden: true,
@@ -24930,7 +24930,7 @@ const useRenderLayout = () => {
24930
24930
  });
24931
24931
  const zIndexClass = computed(() => {
24932
24932
  return {
24933
- "z-10": theme.value === "whiteLight"
24933
+ "z-100": theme.value === "whiteLight"
24934
24934
  };
24935
24935
  });
24936
24936
  const renderLeft = () => {
@@ -39282,12 +39282,15 @@ export {
39282
39282
  Layout as L,
39283
39283
  _sfc_main$c as _,
39284
39284
  _export_sfc as a,
39285
- Login as b,
39286
- _sfc_main as c,
39287
- useAppStoreWithOut as d,
39288
- useUserStore as e,
39289
- useUserStoreWithOut as f,
39290
- 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,
39291
39294
  setI18n as s,
39292
- useAppStore as u
39295
+ useI18n as u
39293
39296
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmp-layout",
3
- "version": "0.0.4",
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",