@seresweb/website-component 2.2.1 → 2.3.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 +5 -4
- package/dist/_icons-DtBTpiO2.cjs +11 -0
- package/dist/_icons-FW35XHO0.js +14 -0
- package/dist/_utils-B7LThWoT.js +26 -0
- package/dist/_utils-CtkVBTg-.cjs +1 -0
- package/dist/cjs/checkbox.cjs +1 -0
- package/dist/cjs/col.cjs +1 -0
- package/dist/cjs/config-provider.cjs +1 -0
- package/dist/cjs/date-picker.cjs +1 -0
- package/dist/cjs/date-select.cjs +1 -0
- package/dist/cjs/horizontal-viewer.cjs +1 -1
- package/dist/cjs/image-indicator.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/input.cjs +1 -1
- package/dist/cjs/layz-image.cjs +1 -1
- package/dist/cjs/locales.cjs +1 -0
- package/dist/cjs/parameter-box.cjs +1 -1
- package/dist/cjs/radio.cjs +1 -1
- package/dist/cjs/row.cjs +1 -0
- package/dist/cjs/select.cjs +1 -0
- package/dist/cjs/swiper-normal.cjs +1 -1
- package/dist/cjs/swiper-showcase.cjs +1 -1
- package/dist/cjs/tab-indicator.cjs +1 -1
- package/dist/css/checkbox.css +1 -0
- package/dist/css/col.css +1 -0
- package/dist/css/date-picker.css +1 -0
- package/dist/css/date-select.css +1 -0
- package/dist/css/input.css +1 -1
- package/dist/css/radio.css +1 -1
- package/dist/css/row.css +1 -0
- package/dist/css/select.css +1 -0
- package/dist/css/swiper-showcase.css +1 -1
- package/dist/en-US-BBTWftdk.js +35 -0
- package/dist/en-US-UkqgG0fb.cjs +1 -0
- package/dist/es/checkbox.mjs +82 -0
- package/dist/es/col.mjs +48 -0
- package/dist/es/config-provider.mjs +17 -0
- package/dist/es/date-picker.mjs +6 -0
- package/dist/es/date-select.mjs +113 -0
- package/dist/es/horizontal-viewer.mjs +1 -1
- package/dist/es/image-indicator.mjs +1 -1
- package/dist/es/index.mjs +61 -41
- package/dist/es/input.mjs +17 -16
- package/dist/es/layz-image.mjs +18 -17
- package/dist/es/locales.mjs +41 -0
- package/dist/es/parameter-box.mjs +123 -85
- package/dist/es/radio.mjs +27 -23
- package/dist/es/row.mjs +63 -0
- package/dist/es/select.mjs +210 -0
- package/dist/es/swiper-normal.mjs +1 -1
- package/dist/es/swiper-showcase.mjs +110 -95
- package/dist/es/tab-indicator.mjs +65 -79
- package/dist/global.d.ts +8 -0
- package/dist/index-B-sVxtkA.cjs +1 -0
- package/dist/{index-tkvNmWjy.js → index-BPX4w5Vn.js} +113 -106
- package/dist/index-Bc4wAl0z.js +644 -0
- package/dist/index-CEjz1ubF.cjs +1 -0
- package/dist/index.css +1 -1
- package/dist/scss/checkbox.scss +155 -0
- package/dist/scss/col.scss +16 -0
- package/dist/scss/date-picker.scss +226 -0
- package/dist/scss/date-select.scss +41 -0
- package/dist/scss/index.scss +6 -0
- package/dist/scss/input.scss +44 -4
- package/dist/scss/radio.scss +6 -6
- package/dist/scss/row.scss +10 -0
- package/dist/scss/select.scss +210 -0
- package/dist/scss/swiper-showcase.scss +54 -17
- package/dist/types/components/_icons.d.ts +4 -0
- package/dist/types/components/_utils.d.ts +4 -0
- package/dist/types/components/checkbox/checkbox.vue.d.ts +24 -0
- package/dist/types/components/checkbox/index.d.ts +6 -0
- package/dist/types/components/checkbox/type.d.ts +30 -0
- package/dist/types/components/col/col.vue.d.ts +21 -0
- package/dist/types/components/col/index.d.ts +6 -0
- package/dist/types/components/col/type.d.ts +24 -0
- package/dist/types/components/config-provider/config-provider.vue.d.ts +20 -0
- package/dist/types/components/config-provider/index.d.ts +27 -0
- package/dist/types/components/config-provider/type.d.ts +4 -0
- package/dist/types/components/date-picker/date-picker.vue.d.ts +16 -0
- package/dist/types/components/date-picker/index.d.ts +53 -0
- package/dist/types/components/date-picker/type.d.ts +12 -0
- package/dist/types/components/date-select/date-select.vue.d.ts +16 -0
- package/dist/types/components/date-select/index.d.ts +7 -0
- package/dist/types/components/date-select/type.d.ts +16 -0
- package/dist/types/components/index.d.ts +8 -0
- package/dist/types/components/input/input.vue.d.ts +1 -0
- package/dist/types/components/input/type.d.ts +1 -0
- package/dist/types/components/locales/ar-SA.d.ts +20 -0
- package/dist/types/components/locales/en-US.d.ts +20 -0
- package/dist/types/components/locales/index.d.ts +44 -0
- package/dist/types/components/radio/radio.vue.d.ts +2 -2
- package/dist/types/components/row/index.d.ts +6 -0
- package/dist/types/components/row/row.vue.d.ts +23 -0
- package/dist/types/components/row/type.d.ts +7 -0
- package/dist/types/components/select/index.d.ts +7 -0
- package/dist/types/components/select/select.vue.d.ts +48 -0
- package/dist/types/components/select/type.d.ts +20 -0
- package/dist/types/components/swiper-normal/swiper-normal.vue.d.ts +2 -2
- package/dist/types/components/swiper-showcase/type.d.ts +28 -0
- package/dist/types/components/swiper-vehicle/swiper-vehicle.vue.d.ts +2 -2
- package/dist/types/components/tab-indicator/tab-indicator.vue.d.ts +2 -2
- package/package.json +2 -1
- package/dist/index-BIPlvoY9.cjs +0 -1
package/dist/scss/input.scss
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
@use './_vars' as vars;
|
|
2
2
|
|
|
3
3
|
.#{vars.$prefix}-input {
|
|
4
|
+
// 默认亮色模式变量
|
|
5
|
+
--#{vars.$prefix}-input-border-color: rgba(0, 0, 0, 0.1);
|
|
6
|
+
--#{vars.$prefix}-input-border-hover-color: #000;
|
|
7
|
+
--#{vars.$prefix}-input-text-color: #000;
|
|
8
|
+
--#{vars.$prefix}-input-bg-color: transparent;
|
|
9
|
+
--#{vars.$prefix}-input-placeholder-color: #000;
|
|
10
|
+
|
|
4
11
|
font-size: 16px;
|
|
5
12
|
display: flex;
|
|
6
13
|
align-items: center;
|
|
@@ -8,11 +15,23 @@
|
|
|
8
15
|
margin-top: 4px;
|
|
9
16
|
height: 54px;
|
|
10
17
|
border-radius: 2px;
|
|
11
|
-
border-bottom: 1px solid
|
|
18
|
+
border-bottom: 1px solid var(--#{vars.$prefix}-input-border-color);
|
|
19
|
+
background-color: var(--#{vars.$prefix}-input-bg-color);
|
|
12
20
|
transition: border-color 0.3s ease-in-out;
|
|
13
21
|
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
&::after {
|
|
23
|
+
content: '';
|
|
24
|
+
position: absolute;
|
|
25
|
+
bottom: -1px;
|
|
26
|
+
left: 0;
|
|
27
|
+
width: 0;
|
|
28
|
+
height: 1px;
|
|
29
|
+
background-color: var(--#{vars.$prefix}-input-border-hover-color);
|
|
30
|
+
transition: width 0.3s ease-in-out;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:hover::after {
|
|
34
|
+
width: 100%;
|
|
16
35
|
}
|
|
17
36
|
|
|
18
37
|
input {
|
|
@@ -20,12 +39,14 @@
|
|
|
20
39
|
outline: none;
|
|
21
40
|
flex: 1; // 自动占满剩余空间
|
|
22
41
|
height: 54px;
|
|
42
|
+
background-color: inherit;
|
|
43
|
+
color: var(--#{vars.$prefix}-input-text-color);
|
|
23
44
|
}
|
|
24
45
|
|
|
25
46
|
input::placeholder {
|
|
26
47
|
height: 25px;
|
|
27
48
|
font-weight: 500;
|
|
28
|
-
color:
|
|
49
|
+
color: var(--#{vars.$prefix}-input-placeholder-color);
|
|
29
50
|
line-height: 21px;
|
|
30
51
|
opacity: 0.3;
|
|
31
52
|
}
|
|
@@ -38,6 +59,25 @@
|
|
|
38
59
|
padding: 0 8px;
|
|
39
60
|
position: relative;
|
|
40
61
|
z-index: 1;
|
|
62
|
+
color: var(--#{vars.$prefix}-input-text-color);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// 支持全局暗夜模式:html.dark .sc-input
|
|
66
|
+
html.dark & {
|
|
67
|
+
--#{vars.$prefix}-input-border-color: rgba(255, 255, 255, 0.2);
|
|
68
|
+
--#{vars.$prefix}-input-border-hover-color: #fff;
|
|
69
|
+
--#{vars.$prefix}-input-text-color: #fff;
|
|
70
|
+
--#{vars.$prefix}-input-bg-color: #1d1d1d;
|
|
71
|
+
--#{vars.$prefix}-input-placeholder-color: #fff;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// 支持组件级别暗夜模式:.sc-input--dark
|
|
75
|
+
&--dark {
|
|
76
|
+
--#{vars.$prefix}-input-border-color: rgba(255, 255, 255, 0.2);
|
|
77
|
+
--#{vars.$prefix}-input-border-hover-color: #fff;
|
|
78
|
+
--#{vars.$prefix}-input-text-color: #fff;
|
|
79
|
+
--#{vars.$prefix}-input-bg-color: #1d1d1d;
|
|
80
|
+
--#{vars.$prefix}-input-placeholder-color: #fff;
|
|
41
81
|
}
|
|
42
82
|
|
|
43
83
|
@media (max-width: 768px) {
|
package/dist/scss/radio.scss
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
color: #000;
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
&-disabled {
|
|
11
11
|
opacity: 0.5;
|
|
12
12
|
pointer-events: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
&-input {
|
|
16
16
|
position: absolute;
|
|
17
17
|
opacity: 0;
|
|
18
18
|
width: 0;
|
|
19
19
|
height: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
&-box {
|
|
23
23
|
display: inline-block;
|
|
24
24
|
width: 18px;
|
|
25
25
|
height: 18px;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
&-label {
|
|
49
49
|
margin-left: 8px;
|
|
50
50
|
font-family: HarmonyOS_Sans_Regular;
|
|
51
51
|
font-weight: 400;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/* 当 radio 被选中时显示勾 */
|
|
57
|
-
|
|
57
|
+
&-input:checked ~ &-box {
|
|
58
58
|
background-color: #000;
|
|
59
59
|
// border-color: #2563eb;
|
|
60
60
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/* 鼠标悬停效果 */
|
|
67
|
-
&:not(
|
|
67
|
+
&:not(&-disabled):hover &-box {
|
|
68
68
|
border-color: #000;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
@use './_vars' as vars;
|
|
2
|
+
|
|
3
|
+
.#{vars.$prefix}-select {
|
|
4
|
+
// 默认亮色模式变量
|
|
5
|
+
--#{vars.$prefix}-select-border-color: rgba(0, 0, 0, 0.1);
|
|
6
|
+
--#{vars.$prefix}-select-border-hover-color: #000;
|
|
7
|
+
--#{vars.$prefix}-select-text-color: #000;
|
|
8
|
+
--#{vars.$prefix}-select-bg-color: transparent;
|
|
9
|
+
--#{vars.$prefix}-select-placeholder-color: #000;
|
|
10
|
+
--#{vars.$prefix}-select-option-hover-bg: #f5f5f5;
|
|
11
|
+
--#{vars.$prefix}-select-option-selected-bg: #e6f2ff;
|
|
12
|
+
--#{vars.$prefix}-select-option-selected-text-color: #1054f2;
|
|
13
|
+
--#{vars.$prefix}-select-dropdown-bg: #fff;
|
|
14
|
+
|
|
15
|
+
position: relative;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
width: 100%;
|
|
18
|
+
// max-width: 300px;
|
|
19
|
+
font-size: 16px;
|
|
20
|
+
margin-top: 4px;
|
|
21
|
+
|
|
22
|
+
&__trigger {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
height: 54px;
|
|
26
|
+
border-radius: 2px;
|
|
27
|
+
border-bottom: 1px solid var(--#{vars.$prefix}-select-border-color);
|
|
28
|
+
background-color: var(--#{vars.$prefix}-select-bg-color);
|
|
29
|
+
// padding: 0 8px;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
transition: border-color 0.3s ease-in-out;
|
|
32
|
+
position: relative;
|
|
33
|
+
|
|
34
|
+
&::after {
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
bottom: -1px;
|
|
38
|
+
left: 0;
|
|
39
|
+
width: 0;
|
|
40
|
+
height: 1px;
|
|
41
|
+
background-color: var(--#{vars.$prefix}-select-border-hover-color);
|
|
42
|
+
transition: width 0.3s ease-in-out;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:hover::after {
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__value {
|
|
51
|
+
flex: 1;
|
|
52
|
+
color: var(--#{vars.$prefix}-select-text-color);
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__placeholder {
|
|
59
|
+
flex: 1;
|
|
60
|
+
color: var(--#{vars.$prefix}-select-placeholder-color);
|
|
61
|
+
opacity: 0.3;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__clear {
|
|
68
|
+
width: 20px;
|
|
69
|
+
height: 20px;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
margin-right: 4px;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
color: var(--#{vars.$prefix}-select-text-color);
|
|
76
|
+
font-size: 20px;
|
|
77
|
+
font-weight: 300;
|
|
78
|
+
opacity: 0.6;
|
|
79
|
+
transition: opacity 0.2s;
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__icon {
|
|
87
|
+
width: 20px;
|
|
88
|
+
height: 20px;
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
color: var(--#{vars.$prefix}-select-text-color);
|
|
93
|
+
transition: transform 0.3s ease-in-out;
|
|
94
|
+
flex-shrink: 0;
|
|
95
|
+
|
|
96
|
+
svg {
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
fill: currentColor;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&--open {
|
|
103
|
+
transform: rotate(-180deg);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&__dropdown {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 100%;
|
|
110
|
+
left: 0;
|
|
111
|
+
right: 0;
|
|
112
|
+
margin-top: 4px;
|
|
113
|
+
background-color: var(--#{vars.$prefix}-select-dropdown-bg);
|
|
114
|
+
border: 1px solid var(--#{vars.$prefix}-select-border-color);
|
|
115
|
+
border-radius: 4px;
|
|
116
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
117
|
+
z-index: 1000;
|
|
118
|
+
max-height: 300px;
|
|
119
|
+
overflow-y: auto;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&__options {
|
|
123
|
+
padding: 8px 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&__option {
|
|
127
|
+
padding: 10px 12px;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
color: var(--#{vars.$prefix}-select-text-color);
|
|
130
|
+
transition: background-color 0.2s;
|
|
131
|
+
|
|
132
|
+
&:hover:not(&--disabled) {
|
|
133
|
+
background-color: var(--#{vars.$prefix}-select-option-hover-bg);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&--selected {
|
|
137
|
+
background-color: var(--#{vars.$prefix}-select-option-selected-bg);
|
|
138
|
+
font-weight: 600;
|
|
139
|
+
color: var(--#{vars.$prefix}-select-option-selected-text-color);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&--disabled {
|
|
143
|
+
opacity: 0.5;
|
|
144
|
+
cursor: not-allowed;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&__custom-content {
|
|
149
|
+
padding: 12px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// 禁用状态
|
|
153
|
+
&--disabled {
|
|
154
|
+
opacity: 0.6;
|
|
155
|
+
|
|
156
|
+
.sc-select__trigger {
|
|
157
|
+
cursor: not-allowed;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// 全局暗夜模式:html.dark .sc-select
|
|
162
|
+
html.dark & {
|
|
163
|
+
--#{vars.$prefix}-select-border-color: rgba(255, 255, 255, 0.2);
|
|
164
|
+
--#{vars.$prefix}-select-border-hover-color: #fff;
|
|
165
|
+
--#{vars.$prefix}-select-text-color: #fff;
|
|
166
|
+
--#{vars.$prefix}-select-bg-color: #1d1d1d;
|
|
167
|
+
--#{vars.$prefix}-select-placeholder-color: #fff;
|
|
168
|
+
--#{vars.$prefix}-select-option-hover-bg: #333;
|
|
169
|
+
--#{vars.$prefix}-select-option-selected-bg: #1054f2;
|
|
170
|
+
--#{vars.$prefix}-select-option-selected-text-color: #fff;
|
|
171
|
+
--#{vars.$prefix}-select-dropdown-bg: #262626;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// 组件级别暗夜模式:.sc-select--dark
|
|
175
|
+
&--dark {
|
|
176
|
+
--#{vars.$prefix}-select-border-color: rgba(255, 255, 255, 0.2);
|
|
177
|
+
--#{vars.$prefix}-select-border-hover-color: #fff;
|
|
178
|
+
--#{vars.$prefix}-select-text-color: #fff;
|
|
179
|
+
--#{vars.$prefix}-select-bg-color: #1d1d1d;
|
|
180
|
+
--#{vars.$prefix}-select-placeholder-color: #fff;
|
|
181
|
+
--#{vars.$prefix}-select-option-hover-bg: #333;
|
|
182
|
+
--#{vars.$prefix}-select-option-selected-bg: #1054f2;
|
|
183
|
+
--#{vars.$prefix}-select-option-selected-text-color: #fff;
|
|
184
|
+
--#{vars.$prefix}-select-dropdown-bg: #262626;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@media (max-width: 768px) {
|
|
188
|
+
font-size: 14px;
|
|
189
|
+
|
|
190
|
+
&__trigger {
|
|
191
|
+
height: 48px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&__dropdown {
|
|
195
|
+
max-height: 250px;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// 下拉框动画
|
|
201
|
+
.sc-select-slide-enter-active,
|
|
202
|
+
.sc-select-slide-leave-active {
|
|
203
|
+
transition: all 0.3s ease-in-out;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.sc-select-slide-enter-from,
|
|
207
|
+
.sc-select-slide-leave-to {
|
|
208
|
+
opacity: 0;
|
|
209
|
+
transform: translateY(-2px);
|
|
210
|
+
}
|
|
@@ -56,25 +56,53 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&__info {
|
|
59
|
-
margin-
|
|
59
|
+
margin-block-start: 24px;
|
|
60
60
|
display: flex;
|
|
61
61
|
flex-direction: column;
|
|
62
62
|
gap: 6px;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
&__title {
|
|
66
|
+
font-family: HarmonyOS_Sans_Medium;
|
|
66
67
|
font-size: 18px;
|
|
67
68
|
line-height: 26px;
|
|
68
69
|
font-weight: 600;
|
|
69
70
|
letter-spacing: 0.2px;
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
&__date {
|
|
74
|
+
font-family: HarmonyOS_Sans_Regular;
|
|
75
|
+
color: rgba(255, 255, 255, 0.6);
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
line-height: 20px;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
}
|
|
80
|
+
|
|
72
81
|
&__desc {
|
|
73
|
-
|
|
82
|
+
font-family: HarmonyOS_Sans_Regular;
|
|
83
|
+
color: #fff;
|
|
74
84
|
font-size: 14px;
|
|
85
|
+
font-weight: 400;
|
|
75
86
|
line-height: 20px;
|
|
76
87
|
}
|
|
77
88
|
|
|
89
|
+
&__link {
|
|
90
|
+
font-family: HarmonyOS_Sans_Medium;
|
|
91
|
+
color: #61a1d7;
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
line-height: 20px;
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
text-decoration: underline;
|
|
96
|
+
margin-block-start: 4px;
|
|
97
|
+
display: inline-block;
|
|
98
|
+
width: fit-content;
|
|
99
|
+
transition: opacity 0.2s ease;
|
|
100
|
+
|
|
101
|
+
&:hover {
|
|
102
|
+
opacity: 0.8;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
78
106
|
&__nav {
|
|
79
107
|
display: flex;
|
|
80
108
|
gap: 12px;
|
|
@@ -114,29 +142,38 @@
|
|
|
114
142
|
}
|
|
115
143
|
}
|
|
116
144
|
|
|
117
|
-
@media (max-width:
|
|
145
|
+
@media (max-width: 768px) {
|
|
118
146
|
.#{vars.$prefix}-swiper-showcase {
|
|
119
|
-
|
|
120
|
-
|
|
147
|
+
gap: 40px;
|
|
148
|
+
|
|
149
|
+
&__tag {
|
|
150
|
+
padding: 5px 20px;
|
|
151
|
+
font-size: 20px;
|
|
152
|
+
line-height: 28px;
|
|
121
153
|
}
|
|
122
154
|
|
|
123
|
-
&
|
|
124
|
-
|
|
155
|
+
&__info {
|
|
156
|
+
gap: 16px;
|
|
125
157
|
}
|
|
126
158
|
|
|
127
|
-
&
|
|
128
|
-
|
|
129
|
-
|
|
159
|
+
&__title {
|
|
160
|
+
font-size: 24px;
|
|
161
|
+
line-height: 36px;
|
|
162
|
+
font-weight: 500;
|
|
130
163
|
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
164
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
165
|
+
&__date {
|
|
166
|
+
font-size: 18px;
|
|
167
|
+
line-height: 25px;
|
|
168
|
+
}
|
|
137
169
|
|
|
138
|
-
&
|
|
139
|
-
|
|
170
|
+
&__desc {
|
|
171
|
+
font-size: 12px;
|
|
172
|
+
line-height: 18px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&__link {
|
|
176
|
+
font-size: 16px;
|
|
140
177
|
}
|
|
141
178
|
}
|
|
142
179
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 公共图标组件
|
|
3
|
+
*/
|
|
4
|
+
export declare const ChevronDownIcon = "<svg\n viewBox=\"0 0 1024 1024\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"200\"\n height=\"200\"\n>\n <path\n d=\"M512 622.336L200.874667 311.125333l-60.416 60.416L512 742.997333l371.541333-371.456-60.416-60.416L512 622.336z\"\n ></path>\n</svg>";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CheckboxProps } from './type';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLLabelElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
change: (...args: any[]) => void;
|
|
13
|
+
"update:modelValue": (...args: any[]) => void;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
15
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface CheckboxProps {
|
|
2
|
+
/**
|
|
3
|
+
* 唯一标识符
|
|
4
|
+
*/
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* 表单名称
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/**
|
|
11
|
+
* checkbox 的值
|
|
12
|
+
*/
|
|
13
|
+
value?: any;
|
|
14
|
+
/**
|
|
15
|
+
* 绑定值(支持布尔值或数组)
|
|
16
|
+
*/
|
|
17
|
+
modelValue?: boolean | any[];
|
|
18
|
+
/**
|
|
19
|
+
* label 文本(当不使用插槽时显示)
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 是否禁用
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 是否深色模式
|
|
28
|
+
*/
|
|
29
|
+
dark?: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ColProps } from './type';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<ColProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ColProps> & Readonly<{}>, {
|
|
12
|
+
span: number;
|
|
13
|
+
offset: number;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface ColProps {
|
|
2
|
+
span?: number;
|
|
3
|
+
offset?: number;
|
|
4
|
+
xs?: number | {
|
|
5
|
+
span?: number;
|
|
6
|
+
offset?: number;
|
|
7
|
+
};
|
|
8
|
+
sm?: number | {
|
|
9
|
+
span?: number;
|
|
10
|
+
offset?: number;
|
|
11
|
+
};
|
|
12
|
+
md?: number | {
|
|
13
|
+
span?: number;
|
|
14
|
+
offset?: number;
|
|
15
|
+
};
|
|
16
|
+
lg?: number | {
|
|
17
|
+
span?: number;
|
|
18
|
+
offset?: number;
|
|
19
|
+
};
|
|
20
|
+
xl?: number | {
|
|
21
|
+
span?: number;
|
|
22
|
+
offset?: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ConfigProviderProps } from './type';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
|
12
|
+
locale: import('..').Locale;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const ScConfigProvider: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
locale: import('..').Locale;
|
|
4
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
5
|
+
P: {};
|
|
6
|
+
B: {};
|
|
7
|
+
D: {};
|
|
8
|
+
C: {};
|
|
9
|
+
M: {};
|
|
10
|
+
Defaults: {};
|
|
11
|
+
}, Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
12
|
+
locale: import('..').Locale;
|
|
13
|
+
}>;
|
|
14
|
+
__isFragment?: never;
|
|
15
|
+
__isTeleport?: never;
|
|
16
|
+
__isSuspense?: never;
|
|
17
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
18
|
+
locale: import('..').Locale;
|
|
19
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
20
|
+
$slots: {
|
|
21
|
+
default?(_: {}): any;
|
|
22
|
+
};
|
|
23
|
+
}) & {
|
|
24
|
+
install(app: import('vue').App): void;
|
|
25
|
+
};
|
|
26
|
+
export default ScConfigProvider;
|
|
27
|
+
export * from './type';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DatePickerProps } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<DatePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
change: (value: string | Date | null) => any;
|
|
4
|
+
"update:modelValue": (value: string | Date | null) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<DatePickerProps> & Readonly<{
|
|
6
|
+
onChange?: ((value: string | Date | null) => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
format: string;
|
|
10
|
+
modelValue: Date | string | null;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
dark: boolean;
|
|
13
|
+
minDate: Date | string;
|
|
14
|
+
maxDate: Date | string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
export default _default;
|