@24city/web-console 0.3.9 → 0.3.11

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/styles.css CHANGED
@@ -4125,17 +4125,21 @@
4125
4125
  }
4126
4126
  }
4127
4127
  /*
4128
- * 图文入口:每一项是三张真实封面扇形叠放加名称,选中项名称加粗、下方 3px 主色条(同 StepTabs 的选中条)。
4129
- * 宽屏按项数等分一行,项与项之间一条细竖线;超过四项时封面和名称小一档;手机上一行横向滑动。颜色只引用设计变量。
4128
+ * 图文入口:每一项是三张真实封面扇形叠放加名称,名称下可带一行说明(description,最多两行,放不下才省略),选中项名称加粗、
4129
+ * 下方 3px 主色条(同 StepTabs 的选中条)。宽屏按项数等分一行,项与项之间一条细竖线;超过四项时封面和名称小一档;
4130
+ * 手机上一行横向滑动。颜色只引用设计变量。
4130
4131
  */
4131
4132
 
4132
- ._tabs_6jcnc_6 {
4133
+ ._tabs_d9vgt_7 {
4133
4134
  --cover-width: 42px;
4134
4135
  --cover-height: 56px;
4135
4136
  --cover-step: 19px;
4136
4137
  --fan-width: 80px;
4137
4138
  --fan-height: 64px;
4138
4139
  --tab-padding: 18px;
4140
+ /* 名称和说明的行高:有说明的入口里,文字块按“名称 + 说明的行数”留高,各项名称才在同一条线上。 */
4141
+ --label-line: 26px;
4142
+ --hint-line: 18px;
4139
4143
 
4140
4144
  display: grid;
4141
4145
  min-width: 0;
@@ -4144,16 +4148,17 @@
4144
4148
  box-shadow: inset 0 -1px 0 var(--app-border-1);
4145
4149
  }
4146
4150
 
4147
- ._tabs_6jcnc_6[data-dense='true'] {
4151
+ ._tabs_d9vgt_7[data-dense='true'] {
4148
4152
  --cover-width: 30px;
4149
4153
  --cover-height: 40px;
4150
4154
  --cover-step: 12px;
4151
4155
  --fan-width: 54px;
4152
4156
  --fan-height: 52px;
4153
4157
  --tab-padding: 10px;
4158
+ --label-line: 24px;
4154
4159
  }
4155
4160
 
4156
- ._tab_6jcnc_6 {
4161
+ ._tab_d9vgt_7 {
4157
4162
  position: relative;
4158
4163
  display: flex;
4159
4164
  height: 96px;
@@ -4164,12 +4169,12 @@
4164
4169
  padding: 0 var(--tab-padding);
4165
4170
  }
4166
4171
 
4167
- ._tabs_6jcnc_6[data-dense='true'] ._tab_6jcnc_6 {
4172
+ ._tabs_d9vgt_7[data-dense='true'] ._tab_d9vgt_7 {
4168
4173
  height: 88px;
4169
4174
  gap: 8px;
4170
4175
  }
4171
4176
 
4172
- ._tab_6jcnc_6.semi-button {
4177
+ ._tab_d9vgt_7.semi-button {
4173
4178
  height: 96px;
4174
4179
  justify-content: flex-start;
4175
4180
  padding: 0 var(--tab-padding);
@@ -4178,34 +4183,34 @@
4178
4183
  text-align: left;
4179
4184
  }
4180
4185
 
4181
- ._tabs_6jcnc_6[data-dense='true'] ._tab_6jcnc_6.semi-button {
4186
+ ._tabs_d9vgt_7[data-dense='true'] ._tab_d9vgt_7.semi-button {
4182
4187
  height: 88px;
4183
4188
  }
4184
4189
 
4185
- ._tab_6jcnc_6.semi-button:not(.semi-button-disabled):hover,
4186
- ._tab_6jcnc_6.semi-button:not(.semi-button-disabled):active {
4190
+ ._tab_d9vgt_7.semi-button:not(.semi-button-disabled):hover,
4191
+ ._tab_d9vgt_7.semi-button:not(.semi-button-disabled):active {
4187
4192
  background-color: transparent;
4188
4193
  }
4189
4194
 
4190
- ._tab_6jcnc_6.semi-button:focus-visible {
4195
+ ._tab_d9vgt_7.semi-button:focus-visible {
4191
4196
  outline: 2px solid rgb(var(--app-brand-6));
4192
4197
  outline-offset: -2px;
4193
4198
  }
4194
4199
 
4195
4200
  /* Semi 按钮把内容包在 .semi-button-content 里:封面和名称左右排。 */
4196
- ._tab_6jcnc_6 .semi-button-content {
4201
+ ._tab_d9vgt_7 .semi-button-content {
4197
4202
  display: flex;
4198
4203
  min-width: 0;
4199
4204
  align-items: center;
4200
4205
  gap: 14px;
4201
4206
  }
4202
4207
 
4203
- ._tabs_6jcnc_6[data-dense='true'] ._tab_6jcnc_6 .semi-button-content {
4208
+ ._tabs_d9vgt_7[data-dense='true'] ._tab_d9vgt_7 .semi-button-content {
4204
4209
  gap: 8px;
4205
4210
  }
4206
4211
 
4207
4212
  /* 项与项之间的细竖线。 */
4208
- ._tab_6jcnc_6 + ._tab_6jcnc_6::before {
4213
+ ._tab_d9vgt_7 + ._tab_d9vgt_7::before {
4209
4214
  position: absolute;
4210
4215
  top: 30px;
4211
4216
  bottom: 30px;
@@ -4215,7 +4220,7 @@
4215
4220
  content: '';
4216
4221
  }
4217
4222
 
4218
- ._tab_6jcnc_6::after {
4223
+ ._tab_d9vgt_7::after {
4219
4224
  position: absolute;
4220
4225
  right: var(--tab-padding);
4221
4226
  bottom: 0;
@@ -4226,13 +4231,13 @@
4226
4231
  content: '';
4227
4232
  }
4228
4233
 
4229
- ._tab_6jcnc_6[data-active='true']::after {
4234
+ ._tab_d9vgt_7[data-active='true']::after {
4230
4235
  background-color: rgb(var(--app-brand-6));
4231
4236
  }
4232
4237
 
4233
4238
  /* ---------- 封面扇面 ---------- */
4234
4239
 
4235
- ._fan_6jcnc_109 {
4240
+ ._fan_d9vgt_114 {
4236
4241
  position: relative;
4237
4242
  width: var(--fan-width);
4238
4243
  height: var(--fan-height);
@@ -4240,7 +4245,7 @@
4240
4245
  }
4241
4246
 
4242
4247
  /* 每张封面先是灰色占位,图片读出来后淡入;读不出来就一直是占位。 */
4243
- ._cover_6jcnc_117 {
4248
+ ._cover_d9vgt_122 {
4244
4249
  position: absolute;
4245
4250
  top: 6px;
4246
4251
  width: var(--cover-width);
@@ -4254,26 +4259,26 @@
4254
4259
  box-shadow: 0 2px 8px rgba(var(--app-shadow-color), 0.16);
4255
4260
  }
4256
4261
 
4257
- ._cover_6jcnc_117:nth-child(1) {
4262
+ ._cover_d9vgt_122:nth-child(1) {
4258
4263
  z-index: 1;
4259
4264
  left: 0;
4260
4265
  transform: rotate(-9deg);
4261
4266
  }
4262
4267
 
4263
- ._cover_6jcnc_117:nth-child(2) {
4268
+ ._cover_d9vgt_122:nth-child(2) {
4264
4269
  z-index: 3;
4265
4270
  top: 2px;
4266
4271
  left: var(--cover-step);
4267
4272
  background: linear-gradient(var(--semi-color-fill-2), var(--semi-color-fill-2)) var(--semi-color-bg-1);
4268
4273
  }
4269
4274
 
4270
- ._cover_6jcnc_117:nth-child(3) {
4275
+ ._cover_d9vgt_122:nth-child(3) {
4271
4276
  z-index: 2;
4272
4277
  left: calc(var(--cover-step) * 2);
4273
4278
  transform: rotate(9deg);
4274
4279
  }
4275
4280
 
4276
- ._coverImage_6jcnc_150 {
4281
+ ._coverImage_d9vgt_155 {
4277
4282
  display: block;
4278
4283
  width: 100%;
4279
4284
  height: 100%;
@@ -4281,138 +4286,159 @@
4281
4286
  opacity: 0;
4282
4287
  }
4283
4288
 
4284
- ._cover_6jcnc_117[data-loaded='true'] ._coverImage_6jcnc_150 {
4289
+ ._cover_d9vgt_122[data-loaded='true'] ._coverImage_d9vgt_155 {
4285
4290
  opacity: 1;
4286
4291
  }
4287
4292
 
4288
4293
  /* 选中或指针移上时扇面张开一点。 */
4289
- ._tab_6jcnc_6[data-active='true'] ._cover_6jcnc_117:nth-child(1),
4290
- ._tab_6jcnc_6:hover ._cover_6jcnc_117:nth-child(1) {
4294
+ ._tab_d9vgt_7[data-active='true'] ._cover_d9vgt_122:nth-child(1),
4295
+ ._tab_d9vgt_7:hover ._cover_d9vgt_122:nth-child(1) {
4291
4296
  transform: translateX(-3px) rotate(-13deg);
4292
4297
  }
4293
4298
 
4294
- ._tab_6jcnc_6[data-active='true'] ._cover_6jcnc_117:nth-child(3),
4295
- ._tab_6jcnc_6:hover ._cover_6jcnc_117:nth-child(3) {
4299
+ ._tab_d9vgt_7[data-active='true'] ._cover_d9vgt_122:nth-child(3),
4300
+ ._tab_d9vgt_7:hover ._cover_d9vgt_122:nth-child(3) {
4296
4301
  transform: translateX(3px) rotate(13deg);
4297
4302
  }
4298
4303
 
4299
4304
  @media (prefers-reduced-motion: no-preference) {
4300
- ._cover_6jcnc_117 {
4305
+ ._cover_d9vgt_122 {
4301
4306
  transition: transform var(--app-duration) var(--app-ease);
4302
4307
  }
4303
4308
 
4304
- ._coverImage_6jcnc_150 {
4309
+ ._coverImage_d9vgt_155 {
4305
4310
  transition: opacity var(--app-duration) var(--app-ease);
4306
4311
  }
4307
4312
  }
4308
4313
 
4309
4314
  /* ---------- 名称 ---------- */
4310
4315
 
4311
- ._text_6jcnc_185 {
4316
+ ._text_d9vgt_190 {
4312
4317
  display: flex;
4313
4318
  min-width: 0;
4314
4319
  flex-direction: column;
4315
4320
  align-items: flex-start;
4316
4321
  }
4317
4322
 
4318
- ._label_6jcnc_192 {
4323
+ ._label_d9vgt_197 {
4319
4324
  max-width: 100%;
4320
4325
  overflow: hidden;
4321
4326
  color: var(--semi-color-text-1);
4322
4327
  font-size: var(--app-font-size-h5);
4323
4328
  font-weight: 500;
4324
- line-height: 26px;
4329
+ line-height: var(--label-line);
4325
4330
  text-overflow: ellipsis;
4326
4331
  white-space: nowrap;
4327
4332
  }
4328
4333
 
4329
- ._tabs_6jcnc_6[data-dense='true'] ._label_6jcnc_192 {
4334
+ ._tabs_d9vgt_7[data-dense='true'] ._label_d9vgt_197 {
4330
4335
  font-size: var(--app-font-size-h6);
4331
- line-height: 24px;
4332
4336
  }
4333
4337
 
4334
- ._tab_6jcnc_6:hover ._label_6jcnc_192,
4335
- ._tab_6jcnc_6[data-active='true'] ._label_6jcnc_192 {
4338
+ ._tab_d9vgt_7:hover ._label_d9vgt_197,
4339
+ ._tab_d9vgt_7[data-active='true'] ._label_d9vgt_197 {
4336
4340
  color: var(--semi-color-text-0);
4337
4341
  }
4338
4342
 
4339
- ._tab_6jcnc_6[data-active='true'] ._label_6jcnc_192 {
4343
+ ._tab_d9vgt_7[data-active='true'] ._label_d9vgt_197 {
4340
4344
  font-weight: 600;
4341
4345
  }
4342
4346
 
4343
- ._hint_6jcnc_217 {
4347
+ /* 名称下面的说明:这一类的说明(description),没有内容时是原因(unavailable);最多两行,两行还放不下才省略。 */
4348
+ ._hint_d9vgt_222 {
4349
+ display: -webkit-box;
4344
4350
  max-width: 100%;
4345
4351
  overflow: hidden;
4346
4352
  color: var(--semi-color-text-2);
4347
4353
  font-size: var(--app-font-size-caption);
4348
4354
  font-weight: 400;
4349
- line-height: 20px;
4355
+ line-height: var(--hint-line);
4350
4356
  text-overflow: ellipsis;
4351
- white-space: nowrap;
4357
+ /* Semi 的按钮是 white-space: nowrap,这里要让说明换行(最多两行)。 */
4358
+ white-space: normal;
4359
+ -webkit-box-orient: vertical;
4360
+ -webkit-line-clamp: 2;
4361
+ }
4362
+
4363
+ /*
4364
+ * 有说明(data-note-lines='2')的入口:文字块至少是“名称 + 两行说明”高,说明只有一行的项名称也不往下掉;
4365
+ * 只有 unavailable 的原因(一行)时留一行。每一项都没有说明时不留,名称在封面旁居中,和原来一样。
4366
+ */
4367
+ ._tabs_d9vgt_7[data-note-lines='2'] ._text_d9vgt_190 {
4368
+ min-height: calc(var(--label-line) + var(--hint-line) * 2);
4369
+ }
4370
+
4371
+ ._tabs_d9vgt_7[data-note-lines='1'] ._text_d9vgt_190 {
4372
+ min-height: calc(var(--label-line) + var(--hint-line));
4352
4373
  }
4353
4374
 
4354
4375
  /* 当前没有内容的一项:封面褪色,名称灰字;仍可点(页面给出提示)。 */
4355
- ._tab_6jcnc_6[data-unavailable='true'] ._fan_6jcnc_109 {
4376
+ ._tab_d9vgt_7[data-unavailable='true'] ._fan_d9vgt_114 {
4356
4377
  opacity: 0.4;
4357
4378
  filter: grayscale(1);
4358
4379
  }
4359
4380
 
4360
- ._tab_6jcnc_6[data-unavailable='true'] ._label_6jcnc_192,
4361
- ._tab_6jcnc_6[data-unavailable='true']:hover ._label_6jcnc_192 {
4381
+ ._tab_d9vgt_7[data-unavailable='true'] ._label_d9vgt_197,
4382
+ ._tab_d9vgt_7[data-unavailable='true']:hover ._label_d9vgt_197 {
4362
4383
  color: var(--semi-color-text-2);
4363
4384
  }
4364
4385
 
4365
4386
  /* ---------- 加载占位 ---------- */
4366
4387
 
4367
- ._skeletonLabel_6jcnc_241.semi-skeleton-title {
4388
+ ._skeletonLabel_d9vgt_262.semi-skeleton-title {
4368
4389
  width: 72px;
4369
4390
  height: 18px;
4370
4391
  }
4371
4392
 
4372
4393
  /* 手机与竖屏平板:一行横向滑动,每一项按内容宽度排,封面和名称小一档。 */
4373
4394
  @media (max-width: 768px) {
4374
- ._tabs_6jcnc_6,
4375
- ._tabs_6jcnc_6[data-dense='true'] {
4395
+ ._tabs_d9vgt_7,
4396
+ ._tabs_d9vgt_7[data-dense='true'] {
4376
4397
  --cover-width: 32px;
4377
4398
  --cover-height: 43px;
4378
4399
  --cover-step: 13px;
4379
4400
  --fan-width: 58px;
4380
4401
  --fan-height: 50px;
4381
4402
  --tab-padding: 14px;
4403
+ --label-line: 24px;
4382
4404
 
4383
4405
  display: flex;
4384
4406
  overflow-x: auto;
4385
4407
  scrollbar-width: none;
4386
4408
  }
4387
4409
 
4388
- ._tabs_6jcnc_6::-webkit-scrollbar {
4410
+ ._tabs_d9vgt_7::-webkit-scrollbar {
4389
4411
  display: none;
4390
4412
  }
4391
4413
 
4392
- ._tab_6jcnc_6,
4393
- ._tabs_6jcnc_6[data-dense='true'] ._tab_6jcnc_6,
4394
- ._tab_6jcnc_6.semi-button,
4395
- ._tabs_6jcnc_6[data-dense='true'] ._tab_6jcnc_6.semi-button {
4414
+ ._tab_d9vgt_7,
4415
+ ._tabs_d9vgt_7[data-dense='true'] ._tab_d9vgt_7,
4416
+ ._tab_d9vgt_7.semi-button,
4417
+ ._tabs_d9vgt_7[data-dense='true'] ._tab_d9vgt_7.semi-button {
4396
4418
  height: 76px;
4397
4419
  flex: 0 0 auto;
4398
4420
  }
4399
4421
 
4400
- ._tab_6jcnc_6,
4401
- ._tabs_6jcnc_6[data-dense='true'] ._tab_6jcnc_6,
4402
- ._tab_6jcnc_6 .semi-button-content,
4403
- ._tabs_6jcnc_6[data-dense='true'] ._tab_6jcnc_6 .semi-button-content {
4422
+ ._tab_d9vgt_7,
4423
+ ._tabs_d9vgt_7[data-dense='true'] ._tab_d9vgt_7,
4424
+ ._tab_d9vgt_7 .semi-button-content,
4425
+ ._tabs_d9vgt_7[data-dense='true'] ._tab_d9vgt_7 .semi-button-content {
4404
4426
  gap: 10px;
4405
4427
  }
4406
4428
 
4407
- ._tab_6jcnc_6 + ._tab_6jcnc_6::before {
4429
+ ._tab_d9vgt_7 + ._tab_d9vgt_7::before {
4408
4430
  top: 22px;
4409
4431
  bottom: 22px;
4410
4432
  }
4411
4433
 
4412
- ._label_6jcnc_192,
4413
- ._tabs_6jcnc_6[data-dense='true'] ._label_6jcnc_192 {
4434
+ ._label_d9vgt_197,
4435
+ ._tabs_d9vgt_7[data-dense='true'] ._label_d9vgt_197 {
4414
4436
  font-size: var(--app-font-size-h6);
4415
- line-height: 24px;
4437
+ }
4438
+
4439
+ /* 每一项按内容宽度排:说明不能把一项撑得比屏幕还宽,最宽 144px(每行 12 个字)、最多两行。 */
4440
+ ._hint_d9vgt_222 {
4441
+ max-width: 144px;
4416
4442
  }
4417
4443
  }
4418
4444
  /* 筛选条触发器:32px 高的文字按钮,灰字 + 16px 箭头;悬停与展开时浅灰底。颜色只引用 Semi 设计变量。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24city/web-console",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "description": "24.city 产品用户端的界面底座:Semi Design 主题与设计变量、控制台外壳、账号与会员界面、列表与数据组件、界面规范与守卫",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,210 +0,0 @@
1
- import { jsx as t, jsxs as c, Fragment as H } from "react/jsx-runtime";
2
- import { useState as z, useEffect as $ } from "react";
3
- import { Layout as g, Button as v, Typography as O, Space as F, Nav as S } from "@douyinfe/semi-ui";
4
- import { IconSidebar as T } from "@douyinfe/semi-icons";
5
- import { useLocation as Q, useNavigate as Y, Outlet as q } from "react-router";
6
- import { h as D, B as J, o as V, e as X, W as Z, b as ee } from "./wallet-badge-COpdEDYI.js";
7
- import { u as P, b as te, a as ne } from "./context-CaVim6ZO.js";
8
- import { u as ae } from "./use-media-query-DvyinWNg.js";
9
- import { a as oe } from "./scale-smFifpMm.js";
10
- const se = "_layout_1vz0g_6", le = "_header_1vz0g_13", re = "_headerLeft_1vz0g_34", ce = "_logo_1vz0g_43", ie = "_logoMark_1vz0g_58", de = "_logoText_1vz0g_65", ue = "_modules_1vz0g_75", me = "_module_1vz0g_75", _e = "_moduleText_1vz0g_123", pe = "_moduleIcon_1vz0g_143", he = "_moduleInk_1vz0g_147", ge = "_headerRight_1vz0g_167", ve = "_walletSlot_1vz0g_172", fe = "_body_1vz0g_180", ye = "_sider_1vz0g_186", ke = "_siderInner_1vz0g_200", Ne = "_panel_1vz0g_207", ze = "_expandButton_1vz0g_244", be = "_menu_1vz0g_260", Ie = "_menuGroup_1vz0g_271", we = "_menuGroupPlain_1vz0g_280", xe = "_menuGroupTitle_1vz0g_285", Ce = "_menuList_1vz0g_296", Me = "_collapseButton_1vz0g_419", Be = "_mask_1vz0g_440", Le = "_content_1vz0g_449", Ge = "_contentCentered_1vz0g_455", Se = "_contentInner_1vz0g_467", Te = "_letterMark_1vz0g_520", e = {
11
- layout: se,
12
- header: le,
13
- headerLeft: re,
14
- logo: ce,
15
- logoMark: ie,
16
- logoText: de,
17
- modules: ue,
18
- module: me,
19
- moduleText: _e,
20
- moduleIcon: pe,
21
- moduleInk: he,
22
- headerRight: ge,
23
- walletSlot: ve,
24
- body: fe,
25
- sider: ye,
26
- siderInner: ke,
27
- panel: Ne,
28
- expandButton: ze,
29
- menu: be,
30
- menuGroup: Ie,
31
- menuGroupPlain: we,
32
- menuGroupTitle: xe,
33
- menuList: Ce,
34
- collapseButton: Me,
35
- mask: Be,
36
- content: Le,
37
- contentCentered: Ge,
38
- contentInner: Se,
39
- letterMark: Te
40
- }, $e = (a, l) => a === l || a.startsWith(`${l}/`), Pe = (a, l) => a.flatMap((o) => o.items).find((o) => new URL(o.to, "http://console.local").pathname === l), Re = (a, l) => {
41
- var o;
42
- return (o = [...a].map((r) => ({ module: r, path: new URL(r.to, "http://console.local").pathname })).filter(({ path: r }) => $e(l, r)).sort((r, u) => u.path.length - r.path.length)[0]) == null ? void 0 : o.module;
43
- }, Ue = () => {
44
- const [a, l] = z(!1);
45
- return $(() => {
46
- const o = () => l(window.scrollY > 0);
47
- return o(), window.addEventListener("scroll", o, { passive: !0 }), () => window.removeEventListener("scroll", o);
48
- }, []), a;
49
- }, Ae = ({ size: a = 30, className: l }) => {
50
- const o = P(), r = (u) => l ? `${u} ${l}` : u;
51
- return o.markUrl ? /* @__PURE__ */ t(
52
- "span",
53
- {
54
- className: r(e.logoMark),
55
- style: { width: a, height: a, backgroundImage: `url("${o.markUrl}")` },
56
- "aria-hidden": "true"
57
- }
58
- ) : /* @__PURE__ */ t("span", { className: r(e.letterMark), style: { width: a, height: a }, "aria-hidden": "true", children: Array.from(o.mark).slice(0, 2).join("") });
59
- }, qe = ({
60
- modules: a = [],
61
- activeModuleKey: l,
62
- moduleTarget: o,
63
- sidebar: r = [],
64
- selectedKey: u,
65
- renderItemLabel: b,
66
- headerRight: R,
67
- menuLabel: U = "工作台菜单",
68
- children: A,
69
- extra: E
70
- }) => {
71
- var G;
72
- const { config: I } = te(), w = P(), f = Q(), y = Y(), x = I.routes.app, p = D(x, J(ne())), C = V(x, f.pathname), h = C ? [] : r ?? [], M = h.length > 0, K = l ?? ((G = Re(a, f.pathname)) == null ? void 0 : G.key), m = Pe([...h, p], f.pathname), B = u ?? (m == null ? void 0 : m.key), i = ae(oe("desktop")), W = Ue(), [_, k] = z(!i), [N, d] = z(!1), j = new Map([...h, p].flatMap((n) => n.items.map((s) => [s.key, s])));
73
- $(() => {
74
- k(!i), d(!1);
75
- }, [i]);
76
- const L = (n) => {
77
- const s = j.get(n);
78
- s && y(s.to), d(!1);
79
- };
80
- return /* @__PURE__ */ c(g, { className: e.layout, children: [
81
- /* @__PURE__ */ c(g.Header, { className: e.header, "data-scrolled": W ? "true" : "false", children: [
82
- /* @__PURE__ */ c("div", { className: e.headerLeft, children: [
83
- /* @__PURE__ */ c(
84
- v,
85
- {
86
- theme: "borderless",
87
- type: "tertiary",
88
- className: e.logo,
89
- "aria-label": `${w.shortName} 首页`,
90
- onClick: () => y(I.routes.publicHome),
91
- children: [
92
- /* @__PURE__ */ t(Ae, {}),
93
- /* @__PURE__ */ t(O.Text, { className: e.logoText, children: w.shortName })
94
- ]
95
- }
96
- ),
97
- a.length ? /* @__PURE__ */ t("div", { className: e.modules, role: "navigation", "aria-label": "产品模块", children: a.map((n) => /* @__PURE__ */ c(
98
- v,
99
- {
100
- theme: "borderless",
101
- type: "tertiary",
102
- className: e.module,
103
- "aria-current": K === n.key ? "page" : void 0,
104
- onClick: () => y(o ? o(n) : n.to),
105
- children: [
106
- /* @__PURE__ */ c("span", { className: e.moduleText, children: [
107
- n.icon ? /* @__PURE__ */ t("span", { className: e.moduleIcon, children: /* @__PURE__ */ t(n.icon, {}) }) : null,
108
- n.label
109
- ] }),
110
- /* @__PURE__ */ t("span", { className: e.moduleInk, "aria-hidden": "true" })
111
- ]
112
- },
113
- n.key
114
- )) }) : null
115
- ] }),
116
- /* @__PURE__ */ t(F, { spacing: 10, className: e.headerRight, children: R ?? /* @__PURE__ */ c(H, { children: [
117
- /* @__PURE__ */ t(X, {}),
118
- /* @__PURE__ */ t("span", { className: e.walletSlot, children: /* @__PURE__ */ t(Z, {}) }),
119
- /* @__PURE__ */ t(ee, { personal: p, selectedKey: m && p.items.includes(m) ? m.key : void 0, onOpen: L })
120
- ] }) })
121
- ] }),
122
- /* @__PURE__ */ c(g, { className: e.body, children: [
123
- M ? /* @__PURE__ */ t("aside", { className: e.sider, "data-collapsed": _ ? "true" : "false", children: /* @__PURE__ */ c(
124
- "div",
125
- {
126
- className: e.siderInner,
127
- "data-collapsed": _ ? "true" : "false",
128
- "data-peek": N ? "true" : "false",
129
- onMouseEnter: () => {
130
- _ && i && d(!0);
131
- },
132
- onMouseLeave: () => {
133
- i && d(!1);
134
- },
135
- children: [
136
- _ ? /* @__PURE__ */ t(
137
- v,
138
- {
139
- theme: "light",
140
- type: "tertiary",
141
- className: e.expandButton,
142
- icon: /* @__PURE__ */ t(T, { "aria-hidden": "true" }),
143
- "aria-label": "展开侧边栏",
144
- "aria-expanded": N,
145
- onClick: () => {
146
- i ? (k(!1), d(!1)) : d((n) => !n);
147
- }
148
- }
149
- ) : null,
150
- /* @__PURE__ */ c("div", { className: e.panel, children: [
151
- /* @__PURE__ */ t("nav", { className: e.menu, "aria-label": U, children: h.map((n) => /* @__PURE__ */ c(
152
- "div",
153
- {
154
- className: n.label ? e.menuGroup : `${e.menuGroup} ${e.menuGroupPlain}`,
155
- role: "group",
156
- "aria-label": n.label || void 0,
157
- children: [
158
- n.label ? /* @__PURE__ */ t("div", { className: e.menuGroupTitle, children: n.label }) : null,
159
- /* @__PURE__ */ t(
160
- S,
161
- {
162
- mode: "vertical",
163
- className: e.menuList,
164
- selectedKeys: B ? [B] : [],
165
- onSelect: ({ itemKey: s }) => L(String(s)),
166
- children: n.items.map((s) => /* @__PURE__ */ t(
167
- S.Item,
168
- {
169
- itemKey: s.key,
170
- icon: s.icon ? /* @__PURE__ */ t(s.icon, {}) : void 0,
171
- text: b ? b(s) : s.label
172
- },
173
- s.key
174
- ))
175
- }
176
- )
177
- ]
178
- },
179
- n.key
180
- )) }),
181
- i ? /* @__PURE__ */ t(
182
- v,
183
- {
184
- theme: "borderless",
185
- type: "tertiary",
186
- className: e.collapseButton,
187
- icon: /* @__PURE__ */ t(T, { "aria-hidden": "true" }),
188
- onClick: () => {
189
- k((n) => !n), d(!1);
190
- },
191
- children: _ ? "固定侧边栏" : "收起侧边栏"
192
- }
193
- ) : null
194
- ] })
195
- ]
196
- }
197
- ) }) : null,
198
- N && !i && M ? /* @__PURE__ */ t("div", { className: e.mask, "aria-hidden": "true", onClick: () => d(!1) }) : null,
199
- /* @__PURE__ */ t(g.Content, { className: C ? `${e.content} ${e.contentCentered}` : e.content, children: /* @__PURE__ */ t("div", { className: e.contentInner, children: A ?? /* @__PURE__ */ t(q, {}) }) })
200
- ] }),
201
- E
202
- ] });
203
- };
204
- export {
205
- Ae as B,
206
- qe as C,
207
- Pe as a,
208
- Re as f,
209
- $e as i
210
- };