@tplc/wot 1.0.18 → 1.0.19

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,8 @@
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.19](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.18...v1.0.19) (2025-12-29)
6
+
5
7
  ### [1.0.18](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.17...v1.0.18) (2025-12-29)
6
8
 
7
9
 
@@ -3,84 +3,173 @@
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
+ &::after {
102
+ position: absolute;
103
+ top: 2px;
104
+ right: -24rpx;
105
+ font-size: $-cell-required-size;
106
+ line-height: 1.1;
107
+ color: $-cell-required-color;
108
+ content: '*';
109
+ }
47
110
  }
48
111
  }
49
112
  }
113
+ @include e(value-wraper) {
114
+ display: flex;
115
+ }
116
+ @include e(value) {
117
+ flex: 1;
118
+ margin-right: 10px;
119
+ color: $-cell-value-color;
50
120
 
51
- @include edeep(arrow, clear) {
121
+ @include when(ellipsis) {
122
+ @include lineEllipsis;
123
+ }
124
+ @include m(placeholder) {
125
+ color: $-input-placeholder-color;
126
+ }
127
+ }
128
+ @include e(body) {
129
+ flex: 1;
130
+ }
131
+ @include edeep(arrow) {
52
132
  display: block;
53
133
  font-size: $-cell-icon-size;
54
- color: $-cell-arrow-color;
55
134
  line-height: $-cell-line-height;
56
- }
57
-
58
- @include edeep(clear) {
59
- color: $-cell-clear-color;
135
+ color: $-cell-arrow-color;
60
136
  }
61
137
 
62
138
  @include e(loading) {
63
139
  position: absolute;
64
- display: flex;
65
140
  top: 0;
66
141
  right: 0;
67
142
  bottom: 0;
68
143
  left: 0;
144
+ z-index: 3;
145
+ display: flex;
69
146
  align-items: center;
70
147
  justify-content: center;
71
- z-index: 3;
72
148
  background: $-picker-loading-bg;
73
149
  }
74
-
150
+ @include e(no-more) {
151
+ text-align: center;
152
+ color: $-cell-arrow-color;
153
+ padding: 24rpx 0;
154
+ font-size: 28rpx;
155
+ }
156
+ @include e(innerLoading) {
157
+ display: flex;
158
+ align-items: center;
159
+ justify-content: center;
160
+ background: $-picker-loading-bg;
161
+ padding: 24rpx 0;
162
+ }
163
+ // selectPiceker多出的样式
75
164
  @include edeep(header) {
76
165
  height: 72px;
77
166
  line-height: 72px;
78
167
  }
79
168
  @include e(wrapper) {
80
- padding: 0 10px;
81
169
  position: relative;
82
- max-height: 356px;
83
170
  box-sizing: border-box;
171
+ max-height: 356px;
172
+ padding: 0 10px;
84
173
  overflow: auto;
85
174
 
86
175
  @include when(filterable) {
@@ -95,6 +184,21 @@
95
184
  @include e(text-active) {
96
185
  color: $-color-theme;
97
186
  }
187
+ @include e(button) {
188
+ width: 100%;
189
+ height: 72rpx;
190
+ line-height: 72rpx;
191
+ border-radius: 8rpx;
192
+ font-size: 28rpx;
193
+ color: #333;
194
+ box-sizing: border-box;
195
+ text-align: center;
196
+ border: 1px solid #eee;
197
+ &--active {
198
+ color: $-color-theme;
199
+ border: 1px solid $-color-theme;
200
+ }
201
+ }
98
202
 
99
203
  @include e(footer) {
100
204
  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.19",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",