@cloudbase/weda-ui 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.
Files changed (42) hide show
  1. package/dist/configs/components/container.js +2 -1
  2. package/dist/configs/components/wd-ad.js +40 -0
  3. package/dist/configs/components/wd-calendar.d.ts +21 -1
  4. package/dist/configs/components/wd-calendar.js +40 -1
  5. package/dist/configs/components/wd-side-tab.d.ts +13 -1
  6. package/dist/configs/components/wd-side-tab.js +30 -1
  7. package/dist/configs/components/wd-tabbar.d.ts +15 -2
  8. package/dist/configs/components/wd-tabbar.js +36 -2
  9. package/dist/configs/components/wd-top-tab.d.ts +12 -0
  10. package/dist/configs/components/wd-top-tab.js +29 -0
  11. package/dist/configs/components/web-view.js +1 -1
  12. package/dist/configs/index.d.ts +122 -8
  13. package/dist/style/weda-ui.min.css +2 -2
  14. package/dist/web/components/chart/common/core/eChartBar.d.ts +1 -1
  15. package/dist/web/components/chart/common/core/eChartBar.js +10 -9
  16. package/dist/web/components/chart/common/core/eChartLine.d.ts +1 -1
  17. package/dist/web/components/chart/common/core/eChartLine.js +10 -9
  18. package/dist/web/components/chart/common/core/eChartPie.d.ts +2 -2
  19. package/dist/web/components/chart/common/core/eChartPie.js +4 -3
  20. package/dist/web/components/form/select/allTimePicker/index.css +9 -9
  21. package/dist/web/components/form/select/allTimePicker/index.d.ts +1 -1
  22. package/dist/web/components/form/select/allTimePicker/index.js +27 -37
  23. package/dist/web/components/form/select/dropdown-select/h5.js +5 -5
  24. package/dist/web/components/form/select/dropdown-select/index.css +15 -20
  25. package/dist/web/components/form/select/index.css +8 -20
  26. package/dist/web/components/form/selectMultiple/dropdown-select/h5.js +7 -13
  27. package/dist/web/components/form/selectMultiple/dropdown-select/index.css +22 -28
  28. package/dist/web/components/form/uploader/upload/index.d.ts +1 -1
  29. package/dist/web/components/form/uploader/upload/index.js +4 -3
  30. package/dist/web/components/form/uploader/uploader.h5.js +2 -3
  31. package/dist/web/components/form/uploader/uploader.pc.js +1 -1
  32. package/dist/web/components/wd-ad/wd-ad.d.ts +2 -2
  33. package/dist/web/components/wd-ad/wd-ad.js +11 -2
  34. package/dist/web/components/wd-select/select/selectUI.js +18 -18
  35. package/dist/web/components/wd-select/wd-select.css +6 -6
  36. package/dist/web/components/wd-select/wd-select.js +2 -2
  37. package/dist/web/components/wd-select-multiple/wd-select-multiple.css +11 -26
  38. package/dist/web/components/wd-select-multiple/wd-select-multiple.js +2 -2
  39. package/dist/web/components/wd-table/components/FieldRender/index.js +1 -1
  40. package/dist/web/components/wd-upload-image/wd-upload-image.js +1 -1
  41. package/dist/web/components/web-view/web-view.js +18 -28
  42. package/package.json +1 -1
@@ -18,7 +18,7 @@ declare class EchartBar extends EchartBase {
18
18
  setColor({ setColor }: {
19
19
  setColor: any;
20
20
  }): void;
21
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix, }: {
21
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix }: {
22
22
  isSeriesShowSymbol: any;
23
23
  isUnit: any;
24
24
  unit: any;
@@ -11,6 +11,7 @@ class EchartBar extends EchartBase {
11
11
  this.config = { ...this.config, ...config };
12
12
  }
13
13
  async setSourceData({ dataSource, filterData, xField, xStatistics, xIsCountEmpty, groupKey, groupKeyTimeSpan, yField, isPile, }) {
14
+ var _a;
14
15
  const { name = '', type = '', methodName = '' } = dataSource;
15
16
  if (name !== '') {
16
17
  const params = this.createWhere({
@@ -23,12 +24,16 @@ class EchartBar extends EchartBase {
23
24
  yField,
24
25
  });
25
26
  const arrSourData = await this.getSourceData(name, methodName, type, params);
27
+ this.config.series = [];
28
+ // 没有数据,直接返回
29
+ if (!(arrSourData === null || arrSourData === void 0 ? void 0 : arrSourData.length))
30
+ return;
26
31
  // 获取 x 轴数据
27
32
  const sortedXAxisData = this.sortXAxisData(arrSourData, xField.format);
28
33
  const arrXaxisData = this.setXaxis(sortedXAxisData, xField.format);
29
34
  const arrXisCountEmptyIndex = []; // 记录空值的key
30
35
  if (Object.keys(groupKey !== null && groupKey !== void 0 ? groupKey : {}).length === 0) {
31
- const numLine = sortedXAxisData[0].YLabels.length;
36
+ const numLine = (_a = sortedXAxisData[0]) === null || _a === void 0 ? void 0 : _a.YLabels.length;
32
37
  if (numLine > 0) {
33
38
  for (let j = 0; j < numLine; j++) {
34
39
  this.config.series[j] = {
@@ -44,17 +49,13 @@ class EchartBar extends EchartBase {
44
49
  };
45
50
  sortedXAxisData.forEach((itemSource, index) => {
46
51
  var _a, _b;
47
- this.config.series[j].name =
48
- (_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : itemSource.YLabels[j].Name;
49
- if ((itemSource.YLabels[j].Value === undefined ||
50
- itemSource.YLabels[j].Value === null) &&
52
+ this.config.series[j].name = (_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : itemSource.YLabels[j].Name;
53
+ if ((itemSource.YLabels[j].Value === undefined || itemSource.YLabels[j].Value === null) &&
51
54
  !xIsCountEmpty) {
52
55
  arrXisCountEmptyIndex.push(index);
53
56
  }
54
57
  else {
55
- const value = itemSource.YLabels[j].Value
56
- ? itemSource.YLabels[j].Value
57
- : 0;
58
+ const value = itemSource.YLabels[j].Value ? itemSource.YLabels[j].Value : 0;
58
59
  this.config.series[j].data.push(value);
59
60
  }
60
61
  });
@@ -120,7 +121,7 @@ class EchartBar extends EchartBase {
120
121
  }
121
122
  }
122
123
  // 显示图表上的数据标签 单位,标签,小数位数,后缀
123
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix, }) {
124
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix }) {
124
125
  decimalDigits = Math.max(0, decimalDigits);
125
126
  this.config.series.length > 0 &&
126
127
  this.config.series.forEach((itemSeries) => {
@@ -20,7 +20,7 @@ declare class EchartLine extends EchartBase {
20
20
  setChartType({ chartType }: {
21
21
  chartType: any;
22
22
  }): void;
23
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix, }: {
23
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix }: {
24
24
  isSeriesShowSymbol: any;
25
25
  isUnit: any;
26
26
  unit: any;
@@ -12,6 +12,7 @@ class EchartLine extends EchartBase {
12
12
  this.config = { ...this.config, ...config };
13
13
  }
14
14
  async setSourceData({ dataSource, filterData, xField, xStatistics, xIsCountEmpty, yField, groupKey, groupKeyTimeSpan, }) {
15
+ var _a;
15
16
  const { name = '', type = '', methodName = '' } = dataSource;
16
17
  if (name !== '') {
17
18
  const params = this.createWhere({
@@ -24,12 +25,16 @@ class EchartLine extends EchartBase {
24
25
  groupKeyTimeSpan,
25
26
  });
26
27
  const arrSourData = await this.getSourceData(name, methodName, type, params);
28
+ this.config.series = [];
29
+ // 没有数据,直接返回
30
+ if (!(arrSourData === null || arrSourData === void 0 ? void 0 : arrSourData.length))
31
+ return;
27
32
  // 获取 x 轴数据
28
33
  const sortedXAxisData = this.sortXAxisData(arrSourData, xField.format);
29
34
  const arrXaxisData = this.setXaxis(sortedXAxisData, xField.format);
30
35
  const arrXisCountEmptyIndex = []; // 记录空值的key
31
36
  if (Object.keys(groupKey !== null && groupKey !== void 0 ? groupKey : {}).length === 0) {
32
- const numLine = sortedXAxisData[0].YLabels.length;
37
+ const numLine = (_a = sortedXAxisData[0]) === null || _a === void 0 ? void 0 : _a.YLabels.length;
33
38
  if (numLine > 0) {
34
39
  for (let j = 0; j < numLine; j++) {
35
40
  this.config.series[j] = {
@@ -45,17 +50,13 @@ class EchartLine extends EchartBase {
45
50
  };
46
51
  sortedXAxisData.forEach((itemSource, index) => {
47
52
  var _a, _b, _c, _d, _e, _f, _g;
48
- this.config.series[j].name =
49
- (_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : (_c = itemSource.YLabels[j]) === null || _c === void 0 ? void 0 : _c.Name;
50
- if ((((_d = itemSource.YLabels[j]) === null || _d === void 0 ? void 0 : _d.Value) === undefined ||
51
- ((_e = itemSource.YLabels[j]) === null || _e === void 0 ? void 0 : _e.Value) === null) &&
53
+ this.config.series[j].name = (_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : (_c = itemSource.YLabels[j]) === null || _c === void 0 ? void 0 : _c.Name;
54
+ if ((((_d = itemSource.YLabels[j]) === null || _d === void 0 ? void 0 : _d.Value) === undefined || ((_e = itemSource.YLabels[j]) === null || _e === void 0 ? void 0 : _e.Value) === null) &&
52
55
  !xIsCountEmpty) {
53
56
  arrXisCountEmptyIndex.push(index);
54
57
  }
55
58
  else {
56
- const value = ((_f = itemSource.YLabels[j]) === null || _f === void 0 ? void 0 : _f.Value)
57
- ? (_g = itemSource.YLabels[j]) === null || _g === void 0 ? void 0 : _g.Value
58
- : 0;
59
+ const value = ((_f = itemSource.YLabels[j]) === null || _f === void 0 ? void 0 : _f.Value) ? (_g = itemSource.YLabels[j]) === null || _g === void 0 ? void 0 : _g.Value : 0;
59
60
  this.config.series[j].data.push(value);
60
61
  }
61
62
  });
@@ -125,7 +126,7 @@ class EchartLine extends EchartBase {
125
126
  });
126
127
  }
127
128
  // 显示图表上的数据标签 单位,标签,小数位数,后缀
128
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix, }) {
129
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isUnit, unit, decimalDigits, suffix }) {
129
130
  decimalDigits = decimalDigits < 0 ? 0 : decimalDigits;
130
131
  this.config.series.length > 0 &&
131
132
  this.config.series.forEach((itemSeries) => {
@@ -4,7 +4,7 @@ export default EchartPie;
4
4
  * @author loonglong
5
5
  **/
6
6
  declare class EchartPie extends EchartBase {
7
- setSourceData({ dataSource, filterData, setColor, xField, xStatistics, xIsCountEmpty, yField, }: {
7
+ setSourceData({ dataSource, filterData, setColor, xField, xStatistics, xIsCountEmpty, yField }: {
8
8
  dataSource: any;
9
9
  filterData: any;
10
10
  setColor: any;
@@ -16,7 +16,7 @@ declare class EchartPie extends EchartBase {
16
16
  setChartType({ chartType }: {
17
17
  chartType: any;
18
18
  }): void;
19
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isPercent, isUnit, unit, decimalDigits, suffix, }: {
19
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isPercent, isUnit, unit, decimalDigits, suffix }: {
20
20
  isSeriesShowSymbol: any;
21
21
  isPercent: any;
22
22
  isUnit: any;
@@ -10,7 +10,7 @@ class EchartPie extends EchartBase {
10
10
  const config = getConfig();
11
11
  this.config = { ...this.config, ...config };
12
12
  }
13
- async setSourceData({ dataSource, filterData, setColor, xField, xStatistics, xIsCountEmpty, yField, }) {
13
+ async setSourceData({ dataSource, filterData, setColor, xField, xStatistics, xIsCountEmpty, yField }) {
14
14
  const { name = '', type = '', methodName = '' } = dataSource;
15
15
  if (name !== '') {
16
16
  const params = this.createWhere({
@@ -43,7 +43,8 @@ class EchartPie extends EchartBase {
43
43
  }
44
44
  }
45
45
  else {
46
- // this.config['series'][0].data = [];
46
+ // this.config.series = [];
47
+ this.config['series'][0].data = [];
47
48
  }
48
49
  }
49
50
  }
@@ -60,7 +61,7 @@ class EchartPie extends EchartBase {
60
61
  });
61
62
  }
62
63
  // 显示图表上的数据标签 单位,标签,小数位数,后缀
63
- setIsSeriesShowSymbol({ isSeriesShowSymbol, isPercent, isUnit, unit, decimalDigits, suffix, }) {
64
+ setIsSeriesShowSymbol({ isSeriesShowSymbol, isPercent, isUnit, unit, decimalDigits, suffix }) {
64
65
  decimalDigits = decimalDigits < 0 ? 0 : decimalDigits;
65
66
  let show = false;
66
67
  let position = 'inner';
@@ -80,7 +80,7 @@
80
80
  color: var(--wd-color-brand, #0052d9);
81
81
  }
82
82
 
83
- .weda-ui-custom-picker__cloumns {
83
+ .weda-ui-custom-picker__columns {
84
84
  display: flex;
85
85
  align-items: flex-start;
86
86
  position: relative;
@@ -89,12 +89,12 @@
89
89
  overflow: hidden;
90
90
  }
91
91
 
92
- .weda-ui-custom-picker__cloumns.size-s {
92
+ .weda-ui-custom-picker__columns.size-s {
93
93
  height: 200px;
94
94
  }
95
95
 
96
- .weda-ui-custom-picker__cloumns::before,
97
- .weda-ui-custom-picker__cloumns::after {
96
+ .weda-ui-custom-picker__columns::before,
97
+ .weda-ui-custom-picker__columns::after {
98
98
  content: '';
99
99
  position: absolute;
100
100
  /* width: 100%; */
@@ -105,11 +105,11 @@
105
105
  top: 80px;
106
106
  }
107
107
 
108
- .weda-ui-custom-picker__cloumns::after {
108
+ .weda-ui-custom-picker__columns::after {
109
109
  top: 120px;
110
110
  }
111
111
 
112
- .weda-ui-custom-picker__cloumn {
112
+ .weda-ui-custom-picker__column {
113
113
  flex: 1 1 0;
114
114
  overflow-y: auto;
115
115
  overflow-x: hidden;
@@ -117,11 +117,11 @@
117
117
  height: 199px;
118
118
  }
119
119
 
120
- .weda-ui-custom-picker__cloumn::-webkit-scrollbar {
120
+ .weda-ui-custom-picker__column::-webkit-scrollbar {
121
121
  display: none;
122
122
  }
123
123
 
124
- .weda-ui-custom-picker__cloumn-item {
124
+ .weda-ui-custom-picker__column-item {
125
125
  line-height: 40px;
126
126
  display: flex;
127
127
  align-items: center;
@@ -130,7 +130,7 @@
130
130
  white-space: pre-wrap;
131
131
  }
132
132
 
133
- .weda-ui-custom-picker__cloumn-item.is-current {
133
+ .weda-ui-custom-picker__column-item.is-current {
134
134
  color: rgba(0, 0, 0, 0.9);
135
135
  }
136
136
 
@@ -4,7 +4,7 @@ import './style';
4
4
  /**
5
5
  * 年月日时分秒日期选择器
6
6
  */
7
- export default function AllTimePicker({ startDate, endDate, defaultDate, title, onAllTimeCallback, }: PropsType): JSX.Element;
7
+ export default function AllTimePicker({ startDate, endDate, defaultDate, title, onAllTimeCallback }: PropsType): JSX.Element;
8
8
  export interface PropsType extends CommonFormPropsType {
9
9
  title?: string;
10
10
  startDate?: string;
@@ -7,7 +7,7 @@ import './style';
7
7
  /**
8
8
  * 年月日时分秒日期选择器
9
9
  */
10
- export default function AllTimePicker({ startDate, endDate, defaultDate, title, onAllTimeCallback, }) {
10
+ export default function AllTimePicker({ startDate, endDate, defaultDate, title, onAllTimeCallback }) {
11
11
  // 滑动监听参数
12
12
  const dateRef = useRef();
13
13
  const dateTimeRef = useRef();
@@ -51,14 +51,14 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
51
51
  if (startTime.length === 0) {
52
52
  return false;
53
53
  }
54
- return (startTime[0] === parseInt((_a = date[0].value[yearIndex]) === null || _a === void 0 ? void 0 : _a.replace('年', '')));
54
+ return startTime[0] === parseInt((_a = date[0].value[yearIndex]) === null || _a === void 0 ? void 0 : _a.replace('年', ''));
55
55
  };
56
56
  const currentIsStartMonth = () => {
57
57
  var _a;
58
58
  if (startTime.length === 0) {
59
59
  return false;
60
60
  }
61
- return (startTime[1] === parseInt((_a = date[1].value[monthIndex]) === null || _a === void 0 ? void 0 : _a.replace('月', '')));
61
+ return startTime[1] === parseInt((_a = date[1].value[monthIndex]) === null || _a === void 0 ? void 0 : _a.replace('月', ''));
62
62
  };
63
63
  const currentIsStartDay = () => {
64
64
  if (startTime.length === 0) {
@@ -71,15 +71,14 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
71
71
  if (startTime.length === 0) {
72
72
  return false;
73
73
  }
74
- return (startTime[3] ===
75
- parseInt((_a = dateTime[0].value[hoursIndex]) === null || _a === void 0 ? void 0 : _a.replace('时', '')));
74
+ return startTime[3] === parseInt((_a = dateTime[0].value[hoursIndex]) === null || _a === void 0 ? void 0 : _a.replace('时', ''));
76
75
  };
77
76
  const currentIsStartMinutes = (index = minutesIndex) => {
78
77
  var _a;
79
78
  if (startTime.length === 0) {
80
79
  return false;
81
80
  }
82
- return (startTime[4] === parseInt((_a = dateTime[1].value[index]) === null || _a === void 0 ? void 0 : _a.replace('分', '')));
81
+ return startTime[4] === parseInt((_a = dateTime[1].value[index]) === null || _a === void 0 ? void 0 : _a.replace('分', ''));
83
82
  };
84
83
  /**
85
84
  * 当前选中时间的否和开始、结束时候一致
@@ -96,7 +95,7 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
96
95
  if (endTime.length === 0) {
97
96
  return false;
98
97
  }
99
- return (endTime[1] === parseInt((_a = date[1].value[monthIndex]) === null || _a === void 0 ? void 0 : _a.replace('月', '')));
98
+ return endTime[1] === parseInt((_a = date[1].value[monthIndex]) === null || _a === void 0 ? void 0 : _a.replace('月', ''));
100
99
  };
101
100
  const currentIsEndDay = () => {
102
101
  if (endTime.length === 0) {
@@ -109,15 +108,14 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
109
108
  if (endTime.length === 0) {
110
109
  return false;
111
110
  }
112
- return (endTime[3] === parseInt((_a = dateTime[0].value[hoursIndex]) === null || _a === void 0 ? void 0 : _a.replace('时', '')));
111
+ return endTime[3] === parseInt((_a = dateTime[0].value[hoursIndex]) === null || _a === void 0 ? void 0 : _a.replace('时', ''));
113
112
  };
114
113
  const currentIsEndMinutes = () => {
115
114
  var _a;
116
115
  if (endTime.length === 0) {
117
116
  return false;
118
117
  }
119
- return (endTime[4] ===
120
- parseInt((_a = dateTime[1].value[minutesIndex]) === null || _a === void 0 ? void 0 : _a.replace('分', '')));
118
+ return endTime[4] === parseInt((_a = dateTime[1].value[minutesIndex]) === null || _a === void 0 ? void 0 : _a.replace('分', ''));
121
119
  };
122
120
  const showAreaToast = () => {
123
121
  var _a;
@@ -774,9 +772,7 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
774
772
  * 日历向后翻页
775
773
  */
776
774
  const nextCalendarPage = () => {
777
- const isBorder = endTime.length > 0
778
- ? date[1].value[monthIndex] === getFormatData(endTime[1]) + '月'
779
- : monthIndex === 13;
775
+ const isBorder = endTime.length > 0 ? date[1].value[monthIndex] === getFormatData(endTime[1]) + '月' : monthIndex === 13;
780
776
  if (yearIndex === date[0].value.length - 3 && isBorder) {
781
777
  // 到顶了
782
778
  return;
@@ -797,8 +793,7 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
797
793
  const preCalendarPageUpdateDate = () => {
798
794
  const id = date[1].id;
799
795
  let value;
800
- if ((yearIndex === 2 && startTime.length > 0) ||
801
- (yearIndex === 3 && monthIndex === 2)) {
796
+ if ((yearIndex === 2 && startTime.length > 0) || (yearIndex === 3 && monthIndex === 2)) {
802
797
  // 开始年份===结束年份
803
798
  const sn = endTime.length > 0 && startTime[0] === endTime[0];
804
799
  value = defaultData()[1].value.filter((item) => {
@@ -806,9 +801,7 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
806
801
  return true;
807
802
  }
808
803
  const current = parseInt(item.replace('月', ''));
809
- return sn
810
- ? current >= startTime[1] && current <= endTime[1]
811
- : current >= startTime[1];
804
+ return sn ? current >= startTime[1] && current <= endTime[1] : current >= startTime[1];
812
805
  });
813
806
  }
814
807
  else {
@@ -821,8 +814,7 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
821
814
  const id = date[1].id;
822
815
  let value;
823
816
  if (endTime.length > 0 &&
824
- ((yearIndex === date[0].value.length - 4 && monthIndex === 13) ||
825
- yearIndex === date[0].value.length - 3)) {
817
+ ((yearIndex === date[0].value.length - 4 && monthIndex === 13) || yearIndex === date[0].value.length - 3)) {
826
818
  // 开始年份===结束年份
827
819
  const sn = startTime.length > 0 && startTime[0] === endTime[0];
828
820
  // 12月及其以后
@@ -831,9 +823,7 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
831
823
  return true;
832
824
  }
833
825
  const current = parseInt(item.replace('月', ''));
834
- return sn
835
- ? current >= startTime[1] && current <= endTime[1]
836
- : current <= endTime[1];
826
+ return sn ? current >= startTime[1] && current <= endTime[1] : current <= endTime[1];
837
827
  });
838
828
  }
839
829
  else if (yearIndex === 2 && monthIndex !== date[1].value.length - 3) {
@@ -896,32 +886,32 @@ export default function AllTimePicker({ startDate, endDate, defaultDate, title,
896
886
  } }), _jsx("span", { "data-testid": "next-calendar-page", className: "weda-ui-icon-turn-next", onClick: () => {
897
887
  timeMode.current = false;
898
888
  nextCalendarPage();
899
- } })] })] }), _jsxs("div", { style: { height: '310px' }, children: [!selectMonth && !selectTime && (_jsx(Calendar, { startTime: startTime, endTime: endTime, selectYear: getDateValue(0, yearIndex, '年', ''), selectMonth: getDateValue(1, monthIndex, '月', ''), defaultSelectDay: selectDay, setCurrentDay: setCurrentDay })), selectMonth && (_jsx("div", { "data-testid": "allTime-scroll-data", className: "weda-ui-custom-picker__cloumns size-s",
889
+ } })] })] }), _jsxs("div", { style: { height: '310px' }, children: [!selectMonth && !selectTime && (_jsx(Calendar, { startTime: startTime, endTime: endTime, selectYear: getDateValue(0, yearIndex, '年', ''), selectMonth: getDateValue(1, monthIndex, '月', ''), defaultSelectDay: selectDay, setCurrentDay: setCurrentDay })), selectMonth && (_jsx("div", { "data-testid": "allTime-scroll-data", className: "weda-ui-custom-picker__columns size-s",
900
890
  // style={{ display: 'none' }}
901
891
  onScroll: (e) => {
902
892
  dateScroll(e, 'date');
903
- }, ref: dateRef, children: date.map((cloumn) => {
904
- return (_jsx("ul", { className: "weda-ui-custom-picker__cloumn", children: cloumn.value.map((item, index) => {
905
- const selectIndex = cloumn.id === 'column1' ? yearIndex : monthIndex;
906
- return (_jsx("li", { className: `weda-ui-custom-picker__cloumn-item ${index === selectIndex ? 'is-current' : ''}`, children: _jsx("p", { children: item }) }, index));
907
- }) }, cloumn.id));
908
- }) })), selectTime && (_jsx("div", { "data-testid": "allTime-scroll-time", className: "weda-ui-custom-picker__cloumns size-s",
893
+ }, ref: dateRef, children: date.map((column) => {
894
+ return (_jsx("ul", { className: "weda-ui-custom-picker__column", children: column.value.map((item, index) => {
895
+ const selectIndex = column.id === 'column1' ? yearIndex : monthIndex;
896
+ return (_jsx("li", { className: `weda-ui-custom-picker__column-item ${index === selectIndex ? 'is-current' : ''}`, children: _jsx("p", { children: item }) }, index));
897
+ }) }, column.id));
898
+ }) })), selectTime && (_jsx("div", { "data-testid": "allTime-scroll-time", className: "weda-ui-custom-picker__columns size-s",
909
899
  // style={{ display: 'none' }}
910
900
  onScroll: (e) => {
911
901
  dateScroll(e, 'dateTime');
912
- }, ref: dateTimeRef, children: dateTime.map((cloumn) => {
913
- return (_jsx("ul", { className: "weda-ui-custom-picker__cloumn", children: cloumn.value.map((item, index) => {
902
+ }, ref: dateTimeRef, children: dateTime.map((column) => {
903
+ return (_jsx("ul", { className: "weda-ui-custom-picker__column", children: column.value.map((item, index) => {
914
904
  let selectIndex = 8;
915
- if (cloumn.id === 'column1') {
905
+ if (column.id === 'column1') {
916
906
  selectIndex = hoursIndex;
917
907
  }
918
- else if (cloumn.id === 'column2') {
908
+ else if (column.id === 'column2') {
919
909
  selectIndex = minutesIndex;
920
910
  }
921
- else if (cloumn.id === 'column3') {
911
+ else if (column.id === 'column3') {
922
912
  selectIndex = secondsIndex;
923
913
  }
924
- return (_jsx("li", { className: `weda-ui-custom-picker__cloumn-item ${index == selectIndex ? 'is-current' : ''}`, children: _jsx("p", { children: item }) }, index));
925
- }) }, cloumn.id));
914
+ return (_jsx("li", { className: `weda-ui-custom-picker__column-item ${index == selectIndex ? 'is-current' : ''}`, children: _jsx("p", { children: item }) }, index));
915
+ }) }, column.id));
926
916
  }) }))] })] })] })] }) }));
927
917
  }
@@ -7,7 +7,7 @@ import Loading from '../status/loading';
7
7
  import Retry from '../status/retry';
8
8
  import Empty from '../status/empty';
9
9
  import AllEmpty from '../status/allEmpty';
10
- import { PAGE_SIZE, requestFatherRelatedOption, RequestOptionType, } from '../request';
10
+ import { PAGE_SIZE, requestFatherRelatedOption, RequestOptionType } from '../request';
11
11
  import classNames from '../../../../utils/classnames';
12
12
  import './style';
13
13
  export function SelectPickerH5({ updateValue, selectedValue, options, isTurnPages, loadMore, onSearchValue, reTry, status, isShow, params, onSearchValueInput, addRelationButton, portalContainer, }) {
@@ -106,14 +106,14 @@ export function SelectPickerH5({ updateValue, selectedValue, options, isTurnPage
106
106
  } }))] }), _jsx("button", { className: "weda-ui-custom-search__btn-cancle", onClick: () => {
107
107
  setInputFocus(false);
108
108
  setSearchValue('');
109
- }, children: "\u53D6\u6D88" })] }), status === Status.ALl_EMPTY ? (_jsx(AllEmpty, { height: inputFocus ? 'calc(100vh - 160px)' : '280px' })) : (_jsxs("div", { className: "weda-ui-custom-picker__cloumns weda-ui-custom-picker__cloumns--select ", "data-testid": "weda-ui-custom-picker__cloumns", style: {
109
+ }, children: "\u53D6\u6D88" })] }), status === Status.ALl_EMPTY ? (_jsx(AllEmpty, { height: inputFocus ? 'calc(100vh - 160px)' : '280px' })) : (_jsxs("div", { className: "weda-ui-custom-picker__columns weda-ui-custom-picker__columns--select ", "data-testid": "weda-ui-custom-picker__columns", style: {
110
110
  height: inputFocus ? 'calc(100vh - 160px)' : '280px',
111
- }, onScroll: contentScroll, ref: contentRef, children: [_jsxs("ul", { className: "weda-ui-custom-picker__cloumn", style: {
111
+ }, onScroll: contentScroll, ref: contentRef, children: [_jsxs("ul", { className: "weda-ui-custom-picker__column", style: {
112
112
  height: inputFocus ? 'calc(100vh - 190px)' : '250px',
113
113
  }, children: [options === null || options === void 0 ? void 0 : options.map((item, index) => {
114
114
  // is-selected 选中态
115
115
  // is-disabled 禁用态,该状态备用,暂时不让生效index === -1
116
- const itemCls = classNames('weda-ui-custom-picker__cloumn-item', {
116
+ const itemCls = classNames('weda-ui-custom-picker__column-item', {
117
117
  'is-selected': index === clickIndex && !inputFocus,
118
118
  'is-disabled': index === -1 || item.disabled,
119
119
  });
@@ -123,6 +123,6 @@ export function SelectPickerH5({ updateValue, selectedValue, options, isTurnPage
123
123
  setInputFocus(false);
124
124
  setSearchValue('');
125
125
  updateValue(item, true, true, true);
126
- }, children: _jsx("p", { className: 'weda-ui-custom-picker__cloumn-item-text', children: item.label }) }, index));
126
+ }, children: _jsx("p", { className: 'weda-ui-custom-picker__column-item-text', children: item.label }) }, index));
127
127
  }), status === Status.LOADING && (_jsx("li", { children: _jsx(Loading, {}) }, 'loading')), status === Status.ERROR && (_jsx("li", { children: _jsx(Retry, { reTry: reTry }) }, 'retry')), status === Status.EMPTY && (_jsx("li", { children: _jsx(Empty, {}) }, 'empty'))] }), addRelationButton] }))] })] })] }) })) : null;
128
128
  }
@@ -77,25 +77,22 @@
77
77
  transform: translateX(0);
78
78
  }
79
79
 
80
- .weda-ui-custom-search.is-focused
81
- .weda-ui-custom-search-box__search-placeholder {
80
+ .weda-ui-custom-search.is-focused .weda-ui-custom-search-box__search-placeholder {
82
81
  display: none;
83
82
  }
84
83
 
85
- .weda-ui-custom-picker__cloumn-item.is-current {
84
+ .weda-ui-custom-picker__column-item.is-current {
86
85
  color: rgba(0, 0, 0, 0.9);
87
86
  }
88
87
 
89
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select
90
- .weda-ui-custom-picker__cloumn-item {
88
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select .weda-ui-custom-picker__column-item {
91
89
  height: 48px;
92
90
  justify-content: flex-start;
93
91
  color: rgba(0, 0, 0, 0.9);
94
92
  position: relative;
95
93
  }
96
94
 
97
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select
98
- .weda-ui-custom-picker__cloumn-item::before {
95
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select .weda-ui-custom-picker__column-item::before {
99
96
  content: '';
100
97
  position: absolute;
101
98
  bottom: 0;
@@ -105,13 +102,12 @@
105
102
  transform: scaleY(0.5);
106
103
  }
107
104
 
108
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select
109
- .weda-ui-custom-picker__cloumn-item.is-selected {
105
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select .weda-ui-custom-picker__column-item.is-selected {
110
106
  color: var(--wd-color-brand, #0052d9);
111
107
  }
112
108
 
113
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select
114
- .weda-ui-custom-picker__cloumn-item.is-selected::after {
109
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select
110
+ .weda-ui-custom-picker__column-item.is-selected::after {
115
111
  content: '';
116
112
  display: block;
117
113
  width: 8px;
@@ -124,23 +120,22 @@
124
120
  right: 10px;
125
121
  }
126
122
 
127
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select
128
- .weda-ui-custom-picker__cloumn-item.is-disabled {
123
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select .weda-ui-custom-picker__column-item.is-disabled {
129
124
  color: rgba(0, 0, 0, 0.26);
130
125
  }
131
126
 
132
127
  /* 下拉选择类型 */
133
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select {
128
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select {
134
129
  padding: 0 16px;
135
130
  height: 280px;
136
131
  }
137
132
 
138
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select::before,
139
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select::after {
133
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select::before,
134
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select::after {
140
135
  display: none;
141
136
  }
142
137
 
143
- .weda-ui-custom-picker__cloumns--select .weda-ui-custom-picker__cloumn {
138
+ .weda-ui-custom-picker__columns--select .weda-ui-custom-picker__column {
144
139
  height: 250px;
145
140
  }
146
141
 
@@ -166,17 +161,17 @@
166
161
  caret-color: #000000;
167
162
  }
168
163
 
169
- .weda-ui-custom-picker__cloumn-item-text {
164
+ .weda-ui-custom-picker__column-item-text {
170
165
  overflow: hidden;
171
166
  text-overflow: ellipsis;
172
167
  white-space: nowrap;
173
168
  margin-right: 40px;
174
169
  }
175
170
 
176
- .weda-ui-custom-picker__cloumns {
171
+ .weda-ui-custom-picker__columns {
177
172
  display: flex;
178
173
  flex-direction: column;
179
174
  }
180
- .weda-ui-custom-picker__cloumn {
175
+ .weda-ui-custom-picker__column {
181
176
  width: 100%;
182
177
  }
@@ -54,33 +54,21 @@
54
54
  }
55
55
 
56
56
  /* 下拉单选 theme */
57
- :root
58
- .wedatea2td-dropdown-box
59
- .wedatea2td-search--icon-front
60
- .wedatea2td-input--search:focus,
61
- :root
62
- .wedatea2td-dropdown-box
63
- .wedatea2td-search--simple
64
- .wedatea2td-input--search:focus,
65
- :host
66
- .wedatea2td-dropdown-box
67
- .wedatea2td-search--icon-front
68
- .wedatea2td-input--search:focus,
69
- :host
70
- .wedatea2td-dropdown-box
71
- .wedatea2td-search--simple
72
- .wedatea2td-input--search:focus {
57
+ :root .wedatea2td-dropdown-box .wedatea2td-search--icon-front .wedatea2td-input--search:focus,
58
+ :root .wedatea2td-dropdown-box .wedatea2td-search--simple .wedatea2td-input--search:focus,
59
+ :host .wedatea2td-dropdown-box .wedatea2td-search--icon-front .wedatea2td-input--search:focus,
60
+ :host .wedatea2td-dropdown-box .wedatea2td-search--simple .wedatea2td-input--search:focus {
73
61
  border-color: var(--wd-color-brand, #0052d9);
74
62
  }
75
63
  :root
76
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select
77
- .weda-ui-custom-picker__cloumn-item.is-selected,
64
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select
65
+ .weda-ui-custom-picker__column-item.is-selected,
78
66
  :root .weda-ui-custom-search__btn-cancle,
79
67
  :root .weda-ui-custom-picker__loading-icon,
80
68
  :root .weda-ui-custom-picker__status--loading,
81
69
  :host
82
- .weda-ui-custom-picker__cloumns.weda-ui-custom-picker__cloumns--select
83
- .weda-ui-custom-picker__cloumn-item.is-selected,
70
+ .weda-ui-custom-picker__columns.weda-ui-custom-picker__columns--select
71
+ .weda-ui-custom-picker__column-item.is-selected,
84
72
  :host .weda-ui-custom-search__btn-cancle,
85
73
  :host .weda-ui-custom-picker__loading-icon,
86
74
  :host .weda-ui-custom-picker__status--loading {