@tplc/wot 1.0.18 → 1.0.20

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.20](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.19...v1.0.20) (2025-12-29)
6
+
7
+
8
+ ### 💄 Styles | 风格
9
+
10
+ * Enhance wd-select-picker styles with improved dark theme support, error handling, and loading states ([9476eca](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9476eca4b1dc70be0240178274fa8266a8877353))
11
+
12
+ ### [1.0.19](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.18...v1.0.19) (2025-12-29)
13
+
5
14
  ### [1.0.18](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.17...v1.0.18) (2025-12-29)
6
15
 
7
16
 
@@ -3,84 +3,174 @@
3
3
 
4
4
  .wot-theme-dark {
5
5
  @include b(select-picker) {
6
- :deep(.wd-select-picker__arrow),
7
- :deep(.wd-select-picker__close),
8
- :deep(.wd-select-picker__clear) {
6
+ @include when(border) {
7
+ .wd-select-picker__cell {
8
+ @include halfPixelBorder('top', $-cell-padding, $-dark-border-color);
9
+ }
10
+ }
11
+
12
+ @include e(cell) {
9
13
  color: $-dark-color;
14
+ background-color: $-dark-background2;
15
+ @include when(disabled) {
16
+ .wd-select-picker__value {
17
+ color: $-dark-color3;
18
+ }
19
+ }
10
20
  }
11
21
 
12
- :deep(.wd-select-picker__cell--placeholder) {
13
- .wd-cell__value {
22
+ @include e(label) {
23
+ color: $-dark-color;
24
+ }
25
+ @include e(value) {
26
+ color: $-dark-color;
27
+ @include m(placeholder) {
14
28
  color: $-dark-color-gray;
15
29
  }
16
30
  }
31
+
32
+ :deep(.wd-select-picker__arrow),
33
+ :deep(.wd-select-picker__close) {
34
+ color: $-dark-color;
35
+ }
17
36
  }
18
37
  }
19
38
 
20
39
  @include b(select-picker) {
21
- @include edeep(cell) {
40
+ @include when(border) {
41
+ .wd-select-picker__cell {
42
+ @include halfPixelBorder('top', $-cell-padding);
43
+ }
44
+ }
45
+ @include e(cell) {
46
+ position: relative;
47
+ display: flex;
48
+ align-items: flex-start;
49
+ padding: $-cell-wrapper-padding $-cell-padding;
50
+ overflow: hidden;
51
+ font-size: $-cell-title-fs;
52
+ line-height: $-cell-line-height;
53
+ color: $-cell-title-color;
54
+ text-decoration: none;
55
+ background-color: $-color-white;
56
+ }
57
+ @include e(cell) {
22
58
  @include when(disabled) {
23
- .wd-cell__value {
59
+ .wd-select-picker__value {
24
60
  color: $-input-disabled-color;
25
- cursor: not-allowed;
61
+ }
62
+ }
63
+ @include when(align-right) {
64
+ .wd-select-picker__value {
65
+ text-align: right;
26
66
  }
27
67
  }
28
68
  @include when(error) {
29
- .wd-cell__value {
69
+ .wd-select-picker__value {
30
70
  color: $-input-error-color;
31
71
  }
32
- .wd-select-picker__arrow {
72
+ :deep(.wd-select-picker__arrow) {
33
73
  color: $-input-error-color;
34
74
  }
35
75
  }
76
+ @include when(large) {
77
+ font-size: $-cell-title-fs-large;
36
78
 
37
- @include m(placeholder) {
38
- .wd-cell__value {
39
- color: $-input-placeholder-color;
79
+ :deep(.wd-select-picker__arrow) {
80
+ font-size: $-cell-icon-size-large;
40
81
  }
41
82
  }
83
+ }
84
+ @include e(error-message) {
85
+ font-size: $-form-item-error-message-font-size;
86
+ line-height: $-form-item-error-message-line-height;
87
+ color: $-form-item-error-message-color;
88
+ text-align: left;
89
+ vertical-align: middle;
90
+ }
91
+ @include e(label) {
92
+ position: relative;
93
+ box-sizing: border-box;
94
+ width: $-input-cell-label-width;
95
+ margin-right: $-cell-padding;
96
+ color: $-cell-title-color;
42
97
 
43
- @include when(large) {
44
- .wd-select-picker__arrow,
45
- .wd-select-picker__clear {
46
- font-size: $-cell-icon-size-large;
98
+ @include when(required) {
99
+ .wd-select-picker__label-inner {
100
+ position: relative;
101
+ padding-left: $-cell-padding;
102
+ &::after {
103
+ position: absolute;
104
+ top: 2px;
105
+ left: 0rpx;
106
+ font-size: $-cell-required-size;
107
+ line-height: 1.1;
108
+ color: $-cell-required-color;
109
+ content: '*';
110
+ }
47
111
  }
48
112
  }
49
113
  }
114
+ @include e(value-wraper) {
115
+ display: flex;
116
+ }
117
+ @include e(value) {
118
+ flex: 1;
119
+ margin-right: 10px;
120
+ color: $-cell-value-color;
50
121
 
51
- @include edeep(arrow, clear) {
122
+ @include when(ellipsis) {
123
+ @include lineEllipsis;
124
+ }
125
+ @include m(placeholder) {
126
+ color: $-input-placeholder-color;
127
+ }
128
+ }
129
+ @include e(body) {
130
+ flex: 1;
131
+ }
132
+ @include edeep(arrow) {
52
133
  display: block;
53
134
  font-size: $-cell-icon-size;
54
- color: $-cell-arrow-color;
55
135
  line-height: $-cell-line-height;
56
- }
57
-
58
- @include edeep(clear) {
59
- color: $-cell-clear-color;
136
+ color: $-cell-arrow-color;
60
137
  }
61
138
 
62
139
  @include e(loading) {
63
140
  position: absolute;
64
- display: flex;
65
141
  top: 0;
66
142
  right: 0;
67
143
  bottom: 0;
68
144
  left: 0;
145
+ z-index: 3;
146
+ display: flex;
69
147
  align-items: center;
70
148
  justify-content: center;
71
- z-index: 3;
72
149
  background: $-picker-loading-bg;
73
150
  }
74
-
151
+ @include e(no-more) {
152
+ text-align: center;
153
+ color: $-cell-arrow-color;
154
+ padding: 24rpx 0;
155
+ font-size: 28rpx;
156
+ }
157
+ @include e(innerLoading) {
158
+ display: flex;
159
+ align-items: center;
160
+ justify-content: center;
161
+ background: $-picker-loading-bg;
162
+ padding: 24rpx 0;
163
+ }
164
+ // selectPiceker多出的样式
75
165
  @include edeep(header) {
76
166
  height: 72px;
77
167
  line-height: 72px;
78
168
  }
79
169
  @include e(wrapper) {
80
- padding: 0 10px;
81
170
  position: relative;
82
- max-height: 356px;
83
171
  box-sizing: border-box;
172
+ max-height: 356px;
173
+ padding: 0 10px;
84
174
  overflow: auto;
85
175
 
86
176
  @include when(filterable) {
@@ -95,6 +185,21 @@
95
185
  @include e(text-active) {
96
186
  color: $-color-theme;
97
187
  }
188
+ @include e(button) {
189
+ width: 100%;
190
+ height: 72rpx;
191
+ line-height: 72rpx;
192
+ border-radius: 8rpx;
193
+ font-size: 28rpx;
194
+ color: #333;
195
+ box-sizing: border-box;
196
+ text-align: center;
197
+ border: 1px solid #eee;
198
+ &--active {
199
+ color: $-color-theme;
200
+ border: 1px solid $-color-theme;
201
+ }
202
+ }
98
203
 
99
204
  @include e(footer) {
100
205
  padding: 24px 15px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "1.0.18",
4
+ "version": "1.0.20",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",