bmp-layout 0.0.5 → 0.0.7

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,10 +0,0 @@
1
- import { openBlock, createElementBlock } from "vue";
2
- import { a as _export_sfc } from "./index-mesAqlQk.mjs";
3
- const _sfc_main = {};
4
- function _sfc_render(_ctx, _cache) {
5
- return openBlock(), createElementBlock("div", null, "Home");
6
- }
7
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
8
- export {
9
- index as default
10
- };
@@ -1,77 +0,0 @@
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
- };