@cloudbase/weda-ui-mp 3.17.2 → 3.17.4
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/components/chart/common/core/eChartBar.js +8 -21
- package/components/chart/common/core/eChartLine.js +8 -21
- package/components/chart/common/core/eChartPie.js +4 -24
- package/components/chart/statisticsCard/index.js +12 -32
- package/components/chart/statisticsCard/index.wxml +1 -1
- package/components/form/location/components/mapChoose/index.js +19 -22
- package/components/form/select/dropdown-select/index.wxml +4 -4
- package/components/form/select/dropdown-select/index.wxss +9 -9
- package/components/form/selectMultiple/dropdown-select/index.wxml +4 -4
- package/components/form/selectMultiple/dropdown-select/index.wxss +9 -9
- package/components/richText/copy/index.wxss +1 -3
- package/components/wd-ad/index.js +5 -4
- package/components/wd-select/select/dropdown-select/index.wxml +4 -4
- package/components/wd-select/select/dropdown-select/index.wxss +13 -13
- package/components/wd-select/select/index.js +5 -9
- package/package.json +1 -1
- package/style/wd-font-icon.wxss +1466 -1472
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
border: none;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.weda-ui-custom-
|
|
68
|
+
.weda-ui-custom-picker__columns {
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: flex-start;
|
|
71
71
|
position: relative;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
overflow: hidden;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.weda-ui-custom-
|
|
77
|
+
.weda-ui-custom-picker__column {
|
|
78
78
|
flex: 1 1 0;
|
|
79
79
|
overflow-y: auto;
|
|
80
80
|
overflow-x: hidden;
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
/* height: 199px; */
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.weda-ui-custom-
|
|
85
|
+
.weda-ui-custom-picker__column::-webkit-scrollbar {
|
|
86
86
|
display: none;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
.weda-ui-custom-
|
|
89
|
+
.weda-ui-custom-picker__column-item {
|
|
90
90
|
display: flex;
|
|
91
91
|
align-items: center;
|
|
92
92
|
white-space: pre-wrap;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
position: relative;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.weda-ui-custom-
|
|
99
|
+
.weda-ui-custom-picker__column-item::before {
|
|
100
100
|
content: '';
|
|
101
101
|
position: absolute;
|
|
102
102
|
bottom: 0;
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
transform: scaleY(0.5);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.weda-ui-custom-
|
|
109
|
+
.weda-ui-custom-picker__column-item.is-selected {
|
|
110
110
|
color: var(--wd-color-brand, #0052d9);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.weda-ui-custom-
|
|
113
|
+
.weda-ui-custom-picker__column-item.is-selected::after {
|
|
114
114
|
content: '';
|
|
115
115
|
display: block;
|
|
116
116
|
width: 8px;
|
|
@@ -123,12 +123,12 @@
|
|
|
123
123
|
right: 10px;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.weda-ui-custom-
|
|
126
|
+
.weda-ui-custom-picker__column-item.multiple.is-selected {
|
|
127
127
|
color: rgba(0, 0, 0, 0.9);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
/* theme */
|
|
131
|
-
.weda-ui-custom-
|
|
131
|
+
.weda-ui-custom-picker__column-item.multiple.is-selected::after {
|
|
132
132
|
content: '';
|
|
133
133
|
width: 21px;
|
|
134
134
|
height: 21px;
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
transform: rotate(0);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.weda-ui-custom-
|
|
147
|
+
.weda-ui-custom-picker__column-item.multiple::after {
|
|
148
148
|
content: '';
|
|
149
149
|
width: 20px;
|
|
150
150
|
height: 20px;
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
left: 0px;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
.weda-ui-custom-
|
|
158
|
+
.weda-ui-custom-picker__column-item.is-disabled {
|
|
159
159
|
color: rgba(0, 0, 0, 0.26);
|
|
160
160
|
}
|
|
161
161
|
|
|
@@ -315,13 +315,13 @@
|
|
|
315
315
|
display: none;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
.weda-ui-custom-
|
|
318
|
+
.weda-ui-custom-picker__column-item-text.multiple {
|
|
319
319
|
overflow: hidden;
|
|
320
320
|
text-overflow: ellipsis;
|
|
321
321
|
white-space: nowrap;
|
|
322
322
|
margin-left: 30px;
|
|
323
323
|
}
|
|
324
|
-
.weda-ui-custom-
|
|
324
|
+
.weda-ui-custom-picker__column-item-text {
|
|
325
325
|
overflow: hidden;
|
|
326
326
|
text-overflow: ellipsis;
|
|
327
327
|
white-space: nowrap;
|
|
@@ -113,11 +113,6 @@ Component({
|
|
|
113
113
|
attached() {
|
|
114
114
|
const { range, filterable, format, defaultValue } = this.properties;
|
|
115
115
|
const label = this.getLabels(defaultValue, range);
|
|
116
|
-
console.log(filterable, format);
|
|
117
|
-
if (this.data.value?.[0] === '1') {
|
|
118
|
-
console.log(filterable);
|
|
119
|
-
console.log('99');
|
|
120
|
-
}
|
|
121
116
|
|
|
122
117
|
this.setData({
|
|
123
118
|
option: range,
|
|
@@ -152,7 +147,7 @@ Component({
|
|
|
152
147
|
if (!isFormatNeedFetch(this.data.format)) {
|
|
153
148
|
_option = range;
|
|
154
149
|
}
|
|
155
|
-
const label = this.getLabels(value, _option);
|
|
150
|
+
const label = this.getLabels(value, _option, this.data.displayValue);
|
|
156
151
|
const checkRange = this.getChecks(value, _option);
|
|
157
152
|
// 默认
|
|
158
153
|
this.setData({
|
|
@@ -289,18 +284,19 @@ Component({
|
|
|
289
284
|
this._fetchData({ pageNo, searchValue });
|
|
290
285
|
}
|
|
291
286
|
},
|
|
292
|
-
getLabels: function (values, options) {
|
|
287
|
+
getLabels: function (values, options, _preLabel) {
|
|
288
|
+
// 缓存展示值 _preLabel
|
|
293
289
|
let labels = values;
|
|
294
290
|
if (Array.isArray(values) && Array.isArray(options)) {
|
|
295
291
|
const rm = arrayToMap(options, 'value');
|
|
296
292
|
labels = values.map((d) => {
|
|
297
293
|
const obj = rm[d];
|
|
298
|
-
let item = lodashGet(obj, 'text') ?? lodashGet(obj, 'label') ?? d;
|
|
294
|
+
let item = lodashGet(obj, 'text') ?? lodashGet(obj, 'label') ?? _preLabel ?? d;
|
|
299
295
|
return textToString(item);
|
|
300
296
|
});
|
|
301
297
|
}
|
|
302
298
|
if (this.data.multiple) {
|
|
303
|
-
return labels
|
|
299
|
+
return labels?.join(',');
|
|
304
300
|
} else {
|
|
305
301
|
return labels?.[0];
|
|
306
302
|
}
|