@didaoktv/didaoui-uniapp 2.13.0 → 2.14.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 +6 -6
- package/components/dd-album/dd-album.vue +280 -228
- package/components/dd-avatar/dd-avatar.vue +132 -75
- package/components/dd-avatar-group/dd-avatar-group.vue +52 -30
- package/components/dd-barcode/dd-barcode.vue +884 -947
- package/components/dd-button/dd-button.vue +47 -21
- package/components/dd-canvas/dd-canvas.vue +1156 -985
- package/components/dd-car-keyboard/dd-car-keyboard.vue +12 -12
- package/components/dd-champion-card/dd-champion-card.vue +49 -21
- package/components/dd-checkbox-group/dd-checkbox-group.vue +2 -0
- package/components/dd-copy/dd-copy.vue +51 -56
- package/components/dd-cropper/dd-cropper.vue +1224 -1135
- package/components/dd-divider/dd-divider.vue +9 -2
- package/components/dd-form/dd-form.vue +2 -0
- package/components/dd-icon/dd-icon.vue +1 -1
- package/components/dd-keyboard/dd-keyboard.vue +95 -46
- package/components/dd-link/dd-link.vue +72 -49
- package/components/dd-markdown/dd-markdown.vue +154 -154
- package/components/dd-number-keyboard/dd-number-keyboard.vue +109 -94
- package/components/dd-parse/dd-parse.vue +473 -442
- package/components/dd-poster/dd-poster.vue +579 -567
- package/components/dd-pull-refresh/dd-pull-refresh.vue +1 -9
- package/components/dd-qrcode/dd-qrcode.vue +431 -405
- package/components/dd-radio-group/dd-radio-group.vue +1 -1
- package/components/dd-segmented-tab/dd-segmented-tab.vue +22 -14
- package/components/dd-signature/dd-signature.vue +377 -357
- package/components/dd-step/dd-step.vue +1 -1
- package/components/dd-sticky/dd-sticky.vue +5 -10
- package/components/dd-swipe-action/dd-swipe-action.vue +1 -9
- package/components/dd-swipe-item/dd-swipe-item.vue +2 -0
- package/components/dd-swipeable-tab/dd-swipeable-tab.vue +1 -5
- package/components/dd-switch/dd-switch.vue +1 -1
- package/components/dd-text/dd-text.vue +304 -82
- package/components/dd-waterfall/dd-waterfall.vue +89 -0
- package/index.ts +4 -3
- package/libs/function/index.d.ts +88 -0
- package/libs/function/index.js +14 -0
- package/libs/function/test.d.ts +65 -0
- package/package.json +1 -1
- package/scss/_mixins.scss +8 -0
- package/scss/_theme-tokens.scss +7 -0
- package/scss/_variables.scss +283 -156
- package/components/dd-album/album.js +0 -19
- package/components/dd-album/props.js +0 -89
- package/components/dd-avatar/avatar.js +0 -19
- package/components/dd-avatar/props.js +0 -84
- package/components/dd-avatar-group/avatarGroup.js +0 -14
- package/components/dd-avatar-group/props.js +0 -57
- package/components/dd-keyboard/keyboard.js +0 -19
- package/components/dd-keyboard/props.js +0 -79
- package/components/dd-link/link.js +0 -17
- package/components/dd-link/props.js +0 -44
- package/components/dd-number-keyboard/numberKeyboard.js +0 -8
- package/components/dd-number-keyboard/props.js +0 -24
- package/components/dd-parse/props.js +0 -57
- package/components/dd-text/props.js +0 -120
- package/components/dd-text/text.js +0 -30
- package/components/dd-text/value.js +0 -87
- package/scss/_dd-shared.scss +0 -40
package/scss/_variables.scss
CHANGED
|
@@ -4,105 +4,105 @@
|
|
|
4
4
|
// ============================================================
|
|
5
5
|
|
|
6
6
|
// === primary — 帝王金 (from css.json + colors_and_type.css) ===
|
|
7
|
-
$dd-primary-50: #
|
|
8
|
-
$dd-primary-100: #
|
|
9
|
-
$dd-primary-200: #
|
|
10
|
-
$dd-primary-300: #
|
|
11
|
-
$dd-primary-400: #
|
|
12
|
-
$dd-primary-500: #
|
|
13
|
-
$dd-primary-600: #
|
|
14
|
-
$dd-primary-700: #
|
|
15
|
-
$dd-primary-800: #
|
|
16
|
-
$dd-primary-900: #
|
|
7
|
+
$dd-primary-50: #fff8e1 !default;
|
|
8
|
+
$dd-primary-100: #ffedb3 !default;
|
|
9
|
+
$dd-primary-200: #ffe082 !default;
|
|
10
|
+
$dd-primary-300: #ffd54f !default;
|
|
11
|
+
$dd-primary-400: #ffc107 !default;
|
|
12
|
+
$dd-primary-500: #f5a623 !default;
|
|
13
|
+
$dd-primary-600: #d4891a !default;
|
|
14
|
+
$dd-primary-700: #b26d12 !default;
|
|
15
|
+
$dd-primary-800: #8f520b !default;
|
|
16
|
+
$dd-primary-900: #6b3a05 !default;
|
|
17
17
|
$dd-primary: $dd-primary-500 !default;
|
|
18
|
-
$dd-primary-contrast: #
|
|
18
|
+
$dd-primary-contrast: #0a0a0a !default;
|
|
19
19
|
|
|
20
20
|
// === accent — 皇家蓝 ===
|
|
21
|
-
$dd-accent-50: #
|
|
22
|
-
$dd-accent-100: #
|
|
23
|
-
$dd-accent-200: #
|
|
24
|
-
$dd-accent-300: #
|
|
25
|
-
$dd-accent-400: #
|
|
26
|
-
$dd-accent-500: #
|
|
27
|
-
$dd-accent-600: #
|
|
28
|
-
$dd-accent-700: #
|
|
29
|
-
$dd-accent-800: #
|
|
21
|
+
$dd-accent-50: #e8eef5 !default;
|
|
22
|
+
$dd-accent-100: #c5d3e8 !default;
|
|
23
|
+
$dd-accent-200: #9bb3d6 !default;
|
|
24
|
+
$dd-accent-300: #728fc4 !default;
|
|
25
|
+
$dd-accent-400: #4e6eb2 !default;
|
|
26
|
+
$dd-accent-500: #2d4ba0 !default;
|
|
27
|
+
$dd-accent-600: #1e3a8a !default;
|
|
28
|
+
$dd-accent-700: #152b6b !default;
|
|
29
|
+
$dd-accent-800: #0d1e4d !default;
|
|
30
30
|
$dd-accent-900: #061230 !default;
|
|
31
31
|
$dd-accent: $dd-accent-500 !default;
|
|
32
|
-
$dd-accent-contrast: #
|
|
32
|
+
$dd-accent-contrast: #ffffff !default;
|
|
33
33
|
|
|
34
34
|
// === neutral — 抖音风纯黑系 ===
|
|
35
|
-
$dd-neutral-50: #
|
|
36
|
-
$dd-neutral-100: #
|
|
37
|
-
$dd-neutral-200: #
|
|
38
|
-
$dd-neutral-300: #
|
|
35
|
+
$dd-neutral-50: #f5f5f5 !default;
|
|
36
|
+
$dd-neutral-100: #e0e0e0 !default;
|
|
37
|
+
$dd-neutral-200: #bdbdbd !default;
|
|
38
|
+
$dd-neutral-300: #9e9e9e !default;
|
|
39
39
|
$dd-neutral-400: #757575 !default;
|
|
40
40
|
$dd-neutral-500: #616161 !default;
|
|
41
41
|
$dd-neutral-600: #424242 !default;
|
|
42
|
-
$dd-neutral-700: #
|
|
42
|
+
$dd-neutral-700: #2a2a2a !default;
|
|
43
43
|
$dd-neutral-800: #171717 !default;
|
|
44
|
-
$dd-neutral-900: #
|
|
44
|
+
$dd-neutral-900: #0a0a0a !default;
|
|
45
45
|
$dd-neutral-950: #050505 !default;
|
|
46
46
|
|
|
47
47
|
// === success ===
|
|
48
|
-
$dd-success-50: #
|
|
49
|
-
$dd-success-100: #
|
|
50
|
-
$dd-success-200: #
|
|
51
|
-
$dd-success-300: #
|
|
52
|
-
$dd-success-400: #
|
|
53
|
-
$dd-success-500: #
|
|
54
|
-
$dd-success-600: #
|
|
55
|
-
$dd-success-700: #
|
|
56
|
-
$dd-success-800: #
|
|
57
|
-
$dd-success-900: #
|
|
48
|
+
$dd-success-50: #e8f5e9 !default;
|
|
49
|
+
$dd-success-100: #c8e6c9 !default;
|
|
50
|
+
$dd-success-200: #a5d6a7 !default;
|
|
51
|
+
$dd-success-300: #81c784 !default;
|
|
52
|
+
$dd-success-400: #66bb6a !default;
|
|
53
|
+
$dd-success-500: #4caf50 !default;
|
|
54
|
+
$dd-success-600: #388e3c !default;
|
|
55
|
+
$dd-success-700: #2e7d32 !default;
|
|
56
|
+
$dd-success-800: #1b5e20 !default;
|
|
57
|
+
$dd-success-900: #0d3b10 !default;
|
|
58
58
|
$dd-success: $dd-success-500 !default;
|
|
59
|
-
$dd-success-contrast: #
|
|
59
|
+
$dd-success-contrast: #ffffff !default;
|
|
60
60
|
|
|
61
61
|
// === warning ===
|
|
62
|
-
$dd-warning-50: #
|
|
63
|
-
$dd-warning-100: #
|
|
64
|
-
$dd-warning-200: #
|
|
65
|
-
$dd-warning-300: #
|
|
66
|
-
$dd-warning-400: #
|
|
67
|
-
$dd-warning-500: #
|
|
68
|
-
$dd-warning-600: #
|
|
69
|
-
$dd-warning-700: #
|
|
62
|
+
$dd-warning-50: #fffde7 !default;
|
|
63
|
+
$dd-warning-100: #fff9c4 !default;
|
|
64
|
+
$dd-warning-200: #fff176 !default;
|
|
65
|
+
$dd-warning-300: #ffee58 !default;
|
|
66
|
+
$dd-warning-400: #fdd835 !default;
|
|
67
|
+
$dd-warning-500: #f9a825 !default;
|
|
68
|
+
$dd-warning-600: #f57f17 !default;
|
|
69
|
+
$dd-warning-700: #c65d00 !default;
|
|
70
70
|
$dd-warning-800: #994200 !default;
|
|
71
|
-
$dd-warning-900: #
|
|
71
|
+
$dd-warning-900: #6b2d00 !default;
|
|
72
72
|
$dd-warning: $dd-warning-500 !default;
|
|
73
|
-
$dd-warning-contrast: #
|
|
73
|
+
$dd-warning-contrast: #0a0a0a !default;
|
|
74
74
|
|
|
75
75
|
// === error ===
|
|
76
|
-
$dd-error-50: #
|
|
77
|
-
$dd-error-100: #
|
|
78
|
-
$dd-error-200: #
|
|
79
|
-
$dd-error-300: #
|
|
80
|
-
$dd-error-400: #
|
|
81
|
-
$dd-error-500: #
|
|
82
|
-
$dd-error-600: #
|
|
83
|
-
$dd-error-700: #
|
|
84
|
-
$dd-error-800: #
|
|
85
|
-
$dd-error-900: #
|
|
76
|
+
$dd-error-50: #ffebee !default;
|
|
77
|
+
$dd-error-100: #ffcdd2 !default;
|
|
78
|
+
$dd-error-200: #ef9a9a !default;
|
|
79
|
+
$dd-error-300: #e57373 !default;
|
|
80
|
+
$dd-error-400: #ef5350 !default;
|
|
81
|
+
$dd-error-500: #e53935 !default;
|
|
82
|
+
$dd-error-600: #c62828 !default;
|
|
83
|
+
$dd-error-700: #991b1b !default;
|
|
84
|
+
$dd-error-800: #6d1212 !default;
|
|
85
|
+
$dd-error-900: #400a0a !default;
|
|
86
86
|
$dd-error: $dd-error-500 !default;
|
|
87
|
-
$dd-error-contrast: #
|
|
87
|
+
$dd-error-contrast: #ffffff !default;
|
|
88
88
|
|
|
89
89
|
// === info ===
|
|
90
|
-
$dd-info-50: #
|
|
91
|
-
$dd-info-100: #
|
|
92
|
-
$dd-info-200: #
|
|
93
|
-
$dd-info-300: #
|
|
94
|
-
$dd-info-400: #
|
|
95
|
-
$dd-info-500: #
|
|
96
|
-
$dd-info-600: #
|
|
90
|
+
$dd-info-50: #e0f7fa !default;
|
|
91
|
+
$dd-info-100: #b2ebf2 !default;
|
|
92
|
+
$dd-info-200: #80deea !default;
|
|
93
|
+
$dd-info-300: #4dd0e1 !default;
|
|
94
|
+
$dd-info-400: #26c6da !default;
|
|
95
|
+
$dd-info-500: #00bcd4 !default;
|
|
96
|
+
$dd-info-600: #0097a7 !default;
|
|
97
97
|
$dd-info-700: #007580 !default;
|
|
98
|
-
$dd-info-800: #
|
|
98
|
+
$dd-info-800: #00535a !default;
|
|
99
99
|
$dd-info-900: #003136 !default;
|
|
100
100
|
$dd-info: $dd-info-500 !default;
|
|
101
|
-
$dd-info-contrast: #
|
|
101
|
+
$dd-info-contrast: #ffffff !default;
|
|
102
102
|
|
|
103
103
|
// === VIP Purple ===
|
|
104
|
-
$dd-vip-500: #
|
|
105
|
-
$dd-vip-700: #
|
|
104
|
+
$dd-vip-500: #9c27b0 !default;
|
|
105
|
+
$dd-vip-700: #6a1b9a !default;
|
|
106
106
|
|
|
107
107
|
// === 语义别名 (from colors_and_type.css Layer 2) ===
|
|
108
108
|
$dd-bg: $dd-neutral-900 !default;
|
|
@@ -138,10 +138,18 @@ $dd-interactive-focus: rgba(255, 255, 255, 0.12) !default;
|
|
|
138
138
|
$dd-interactive-press: rgba(255, 255, 255, 0.16) !default;
|
|
139
139
|
|
|
140
140
|
// === 纯色辅助 ===
|
|
141
|
-
$dd-color-white: #
|
|
141
|
+
$dd-color-white: #ffffff !default;
|
|
142
142
|
$dd-color-black: #000000 !default;
|
|
143
|
-
$dd-color-primary-deep: #
|
|
144
|
-
$dd-color-bronze: #
|
|
143
|
+
$dd-color-primary-deep: #1a1200 !default;
|
|
144
|
+
$dd-color-bronze: #cd7f32 !default;
|
|
145
|
+
|
|
146
|
+
// === 排行榜奖牌色(明暗不翻转)===
|
|
147
|
+
$dd-medal-gold: #ffd700 !default;
|
|
148
|
+
$dd-medal-gold-deep: #b8860b !default;
|
|
149
|
+
$dd-medal-silver: #c0c0c0 !default;
|
|
150
|
+
$dd-medal-silver-deep: #808080 !default;
|
|
151
|
+
$dd-medal-bronze: $dd-color-bronze !default;
|
|
152
|
+
$dd-medal-bronze-deep: #8b4513 !default;
|
|
145
153
|
|
|
146
154
|
// === 遮罩 ===
|
|
147
155
|
$dd-color-overlay: rgba(0, 0, 0, 0.5) !default;
|
|
@@ -156,21 +164,21 @@ $dd-text-glow: rgba(255, 255, 255, 0.3) !default;
|
|
|
156
164
|
// === 浅色语义集 (数据源: .design_library/didao-ktv/css.json color.light + colors_and_type.css .light) ===
|
|
157
165
|
// ★推导 = 设计系统 .light 未显式定义,按暗色镜像推导
|
|
158
166
|
// 品牌色(primary/accent 及各语义色阶)不随明暗主题翻转,无浅色对应集
|
|
159
|
-
$dd-light-bg: #
|
|
167
|
+
$dd-light-bg: #fafafa !default;
|
|
160
168
|
$dd-light-fg: $dd-neutral-900 !default;
|
|
161
169
|
$dd-light-muted: $dd-neutral-500 !default;
|
|
162
170
|
$dd-light-rule: $dd-neutral-200 !default;
|
|
163
171
|
$dd-light-link: $dd-primary-600 !default;
|
|
164
|
-
$dd-light-surface: #
|
|
172
|
+
$dd-light-surface: #ffffff !default;
|
|
165
173
|
$dd-light-surface-dim: $dd-neutral-50 !default;
|
|
166
174
|
$dd-light-surface-container-low: $dd-neutral-50 !default;
|
|
167
|
-
$dd-light-surface-container: #
|
|
168
|
-
$dd-light-surface-container-high: #
|
|
175
|
+
$dd-light-surface-container: #ffffff !default;
|
|
176
|
+
$dd-light-surface-container-high: #eeeeee !default;
|
|
169
177
|
$dd-light-surface-container-highest: $dd-neutral-100 !default;
|
|
170
178
|
$dd-light-bg-section: $dd-neutral-50 !default;
|
|
171
|
-
$dd-light-bg-card: #
|
|
172
|
-
$dd-light-bg-elevated: #
|
|
173
|
-
$dd-light-bg-popup: #
|
|
179
|
+
$dd-light-bg-card: #ffffff !default;
|
|
180
|
+
$dd-light-bg-elevated: #ffffff !default; // ★推导(同 bg-card)
|
|
181
|
+
$dd-light-bg-popup: #ffffff !default; // ★推导(浅色下靠阴影区分,弹出层同卡片白)
|
|
174
182
|
$dd-light-text-primary: $dd-neutral-900 !default;
|
|
175
183
|
$dd-light-text-secondary: $dd-neutral-700 !default; // ★推导
|
|
176
184
|
$dd-light-text-tertiary: $dd-neutral-500 !default; // ★推导
|
|
@@ -197,28 +205,44 @@ $dd-light-glass-bg-strong: rgba(255, 255, 255, 0.85) !default;
|
|
|
197
205
|
$dd-light-glass-bg-solid: rgba(255, 255, 255, 0.95) !default;
|
|
198
206
|
$dd-light-glass-border: rgba(0, 0, 0, 0.06) !default;
|
|
199
207
|
$dd-light-step-inactive-color: $dd-neutral-400 !default;
|
|
200
|
-
$dd-light-gradient-neutral: linear-gradient(
|
|
201
|
-
|
|
202
|
-
$dd-
|
|
203
|
-
$dd-
|
|
208
|
+
$dd-light-gradient-neutral: linear-gradient(
|
|
209
|
+
135deg,
|
|
210
|
+
$dd-neutral-200,
|
|
211
|
+
$dd-neutral-400
|
|
212
|
+
) !default;
|
|
213
|
+
$dd-light-gradient-text-gold-light: linear-gradient(
|
|
214
|
+
135deg,
|
|
215
|
+
$dd-primary-500,
|
|
216
|
+
$dd-primary-700
|
|
217
|
+
) !default;
|
|
218
|
+
$dd-light-gradient-spot-gold: radial-gradient(
|
|
219
|
+
ellipse at top,
|
|
220
|
+
rgba(245, 166, 35, 0.06),
|
|
221
|
+
transparent 60%
|
|
222
|
+
) !default;
|
|
223
|
+
$dd-light-gradient-spot-blue: radial-gradient(
|
|
224
|
+
ellipse at bottom right,
|
|
225
|
+
rgba(45, 75, 160, 0.06),
|
|
226
|
+
transparent 60%
|
|
227
|
+
) !default;
|
|
204
228
|
|
|
205
229
|
// === 字体 (from css.json font.family) ===
|
|
206
|
-
$dd-font-display:
|
|
207
|
-
$dd-font-heading:
|
|
208
|
-
$dd-font-body:
|
|
209
|
-
$dd-font-mono:
|
|
230
|
+
$dd-font-display: "Playfair Display", serif !default;
|
|
231
|
+
$dd-font-heading: "Noto Sans SC", sans-serif !default;
|
|
232
|
+
$dd-font-body: "Noto Sans SC", sans-serif !default;
|
|
233
|
+
$dd-font-mono: "Noto Sans SC", sans-serif !default;
|
|
210
234
|
|
|
211
|
-
// === 字号 (from css.json font.size) ===
|
|
212
|
-
$dd-font-size-display:
|
|
213
|
-
$dd-font-size-h1:
|
|
214
|
-
$dd-font-size-h2:
|
|
215
|
-
$dd-font-size-h3:
|
|
216
|
-
$dd-font-size-h4:
|
|
217
|
-
$dd-font-size-body:
|
|
218
|
-
$dd-font-size-lead:
|
|
219
|
-
$dd-font-size-caption:
|
|
220
|
-
$dd-font-size-overline:
|
|
221
|
-
$dd-font-size-mono:
|
|
235
|
+
// === 字号 (from css.json font.size;值 = size × 2,即 1px=2rpx) ===
|
|
236
|
+
$dd-font-size-display: 64rpx !default;
|
|
237
|
+
$dd-font-size-h1: 48rpx !default;
|
|
238
|
+
$dd-font-size-h2: 40rpx !default;
|
|
239
|
+
$dd-font-size-h3: 36rpx !default;
|
|
240
|
+
$dd-font-size-h4: 32rpx !default;
|
|
241
|
+
$dd-font-size-body: 28rpx !default;
|
|
242
|
+
$dd-font-size-lead: 32rpx !default;
|
|
243
|
+
$dd-font-size-caption: 24rpx !default;
|
|
244
|
+
$dd-font-size-overline: 20rpx !default;
|
|
245
|
+
$dd-font-size-mono: 28rpx !default;
|
|
222
246
|
|
|
223
247
|
// === 字重 (from css.json font.weight) ===
|
|
224
248
|
$dd-font-weight-display: 900 !default;
|
|
@@ -244,41 +268,43 @@ $dd-line-height-caption: 1.5 !default;
|
|
|
244
268
|
$dd-line-height-overline: 1.4 !default;
|
|
245
269
|
$dd-line-height-mono: 1.6 !default;
|
|
246
270
|
|
|
247
|
-
// === 间距 (from css.json spacing) ===
|
|
248
|
-
$dd-space-1:
|
|
249
|
-
$dd-space-2:
|
|
250
|
-
$dd-space-3:
|
|
251
|
-
$dd-space-4:
|
|
252
|
-
$dd-space-5:
|
|
253
|
-
$dd-space-6:
|
|
254
|
-
$dd-space-7:
|
|
255
|
-
$dd-space-8:
|
|
271
|
+
// === 间距 (from css.json spacing;值 = spacing × 2,即 1px=2rpx) ===
|
|
272
|
+
$dd-space-1: 8rpx !default;
|
|
273
|
+
$dd-space-2: 16rpx !default;
|
|
274
|
+
$dd-space-3: 24rpx !default;
|
|
275
|
+
$dd-space-4: 32rpx !default;
|
|
276
|
+
$dd-space-5: 48rpx !default;
|
|
277
|
+
$dd-space-6: 64rpx !default;
|
|
278
|
+
$dd-space-7: 96rpx !default;
|
|
279
|
+
$dd-space-8: 128rpx !default;
|
|
256
280
|
|
|
257
|
-
// === 圆角 (from css.json radius) ===
|
|
258
|
-
$dd-radius-sm:
|
|
259
|
-
$dd-radius-md:
|
|
260
|
-
$dd-radius-lg:
|
|
261
|
-
$dd-radius-xl:
|
|
262
|
-
$dd-radius-2xl:
|
|
263
|
-
$dd-radius-full:
|
|
281
|
+
// === 圆角 (from css.json radius;值 = radius × 2,即 1px=2rpx) ===
|
|
282
|
+
$dd-radius-sm: 4rpx !default;
|
|
283
|
+
$dd-radius-md: 8rpx !default;
|
|
284
|
+
$dd-radius-lg: 16rpx !default;
|
|
285
|
+
$dd-radius-xl: 24rpx !default;
|
|
286
|
+
$dd-radius-2xl: 32rpx !default;
|
|
287
|
+
$dd-radius-full: 9999rpx !default;
|
|
264
288
|
|
|
265
|
-
// === 尺寸 (from css.json size) ===
|
|
266
|
-
$dd-size-icon-sm:
|
|
267
|
-
$dd-size-icon-md:
|
|
268
|
-
$dd-size-icon-lg:
|
|
269
|
-
$dd-size-icon-xl:
|
|
289
|
+
// === 尺寸 (from css.json size;值 = size × 2,即 1px=2rpx) ===
|
|
290
|
+
$dd-size-icon-sm: 32rpx !default;
|
|
291
|
+
$dd-size-icon-md: 40rpx !default;
|
|
292
|
+
$dd-size-icon-lg: 48rpx !default;
|
|
293
|
+
$dd-size-icon-xl: 64rpx !default;
|
|
270
294
|
|
|
271
295
|
// 控件高度档位真源(ADR 0019):输入类与按钮类同档消费同一变量;值 = css.json size × 2(1px=2rpx)
|
|
296
|
+
// xxs 为行内附属按钮(复制等)新增的最矮档,低于 44px 触控下限,仅用于低频次要操作
|
|
297
|
+
$dd-size-control-xxs: 40rpx !default;
|
|
272
298
|
$dd-size-control-xs: 52rpx !default;
|
|
273
299
|
$dd-size-control-sm: 64rpx !default;
|
|
274
300
|
$dd-size-control-compact: 72rpx !default;
|
|
275
301
|
$dd-size-control-md: 88rpx !default;
|
|
276
302
|
$dd-size-control-lg: 100rpx !default;
|
|
277
303
|
|
|
278
|
-
//
|
|
279
|
-
$dd-button-padding-x-sm:
|
|
280
|
-
$dd-button-padding-x-md:
|
|
281
|
-
$dd-button-padding-x-lg:
|
|
304
|
+
// 按钮内边距(值 = css.json spacing × 2,即 1px=2rpx)
|
|
305
|
+
$dd-button-padding-x-sm: 24rpx !default;
|
|
306
|
+
$dd-button-padding-x-md: 32rpx !default;
|
|
307
|
+
$dd-button-padding-x-lg: 48rpx !default;
|
|
282
308
|
|
|
283
309
|
// === 阴影 (from css.json shadow) ===
|
|
284
310
|
$dd-shadow-1: 0 2px 8px rgba(0, 0, 0, 0.3) !default;
|
|
@@ -291,57 +317,158 @@ $dd-shadow-5: 0 40px 80px rgba(0, 0, 0, 0.7) !default;
|
|
|
291
317
|
// 品牌色发光
|
|
292
318
|
$dd-shadow-glow-gold-sm: 0 0 8px rgba(245, 166, 35, 0.4) !default;
|
|
293
319
|
$dd-shadow-glow-gold-md: 0 0 20px rgba(245, 166, 35, 0.4) !default;
|
|
294
|
-
$dd-shadow-glow-gold-lg:
|
|
320
|
+
$dd-shadow-glow-gold-lg:
|
|
321
|
+
0 0 24px rgba(245, 166, 35, 0.4),
|
|
322
|
+
0 0 48px rgba(245, 166, 35, 0.2) !default;
|
|
295
323
|
$dd-shadow-glow-blue-sm: 0 0 8px rgba(45, 75, 160, 0.4) !default;
|
|
296
324
|
$dd-shadow-glow-blue-md: 0 0 20px rgba(45, 75, 160, 0.5) !default;
|
|
297
|
-
$dd-shadow-glow-blue-lg:
|
|
325
|
+
$dd-shadow-glow-blue-lg:
|
|
326
|
+
0 0 24px rgba(45, 75, 160, 0.5),
|
|
327
|
+
0 0 48px rgba(45, 75, 160, 0.25) !default;
|
|
298
328
|
// 语义色发光 — md 带暗影托底,lg 为双层霓虹
|
|
299
329
|
$dd-shadow-glow-success-sm: 0 0 8px rgba(76, 175, 80, 0.4) !default;
|
|
300
|
-
$dd-shadow-glow-success-md:
|
|
301
|
-
|
|
330
|
+
$dd-shadow-glow-success-md:
|
|
331
|
+
0 0 16px rgba(76, 175, 80, 0.4),
|
|
332
|
+
0 4px 12px rgba(0, 0, 0, 0.3) !default;
|
|
333
|
+
$dd-shadow-glow-success-lg:
|
|
334
|
+
0 0 24px rgba(76, 175, 80, 0.5),
|
|
335
|
+
0 8px 24px rgba(0, 0, 0, 0.4) !default;
|
|
302
336
|
$dd-shadow-glow-warning-sm: 0 0 8px rgba(249, 168, 37, 0.4) !default;
|
|
303
|
-
$dd-shadow-glow-warning-md:
|
|
304
|
-
|
|
337
|
+
$dd-shadow-glow-warning-md:
|
|
338
|
+
0 0 16px rgba(249, 168, 37, 0.4),
|
|
339
|
+
0 4px 12px rgba(0, 0, 0, 0.3) !default;
|
|
340
|
+
$dd-shadow-glow-warning-lg:
|
|
341
|
+
0 0 24px rgba(249, 168, 37, 0.5),
|
|
342
|
+
0 8px 24px rgba(0, 0, 0, 0.4) !default;
|
|
305
343
|
$dd-shadow-glow-error-sm: 0 0 8px rgba(229, 57, 53, 0.4) !default;
|
|
306
|
-
$dd-shadow-glow-error-md:
|
|
307
|
-
|
|
344
|
+
$dd-shadow-glow-error-md:
|
|
345
|
+
0 0 16px rgba(229, 57, 53, 0.4),
|
|
346
|
+
0 4px 12px rgba(0, 0, 0, 0.3) !default;
|
|
347
|
+
$dd-shadow-glow-error-lg:
|
|
348
|
+
0 0 24px rgba(229, 57, 53, 0.5),
|
|
349
|
+
0 8px 24px rgba(0, 0, 0, 0.4) !default;
|
|
308
350
|
$dd-shadow-glow-info-sm: 0 0 8px rgba(0, 188, 212, 0.4) !default;
|
|
309
|
-
$dd-shadow-glow-info-md:
|
|
310
|
-
|
|
351
|
+
$dd-shadow-glow-info-md:
|
|
352
|
+
0 0 16px rgba(0, 188, 212, 0.4),
|
|
353
|
+
0 4px 12px rgba(0, 0, 0, 0.3) !default;
|
|
354
|
+
$dd-shadow-glow-info-lg:
|
|
355
|
+
0 0 24px rgba(0, 188, 212, 0.5),
|
|
356
|
+
0 8px 24px rgba(0, 0, 0, 0.4) !default;
|
|
311
357
|
$dd-shadow-glow-vip-sm: 0 0 8px rgba(156, 39, 176, 0.4) !default;
|
|
312
|
-
$dd-shadow-glow-vip-md:
|
|
313
|
-
|
|
358
|
+
$dd-shadow-glow-vip-md:
|
|
359
|
+
0 0 16px rgba(156, 39, 176, 0.4),
|
|
360
|
+
0 4px 12px rgba(0, 0, 0, 0.3) !default;
|
|
361
|
+
$dd-shadow-glow-vip-lg:
|
|
362
|
+
0 0 24px rgba(156, 39, 176, 0.5),
|
|
363
|
+
0 8px 24px rgba(0, 0, 0, 0.4) !default;
|
|
314
364
|
|
|
315
365
|
// === 渐变 (from css.json gradient) ===
|
|
316
366
|
// 主渐变:135° 对角,400→600
|
|
317
|
-
$dd-gradient-primary: linear-gradient(
|
|
318
|
-
|
|
319
|
-
$dd-
|
|
320
|
-
$dd-
|
|
321
|
-
|
|
367
|
+
$dd-gradient-primary: linear-gradient(
|
|
368
|
+
135deg,
|
|
369
|
+
$dd-primary-400,
|
|
370
|
+
$dd-primary-600
|
|
371
|
+
) !default;
|
|
372
|
+
$dd-gradient-accent: linear-gradient(
|
|
373
|
+
135deg,
|
|
374
|
+
$dd-accent-400,
|
|
375
|
+
$dd-accent-600
|
|
376
|
+
) !default;
|
|
377
|
+
$dd-gradient-success: linear-gradient(
|
|
378
|
+
135deg,
|
|
379
|
+
$dd-success-400,
|
|
380
|
+
$dd-success-600
|
|
381
|
+
) !default;
|
|
382
|
+
$dd-gradient-warning: linear-gradient(
|
|
383
|
+
135deg,
|
|
384
|
+
$dd-warning-400,
|
|
385
|
+
$dd-warning-600
|
|
386
|
+
) !default;
|
|
387
|
+
$dd-gradient-error: linear-gradient(
|
|
388
|
+
135deg,
|
|
389
|
+
$dd-error-400,
|
|
390
|
+
$dd-error-600
|
|
391
|
+
) !default;
|
|
322
392
|
$dd-gradient-info: linear-gradient(135deg, $dd-info-400, $dd-info-600) !default;
|
|
323
393
|
$dd-gradient-vip: linear-gradient(135deg, $dd-vip-500, $dd-vip-700) !default;
|
|
324
|
-
$dd-gradient-neutral: linear-gradient(
|
|
394
|
+
$dd-gradient-neutral: linear-gradient(
|
|
395
|
+
135deg,
|
|
396
|
+
$dd-neutral-600,
|
|
397
|
+
$dd-neutral-800
|
|
398
|
+
) !default;
|
|
325
399
|
// 宽幅渐变:135° 对角,300→600/700
|
|
326
|
-
$dd-gradient-primary-wide: linear-gradient(
|
|
327
|
-
|
|
400
|
+
$dd-gradient-primary-wide: linear-gradient(
|
|
401
|
+
135deg,
|
|
402
|
+
$dd-primary-300,
|
|
403
|
+
$dd-primary-600
|
|
404
|
+
) !default;
|
|
405
|
+
$dd-gradient-accent-wide: linear-gradient(
|
|
406
|
+
135deg,
|
|
407
|
+
$dd-accent-300,
|
|
408
|
+
$dd-accent-700
|
|
409
|
+
) !default;
|
|
328
410
|
// 三段渐变:135° 三段色(金属质感)
|
|
329
|
-
$dd-gradient-primary-triple: linear-gradient(
|
|
411
|
+
$dd-gradient-primary-triple: linear-gradient(
|
|
412
|
+
135deg,
|
|
413
|
+
$dd-primary-300 0%,
|
|
414
|
+
$dd-primary-500 50%,
|
|
415
|
+
$dd-primary-600 100%
|
|
416
|
+
) !default;
|
|
330
417
|
// 垂直渐变:180°
|
|
331
|
-
$dd-gradient-primary-v: linear-gradient(
|
|
418
|
+
$dd-gradient-primary-v: linear-gradient(
|
|
419
|
+
180deg,
|
|
420
|
+
$dd-primary-400,
|
|
421
|
+
$dd-primary-600
|
|
422
|
+
) !default;
|
|
332
423
|
// 水平渐变:90°
|
|
333
|
-
$dd-gradient-primary-h: linear-gradient(
|
|
334
|
-
|
|
424
|
+
$dd-gradient-primary-h: linear-gradient(
|
|
425
|
+
90deg,
|
|
426
|
+
$dd-primary-400,
|
|
427
|
+
$dd-primary-600
|
|
428
|
+
) !default;
|
|
429
|
+
$dd-gradient-accent-h: linear-gradient(
|
|
430
|
+
90deg,
|
|
431
|
+
$dd-accent-400,
|
|
432
|
+
$dd-accent-600
|
|
433
|
+
) !default;
|
|
335
434
|
// 文字渐变
|
|
336
|
-
$dd-gradient-text-gold: linear-gradient(
|
|
337
|
-
|
|
338
|
-
$dd-
|
|
435
|
+
$dd-gradient-text-gold: linear-gradient(
|
|
436
|
+
135deg,
|
|
437
|
+
$dd-primary-300,
|
|
438
|
+
$dd-primary-500
|
|
439
|
+
) !default;
|
|
440
|
+
$dd-gradient-text-gold-light: linear-gradient(
|
|
441
|
+
135deg,
|
|
442
|
+
$dd-color-white,
|
|
443
|
+
$dd-primary-200
|
|
444
|
+
) !default;
|
|
445
|
+
$dd-gradient-text-blue: linear-gradient(
|
|
446
|
+
135deg,
|
|
447
|
+
$dd-accent-300,
|
|
448
|
+
$dd-accent-500
|
|
449
|
+
) !default;
|
|
339
450
|
// 装饰径向光斑
|
|
340
|
-
$dd-gradient-spot-gold: radial-gradient(
|
|
341
|
-
|
|
451
|
+
$dd-gradient-spot-gold: radial-gradient(
|
|
452
|
+
ellipse at top,
|
|
453
|
+
rgba(245, 166, 35, 0.08),
|
|
454
|
+
transparent 60%
|
|
455
|
+
) !default;
|
|
456
|
+
$dd-gradient-spot-blue: radial-gradient(
|
|
457
|
+
ellipse at bottom right,
|
|
458
|
+
rgba(45, 75, 160, 0.08),
|
|
459
|
+
transparent 60%
|
|
460
|
+
) !default;
|
|
342
461
|
// sheen 高光渐变
|
|
343
|
-
$dd-gradient-sheen-top: linear-gradient(
|
|
344
|
-
|
|
462
|
+
$dd-gradient-sheen-top: linear-gradient(
|
|
463
|
+
180deg,
|
|
464
|
+
$dd-sheen 0%,
|
|
465
|
+
transparent 100%
|
|
466
|
+
) !default;
|
|
467
|
+
$dd-gradient-sheen-diagonal: linear-gradient(
|
|
468
|
+
135deg,
|
|
469
|
+
$dd-sheen 0%,
|
|
470
|
+
transparent 50%
|
|
471
|
+
) !default;
|
|
345
472
|
|
|
346
473
|
// === 玻璃拟态 (from colors_and_type.css) ===
|
|
347
474
|
$dd-glass-bg: rgba(23, 23, 23, 0.72) !default;
|
|
@@ -355,6 +482,6 @@ $dd-glass-blur-lg: 24px !default;
|
|
|
355
482
|
|
|
356
483
|
// === 组件特定 (from colors_and_type.css Component-specific) ===
|
|
357
484
|
$dd-popup-duration: 0.3s !default;
|
|
358
|
-
$dd-popover-offset:
|
|
485
|
+
$dd-popover-offset: 16rpx !default;
|
|
359
486
|
$dd-step-inactive-color: $dd-neutral-500 !default;
|
|
360
487
|
$dd-step-active-color: $dd-primary-500 !default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
// album 组件
|
|
3
|
-
album: {
|
|
4
|
-
urls: [],
|
|
5
|
-
keyName: '',
|
|
6
|
-
singleSize: 180,
|
|
7
|
-
multipleSize: 70,
|
|
8
|
-
space: 6,
|
|
9
|
-
singleMode: 'scaleToFill',
|
|
10
|
-
multipleMode: 'aspectFill',
|
|
11
|
-
maxCount: 9,
|
|
12
|
-
previewFullImage: true,
|
|
13
|
-
rowCount: 3,
|
|
14
|
-
showMore: true,
|
|
15
|
-
autoWrap: false,
|
|
16
|
-
unit: 'px',
|
|
17
|
-
stop: true,
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { defineMixin } from '../../libs/vue'
|
|
2
|
-
import AlbumDefaultProps from './album'
|
|
3
|
-
import { registerComponentProps } from '../../libs/config/props.js'
|
|
4
|
-
|
|
5
|
-
const defProps = registerComponentProps(AlbumDefaultProps)
|
|
6
|
-
export const props = defineMixin({
|
|
7
|
-
props: {
|
|
8
|
-
// 图片地址,Array<String>|Array<Object>形式
|
|
9
|
-
urls: {
|
|
10
|
-
type: Array,
|
|
11
|
-
default: () => defProps.album.urls
|
|
12
|
-
},
|
|
13
|
-
// 指定从数组的对象元素中读取哪个属性作为图片地址
|
|
14
|
-
keyName: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: () => defProps.album.keyName
|
|
17
|
-
},
|
|
18
|
-
// 单图时,图片长边的长度
|
|
19
|
-
singleSize: {
|
|
20
|
-
type: [String, Number],
|
|
21
|
-
default: () => defProps.album.singleSize
|
|
22
|
-
},
|
|
23
|
-
// 多图时,图片边长
|
|
24
|
-
multipleSize: {
|
|
25
|
-
type: [String, Number],
|
|
26
|
-
default: () => defProps.album.multipleSize
|
|
27
|
-
},
|
|
28
|
-
// 多图时,图片水平和垂直之间的间隔
|
|
29
|
-
space: {
|
|
30
|
-
type: [String, Number],
|
|
31
|
-
default: () => defProps.album.space
|
|
32
|
-
},
|
|
33
|
-
// 单图时,图片缩放裁剪的模式
|
|
34
|
-
singleMode: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: () => defProps.album.singleMode
|
|
37
|
-
},
|
|
38
|
-
// 多图时,图片缩放裁剪的模式
|
|
39
|
-
multipleMode: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: () => defProps.album.multipleMode
|
|
42
|
-
},
|
|
43
|
-
// 最多展示的图片数量,超出时最后一个位置将会显示剩余图片数量
|
|
44
|
-
maxCount: {
|
|
45
|
-
type: [String, Number],
|
|
46
|
-
default: () => defProps.album.maxCount
|
|
47
|
-
},
|
|
48
|
-
// 是否可以预览图片
|
|
49
|
-
previewFullImage: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: () => defProps.album.previewFullImage
|
|
52
|
-
},
|
|
53
|
-
// 每行展示图片数量,如设置,singleSize和multipleSize将会无效
|
|
54
|
-
rowCount: {
|
|
55
|
-
type: [String, Number],
|
|
56
|
-
default: () => defProps.album.rowCount
|
|
57
|
-
},
|
|
58
|
-
// 超出maxCount时是否显示查看更多的提示
|
|
59
|
-
showMore: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: () => defProps.album.showMore
|
|
62
|
-
},
|
|
63
|
-
// 图片形状,circle-圆形,square-方形
|
|
64
|
-
shape: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: () => defProps.image.shape
|
|
67
|
-
},
|
|
68
|
-
// 圆角,单位任意
|
|
69
|
-
radius: {
|
|
70
|
-
type: [String, Number],
|
|
71
|
-
default: () => defProps.image.radius
|
|
72
|
-
},
|
|
73
|
-
// 自适应换行
|
|
74
|
-
autoWrap: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: () => defProps.album.autoWrap
|
|
77
|
-
},
|
|
78
|
-
// 单位
|
|
79
|
-
unit: {
|
|
80
|
-
type: [String],
|
|
81
|
-
default: () => defProps.album.unit
|
|
82
|
-
},
|
|
83
|
-
// 阻止点击冒泡
|
|
84
|
-
stop: {
|
|
85
|
-
type: Boolean,
|
|
86
|
-
default: () => defProps.album.stop
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
})
|