@douyinfe/semi-foundation 2.34.0 → 2.34.1-alpha.3
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/breadcrumb/breadcrumb.scss +4 -4
- package/calendar/eventUtil.ts +7 -9
- package/calendar/foundation.ts +4 -4
- package/card/card.scss +2 -1
- package/cascader/foundation.ts +13 -24
- package/lib/cjs/breadcrumb/breadcrumb.css +3 -0
- package/lib/cjs/breadcrumb/breadcrumb.scss +4 -4
- package/lib/cjs/calendar/eventUtil.d.ts +6 -7
- package/lib/cjs/calendar/eventUtil.js +6 -8
- package/lib/cjs/calendar/foundation.d.ts +2 -2
- package/lib/cjs/calendar/foundation.js +2 -2
- package/lib/cjs/card/card.css +1 -1
- package/lib/cjs/card/card.scss +2 -1
- package/lib/cjs/cascader/foundation.d.ts +1 -3
- package/lib/cjs/cascader/foundation.js +8 -26
- package/lib/cjs/radio/radio.css +0 -1
- package/lib/cjs/radio/radio.scss +0 -1
- package/lib/cjs/steps/bacisSteps.scss +2 -2
- package/lib/cjs/steps/fillSteps.scss +3 -3
- package/lib/cjs/steps/steps.css +12 -12
- package/lib/cjs/table/foundation.d.ts +0 -5
- package/lib/cjs/table/table.css +5 -23
- package/lib/cjs/table/table.scss +5 -25
- package/lib/cjs/table/utils.d.ts +0 -2
- package/lib/cjs/table/utils.js +0 -6
- package/lib/cjs/timePicker/foundation.js +1 -15
- package/lib/cjs/typography/typography.css +0 -8
- package/lib/cjs/typography/typography.scss +0 -13
- package/lib/es/breadcrumb/breadcrumb.css +3 -0
- package/lib/es/breadcrumb/breadcrumb.scss +4 -4
- package/lib/es/calendar/eventUtil.d.ts +6 -7
- package/lib/es/calendar/eventUtil.js +6 -8
- package/lib/es/calendar/foundation.d.ts +2 -2
- package/lib/es/calendar/foundation.js +2 -2
- package/lib/es/card/card.css +1 -1
- package/lib/es/card/card.scss +2 -1
- package/lib/es/cascader/foundation.d.ts +1 -3
- package/lib/es/cascader/foundation.js +8 -26
- package/lib/es/radio/radio.css +0 -1
- package/lib/es/radio/radio.scss +0 -1
- package/lib/es/steps/bacisSteps.scss +2 -2
- package/lib/es/steps/fillSteps.scss +3 -3
- package/lib/es/steps/steps.css +12 -12
- package/lib/es/table/foundation.d.ts +0 -5
- package/lib/es/table/table.css +5 -23
- package/lib/es/table/table.scss +5 -25
- package/lib/es/table/utils.d.ts +0 -2
- package/lib/es/table/utils.js +0 -5
- package/lib/es/timePicker/foundation.js +1 -14
- package/lib/es/typography/typography.css +0 -8
- package/lib/es/typography/typography.scss +0 -13
- package/package.json +2 -2
- package/radio/radio.scss +0 -1
- package/steps/bacisSteps.scss +2 -2
- package/steps/fillSteps.scss +3 -3
- package/table/foundation.ts +2 -6
- package/table/table.scss +5 -25
- package/table/utils.ts +0 -6
- package/timePicker/foundation.ts +3 -12
- package/typography/typography.scss +0 -13
package/lib/es/table/table.scss
CHANGED
|
@@ -83,11 +83,6 @@ $module: #{$prefix}-table;
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
&-operate-wrapper {
|
|
87
|
-
display: flex;
|
|
88
|
-
justify-content: flex-start;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
86
|
&-body {
|
|
92
87
|
overflow: auto;
|
|
93
88
|
width: 100%;
|
|
@@ -120,9 +115,8 @@ $module: #{$prefix}-table;
|
|
|
120
115
|
padding-top: $spacing-table_row_head-paddingY;
|
|
121
116
|
padding-bottom: $spacing-table_row_head-paddingY;
|
|
122
117
|
vertical-align: middle;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
// word-wrap: break-word;
|
|
118
|
+
word-break: break-all;
|
|
119
|
+
word-wrap: break-word;
|
|
126
120
|
position: relative;
|
|
127
121
|
|
|
128
122
|
&.#{$module}-cell-fixed {
|
|
@@ -183,14 +177,6 @@ $module: #{$prefix}-table;
|
|
|
183
177
|
display: inline-flex;
|
|
184
178
|
align-items: center;
|
|
185
179
|
}
|
|
186
|
-
|
|
187
|
-
&-ellipsis {
|
|
188
|
-
@include text-overflow-hidden;
|
|
189
|
-
|
|
190
|
-
.#{$module}-row-head-title {
|
|
191
|
-
@include text-overflow-hidden;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
180
|
}
|
|
195
181
|
|
|
196
182
|
.react-resizable {
|
|
@@ -255,9 +241,8 @@ $module: #{$prefix}-table;
|
|
|
255
241
|
|
|
256
242
|
& > .#{$module}-row-cell {
|
|
257
243
|
display: table-cell;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
// word-break: break-all;
|
|
244
|
+
word-wrap: break-word;
|
|
245
|
+
word-break: break-all;
|
|
261
246
|
border-left: none;
|
|
262
247
|
border-right: none;
|
|
263
248
|
border-bottom: $width-table_base_border $border-table_base-borderStyle $color-table-border-default;
|
|
@@ -269,10 +254,6 @@ $module: #{$prefix}-table;
|
|
|
269
254
|
&.resizing {
|
|
270
255
|
border-right: $width-table_resizer_border solid $color-table_resizer-bg-default;
|
|
271
256
|
}
|
|
272
|
-
|
|
273
|
-
&-ellipsis {
|
|
274
|
-
@include text-overflow-hidden;
|
|
275
|
-
}
|
|
276
257
|
}
|
|
277
258
|
&.#{$module}-row {
|
|
278
259
|
&-expand {
|
|
@@ -420,10 +401,9 @@ $module: #{$prefix}-table;
|
|
|
420
401
|
text-align: center;
|
|
421
402
|
|
|
422
403
|
&-wrapper {
|
|
423
|
-
display: flex;
|
|
404
|
+
display: inline-flex;
|
|
424
405
|
align-items: center;
|
|
425
406
|
cursor: pointer;
|
|
426
|
-
overflow: hidden;
|
|
427
407
|
}
|
|
428
408
|
|
|
429
409
|
&-up,
|
package/lib/es/table/utils.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { strings } from './constants';
|
|
2
|
-
import type { BaseEllipsis } from './foundation';
|
|
3
2
|
export declare function equalWith(value: any, other: any, customizer?: (...args: any[]) => boolean): boolean;
|
|
4
3
|
export declare function getColumnKey(column: any, keyPropNames: any[]): any;
|
|
5
4
|
/**
|
|
@@ -152,4 +151,3 @@ export declare function isTreeTable({ dataSource, childrenRecordName }: {
|
|
|
152
151
|
childrenRecordName?: string;
|
|
153
152
|
}): boolean;
|
|
154
153
|
export declare function getRTLAlign(align: typeof strings.ALIGNS[number], direction?: 'ltr' | 'rtl'): typeof strings.ALIGNS[number];
|
|
155
|
-
export declare function shouldShowEllipsisTitle(ellipsis: BaseEllipsis): any;
|
package/lib/es/table/utils.js
CHANGED
|
@@ -510,9 +510,4 @@ export function getRTLAlign(align, direction) {
|
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
return align;
|
|
513
|
-
}
|
|
514
|
-
export function shouldShowEllipsisTitle(ellipsis) {
|
|
515
|
-
const shouldShowTitle = ellipsis === true || _get(ellipsis, 'showTitle', true);
|
|
516
|
-
|
|
517
|
-
return shouldShowTitle;
|
|
518
513
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _isUndefined from "lodash/isUndefined";
|
|
2
1
|
import _split from "lodash/split";
|
|
3
2
|
|
|
4
3
|
/* eslint-disable max-len */
|
|
@@ -360,19 +359,7 @@ class TimePickerFoundation extends BaseFoundation {
|
|
|
360
359
|
}
|
|
361
360
|
|
|
362
361
|
if (_dates && Array.isArray(_dates)) {
|
|
363
|
-
|
|
364
|
-
let str;
|
|
365
|
-
|
|
366
|
-
if (_isUndefined(date)) {
|
|
367
|
-
str = '';
|
|
368
|
-
} else {
|
|
369
|
-
str = formatToString(date, validFormat, dateFnsLocale);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
return str;
|
|
373
|
-
});
|
|
374
|
-
|
|
375
|
-
return result.join(rangeSeparator);
|
|
362
|
+
return _dates.map(date => formatToString(date, validFormat, dateFnsLocale)).join(rangeSeparator);
|
|
376
363
|
}
|
|
377
364
|
|
|
378
365
|
return undefined;
|
|
@@ -98,19 +98,11 @@
|
|
|
98
98
|
-webkit-box-orient: vertical;
|
|
99
99
|
overflow: hidden;
|
|
100
100
|
}
|
|
101
|
-
.semi-typography-ellipsis-multiple-line.semi-typography-ellipsis-multiple-line-text {
|
|
102
|
-
display: -webkit-inline-box;
|
|
103
|
-
}
|
|
104
101
|
.semi-typography-ellipsis-overflow-ellipsis {
|
|
105
102
|
display: block;
|
|
106
103
|
white-space: nowrap;
|
|
107
104
|
text-overflow: ellipsis;
|
|
108
105
|
}
|
|
109
|
-
.semi-typography-ellipsis-overflow-ellipsis.semi-typography-ellipsis-overflow-ellipsis-text {
|
|
110
|
-
display: inline-block;
|
|
111
|
-
max-width: 100%;
|
|
112
|
-
vertical-align: top;
|
|
113
|
-
}
|
|
114
106
|
.semi-typography-ellipsis-expand {
|
|
115
107
|
display: inline;
|
|
116
108
|
margin-left: 8px;
|
|
@@ -123,25 +123,12 @@ $module: #{$prefix}-typography;
|
|
|
123
123
|
display: -webkit-box;
|
|
124
124
|
-webkit-box-orient: vertical;
|
|
125
125
|
overflow: hidden;
|
|
126
|
-
|
|
127
|
-
&.#{$module}-ellipsis-multiple-line-text {
|
|
128
|
-
// inline-block only works in the Text component, keeping the original external inline performance
|
|
129
|
-
display: -webkit-inline-box;
|
|
130
|
-
}
|
|
131
126
|
}
|
|
132
127
|
|
|
133
128
|
&-ellipsis-overflow-ellipsis {
|
|
134
129
|
display: block;
|
|
135
130
|
white-space: nowrap;
|
|
136
131
|
text-overflow: ellipsis;
|
|
137
|
-
|
|
138
|
-
&.#{$module}-ellipsis-overflow-ellipsis-text {
|
|
139
|
-
// inline-block only works in the Text component, keeping the original external inline performance
|
|
140
|
-
display: inline-block;
|
|
141
|
-
// Ensure that Text component can be limited by the parent's width when no specific width is set
|
|
142
|
-
max-width: 100%;
|
|
143
|
-
vertical-align: top;
|
|
144
|
-
}
|
|
145
132
|
}
|
|
146
133
|
|
|
147
134
|
&-ellipsis-expand {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.1-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "fc0c751427122de35d3bafb6e6d83a5f815d5f8e",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/radio/radio.scss
CHANGED
package/steps/bacisSteps.scss
CHANGED
|
@@ -173,7 +173,7 @@ $basicType: #{$module}-basic;
|
|
|
173
173
|
|
|
174
174
|
transform:scale($transform_scale-step-item);
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
&:hover {
|
|
177
177
|
|
|
178
178
|
.#{$item}-title {
|
|
179
179
|
color: $color-steps_item_title-text-hover;
|
|
@@ -267,7 +267,7 @@ $basicType: #{$module}-basic;
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
|
|
270
|
+
&:hover {
|
|
271
271
|
.#{$item}-left {
|
|
272
272
|
|
|
273
273
|
.#{$item}-icon {
|
package/steps/fillSteps.scss
CHANGED
|
@@ -92,7 +92,7 @@ $module: #{$prefix}-steps;
|
|
|
92
92
|
color: $color-steps_success-text-default;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
&:hover {
|
|
96
96
|
background-color: $color-steps-bg-hover;
|
|
97
97
|
|
|
98
98
|
.#{$prefix}-icon,
|
|
@@ -118,7 +118,7 @@ $module: #{$prefix}-steps;
|
|
|
118
118
|
color: $color-steps_danger-text-default;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
&:hover {
|
|
122
122
|
background: $color-steps-bg-hover;
|
|
123
123
|
|
|
124
124
|
.#{$prefix}-icon,
|
|
@@ -144,7 +144,7 @@ $module: #{$prefix}-steps;
|
|
|
144
144
|
color: $color-steps_warning-text-default;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
&:hover {
|
|
148
148
|
background: $color-steps-bg-hover;
|
|
149
149
|
|
|
150
150
|
.#{$module}-item-title,
|
package/table/foundation.ts
CHANGED
|
@@ -58,8 +58,7 @@ export interface BaseColumnProps<RecordType> {
|
|
|
58
58
|
sorter?: BaseSorter<RecordType>;
|
|
59
59
|
title?: any;
|
|
60
60
|
useFullRender?: boolean;
|
|
61
|
-
width?: string | number
|
|
62
|
-
ellipsis?: BaseEllipsis
|
|
61
|
+
width?: string | number
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
export interface TableAdapter<RecordType> extends DefaultAdapter {
|
|
@@ -104,8 +103,7 @@ export interface TableAdapter<RecordType> extends DefaultAdapter {
|
|
|
104
103
|
getNormalizeColumns: () => (columns: BaseColumnProps<RecordType>[], children: any) => BaseColumnProps<RecordType>[];
|
|
105
104
|
getHandleColumns: () => (queries: BaseColumnProps<RecordType>[], cachedColumns: BaseColumnProps<RecordType>[]) => BaseColumnProps<RecordType>[];
|
|
106
105
|
getMergePagination: () => (pagination: BasePagination) => BasePagination;
|
|
107
|
-
setBodyHasScrollbar: (bodyHasScrollBar: boolean) => void
|
|
108
|
-
getTableLayout: () => 'fixed' | 'auto'
|
|
106
|
+
setBodyHasScrollbar: (bodyHasScrollBar: boolean) => void
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
class TableFoundation<RecordType> extends BaseFoundation<TableAdapter<RecordType>> {
|
|
@@ -1259,6 +1257,4 @@ export interface BaseChangeInfoSorter<RecordType> {
|
|
|
1259
1257
|
|
|
1260
1258
|
export type BaseIncludeGroupRecord<RecordType> = RecordType | { groupKey: string };
|
|
1261
1259
|
|
|
1262
|
-
export type BaseEllipsis = boolean | { showTitle: boolean };
|
|
1263
|
-
|
|
1264
1260
|
export default TableFoundation;
|
package/table/table.scss
CHANGED
|
@@ -83,11 +83,6 @@ $module: #{$prefix}-table;
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
&-operate-wrapper {
|
|
87
|
-
display: flex;
|
|
88
|
-
justify-content: flex-start;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
86
|
&-body {
|
|
92
87
|
overflow: auto;
|
|
93
88
|
width: 100%;
|
|
@@ -120,9 +115,8 @@ $module: #{$prefix}-table;
|
|
|
120
115
|
padding-top: $spacing-table_row_head-paddingY;
|
|
121
116
|
padding-bottom: $spacing-table_row_head-paddingY;
|
|
122
117
|
vertical-align: middle;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
// word-wrap: break-word;
|
|
118
|
+
word-break: break-all;
|
|
119
|
+
word-wrap: break-word;
|
|
126
120
|
position: relative;
|
|
127
121
|
|
|
128
122
|
&.#{$module}-cell-fixed {
|
|
@@ -183,14 +177,6 @@ $module: #{$prefix}-table;
|
|
|
183
177
|
display: inline-flex;
|
|
184
178
|
align-items: center;
|
|
185
179
|
}
|
|
186
|
-
|
|
187
|
-
&-ellipsis {
|
|
188
|
-
@include text-overflow-hidden;
|
|
189
|
-
|
|
190
|
-
.#{$module}-row-head-title {
|
|
191
|
-
@include text-overflow-hidden;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
180
|
}
|
|
195
181
|
|
|
196
182
|
.react-resizable {
|
|
@@ -255,9 +241,8 @@ $module: #{$prefix}-table;
|
|
|
255
241
|
|
|
256
242
|
& > .#{$module}-row-cell {
|
|
257
243
|
display: table-cell;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
// word-break: break-all;
|
|
244
|
+
word-wrap: break-word;
|
|
245
|
+
word-break: break-all;
|
|
261
246
|
border-left: none;
|
|
262
247
|
border-right: none;
|
|
263
248
|
border-bottom: $width-table_base_border $border-table_base-borderStyle $color-table-border-default;
|
|
@@ -269,10 +254,6 @@ $module: #{$prefix}-table;
|
|
|
269
254
|
&.resizing {
|
|
270
255
|
border-right: $width-table_resizer_border solid $color-table_resizer-bg-default;
|
|
271
256
|
}
|
|
272
|
-
|
|
273
|
-
&-ellipsis {
|
|
274
|
-
@include text-overflow-hidden;
|
|
275
|
-
}
|
|
276
257
|
}
|
|
277
258
|
&.#{$module}-row {
|
|
278
259
|
&-expand {
|
|
@@ -420,10 +401,9 @@ $module: #{$prefix}-table;
|
|
|
420
401
|
text-align: center;
|
|
421
402
|
|
|
422
403
|
&-wrapper {
|
|
423
|
-
display: flex;
|
|
404
|
+
display: inline-flex;
|
|
424
405
|
align-items: center;
|
|
425
406
|
cursor: pointer;
|
|
426
|
-
overflow: hidden;
|
|
427
407
|
}
|
|
428
408
|
|
|
429
409
|
&-up,
|
package/table/utils.ts
CHANGED
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
import { strings, numbers } from './constants';
|
|
19
19
|
import isNullOrUndefined from '../utils/isNullOrUndefined';
|
|
20
20
|
import Logger from '../utils/Logger';
|
|
21
|
-
import type { BaseEllipsis } from './foundation';
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
export function equalWith(value: any, other: any, customizer?: (...args: any[]) => boolean) {
|
|
@@ -480,9 +479,4 @@ export function getRTLAlign(align: typeof strings.ALIGNS[number], direction?: 'l
|
|
|
480
479
|
}
|
|
481
480
|
}
|
|
482
481
|
return align;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
export function shouldShowEllipsisTitle(ellipsis: BaseEllipsis) {
|
|
486
|
-
const shouldShowTitle = ellipsis === true || get(ellipsis, 'showTitle', true);
|
|
487
|
-
return shouldShowTitle;
|
|
488
482
|
}
|
package/timePicker/foundation.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
transformToArray,
|
|
11
11
|
isTimeFormatLike
|
|
12
12
|
} from './utils';
|
|
13
|
-
import { split
|
|
13
|
+
import { split } from 'lodash';
|
|
14
14
|
import { isValid, format, getHours } from 'date-fns';
|
|
15
15
|
import { utcToZonedTime, zonedTimeToUtc } from '../utils/date-fns-extra';
|
|
16
16
|
import isNullOrUndefined from '../utils/isNullOrUndefined';
|
|
@@ -182,7 +182,7 @@ class TimePickerFoundation<P = Record<string, any>, S = Record<string, any>> ext
|
|
|
182
182
|
isAM[index] = panelIsAM;
|
|
183
183
|
const inputValue = this.formatValue(value);
|
|
184
184
|
|
|
185
|
-
if (this.getState('isAM')[index] !== result.isAM)
|
|
185
|
+
if (this.getState('isAM')[index] !== result.isAM){
|
|
186
186
|
this.setState({ isAM } as any);
|
|
187
187
|
}
|
|
188
188
|
if (!this._isControlledComponent('value')) {
|
|
@@ -369,16 +369,7 @@ class TimePickerFoundation<P = Record<string, any>, S = Record<string, any>> ext
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
if (_dates && Array.isArray(_dates)) {
|
|
372
|
-
|
|
373
|
-
let str;
|
|
374
|
-
if (isUndefined(date)) {
|
|
375
|
-
str = '';
|
|
376
|
-
} else {
|
|
377
|
-
str = formatToString(date, validFormat, dateFnsLocale);
|
|
378
|
-
}
|
|
379
|
-
return str;
|
|
380
|
-
});
|
|
381
|
-
return result.join(rangeSeparator);
|
|
372
|
+
return _dates.map(date => formatToString(date, validFormat, dateFnsLocale)).join(rangeSeparator);
|
|
382
373
|
}
|
|
383
374
|
return undefined;
|
|
384
375
|
}
|
|
@@ -123,25 +123,12 @@ $module: #{$prefix}-typography;
|
|
|
123
123
|
display: -webkit-box;
|
|
124
124
|
-webkit-box-orient: vertical;
|
|
125
125
|
overflow: hidden;
|
|
126
|
-
|
|
127
|
-
&.#{$module}-ellipsis-multiple-line-text {
|
|
128
|
-
// inline-block only works in the Text component, keeping the original external inline performance
|
|
129
|
-
display: -webkit-inline-box;
|
|
130
|
-
}
|
|
131
126
|
}
|
|
132
127
|
|
|
133
128
|
&-ellipsis-overflow-ellipsis {
|
|
134
129
|
display: block;
|
|
135
130
|
white-space: nowrap;
|
|
136
131
|
text-overflow: ellipsis;
|
|
137
|
-
|
|
138
|
-
&.#{$module}-ellipsis-overflow-ellipsis-text {
|
|
139
|
-
// inline-block only works in the Text component, keeping the original external inline performance
|
|
140
|
-
display: inline-block;
|
|
141
|
-
// Ensure that Text component can be limited by the parent's width when no specific width is set
|
|
142
|
-
max-width: 100%;
|
|
143
|
-
vertical-align: top;
|
|
144
|
-
}
|
|
145
132
|
}
|
|
146
133
|
|
|
147
134
|
&-ellipsis-expand {
|