@alifd/chat 0.1.15-beta.9 → 0.1.16
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/es/balloon/index.d.ts +7 -0
- package/es/balloon/index.js +7 -0
- package/es/balloon/style.d.ts +1 -0
- package/es/balloon/style.js +1 -0
- package/es/balloon/types.d.ts +219 -0
- package/es/balloon/types.js +1 -0
- package/es/card/view/collapsable.d.ts +1 -1
- package/es/icon/index.d.ts +12 -0
- package/es/icon/index.js +21 -0
- package/es/icon/main.scss +1 -0
- package/es/icon/style.d.ts +2 -0
- package/es/icon/style.js +2 -0
- package/es/icon/types.d.ts +43 -0
- package/es/icon/types.js +1 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/input/index.d.ts +1 -2
- package/es/message/index.d.ts +75 -0
- package/es/message/index.js +30 -0
- package/es/message/main.scss +2 -0
- package/es/message/style.d.ts +2 -0
- package/es/message/style.js +2 -0
- package/es/message/types.d.ts +195 -0
- package/es/message/types.js +1 -0
- package/es/person-picker/index.d.ts +377 -2
- package/es/person-picker/index.js +2 -2
- package/es/tab/main.scss +2 -3
- package/es/tag/index.d.ts +2 -2
- package/es/tag/index.js +2 -2
- package/es/tag/main.scss +1 -1
- package/lib/balloon/index.d.ts +7 -0
- package/lib/balloon/index.js +11 -0
- package/lib/balloon/style.d.ts +1 -0
- package/lib/balloon/style.js +3 -0
- package/lib/balloon/types.d.ts +219 -0
- package/lib/balloon/types.js +2 -0
- package/lib/card/view/collapsable.d.ts +1 -1
- package/lib/icon/index.d.ts +12 -0
- package/lib/icon/index.js +23 -0
- package/lib/icon/main.scss +1 -0
- package/lib/icon/style.d.ts +2 -0
- package/lib/icon/style.js +4 -0
- package/lib/icon/types.d.ts +43 -0
- package/lib/icon/types.js +2 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +8 -2
- package/lib/input/index.d.ts +1 -2
- package/lib/message/index.d.ts +75 -0
- package/lib/message/index.js +32 -0
- package/lib/message/main.scss +2 -0
- package/lib/message/style.d.ts +2 -0
- package/lib/message/style.js +4 -0
- package/lib/message/types.d.ts +195 -0
- package/lib/message/types.js +2 -0
- package/lib/person-picker/index.d.ts +377 -2
- package/lib/person-picker/index.js +1 -1
- package/lib/tab/main.scss +2 -3
- package/lib/tag/index.d.ts +2 -2
- package/lib/tag/index.js +2 -2
- package/lib/tag/main.scss +1 -1
- package/package.json +55 -5
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { OverlayProps } from '@alifd/next/types/overlay';
|
|
3
|
+
import type { ConsumerState } from '@alifd/next/types/config-provider/consumer';
|
|
4
|
+
type HTMLAttributesWeak = Omit<React.HTMLAttributes<HTMLElement>, 'title'>;
|
|
5
|
+
/**
|
|
6
|
+
* @api Message
|
|
7
|
+
*/
|
|
8
|
+
export interface MessageProps extends HTMLAttributesWeak {
|
|
9
|
+
/**
|
|
10
|
+
* 反馈类型
|
|
11
|
+
* @en type of message
|
|
12
|
+
* @defaultValue 'success'
|
|
13
|
+
*/
|
|
14
|
+
type?: 'success' | 'warning' | 'error' | 'notice' | 'help' | 'loading';
|
|
15
|
+
/**
|
|
16
|
+
* 反馈外观
|
|
17
|
+
* @en shape of message
|
|
18
|
+
* @defaultValue 'inline'
|
|
19
|
+
*/
|
|
20
|
+
shape?: 'inline' | 'addon' | 'toast';
|
|
21
|
+
/**
|
|
22
|
+
* 反馈大小
|
|
23
|
+
* @en size of message
|
|
24
|
+
* @defaultValue 'medium'
|
|
25
|
+
*/
|
|
26
|
+
size?: 'medium' | 'large';
|
|
27
|
+
/**
|
|
28
|
+
* 标题
|
|
29
|
+
* @en title of message
|
|
30
|
+
*/
|
|
31
|
+
title?: React.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* 内容,非函数式调用下使用
|
|
34
|
+
* @en content of message
|
|
35
|
+
*/
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* 默认是否显示
|
|
39
|
+
* @en whether the message is visible in default
|
|
40
|
+
* @defaultValue false
|
|
41
|
+
*/
|
|
42
|
+
defaultVisible?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 当前是否显示
|
|
45
|
+
* @en whether the message is visible currently
|
|
46
|
+
*/
|
|
47
|
+
visible?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 显示的图标类型,会覆盖内部设置的IconType,传false不显示图标
|
|
50
|
+
* @en type of icon, overriding the internally type of icon
|
|
51
|
+
*/
|
|
52
|
+
iconType?: string | false;
|
|
53
|
+
/**
|
|
54
|
+
* 显示关闭按钮
|
|
55
|
+
* @en whether to show the close button
|
|
56
|
+
* @defaultValue false
|
|
57
|
+
*/
|
|
58
|
+
closeable?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* 关闭按钮的回调
|
|
61
|
+
* @en callback function triggered when close
|
|
62
|
+
* @defaultValue () =\> \{\}
|
|
63
|
+
*/
|
|
64
|
+
onClose?: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* 关闭之后调用的函数
|
|
67
|
+
* @en callback function triggered after closed
|
|
68
|
+
* @defaultValue () =\> \{\}
|
|
69
|
+
*/
|
|
70
|
+
afterClose?: () => void;
|
|
71
|
+
/**
|
|
72
|
+
* 是否开启展开收起动画
|
|
73
|
+
* @en whether to enable expand and collapse animation
|
|
74
|
+
* @defaultValue true
|
|
75
|
+
*/
|
|
76
|
+
animation?: boolean;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @api Message.show
|
|
80
|
+
* @remarks Message.show(props) 提供一个单例的调用方式,配置参数如下(继承 Overlay 的配置):
|
|
81
|
+
*
|
|
82
|
+
* ```js
|
|
83
|
+
* Message.show({
|
|
84
|
+
* type: 'error',
|
|
85
|
+
* title: '错误',
|
|
86
|
+
* content: '请联系相关人员反馈!',
|
|
87
|
+
* hasMask: true
|
|
88
|
+
* });
|
|
89
|
+
* ```
|
|
90
|
+
* -
|
|
91
|
+
* `Message.show(props)` provides a singleton call with the following configuration parameters (inheriting `Overlay` configuration):
|
|
92
|
+
* ```js
|
|
93
|
+
* Message.show({
|
|
94
|
+
* type: 'error',
|
|
95
|
+
* title: 'Error',
|
|
96
|
+
* content: 'Please contact admin feedback!',
|
|
97
|
+
* hasMask: true
|
|
98
|
+
* });
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export interface MessageQuickProps extends Omit<HTMLAttributesWeak, 'content'> {
|
|
102
|
+
/**
|
|
103
|
+
* 反馈类型
|
|
104
|
+
* @en type of message
|
|
105
|
+
* @defaultValue 'success'
|
|
106
|
+
*/
|
|
107
|
+
type?: 'success' | 'warning' | 'error' | 'notice' | 'help' | 'loading';
|
|
108
|
+
/**
|
|
109
|
+
* 反馈大小
|
|
110
|
+
* @en size of message
|
|
111
|
+
* @defaultValue 'medium'
|
|
112
|
+
*/
|
|
113
|
+
size?: 'medium' | 'large';
|
|
114
|
+
/**
|
|
115
|
+
* 标题
|
|
116
|
+
* @en title of message
|
|
117
|
+
*/
|
|
118
|
+
title?: React.ReactNode;
|
|
119
|
+
/**
|
|
120
|
+
* 内容,函数式调用下使用
|
|
121
|
+
* @en content of message
|
|
122
|
+
*/
|
|
123
|
+
content?: React.ReactNode;
|
|
124
|
+
/**
|
|
125
|
+
* 弹层对齐方式,详情见 Overlay align
|
|
126
|
+
* @en alignment reference Overlay
|
|
127
|
+
* @defaultValue 'tc tc'
|
|
128
|
+
*/
|
|
129
|
+
align?: string | boolean;
|
|
130
|
+
/**
|
|
131
|
+
* 弹层相对于参照元素定位的微调
|
|
132
|
+
* @en offset after positioned
|
|
133
|
+
* @defaultValue [0, 0]
|
|
134
|
+
*/
|
|
135
|
+
offset?: Array<number>;
|
|
136
|
+
/**
|
|
137
|
+
* 是否显示遮罩
|
|
138
|
+
* @en whether to have a mask
|
|
139
|
+
* @defaultValue false
|
|
140
|
+
*/
|
|
141
|
+
hasMask?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* 显示持续时间,0表示一直存在,以毫秒为单位
|
|
144
|
+
* @en show duration, 0 means always present, in milliseconds
|
|
145
|
+
* @defaultValue 3000
|
|
146
|
+
*/
|
|
147
|
+
duration?: number;
|
|
148
|
+
/**
|
|
149
|
+
* @skip
|
|
150
|
+
*/
|
|
151
|
+
timeoutId?: string;
|
|
152
|
+
/**
|
|
153
|
+
* 显示关闭按钮
|
|
154
|
+
* @en whether to show the close button
|
|
155
|
+
* @defaultValue false
|
|
156
|
+
*/
|
|
157
|
+
closeable?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* 关闭按钮的回调
|
|
160
|
+
* @en callback function triggered when close
|
|
161
|
+
* @defaultValue () =\> \{\}
|
|
162
|
+
*/
|
|
163
|
+
onClose?: () => void;
|
|
164
|
+
/**
|
|
165
|
+
* 关闭之后调用的函数
|
|
166
|
+
* @en callback function triggered after closed
|
|
167
|
+
* @defaultValue () =\> \{\}
|
|
168
|
+
*/
|
|
169
|
+
afterClose?: () => void;
|
|
170
|
+
/**
|
|
171
|
+
* 是否开启展开收起动画
|
|
172
|
+
* @en whether to enable expand and collapse animation
|
|
173
|
+
* @defaultValue true
|
|
174
|
+
*/
|
|
175
|
+
animation?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* 透传到弹层组件的属性对象
|
|
178
|
+
* @en props of Overlay
|
|
179
|
+
*/
|
|
180
|
+
overlayProps?: OverlayProps;
|
|
181
|
+
/**
|
|
182
|
+
* @skip
|
|
183
|
+
*/
|
|
184
|
+
contextConfig?: ConsumerState;
|
|
185
|
+
}
|
|
186
|
+
export type OpenProps = string | React.ReactElement | MessageQuickProps;
|
|
187
|
+
export interface MessageWrapperItem extends MessageQuickProps {
|
|
188
|
+
timer?: ReturnType<typeof setTimeout>;
|
|
189
|
+
key: string;
|
|
190
|
+
}
|
|
191
|
+
export interface MessageWrapperProps {
|
|
192
|
+
prefix?: MessageQuickProps['prefix'];
|
|
193
|
+
dataSource: Array<MessageWrapperItem>;
|
|
194
|
+
}
|
|
195
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,7 +18,382 @@
|
|
|
18
18
|
* | SPACE | Trigger the onClick event |
|
|
19
19
|
*/
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import { Select as NextSelect } from '@alifd/next';
|
|
22
21
|
export * from './types';
|
|
23
|
-
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<Pick<any, string | number | symbol> & React.RefAttributes<
|
|
22
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<Pick<any, string | number | symbol> & React.RefAttributes<import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/select").SelectProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
|
|
23
|
+
selectAllYet: boolean;
|
|
24
|
+
componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
|
|
25
|
+
componentDidMount(): void;
|
|
26
|
+
ie9Hack(): void;
|
|
27
|
+
useDetailValue(): boolean;
|
|
28
|
+
hasSearch(): boolean;
|
|
29
|
+
getTagSize(): "small" | "medium" | "large" | undefined;
|
|
30
|
+
handleMenuSelect(keys: string[], item: {
|
|
31
|
+
props: {
|
|
32
|
+
_key: string;
|
|
33
|
+
};
|
|
34
|
+
}): false | void;
|
|
35
|
+
handleItemClick(key: string): void;
|
|
36
|
+
handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
37
|
+
handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
|
|
38
|
+
updateSelectAllYet(value?: unknown): void;
|
|
39
|
+
handleSearchValue(value: string): void;
|
|
40
|
+
handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
|
|
41
|
+
handleSearchClear(triggerType?: string | undefined): void;
|
|
42
|
+
handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
|
|
43
|
+
chooseMultipleItem(key: string): void;
|
|
44
|
+
chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
45
|
+
handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
|
|
46
|
+
handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
47
|
+
handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
|
|
48
|
+
handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
49
|
+
afterClose(): void;
|
|
50
|
+
maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
|
|
51
|
+
renderValues(): React.ReactNode;
|
|
52
|
+
handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
53
|
+
handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
54
|
+
handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
55
|
+
hasClear(): boolean | undefined;
|
|
56
|
+
renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
57
|
+
renderSelect(): React.JSX.Element;
|
|
58
|
+
renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
|
|
59
|
+
renderMenuHeader(): React.ReactNode;
|
|
60
|
+
render(): React.JSX.Element;
|
|
61
|
+
dataStore: import("@alifd/next/types/select/data-store").default;
|
|
62
|
+
selectDOM: HTMLElement;
|
|
63
|
+
width: string | number;
|
|
64
|
+
popupRef: HTMLDivElement;
|
|
65
|
+
resizeTimeout: number;
|
|
66
|
+
highlightTimer: number | undefined;
|
|
67
|
+
menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
|
|
68
|
+
isAutoComplete: boolean;
|
|
69
|
+
inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
|
|
70
|
+
valueDataSource: {
|
|
71
|
+
value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
|
|
72
|
+
valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
|
|
73
|
+
mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
|
|
74
|
+
};
|
|
75
|
+
componentWillUnmount(): void;
|
|
76
|
+
syncWidth(): void;
|
|
77
|
+
handleResize(): void;
|
|
78
|
+
setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
|
|
79
|
+
setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
|
|
80
|
+
setFirstHightLightKeyForMenu(searchValue?: unknown): void;
|
|
81
|
+
handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
|
|
82
|
+
handleMenuBodyClick(): void;
|
|
83
|
+
toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
|
|
84
|
+
scrollMenuIntoView(): void;
|
|
85
|
+
handleSelect(): void;
|
|
86
|
+
handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
87
|
+
renderMenu(): React.JSX.Element;
|
|
88
|
+
renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
89
|
+
saveSelectRef: (ref: HTMLElement | null) => void;
|
|
90
|
+
saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
|
|
91
|
+
focusInput(): void;
|
|
92
|
+
focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
|
|
93
|
+
beforeOpen(): void;
|
|
94
|
+
beforeClose(): void;
|
|
95
|
+
savePopupRef: (ref: HTMLDivElement) => void;
|
|
96
|
+
shouldAutoWidth(): boolean | undefined;
|
|
97
|
+
context: any;
|
|
98
|
+
setState<K extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K> | null, callback?: (() => void) | undefined): void;
|
|
99
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
100
|
+
readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
|
|
101
|
+
children?: React.ReactNode;
|
|
102
|
+
}>;
|
|
103
|
+
state: Readonly<import("@alifd/next/types/select/select").SelectState>;
|
|
104
|
+
refs: {
|
|
105
|
+
[key: string]: React.ReactInstance;
|
|
106
|
+
};
|
|
107
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
|
|
108
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
109
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
|
|
110
|
+
componentWillMount?(): void;
|
|
111
|
+
UNSAFE_componentWillMount?(): void;
|
|
112
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
113
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
114
|
+
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
115
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
116
|
+
}> & Pick<{
|
|
117
|
+
selectAllYet: boolean;
|
|
118
|
+
componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
|
|
119
|
+
componentDidMount(): void;
|
|
120
|
+
ie9Hack(): void;
|
|
121
|
+
useDetailValue(): boolean;
|
|
122
|
+
hasSearch(): boolean;
|
|
123
|
+
getTagSize(): "small" | "medium" | "large" | undefined;
|
|
124
|
+
handleMenuSelect(keys: string[], item: {
|
|
125
|
+
props: {
|
|
126
|
+
_key: string;
|
|
127
|
+
};
|
|
128
|
+
}): false | void;
|
|
129
|
+
handleItemClick(key: string): void;
|
|
130
|
+
handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
131
|
+
handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
|
|
132
|
+
updateSelectAllYet(value?: unknown): void;
|
|
133
|
+
handleSearchValue(value: string): void;
|
|
134
|
+
handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
|
|
135
|
+
handleSearchClear(triggerType?: string | undefined): void;
|
|
136
|
+
handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
|
|
137
|
+
chooseMultipleItem(key: string): void;
|
|
138
|
+
chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
139
|
+
handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
|
|
140
|
+
handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
141
|
+
handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
|
|
142
|
+
handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
143
|
+
afterClose(): void;
|
|
144
|
+
maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
|
|
145
|
+
renderValues(): React.ReactNode;
|
|
146
|
+
handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
147
|
+
handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
148
|
+
handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
149
|
+
hasClear(): boolean | undefined;
|
|
150
|
+
renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
151
|
+
renderSelect(): React.JSX.Element;
|
|
152
|
+
renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
|
|
153
|
+
renderMenuHeader(): React.ReactNode;
|
|
154
|
+
render(): React.JSX.Element;
|
|
155
|
+
dataStore: import("@alifd/next/types/select/data-store").default;
|
|
156
|
+
selectDOM: HTMLElement;
|
|
157
|
+
width: string | number;
|
|
158
|
+
popupRef: HTMLDivElement;
|
|
159
|
+
resizeTimeout: number;
|
|
160
|
+
highlightTimer: number | undefined;
|
|
161
|
+
menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
|
|
162
|
+
isAutoComplete: boolean;
|
|
163
|
+
inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
|
|
164
|
+
valueDataSource: {
|
|
165
|
+
value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
|
|
166
|
+
valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
|
|
167
|
+
mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
|
|
168
|
+
};
|
|
169
|
+
componentWillUnmount(): void;
|
|
170
|
+
syncWidth(): void;
|
|
171
|
+
handleResize(): void;
|
|
172
|
+
setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
|
|
173
|
+
setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
|
|
174
|
+
setFirstHightLightKeyForMenu(searchValue?: unknown): void;
|
|
175
|
+
handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
|
|
176
|
+
handleMenuBodyClick(): void;
|
|
177
|
+
toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
|
|
178
|
+
scrollMenuIntoView(): void;
|
|
179
|
+
handleSelect(): void;
|
|
180
|
+
handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
181
|
+
renderMenu(): React.JSX.Element;
|
|
182
|
+
renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
183
|
+
saveSelectRef: (ref: HTMLElement | null) => void;
|
|
184
|
+
saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
|
|
185
|
+
focusInput(): void;
|
|
186
|
+
focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
|
|
187
|
+
beforeOpen(): void;
|
|
188
|
+
beforeClose(): void;
|
|
189
|
+
savePopupRef: (ref: HTMLDivElement) => void;
|
|
190
|
+
shouldAutoWidth(): boolean | undefined;
|
|
191
|
+
context: any;
|
|
192
|
+
setState<K_1 extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
193
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
194
|
+
readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
|
|
195
|
+
children?: React.ReactNode;
|
|
196
|
+
}>;
|
|
197
|
+
state: Readonly<import("@alifd/next/types/select/select").SelectState>;
|
|
198
|
+
refs: {
|
|
199
|
+
[key: string]: React.ReactInstance;
|
|
200
|
+
};
|
|
201
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
|
|
202
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
203
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
|
|
204
|
+
componentWillMount?(): void;
|
|
205
|
+
UNSAFE_componentWillMount?(): void;
|
|
206
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
207
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
208
|
+
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
209
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
210
|
+
}, "focusInput" | "handleSearchClear">>, string | number | symbol> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/select").SelectProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
|
|
211
|
+
selectAllYet: boolean;
|
|
212
|
+
componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
|
|
213
|
+
componentDidMount(): void;
|
|
214
|
+
ie9Hack(): void;
|
|
215
|
+
useDetailValue(): boolean;
|
|
216
|
+
hasSearch(): boolean;
|
|
217
|
+
getTagSize(): "small" | "medium" | "large" | undefined;
|
|
218
|
+
handleMenuSelect(keys: string[], item: {
|
|
219
|
+
props: {
|
|
220
|
+
_key: string;
|
|
221
|
+
};
|
|
222
|
+
}): false | void;
|
|
223
|
+
handleItemClick(key: string): void;
|
|
224
|
+
handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
225
|
+
handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
|
|
226
|
+
updateSelectAllYet(value?: unknown): void;
|
|
227
|
+
handleSearchValue(value: string): void;
|
|
228
|
+
handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
|
|
229
|
+
handleSearchClear(triggerType?: string | undefined): void;
|
|
230
|
+
handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
|
|
231
|
+
chooseMultipleItem(key: string): void;
|
|
232
|
+
chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
233
|
+
handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
|
|
234
|
+
handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
235
|
+
handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
|
|
236
|
+
handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
237
|
+
afterClose(): void;
|
|
238
|
+
maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
|
|
239
|
+
renderValues(): React.ReactNode;
|
|
240
|
+
handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
241
|
+
handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
242
|
+
handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
243
|
+
hasClear(): boolean | undefined;
|
|
244
|
+
renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
245
|
+
renderSelect(): React.JSX.Element;
|
|
246
|
+
renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
|
|
247
|
+
renderMenuHeader(): React.ReactNode;
|
|
248
|
+
render(): React.JSX.Element;
|
|
249
|
+
dataStore: import("@alifd/next/types/select/data-store").default;
|
|
250
|
+
selectDOM: HTMLElement;
|
|
251
|
+
width: string | number;
|
|
252
|
+
popupRef: HTMLDivElement;
|
|
253
|
+
resizeTimeout: number;
|
|
254
|
+
highlightTimer: number | undefined;
|
|
255
|
+
menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
|
|
256
|
+
isAutoComplete: boolean;
|
|
257
|
+
inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
|
|
258
|
+
valueDataSource: {
|
|
259
|
+
value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
|
|
260
|
+
valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
|
|
261
|
+
mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
|
|
262
|
+
};
|
|
263
|
+
componentWillUnmount(): void;
|
|
264
|
+
syncWidth(): void;
|
|
265
|
+
handleResize(): void;
|
|
266
|
+
setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
|
|
267
|
+
setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
|
|
268
|
+
setFirstHightLightKeyForMenu(searchValue?: unknown): void;
|
|
269
|
+
handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
|
|
270
|
+
handleMenuBodyClick(): void;
|
|
271
|
+
toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
|
|
272
|
+
scrollMenuIntoView(): void;
|
|
273
|
+
handleSelect(): void;
|
|
274
|
+
handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
275
|
+
renderMenu(): React.JSX.Element;
|
|
276
|
+
renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
277
|
+
saveSelectRef: (ref: HTMLElement | null) => void;
|
|
278
|
+
saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
|
|
279
|
+
focusInput(): void;
|
|
280
|
+
focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
|
|
281
|
+
beforeOpen(): void;
|
|
282
|
+
beforeClose(): void;
|
|
283
|
+
savePopupRef: (ref: HTMLDivElement) => void;
|
|
284
|
+
shouldAutoWidth(): boolean | undefined;
|
|
285
|
+
context: any;
|
|
286
|
+
setState<K extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K> | null, callback?: (() => void) | undefined): void;
|
|
287
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
288
|
+
readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
|
|
289
|
+
children?: React.ReactNode;
|
|
290
|
+
}>;
|
|
291
|
+
state: Readonly<import("@alifd/next/types/select/select").SelectState>;
|
|
292
|
+
refs: {
|
|
293
|
+
[key: string]: React.ReactInstance;
|
|
294
|
+
};
|
|
295
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
|
|
296
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
297
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
|
|
298
|
+
componentWillMount?(): void;
|
|
299
|
+
UNSAFE_componentWillMount?(): void;
|
|
300
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
301
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
302
|
+
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
303
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
304
|
+
}> & Pick<{
|
|
305
|
+
selectAllYet: boolean;
|
|
306
|
+
componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
|
|
307
|
+
componentDidMount(): void;
|
|
308
|
+
ie9Hack(): void;
|
|
309
|
+
useDetailValue(): boolean;
|
|
310
|
+
hasSearch(): boolean;
|
|
311
|
+
getTagSize(): "small" | "medium" | "large" | undefined;
|
|
312
|
+
handleMenuSelect(keys: string[], item: {
|
|
313
|
+
props: {
|
|
314
|
+
_key: string;
|
|
315
|
+
};
|
|
316
|
+
}): false | void;
|
|
317
|
+
handleItemClick(key: string): void;
|
|
318
|
+
handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
319
|
+
handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
|
|
320
|
+
updateSelectAllYet(value?: unknown): void;
|
|
321
|
+
handleSearchValue(value: string): void;
|
|
322
|
+
handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
|
|
323
|
+
handleSearchClear(triggerType?: string | undefined): void;
|
|
324
|
+
handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
|
|
325
|
+
chooseMultipleItem(key: string): void;
|
|
326
|
+
chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
327
|
+
handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
|
|
328
|
+
handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
329
|
+
handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
|
|
330
|
+
handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
331
|
+
afterClose(): void;
|
|
332
|
+
maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
|
|
333
|
+
renderValues(): React.ReactNode;
|
|
334
|
+
handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
335
|
+
handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
336
|
+
handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
337
|
+
hasClear(): boolean | undefined;
|
|
338
|
+
renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
339
|
+
renderSelect(): React.JSX.Element;
|
|
340
|
+
renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
|
|
341
|
+
renderMenuHeader(): React.ReactNode;
|
|
342
|
+
render(): React.JSX.Element;
|
|
343
|
+
dataStore: import("@alifd/next/types/select/data-store").default;
|
|
344
|
+
selectDOM: HTMLElement;
|
|
345
|
+
width: string | number;
|
|
346
|
+
popupRef: HTMLDivElement;
|
|
347
|
+
resizeTimeout: number;
|
|
348
|
+
highlightTimer: number | undefined;
|
|
349
|
+
menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
|
|
350
|
+
isAutoComplete: boolean;
|
|
351
|
+
inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
|
|
352
|
+
valueDataSource: {
|
|
353
|
+
value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
|
|
354
|
+
valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
|
|
355
|
+
mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
|
|
356
|
+
};
|
|
357
|
+
componentWillUnmount(): void;
|
|
358
|
+
syncWidth(): void;
|
|
359
|
+
handleResize(): void;
|
|
360
|
+
setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
|
|
361
|
+
setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
|
|
362
|
+
setFirstHightLightKeyForMenu(searchValue?: unknown): void;
|
|
363
|
+
handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
|
|
364
|
+
handleMenuBodyClick(): void;
|
|
365
|
+
toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
|
|
366
|
+
scrollMenuIntoView(): void;
|
|
367
|
+
handleSelect(): void;
|
|
368
|
+
handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
369
|
+
renderMenu(): React.JSX.Element;
|
|
370
|
+
renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
371
|
+
saveSelectRef: (ref: HTMLElement | null) => void;
|
|
372
|
+
saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
|
|
373
|
+
focusInput(): void;
|
|
374
|
+
focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
|
|
375
|
+
beforeOpen(): void;
|
|
376
|
+
beforeClose(): void;
|
|
377
|
+
savePopupRef: (ref: HTMLDivElement) => void;
|
|
378
|
+
shouldAutoWidth(): boolean | undefined;
|
|
379
|
+
context: any;
|
|
380
|
+
setState<K_1 extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
381
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
382
|
+
readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
|
|
383
|
+
children?: React.ReactNode;
|
|
384
|
+
}>;
|
|
385
|
+
state: Readonly<import("@alifd/next/types/select/select").SelectState>;
|
|
386
|
+
refs: {
|
|
387
|
+
[key: string]: React.ReactInstance;
|
|
388
|
+
};
|
|
389
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
|
|
390
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
391
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
|
|
392
|
+
componentWillMount?(): void;
|
|
393
|
+
UNSAFE_componentWillMount?(): void;
|
|
394
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
395
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
396
|
+
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
397
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
398
|
+
}, "focusInput" | "handleSearchClear">, {}>;
|
|
24
399
|
export default _default;
|
|
@@ -19,7 +19,7 @@ import { __awaiter, __rest } from "tslib";
|
|
|
19
19
|
* | SPACE | Trigger the onClick event |
|
|
20
20
|
*/
|
|
21
21
|
import React, { useState, forwardRef, useEffect } from 'react';
|
|
22
|
-
import { Select as NextSelect,
|
|
22
|
+
import { Select as NextSelect, ConfigProvider } from '@alifd/next';
|
|
23
23
|
import cs from 'classnames';
|
|
24
24
|
import axios from 'axios';
|
|
25
25
|
import { PREFIX_DEFAULT, assignSubComponent } from '../utils';
|
|
@@ -39,7 +39,7 @@ const PersonPicker = forwardRef((_a, ref) => {
|
|
|
39
39
|
};
|
|
40
40
|
const labelRender = (selectItem) => {
|
|
41
41
|
return React.createElement("div", { className: "label-container" },
|
|
42
|
-
React.createElement(
|
|
42
|
+
React.createElement("img", { style: { width: '20px', height: '20px', borderRadius: '4px' }, src: `https://work.alibaba-inc.com/photo/${selectItem.value}.20x20.jpg` }),
|
|
43
43
|
React.createElement("span", { className: "label-text" }, selectItem.label));
|
|
44
44
|
};
|
|
45
45
|
const handleUserSearch = (keyword) => __awaiter(void 0, void 0, void 0, function* () {
|
package/es/tab/main.scss
CHANGED