@douyinfe/semi-foundation 2.96.1 → 2.98.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 (235) hide show
  1. package/cascader/foundation.ts +74 -19
  2. package/codeHighlight/codeHighlight.scss +1 -1
  3. package/datePicker/datePicker.scss +100 -5
  4. package/datePicker/foundation.ts +7 -0
  5. package/datePicker/inputFoundation.ts +5 -0
  6. package/form/foundation.ts +55 -7
  7. package/form/utils.ts +7 -2
  8. package/image/previewImageFoundation.ts +34 -3
  9. package/image/previewInnerFoundation.ts +15 -4
  10. package/input/textarea.scss +35 -0
  11. package/inputNumber/foundation.ts +119 -3
  12. package/jsonViewer/jsonViewer.scss +2 -2
  13. package/lib/cjs/aiChatInput/aiChatInput.css +7 -7
  14. package/lib/cjs/anchor/anchor.css +3 -3
  15. package/lib/cjs/autoComplete/autoComplete.css +1 -1
  16. package/lib/cjs/avatar/avatar.css +5 -5
  17. package/lib/cjs/badge/badge.css +1 -1
  18. package/lib/cjs/breadcrumb/breadcrumb.css +2 -2
  19. package/lib/cjs/calendar/calendar.css +9 -9
  20. package/lib/cjs/cascader/cascader.css +6 -6
  21. package/lib/cjs/cascader/foundation.d.ts +12 -0
  22. package/lib/cjs/cascader/foundation.js +68 -23
  23. package/lib/cjs/checkbox/checkbox.css +2 -2
  24. package/lib/cjs/codeHighlight/codeHighlight.css +1 -1
  25. package/lib/cjs/codeHighlight/codeHighlight.scss +1 -1
  26. package/lib/cjs/collapse/collapse.css +2 -2
  27. package/lib/cjs/datePicker/datePicker.css +75 -13
  28. package/lib/cjs/datePicker/datePicker.scss +100 -5
  29. package/lib/cjs/datePicker/foundation.d.ts +5 -0
  30. package/lib/cjs/datePicker/foundation.js +2 -0
  31. package/lib/cjs/datePicker/inputFoundation.d.ts +5 -0
  32. package/lib/cjs/descriptions/descriptions.css +6 -6
  33. package/lib/cjs/dropdown/dropdown.css +2 -2
  34. package/lib/cjs/form/form.css +4 -4
  35. package/lib/cjs/form/foundation.d.ts +1 -1
  36. package/lib/cjs/form/foundation.js +55 -9
  37. package/lib/cjs/form/utils.js +5 -2
  38. package/lib/cjs/hotKeys/hotKeys.css +2 -2
  39. package/lib/cjs/image/image.css +2 -2
  40. package/lib/cjs/image/previewImageFoundation.d.ts +4 -0
  41. package/lib/cjs/image/previewImageFoundation.js +33 -2
  42. package/lib/cjs/image/previewInnerFoundation.d.ts +1 -0
  43. package/lib/cjs/image/previewInnerFoundation.js +17 -4
  44. package/lib/cjs/input/input.css +8 -8
  45. package/lib/cjs/input/textarea.css +19 -2
  46. package/lib/cjs/input/textarea.scss +35 -0
  47. package/lib/cjs/inputNumber/foundation.d.ts +15 -0
  48. package/lib/cjs/inputNumber/foundation.js +113 -3
  49. package/lib/cjs/jsonViewer/jsonViewer.css +2 -2
  50. package/lib/cjs/jsonViewer/jsonViewer.scss +2 -2
  51. package/lib/cjs/list/list.css +1 -1
  52. package/lib/cjs/modal/modal.css +1 -1
  53. package/lib/cjs/navigation/navigation.css +4 -3
  54. package/lib/cjs/navigation/navigation.scss +1 -0
  55. package/lib/cjs/navigation/variables.scss +1 -1
  56. package/lib/cjs/notification/notification.css +4 -4
  57. package/lib/cjs/overflowList/foundation.d.ts +1 -0
  58. package/lib/cjs/overflowList/foundation.js +51 -1
  59. package/lib/cjs/pagination/pagination.css +5 -5
  60. package/lib/cjs/popconfirm/popconfirm.css +1 -1
  61. package/lib/cjs/popover/popover.css +1 -1
  62. package/lib/cjs/radio/radio.css +2 -2
  63. package/lib/cjs/scrollList/itemFoundation.js +12 -0
  64. package/lib/cjs/scrollList/scrollList.css +2 -2
  65. package/lib/cjs/select/foundation.d.ts +1 -1
  66. package/lib/cjs/select/foundation.js +28 -2
  67. package/lib/cjs/select/select.css +6 -6
  68. package/lib/cjs/sideSheet/sideSheet.css +2 -2
  69. package/lib/cjs/sidebar/sidebar.css +11 -11
  70. package/lib/cjs/slider/foundation.js +46 -12
  71. package/lib/cjs/slider/rtl.scss +62 -0
  72. package/lib/cjs/slider/slider.css +45 -0
  73. package/lib/cjs/slider/slider.scss +2 -0
  74. package/lib/cjs/steps/steps.css +11 -11
  75. package/lib/cjs/switch/switch.css +1 -0
  76. package/lib/cjs/switch/switch.scss +1 -0
  77. package/lib/cjs/switch/variables.scss +2 -1
  78. package/lib/cjs/table/foundation.d.ts +36 -0
  79. package/lib/cjs/table/foundation.js +164 -29
  80. package/lib/cjs/table/table.css +10 -2
  81. package/lib/cjs/table/table.scss +17 -0
  82. package/lib/cjs/tabs/tabs.css +2 -2
  83. package/lib/cjs/tag/tag.css +28 -2
  84. package/lib/cjs/tag/tag.scss +33 -0
  85. package/lib/cjs/tagInput/tagInput.css +19 -2
  86. package/lib/cjs/tagInput/tagInput.scss +18 -0
  87. package/lib/cjs/timePicker/constants.d.ts +1 -0
  88. package/lib/cjs/timePicker/foundation.d.ts +7 -1
  89. package/lib/cjs/timePicker/foundation.js +62 -11
  90. package/lib/cjs/timePicker/timePicker.css +1 -1
  91. package/lib/cjs/timeline/timeline.css +2 -2
  92. package/lib/cjs/toast/toast.css +1 -1
  93. package/lib/cjs/tooltip/foundation.js +8 -5
  94. package/lib/cjs/tooltip/tooltip.css +1 -1
  95. package/lib/cjs/transfer/constants.d.ts +3 -1
  96. package/lib/cjs/transfer/constants.js +3 -1
  97. package/lib/cjs/transfer/foundation.d.ts +3 -0
  98. package/lib/cjs/transfer/foundation.js +4 -0
  99. package/lib/cjs/transfer/transfer.css +14 -5
  100. package/lib/cjs/transfer/transfer.scss +10 -0
  101. package/lib/cjs/tree/foundation.d.ts +3 -0
  102. package/lib/cjs/tree/foundation.js +31 -4
  103. package/lib/cjs/tree/tree.css +1 -1
  104. package/lib/cjs/treeSelect/foundation.d.ts +1 -0
  105. package/lib/cjs/treeSelect/foundation.js +8 -1
  106. package/lib/cjs/treeSelect/treeSelect.css +36 -4
  107. package/lib/cjs/treeSelect/treeSelect.scss +49 -1
  108. package/lib/cjs/typography/typography.css +8 -8
  109. package/lib/cjs/upload/upload.css +8 -8
  110. package/lib/cjs/utils/Store.d.ts +1 -1
  111. package/lib/cjs/utils/Store.js +1 -0
  112. package/lib/es/aiChatInput/aiChatInput.css +7 -7
  113. package/lib/es/anchor/anchor.css +3 -3
  114. package/lib/es/autoComplete/autoComplete.css +1 -1
  115. package/lib/es/avatar/avatar.css +5 -5
  116. package/lib/es/badge/badge.css +1 -1
  117. package/lib/es/breadcrumb/breadcrumb.css +2 -2
  118. package/lib/es/calendar/calendar.css +9 -9
  119. package/lib/es/cascader/cascader.css +6 -6
  120. package/lib/es/cascader/foundation.d.ts +12 -0
  121. package/lib/es/cascader/foundation.js +68 -23
  122. package/lib/es/checkbox/checkbox.css +2 -2
  123. package/lib/es/codeHighlight/codeHighlight.css +1 -1
  124. package/lib/es/codeHighlight/codeHighlight.scss +1 -1
  125. package/lib/es/collapse/collapse.css +2 -2
  126. package/lib/es/datePicker/datePicker.css +75 -13
  127. package/lib/es/datePicker/datePicker.scss +100 -5
  128. package/lib/es/datePicker/foundation.d.ts +5 -0
  129. package/lib/es/datePicker/foundation.js +2 -0
  130. package/lib/es/datePicker/inputFoundation.d.ts +5 -0
  131. package/lib/es/descriptions/descriptions.css +6 -6
  132. package/lib/es/dropdown/dropdown.css +2 -2
  133. package/lib/es/form/form.css +4 -4
  134. package/lib/es/form/foundation.d.ts +1 -1
  135. package/lib/es/form/foundation.js +55 -9
  136. package/lib/es/form/utils.js +5 -2
  137. package/lib/es/hotKeys/hotKeys.css +2 -2
  138. package/lib/es/image/image.css +2 -2
  139. package/lib/es/image/previewImageFoundation.d.ts +4 -0
  140. package/lib/es/image/previewImageFoundation.js +33 -2
  141. package/lib/es/image/previewInnerFoundation.d.ts +1 -0
  142. package/lib/es/image/previewInnerFoundation.js +17 -4
  143. package/lib/es/input/input.css +8 -8
  144. package/lib/es/input/textarea.css +19 -2
  145. package/lib/es/input/textarea.scss +35 -0
  146. package/lib/es/inputNumber/foundation.d.ts +15 -0
  147. package/lib/es/inputNumber/foundation.js +113 -3
  148. package/lib/es/jsonViewer/jsonViewer.css +2 -2
  149. package/lib/es/jsonViewer/jsonViewer.scss +2 -2
  150. package/lib/es/list/list.css +1 -1
  151. package/lib/es/modal/modal.css +1 -1
  152. package/lib/es/navigation/navigation.css +4 -3
  153. package/lib/es/navigation/navigation.scss +1 -0
  154. package/lib/es/navigation/variables.scss +1 -1
  155. package/lib/es/notification/notification.css +4 -4
  156. package/lib/es/overflowList/foundation.d.ts +1 -0
  157. package/lib/es/overflowList/foundation.js +51 -1
  158. package/lib/es/pagination/pagination.css +5 -5
  159. package/lib/es/popconfirm/popconfirm.css +1 -1
  160. package/lib/es/popover/popover.css +1 -1
  161. package/lib/es/radio/radio.css +2 -2
  162. package/lib/es/scrollList/itemFoundation.js +12 -0
  163. package/lib/es/scrollList/scrollList.css +2 -2
  164. package/lib/es/select/foundation.d.ts +1 -1
  165. package/lib/es/select/foundation.js +28 -2
  166. package/lib/es/select/select.css +6 -6
  167. package/lib/es/sideSheet/sideSheet.css +2 -2
  168. package/lib/es/sidebar/sidebar.css +11 -11
  169. package/lib/es/slider/foundation.js +46 -12
  170. package/lib/es/slider/rtl.scss +62 -0
  171. package/lib/es/slider/slider.css +45 -0
  172. package/lib/es/slider/slider.scss +2 -0
  173. package/lib/es/steps/steps.css +11 -11
  174. package/lib/es/switch/switch.css +1 -0
  175. package/lib/es/switch/switch.scss +1 -0
  176. package/lib/es/switch/variables.scss +2 -1
  177. package/lib/es/table/foundation.d.ts +36 -0
  178. package/lib/es/table/foundation.js +164 -29
  179. package/lib/es/table/table.css +10 -2
  180. package/lib/es/table/table.scss +17 -0
  181. package/lib/es/tabs/tabs.css +2 -2
  182. package/lib/es/tag/tag.css +28 -2
  183. package/lib/es/tag/tag.scss +33 -0
  184. package/lib/es/tagInput/tagInput.css +19 -2
  185. package/lib/es/tagInput/tagInput.scss +18 -0
  186. package/lib/es/timePicker/constants.d.ts +1 -0
  187. package/lib/es/timePicker/foundation.d.ts +7 -1
  188. package/lib/es/timePicker/foundation.js +62 -11
  189. package/lib/es/timePicker/timePicker.css +1 -1
  190. package/lib/es/timeline/timeline.css +2 -2
  191. package/lib/es/toast/toast.css +1 -1
  192. package/lib/es/tooltip/foundation.js +8 -5
  193. package/lib/es/tooltip/tooltip.css +1 -1
  194. package/lib/es/transfer/constants.d.ts +3 -1
  195. package/lib/es/transfer/constants.js +3 -1
  196. package/lib/es/transfer/foundation.d.ts +3 -0
  197. package/lib/es/transfer/foundation.js +4 -0
  198. package/lib/es/transfer/transfer.css +14 -5
  199. package/lib/es/transfer/transfer.scss +10 -0
  200. package/lib/es/tree/foundation.d.ts +3 -0
  201. package/lib/es/tree/foundation.js +31 -4
  202. package/lib/es/tree/tree.css +1 -1
  203. package/lib/es/treeSelect/foundation.d.ts +1 -0
  204. package/lib/es/treeSelect/foundation.js +8 -1
  205. package/lib/es/treeSelect/treeSelect.css +36 -4
  206. package/lib/es/treeSelect/treeSelect.scss +49 -1
  207. package/lib/es/typography/typography.css +8 -8
  208. package/lib/es/upload/upload.css +8 -8
  209. package/lib/es/utils/Store.d.ts +1 -1
  210. package/lib/es/utils/Store.js +1 -0
  211. package/navigation/navigation.scss +1 -0
  212. package/navigation/variables.scss +1 -1
  213. package/overflowList/foundation.ts +48 -2
  214. package/package.json +19 -4
  215. package/scrollList/itemFoundation.ts +12 -0
  216. package/select/foundation.ts +27 -2
  217. package/slider/foundation.ts +55 -15
  218. package/slider/rtl.scss +62 -0
  219. package/slider/slider.scss +2 -0
  220. package/switch/switch.scss +1 -0
  221. package/switch/variables.scss +2 -1
  222. package/table/foundation.ts +199 -30
  223. package/table/table.scss +17 -0
  224. package/tag/tag.scss +33 -0
  225. package/tagInput/tagInput.scss +18 -0
  226. package/timePicker/constants.ts +2 -0
  227. package/timePicker/foundation.ts +62 -10
  228. package/tooltip/foundation.ts +8 -5
  229. package/transfer/constants.ts +3 -1
  230. package/transfer/foundation.ts +8 -1
  231. package/transfer/transfer.scss +10 -0
  232. package/tree/foundation.ts +34 -5
  233. package/treeSelect/foundation.ts +10 -1
  234. package/treeSelect/treeSelect.scss +49 -1
  235. package/utils/Store.ts +2 -1
@@ -114,6 +114,7 @@ export interface BasicCascaderProps {
114
114
  preventScroll?: boolean;
115
115
  virtualizeInSearch?: Virtualize;
116
116
  checkRelation?: string;
117
+ remote?: boolean;
117
118
  onClear?: () => void;
118
119
  triggerRender?: (props: BasicTriggerRenderProps) => any;
119
120
  onListScroll?: (e: any, panel: BasicScrollPanelProps) => void;
@@ -204,6 +205,17 @@ export default class CascaderFoundation extends BaseFoundation<CascaderAdapter,
204
205
  getItemPropPath(selectedKey: string, prop: string | any[], keyEntities?: BasicEntities): any[];
205
206
  _getCacheValue(keyEntities: BasicEntities): any;
206
207
  collectOptions(init?: boolean): void;
208
+ /**
209
+ * Calculate filtered keys based on current props.
210
+ * - In remote mode: do not do local match, treat current treeData nodes as results
211
+ * - In local mode: perform matching by filterTreeNode
212
+ */
213
+ _calcFilteredKeys(sugInput: string, keyEntities?: BasicEntities): string[];
214
+ /**
215
+ * Sync filteredKeys with latest options/keyEntities WITHOUT triggering onSearch.
216
+ * Used when treeData changes asynchronously in searching state.
217
+ */
218
+ recalculateFilteredKeys(input?: string, nextKeyEntities?: BasicEntities): void;
207
219
  handleValueChange(value: BasicValue): void;
208
220
  /**
209
221
  * When single selection, the clear objects of
@@ -211,6 +211,72 @@ export default class CascaderFoundation extends BaseFoundation {
211
211
  keyEntities
212
212
  });
213
213
  }
214
+ // If options(treeData) updates during searching (e.g. remote search async update),
215
+ // we need to sync filteredKeys with the latest keyEntities; otherwise the UI may
216
+ // render empty list ("暂无数据") because filteredKeys are based on stale entities.
217
+ // NOTE: updateSelectedKey/updateStates are async in React, so we pass keyEntities
218
+ // explicitly to avoid reading stale state.
219
+ this.recalculateFilteredKeys(undefined, keyEntities);
220
+ }
221
+ /**
222
+ * Calculate filtered keys based on current props.
223
+ * - In remote mode: do not do local match, treat current treeData nodes as results
224
+ * - In local mode: perform matching by filterTreeNode
225
+ */
226
+ _calcFilteredKeys(sugInput, keyEntities) {
227
+ if (!sugInput) {
228
+ return [];
229
+ }
230
+ const {
231
+ treeNodeFilterProp,
232
+ filterTreeNode,
233
+ filterLeafOnly,
234
+ remote
235
+ } = this.getProps();
236
+ const entities = Object.values(keyEntities !== null && keyEntities !== void 0 ? keyEntities : this.getState('keyEntities'));
237
+ if (remote) {
238
+ return entities.filter(item => !item._notExist).filter(item => filterTreeNode && !filterLeafOnly || this._isLeaf(item.data)).map(item => item.key);
239
+ }
240
+ return entities.filter(item => {
241
+ const {
242
+ key,
243
+ _notExist,
244
+ data
245
+ } = item;
246
+ if (_notExist) {
247
+ return false;
248
+ }
249
+ const filteredPath = this.getItemPropPath(key, treeNodeFilterProp, keyEntities);
250
+ return filter(sugInput, data, filterTreeNode, filteredPath);
251
+ }).filter(item => filterTreeNode && !filterLeafOnly || this._isLeaf(item.data)).map(item => item.key);
252
+ }
253
+ /**
254
+ * Sync filteredKeys with latest options/keyEntities WITHOUT triggering onSearch.
255
+ * Used when treeData changes asynchronously in searching state.
256
+ */
257
+ recalculateFilteredKeys(input, nextKeyEntities) {
258
+ const isFilterable = this._isFilterable();
259
+ if (!isFilterable) {
260
+ return;
261
+ }
262
+ // When input is not explicitly provided, only recalculate in searching state.
263
+ // Otherwise, treeData updates may incorrectly force component into searching mode
264
+ // because inputValue can be the selected label text in normal (non-searching) state.
265
+ const currentIsSearching = this.getState('isSearching');
266
+ if (_isUndefined(input) && !currentIsSearching) {
267
+ return;
268
+ }
269
+ const sugInput = _isUndefined(input) ? this.getState('inputValue') : input;
270
+ const filteredKeys = this._calcFilteredKeys(sugInput, nextKeyEntities);
271
+ const updateStates = {
272
+ isSearching: Boolean(sugInput),
273
+ filteredKeys: new Set(filteredKeys)
274
+ };
275
+ if (nextKeyEntities) {
276
+ updateStates.keyEntities = nextKeyEntities;
277
+ }
278
+ this._adapter.updateStates(updateStates);
279
+ this._adapter.rePositionDropdown();
214
280
  }
215
281
  // call when props.value change
216
282
  handleValueChange(value) {
@@ -797,29 +863,7 @@ export default class CascaderFoundation extends BaseFoundation {
797
863
  }
798
864
  handleInputChange(sugInput) {
799
865
  this._adapter.updateInputValue(sugInput);
800
- const {
801
- keyEntities
802
- } = this.getStates();
803
- const {
804
- treeNodeFilterProp,
805
- filterTreeNode,
806
- filterLeafOnly
807
- } = this.getProps();
808
- let filteredKeys = [];
809
- if (sugInput) {
810
- filteredKeys = Object.values(keyEntities).filter(item => {
811
- const {
812
- key,
813
- _notExist,
814
- data
815
- } = item;
816
- if (_notExist) {
817
- return false;
818
- }
819
- const filteredPath = this.getItemPropPath(key, treeNodeFilterProp);
820
- return filter(sugInput, data, filterTreeNode, filteredPath);
821
- }).filter(item => filterTreeNode && !filterLeafOnly || this._isLeaf(item)).map(item => item.key);
822
- }
866
+ const filteredKeys = this._calcFilteredKeys(sugInput);
823
867
  this._adapter.updateStates({
824
868
  isSearching: Boolean(sugInput),
825
869
  filteredKeys: new Set(filteredKeys)
@@ -890,6 +934,7 @@ export default class CascaderFoundation extends BaseFoundation {
890
934
  } = this.getStates();
891
935
  const isFilterable = this._isFilterable();
892
936
  if (isSearching && isFilterable) {
937
+ // Both local & remote search mode should render flattened search list
893
938
  return this.getFilteredData();
894
939
  }
895
940
  return Object.values(keyEntities).filter(item => item.parentKey === null && !item._notExist)
@@ -8,7 +8,7 @@
8
8
  align-items: flex-start;
9
9
  font-size: 14px;
10
10
  line-height: 20px;
11
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
11
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
12
12
  cursor: pointer;
13
13
  transition: background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none), border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);
14
14
  transform: scale(var(--semi-transform_scale-none));
@@ -269,7 +269,7 @@
269
269
  .semi-checkboxGroup {
270
270
  font-size: 14px;
271
271
  line-height: 20px;
272
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
272
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
273
273
  line-height: 14px;
274
274
  }
275
275
  .semi-checkboxGroup .semi-checkbox.semi-checkbox-vertical {
@@ -13,7 +13,7 @@
13
13
  color: var(--semi-color-text-0);
14
14
  font-size: 13px;
15
15
  text-shadow: none;
16
- font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
16
+ font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
17
17
  direction: ltr;
18
18
  text-align: left;
19
19
  white-space: pre;
@@ -16,7 +16,7 @@ $module: #{$prefix}-codeHighlight;
16
16
  font-size: 13px;
17
17
  text-shadow: none;
18
18
  // font-family: 'Inconsolata', Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
19
- font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
19
+ font-family: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'DejaVu Sans Mono', 'Courier New', monospace;
20
20
  direction: ltr;
21
21
  text-align: left;
22
22
  white-space: pre;
@@ -17,7 +17,7 @@
17
17
  font-weight: 600;
18
18
  font-size: 14px;
19
19
  line-height: 20px;
20
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
20
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
21
21
  }
22
22
  .semi-collapse-header-right {
23
23
  display: flex;
@@ -61,7 +61,7 @@
61
61
  color: var(--semi-color-text-1);
62
62
  font-size: 14px;
63
63
  line-height: 20px;
64
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
64
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
65
65
  }
66
66
  .semi-collapse-content p {
67
67
  margin: 0;
@@ -110,7 +110,7 @@
110
110
  padding: 0;
111
111
  font-size: 14px;
112
112
  line-height: 20px;
113
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
113
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
114
114
  min-height: 24px;
115
115
  line-height: 24px;
116
116
  }
@@ -199,7 +199,7 @@
199
199
  .semi-datepicker-navigation-month {
200
200
  font-size: 16px;
201
201
  line-height: 22px;
202
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
202
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
203
203
  flex-grow: 1;
204
204
  text-align: center;
205
205
  font-weight: 600;
@@ -217,7 +217,7 @@
217
217
  .semi-datepicker-weekday {
218
218
  font-size: 12px;
219
219
  line-height: 16px;
220
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
220
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
221
221
  font-weight: 600;
222
222
  color: var(--semi-color-text-2);
223
223
  border-bottom: 1px solid var(--semi-color-border);
@@ -737,7 +737,7 @@
737
737
  font-weight: 600;
738
738
  font-size: 14px;
739
739
  line-height: 20px;
740
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
740
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
741
741
  white-space: nowrap;
742
742
  color: var(--semi-color-text-2);
743
743
  }
@@ -763,12 +763,40 @@
763
763
  .semi-datepicker-compact {
764
764
  font-size: 12px;
765
765
  line-height: 16px;
766
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
766
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
767
767
  line-height: 20px;
768
+ display: inline-block;
769
+ max-width: calc(100vw - 32px);
770
+ }
771
+ .semi-datepicker-compact:not(.semi-datepicker-compact-insetInput) {
772
+ width: max-content;
773
+ }
774
+ .semi-datepicker-compact .semi-datepicker-container {
775
+ width: max-content;
776
+ }
777
+ .semi-datepicker-compact .semi-datepicker-month-grid {
778
+ width: max-content;
779
+ }
780
+ .semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-month-grid-left,
781
+ .semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-month-grid-right {
782
+ min-width: 216px;
783
+ max-width: calc(100vw - 32px);
784
+ }
785
+ .semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-month {
786
+ margin-left: auto;
787
+ margin-right: auto;
768
788
  }
769
789
  .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTime] .semi-datepicker-yam, .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-yam {
770
790
  height: calc(100% - 32px);
771
791
  }
792
+ .semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yam {
793
+ position: relative;
794
+ width: 100%;
795
+ max-width: 100%;
796
+ max-height: 256px;
797
+ overflow-x: auto;
798
+ overflow-y: hidden;
799
+ }
772
800
  .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateRange] .semi-datepicker-month-grid-left, .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-month-grid-left {
773
801
  border-right: 1px solid var(--semi-color-border);
774
802
  }
@@ -786,6 +814,16 @@
786
814
  box-sizing: border-box;
787
815
  height: 48px;
788
816
  padding: 12px;
817
+ width: 100%;
818
+ max-width: 100%;
819
+ }
820
+ .semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-header button,
821
+ .semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-header .semi-button {
822
+ width: 100%;
823
+ max-width: 100%;
824
+ overflow: hidden;
825
+ text-overflow: ellipsis;
826
+ white-space: nowrap;
789
827
  }
790
828
  .semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-body {
791
829
  display: flex;
@@ -796,7 +834,7 @@
796
834
  .semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist {
797
835
  font-size: 12px;
798
836
  line-height: 16px;
799
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
837
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
800
838
  line-height: 20px;
801
839
  }
802
840
  .semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-header {
@@ -840,16 +878,19 @@
840
878
  .semi-datepicker-compact.semi-datepicker-panel-yam .semi-scrolllist {
841
879
  font-size: 12px;
842
880
  line-height: 16px;
843
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
881
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
844
882
  line-height: 20px;
845
883
  }
846
884
  .semi-datepicker-compact .semi-datepicker-tpk {
847
885
  height: calc(100% - 32px);
848
886
  }
849
887
  .semi-datepicker-compact .semi-datepicker-navigation {
888
+ box-sizing: border-box;
850
889
  height: 24px;
851
890
  padding: 12px;
852
891
  padding-bottom: 0;
892
+ width: 100%;
893
+ max-width: 100%;
853
894
  }
854
895
  .semi-datepicker-compact .semi-datepicker-navigation-left, .semi-datepicker-compact .semi-datepicker-navigation-right {
855
896
  width: 24px;
@@ -859,11 +900,22 @@
859
900
  min-width: 24px;
860
901
  min-height: 24px;
861
902
  }
903
+ .semi-datepicker-compact .semi-datepicker-navigation-month {
904
+ min-width: 0;
905
+ overflow: hidden;
906
+ }
862
907
  .semi-datepicker-compact .semi-datepicker-navigation-month .semi-button {
863
908
  font-size: 12px;
864
909
  line-height: 16px;
865
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
910
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
866
911
  line-height: 20px;
912
+ max-width: 100%;
913
+ }
914
+ .semi-datepicker-compact .semi-datepicker-navigation-month .semi-button > span {
915
+ display: block;
916
+ overflow: hidden;
917
+ text-overflow: ellipsis;
918
+ white-space: nowrap;
867
919
  }
868
920
  .semi-datepicker-compact .semi-datepicker-month {
869
921
  width: 216px;
@@ -1008,7 +1060,9 @@
1008
1060
  color: var(--semi-color-primary);
1009
1061
  }
1010
1062
  .semi-datepicker-compact .semi-datepicker-quick-control-month {
1011
- max-width: 216px;
1063
+ min-width: 216px;
1064
+ width: max-content;
1065
+ max-width: calc(100vw - 32px);
1012
1066
  }
1013
1067
  .semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
1014
1068
  .semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
@@ -1019,7 +1073,9 @@
1019
1073
  max-height: 218px;
1020
1074
  }
1021
1075
  .semi-datepicker-compact .semi-datepicker-quick-control-date {
1022
- max-width: 216px;
1076
+ min-width: 216px;
1077
+ width: max-content;
1078
+ max-width: calc(100vw - 32px);
1023
1079
  }
1024
1080
  .semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
1025
1081
  .semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
@@ -1030,7 +1086,9 @@
1030
1086
  max-height: 208px;
1031
1087
  }
1032
1088
  .semi-datepicker-compact .semi-datepicker-quick-control-dateTime {
1033
- max-width: 216px;
1089
+ min-width: 216px;
1090
+ width: max-content;
1091
+ max-width: calc(100vw - 32px);
1034
1092
  }
1035
1093
  .semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
1036
1094
  .semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
@@ -1041,7 +1099,9 @@
1041
1099
  max-height: 240px;
1042
1100
  }
1043
1101
  .semi-datepicker-compact .semi-datepicker-quick-control-dateRange {
1044
- max-width: 432px;
1102
+ min-width: min(432px, calc(100vw - 32px));
1103
+ width: max-content;
1104
+ max-width: calc(100vw - 32px);
1045
1105
  }
1046
1106
  .semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
1047
1107
  .semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
@@ -1052,7 +1112,9 @@
1052
1112
  max-height: 208px;
1053
1113
  }
1054
1114
  .semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange {
1055
- max-width: 432px;
1115
+ min-width: min(432px, calc(100vw - 32px));
1116
+ width: max-content;
1117
+ max-width: calc(100vw - 32px);
1056
1118
  }
1057
1119
  .semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
1058
1120
  .semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
@@ -1129,7 +1129,44 @@ $module-list: #{$prefix}-scrolllist;
1129
1129
  @include font-size-small;
1130
1130
  line-height: $lineHeight-datepicker_compact;
1131
1131
 
1132
+ // Max width constraint for compact panels
1133
+ $compact-max-width: calc(100vw - 32px);
1134
+
1135
+ // Make the compact panel shrink-to-fit its contents.
1136
+ // This ensures the popover background/container expands together with
1137
+ // long locale texts instead of letting inner buttons visually overflow.
1138
+ display: inline-block;
1139
+ max-width: $compact-max-width;
1140
+
1141
+ // Ensure the popover expands to fit this compact datepicker
1142
+ &:not(&-insetInput) {
1143
+ width: max-content;
1144
+ }
1145
+
1146
+ .#{$module}-container {
1147
+ // Keep flex layout but allow the container to size by content.
1148
+ width: max-content;
1149
+ }
1150
+
1132
1151
  .#{$module}-month-grid {
1152
+ // Let the month grid contribute its intrinsic width to the popover.
1153
+ width: max-content;
1154
+
1155
+ .#{$module}-month-grid-left,
1156
+ .#{$module}-month-grid-right {
1157
+ min-width: $width-datepicker_month_compact;
1158
+ // Keep the current compact width as the baseline,
1159
+ // but allow the panel to grow to fit long locale texts.
1160
+ // When reaching viewport limit, month title will ellipsis.
1161
+ max-width: $compact-max-width;
1162
+ }
1163
+
1164
+ // Keep calendar body centered when panel grows
1165
+ // without breaking navigation layout in range mode.
1166
+ .#{$module}-month {
1167
+ margin-left: auto;
1168
+ margin-right: auto;
1169
+ }
1133
1170
 
1134
1171
  &[x-type="dateTime"],
1135
1172
  &[x-type="dateTimeRange"] {
@@ -1139,6 +1176,18 @@ $module-list: #{$prefix}-scrolllist;
1139
1176
  }
1140
1177
  }
1141
1178
 
1179
+ // Allow yam (year-month scrolllist) panel to expand with content in compact mode
1180
+ .#{$module}-yam {
1181
+ // Use relative positioning so parent can expand to fit content width
1182
+ // Height is constrained to prevent scrolllist from expanding too much
1183
+ position: relative;
1184
+ width: 100%;
1185
+ max-width: 100%;
1186
+ max-height: $height-datepicker_yam_panel_compact;
1187
+ overflow-x: auto;
1188
+ overflow-y: hidden;
1189
+ }
1190
+
1142
1191
  &[x-type="dateRange"],
1143
1192
  &[x-type="dateTimeRange"] {
1144
1193
  .#{$module}-month-grid-left {
@@ -1169,6 +1218,18 @@ $module-list: #{$prefix}-scrolllist;
1169
1218
  box-sizing: border-box;
1170
1219
  height: $height-datepicker_yam_panel_header_compact;
1171
1220
  padding: $spacing-datepicker_yam_panel_header_compact-padding;
1221
+ width: 100%;
1222
+ max-width: 100%;
1223
+
1224
+ // Constrain the back button to prevent overflow
1225
+ button,
1226
+ .#{$prefix}-button {
1227
+ width: 100%;
1228
+ max-width: 100%;
1229
+ overflow: hidden;
1230
+ text-overflow: ellipsis;
1231
+ white-space: nowrap;
1232
+ }
1172
1233
  }
1173
1234
 
1174
1235
  .#{$module}-yearmonth-body {
@@ -1265,9 +1326,14 @@ $module-list: #{$prefix}-scrolllist;
1265
1326
  }
1266
1327
 
1267
1328
  .#{$module}-navigation {
1329
+ box-sizing: border-box;
1268
1330
  height: $width-datepicker_nav_compact;
1269
1331
  padding: $spacing-datepicker_nav_compact-padding;
1270
1332
  padding-bottom: 0;
1333
+ // In compact mode, keep navigation constrained within each panel
1334
+ // (especially important for dateRange two-column layout).
1335
+ width: 100%;
1336
+ max-width: 100%;
1271
1337
 
1272
1338
  &-left,
1273
1339
  &-right {
@@ -1281,10 +1347,21 @@ $module-list: #{$prefix}-scrolllist;
1281
1347
  }
1282
1348
 
1283
1349
  &-month {
1350
+ min-width: 0;
1351
+ overflow: hidden;
1352
+
1284
1353
  .#{$prefix}-button {
1285
1354
  // 覆盖样式,否则会从button继承
1286
1355
  @include font-size-small;
1287
1356
  line-height: $lineHeight-datepicker_compact;
1357
+ max-width: 100%;
1358
+
1359
+ > span {
1360
+ display: block;
1361
+ overflow: hidden;
1362
+ text-overflow: ellipsis;
1363
+ white-space: nowrap;
1364
+ }
1288
1365
  }
1289
1366
  }
1290
1367
  }
@@ -1498,7 +1575,10 @@ $module-list: #{$prefix}-scrolllist;
1498
1575
  }
1499
1576
 
1500
1577
  &-month {
1501
- max-width: $width-datepicker_panel_compact;
1578
+ // Keep compact baseline width, but allow growing to fit long locale texts.
1579
+ min-width: $width-datepicker_panel_compact;
1580
+ width: max-content;
1581
+ max-width: $compact-max-width;
1502
1582
 
1503
1583
  &[x-insetinput=true] {
1504
1584
  .#{$module}-quick-control-right-content-wrapper,
@@ -1514,7 +1594,10 @@ $module-list: #{$prefix}-scrolllist;
1514
1594
  }
1515
1595
 
1516
1596
  &-date {
1517
- max-width: $width-datepicker_panel_compact;
1597
+ // Keep compact baseline width, but allow growing to fit long locale texts.
1598
+ min-width: $width-datepicker_panel_compact;
1599
+ width: max-content;
1600
+ max-width: $compact-max-width;
1518
1601
 
1519
1602
  &[x-insetinput=true] {
1520
1603
  .#{$module}-quick-control-right-content-wrapper,
@@ -1530,7 +1613,10 @@ $module-list: #{$prefix}-scrolllist;
1530
1613
  }
1531
1614
 
1532
1615
  &-dateTime {
1533
- max-width: $width-datepicker_panel_compact;
1616
+ // Keep compact baseline width, but allow growing to fit long locale texts.
1617
+ min-width: $width-datepicker_panel_compact;
1618
+ width: max-content;
1619
+ max-width: $compact-max-width;
1534
1620
 
1535
1621
  &[x-insetinput=true] {
1536
1622
  .#{$module}-quick-control-right-content-wrapper,
@@ -1546,7 +1632,12 @@ $module-list: #{$prefix}-scrolllist;
1546
1632
  }
1547
1633
 
1548
1634
  &-dateRange {
1549
- max-width: $width-datepicker_panel_compact * 2;
1635
+ // Keep compact baseline width, but allow growing to fit long locale texts.
1636
+ // Avoid min-width > max-width on small viewports (which would force overflow).
1637
+ // Keep the 2-panel baseline when possible, but cap it to the compact viewport limit.
1638
+ min-width: min(#{$width-datepicker_panel_compact * 2}, #{$compact-max-width});
1639
+ width: max-content;
1640
+ max-width: $compact-max-width;
1550
1641
 
1551
1642
  &[x-insetinput=true] {
1552
1643
  .#{$module}-quick-control-right-content-wrapper,
@@ -1562,7 +1653,11 @@ $module-list: #{$prefix}-scrolllist;
1562
1653
  }
1563
1654
 
1564
1655
  &-dateTimeRange {
1565
- max-width: $width-datepicker_panel_compact * 2;
1656
+ // Keep compact baseline width, but allow growing to fit long locale texts.
1657
+ // Avoid min-width > max-width on small viewports (which would force overflow).
1658
+ min-width: min(#{$width-datepicker_panel_compact * 2}, #{$compact-max-width});
1659
+ width: max-content;
1660
+ max-width: $compact-max-width;
1566
1661
 
1567
1662
  &[x-insetinput=true] {
1568
1663
  .#{$module}-quick-control-right-content-wrapper,
@@ -138,6 +138,11 @@ export interface DatePickerFoundationProps extends ElementProps, RenderProps, Ev
138
138
  dateFnsLocale?: any;
139
139
  localeCode?: string;
140
140
  rangeSeparator?: string;
141
+ /**
142
+ * Only for UI render. Keep `semi-foundation` framework-agnostic (no React types).
143
+ * `semi-ui` layer should declare this as `React.ReactNode`.
144
+ */
145
+ rangeSeparatorNode?: any;
141
146
  insetInput?: DateInputFoundationProps['insetInput'];
142
147
  preventScroll?: boolean;
143
148
  }
@@ -46,6 +46,8 @@ export default class DatePickerFoundation extends BaseFoundation {
46
46
  this._isRangeValueComplete = value => {
47
47
  let result = false;
48
48
  if (Array.isArray(value)) {
49
+ // Note: empty array should be treated as "complete" (not partially selected)
50
+ // to keep behaviors such as clear/confirm/change consistent.
49
51
  result = !value.some(date => isNullOrUndefined(date));
50
52
  }
51
53
  return result;
@@ -40,6 +40,11 @@ export interface DateInputFoundationProps extends DateInputElementProps, DateInp
40
40
  validateStatus?: ValidateStatus;
41
41
  prefixCls?: string;
42
42
  rangeSeparator?: string;
43
+ /**
44
+ * Only for UI render. Keep `semi-foundation` framework-agnostic (no React types).
45
+ * `semi-ui` layer should declare this as `React.ReactNode`.
46
+ */
47
+ rangeSeparatorNode?: any;
43
48
  panelType?: PanelType;
44
49
  insetInput?: boolean | InsetInputProps;
45
50
  insetInputValue?: InsetInputValue;
@@ -25,7 +25,7 @@
25
25
  font-weight: normal;
26
26
  font-size: 14px;
27
27
  line-height: 20px;
28
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
28
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
29
29
  min-height: 14px;
30
30
  white-space: nowrap;
31
31
  color: var(--semi-color-text-2);
@@ -34,7 +34,7 @@
34
34
  font-weight: normal;
35
35
  font-size: 14px;
36
36
  line-height: 20px;
37
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
37
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
38
38
  color: var(--semi-color-text-0);
39
39
  }
40
40
  .semi-descriptions-center .semi-descriptions-item-th {
@@ -84,14 +84,14 @@
84
84
  .semi-descriptions-double-small .semi-descriptions-key {
85
85
  font-size: 12px;
86
86
  line-height: 16px;
87
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
87
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
88
88
  padding-bottom: 0;
89
89
  font-size: 12px;
90
90
  }
91
91
  .semi-descriptions-double-small .semi-descriptions-value {
92
92
  font-size: 16px;
93
93
  line-height: 22px;
94
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
94
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
95
95
  font-size: 16px;
96
96
  }
97
97
  .semi-descriptions-double-medium .semi-descriptions-item {
@@ -104,7 +104,7 @@
104
104
  .semi-descriptions-double-medium .semi-descriptions-value {
105
105
  font-size: 20px;
106
106
  line-height: 28px;
107
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
107
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
108
108
  font-size: 20px;
109
109
  }
110
110
  .semi-descriptions-double-large .semi-descriptions-item {
@@ -117,7 +117,7 @@
117
117
  .semi-descriptions-double-large .semi-descriptions-value {
118
118
  font-size: 28px;
119
119
  line-height: 40px;
120
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
120
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
121
121
  font-size: 28px;
122
122
  }
123
123
  .semi-descriptions-horizontal table {