@w-run/wdesign-ui 0.0.0-stage → 1.0.0
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/README.md +174 -2
- package/dist/index.d.ts +83 -0
- package/dist/style/ai-msg.css +187 -0
- package/dist/style/alert.css +64 -0
- package/dist/style/audio.css +1363 -0
- package/dist/style/avatar.css +88 -0
- package/dist/style/badge.css +48 -0
- package/dist/style/breadcrumb.css +54 -0
- package/dist/style/button.css +234 -0
- package/dist/style/card.css +71 -0
- package/dist/style/carousel.css +101 -0
- package/dist/style/checkbox.css +129 -0
- package/dist/style/chevron.css +33 -0
- package/dist/style/collapse.css +69 -0
- package/dist/style/command.css +201 -0
- package/dist/style/container.css +7 -0
- package/dist/style/datepicker.css +205 -0
- package/dist/style/descriptions.css +119 -0
- package/dist/style/divider.css +62 -0
- package/dist/style/dot.css +30 -0
- package/dist/style/drawer.css +145 -0
- package/dist/style/dropdown.css +83 -0
- package/dist/style/empty.css +36 -0
- package/dist/style/explorer.css +336 -0
- package/dist/style/file-list.css +92 -0
- package/dist/style/form.css +96 -0
- package/dist/style/grid.css +4 -0
- package/dist/style/group.css +478 -0
- package/dist/style/icon-btn.css +75 -0
- package/dist/style/image-preview.css +81 -0
- package/dist/style/input.css +119 -0
- package/dist/style/list.css +81 -0
- package/dist/style/markdown.css +312 -0
- package/dist/style/modal.css +164 -0
- package/dist/style/notification.css +52 -0
- package/dist/style/otp.css +139 -0
- package/dist/style/pagination.css +120 -0
- package/dist/style/popconfirm.css +87 -0
- package/dist/style/popover.css +110 -0
- package/dist/style/post-item.css +134 -0
- package/dist/style/progress.css +34 -0
- package/dist/style/radio.css +126 -0
- package/dist/style/rate.css +44 -0
- package/dist/style/result.css +54 -0
- package/dist/style/segmented-picker.css +120 -0
- package/dist/style/segmented.css +190 -0
- package/dist/style/select.css +281 -0
- package/dist/style/skeleton.css +31 -0
- package/dist/style/slider.css +81 -0
- package/dist/style/sortable.css +128 -0
- package/dist/style/space.css +25 -0
- package/dist/style/spinner.css +27 -0
- package/dist/style/statistic.css +44 -0
- package/dist/style/steps.css +100 -0
- package/dist/style/switch.css +95 -0
- package/dist/style/table.css +379 -0
- package/dist/style/tabs.css +167 -0
- package/dist/style/tag.css +97 -0
- package/dist/style/timeline.css +521 -0
- package/dist/style/toast.css +37 -0
- package/dist/style/tooltip.css +45 -0
- package/dist/style/tree.css +189 -0
- package/dist/style/typography.css +66 -0
- package/dist/style/upload.css +169 -0
- package/dist/style/vlist.css +49 -0
- package/dist/style/vplayer.css +846 -0
- package/dist/wdesign-ui.css +10300 -0
- package/dist/wdesign-ui.esm.js +16333 -0
- package/package.json +47 -3
- package/tokens.json +385 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.wd-drawer {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
z-index: 1000;
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.wd-drawer.is-open {
|
|
10
|
+
display: block;
|
|
11
|
+
animation: wd-drawer-fade-in var(--wd-dur) var(--wd-ease-out) both;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@keyframes wd-drawer-fade-in {
|
|
15
|
+
from {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
opacity: 1;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.wd-drawer__mask {
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset: 0;
|
|
25
|
+
background: var(--wd-mask);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wd-drawer__panel {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 12px;
|
|
31
|
+
right: 12px;
|
|
32
|
+
bottom: 12px;
|
|
33
|
+
width: 380px;
|
|
34
|
+
max-width: calc(100% - 24px);
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
padding: 24px;
|
|
38
|
+
background: var(--wd-card);
|
|
39
|
+
border-radius: var(--wd-radius-lg);
|
|
40
|
+
box-shadow: var(--wd-shadow-lg);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.wd-drawer--left .wd-drawer__panel {
|
|
44
|
+
right: auto;
|
|
45
|
+
left: 12px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* 面板滑入:右侧从右往左、左侧从左往右 */
|
|
49
|
+
.wd-drawer.is-open .wd-drawer__panel {
|
|
50
|
+
animation: wd-drawer-in-right var(--wd-dur-slow) var(--wd-ease-out) both;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.wd-drawer--left.is-open .wd-drawer__panel {
|
|
54
|
+
animation-name: wd-drawer-in-left;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@keyframes wd-drawer-in-right {
|
|
58
|
+
from {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
transform: translateX(14px);
|
|
61
|
+
}
|
|
62
|
+
to {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
transform: none;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
@keyframes wd-drawer-in-left {
|
|
68
|
+
from {
|
|
69
|
+
opacity: 0;
|
|
70
|
+
transform: translateX(-14px);
|
|
71
|
+
}
|
|
72
|
+
to {
|
|
73
|
+
opacity: 1;
|
|
74
|
+
transform: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
@media (prefers-reduced-motion: reduce) {
|
|
78
|
+
.wd-drawer.is-open,
|
|
79
|
+
.wd-drawer.is-open .wd-drawer__panel {
|
|
80
|
+
animation: none;
|
|
81
|
+
opacity: 1;
|
|
82
|
+
transform: none;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.wd-drawer__head {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: space-between;
|
|
89
|
+
gap: 12px;
|
|
90
|
+
margin-bottom: 14px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.wd-drawer__title {
|
|
94
|
+
font-size: 17px;
|
|
95
|
+
font-weight: 800;
|
|
96
|
+
letter-spacing: -0.01em;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.wd-drawer__body {
|
|
100
|
+
flex: 1;
|
|
101
|
+
overflow: auto;
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
line-height: 1.7;
|
|
104
|
+
color: var(--wd-ink-2);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.wd-drawer__foot {
|
|
108
|
+
display: flex;
|
|
109
|
+
justify-content: flex-end;
|
|
110
|
+
gap: 10px;
|
|
111
|
+
margin-top: 16px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.wd-drawer-fade-enter-active, .wd-drawer-fade-leave-active {
|
|
115
|
+
transition: opacity var(--wd-dur-slow) ease;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.wd-drawer-fade-enter-from, .wd-drawer-fade-leave-to {
|
|
119
|
+
opacity: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* 面板滑入:由同一套 Transition 控制,不叠加 animation
|
|
123
|
+
(animation 与 Transition 竞争会导致先闪到最终位置再弹回) */
|
|
124
|
+
.wd-drawer-fade-enter-active .wd-drawer__panel {
|
|
125
|
+
transition: transform var(--wd-dur-slow) cubic-bezier(0.25, 0.8, 0.35, 1), opacity var(--wd-dur-slow) cubic-bezier(0.25, 0.8, 0.35, 1);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.wd-drawer-fade-enter-from .wd-drawer__panel {
|
|
129
|
+
transform: translateX(24px);
|
|
130
|
+
opacity: 0.6;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.wd-drawer--left .wd-drawer-fade-enter-from .wd-drawer__panel,
|
|
134
|
+
.wd-drawer-fade-enter-from .wd-drawer--left .wd-drawer__panel {
|
|
135
|
+
transform: translateX(-24px);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.wd-drawer-fade-leave-active .wd-drawer__panel {
|
|
139
|
+
transition: transform var(--wd-dur) ease, opacity var(--wd-dur) ease;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.wd-drawer-fade-leave-to .wd-drawer__panel {
|
|
143
|
+
transform: translateX(24px);
|
|
144
|
+
opacity: 0;
|
|
145
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.wd-dropdown {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.wd-dropdown__trigger {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.wd-dropdown__trigger:focus-visible {
|
|
13
|
+
outline: none;
|
|
14
|
+
box-shadow: 0 0 0 4px var(--wd-focus-ring-soft);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* Teleport 到 body 后不再有触发器作参照,定位全部由 JS 计算,
|
|
19
|
+
* 这里只保留 fixed + 视觉样式。
|
|
20
|
+
* 被祖先 overflow:hidden 裁切是 dropdown 最常见的线上问题。
|
|
21
|
+
*/
|
|
22
|
+
.wd-dropdown__menu {
|
|
23
|
+
position: absolute; /* 文档坐标:JS 已加上 scrollX/scrollY */
|
|
24
|
+
z-index: 1200;
|
|
25
|
+
min-width: 180px;
|
|
26
|
+
display: none;
|
|
27
|
+
padding: 8px;
|
|
28
|
+
background: var(--wd-card);
|
|
29
|
+
border-radius: var(--wd-radius-md);
|
|
30
|
+
box-shadow: var(--wd-shadow-hover);
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: 2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.wd-dropdown__menu.is-open {
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.wd-dropdown__item {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 10px;
|
|
43
|
+
padding: 10px 14px;
|
|
44
|
+
border: 0;
|
|
45
|
+
background: transparent;
|
|
46
|
+
border-radius: var(--wd-radius-pill);
|
|
47
|
+
font: inherit;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
color: var(--wd-ink);
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
text-align: left;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media (hover: hover) {
|
|
55
|
+
.wd-dropdown__item:hover {
|
|
56
|
+
background: var(--wd-bg);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/* JS 增强(addHover):同一份声明,由 .is-hover 驱动,不受 hover 媒体查询限制 */
|
|
60
|
+
.wd-dropdown__item.is-hover {
|
|
61
|
+
background: var(--wd-bg);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.wd-dropdown__item--danger {
|
|
65
|
+
color: var(--wd-red-text);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (hover: hover) {
|
|
69
|
+
.wd-dropdown__item--danger:hover {
|
|
70
|
+
background: var(--wd-tint-1);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.wd-dropdown__item--danger.is-hover {
|
|
74
|
+
background: var(--wd-tint-1);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.wd-dropdown__item--disabled {
|
|
78
|
+
color: var(--wd-ink-3);
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ---- 微交互(精致版)---- */
|
|
83
|
+
/* 入场交给 <Transition name="wd-pop">(_popover.scss);不要再叠 animation,否则会压掉过渡 */
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.wd-empty {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 6px;
|
|
6
|
+
padding: 40px 20px;
|
|
7
|
+
text-align: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.wd-empty__icon {
|
|
11
|
+
width: 72px;
|
|
12
|
+
height: 72px;
|
|
13
|
+
margin-bottom: 10px;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
background: var(--wd-field);
|
|
16
|
+
color: var(--wd-ink-3);
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.wd-empty__title {
|
|
23
|
+
font-size: 15px;
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
color: var(--wd-ink);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wd-empty__desc {
|
|
29
|
+
font-size: 13px;
|
|
30
|
+
color: var(--wd-ink-2);
|
|
31
|
+
max-width: 320px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.wd-empty__action {
|
|
35
|
+
margin-top: 14px;
|
|
36
|
+
}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.wd-explorer {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: 196px 1fr;
|
|
5
|
+
background: var(--wd-card);
|
|
6
|
+
border-radius: var(--wd-radius-lg);
|
|
7
|
+
box-shadow: var(--wd-shadow);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.wd-explorer__side {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: 3px;
|
|
15
|
+
padding: 16px 12px;
|
|
16
|
+
background: var(--wd-bg);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.wd-explorer__side-title {
|
|
20
|
+
padding: 4px 10px 8px;
|
|
21
|
+
font-size: 11.5px;
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
letter-spacing: 0.04em;
|
|
24
|
+
color: var(--wd-ink-2);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.wd-explorer__folder {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 9px;
|
|
31
|
+
padding: 10px 12px;
|
|
32
|
+
min-height: 40px;
|
|
33
|
+
border: 0;
|
|
34
|
+
/* 可点击项优先胶囊 */
|
|
35
|
+
border-radius: var(--wd-radius-pill);
|
|
36
|
+
background: transparent;
|
|
37
|
+
color: var(--wd-ink-2);
|
|
38
|
+
font: inherit;
|
|
39
|
+
font-size: 13.5px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
text-align: left;
|
|
43
|
+
transition: background var(--wd-dur-fast) ease, color var(--wd-dur-fast) ease;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media (hover: hover) {
|
|
47
|
+
.wd-explorer__folder:hover {
|
|
48
|
+
background: var(--wd-tint-1);
|
|
49
|
+
color: var(--wd-ink);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/* JS 增强(addHover):同一份声明,由 .is-hover 驱动,不受 hover 媒体查询限制 */
|
|
53
|
+
.wd-explorer__folder.is-hover {
|
|
54
|
+
background: var(--wd-tint-1);
|
|
55
|
+
color: var(--wd-ink);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.wd-explorer__folder--active {
|
|
59
|
+
background: var(--wd-card);
|
|
60
|
+
color: var(--wd-red-text);
|
|
61
|
+
box-shadow: var(--wd-shadow-sm);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.wd-explorer__count {
|
|
65
|
+
margin-left: auto;
|
|
66
|
+
font-size: 11px;
|
|
67
|
+
color: var(--wd-ink-2);
|
|
68
|
+
font-family: var(--wd-font-mono);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.wd-explorer__folder--active .wd-explorer__count {
|
|
72
|
+
color: var(--wd-red-text);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.wd-explorer__main {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
min-width: 0;
|
|
79
|
+
padding: 16px 18px 18px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.wd-explorer__bar {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: 10px;
|
|
86
|
+
margin-bottom: 12px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.wd-explorer__path {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: 6px;
|
|
93
|
+
min-width: 0;
|
|
94
|
+
font-size: 13px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.wd-explorer__crumb {
|
|
98
|
+
color: var(--wd-ink-2);
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (hover: hover) {
|
|
104
|
+
.wd-explorer__crumb:hover {
|
|
105
|
+
color: var(--wd-red-text);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.wd-explorer__crumb.is-hover {
|
|
109
|
+
color: var(--wd-red-text);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.wd-explorer__crumb--cur {
|
|
113
|
+
color: var(--wd-ink);
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
cursor: default;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.wd-explorer__sep {
|
|
119
|
+
color: var(--wd-ink-3);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.wd-explorer__views {
|
|
123
|
+
margin-left: auto;
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
gap: 4px;
|
|
126
|
+
padding: 4px;
|
|
127
|
+
background: var(--wd-field);
|
|
128
|
+
border-radius: 999px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.wd-explorer__view-btn {
|
|
132
|
+
width: 30px;
|
|
133
|
+
height: 30px;
|
|
134
|
+
border: 0;
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
background: transparent;
|
|
137
|
+
color: var(--wd-ink-3);
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
transition: background var(--wd-dur-fast) ease, color var(--wd-dur-fast) ease, box-shadow var(--wd-dur-fast) ease;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@media (hover: hover) {
|
|
146
|
+
.wd-explorer__view-btn:hover {
|
|
147
|
+
color: var(--wd-ink);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.wd-explorer__view-btn.is-hover {
|
|
151
|
+
color: var(--wd-ink);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.wd-explorer__view-btn--active {
|
|
155
|
+
background: var(--wd-card);
|
|
156
|
+
color: var(--wd-red-text);
|
|
157
|
+
box-shadow: var(--wd-shadow-sm);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.wd-explorer__table {
|
|
161
|
+
width: 100%;
|
|
162
|
+
border-collapse: separate;
|
|
163
|
+
border-spacing: 0;
|
|
164
|
+
table-layout: fixed;
|
|
165
|
+
font-size: 13.5px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.wd-explorer__table thead th {
|
|
169
|
+
padding: 9px 10px;
|
|
170
|
+
font-size: 11.5px;
|
|
171
|
+
font-weight: 700;
|
|
172
|
+
color: var(--wd-ink-2);
|
|
173
|
+
text-align: left;
|
|
174
|
+
background: var(--wd-bg);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.wd-explorer__table thead th:first-child {
|
|
178
|
+
border-radius: 10px 0 0 10px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.wd-explorer__table thead th:last-child {
|
|
182
|
+
border-radius: 0 10px 10px 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.wd-explorer__table tbody td {
|
|
186
|
+
height: 48px;
|
|
187
|
+
padding: 6px 10px;
|
|
188
|
+
vertical-align: middle;
|
|
189
|
+
border-top: 4px solid transparent;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.wd-explorer__table tbody tr {
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
transition: background var(--wd-dur-fast) ease;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (hover: hover) {
|
|
198
|
+
.wd-explorer__table tbody tr:hover {
|
|
199
|
+
background: var(--wd-tint-1);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
.wd-explorer__table tbody tr.is-hover {
|
|
203
|
+
background: var(--wd-tint-1);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.wd-explorer__table .is-num {
|
|
207
|
+
text-align: right;
|
|
208
|
+
font-family: var(--wd-font-mono);
|
|
209
|
+
font-size: 12.5px;
|
|
210
|
+
color: var(--wd-ink-2);
|
|
211
|
+
font-variant-numeric: tabular-nums;
|
|
212
|
+
white-space: nowrap;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.wd-explorer__name {
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
gap: 10px;
|
|
219
|
+
min-width: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.wd-explorer__file-chip {
|
|
223
|
+
width: 30px;
|
|
224
|
+
height: 30px;
|
|
225
|
+
flex: none;
|
|
226
|
+
border-radius: 9px;
|
|
227
|
+
background: var(--wd-tint-1);
|
|
228
|
+
color: var(--wd-red-text);
|
|
229
|
+
display: inline-flex;
|
|
230
|
+
align-items: center;
|
|
231
|
+
justify-content: center;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.wd-explorer__file-name {
|
|
235
|
+
overflow: hidden;
|
|
236
|
+
text-overflow: ellipsis;
|
|
237
|
+
white-space: nowrap;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.wd-explorer__grid {
|
|
241
|
+
display: grid;
|
|
242
|
+
grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
|
|
243
|
+
gap: 6px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.wd-explorer__tile {
|
|
247
|
+
display: flex;
|
|
248
|
+
flex-direction: column;
|
|
249
|
+
align-items: center;
|
|
250
|
+
gap: 9px;
|
|
251
|
+
padding: 16px 8px 12px;
|
|
252
|
+
border: 0;
|
|
253
|
+
border-radius: var(--wd-radius-sm);
|
|
254
|
+
background: transparent;
|
|
255
|
+
cursor: pointer;
|
|
256
|
+
font: inherit;
|
|
257
|
+
transition: background var(--wd-dur-fast) ease;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@media (hover: hover) {
|
|
261
|
+
.wd-explorer__tile:hover {
|
|
262
|
+
background: var(--wd-tint-1);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
.wd-explorer__tile.is-hover {
|
|
266
|
+
background: var(--wd-tint-1);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.wd-explorer__tile-icon {
|
|
270
|
+
width: 48px;
|
|
271
|
+
height: 48px;
|
|
272
|
+
border-radius: 13px;
|
|
273
|
+
background: var(--wd-bg);
|
|
274
|
+
color: var(--wd-red-text);
|
|
275
|
+
display: flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
justify-content: center;
|
|
278
|
+
transition: background var(--wd-dur-fast) ease, color var(--wd-dur-fast) ease;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@media (hover: hover) {
|
|
282
|
+
.wd-explorer__tile:hover .wd-explorer__tile-icon {
|
|
283
|
+
background: var(--wd-card);
|
|
284
|
+
color: var(--wd-red-text);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
.wd-explorer__tile.is-hover .wd-explorer__tile-icon {
|
|
288
|
+
background: var(--wd-card);
|
|
289
|
+
color: var(--wd-red-text);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.wd-explorer__tile-name {
|
|
293
|
+
display: -webkit-box;
|
|
294
|
+
-webkit-line-clamp: 2;
|
|
295
|
+
-webkit-box-orient: vertical;
|
|
296
|
+
overflow: hidden;
|
|
297
|
+
word-break: break-all;
|
|
298
|
+
font-size: 12.5px;
|
|
299
|
+
font-weight: 600;
|
|
300
|
+
line-height: 1.35;
|
|
301
|
+
text-align: center;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.wd-explorer__tile-size {
|
|
305
|
+
font-size: 11px;
|
|
306
|
+
color: var(--wd-ink-2);
|
|
307
|
+
font-family: var(--wd-font-mono);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.wd-explorer__empty {
|
|
311
|
+
padding: 44px 12px;
|
|
312
|
+
text-align: center;
|
|
313
|
+
font-size: 13px;
|
|
314
|
+
color: var(--wd-ink-2);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* 视图切换过渡(详情 ↔ 图标 / 文件夹切换) */
|
|
318
|
+
.wd-fade-enter-active,
|
|
319
|
+
.wd-fade-leave-active {
|
|
320
|
+
transition: opacity var(--wd-dur) ease, transform var(--wd-dur) ease;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.wd-fade-enter-from,
|
|
324
|
+
.wd-fade-leave-to {
|
|
325
|
+
opacity: 0;
|
|
326
|
+
transform: translateY(6px);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* 文件夹名(含省略号截断) */
|
|
330
|
+
.wd-explorer__folder-name {
|
|
331
|
+
flex: 1;
|
|
332
|
+
min-width: 0;
|
|
333
|
+
overflow: hidden;
|
|
334
|
+
text-overflow: ellipsis;
|
|
335
|
+
white-space: nowrap;
|
|
336
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.wd-file-list {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 2px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.wd-file-list__row {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 9px;
|
|
12
|
+
min-height: 38px;
|
|
13
|
+
padding: 8px 12px;
|
|
14
|
+
border-radius: var(--wd-radius-sm);
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
transition: background var(--wd-dur-fast) ease;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (hover: hover) {
|
|
20
|
+
.wd-file-list__row:hover {
|
|
21
|
+
background: var(--wd-bg);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/* JS 增强(addHover):同一份声明,由 .is-hover 驱动,不受 hover 媒体查询限制 */
|
|
25
|
+
.wd-file-list__row.is-hover {
|
|
26
|
+
background: var(--wd-bg);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.wd-file-list__row--folder {
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* 展开箭头:所有行都占位(保证文件夹/文件图标对齐在同一列) */
|
|
34
|
+
.wd-file-list__chevron {
|
|
35
|
+
width: 14px;
|
|
36
|
+
flex: none;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.wd-file-list__icon {
|
|
42
|
+
width: 26px;
|
|
43
|
+
height: 26px;
|
|
44
|
+
flex: none;
|
|
45
|
+
/* 图标容器用圆形,与全站「圆形/胶囊优先」一致 */
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
background: var(--wd-field);
|
|
48
|
+
color: var(--wd-ink-2);
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.wd-file-list__row--file .wd-file-list__icon {
|
|
55
|
+
background: var(--wd-field);
|
|
56
|
+
color: var(--wd-ink-3);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.wd-file-list__name {
|
|
60
|
+
flex: 1;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
font-size: 13.5px;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.wd-file-list__size {
|
|
69
|
+
flex: none;
|
|
70
|
+
width: 66px;
|
|
71
|
+
text-align: right;
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
color: var(--wd-ink-2);
|
|
74
|
+
font-family: var(--wd-font-mono);
|
|
75
|
+
font-variant-numeric: tabular-nums;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* 行进出场动画(展开 / 收起子级时生效) */
|
|
79
|
+
.wd-row-move {
|
|
80
|
+
transition: transform var(--wd-dur-slow) var(--wd-ease);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.wd-row-enter-active,
|
|
84
|
+
.wd-row-leave-active {
|
|
85
|
+
transition: opacity var(--wd-dur) ease, transform var(--wd-dur) ease;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.wd-row-enter-from,
|
|
89
|
+
.wd-row-leave-to {
|
|
90
|
+
opacity: 0;
|
|
91
|
+
transform: translateX(-8px);
|
|
92
|
+
}
|