@trionesdev/antd-taro-react 0.0.2-beta.16 → 0.0.2-beta.17

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 (60) hide show
  1. package/LICENSE +21 -21
  2. package/dist/ActionSheet/style.scss +52 -52
  3. package/dist/Button/button.d.ts +2 -2
  4. package/dist/Button/button.js +2 -3
  5. package/dist/Button/style.scss +246 -235
  6. package/dist/Calendar/style.scss +88 -88
  7. package/dist/Calendar/touchable-calendar-grid.js +9 -9
  8. package/dist/CalendarDatetimePicker/style.scss +62 -62
  9. package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.d.ts +2 -2
  10. package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.js +3 -3
  11. package/dist/CalendarPicker/style.scss +32 -32
  12. package/dist/CalendarPickerCell/CalendarPickerCell.d.ts +2 -2
  13. package/dist/CalendarPickerCell/CalendarPickerCell.js +3 -3
  14. package/dist/CalendarPickerCell/CalendarRangePickerCell.d.ts +2 -2
  15. package/dist/CalendarPickerCell/CalendarRangePickerCell.js +3 -3
  16. package/dist/CascaderPicker/style.scss +45 -45
  17. package/dist/CascaderPickerCell/CascaderPickerCell.d.ts +2 -2
  18. package/dist/CascaderPickerCell/CascaderPickerCell.js +3 -3
  19. package/dist/DatePicker/style.scss +41 -41
  20. package/dist/FetchPicker/FetchPicker.d.ts +113 -0
  21. package/dist/FetchPicker/FetchPicker.js +322 -0
  22. package/dist/FetchPicker/index.d.ts +4 -0
  23. package/dist/FetchPicker/index.js +3 -0
  24. package/dist/FetchPicker/styles.scss +118 -0
  25. package/dist/FloatButton/style.scss +126 -126
  26. package/dist/Form/FormItem/{form-item-input.d.ts → form-item-content.d.ts} +3 -1
  27. package/dist/Form/FormItem/{form-item-input.js → form-item-content.js} +2 -2
  28. package/dist/Form/FormItem/form-item-label.js +2 -8
  29. package/dist/Form/FormItem/form-item.d.ts +3 -2
  30. package/dist/Form/FormItem/form-item.js +23 -19
  31. package/dist/Form/index.d.ts +2 -2
  32. package/dist/Form/style.scss +100 -78
  33. package/dist/FormCell/index.d.ts +3 -0
  34. package/dist/FormCell/index.js +2 -0
  35. package/dist/ImagesPreview/style.scss +34 -34
  36. package/dist/ImagesWall/style.scss +70 -70
  37. package/dist/Input/index.scss +282 -267
  38. package/dist/Input/input-affix-wrapper.js +1 -1
  39. package/dist/Input/taro-input.js +16 -3
  40. package/dist/Input/types.d.ts +3 -3
  41. package/dist/Loading/index.d.ts +4 -0
  42. package/dist/Loading/index.js +3 -0
  43. package/dist/Overlay/style.scss +20 -20
  44. package/dist/Picker/Picker.d.ts +8 -0
  45. package/dist/Picker/Picker.js +6 -7
  46. package/dist/Picker/style.scss +41 -41
  47. package/dist/PickerView/style.scss +13 -13
  48. package/dist/PickerView/types.d.ts +2 -2
  49. package/dist/Popup/style.scss +126 -124
  50. package/dist/SideBar/side-bar.js +6 -6
  51. package/dist/SideBar/style.scss +85 -85
  52. package/dist/Toast/style.scss +63 -63
  53. package/dist/VerificationCodeInput/style.scss +20 -20
  54. package/dist/index.d.ts +8 -3
  55. package/dist/index.js +3 -1
  56. package/dist/style/variable.scss +34 -20
  57. package/package.json +20 -24
  58. package/readme.md +23 -23
  59. package/dist/SpinLoading/index.d.ts +0 -3
  60. package/dist/SpinLoading/index.js +0 -2
@@ -1,88 +1,88 @@
1
- @use "../style/variable" as variable;
2
-
3
- $calendarCls: 'triones-antm-calendar';
4
-
5
- .#{$calendarCls}-grid {
6
- //display: flex;
7
- //flex-wrap: wrap;
8
- display: grid;
9
- grid-template-columns: repeat(7, 1fr);
10
- }
11
-
12
- .#{$calendarCls}-cell {
13
- aspect-ratio: 1;
14
- display: flex;
15
- justify-content: center;
16
- align-items: center;
17
- border-radius: variable.$trionesBorderRadius;
18
- cursor: default;
19
- flex-direction: column;
20
-
21
- &-date {
22
- display: flex;
23
- width: 100%;
24
- justify-content: center;
25
- align-items: center;
26
- }
27
-
28
- &-mouth {
29
- display: flex;
30
- width: 100%;
31
- justify-content: center;
32
- align-items: center;
33
- font-size: 8Px;
34
- }
35
-
36
- &.#{$calendarCls}-cell {
37
- box-sizing: border-box;
38
- &-disabled {
39
- color: #999999;
40
- }
41
- &-today{
42
- border: 1Px solid variable.$trionesColorPrimary;
43
- }
44
- &-selected {
45
- background-color: variable.$trionesColorPrimary;
46
- color: white;
47
- }
48
-
49
- &-selected-range {
50
- border-radius: 0;
51
- background-color: variable.$trionesColorPrimaryBg;
52
- color: black;
53
- }
54
- }
55
- }
56
-
57
- .#{$calendarCls} {
58
- &-header {
59
- display: flex;
60
- justify-content: space-between;
61
- align-items: center;
62
-
63
- &-title {
64
- font-size: 16Px;
65
- padding: 8Px;
66
- text-align: center;
67
- }
68
-
69
- &-button {
70
- padding-left: 12Px;
71
- padding-right: 12Px;
72
- cursor: pointer;
73
- }
74
- }
75
-
76
- &-week {
77
- display: grid;
78
- grid-template-columns: repeat(7, 1fr);
79
-
80
- &-cell {
81
- display: flex;
82
- justify-content: center;
83
- align-items: center;
84
- padding-top: 8Px;
85
- padding-bottom: 8Px;
86
- }
87
- }
88
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $calendarCls: 'triones-antm-calendar';
4
+
5
+ .#{$calendarCls}-grid {
6
+ //display: flex;
7
+ //flex-wrap: wrap;
8
+ display: grid;
9
+ grid-template-columns: repeat(7, 1fr);
10
+ }
11
+
12
+ .#{$calendarCls}-cell {
13
+ aspect-ratio: 1;
14
+ display: flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ border-radius: variable.$trionesBorderRadius;
18
+ cursor: default;
19
+ flex-direction: column;
20
+
21
+ &-date {
22
+ display: flex;
23
+ width: 100%;
24
+ justify-content: center;
25
+ align-items: center;
26
+ }
27
+
28
+ &-mouth {
29
+ display: flex;
30
+ width: 100%;
31
+ justify-content: center;
32
+ align-items: center;
33
+ font-size: 8Px;
34
+ }
35
+
36
+ &.#{$calendarCls}-cell {
37
+ box-sizing: border-box;
38
+ &-disabled {
39
+ color: #999999;
40
+ }
41
+ &-today{
42
+ border: 1Px solid variable.$trionesColorPrimary;
43
+ }
44
+ &-selected {
45
+ background-color: variable.$trionesColorPrimary;
46
+ color: white;
47
+ }
48
+
49
+ &-selected-range {
50
+ border-radius: 0;
51
+ background-color: variable.$trionesColorPrimaryBg;
52
+ color: black;
53
+ }
54
+ }
55
+ }
56
+
57
+ .#{$calendarCls} {
58
+ &-header {
59
+ display: flex;
60
+ justify-content: space-between;
61
+ align-items: center;
62
+
63
+ &-title {
64
+ font-size: 16Px;
65
+ padding: 8Px;
66
+ text-align: center;
67
+ }
68
+
69
+ &-button {
70
+ padding-left: 12Px;
71
+ padding-right: 12Px;
72
+ cursor: pointer;
73
+ }
74
+ }
75
+
76
+ &-week {
77
+ display: grid;
78
+ grid-template-columns: repeat(7, 1fr);
79
+
80
+ &-cell {
81
+ display: flex;
82
+ justify-content: center;
83
+ align-items: center;
84
+ padding-top: 8Px;
85
+ padding-bottom: 8Px;
86
+ }
87
+ }
88
+ }
@@ -21,8 +21,8 @@ import classNames from "classnames";
21
21
  import dayjs from "dayjs";
22
22
  var monthLines = 6;
23
23
 
24
- /**
25
- * 可以手势滑动的日历组件
24
+ /**
25
+ * 可以手势滑动的日历组件
26
26
  */
27
27
  export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
28
28
  var _wrapperRef$current3;
@@ -67,8 +67,8 @@ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
67
67
  months = _useState10[0],
68
68
  setMonths = _useState10[1];
69
69
 
70
- /**
71
- * 计算出每个格子的大小
70
+ /**
71
+ * 计算出每个格子的大小
72
72
  */
73
73
  var cellSize = /*#__PURE__*/function () {
74
74
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -101,8 +101,8 @@ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
101
101
  return _ref2.apply(this, arguments);
102
102
  };
103
103
  }();
104
- /**
105
- * 计算出最大的translateY,默认为wrapperRef.current?.clientHeight
104
+ /**
105
+ * 计算出最大的translateY,默认为wrapperRef.current?.clientHeight
106
106
  */
107
107
  var minTranslateY = /*#__PURE__*/function () {
108
108
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
@@ -136,9 +136,9 @@ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
136
136
  };
137
137
  }();
138
138
 
139
- /**
140
- * 计算出该月的行数
141
- * @param mouth
139
+ /**
140
+ * 计算出该月的行数
141
+ * @param mouth
142
142
  */
143
143
  var mouthLines = function mouthLines(mouth) {
144
144
  var firstDate = dayjs(new Date(mouth.year(), mouth.month(), 1));
@@ -1,62 +1,62 @@
1
- @use "../style/variable" as variable;
2
-
3
- $calendarDatetimePickerCls: 'triones-antm-calendar-datetime-picker';
4
-
5
- .#{$calendarDatetimePickerCls} {
6
- border-top-left-radius: variable.$trionesBorderRadius;
7
- border-top-right-radius: variable.$trionesBorderRadius;
8
-
9
- &-header {
10
- display: flex;
11
- justify-content: space-between;
12
- border-bottom: 1Px solid variable.$trionesBorderColor;
13
-
14
-
15
- &-display {
16
- display: flex;
17
- padding-left: 8Px;
18
-
19
- &-date {
20
- padding-inline: 8Px;
21
- cursor: default;
22
- display: flex;
23
- align-items: center;
24
- }
25
-
26
- &-time {
27
- padding-inline: 12Px;
28
- display: flex;
29
- align-items: center;
30
- cursor: default;
31
- }
32
-
33
- &-active {
34
- color: variable.$trionesColorText;
35
- font-weight: bold;
36
- background-color: variable.$trionesColorBgTextActive;
37
- }
38
- }
39
-
40
- &-button {
41
- padding: 12Px 16Px;
42
-
43
- &-cancel {}
44
-
45
- &-ok {
46
- color: variable.$trionesColorPrimary;
47
- }
48
- }
49
- }
50
-
51
- &-body {
52
- .time-picker {
53
- .time-item {
54
- flex-shrink: 0;
55
- display: flex;
56
- align-items: center;
57
- justify-content: center;
58
- height: 32Px;
59
- }
60
- }
61
- }
62
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $calendarDatetimePickerCls: 'triones-antm-calendar-datetime-picker';
4
+
5
+ .#{$calendarDatetimePickerCls} {
6
+ border-top-left-radius: variable.$trionesBorderRadius;
7
+ border-top-right-radius: variable.$trionesBorderRadius;
8
+
9
+ &-header {
10
+ display: flex;
11
+ justify-content: space-between;
12
+ border-bottom: 1Px solid variable.$trionesBorderColor;
13
+
14
+
15
+ &-display {
16
+ display: flex;
17
+ padding-left: 8Px;
18
+
19
+ &-date {
20
+ padding-inline: 8Px;
21
+ cursor: default;
22
+ display: flex;
23
+ align-items: center;
24
+ }
25
+
26
+ &-time {
27
+ padding-inline: 12Px;
28
+ display: flex;
29
+ align-items: center;
30
+ cursor: default;
31
+ }
32
+
33
+ &-active {
34
+ color: variable.$trionesColorText;
35
+ font-weight: bold;
36
+ background-color: variable.$trionesColorBgTextActive;
37
+ }
38
+ }
39
+
40
+ &-button {
41
+ padding: 12Px 16Px;
42
+
43
+ &-cancel {}
44
+
45
+ &-ok {
46
+ color: variable.$trionesColorPrimary;
47
+ }
48
+ }
49
+ }
50
+
51
+ &-body {
52
+ .time-picker {
53
+ .time-item {
54
+ flex-shrink: 0;
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ height: 32Px;
59
+ }
60
+ }
61
+ }
62
+ }
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  import dayjs from "dayjs";
3
- import { CellProps } from "../Cell";
4
- export type CalendarDatetimePickerCellProps = Omit<CellProps, 'value'> & {
3
+ import { FormCellProps } from "../FormCell";
4
+ export type CalendarDatetimePickerCellProps = Omit<FormCellProps, 'value'> & {
5
5
  value?: dayjs.Dayjs | Date;
6
6
  format?: string;
7
7
  onChange?: (value?: dayjs.Dayjs) => void;
@@ -12,7 +12,7 @@ import React, { useEffect, useState } from 'react';
12
12
  import CalendarDatetimePicker from "../CalendarDatetimePicker";
13
13
  import dayjs from "dayjs";
14
14
  import { isSame } from "../utils/dayjs";
15
- import Cell from "../Cell";
15
+ import FormCell from "../FormCell";
16
16
  export var CalendarDatetimePickerCell = function CalendarDatetimePickerCell(_ref) {
17
17
  var value = _ref.value,
18
18
  _ref$format = _ref.format,
@@ -52,9 +52,9 @@ export var CalendarDatetimePickerCell = function CalendarDatetimePickerCell(_ref
52
52
  setInnerOpen(false);
53
53
  onChange === null || onChange === void 0 || onChange(date);
54
54
  }
55
- }), /*#__PURE__*/React.createElement(Cell, _extends({
55
+ }), /*#__PURE__*/React.createElement(FormCell, _extends({}, rest, {
56
56
  onClick: function onClick() {
57
57
  setInnerOpen(true);
58
58
  }
59
- }, rest), handleValueRender()));
59
+ }), handleValueRender()));
60
60
  };
@@ -1,32 +1,32 @@
1
- @use "../style/variable" as variable;
2
-
3
- $calendarPickerCls: 'triones-antm-calendar-picker';
4
-
5
- .#{$calendarPickerCls} {
6
- border-top-left-radius: variable.$trionesBorderRadius;
7
- border-top-right-radius: variable.$trionesBorderRadius;
8
-
9
- &-header {
10
- display: flex;
11
- justify-content: space-between;
12
- border-bottom: 1Px solid variable.$trionesBorderColor;
13
- padding: 4Px;
14
- &-button {
15
- padding: 8Px 12Px;
16
-
17
- &-cancel{
18
- color: variable.$trionesColorTextSecondary;
19
- }
20
-
21
- &-ok {
22
- color: variable.$trionesColorPrimary;
23
- }
24
- }
25
-
26
-
27
- }
28
-
29
- &-body {
30
- pointer-events: unset;
31
- }
32
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $calendarPickerCls: 'triones-antm-calendar-picker';
4
+
5
+ .#{$calendarPickerCls} {
6
+ border-top-left-radius: variable.$trionesBorderRadius;
7
+ border-top-right-radius: variable.$trionesBorderRadius;
8
+
9
+ &-header {
10
+ display: flex;
11
+ justify-content: space-between;
12
+ border-bottom: 1Px solid variable.$trionesBorderColor;
13
+ padding: 4Px;
14
+ &-button {
15
+ padding: 8Px 12Px;
16
+
17
+ &-cancel{
18
+ color: variable.$trionesColorTextSecondary;
19
+ }
20
+
21
+ &-ok {
22
+ color: variable.$trionesColorPrimary;
23
+ }
24
+ }
25
+
26
+
27
+ }
28
+
29
+ &-body {
30
+ pointer-events: unset;
31
+ }
32
+ }
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { FC } from "react";
3
3
  import dayjs from "dayjs";
4
- import { CellProps } from "../Cell";
5
- export type CalendarPickerCellProps = Omit<CellProps, 'value'> & {
4
+ import { FormCellProps } from "../FormCell";
5
+ export type CalendarPickerCellProps = Omit<FormCellProps, 'value'> & {
6
6
  month?: dayjs.Dayjs;
7
7
  title?: React.ReactNode;
8
8
  value?: dayjs.Dayjs;
@@ -10,7 +10,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
11
  import React, { useState } from "react";
12
12
  import dayjs from "dayjs";
13
- import Cell from "../Cell";
13
+ import FormCell from "../FormCell";
14
14
  import CalendarPicker from "../CalendarPicker";
15
15
  export var CalendarPickerCell = function CalendarPickerCell(_ref) {
16
16
  var month = _ref.month,
@@ -46,9 +46,9 @@ export var CalendarPickerCell = function CalendarPickerCell(_ref) {
46
46
  setInternalValue(date);
47
47
  onChange === null || onChange === void 0 || onChange(date);
48
48
  }
49
- }), /*#__PURE__*/React.createElement(Cell, _extends({
49
+ }), /*#__PURE__*/React.createElement(FormCell, _extends({}, rest, {
50
50
  onClick: function onClick() {
51
51
  setInnerOpen(true);
52
52
  }
53
- }, rest), handleValueRender()));
53
+ }), handleValueRender()));
54
54
  };
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { FC } from "react";
3
3
  import dayjs from "dayjs";
4
- import { CellProps } from "../Cell";
5
- export type CalendarRangePickerCellProps = Omit<CellProps, 'value'> & {
4
+ import { FormCellProps } from "../FormCell";
5
+ export type CalendarRangePickerCellProps = Omit<FormCellProps, 'value'> & {
6
6
  month?: dayjs.Dayjs;
7
7
  title?: React.ReactNode;
8
8
  value?: (dayjs.Dayjs | Date)[];
@@ -9,7 +9,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
11
  import React, { useState } from "react";
12
- import Cell from "../Cell";
12
+ import FormCell from "../FormCell";
13
13
  import CalendarPicker from "../CalendarPicker";
14
14
  import { toDayjsArray } from "../utils/dayjs";
15
15
  export var CalendarRangePickerCell = function CalendarRangePickerCell(_ref) {
@@ -48,9 +48,9 @@ export var CalendarRangePickerCell = function CalendarRangePickerCell(_ref) {
48
48
  setInternalValue(date);
49
49
  onChange === null || onChange === void 0 || onChange(date);
50
50
  }
51
- }), /*#__PURE__*/React.createElement(Cell, _extends({
51
+ }), /*#__PURE__*/React.createElement(FormCell, _extends({}, rest, {
52
52
  onClick: function onClick() {
53
53
  setInnerOpen(true);
54
54
  }
55
- }, rest), handleValueRender()));
55
+ }), handleValueRender()));
56
56
  };
@@ -1,45 +1,45 @@
1
- @use "../style/variable" as variable;
2
- $cascaderPickerCls: 'triones-antm-cascader-picker';
3
-
4
- .#{$cascaderPickerCls} {
5
- width: 100%;
6
- height: 300Px;
7
- overflow: hidden;
8
- position: relative;
9
- display: flex;
10
- flex-direction: column;
11
-
12
- &-header {
13
- display: flex;
14
- justify-content: space-between;
15
- align-items: center;
16
- border-bottom: 1Px solid variable.$trionesBorderColor;
17
- padding: 4Px;
18
-
19
- &-button {
20
-
21
- padding: 8Px;
22
- font-size: 12Px;
23
- &-cancel{
24
- color: variable.$trionesColorTextSecondary;
25
- }
26
- &-ok{
27
- color: variable.$trionesColorPrimary;
28
- }
29
- }
30
-
31
- &-title {
32
- }
33
- }
34
-
35
- &-body {
36
- flex: 1 1;
37
- width: 100%;
38
- pointer-events: unset;
39
- overflow: hidden;
40
- }
41
- &-view{
42
- --height: 100%;
43
- }
44
-
45
- }
1
+ @use "../style/variable" as variable;
2
+ $cascaderPickerCls: 'triones-antm-cascader-picker';
3
+
4
+ .#{$cascaderPickerCls} {
5
+ width: 100%;
6
+ height: 300Px;
7
+ overflow: hidden;
8
+ position: relative;
9
+ display: flex;
10
+ flex-direction: column;
11
+
12
+ &-header {
13
+ display: flex;
14
+ justify-content: space-between;
15
+ align-items: center;
16
+ border-bottom: 1Px solid variable.$trionesBorderColor;
17
+ padding: 4Px;
18
+
19
+ &-button {
20
+
21
+ padding: 8Px;
22
+ font-size: 12Px;
23
+ &-cancel{
24
+ color: variable.$trionesColorTextSecondary;
25
+ }
26
+ &-ok{
27
+ color: variable.$trionesColorPrimary;
28
+ }
29
+ }
30
+
31
+ &-title {
32
+ }
33
+ }
34
+
35
+ &-body {
36
+ flex: 1 1;
37
+ width: 100%;
38
+ pointer-events: unset;
39
+ overflow: hidden;
40
+ }
41
+ &-view{
42
+ --height: 100%;
43
+ }
44
+
45
+ }
@@ -1,6 +1,6 @@
1
1
  import { FC } from "react";
2
- import { CellProps } from "../Cell";
3
- export type CascaderPickerCellProps = Omit<CellProps, 'value'> & {
2
+ import { FormCellProps } from "../FormCell";
3
+ export type CascaderPickerCellProps = Omit<FormCellProps, 'value'> & {
4
4
  onChange?: (value: any[]) => void;
5
5
  options?: any[];
6
6
  /**
@@ -16,7 +16,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
16
16
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
17
  import React, { useEffect, useState } from "react";
18
18
  import CascaderPopup from "../CascaderPicker";
19
- import Cell from "../Cell";
19
+ import FormCell from "../FormCell";
20
20
  export var CascaderPickerCell = function CascaderPickerCell(_ref) {
21
21
  var _ref$placeholder = _ref.placeholder,
22
22
  placeholder = _ref$placeholder === void 0 ? '请选择' : _ref$placeholder,
@@ -62,9 +62,9 @@ export var CascaderPickerCell = function CascaderPickerCell(_ref) {
62
62
  setOpen(false);
63
63
  onChange === null || onChange === void 0 || onChange(value || []);
64
64
  }
65
- })), /*#__PURE__*/React.createElement(Cell, _extends({
65
+ })), /*#__PURE__*/React.createElement(FormCell, _extends({}, rest, {
66
66
  onClick: function onClick() {
67
67
  setOpen(true);
68
68
  }
69
- }, rest), valueText()));
69
+ }), valueText()));
70
70
  };