amis 1.5.8-beta.2 → 1.6.0

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 (187) hide show
  1. package/lib/components/CalendarMobile.js +5 -5
  2. package/lib/components/CalendarMobile.js.map +2 -2
  3. package/lib/components/Card.d.ts +20 -20
  4. package/lib/components/Cascader.d.ts +123 -0
  5. package/lib/components/Cascader.js +487 -0
  6. package/lib/components/Cascader.js.map +13 -0
  7. package/lib/components/CityArea.d.ts +527 -0
  8. package/lib/components/CityArea.js +177 -0
  9. package/lib/components/CityArea.js.map +13 -0
  10. package/lib/components/ColorPicker.js +4 -3
  11. package/lib/components/ColorPicker.js.map +2 -2
  12. package/lib/components/DatePicker.d.ts +85 -84
  13. package/lib/components/DatePicker.js +7 -6
  14. package/lib/components/DatePicker.js.map +2 -2
  15. package/lib/components/DateRangePicker.js +8 -11
  16. package/lib/components/DateRangePicker.js.map +2 -2
  17. package/lib/components/MonthRangePicker.js +5 -8
  18. package/lib/components/MonthRangePicker.js.map +2 -2
  19. package/lib/components/Picker.d.ts +1 -0
  20. package/lib/components/Picker.js +10 -6
  21. package/lib/components/Picker.js.map +2 -2
  22. package/lib/components/PickerColumn.d.ts +1 -0
  23. package/lib/components/PickerColumn.js +21 -17
  24. package/lib/components/PickerColumn.js.map +2 -2
  25. package/lib/components/PopOverContainer.d.ts +1 -0
  26. package/lib/components/PopOverContainer.js +5 -3
  27. package/lib/components/PopOverContainer.js.map +2 -2
  28. package/lib/components/PopUp.d.ts +1040 -28
  29. package/lib/components/PopUp.js +32 -8
  30. package/lib/components/PopUp.js.map +2 -2
  31. package/lib/components/ResultBox.d.ts +85 -84
  32. package/lib/components/ResultBox.js +7 -3
  33. package/lib/components/ResultBox.js.map +2 -2
  34. package/lib/components/Select.js +9 -6
  35. package/lib/components/Select.js.map +2 -2
  36. package/lib/components/TransferDropDown.d.ts +85 -84
  37. package/lib/components/TransferDropDown.js +9 -6
  38. package/lib/components/TransferDropDown.js.map +2 -2
  39. package/lib/components/calendar/Calendar.d.ts +14 -0
  40. package/lib/components/calendar/Calendar.js +62 -5
  41. package/lib/components/calendar/Calendar.js.map +2 -2
  42. package/lib/components/calendar/DaysView.d.ts +20 -0
  43. package/lib/components/calendar/DaysView.js +51 -4
  44. package/lib/components/calendar/DaysView.js.map +2 -2
  45. package/lib/components/calendar/MonthsView.d.ts +7 -1
  46. package/lib/components/calendar/MonthsView.js +41 -52
  47. package/lib/components/calendar/MonthsView.js.map +2 -2
  48. package/lib/components/calendar/TimeView.d.ts +27 -20
  49. package/lib/components/calendar/TimeView.js +40 -4
  50. package/lib/components/calendar/TimeView.js.map +2 -2
  51. package/lib/components/calendar/YearsView.d.ts +6 -0
  52. package/lib/components/calendar/YearsView.js +15 -6
  53. package/lib/components/calendar/YearsView.js.map +2 -2
  54. package/lib/index.js +1 -1
  55. package/lib/locale/de-DE.js +4 -0
  56. package/lib/locale/de-DE.js.map +2 -2
  57. package/lib/locale/en-US.js +4 -0
  58. package/lib/locale/en-US.js.map +2 -2
  59. package/lib/locale/zh-CN.js +4 -0
  60. package/lib/locale/zh-CN.js.map +2 -2
  61. package/lib/renderers/DropDownButton.d.ts +11 -2
  62. package/lib/renderers/DropDownButton.js +30 -12
  63. package/lib/renderers/DropDownButton.js.map +2 -2
  64. package/lib/renderers/Form/CityDB.js +526 -2
  65. package/lib/renderers/Form/CityDB.js.map +2 -2
  66. package/lib/renderers/Form/InputCity.d.ts +85 -84
  67. package/lib/renderers/Form/InputCity.js +4 -2
  68. package/lib/renderers/Form/InputCity.js.map +2 -2
  69. package/lib/renderers/Form/InputColor.js +6 -2
  70. package/lib/renderers/Form/InputColor.js.map +2 -2
  71. package/lib/renderers/Form/InputDate.js +5 -2
  72. package/lib/renderers/Form/InputDate.js.map +2 -2
  73. package/lib/renderers/Form/InputDateRange.js +6 -2
  74. package/lib/renderers/Form/InputDateRange.js.map +2 -2
  75. package/lib/renderers/Form/Item.d.ts +10 -14
  76. package/lib/renderers/Form/Item.js +7 -5
  77. package/lib/renderers/Form/Item.js.map +2 -2
  78. package/lib/renderers/Form/NestedSelect.d.ts +1 -0
  79. package/lib/renderers/Form/NestedSelect.js +7 -3
  80. package/lib/renderers/Form/NestedSelect.js.map +2 -2
  81. package/lib/renderers/Form/Select.d.ts +2 -0
  82. package/lib/renderers/Form/Select.js +7 -4
  83. package/lib/renderers/Form/Select.js.map +2 -2
  84. package/lib/renderers/Form/TreeSelect.js +4 -4
  85. package/lib/renderers/Form/TreeSelect.js.map +2 -2
  86. package/lib/renderers/Remark.js +2 -1
  87. package/lib/renderers/Remark.js.map +2 -2
  88. package/lib/schemaExtend.js +23 -9
  89. package/lib/schemaExtend.js.map +2 -2
  90. package/lib/themes/ang-ie11.css +312 -29
  91. package/lib/themes/ang.css +312 -29
  92. package/lib/themes/ang.css.map +1 -1
  93. package/lib/themes/antd-ie11.css +312 -29
  94. package/lib/themes/antd.css +312 -29
  95. package/lib/themes/antd.css.map +1 -1
  96. package/lib/themes/cxd-ie11.css +315 -41
  97. package/lib/themes/cxd.css +315 -41
  98. package/lib/themes/cxd.css.map +1 -1
  99. package/lib/themes/dark-ie11.css +312 -29
  100. package/lib/themes/dark.css +312 -29
  101. package/lib/themes/dark.css.map +1 -1
  102. package/lib/themes/default.css +315 -41
  103. package/lib/themes/default.css.map +1 -1
  104. package/lib/utils/helper.d.ts +1 -6
  105. package/lib/utils/helper.js +6 -17
  106. package/lib/utils/helper.js.map +2 -2
  107. package/package.json +1 -2
  108. package/schema.json +2192 -20
  109. package/scss/_properties.scss +10 -6
  110. package/scss/components/_calendar.scss +9 -2
  111. package/scss/components/_cascader.scss +102 -0
  112. package/scss/components/_city-area.scss +27 -0
  113. package/scss/components/_dropdown.scss +39 -9
  114. package/scss/components/_picker-columns.scss +15 -5
  115. package/scss/components/_popup.scss +35 -12
  116. package/scss/components/_result-box.scss +31 -0
  117. package/scss/components/form/_checks.scss +2 -0
  118. package/scss/components/form/_color.scss +2 -2
  119. package/scss/components/form/_date-range.scss +1 -1
  120. package/scss/components/form/_date.scss +46 -1
  121. package/scss/components/form/_nested-select.scss +3 -0
  122. package/scss/components/form/_select.scss +32 -3
  123. package/scss/components/form/_transfer.scss +3 -0
  124. package/scss/components/form/_tree-select.scss +1 -1
  125. package/scss/themes/_common.scss +2 -0
  126. package/scss/themes/_cxd-variables.scss +3 -3
  127. package/scss/themes/cxd.scss +0 -12
  128. package/sdk/ang-ie11.css +368 -29
  129. package/sdk/ang.css +367 -30
  130. package/sdk/antd-ie11.css +368 -29
  131. package/sdk/antd.css +367 -30
  132. package/sdk/charts.js +18 -18
  133. package/sdk/codemirror.js +7 -7
  134. package/sdk/color-picker.js +65 -65
  135. package/sdk/cropperjs.js +3 -3
  136. package/sdk/cxd-ie11.css +370 -42
  137. package/sdk/cxd.css +370 -44
  138. package/sdk/dark-ie11.css +368 -29
  139. package/sdk/dark.css +367 -30
  140. package/sdk/exceljs.js +1 -1
  141. package/sdk/locale/de-DE.js +4 -0
  142. package/sdk/markdown.js +69 -69
  143. package/sdk/papaparse.js +1 -1
  144. package/sdk/renderers/Form/CityDB.js +1 -1
  145. package/sdk/rest.js +18 -18
  146. package/sdk/rich-text.js +62 -62
  147. package/sdk/sdk-ie11.css +370 -42
  148. package/sdk/sdk.css +370 -44
  149. package/sdk/sdk.js +1309 -1227
  150. package/sdk/thirds/hls.js/hls.js +18 -18
  151. package/sdk/thirds/mpegts.js/mpegts.js +2 -2
  152. package/sdk/tinymce.js +57 -57
  153. package/src/components/CalendarMobile.tsx +5 -5
  154. package/src/components/Cascader.tsx +564 -0
  155. package/src/components/CityArea.tsx +315 -0
  156. package/src/components/ColorPicker.tsx +5 -2
  157. package/src/components/DatePicker.tsx +15 -5
  158. package/src/components/DateRangePicker.tsx +52 -43
  159. package/src/components/MonthRangePicker.tsx +44 -38
  160. package/src/components/Picker.tsx +27 -12
  161. package/src/components/PickerColumn.tsx +28 -18
  162. package/src/components/PopOverContainer.tsx +31 -17
  163. package/src/components/PopUp.tsx +55 -13
  164. package/src/components/ResultBox.tsx +10 -1
  165. package/src/components/Select.tsx +20 -23
  166. package/src/components/TransferDropDown.tsx +19 -5
  167. package/src/components/calendar/Calendar.tsx +86 -9
  168. package/src/components/calendar/DaysView.tsx +86 -2
  169. package/src/components/calendar/MonthsView.tsx +56 -63
  170. package/src/components/calendar/TimeView.tsx +82 -29
  171. package/src/components/calendar/YearsView.tsx +25 -6
  172. package/src/locale/de-DE.ts +4 -0
  173. package/src/locale/en-US.ts +4 -0
  174. package/src/locale/zh-CN.ts +4 -0
  175. package/src/renderers/DropDownButton.tsx +69 -35
  176. package/src/renderers/Form/CityDB.ts +526 -2
  177. package/src/renderers/Form/InputCity.tsx +23 -3
  178. package/src/renderers/Form/InputColor.tsx +21 -2
  179. package/src/renderers/Form/InputDate.tsx +10 -1
  180. package/src/renderers/Form/InputDateRange.tsx +9 -1
  181. package/src/renderers/Form/Item.tsx +14 -4
  182. package/src/renderers/Form/NestedSelect.tsx +31 -3
  183. package/src/renderers/Form/Select.tsx +15 -2
  184. package/src/renderers/Form/TreeSelect.tsx +10 -6
  185. package/src/renderers/Remark.tsx +2 -1
  186. package/src/schemaExtend.ts +22 -10
  187. package/src/utils/helper.ts +6 -16
@@ -626,10 +626,11 @@
626
626
  --DropDown-menu-paddingX: 0;
627
627
  --DropDown-menu-paddingY: var(--gap-xs);
628
628
  --DropDown-menuItem-onHover-bg: var(--ListMenu-item--onHover-bg);
629
- --DropDown-menuItem-color: var(--text-color);
629
+ --DropDown-group-color: #848b99;
630
+ --DropDown-menuItem-color: #151a26;
630
631
  --DropDown-menuItem-onHover-color: var(--primary);
631
632
  --DropDown-menuItem-onActive-color: var(--primary);
632
- --DropDown-menuItem-onDisabled-color: var(--text--muted-color);
633
+ --DropDown-menuItem-onDisabled-color: #b4b6ba;
633
634
  --DropDown-menuItem-paddingX: var(--gap-sm);
634
635
  --DropDown-menuItem-paddingY: calc(
635
636
  (var(--DropDown-menu-height) - var(--fontSizeBase) * var(--lineHeightBase)) /
@@ -1096,11 +1097,12 @@
1096
1097
  --PickerColumns-bg: white;
1097
1098
  --PickerColumns-toolbar-height: #{px2rem(50px)};
1098
1099
  --PickerColumns-title-fontSize: var(--fontSizeLg);
1100
+ --PickerColumns-title-color: #222;
1099
1101
  --PickerColumns-title-lineHeight: 1.5;
1100
- --PickerColumns-action-padding: 0 var(--gap-sm);
1101
- --PickerColumns-action-fontSize: var(--fontSizeMd);
1102
- --PickerColumns-confirmAction-color: #{lighten($text-color, 25%)};
1103
- --PickerColumns-cancelAction-color: #{lighten($text-color, 50%)};
1102
+ --PickerColumns-action-padding: 0 var(--gap-md);
1103
+ --PickerColumns-action-fontSize: var(--fontSizeLg);
1104
+ --PickerColumns-confirmAction-color: #2468f2;
1105
+ --PickerColumns-cancelAction-color: #666;
1104
1106
  --PickerColumns-option-fontSize: var(--fontSizeLg);
1105
1107
  --PickerColumns-optionText-color: var(--text-color);
1106
1108
  --PickerColumns-optionDisabled-opacity: 0.3;
@@ -1111,6 +1113,8 @@
1111
1113
  --PopOverAble-iconColor: inherit;
1112
1114
  --PopOverAble-onHover-iconColor: inherit;
1113
1115
 
1116
+ --PopUp-cancelAction-color: #666;
1117
+
1114
1118
  --Property-title-bg: #f2f2f2;
1115
1119
  --Property-label-bg: #f7f7f7;
1116
1120
 
@@ -245,7 +245,7 @@
245
245
  background: #fff;
246
246
  box-shadow: 0 0 2px 2px rgba(0,0,0,0.02);
247
247
  border-radius: 24px;
248
- overflow-x: scroll;
248
+ overflow-x: auto;
249
249
  position: relative;
250
250
  height: px2rem(48px);
251
251
  line-height: px2rem(48px);
@@ -345,7 +345,7 @@
345
345
  }
346
346
 
347
347
  &-time {
348
- height: px2rem(200px);
348
+ height: px2rem(180px);
349
349
  &-title {
350
350
  border: var(--Calendar-borderWidth) solid var(--borderColorDarken);
351
351
  border-left: none;
@@ -358,4 +358,11 @@
358
358
  margin: 0 auto;
359
359
  }
360
360
  }
361
+ .#{$ns}CalendarTime {
362
+ height: px2rem(130px);
363
+ overflow: hidden;
364
+ }
365
+ .#{$ns}PickerColumns-header {
366
+ display: none;
367
+ }
361
368
  }
@@ -0,0 +1,102 @@
1
+ .#{$ns}Cascader-tabs {
2
+ display: flex;
3
+ &.scrollable {
4
+ display: block;
5
+ overflow-x: auto;
6
+ white-space: nowrap;
7
+ &::-webkit-scrollbar {
8
+ display: none;
9
+ }
10
+ }
11
+ }
12
+ .#{$ns}Cascader-tab {
13
+ flex: 1;
14
+ width: calc((100vw - 20px) / 3);
15
+ height: px2rem(370px);
16
+ overflow-y: auto;
17
+ display: inline-block;
18
+ &::-webkit-scrollbar {
19
+ display: none;
20
+ }
21
+ }
22
+ .#{$ns}Cascader {
23
+ width: 100%;
24
+ padding: 0 10px;
25
+ &-Nav {
26
+ overflow-x: auto;
27
+ &Item {
28
+ display: inline-block;
29
+ margin-right: px2rem(10px);
30
+ list-style: none;
31
+ cursor: pointer;
32
+ user-select: none;
33
+ padding: 0 px2rem(6px);
34
+ }
35
+ }
36
+ &-btnGroup {
37
+ display: flex;
38
+ justify-content: space-between;
39
+ align-items: center;
40
+ height: px2rem(60px);
41
+ }
42
+ &-options {
43
+ box-sizing: border-box;
44
+ height: var(--Cascader-option-height);
45
+ padding-top: px2rem(6px);
46
+ overflow-y: auto;
47
+ -webkit-overflow-scrolling: touch;
48
+ margin: 0;
49
+ padding: 0;
50
+ }
51
+ &-option {
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: space-between;
55
+ padding: px2rem(6px) 0;
56
+ font-size: var(--fontSizeMd);
57
+ line-height: var(--Cascader-option-lineHeight);
58
+ cursor: pointer;
59
+ position: relative;
60
+ &.selected {
61
+ span {
62
+ color: var(--primary);
63
+ }
64
+ }
65
+ &.disabled {
66
+ span {
67
+ color: gray;
68
+ }
69
+ }
70
+ &--text {
71
+ white-space: nowrap;
72
+ overflow: hidden;
73
+ text-overflow: ellipsis;
74
+ user-select: none;
75
+ }
76
+ &-selectedNum {
77
+ min-width: px2rem(16px);
78
+ height: px2rem(16px);
79
+ line-height: px2rem(16px);
80
+ border-radius: 100%;
81
+ text-align: center;
82
+ background: var(--Form-select-menu-onActive-color);
83
+ color: var(--white) !important;
84
+ font-size: var(--fontSizeSm);
85
+ display: inline-block;
86
+ position: absolute;
87
+ right: 0;
88
+ top: 50%;
89
+ transform: translateY(-50%);
90
+ }
91
+ }
92
+ &-icon {
93
+ color: var(--primary);
94
+ }
95
+ &-tab {
96
+ padding: 0;
97
+ }
98
+
99
+ &-btnCancel {
100
+ color: var(--PopUp-cancelAction-color);
101
+ }
102
+ }
@@ -0,0 +1,27 @@
1
+ .#{$ns}CityArea {
2
+ &-popup {
3
+ height: px2rem(280px);
4
+ }
5
+ &-Input {
6
+ margin-top: var(--gap-xs);
7
+ outline: none;
8
+ vertical-align: top;
9
+ border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
10
+ border-radius: var(--Form-input-borderRadius);
11
+ line-height: var(--Form-input-lineHeight);
12
+ padding: var(--Form-input-paddingY) var(--Form-input-paddingX);
13
+ font-size: var(--Form-input-fontSize);
14
+ display: inline-flex !important;
15
+
16
+ &::placeholder {
17
+ color: var(--Form-input-placeholderColor);
18
+ user-select: none;
19
+ }
20
+
21
+ &:focus {
22
+ border-color: var(--Form-input-onFocused-borderColor);
23
+ box-shadow: var(--Form-input-boxShadow);
24
+ background: var(--Form-input-onFocused-bg);
25
+ }
26
+ }
27
+ }
@@ -34,20 +34,28 @@
34
34
  }
35
35
 
36
36
  &-menu {
37
- position: absolute;
38
- z-index: $zindex-dropdown;
39
- top: 100%;
40
- left: 0;
41
- margin: px2rem(1px) 0 0;
42
37
  background: var(--DropDown-menu-bg);
43
38
  list-style: none;
44
39
  padding: var(--DropDown-menu-paddingY) var(--DropDown-menu-paddingX);
45
- border: var(--DropDown-menu-borderWidth) solid
46
- var(--DropDown-menu-borderColor);
47
- border-radius: var(--DropDown-menu-borderRadius);
48
- box-shadow: var(--DropDown-menu-boxShadow);
49
40
  min-width: var(--DropDown-menu-minWidth);
50
41
  text-align: left;
42
+ border: none;
43
+ user-select: none;
44
+
45
+ &-root {
46
+ position: absolute;
47
+ z-index: $zindex-dropdown;
48
+ top: 100%;
49
+ left: 0;
50
+ margin: px2rem(1px) 0 0;
51
+ border: none;
52
+ border-radius: var(--DropDown-menu-borderRadius);
53
+ box-shadow: var(--DropDown-menu-boxShadow);
54
+ min-width: var(--DropDown-menu-minWidth);
55
+ overflow-y: auto;
56
+ overflow-x: hidden;
57
+ max-height: px2rem(300px);
58
+ }
51
59
  }
52
60
 
53
61
  &--alignRight &-menu {
@@ -95,6 +103,28 @@
95
103
  background: var(--DropDown-menu-borderColor);
96
104
  padding: 0;
97
105
  }
106
+
107
+ &.#{$ns}DropDown-groupTitle {
108
+ height: inherit;
109
+ font-size: var(--fontSizeSm);
110
+ padding: var(--gap-xs) var(--gap-xs);
111
+ padding-left: var(--gap-sm);
112
+ color: var(--DropDown-group-color);
113
+ flex-grow: 1;
114
+ cursor: default;
115
+
116
+ &:hover {
117
+ background: none;
118
+ }
119
+
120
+ span {
121
+ white-space: nowrap;
122
+ }
123
+
124
+ & ~ .#{$ns}DropDown-button {
125
+ padding-left: var(--gap-lg);
126
+ }
127
+ }
98
128
  }
99
129
 
100
130
  &-menu > li a {
@@ -6,7 +6,11 @@
6
6
  overflow: hidden;
7
7
  font-size: var(--PickerColumns-option-fontSize);
8
8
 
9
- &-toolbar {
9
+ li:focus {
10
+ outline: none;
11
+ }
12
+
13
+ &-header {
10
14
  display: flex;
11
15
  align-items: center;
12
16
  justify-content: space-between;
@@ -18,12 +22,12 @@
18
22
  height: 100%;
19
23
  padding: var(--PickerColumns-action-padding);
20
24
  font-size: var(--PickerColumns-action-fontSize);
21
- background-color: transparent;
25
+ background-color: transparent !important;
22
26
  border: none;
23
27
  cursor: pointer;
24
28
 
25
29
  &:active {
26
- opacity: 0.7;
30
+ background-color: none !important;
27
31
  }
28
32
  &:hover {
29
33
  background-color: none !important;
@@ -31,11 +35,11 @@
31
35
  }
32
36
 
33
37
  &-confirm {
34
- color: var(--PickerColumns-confirmAction-color);
38
+ color: var(--PickerColumns-confirmAction-color) !important;
35
39
  }
36
40
 
37
41
  &-cancel {
38
- color: var(--PickerColumns-cancelAction-color);
42
+ color: var(--PickerColumns-cancelAction-color) !important;
39
43
  }
40
44
 
41
45
  &-title {
@@ -44,6 +48,7 @@
44
48
  font-size: var(--PickerColumns-title-fontSize);
45
49
  line-height: var(--PickerColumns-title-lineHeight);
46
50
  text-align: center;
51
+ color: var(--PickerColumns-title-color);
47
52
  }
48
53
 
49
54
  &-columns {
@@ -127,4 +132,9 @@
127
132
  cursor: not-allowed;
128
133
  opacity: var(--PickerColumns-optionDisabled-opacity);
129
134
  }
135
+
136
+ &-columnItemis-selected {
137
+ font-size: 18px;
138
+ color: --PickerColumns-title-color;
139
+ }
130
140
  }
@@ -23,6 +23,7 @@
23
23
  }
24
24
  .#{$ns}PopUp {
25
25
  width: 100%;
26
+ height: px2rem(400px);
26
27
  position: fixed;
27
28
  background: var(--PopOver-bg);
28
29
  left: 0;
@@ -55,38 +56,36 @@
55
56
 
56
57
  &.in {
57
58
  animation-name: PopUpIn;
58
- .#{$ns}PopUp-overlay{
59
+ .#{$ns}PopUp-overlay {
59
60
  animation-name: PopUpOpacityIn;
60
61
  }
61
62
  }
62
63
 
63
64
  &.out {
64
65
  animation-name: PopUpOut;
65
- .#{$ns}PopUp-overlay{
66
+ .#{$ns}PopUp-overlay {
66
67
  animation-name: PopUpOpacityOut;
67
68
  }
68
69
  }
69
70
 
70
- &-inner{
71
+ &-inner {
71
72
  position: relative;
72
73
  overflow: hidden;
73
74
  height: 100%;
74
75
  box-sizing: border-box;
75
76
  background: $white;
76
- padding-top: px2rem(36px);
77
+ display: flex;
78
+ flex-direction: column;
77
79
  }
78
80
 
79
- &-closeWrap{
80
- width: 100%;
81
- position: absolute;
82
- left: 0;
83
- top: 0;
81
+ &-closeWrap {
82
+ position: relative;
84
83
  text-align: center;
85
84
  height: px2rem(48px);
86
85
  line-height: px2rem(48px);
87
86
  }
88
87
 
89
- &-closeWrap &-close{
88
+ &-closeWrap &-close {
90
89
  position: absolute;
91
90
  z-index: 1;
92
91
  color: var(--icon-color);
@@ -95,9 +94,30 @@
95
94
  right: px2rem(15px);
96
95
  }
97
96
 
98
- &-content{
97
+ &-toolbar {
98
+ display: flex;
99
+ align-items: center;
100
+ justify-content: space-between;
101
+ height: px2rem(60px);
102
+ }
103
+ &-title {
104
+ font-size: var(--fontSizeMd);
105
+ }
106
+
107
+ &-cancel {
108
+ color: var(--PopUp-cancelAction-color);
109
+ margin-left: var(--gap-sm);
110
+ }
111
+
112
+ &-confirm {
113
+ margin-right: var(--gap-sm);
114
+ }
115
+
116
+ &-content {
99
117
  overflow-y: auto;
100
118
  height: 100%;
119
+ display: flex;
120
+ flex: 1;
101
121
  }
102
122
 
103
123
  & > * {
@@ -112,7 +132,7 @@
112
132
  right: 0;
113
133
  z-index: 1;
114
134
  bottom: 0;
115
- background: rgba(0, 0, 0, 0.3);;
135
+ background: rgba(0, 0, 0, 0.3);
116
136
  opacity: 1;
117
137
  animation-duration: var(--animation-duration);
118
138
  animation-fill-mode: both;
@@ -124,4 +144,7 @@
124
144
  &--leftTopLeftBottom {
125
145
  margin-top: px2rem(-4px);
126
146
  }
147
+ &-safearea {
148
+ height: px2rem(16px);
149
+ }
127
150
  }
@@ -126,4 +126,35 @@
126
126
  padding-left: 8px;
127
127
  min-height: 24px;
128
128
  }
129
+
130
+ &.is-mobile {
131
+ min-height: calc(var(--Form-input-lineHeight) * var(--fontSizeLg));
132
+ border: none;
133
+ padding: 0;
134
+ font-size: var(--fontSizeLg);
135
+ border: none;
136
+ justify-content: flex-end;
137
+
138
+ .#{$ns}ResultBox-arrow {
139
+ margin-right: var(--gap-xs);
140
+ // margin-left: var(--gap-xs);
141
+ width: var(--gap-md);
142
+ text-align: center;
143
+ display: flex;
144
+ align-items: center;
145
+ justify-content: center;
146
+ line-height: 1;
147
+ margin-left: 4px;
148
+
149
+ > svg {
150
+ transition: transform var(--animation-duration);
151
+ display: inline-block;
152
+ color: var(--Form-select-caret-iconColor);
153
+ width: 10px;
154
+ height: 10px;
155
+ top: 0;
156
+ transform: rotate(-90deg);
157
+ }
158
+ }
159
+ }
129
160
  }
@@ -29,6 +29,8 @@
29
29
  pointer-events: all;
30
30
  margin-left: var(--Checkbox-gap);
31
31
  cursor: pointer;
32
+ display: inline-block;
33
+ vertical-align: middle;
32
34
 
33
35
  > a {
34
36
  // float: right;
@@ -10,8 +10,8 @@
10
10
  color: var(--ColorPicker-color);
11
11
  border-radius: var(--borderRadius);
12
12
 
13
- &-popup{
14
- height: 80vh;
13
+ &-popup {
14
+ height: px2rem(400px);
15
15
  }
16
16
 
17
17
  &:not(.is-disabled) {
@@ -128,7 +128,7 @@
128
128
  }
129
129
 
130
130
  .#{$ns}DateRangePicker-popup {
131
- height: 90vh;
131
+ height: px2rem(400px);
132
132
  }
133
133
 
134
134
  @include media-breakpoint-up(sm) {
@@ -123,8 +123,53 @@
123
123
  }
124
124
 
125
125
  .#{$ns}DatePicker-popup {
126
- height: 80vh;
126
+ height: px2rem(300px);
127
127
  }
128
+
129
+ // 移动端输入框样式
130
+ .#{$ns}DatePicker.is-mobile {
131
+ border: 0;
132
+ justify-content: flex-end;
133
+
134
+ span,
135
+ a {
136
+ &:focus {
137
+ outline: unset;
138
+ }
139
+ }
140
+
141
+ .#{$ns}DatePicker-value,
142
+ .#{$ns}DatePicker-clear {
143
+ display: inline-flex;
144
+ justify-content: flex-end;
145
+ padding: 0 0;
146
+ }
147
+
148
+ .#{$ns}DatePicker-value {
149
+ margin-right: var(--gap-xs);
150
+ }
151
+
152
+ .#{$ns}DatePicker-placeholder {
153
+ flex-grow: unset;
154
+ flex-basis: unset;
155
+ }
156
+
157
+ .#{$ns}DatePicker-toggler {
158
+ margin-top: -3px;
159
+ }
160
+ }
161
+
162
+ .#{$ns}DatePicker-popup.#{$ns}DatePicker-mobile {
163
+ color: red;
164
+ .rdt {
165
+ width: 100%;
166
+ .rdtPicker {
167
+ width: 100%;
168
+ padding: unset;
169
+ }
170
+ }
171
+ }
172
+
128
173
  // override third-party styles
129
174
  .rdt {
130
175
  user-select: none;
@@ -87,4 +87,7 @@
87
87
  }
88
88
  }
89
89
  }
90
+ &-popup {
91
+ height: px2rem(460px);
92
+ }
90
93
  }
@@ -2,6 +2,7 @@
2
2
  display: inline-flex;
3
3
  vertical-align: middle;
4
4
  text-align: left;
5
+ align-items: center;
5
6
  outline: none;
6
7
  position: relative;
7
8
  font-size: var(--Form-input-fontSize);
@@ -148,10 +149,27 @@
148
149
  }
149
150
  }
150
151
 
151
- &.is-opened &-arrow > svg {
152
+ &.is-opened:not(.is-mobile) &-arrow > svg {
152
153
  transform: rotate(180deg);
153
154
  }
154
155
 
156
+ &.is-mobile {
157
+ min-height: calc(var(--Form-input-lineHeight) * var(--fontSizeLg));
158
+ border: none;
159
+ padding: 0;
160
+ font-size: var(--fontSizeLg);
161
+
162
+ .#{$ns}Select-valueWrap {
163
+ text-align: right;
164
+ padding-right: 4px;
165
+ }
166
+ .#{$ns}Select-arrow {
167
+ > svg {
168
+ transform: rotate(-90deg);
169
+ }
170
+ }
171
+ }
172
+
155
173
  &-menu {
156
174
  max-height: px2rem(300px);
157
175
  overflow: auto;
@@ -159,6 +177,13 @@
159
177
  .#{$ns}Checkbox--sm > i {
160
178
  margin-top: px2rem(-3px);
161
179
  }
180
+ &.is-mobile {
181
+ width: 100%;
182
+ text-align: center;
183
+ .#{$ns}Select-option {
184
+ line-height: px2rem(36px);
185
+ }
186
+ }
162
187
  }
163
188
  &--longlist {
164
189
  overflow: hidden;
@@ -282,8 +307,8 @@
282
307
  }
283
308
  }
284
309
 
285
- &.is-focused,
286
- &.is-opened {
310
+ &.is-focused:not(.is-mobile),
311
+ &.is-opened:not(.is-mobile) {
287
312
  border-color: var(--Form-input-onFocused-borderColor);
288
313
  color: var(--Form-select-onFocused-color);
289
314
  }
@@ -314,6 +339,10 @@
314
339
  fill: var(--Form-input-onHover-iconColor);
315
340
  }
316
341
  }
342
+
343
+ &-popup {
344
+ height: px2rem(320px);
345
+ }
317
346
  }
318
347
 
319
348
  .#{$ns}Select-popover {
@@ -235,6 +235,9 @@
235
235
  display: flex;
236
236
  flex-direction: column;
237
237
 
238
+ &.is-mobile {
239
+ width: 100%;
240
+ }
238
241
  & > .#{$ns}Transfer-selection {
239
242
  flex-grow: 1;
240
243
  max-height: 100%;
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  &-popup {
20
- height: 80vh;
20
+ height: px2rem(400px);
21
21
  }
22
22
  }
23
23
 
@@ -82,6 +82,7 @@
82
82
  @import '../components/form/checks';
83
83
  @import '../components/form/selection';
84
84
  @import '../components/form/city';
85
+ @import '../components/city-area';
85
86
  @import '../components/form/switch';
86
87
  @import '../components/form/number';
87
88
  @import '../components/form/select';
@@ -112,6 +113,7 @@
112
113
  @import '../components/form/rating';
113
114
  @import '../components/form/transfer';
114
115
  @import '../components/form/nested-select';
116
+ @import '../components/cascader';
115
117
  @import '../components/form/icon-picker';
116
118
  @import '../components/form/form';
117
119
  @import '../components/anchor-nav';
@@ -318,7 +318,7 @@ $L1: 0px 4px 6px 0px rgba(8, 14, 26, 0.06),
318
318
  --Button--primary-onActive-color: #{$G11};
319
319
 
320
320
  --Button--light-border: var(--light);
321
- --Button--light-color: var(--button-color);
321
+ --Button--light-color: var(--text-color);
322
322
 
323
323
  --Button-onDisabled-borderColor: #{$G9};
324
324
  --Button-onDisabled-opacity: 0.65;
@@ -639,7 +639,8 @@ $L1: 0px 4px 6px 0px rgba(8, 14, 26, 0.06),
639
639
  --TimelineItem--round-radius: #{$R8};
640
640
  --TimelineItem--content-radius: #{$R2};
641
641
 
642
- --TimelineItem-detail-visible-shadow: 0 #{px2rem(1px)} #{px2rem(10px)} 0 rgba(0 0 0 / 10%);
642
+ --TimelineItem-detail-visible-shadow: 0 #{px2rem(1px)} #{px2rem(10px)} 0
643
+ rgba(0 0 0 / 10%);
643
644
 
644
645
  --TimelineItem--font-size: #{$T2};
645
646
 
@@ -655,7 +656,6 @@ $L1: 0px 4px 6px 0px rgba(8, 14, 26, 0.06),
655
656
  --Timeline--warning-bg: var(--warning);
656
657
  --Timeline--danger-bg: var(--danger);
657
658
 
658
-
659
659
  // Formula
660
660
  --Formula-header-bgColor: #{$G10};
661
661
  --Formula-funcItem-bgColor-onActive: #{$light};