@douyinfe/semi-foundation 2.97.0 → 2.99.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.
- package/cascader/foundation.ts +3 -1
- package/codeHighlight/codeHighlight.scss +1 -1
- package/datePicker/foundation.ts +7 -0
- package/datePicker/inputFoundation.ts +5 -0
- package/form/foundation.ts +50 -4
- package/inputNumber/foundation.ts +119 -3
- package/jsonViewer/jsonViewer.scss +2 -2
- package/lib/cjs/aiChatInput/aiChatInput.css +7 -7
- package/lib/cjs/anchor/anchor.css +3 -3
- package/lib/cjs/autoComplete/autoComplete.css +1 -1
- package/lib/cjs/avatar/avatar.css +5 -5
- package/lib/cjs/badge/badge.css +1 -1
- package/lib/cjs/breadcrumb/breadcrumb.css +2 -2
- package/lib/cjs/calendar/calendar.css +9 -9
- package/lib/cjs/cascader/cascader.css +6 -6
- package/lib/cjs/cascader/foundation.js +4 -1
- package/lib/cjs/checkbox/checkbox.css +2 -2
- package/lib/cjs/codeHighlight/codeHighlight.css +1 -1
- package/lib/cjs/codeHighlight/codeHighlight.scss +1 -1
- package/lib/cjs/collapse/collapse.css +2 -2
- package/lib/cjs/datePicker/datePicker.css +8 -8
- package/lib/cjs/datePicker/foundation.d.ts +5 -0
- package/lib/cjs/datePicker/foundation.js +2 -0
- package/lib/cjs/datePicker/inputFoundation.d.ts +5 -0
- package/lib/cjs/descriptions/descriptions.css +6 -6
- package/lib/cjs/dropdown/dropdown.css +2 -2
- package/lib/cjs/form/form.css +4 -4
- package/lib/cjs/form/foundation.js +51 -3
- package/lib/cjs/hotKeys/hotKeys.css +2 -2
- package/lib/cjs/image/image.css +2 -2
- package/lib/cjs/input/input.css +8 -8
- package/lib/cjs/input/textarea.css +2 -2
- package/lib/cjs/inputNumber/foundation.d.ts +15 -0
- package/lib/cjs/inputNumber/foundation.js +113 -3
- package/lib/cjs/jsonViewer/jsonViewer.css +2 -2
- package/lib/cjs/jsonViewer/jsonViewer.scss +2 -2
- package/lib/cjs/list/list.css +1 -1
- package/lib/cjs/modal/modal.css +1 -1
- package/lib/cjs/navigation/navigation.css +2 -2
- package/lib/cjs/notification/notification.css +4 -4
- package/lib/cjs/pagination/pagination.css +5 -5
- package/lib/cjs/popconfirm/popconfirm.css +1 -1
- package/lib/cjs/popover/popover.css +5 -5
- package/lib/cjs/radio/radio.css +2 -2
- package/lib/cjs/scrollList/itemFoundation.js +12 -0
- package/lib/cjs/scrollList/scrollList.css +2 -2
- package/lib/cjs/select/select.css +6 -6
- package/lib/cjs/sideSheet/sideSheet.css +2 -2
- package/lib/cjs/sidebar/sidebar.css +11 -11
- package/lib/cjs/slider/foundation.js +46 -12
- package/lib/cjs/slider/rtl.scss +62 -0
- package/lib/cjs/slider/slider.css +45 -0
- package/lib/cjs/slider/slider.scss +2 -0
- package/lib/cjs/steps/steps.css +11 -11
- package/lib/cjs/table/foundation.d.ts +36 -0
- package/lib/cjs/table/foundation.js +162 -28
- package/lib/cjs/table/rtl.scss +21 -0
- package/lib/cjs/table/table.css +38 -2
- package/lib/cjs/table/table.scss +49 -0
- package/lib/cjs/tabs/tabs.css +2 -2
- package/lib/cjs/tag/tag.css +2 -2
- package/lib/cjs/tagInput/tagInput.css +2 -2
- package/lib/cjs/timePicker/timePicker.css +1 -1
- package/lib/cjs/timeline/timeline.css +2 -2
- package/lib/cjs/toast/toast.css +1 -1
- package/lib/cjs/tooltip/arrow.scss +4 -4
- package/lib/cjs/tooltip/foundation.js +72 -5
- package/lib/cjs/tooltip/tooltip.css +5 -5
- package/lib/cjs/transfer/constants.d.ts +3 -1
- package/lib/cjs/transfer/constants.js +3 -1
- package/lib/cjs/transfer/foundation.d.ts +3 -0
- package/lib/cjs/transfer/foundation.js +4 -0
- package/lib/cjs/transfer/transfer.css +14 -5
- package/lib/cjs/transfer/transfer.scss +10 -0
- package/lib/cjs/tree/foundation.d.ts +3 -0
- package/lib/cjs/tree/foundation.js +31 -4
- package/lib/cjs/tree/tree.css +1 -1
- package/lib/cjs/treeSelect/foundation.d.ts +1 -0
- package/lib/cjs/treeSelect/foundation.js +8 -1
- package/lib/cjs/treeSelect/treeSelect.css +36 -4
- package/lib/cjs/treeSelect/treeSelect.scss +49 -1
- package/lib/cjs/typography/typography.css +8 -8
- package/lib/cjs/upload/upload.css +8 -8
- package/lib/cjs/utils/Store.d.ts +1 -1
- package/lib/cjs/utils/Store.js +1 -0
- package/lib/es/aiChatInput/aiChatInput.css +7 -7
- package/lib/es/anchor/anchor.css +3 -3
- package/lib/es/autoComplete/autoComplete.css +1 -1
- package/lib/es/avatar/avatar.css +5 -5
- package/lib/es/badge/badge.css +1 -1
- package/lib/es/breadcrumb/breadcrumb.css +2 -2
- package/lib/es/calendar/calendar.css +9 -9
- package/lib/es/cascader/cascader.css +6 -6
- package/lib/es/cascader/foundation.js +4 -1
- package/lib/es/checkbox/checkbox.css +2 -2
- package/lib/es/codeHighlight/codeHighlight.css +1 -1
- package/lib/es/codeHighlight/codeHighlight.scss +1 -1
- package/lib/es/collapse/collapse.css +2 -2
- package/lib/es/datePicker/datePicker.css +8 -8
- package/lib/es/datePicker/foundation.d.ts +5 -0
- package/lib/es/datePicker/foundation.js +2 -0
- package/lib/es/datePicker/inputFoundation.d.ts +5 -0
- package/lib/es/descriptions/descriptions.css +6 -6
- package/lib/es/dropdown/dropdown.css +2 -2
- package/lib/es/form/form.css +4 -4
- package/lib/es/form/foundation.js +51 -3
- package/lib/es/hotKeys/hotKeys.css +2 -2
- package/lib/es/image/image.css +2 -2
- package/lib/es/input/input.css +8 -8
- package/lib/es/input/textarea.css +2 -2
- package/lib/es/inputNumber/foundation.d.ts +15 -0
- package/lib/es/inputNumber/foundation.js +113 -3
- package/lib/es/jsonViewer/jsonViewer.css +2 -2
- package/lib/es/jsonViewer/jsonViewer.scss +2 -2
- package/lib/es/list/list.css +1 -1
- package/lib/es/modal/modal.css +1 -1
- package/lib/es/navigation/navigation.css +2 -2
- package/lib/es/notification/notification.css +4 -4
- package/lib/es/pagination/pagination.css +5 -5
- package/lib/es/popconfirm/popconfirm.css +1 -1
- package/lib/es/popover/popover.css +5 -5
- package/lib/es/radio/radio.css +2 -2
- package/lib/es/scrollList/itemFoundation.js +12 -0
- package/lib/es/scrollList/scrollList.css +2 -2
- package/lib/es/select/select.css +6 -6
- package/lib/es/sideSheet/sideSheet.css +2 -2
- package/lib/es/sidebar/sidebar.css +11 -11
- package/lib/es/slider/foundation.js +46 -12
- package/lib/es/slider/rtl.scss +62 -0
- package/lib/es/slider/slider.css +45 -0
- package/lib/es/slider/slider.scss +2 -0
- package/lib/es/steps/steps.css +11 -11
- package/lib/es/table/foundation.d.ts +36 -0
- package/lib/es/table/foundation.js +162 -28
- package/lib/es/table/rtl.scss +21 -0
- package/lib/es/table/table.css +38 -2
- package/lib/es/table/table.scss +49 -0
- package/lib/es/tabs/tabs.css +2 -2
- package/lib/es/tag/tag.css +2 -2
- package/lib/es/tagInput/tagInput.css +2 -2
- package/lib/es/timePicker/timePicker.css +1 -1
- package/lib/es/timeline/timeline.css +2 -2
- package/lib/es/toast/toast.css +1 -1
- package/lib/es/tooltip/arrow.scss +4 -4
- package/lib/es/tooltip/foundation.js +72 -5
- package/lib/es/tooltip/tooltip.css +5 -5
- package/lib/es/transfer/constants.d.ts +3 -1
- package/lib/es/transfer/constants.js +3 -1
- package/lib/es/transfer/foundation.d.ts +3 -0
- package/lib/es/transfer/foundation.js +4 -0
- package/lib/es/transfer/transfer.css +14 -5
- package/lib/es/transfer/transfer.scss +10 -0
- package/lib/es/tree/foundation.d.ts +3 -0
- package/lib/es/tree/foundation.js +31 -4
- package/lib/es/tree/tree.css +1 -1
- package/lib/es/treeSelect/foundation.d.ts +1 -0
- package/lib/es/treeSelect/foundation.js +8 -1
- package/lib/es/treeSelect/treeSelect.css +36 -4
- package/lib/es/treeSelect/treeSelect.scss +49 -1
- package/lib/es/typography/typography.css +8 -8
- package/lib/es/upload/upload.css +8 -8
- package/lib/es/utils/Store.d.ts +1 -1
- package/lib/es/utils/Store.js +1 -0
- package/package.json +19 -4
- package/scrollList/itemFoundation.ts +12 -0
- package/slider/foundation.ts +55 -15
- package/slider/rtl.scss +62 -0
- package/slider/slider.scss +2 -0
- package/table/foundation.ts +197 -29
- package/table/rtl.scss +21 -0
- package/table/table.scss +49 -0
- package/tooltip/arrow.scss +4 -4
- package/tooltip/foundation.ts +86 -5
- package/transfer/constants.ts +3 -1
- package/transfer/foundation.ts +8 -1
- package/transfer/transfer.scss +10 -0
- package/tree/foundation.ts +34 -5
- package/treeSelect/foundation.ts +10 -1
- package/treeSelect/treeSelect.scss +49 -1
- package/utils/Store.ts +2 -1
|
@@ -132,8 +132,18 @@ class InputNumberFoundation extends _foundation.default {
|
|
|
132
132
|
handleInputFocus(e) {
|
|
133
133
|
const value = this.getState('value');
|
|
134
134
|
if (value !== '') {
|
|
135
|
-
//
|
|
136
|
-
|
|
135
|
+
// When scientific notation is enabled, convert to full number on focus
|
|
136
|
+
if (this._isScientificNotation() && !this._isCurrency()) {
|
|
137
|
+
const strVal = (0, _toString2.default)(value);
|
|
138
|
+
const isScientificStr = /e/i.test(strVal) && /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)[eE][+-]?\d+$/.test(strVal.trim());
|
|
139
|
+
if (isScientificStr) {
|
|
140
|
+
const parsedNum = this.doParse(strVal, false, false, false);
|
|
141
|
+
if (this.isValidNumber(parsedNum)) {
|
|
142
|
+
const fullNumberStr = this.doFormat(parsedNum, true, false);
|
|
143
|
+
this._adapter.setValue(fullNumberStr);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
137
147
|
}
|
|
138
148
|
this._adapter.recordCursorPosition();
|
|
139
149
|
this._adapter.setFocusing(true, null);
|
|
@@ -236,6 +246,35 @@ class InputNumberFoundation extends _foundation.default {
|
|
|
236
246
|
}
|
|
237
247
|
numHasChanged = true;
|
|
238
248
|
}
|
|
249
|
+
// Fix issue #38: When input contains non-numeric characters (e.g., "1000CNY"),
|
|
250
|
+
// doParse returns NaN, but we should still apply max/min limit if a number
|
|
251
|
+
// can be extracted from the input or if currentNumber is out of range.
|
|
252
|
+
if (!this.isValidNumber(parsedNum)) {
|
|
253
|
+
// Try to extract a number from the input using parseFloat
|
|
254
|
+
// (parseFloat can extract numbers from strings like "1000CNY" -> 1000)
|
|
255
|
+
const extractedNum = parseFloat(currentValue);
|
|
256
|
+
if (!isNaN(extractedNum)) {
|
|
257
|
+
const limitedNum = this.fetchMinOrMax(extractedNum);
|
|
258
|
+
if (limitedNum !== currentNumber) {
|
|
259
|
+
willSetNum = limitedNum;
|
|
260
|
+
if (!this.isControlled()) {
|
|
261
|
+
currentNumber = willSetNum;
|
|
262
|
+
}
|
|
263
|
+
numHasChanged = true;
|
|
264
|
+
}
|
|
265
|
+
} else if (typeof currentNumber === 'number' && !isNaN(currentNumber)) {
|
|
266
|
+
// If we can't extract a number but currentNumber exists and is out of range,
|
|
267
|
+
// apply the max/min limit to currentNumber
|
|
268
|
+
const limitedNum = this.fetchMinOrMax(currentNumber);
|
|
269
|
+
if (limitedNum !== currentNumber) {
|
|
270
|
+
willSetNum = limitedNum;
|
|
271
|
+
if (!this.isControlled()) {
|
|
272
|
+
currentNumber = willSetNum;
|
|
273
|
+
}
|
|
274
|
+
numHasChanged = true;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
239
278
|
const currentFormattedNum = this.doFormat(currentNumber, true, true);
|
|
240
279
|
if (currentFormattedNum !== currentValue) {
|
|
241
280
|
willSetVal = currentFormattedNum;
|
|
@@ -407,7 +446,11 @@ class InputNumberFoundation extends _foundation.default {
|
|
|
407
446
|
curNum = max;
|
|
408
447
|
}
|
|
409
448
|
// console.log('scale: ', scale, 'curNum: ', curNum);
|
|
410
|
-
|
|
449
|
+
// NOTE:
|
|
450
|
+
// In non-currency mode, `needAdjustCurrency=true` is used by blur/init formatting paths.
|
|
451
|
+
// Step operations often happen while focused, and should keep full-number display.
|
|
452
|
+
// Currency mode still needs `needAdjustCurrency=true` to format currency strings.
|
|
453
|
+
return this.doFormat(curNum, true, this._isCurrency());
|
|
411
454
|
}
|
|
412
455
|
minus(step, event) {
|
|
413
456
|
const pressShift = event && event.shiftKey;
|
|
@@ -457,6 +500,52 @@ class InputNumberFoundation extends _foundation.default {
|
|
|
457
500
|
const formatted = formatter.format(Number(formattedValue));
|
|
458
501
|
return showCurrencySymbol ? formatted : formatted.replace(this._currencySymbol, '').trim();
|
|
459
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* Check if scientific notation is enabled
|
|
505
|
+
*/
|
|
506
|
+
_isScientificNotation() {
|
|
507
|
+
const {
|
|
508
|
+
scientificNotation
|
|
509
|
+
} = this.getProps();
|
|
510
|
+
return scientificNotation === true || typeof scientificNotation === 'object' && scientificNotation !== null;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Get scientific notation threshold
|
|
514
|
+
* @returns {number} threshold for digit count
|
|
515
|
+
*/
|
|
516
|
+
_getScientificNotationThreshold() {
|
|
517
|
+
const {
|
|
518
|
+
scientificNotation
|
|
519
|
+
} = this.getProps();
|
|
520
|
+
if (typeof scientificNotation === 'object' && scientificNotation !== null) {
|
|
521
|
+
const t = scientificNotation.threshold;
|
|
522
|
+
return typeof t === 'number' && Number.isFinite(t) && t >= 1 ? t : 15;
|
|
523
|
+
}
|
|
524
|
+
return 15; // Default threshold: 15 digits
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Convert number to scientific notation if exceeds threshold
|
|
528
|
+
* @param {number} num
|
|
529
|
+
* @returns {string}
|
|
530
|
+
*/
|
|
531
|
+
_toScientificNotation(num) {
|
|
532
|
+
const threshold = this._getScientificNotationThreshold();
|
|
533
|
+
const absNum = Math.abs(num);
|
|
534
|
+
const numStr = String(absNum);
|
|
535
|
+
// Count significant digits (excluding decimal point, sign, exponent symbol and leading zeros)
|
|
536
|
+
// If JS already stringifies it with exponent (contains e/E), it is eligible for scientific notation display.
|
|
537
|
+
const hasExp = /e/i.test(numStr);
|
|
538
|
+
const significantDigits = numStr.replace(/[.\-+eE]/g, '').replace(/^0+/, '');
|
|
539
|
+
// Check if number exceeds threshold
|
|
540
|
+
if ((hasExp || significantDigits.length >= threshold) && absNum !== 0) {
|
|
541
|
+
// Prefer preserving coefficient digits up to threshold (total significant digits = fractionDigits + 1)
|
|
542
|
+
const fractionDigits = Math.max(0, Math.min(100, Math.floor(threshold) - 1));
|
|
543
|
+
const exp = num.toExponential(fractionDigits);
|
|
544
|
+
// Remove trailing zeros in the coefficient
|
|
545
|
+
return exp.replace(/(\.\d*?)0+e/, '$1e').replace(/\.e/, 'e');
|
|
546
|
+
}
|
|
547
|
+
return String(num);
|
|
548
|
+
}
|
|
460
549
|
/**
|
|
461
550
|
* format number to string
|
|
462
551
|
* @param {string|number} value
|
|
@@ -482,6 +571,14 @@ class InputNumberFoundation extends _foundation.default {
|
|
|
482
571
|
} else {
|
|
483
572
|
str = (0, _toString2.default)(value);
|
|
484
573
|
}
|
|
574
|
+
// Apply scientific notation for long numbers in blur state
|
|
575
|
+
// needAdjustCurrency indicates blur state (when true, we're formatting for display after blur)
|
|
576
|
+
if (this._isScientificNotation() && needAdjustCurrency && !this._isCurrency()) {
|
|
577
|
+
const numValue = typeof value === 'number' ? value : parseFloat(str);
|
|
578
|
+
if (!isNaN(numValue) && isFinite(numValue)) {
|
|
579
|
+
str = this._toScientificNotation(numValue);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
485
582
|
if (typeof formatter === 'function') {
|
|
486
583
|
str = formatter(str);
|
|
487
584
|
}
|
|
@@ -545,6 +642,19 @@ class InputNumberFoundation extends _foundation.default {
|
|
|
545
642
|
const parsedValue = parser(value);
|
|
546
643
|
value = typeof parsedValue === 'number' ? (0, _toString2.default)(parsedValue) : parsedValue;
|
|
547
644
|
}
|
|
645
|
+
// Support scientific notation parsing (e.g., "1.23e+15", "1.23E-10", ".5e3", "1.e3")
|
|
646
|
+
if (typeof value === 'string' && /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)[eE][+-]?\d+$/.test(value.trim())) {
|
|
647
|
+
const scientificNum = parseFloat(value.trim());
|
|
648
|
+
if (!isNaN(scientificNum)) {
|
|
649
|
+
if (needAdjustMaxMin) {
|
|
650
|
+
return this.fetchMinOrMax(scientificNum);
|
|
651
|
+
}
|
|
652
|
+
if (needAdjustPrec) {
|
|
653
|
+
return (0, _toNumber2.default)(this._adjustPrec(scientificNum));
|
|
654
|
+
}
|
|
655
|
+
return scientificNum;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
548
658
|
if (needCheckPrec && typeof value === 'string') {
|
|
549
659
|
const zeroIsValid = value.indexOf('.') === -1 || value.indexOf('.') > -1 && (value === '0' || value.lastIndexOf('0') < value.length - 1);
|
|
550
660
|
const dotIsValid = value.lastIndexOf('.') < value.length - 1 && value.split('').filter(v => v === '.').length < 2;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
color: rgba(var(--semi-blue-7), 1);
|
|
54
54
|
}
|
|
55
55
|
.semi-json-viewer-view-line {
|
|
56
|
-
font-family:
|
|
56
|
+
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, "Fira Code", Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
|
|
57
57
|
font-weight: normal;
|
|
58
58
|
font-size: 12px;
|
|
59
59
|
font-feature-settings: "liga" 0, "calt" 0;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
white-space: pre-wrap !important;
|
|
65
65
|
}
|
|
66
66
|
.semi-json-viewer-line-number {
|
|
67
|
-
font-family:
|
|
67
|
+
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, "Fira Code", Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
|
|
68
68
|
font-weight: normal;
|
|
69
69
|
font-size: 12px;
|
|
70
70
|
font-feature-settings: "liga" 0, "calt" 0;
|
|
@@ -64,7 +64,7 @@ $module: #{$prefix}-json-viewer;
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
&-view-line {
|
|
67
|
-
font-family:
|
|
67
|
+
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, 'Fira Code', Consolas, 'Liberation Mono', 'DejaVu Sans Mono', 'Courier New', monospace;
|
|
68
68
|
font-weight: normal;
|
|
69
69
|
font-size: 12px;
|
|
70
70
|
font-feature-settings: 'liga' 0, 'calt' 0;
|
|
@@ -76,7 +76,7 @@ $module: #{$prefix}-json-viewer;
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&-line-number {
|
|
79
|
-
font-family:
|
|
79
|
+
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, 'Fira Code', Consolas, 'Liberation Mono', 'DejaVu Sans Mono', 'Courier New', monospace;
|
|
80
80
|
font-weight: normal;
|
|
81
81
|
font-size: 12px;
|
|
82
82
|
font-feature-settings: 'liga' 0, 'calt' 0;
|
package/lib/cjs/list/list.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.semi-list {
|
|
5
5
|
font-size: 14px;
|
|
6
6
|
line-height: 20px;
|
|
7
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
7
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
8
8
|
}
|
|
9
9
|
.semi-list-items {
|
|
10
10
|
margin: 0;
|
package/lib/cjs/modal/modal.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.semi-modal {
|
|
5
5
|
font-size: 14px;
|
|
6
6
|
line-height: 20px;
|
|
7
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
7
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
8
8
|
position: relative;
|
|
9
9
|
margin: 80px auto;
|
|
10
10
|
color: var(--semi-color-text-0);
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
margin-bottom: 8px;
|
|
65
65
|
font-size: 14px;
|
|
66
66
|
line-height: 20px;
|
|
67
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
67
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
68
68
|
font-weight: 400;
|
|
69
69
|
color: var(--semi-color-text-0);
|
|
70
70
|
width: 100%;
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
.semi-navigation-header-text {
|
|
359
359
|
font-size: 18px;
|
|
360
360
|
line-height: 24px;
|
|
361
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
361
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
362
362
|
font-weight: 600;
|
|
363
363
|
display: inline-flex;
|
|
364
364
|
color: var(--semi-color-text-0);
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
width: 24px;
|
|
60
60
|
font-size: 16px;
|
|
61
61
|
line-height: 22px;
|
|
62
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
62
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
63
63
|
display: flex;
|
|
64
64
|
align-items: flex-start;
|
|
65
65
|
justify-content: flex-start;
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
.semi-notification-notice-title {
|
|
102
102
|
font-size: 16px;
|
|
103
103
|
line-height: 22px;
|
|
104
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
104
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
105
105
|
font-weight: 600;
|
|
106
106
|
color: var(--semi-color-text-0);
|
|
107
107
|
margin-bottom: 4px;
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
.semi-notification-notice-content {
|
|
122
122
|
font-size: 14px;
|
|
123
123
|
line-height: 20px;
|
|
124
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
124
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
125
125
|
font-weight: 400;
|
|
126
126
|
color: var(--semi-color-text-1);
|
|
127
127
|
word-wrap: break-word;
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
display: flex;
|
|
138
138
|
font-size: 14px;
|
|
139
139
|
line-height: 20px;
|
|
140
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
140
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
141
141
|
cursor: pointer;
|
|
142
142
|
}
|
|
143
143
|
.semi-notification-notice-detail {
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
list-style: none;
|
|
7
7
|
padding: 0;
|
|
8
8
|
align-items: center;
|
|
9
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
9
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
10
10
|
margin-block-start: 0;
|
|
11
11
|
margin-block-end: 0;
|
|
12
12
|
}
|
|
13
13
|
.semi-page-small {
|
|
14
14
|
font-size: 14px;
|
|
15
15
|
line-height: 20px;
|
|
16
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
16
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
17
17
|
font-weight: 400;
|
|
18
18
|
color: var(--semi-color-text-2);
|
|
19
19
|
padding: 0 0;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
.semi-page-item {
|
|
28
28
|
font-size: 14px;
|
|
29
29
|
line-height: 20px;
|
|
30
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
30
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
31
31
|
min-width: 32px;
|
|
32
32
|
border: 0px solid transparent;
|
|
33
33
|
cursor: pointer;
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
.semi-page-total {
|
|
105
105
|
font-size: 14px;
|
|
106
106
|
line-height: 20px;
|
|
107
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
107
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
108
108
|
color: var(--semi-color-text-2);
|
|
109
109
|
}
|
|
110
110
|
.semi-page-prev, .semi-page-next {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
margin-left: 24px;
|
|
120
120
|
font-size: 14px;
|
|
121
121
|
line-height: 20px;
|
|
122
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
122
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
123
123
|
display: flex;
|
|
124
124
|
justify-content: center;
|
|
125
125
|
align-items: center;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
.semi-popconfirm-header-title {
|
|
19
19
|
font-size: 16px;
|
|
20
20
|
line-height: 22px;
|
|
21
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
21
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
22
22
|
font-weight: 600;
|
|
23
23
|
margin-bottom: 8px;
|
|
24
24
|
color: var(--semi-color-text-0);
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
border-radius: var(--semi-border-radius-medium);
|
|
32
32
|
font-size: 14px;
|
|
33
33
|
line-height: 20px;
|
|
34
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
34
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
35
35
|
opacity: 0;
|
|
36
36
|
}
|
|
37
37
|
.semi-popover-wrapper-show {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
color: unset;
|
|
77
77
|
}
|
|
78
78
|
.semi-popover-wrapper[x-placement=top] .semi-popover-icon-arrow {
|
|
79
|
-
left: 50
|
|
79
|
+
left: var(--semi-tooltip-arrow-offset-x, 50%);
|
|
80
80
|
transform: translateX(-50%);
|
|
81
81
|
bottom: -7px;
|
|
82
82
|
}
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
width: 8px;
|
|
115
115
|
height: 24px;
|
|
116
116
|
right: -7px;
|
|
117
|
-
top: 50
|
|
117
|
+
top: var(--semi-tooltip-arrow-offset-y, 50%);
|
|
118
118
|
transform: translateY(-50%);
|
|
119
119
|
}
|
|
120
120
|
.semi-popover-wrapper[x-placement=left].semi-popover-with-arrow,
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
width: 8px;
|
|
147
147
|
height: 24px;
|
|
148
148
|
left: -7px;
|
|
149
|
-
top: 50
|
|
149
|
+
top: var(--semi-tooltip-arrow-offset-y, 50%);
|
|
150
150
|
transform: translateY(-50%) rotate(180deg);
|
|
151
151
|
}
|
|
152
152
|
.semi-popover-wrapper[x-placement=right].semi-popover-with-arrow,
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
}
|
|
176
176
|
.semi-popover-wrapper[x-placement=bottom] .semi-popover-icon-arrow {
|
|
177
177
|
top: -7px;
|
|
178
|
-
left: 50
|
|
178
|
+
left: var(--semi-tooltip-arrow-offset-x, 50%);
|
|
179
179
|
transform: translateX(-50%) rotate(180deg);
|
|
180
180
|
}
|
|
181
181
|
.semi-popover-wrapper[x-placement=bottom].semi-popover-with-arrow,
|
package/lib/cjs/radio/radio.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
font-size: 14px;
|
|
7
7
|
line-height: 20px;
|
|
8
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
8
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
9
9
|
position: relative;
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
column-gap: 8px;
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
.semi-radioGroup {
|
|
292
292
|
font-size: 14px;
|
|
293
293
|
line-height: 20px;
|
|
294
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
294
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
295
295
|
}
|
|
296
296
|
.semi-radioGroup-vertical {
|
|
297
297
|
display: flex;
|
|
@@ -81,6 +81,12 @@ class ItemFoundation extends _foundation.default {
|
|
|
81
81
|
const scrollRect = scrollWrapper.getBoundingClientRect();
|
|
82
82
|
const lastRect = lastNode.getBoundingClientRect();
|
|
83
83
|
const listHeight = lastRect.height * list.length;
|
|
84
|
+
// Guard against environments where layout is not computed
|
|
85
|
+
// (e.g. jsdom returns all-zero rects), which would otherwise
|
|
86
|
+
// make `baseTop += listHeight` a no-op and loop forever.
|
|
87
|
+
if (listHeight <= 0) {
|
|
88
|
+
return 0;
|
|
89
|
+
}
|
|
84
90
|
let baseTop = lastRect.top;
|
|
85
91
|
let count = 0;
|
|
86
92
|
while (baseTop <= scrollRect.top + scrollRect.height * ratio) {
|
|
@@ -113,6 +119,12 @@ class ItemFoundation extends _foundation.default {
|
|
|
113
119
|
const scrollRect = scrollWrapper.getBoundingClientRect();
|
|
114
120
|
const firstRect = firstNode.getBoundingClientRect();
|
|
115
121
|
const listHeight = firstRect.height * list.length;
|
|
122
|
+
// Guard against environments where layout is not computed
|
|
123
|
+
// (e.g. jsdom returns all-zero rects), which would otherwise
|
|
124
|
+
// make `baseTop -= listHeight` a no-op and loop forever.
|
|
125
|
+
if (listHeight <= 0) {
|
|
126
|
+
return 0;
|
|
127
|
+
}
|
|
116
128
|
let baseTop = firstRect.top;
|
|
117
129
|
let count = 0;
|
|
118
130
|
while (baseTop + firstRect.height >= scrollRect.top - scrollRect.height * ratio) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
font-size: 14px;
|
|
12
12
|
line-height: 20px;
|
|
13
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
13
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
14
14
|
user-select: none;
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
color: var(--semi-color-text-0);
|
|
27
27
|
font-size: 14px;
|
|
28
28
|
line-height: 20px;
|
|
29
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
29
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
30
30
|
}
|
|
31
31
|
.semi-scrolllist-body {
|
|
32
32
|
display: flex;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.semi-select-option {
|
|
5
5
|
font-size: 14px;
|
|
6
6
|
line-height: 20px;
|
|
7
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
7
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
8
8
|
word-break: break-all;
|
|
9
9
|
padding-left: 12px;
|
|
10
10
|
padding-right: 12px;
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
.semi-select-large .semi-select-selection {
|
|
111
111
|
font-size: 16px;
|
|
112
112
|
line-height: 22px;
|
|
113
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
113
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
114
114
|
}
|
|
115
115
|
.semi-select-open, .semi-select-focus {
|
|
116
116
|
border: 1px solid var(--semi-color-focus-border);
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
.semi-select-selection {
|
|
185
185
|
font-size: 14px;
|
|
186
186
|
line-height: 20px;
|
|
187
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
187
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
188
188
|
height: 100%;
|
|
189
189
|
display: flex;
|
|
190
190
|
align-items: center;
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
color: var(--semi-color-text-2);
|
|
310
310
|
font-size: 14px;
|
|
311
311
|
line-height: 20px;
|
|
312
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
312
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
313
313
|
font-weight: 600;
|
|
314
314
|
}
|
|
315
315
|
.semi-select-prefix-icon, .semi-select-suffix-icon {
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
font-weight: 600;
|
|
341
341
|
font-size: 14px;
|
|
342
342
|
line-height: 20px;
|
|
343
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
343
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
344
344
|
color: var(--semi-color-text-2);
|
|
345
345
|
flex-shrink: 0;
|
|
346
346
|
white-space: nowrap;
|
|
@@ -454,7 +454,7 @@
|
|
|
454
454
|
padding-right: 16px;
|
|
455
455
|
font-size: 12px;
|
|
456
456
|
line-height: 16px;
|
|
457
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
457
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
458
458
|
cursor: default;
|
|
459
459
|
}
|
|
460
460
|
.semi-select-group:not(:nth-of-type(1)) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.semi-sidesheet {
|
|
5
5
|
font-size: 14px;
|
|
6
6
|
line-height: 20px;
|
|
7
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
7
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
8
8
|
position: fixed;
|
|
9
9
|
margin: 0;
|
|
10
10
|
top: 0;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
margin: 0;
|
|
60
60
|
font-size: 18px;
|
|
61
61
|
line-height: 24px;
|
|
62
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
62
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
63
63
|
font-weight: 600;
|
|
64
64
|
font-size: 18px;
|
|
65
65
|
color: var(--semi-color-text-0);
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
flex: 1;
|
|
35
35
|
font-size: 16px;
|
|
36
36
|
line-height: 22px;
|
|
37
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
37
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
38
38
|
font-weight: 600;
|
|
39
39
|
}
|
|
40
40
|
.semi-sidebar-container-header-closeBtn {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
.semi-sidebar-mcp-configure-content-header-count {
|
|
87
87
|
font-size: 12px;
|
|
88
88
|
line-height: 16px;
|
|
89
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
89
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
90
90
|
vertical-align: middle;
|
|
91
91
|
color: var(--semi-color-text-2);
|
|
92
92
|
}
|
|
@@ -124,14 +124,14 @@
|
|
|
124
124
|
.semi-sidebar-mcp-configure-content-item-content-label {
|
|
125
125
|
font-size: 14px;
|
|
126
126
|
line-height: 20px;
|
|
127
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
127
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
128
128
|
font-weight: 600;
|
|
129
129
|
color: var(--semi-color-text-0);
|
|
130
130
|
}
|
|
131
131
|
.semi-sidebar-mcp-configure-content-item-content-desc {
|
|
132
132
|
font-size: 12px;
|
|
133
133
|
line-height: 16px;
|
|
134
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
134
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
135
135
|
color: var(--semi-color-text-0);
|
|
136
136
|
overflow: hidden;
|
|
137
137
|
text-overflow: ellipsis;
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
-webkit-box-orient: vertical;
|
|
177
177
|
font-size: 14px;
|
|
178
178
|
line-height: 20px;
|
|
179
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
179
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
180
180
|
color: var(--semi-color-text-0);
|
|
181
181
|
font-weight: 600;
|
|
182
182
|
}
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
.semi-sidebar-annotation-item-footer-text {
|
|
194
194
|
font-size: 12px;
|
|
195
195
|
line-height: 16px;
|
|
196
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
196
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
197
197
|
color: var(--semi-color-text-0);
|
|
198
198
|
overflow: hidden;
|
|
199
199
|
text-overflow: ellipsis;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
justify-content: center;
|
|
213
213
|
font-size: 12px;
|
|
214
214
|
line-height: 16px;
|
|
215
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
215
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
216
216
|
color: var(--semi-color-text-2);
|
|
217
217
|
}
|
|
218
218
|
.semi-sidebar-annotation-item-text {
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
-webkit-box-orient: vertical;
|
|
234
234
|
font-size: 12px;
|
|
235
235
|
line-height: 16px;
|
|
236
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
236
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
237
237
|
color: var(--semi-color-text-2);
|
|
238
238
|
}
|
|
239
239
|
.semi-sidebar-annotation-item-video {
|
|
@@ -288,13 +288,13 @@
|
|
|
288
288
|
border-radius: 4px;
|
|
289
289
|
font-size: 12px;
|
|
290
290
|
line-height: 16px;
|
|
291
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
291
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
292
292
|
color: var(--semi-color-bg-0);
|
|
293
293
|
}
|
|
294
294
|
.semi-sidebar-annotation-item-video-title {
|
|
295
295
|
font-size: 14px;
|
|
296
296
|
line-height: 20px;
|
|
297
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
297
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
298
298
|
color: var(--semi-color-text-0);
|
|
299
299
|
}
|
|
300
300
|
.semi-sidebar-code-content {
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
.semi-sidebar-detail-header-title {
|
|
523
523
|
font-size: 16px;
|
|
524
524
|
line-height: 22px;
|
|
525
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
525
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
526
526
|
font-weight: 600;
|
|
527
527
|
}
|
|
528
528
|
.semi-sidebar-detail-header-right {
|