@pubinfo/core 2.0.0-beta.31 → 2.0.0-beta.32
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/dist/{AppSetting-C1dyZ-8E.js → AppSetting-DhcdApoo.js} +17 -17
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js → HCheckList.vue_vue_type_script_setup_true_lang-Bi9jyf-Y.js} +2 -2
- package/dist/HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js +20 -0
- package/dist/HToggle-Di3WNnzE.js +34 -0
- package/dist/{PreferencesContent-DgycKl9e.js → PreferencesContent-BdSTTSM-.js} +6 -6
- package/dist/{SettingBreadcrumb-BlgX0ZNE.js → SettingBreadcrumb-ChQx96br.js} +8 -8
- package/dist/{SettingCopyright-FmqadL1w.js → SettingCopyright-CkMab5VK.js} +8 -8
- package/dist/{SettingEnableTransition-dzMgw8cN.js → SettingEnableTransition-BSXU87vT.js} +15 -15
- package/dist/{SettingHome-BwlXsTTt.js → SettingHome-DwioPezC.js} +13 -13
- package/dist/{SettingMenu-B5tHMS24.js → SettingMenu-yvKu7Yoq.js} +25 -25
- package/dist/{SettingMode-Bh0mvh66.js → SettingMode-C99ADNad.js} +6 -6
- package/dist/{SettingNavSearch-D4g24uwl.js → SettingNavSearch-mURLLetZ.js} +8 -8
- package/dist/{SettingOther-DwTtu6As.js → SettingOther-BGoSdp7a.js} +9 -9
- package/dist/{SettingPage-cDQXtwcG.js → SettingPage-Wwy5PtzC.js} +7 -7
- package/dist/{SettingTabbar-m8X7jEJH.js → SettingTabbar-C2ya4r4U.js} +9 -9
- package/dist/{SettingThemes-CX9ISeD_.js → SettingThemes-7oYUooGR.js} +27 -27
- package/dist/{SettingToolbar-ByLjBezg.js → SettingToolbar-A6OiGfAD.js} +5 -5
- package/dist/{SettingTopbar-o8wBZolp.js → SettingTopbar-GDEPltxm.js} +9 -9
- package/dist/{SettingWidthMode-Ux60mKiv.js → SettingWidthMode-qwkmTFIK.js} +15 -15
- package/dist/{TopThinMode-17GrCZdo.js → TopThinMode-BkmPN66X.js} +1 -1
- package/dist/{_...all_-6l5FWUkL.js → _...all_-CdjdWhUr.js} +5 -5
- package/dist/assets/styles/index.d.ts +3 -3
- package/dist/{colors-DiWJrScm.js → colors-7rGvqeKK.js} +1 -1
- package/dist/{index-CfasTv4x.js → index-BC-gcL8e.js} +4 -4
- package/dist/{index-Md7zV10q.js → index-C-6XxK2D.js} +5 -5
- package/dist/{index-bsi-FZDt.js → index-CgLD0zqO.js} +169 -169
- package/dist/{index-BmMbAV1Y.js → index-CtyzB2cq.js} +13 -13
- package/dist/{index-Ckgil96Y.js → index-Cw1uN5m-.js} +2 -2
- package/dist/{index-Be7jJtXg.js → index-DVUDANdM.js} +5 -5
- package/dist/{index-Dzwhw1L9.js → index-Dpq4uqWd.js} +22 -22
- package/dist/{index-DgpcBgWl.js → index-DuoLZ3r3.js} +4394 -4294
- package/dist/{index-De_ME_Ws.js → index-sYaQXYQC.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js → index.vue_vue_type_style_index_0_scoped_051f4e99_lang-CuU-JtjC.js} +870 -856
- package/dist/interface.d.ts +12 -0
- package/dist/layout/ui-kit/HDialog.vue.d.ts +1 -1
- package/dist/layout/ui-kit/HSlideover.vue.d.ts +1 -1
- package/dist/layout/ui-kit/HTooltip.vue.d.ts +1 -1
- package/dist/{menu-CC5544p-.js → menu-BL6hH6OM.js} +1862 -1856
- package/dist/{pick-CJo2YiT-.js → pick-CAmKymZJ.js} +1 -1
- package/dist/request.js +34 -32
- package/dist/stores/plugin/persist.d.ts +2 -2
- package/dist/style.css +3 -3
- package/package.json +25 -26
- package/src/assets/styles/globals.css +188 -0
- package/src/assets/styles/index.ts +3 -3
- package/src/assets/styles/nprogress.css +68 -0
- package/src/assets/styles/rbac.css +51 -0
- package/src/assets/styles/resources/utils.css +53 -0
- package/src/assets/styles/resources/variables.css +5 -0
- package/src/components/NotAllowed/index.vue +4 -6
- package/src/components/PassStrengthValidator/index.vue +33 -48
- package/src/components/PassStrengthValidator/rule.vue +13 -25
- package/src/components/PubinfoIcon/index.vue +4 -8
- package/src/composables/watchDiff.ts +1 -1
- package/src/create.ts +10 -3
- package/src/interface.ts +19 -0
- package/src/layout/Layout.vue +113 -161
- package/src/layout/components/Content/IframeView.vue +1 -2
- package/src/layout/components/Content/LinkView.vue +2 -2
- package/src/layout/components/Content/index.vue +1 -2
- package/src/layout/components/Copyright/index.vue +7 -8
- package/src/layout/components/Header/TopMode/More.vue +24 -32
- package/src/layout/components/Header/TopMode/NotCursor.vue +20 -29
- package/src/layout/components/Header/TopMode/index.vue +1 -1
- package/src/layout/components/Header/index.vue +118 -206
- package/src/layout/components/Logo/index.vue +4 -19
- package/src/layout/components/Menu/item.vue +16 -25
- package/src/layout/components/SettingBar/AppSetting.vue +11 -11
- package/src/layout/components/SettingBar/components/DayNightToggle.vue +26 -120
- package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +111 -136
- package/src/layout/components/SettingBar/components/SettingMode.vue +78 -88
- package/src/layout/components/SettingBar/components/SettingThemes.vue +48 -85
- package/src/layout/components/SettingBar/components/SettingWidthMode.vue +63 -71
- package/src/layout/components/SettingBar/index.vue +29 -62
- package/src/layout/components/Sidebar/MainSidebar.vue +81 -126
- package/src/layout/components/Sidebar/SubSidebar.vue +50 -59
- package/src/layout/components/Tools/Breadcrumb/index.vue +6 -12
- package/src/layout/components/Tools/DayNightSwitch.vue +40 -63
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +210 -277
- package/src/layout/components/Tools/Search.vue +5 -5
- package/src/layout/components/Tools/index.vue +1 -1
- package/src/layout/components/Topbar/Tabbar/MoreAction.vue +98 -145
- package/src/layout/components/Topbar/Tabbar/index.vue +259 -395
- package/src/layout/components/Topbar/Toolbar/Favorites.vue +4 -4
- package/src/layout/components/Topbar/Toolbar/index.vue +39 -56
- package/src/layout/components/Topbar/index.vue +16 -19
- package/src/layout/composables/useContext.ts +1 -1
- package/src/layout/composables/useMenu.ts +1 -1
- package/src/layout/composables/useTabbar.ts +1 -1
- package/src/layout/composables/useTitle.ts +1 -1
- package/src/layout/provider.ts +1 -1
- package/src/layout/ui-kit/HDialog.vue +1 -1
- package/src/layout/ui-kit/HDivider.vue +6 -35
- package/src/layout/ui-kit/HSlideover.vue +1 -1
- package/src/layout/ui-kit/HToggle.vue +49 -93
- package/src/layout/ui-kit/HTooltip.vue +1 -1
- package/src/locales/index.ts +1 -1
- package/src/pages/personal/profile/index.vue +1 -1
- package/src/pages/system/[...all].vue +4 -6
- package/src/pages/system/change-organization/index.vue +23 -37
- package/src/pages/system/change-password/components/ChangePasswordForm/index.vue +1 -1
- package/src/pages/system/change-password/index.vue +16 -29
- package/src/pages/system/not-permission/index.vue +4 -6
- package/src/route/guard/basic.ts +1 -1
- package/src/route/routes.ts +1 -1
- package/src/stores/modules/favorites.ts +1 -1
- package/src/stores/modules/menu.ts +1 -1
- package/src/stores/modules/route.ts +2 -2
- package/src/stores/modules/settings.ts +7 -7
- package/src/stores/modules/user.ts +2 -2
- package/src/stores/plugin/persist.ts +3 -3
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
- package/src/utils/crypto.ts +1 -1
- package/types/auto-imports.d.ts +1 -1
- package/types/components.d.ts +1 -0
- package/types/vue-router.d.ts +8 -8
- package/dist/HDivider-DgXBhPr0.js +0 -21
- package/dist/HToggle-Cd71WKvG.js +0 -34
- package/src/assets/styles/globals.scss +0 -189
- package/src/assets/styles/nprogress.scss +0 -63
- package/src/assets/styles/rbac.scss +0 -61
- package/src/assets/styles/resources/utils.scss +0 -53
- package/src/assets/styles/resources/variables.scss +0 -6
|
@@ -38,219 +38,131 @@ const { settingsStore } = useContext();
|
|
|
38
38
|
</Transition>
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
|
-
<style
|
|
42
|
-
[data-app-width-mode="center"],
|
|
43
|
-
[data-app-width-mode="center-max-width"] {
|
|
44
|
-
|
|
45
|
-
width: var(--g-app-width);
|
|
46
|
-
max-width: 100%;
|
|
47
|
-
}
|
|
41
|
+
<style scoped>
|
|
42
|
+
[data-app-width-mode="center"] header,
|
|
43
|
+
[data-app-width-mode="center-max-width"] header {
|
|
44
|
+
--at-apply: w-[--g-app-width] max-w-full;
|
|
48
45
|
}
|
|
49
46
|
|
|
50
47
|
header {
|
|
51
|
-
|
|
52
|
-
top: 0;
|
|
53
|
-
right: 0;
|
|
54
|
-
left: 0;
|
|
55
|
-
z-index: 1000;
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: var(--g-header-height);
|
|
60
|
-
padding: 0 20px;
|
|
61
|
-
margin: 0 auto;
|
|
62
|
-
color: var(--g-header-color);
|
|
63
|
-
background-color: var(--g-header-bg);
|
|
64
|
-
// box-shadow: -1px 0 0 0 var(--g-border-color), 1px 0 0 0 var(--g-border-color), 0 1px 0 0 var(--g-border-color);
|
|
48
|
+
--at-apply: fixed top-0 right-0 left-0 z-1000 flex items-center w-full h-[--g-header-height] mx-auto my-0 px-5 py-0 text-[--g-header-color] bg-[--g-header-bg];
|
|
65
49
|
transition: background-color 0.3s;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.header-container {
|
|
53
|
+
--at-apply: flex items-center justify-between w-[--g-header-width] h-full mx-auto my-0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:deep(.main) {
|
|
57
|
+
--at-apply: flex flex-[auto] flex-nowrap items-center w-0 h-full;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:deep(.main .menu-active-arrow .item-container::before),
|
|
61
|
+
:deep(.main .menu-active-arrow .menu-item::before) {
|
|
62
|
+
--at-apply: absolute -translate-x-2/4 w-0 h-0 content-empty border-b-[color:var(--g-header-bg)] opacity-0 transition-all duration-[0.3s] border-b-[5px] border-x-[5px] border-x-transparent border-solid left-2/4 bottom-0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:deep(.main .menu-active-arrow .item-container.active::before),
|
|
66
|
+
:deep(.main .menu-active-arrow .menu-item.active::before) {
|
|
67
|
+
--at-apply: bottom-2 op-100;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:deep(.main .menu-active-line .item-container::before),
|
|
71
|
+
:deep(.main .menu-active-line .menu-item::before) {
|
|
72
|
+
--at-apply: absolute -translate-x-2/4 w-0 h-1 content-empty bg-[--g-header-menu-active-bg] opacity-0 transition-all duration-[0.3s] rounded-sm left-2/4 bottom-1.5;
|
|
73
|
+
box-shadow: 0 0 0 1px var(--g-header-bg);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:deep(.main .menu-active-line .item-container.active::before),
|
|
77
|
+
:deep(.main .menu-active-line .menu-item.active::before) {
|
|
78
|
+
--at-apply: w-5 op-100;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:deep(.main .menu-active-dot .item-container::before),
|
|
82
|
+
:deep(.main .menu-active-dot .menu-item::before) {
|
|
83
|
+
--at-apply: absolute -translate-x-2/4 w-2.5 h-2.5 content-empty bg-[--g-header-menu-active-bg]
|
|
84
|
+
opacity-0 transition-all duration-[0.3s] rounded-[50%] left-2/4 bottom-0;
|
|
85
|
+
box-shadow: 0 0 0 1px var(--g-main-sidebar-bg);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:deep(.main .menu-active-dot .item-container.active::before),
|
|
89
|
+
:deep(.main .menu-active-dot .menu-item.active::before) {
|
|
90
|
+
--at-apply: bottom-1 op-100;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:deep(.menu-container) {
|
|
94
|
+
--at-apply: flex-1 h-full overflow-x-auto mx-[30px] my-0 px-5 py-0;
|
|
95
|
+
scrollbar-width: none;
|
|
96
|
+
mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:deep(.menu-container::-webkit-scrollbar) {
|
|
100
|
+
--at-apply: hidden;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:deep(.menu-container.nothin) {
|
|
104
|
+
--at-apply: flex;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:deep(.menu-container .menu-item-container-layout) {
|
|
108
|
+
--at-apply: flex flex-row w-auto;
|
|
109
|
+
}
|
|
66
110
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
@include position-center(x);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.item-container.active::before,
|
|
124
|
-
.menu-item.active::before {
|
|
125
|
-
width: 20px;
|
|
126
|
-
opacity: 1;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&-dot {
|
|
131
|
-
.item-container::before,
|
|
132
|
-
.menu-item::before {
|
|
133
|
-
bottom: 0;
|
|
134
|
-
width: 10px;
|
|
135
|
-
height: 10px;
|
|
136
|
-
content: "";
|
|
137
|
-
background-color: var(--g-header-menu-active-bg);
|
|
138
|
-
border-radius: 50%;
|
|
139
|
-
box-shadow: 0 0 0 1px var(--g-main-sidebar-bg);
|
|
140
|
-
opacity: 0;
|
|
141
|
-
transition: all 0.3s;
|
|
142
|
-
|
|
143
|
-
@include position-center(x);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.item-container.active::before,
|
|
147
|
-
.menu-item.active::before {
|
|
148
|
-
bottom: 4px;
|
|
149
|
-
opacity: 1;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// @media screen and (max-width: $g-header-width) {
|
|
157
|
-
// .header-container {
|
|
158
|
-
// width: 100%;
|
|
159
|
-
// }
|
|
160
|
-
// }
|
|
161
|
-
|
|
162
|
-
:deep(.menu-container) {
|
|
163
|
-
flex: 1;
|
|
164
|
-
height: 100%;
|
|
165
|
-
padding: 0 20px;
|
|
166
|
-
margin: 0 30px;
|
|
167
|
-
overflow-x: auto;
|
|
168
|
-
|
|
169
|
-
// firefox隐藏滚动条
|
|
170
|
-
scrollbar-width: none;
|
|
171
|
-
mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
|
|
172
|
-
|
|
173
|
-
// chrome隐藏滚动条
|
|
174
|
-
&::-webkit-scrollbar {
|
|
175
|
-
display: none;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&.nothin {
|
|
179
|
-
display: flex;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.menu-item-container-layout {
|
|
183
|
-
display: flex;
|
|
184
|
-
flex-direction: row;
|
|
185
|
-
width: auto;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
:deep(.menu) {
|
|
190
|
-
display: inline-flex;
|
|
191
|
-
height: 100%;
|
|
192
|
-
background-color: var(--g-header-bg);
|
|
193
|
-
|
|
194
|
-
.menu-item {
|
|
195
|
-
.v-popper--theme-not-cursor {
|
|
196
|
-
height: 100%;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.menu-item-container {
|
|
200
|
-
padding: 0 6px;
|
|
201
|
-
color: var(--g-header-menu-color);
|
|
202
|
-
background-color: var(--g-header-menu-bg);
|
|
203
|
-
|
|
204
|
-
&:hover {
|
|
205
|
-
color: var(--g-header-menu-hover-color);
|
|
206
|
-
background-color: var(--g-header-menu-hover-bg);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.menu-item-container-icon {
|
|
210
|
-
transform: scale(1);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
svg {
|
|
214
|
-
color: transparent;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
&.is-dev {
|
|
219
|
-
.menu-item-container {
|
|
220
|
-
cursor: not-allowed;
|
|
221
|
-
|
|
222
|
-
i {
|
|
223
|
-
filter: grayscale(100%);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
span {
|
|
227
|
-
opacity: 0.8;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
&.active .menu-item-container {
|
|
233
|
-
color: var(--g-header-menu-active-color);
|
|
234
|
-
background-color: var(--g-header-menu-active-bg);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
:deep(.tools) {
|
|
240
|
-
padding: 0;
|
|
241
|
-
|
|
242
|
-
.buttons .item .icon {
|
|
243
|
-
color: var(--g-header-color);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.user-container {
|
|
247
|
-
font-size: 16px;
|
|
248
|
-
color: var(--g-header-color);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
111
|
+
:deep(.menu) {
|
|
112
|
+
--at-apply: inline-flex h-full bg-[--g-header-bg];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:deep(.menu .menu-item .v-popper--theme-not-cursor) {
|
|
116
|
+
--at-apply: h-full;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:deep(.menu .menu-item .menu-item-container) {
|
|
120
|
+
--at-apply: px-1.5 py-0 text-[--g-header-menu-color] bg-[--g-header-menu-bg];
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:deep(.menu .menu-item .menu-item-container:hover) {
|
|
124
|
+
color: var(--g-header-menu-hover-color);
|
|
125
|
+
background-color: var(--g-header-menu-hover-bg);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:deep(.menu .menu-item .menu-item-container .menu-item-container-icon) {
|
|
129
|
+
transform: scale(1);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:deep(.menu .menu-item .menu-item-container svg) {
|
|
133
|
+
--at-apply: text-transparent;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:deep(.menu .menu-item.is-dev .menu-item-container) {
|
|
137
|
+
--at-apply: cursor-not-allowed;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:deep(.menu .menu-item.is-dev .menu-item-container i) {
|
|
141
|
+
filter: grayscale(100%);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:deep(.menu .menu-item.is-dev .menu-item-container span) {
|
|
145
|
+
--at-apply: op-80;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:deep(.menu .menu-item.active .menu-item-container) {
|
|
149
|
+
color: var(--g-header-menu-active-color);
|
|
150
|
+
background-color: var(--g-header-menu-active-bg);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:deep(.tools) {
|
|
154
|
+
--at-apply: p-0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:deep(.tools .buttons .item .icon) {
|
|
158
|
+
color: var(--g-header-color);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:deep(.tools .user-container) {
|
|
162
|
+
--at-apply: text-16px;
|
|
163
|
+
color: var(--g-header-color);
|
|
251
164
|
}
|
|
252
165
|
|
|
253
|
-
// 头部动画
|
|
254
166
|
.header-enter-active,
|
|
255
167
|
.header-leave-active {
|
|
256
168
|
transition: transform 0.3s;
|
|
@@ -31,7 +31,7 @@ const to = computed(() => {
|
|
|
31
31
|
<template>
|
|
32
32
|
<RouterLink
|
|
33
33
|
:to="to"
|
|
34
|
-
class="
|
|
34
|
+
class="relative w-max bg-inherit p-[inherit] h-[var(--g-sidebar-logo-height)] w-inherit flex-center gap-2 px-3 text-inherit no-underline"
|
|
35
35
|
:class="{ 'cursor-pointer': settingsStore.settings.home.enable }"
|
|
36
36
|
>
|
|
37
37
|
<PubinfoIcon
|
|
@@ -40,7 +40,7 @@ const to = computed(() => {
|
|
|
40
40
|
:size="30"
|
|
41
41
|
color="transparent"
|
|
42
42
|
/>
|
|
43
|
-
<span v-if="showTitle" class="
|
|
43
|
+
<span v-if="showTitle" class="text-19px font-semibold block truncate">
|
|
44
44
|
<slot>
|
|
45
45
|
{{ appTitle }}
|
|
46
46
|
</slot>
|
|
@@ -48,23 +48,8 @@ const to = computed(() => {
|
|
|
48
48
|
</RouterLink>
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
|
-
<style
|
|
52
|
-
.title {
|
|
53
|
-
font-size: 19px;
|
|
54
|
-
font-weight: 600;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.logo {
|
|
58
|
-
position: relative;
|
|
59
|
-
width: max-content;
|
|
60
|
-
height: inherit;
|
|
61
|
-
padding: inherit;
|
|
62
|
-
background-color: inherit;
|
|
63
|
-
}
|
|
64
|
-
|
|
51
|
+
<style scoped>
|
|
65
52
|
span {
|
|
66
|
-
|
|
67
|
-
color: var(--g-header-color);
|
|
68
|
-
letter-spacing: 1px;
|
|
53
|
+
--at-apply: text-2xl text-[--g-header-color] tracking-px;
|
|
69
54
|
}
|
|
70
55
|
</style>
|
|
@@ -128,39 +128,30 @@ defineExpose({
|
|
|
128
128
|
</div>
|
|
129
129
|
</template>
|
|
130
130
|
|
|
131
|
-
<style
|
|
132
|
-
.badge {
|
|
133
|
-
:
|
|
134
|
-
|
|
135
|
-
left: initial !important;
|
|
136
|
-
}
|
|
131
|
+
<style scoped>
|
|
132
|
+
.badge :deep(> span) {
|
|
133
|
+
--at-apply: right-0;
|
|
134
|
+
left: initial !important;
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
.sharp-corner {
|
|
140
138
|
--at-apply: relative ml-1 w-[10px];
|
|
139
|
+
}
|
|
141
140
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
.sharp-corner::before {
|
|
142
|
+
--at-apply: absolute h-1.5px w-[6px] bg-current transition-transform-200 content-empty -translate-y-[1px];
|
|
143
|
+
}
|
|
145
144
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
145
|
+
.sharp-corner::after {
|
|
146
|
+
--at-apply: absolute h-1.5px w-[6px] bg-current transition-transform-200 content-empty -translate-y-[1px];
|
|
149
147
|
}
|
|
150
148
|
|
|
151
|
-
.sub-sidebar-container {
|
|
152
|
-
|
|
153
|
-
|
|
149
|
+
.sub-sidebar-container .menu-item-container-layout:has(.system-point) {
|
|
150
|
+
--at-apply: relative;
|
|
151
|
+
}
|
|
154
152
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
width: 6px;
|
|
159
|
-
height: 6px;
|
|
160
|
-
content: "";
|
|
161
|
-
background: var(--g-sub-sidebar-menu-active-color);
|
|
162
|
-
border-radius: 50%;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
153
|
+
.sub-sidebar-container .menu-item-container-layout:has(.system-point)::before {
|
|
154
|
+
--at-apply: absolute w-1.5 h-1.5 content-empty rounded-[50%] left-3;
|
|
155
|
+
background: var(--g-sub-sidebar-menu-active-color);
|
|
165
156
|
}
|
|
166
157
|
</style>
|
|
@@ -119,8 +119,8 @@ function excludesComponents(all: string[], excludes: string[]) {
|
|
|
119
119
|
</HSlideover>
|
|
120
120
|
</template>
|
|
121
121
|
|
|
122
|
-
<style
|
|
123
|
-
|
|
122
|
+
<style scoped>
|
|
123
|
+
:deep(.setting-item) {
|
|
124
124
|
--at-apply:
|
|
125
125
|
flex
|
|
126
126
|
items-center
|
|
@@ -130,17 +130,17 @@ function excludesComponents(all: string[], excludes: string[]) {
|
|
|
130
130
|
py-2
|
|
131
131
|
rounded-2
|
|
132
132
|
transition;
|
|
133
|
+
}
|
|
133
134
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
:deep(.setting-item:hover) {
|
|
136
|
+
--at-apply: bg-stone-1 dark:bg-stone-1 dark:bg-stone-9;
|
|
137
|
+
}
|
|
137
138
|
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
:deep(.setting-item .label) {
|
|
140
|
+
--at-apply: flex items-center flex-shrink-0 gap-2 text-sm;
|
|
141
|
+
}
|
|
140
142
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
}
|
|
143
|
+
:deep(.setting-item .label i) {
|
|
144
|
+
--at-apply: text-xl text-orange cursor-help;
|
|
145
145
|
}
|
|
146
146
|
</style>
|