@keyblade/pro-components 1.0.1 → 1.0.3
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/es/pro-layout/pro-layout.vue.js +5 -5
- package/es/style.css +14 -14
- package/package.json +1 -1
|
@@ -47,9 +47,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
setup(__props, { emit }) {
|
|
48
48
|
const props = __props;
|
|
49
49
|
useCssVars((_ctx) => ({
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
50
|
+
"0bcf949e": headerHeightWidthPx,
|
|
51
|
+
"746cffdc": siderWidthPx,
|
|
52
|
+
"59d7be69": siderCollapsedWidthPx
|
|
53
53
|
}));
|
|
54
54
|
const prefixClsName = "keyblade-pro-layout";
|
|
55
55
|
const { menuItems } = toRefs(props);
|
|
@@ -149,7 +149,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
createVNode(_component_a_layout, null, {
|
|
150
150
|
default: withCtx(() => [
|
|
151
151
|
createVNode(_component_a_layout_sider, {
|
|
152
|
-
class: normalizeClass(`${prefixClsName}-sider`),
|
|
152
|
+
class: normalizeClass(`${prefixClsName}-sider` + (siderCollapsed.value ? ` ${prefixClsName}-sider-collapsed` : "")),
|
|
153
153
|
width: siderWidth,
|
|
154
154
|
collapsible: true,
|
|
155
155
|
breakpoint: __props.siderBreakpoint,
|
|
@@ -171,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
171
171
|
], 2),
|
|
172
172
|
createVNode(_component_a_button, {
|
|
173
173
|
size: "mini",
|
|
174
|
-
class: normalizeClass(`${prefixClsName}-sider-collapsed`),
|
|
174
|
+
class: normalizeClass(`${prefixClsName}-sider-collapsed-icon`),
|
|
175
175
|
onClick: _cache[0] || (_cache[0] = ($event) => onSiderCollapse(!siderCollapsed.value))
|
|
176
176
|
}, {
|
|
177
177
|
icon: withCtx(() => [
|
package/es/style.css
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
.keyblade-pro-breadcrumb-icon-item {
|
|
5
5
|
cursor: text;
|
|
6
6
|
}
|
|
7
|
+
.keyblade-pro-page-container {
|
|
8
|
+
padding: 0 20px 20px 20px;
|
|
9
|
+
}
|
|
10
|
+
.keyblade-pro-reuse-tabs {
|
|
11
|
+
position: relative;
|
|
12
|
+
background-color: var(--color-bg-2);
|
|
13
|
+
padding: 4px 20px;
|
|
14
|
+
}
|
|
7
15
|
.keyblade-pro-layout {
|
|
8
16
|
width: 100%;
|
|
9
17
|
height: 100%;
|
|
@@ -16,7 +24,7 @@
|
|
|
16
24
|
top: 0;
|
|
17
25
|
left: 0;
|
|
18
26
|
width: 100%;
|
|
19
|
-
height: var(--
|
|
27
|
+
height: var(--0bcf949e);
|
|
20
28
|
z-index: 100;
|
|
21
29
|
display: flex;
|
|
22
30
|
align-items: center;
|
|
@@ -38,7 +46,7 @@
|
|
|
38
46
|
font-size: 18px;
|
|
39
47
|
}
|
|
40
48
|
.keyblade-pro-layout-sider {
|
|
41
|
-
padding-top: var(--
|
|
49
|
+
padding-top: var(--0bcf949e);
|
|
42
50
|
position: fixed;
|
|
43
51
|
top: 0;
|
|
44
52
|
left: 0;
|
|
@@ -51,14 +59,14 @@
|
|
|
51
59
|
height: 100%;
|
|
52
60
|
overflow: auto;
|
|
53
61
|
}
|
|
54
|
-
.keyblade-pro-layout-sider-collapsed {
|
|
62
|
+
.keyblade-pro-layout-sider-collapsed-icon.arco-btn {
|
|
55
63
|
position: absolute;
|
|
56
64
|
right: 12px;
|
|
57
65
|
bottom: 12px;
|
|
58
66
|
}
|
|
59
67
|
.keyblade-pro-layout-body {
|
|
60
|
-
padding-top: var(--
|
|
61
|
-
padding-left: var(--
|
|
68
|
+
padding-top: var(--0bcf949e);
|
|
69
|
+
padding-left: var(--746cffdc);
|
|
62
70
|
min-height: 100vh;
|
|
63
71
|
overflow-y: hidden;
|
|
64
72
|
background-color: var(--color-fill-2);
|
|
@@ -73,15 +81,7 @@
|
|
|
73
81
|
text-align: center;
|
|
74
82
|
}
|
|
75
83
|
.keyblade-pro-layout-body-collapsed {
|
|
76
|
-
padding-left: var(--
|
|
77
|
-
}
|
|
78
|
-
.keyblade-pro-page-container {
|
|
79
|
-
padding: 0 20px 20px 20px;
|
|
80
|
-
}
|
|
81
|
-
.keyblade-pro-reuse-tabs {
|
|
82
|
-
position: relative;
|
|
83
|
-
background-color: var(--color-bg-2);
|
|
84
|
-
padding: 4px 20px;
|
|
84
|
+
padding-left: var(--59d7be69);
|
|
85
85
|
}
|
|
86
86
|
.keyblade-pro-menu-item-img {
|
|
87
87
|
width: 14px;
|