@douyinfe/semi-ui 2.38.2 → 2.40.0-alpha.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/dist/css/semi.css +49 -1
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +15 -7
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +1 -1
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +1 -0
- package/lib/cjs/form/field.d.ts +1 -0
- package/lib/cjs/modal/confirm.d.ts +12 -12
- package/lib/cjs/select/index.d.ts +1 -0
- package/lib/cjs/select/index.js +6 -3
- package/lib/cjs/treeSelect/index.js +1 -1
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +1 -1
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +1 -0
- package/lib/es/form/field.d.ts +1 -0
- package/lib/es/modal/confirm.d.ts +12 -12
- package/lib/es/select/index.d.ts +1 -0
- package/lib/es/select/index.js +6 -3
- package/lib/es/treeSelect/index.js +1 -1
- package/package.json +8 -8
|
@@ -31,7 +31,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
|
|
|
31
31
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
32
|
value: PropTypes.Requireable<any[]>;
|
|
33
33
|
disabled: PropTypes.Requireable<boolean>;
|
|
34
|
-
type: PropTypes.Requireable<"
|
|
34
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
35
35
|
showClear: PropTypes.Requireable<boolean>;
|
|
36
36
|
format: PropTypes.Requireable<string>;
|
|
37
37
|
inputStyle: PropTypes.Requireable<object>;
|
|
@@ -58,7 +58,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
|
|
|
58
58
|
'aria-labelledby': PropTypes.Requireable<string>;
|
|
59
59
|
'aria-required': PropTypes.Requireable<boolean>;
|
|
60
60
|
borderless: PropTypes.Requireable<boolean>;
|
|
61
|
-
type: PropTypes.Requireable<"
|
|
61
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
62
62
|
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
63
63
|
clearIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
64
64
|
density: PropTypes.Requireable<"default" | "compact">;
|
|
@@ -19,7 +19,7 @@ export interface MonthsGridProps extends MonthsGridFoundationProps, BaseProps {
|
|
|
19
19
|
export type MonthsGridState = MonthsGridFoundationState;
|
|
20
20
|
export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGridState> {
|
|
21
21
|
static propTypes: {
|
|
22
|
-
type: PropTypes.Requireable<"
|
|
22
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
23
23
|
defaultValue: PropTypes.Requireable<any[]>;
|
|
24
24
|
defaultPickerValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
25
25
|
multiple: PropTypes.Requireable<boolean>;
|
|
@@ -24,7 +24,7 @@ declare class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonth
|
|
|
24
24
|
presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
|
|
25
25
|
renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
26
26
|
renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
27
|
-
type: PropTypes.Requireable<"
|
|
27
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
28
28
|
startYear: PropTypes.Requireable<number>;
|
|
29
29
|
endYear: PropTypes.Requireable<number>;
|
|
30
30
|
};
|
|
@@ -65,6 +65,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
|
|
|
65
65
|
autoClearSearchValue?: boolean;
|
|
66
66
|
arrowIcon?: React.ReactNode;
|
|
67
67
|
borderless?: boolean;
|
|
68
|
+
showArrowInBorderless?: boolean;
|
|
68
69
|
clearIcon?: React.ReactNode;
|
|
69
70
|
defaultValue?: string | number | any[] | Record<string, any>;
|
|
70
71
|
value?: string | number | any[] | Record<string, any>;
|
package/lib/cjs/form/field.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
|
|
|
13
13
|
autoClearSearchValue?: boolean;
|
|
14
14
|
arrowIcon?: import("react").ReactNode;
|
|
15
15
|
borderless?: boolean;
|
|
16
|
+
showArrowInBorderless?: boolean;
|
|
16
17
|
clearIcon?: import("react").ReactNode;
|
|
17
18
|
defaultValue?: string | number | any[] | Record<string, any>;
|
|
18
19
|
value?: string | number | any[] | Record<string, any>;
|
|
@@ -156,7 +156,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
156
156
|
visible?: boolean;
|
|
157
157
|
content?: React.ReactNode;
|
|
158
158
|
icon: string | number | boolean | React.ReactFragment | JSX.Element;
|
|
159
|
-
onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
|
|
160
159
|
zIndex?: number;
|
|
161
160
|
closeOnEsc?: boolean;
|
|
162
161
|
preventScroll?: boolean;
|
|
@@ -164,6 +163,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
164
163
|
keepDOM?: boolean;
|
|
165
164
|
cancelText?: string;
|
|
166
165
|
okText?: string;
|
|
166
|
+
onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
|
|
167
167
|
closeIcon?: React.ReactNode;
|
|
168
168
|
bodyStyle?: React.CSSProperties;
|
|
169
169
|
closable?: boolean;
|
|
@@ -211,22 +211,12 @@ export declare function withError(props: ModalReactProps): {
|
|
|
211
211
|
hidden?: boolean;
|
|
212
212
|
color?: string;
|
|
213
213
|
content?: string;
|
|
214
|
-
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
215
|
-
defaultChecked?: boolean;
|
|
216
214
|
defaultValue?: string | number | readonly string[];
|
|
217
|
-
suppressContentEditableWarning?: boolean;
|
|
218
|
-
suppressHydrationWarning?: boolean;
|
|
219
215
|
accessKey?: string;
|
|
220
|
-
autoFocus?: boolean;
|
|
221
|
-
formAction?: string;
|
|
222
|
-
formEncType?: string;
|
|
223
|
-
formMethod?: string;
|
|
224
|
-
formNoValidate?: boolean;
|
|
225
|
-
formTarget?: string;
|
|
226
216
|
dir?: string;
|
|
227
217
|
draggable?: boolean | "false" | "true";
|
|
228
218
|
lang?: string;
|
|
229
|
-
translate?: "
|
|
219
|
+
translate?: "yes" | "no";
|
|
230
220
|
prefix?: string;
|
|
231
221
|
role?: React.AriaRole;
|
|
232
222
|
contentEditable?: "inherit" | (boolean | "false" | "true");
|
|
@@ -242,6 +232,10 @@ export declare function withError(props: ModalReactProps): {
|
|
|
242
232
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
|
|
243
233
|
'aria-controls'?: string;
|
|
244
234
|
'aria-describedby'?: string;
|
|
235
|
+
defaultChecked?: boolean;
|
|
236
|
+
suppressContentEditableWarning?: boolean;
|
|
237
|
+
suppressHydrationWarning?: boolean;
|
|
238
|
+
autoFocus?: boolean;
|
|
245
239
|
contextMenu?: string;
|
|
246
240
|
placeholder?: string;
|
|
247
241
|
spellCheck?: boolean | "false" | "true";
|
|
@@ -327,6 +321,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
327
321
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
328
322
|
onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
329
323
|
onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
324
|
+
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
330
325
|
onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
331
326
|
onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
|
|
332
327
|
onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
@@ -463,6 +458,11 @@ export declare function withError(props: ModalReactProps): {
|
|
|
463
458
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
464
459
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
465
460
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
461
|
+
formAction?: string;
|
|
462
|
+
formEncType?: string;
|
|
463
|
+
formMethod?: string;
|
|
464
|
+
formNoValidate?: boolean;
|
|
465
|
+
formTarget?: string;
|
|
466
466
|
};
|
|
467
467
|
};
|
|
468
468
|
export declare function withConfirm(props: ModalReactProps): {
|
|
@@ -85,6 +85,7 @@ export type SelectProps = {
|
|
|
85
85
|
autoClearSearchValue?: boolean;
|
|
86
86
|
arrowIcon?: React.ReactNode;
|
|
87
87
|
borderless?: boolean;
|
|
88
|
+
showArrowInBorderless?: boolean;
|
|
88
89
|
clearIcon?: React.ReactNode;
|
|
89
90
|
defaultValue?: string | number | any[] | Record<string, any>;
|
|
90
91
|
value?: string | number | any[] | Record<string, any>;
|
package/lib/cjs/select/index.js
CHANGED
|
@@ -1056,9 +1056,10 @@ class Select extends _baseComponent.default {
|
|
|
1056
1056
|
triggerRender,
|
|
1057
1057
|
arrowIcon,
|
|
1058
1058
|
clearIcon,
|
|
1059
|
-
borderless
|
|
1059
|
+
borderless,
|
|
1060
|
+
showArrowInBorderless
|
|
1060
1061
|
} = _a,
|
|
1061
|
-
rest = __rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless"]);
|
|
1062
|
+
rest = __rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless", "showArrowInBorderless"]);
|
|
1062
1063
|
const {
|
|
1063
1064
|
selections,
|
|
1064
1065
|
isOpen,
|
|
@@ -1073,6 +1074,7 @@ class Select extends _baseComponent.default {
|
|
|
1073
1074
|
const filterable = Boolean(filter); // filter(boolean || function)
|
|
1074
1075
|
const selectionCls = useCustomTrigger ? (0, _classnames.default)(className) : (0, _classnames.default)(prefixcls, className, {
|
|
1075
1076
|
[`${prefixcls}-borderless`]: borderless,
|
|
1077
|
+
[`${prefixcls}-borderless-arrow`]: showArrowInBorderless,
|
|
1076
1078
|
[`${prefixcls}-open`]: isOpen,
|
|
1077
1079
|
[`${prefixcls}-focus`]: isFocus,
|
|
1078
1080
|
[`${prefixcls}-disabled`]: disabled,
|
|
@@ -1339,7 +1341,8 @@ Select.defaultProps = {
|
|
|
1339
1341
|
showRestTagsPopover: false,
|
|
1340
1342
|
restTagsPopoverProps: {},
|
|
1341
1343
|
expandRestTagsOnClick: false,
|
|
1342
|
-
ellipsisTrigger: false
|
|
1344
|
+
ellipsisTrigger: false,
|
|
1345
|
+
showArrowInBorderless: false
|
|
1343
1346
|
// Radio selection is different from the default renderSelectedItem for multiple selection, so it is not declared here
|
|
1344
1347
|
// renderSelectedItem: (optionNode) => optionNode.label,
|
|
1345
1348
|
// The default creator rendering is related to i18, so it is not declared here
|
|
@@ -270,7 +270,7 @@ class TreeSelect extends _baseComponent.default {
|
|
|
270
270
|
// searchPosition = dropdown and single seleciton
|
|
271
271
|
if (!multiple || !this.hasValue()) {
|
|
272
272
|
const renderText = this.foundation.getRenderTextInSingle();
|
|
273
|
-
const spanCls = (0, _classnames.default)({
|
|
273
|
+
const spanCls = (0, _classnames.default)(`${prefixcls}-selection-content`, {
|
|
274
274
|
[`${prefixcls}-selection-placeholder`]: !renderText
|
|
275
275
|
});
|
|
276
276
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -31,7 +31,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
|
|
|
31
31
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
32
|
value: PropTypes.Requireable<any[]>;
|
|
33
33
|
disabled: PropTypes.Requireable<boolean>;
|
|
34
|
-
type: PropTypes.Requireable<"
|
|
34
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
35
35
|
showClear: PropTypes.Requireable<boolean>;
|
|
36
36
|
format: PropTypes.Requireable<string>;
|
|
37
37
|
inputStyle: PropTypes.Requireable<object>;
|
|
@@ -58,7 +58,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
|
|
|
58
58
|
'aria-labelledby': PropTypes.Requireable<string>;
|
|
59
59
|
'aria-required': PropTypes.Requireable<boolean>;
|
|
60
60
|
borderless: PropTypes.Requireable<boolean>;
|
|
61
|
-
type: PropTypes.Requireable<"
|
|
61
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
62
62
|
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
63
63
|
clearIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
64
64
|
density: PropTypes.Requireable<"default" | "compact">;
|
|
@@ -19,7 +19,7 @@ export interface MonthsGridProps extends MonthsGridFoundationProps, BaseProps {
|
|
|
19
19
|
export type MonthsGridState = MonthsGridFoundationState;
|
|
20
20
|
export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGridState> {
|
|
21
21
|
static propTypes: {
|
|
22
|
-
type: PropTypes.Requireable<"
|
|
22
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
23
23
|
defaultValue: PropTypes.Requireable<any[]>;
|
|
24
24
|
defaultPickerValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
25
25
|
multiple: PropTypes.Requireable<boolean>;
|
|
@@ -24,7 +24,7 @@ declare class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonth
|
|
|
24
24
|
presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
|
|
25
25
|
renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
26
26
|
renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
27
|
-
type: PropTypes.Requireable<"
|
|
27
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
28
28
|
startYear: PropTypes.Requireable<number>;
|
|
29
29
|
endYear: PropTypes.Requireable<number>;
|
|
30
30
|
};
|
|
@@ -65,6 +65,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
|
|
|
65
65
|
autoClearSearchValue?: boolean;
|
|
66
66
|
arrowIcon?: React.ReactNode;
|
|
67
67
|
borderless?: boolean;
|
|
68
|
+
showArrowInBorderless?: boolean;
|
|
68
69
|
clearIcon?: React.ReactNode;
|
|
69
70
|
defaultValue?: string | number | any[] | Record<string, any>;
|
|
70
71
|
value?: string | number | any[] | Record<string, any>;
|
package/lib/es/form/field.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
|
|
|
13
13
|
autoClearSearchValue?: boolean;
|
|
14
14
|
arrowIcon?: import("react").ReactNode;
|
|
15
15
|
borderless?: boolean;
|
|
16
|
+
showArrowInBorderless?: boolean;
|
|
16
17
|
clearIcon?: import("react").ReactNode;
|
|
17
18
|
defaultValue?: string | number | any[] | Record<string, any>;
|
|
18
19
|
value?: string | number | any[] | Record<string, any>;
|
|
@@ -156,7 +156,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
156
156
|
visible?: boolean;
|
|
157
157
|
content?: React.ReactNode;
|
|
158
158
|
icon: string | number | boolean | React.ReactFragment | JSX.Element;
|
|
159
|
-
onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
|
|
160
159
|
zIndex?: number;
|
|
161
160
|
closeOnEsc?: boolean;
|
|
162
161
|
preventScroll?: boolean;
|
|
@@ -164,6 +163,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
164
163
|
keepDOM?: boolean;
|
|
165
164
|
cancelText?: string;
|
|
166
165
|
okText?: string;
|
|
166
|
+
onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
|
|
167
167
|
closeIcon?: React.ReactNode;
|
|
168
168
|
bodyStyle?: React.CSSProperties;
|
|
169
169
|
closable?: boolean;
|
|
@@ -211,22 +211,12 @@ export declare function withError(props: ModalReactProps): {
|
|
|
211
211
|
hidden?: boolean;
|
|
212
212
|
color?: string;
|
|
213
213
|
content?: string;
|
|
214
|
-
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
215
|
-
defaultChecked?: boolean;
|
|
216
214
|
defaultValue?: string | number | readonly string[];
|
|
217
|
-
suppressContentEditableWarning?: boolean;
|
|
218
|
-
suppressHydrationWarning?: boolean;
|
|
219
215
|
accessKey?: string;
|
|
220
|
-
autoFocus?: boolean;
|
|
221
|
-
formAction?: string;
|
|
222
|
-
formEncType?: string;
|
|
223
|
-
formMethod?: string;
|
|
224
|
-
formNoValidate?: boolean;
|
|
225
|
-
formTarget?: string;
|
|
226
216
|
dir?: string;
|
|
227
217
|
draggable?: boolean | "false" | "true";
|
|
228
218
|
lang?: string;
|
|
229
|
-
translate?: "
|
|
219
|
+
translate?: "yes" | "no";
|
|
230
220
|
prefix?: string;
|
|
231
221
|
role?: React.AriaRole;
|
|
232
222
|
contentEditable?: "inherit" | (boolean | "false" | "true");
|
|
@@ -242,6 +232,10 @@ export declare function withError(props: ModalReactProps): {
|
|
|
242
232
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
|
|
243
233
|
'aria-controls'?: string;
|
|
244
234
|
'aria-describedby'?: string;
|
|
235
|
+
defaultChecked?: boolean;
|
|
236
|
+
suppressContentEditableWarning?: boolean;
|
|
237
|
+
suppressHydrationWarning?: boolean;
|
|
238
|
+
autoFocus?: boolean;
|
|
245
239
|
contextMenu?: string;
|
|
246
240
|
placeholder?: string;
|
|
247
241
|
spellCheck?: boolean | "false" | "true";
|
|
@@ -327,6 +321,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
327
321
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
328
322
|
onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
329
323
|
onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
324
|
+
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
330
325
|
onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
331
326
|
onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
|
|
332
327
|
onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
@@ -463,6 +458,11 @@ export declare function withError(props: ModalReactProps): {
|
|
|
463
458
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
464
459
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
465
460
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
461
|
+
formAction?: string;
|
|
462
|
+
formEncType?: string;
|
|
463
|
+
formMethod?: string;
|
|
464
|
+
formNoValidate?: boolean;
|
|
465
|
+
formTarget?: string;
|
|
466
466
|
};
|
|
467
467
|
};
|
|
468
468
|
export declare function withConfirm(props: ModalReactProps): {
|
package/lib/es/select/index.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export type SelectProps = {
|
|
|
85
85
|
autoClearSearchValue?: boolean;
|
|
86
86
|
arrowIcon?: React.ReactNode;
|
|
87
87
|
borderless?: boolean;
|
|
88
|
+
showArrowInBorderless?: boolean;
|
|
88
89
|
clearIcon?: React.ReactNode;
|
|
89
90
|
defaultValue?: string | number | any[] | Record<string, any>;
|
|
90
91
|
value?: string | number | any[] | Record<string, any>;
|
package/lib/es/select/index.js
CHANGED
|
@@ -1047,9 +1047,10 @@ class Select extends BaseComponent {
|
|
|
1047
1047
|
triggerRender,
|
|
1048
1048
|
arrowIcon,
|
|
1049
1049
|
clearIcon,
|
|
1050
|
-
borderless
|
|
1050
|
+
borderless,
|
|
1051
|
+
showArrowInBorderless
|
|
1051
1052
|
} = _a,
|
|
1052
|
-
rest = __rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless"]);
|
|
1053
|
+
rest = __rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless", "showArrowInBorderless"]);
|
|
1053
1054
|
const {
|
|
1054
1055
|
selections,
|
|
1055
1056
|
isOpen,
|
|
@@ -1064,6 +1065,7 @@ class Select extends BaseComponent {
|
|
|
1064
1065
|
const filterable = Boolean(filter); // filter(boolean || function)
|
|
1065
1066
|
const selectionCls = useCustomTrigger ? cls(className) : cls(prefixcls, className, {
|
|
1066
1067
|
[`${prefixcls}-borderless`]: borderless,
|
|
1068
|
+
[`${prefixcls}-borderless-arrow`]: showArrowInBorderless,
|
|
1067
1069
|
[`${prefixcls}-open`]: isOpen,
|
|
1068
1070
|
[`${prefixcls}-focus`]: isFocus,
|
|
1069
1071
|
[`${prefixcls}-disabled`]: disabled,
|
|
@@ -1330,7 +1332,8 @@ Select.defaultProps = {
|
|
|
1330
1332
|
showRestTagsPopover: false,
|
|
1331
1333
|
restTagsPopoverProps: {},
|
|
1332
1334
|
expandRestTagsOnClick: false,
|
|
1333
|
-
ellipsisTrigger: false
|
|
1335
|
+
ellipsisTrigger: false,
|
|
1336
|
+
showArrowInBorderless: false
|
|
1334
1337
|
// Radio selection is different from the default renderSelectedItem for multiple selection, so it is not declared here
|
|
1335
1338
|
// renderSelectedItem: (optionNode) => optionNode.label,
|
|
1336
1339
|
// The default creator rendering is related to i18, so it is not declared here
|
|
@@ -261,7 +261,7 @@ class TreeSelect extends BaseComponent {
|
|
|
261
261
|
// searchPosition = dropdown and single seleciton
|
|
262
262
|
if (!multiple || !this.hasValue()) {
|
|
263
263
|
const renderText = this.foundation.getRenderTextInSingle();
|
|
264
|
-
const spanCls = cls({
|
|
264
|
+
const spanCls = cls(`${prefixcls}-selection-content`, {
|
|
265
265
|
[`${prefixcls}-selection-placeholder`]: !renderText
|
|
266
266
|
});
|
|
267
267
|
return /*#__PURE__*/React.createElement("span", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.40.0-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"lib/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@douyinfe/semi-animation": "2.
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.
|
|
22
|
-
"@douyinfe/semi-foundation": "2.
|
|
23
|
-
"@douyinfe/semi-icons": "2.
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.
|
|
20
|
+
"@douyinfe/semi-animation": "2.40.0-alpha.0",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.40.0-alpha.0",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.40.0-alpha.0",
|
|
23
|
+
"@douyinfe/semi-icons": "2.40.0-alpha.0",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.40.0-alpha.0",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.40.0-alpha.0",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "3c30c680ff8335f275dce40e16c8994af178ca78",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|