@fle-ui/next 1.0.3 → 1.0.4-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/.history/package_20211223145956.json +146 -0
- package/.history/package_20211223211341.json +146 -0
- package/.history/package_20211223220710.json +146 -0
- package/.history/package_20211223221147.json +146 -0
- package/.history/package_20211223221328.json +146 -0
- package/.history/package_20211223221445.json +146 -0
- package/dist/@fle-ui/next.css +2254 -2212
- package/dist/@fle-ui/next.css.map +1 -1
- package/dist/@fle-ui/next.js +1165 -1247
- package/dist/@fle-ui/next.js.map +1 -1
- package/dist/@fle-ui/next.min.css +2 -2
- package/dist/@fle-ui/next.min.css.map +1 -1
- package/dist/@fle-ui/next.min.js +3 -3
- package/dist/@fle-ui/next.min.js.map +1 -1
- package/docs-dist/components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~31d645aa.js +13 -16
- package/docs-dist/components__avatar__avatar.md.js +227 -372
- package/docs-dist/components__button__button.md.js +27 -27
- package/docs-dist/components__form__form.md.js +1 -1
- package/docs-dist/components__layout__layout.md.js +1 -1
- package/docs-dist/components__modal__modal.md.js +17 -11
- package/docs-dist/components__popconfirm__popconfirm.md.js +51 -51
- package/docs-dist/components__upload__upload.md.js +6 -10
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.chunk.css +2 -2
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.js +1536 -1843
- package/docs-dist/demos_daolpu.chunk.css +2 -2
- package/docs-dist/demos_daolpu.js +2597 -2904
- package/docs-dist/demos_eert.js +1 -1
- package/docs-dist/demos_elbat.chunk.css +2 -2
- package/docs-dist/demos_elbat.js +645 -952
- package/docs-dist/demos_mrifnocpop.js +1 -1
- package/docs-dist/demos_mrof.js +0 -1
- package/docs-dist/demos_noitacifiton.js +1 -1
- package/docs-dist/demos_pot-kcab.js +9 -9
- package/docs-dist/demos_ratava.js +3 -3
- package/docs-dist/demos_redivorp-gifnoc.js +5 -5
- package/docs-dist/demos_rekcip-etad.js +2 -2
- package/docs-dist/demos_sbat.chunk.css +2 -2
- package/docs-dist/demos_sbat.js +2301 -2608
- package/docs-dist/demos_tupni.js +1 -1
- package/docs-dist/docs__story__index.md.js +22 -0
- package/docs-dist/umi.js +9 -8
- package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_eert~d~f20ff6ec.js +9204 -8936
- package/es/cascader/index.d.ts +11 -129
- package/es/cascader/index.js +151 -534
- package/es/cascader/style/css.js +1 -1
- package/es/cascader/style/index.css +205 -180
- package/es/cascader/style/index.d.ts +1 -1
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/style/index.less +66 -205
- package/es/cascader/style/rtl.less +10 -84
- package/es/input-number/style/index.css +18 -4
- package/es/input-number/style/index.less +15 -2
- package/es/input-number/style/rtl.less +24 -7
- package/es/table/style/index.css +3 -0
- package/lib/cascader/index.d.ts +11 -129
- package/lib/cascader/index.js +153 -545
- package/lib/cascader/style/css.js +1 -1
- package/lib/cascader/style/index.css +205 -180
- package/lib/cascader/style/index.d.ts +1 -1
- package/lib/cascader/style/index.js +1 -1
- package/lib/cascader/style/index.less +66 -205
- package/lib/cascader/style/rtl.less +10 -84
- package/lib/input-number/style/index.css +18 -4
- package/lib/input-number/style/index.less +15 -2
- package/lib/input-number/style/rtl.less +24 -7
- package/lib/table/style/index.css +3 -0
- package/package.json +3 -2
- package/report.html +2 -2
package/lib/cascader/index.d.ts
CHANGED
@@ -1,135 +1,17 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import { SizeType } from '../config-provider/SizeContext';
|
5
|
-
export
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
isLeaf?: boolean;
|
10
|
-
loading?: boolean;
|
11
|
-
children?: Array<CascaderOptionType>;
|
12
|
-
[key: string]: any;
|
13
|
-
}
|
14
|
-
export interface FieldNamesType {
|
15
|
-
value?: string | number;
|
16
|
-
label?: string;
|
17
|
-
children?: string;
|
18
|
-
}
|
19
|
-
export interface FilledFieldNamesType {
|
20
|
-
value: string | number;
|
21
|
-
label: string;
|
22
|
-
children: string;
|
23
|
-
}
|
24
|
-
export declare type CascaderExpandTrigger = 'click' | 'hover';
|
25
|
-
export declare type CascaderValueType = (string | number)[];
|
26
|
-
export interface ShowSearchType {
|
27
|
-
filter?: (inputValue: string, path: CascaderOptionType[], names: FilledFieldNamesType) => boolean;
|
28
|
-
render?: (inputValue: string, path: CascaderOptionType[], prefixCls: string | undefined, names: FilledFieldNamesType) => React.ReactNode;
|
29
|
-
sort?: (a: CascaderOptionType[], b: CascaderOptionType[], inputValue: string, names: FilledFieldNamesType) => number;
|
30
|
-
matchInputWidth?: boolean;
|
31
|
-
limit?: number | false;
|
32
|
-
}
|
33
|
-
export interface CascaderProps {
|
34
|
-
/** 可选项数据源 */
|
35
|
-
options: CascaderOptionType[];
|
36
|
-
/** 默认的选中项 */
|
37
|
-
defaultValue?: CascaderValueType;
|
38
|
-
/** 指定选中项 */
|
39
|
-
value?: CascaderValueType;
|
40
|
-
/** 选择完成后的回调 */
|
41
|
-
onChange?: (value: CascaderValueType, selectedOptions?: CascaderOptionType[]) => void;
|
42
|
-
/** 选择后展示的渲染函数 */
|
43
|
-
displayRender?: (label: string[], selectedOptions?: CascaderOptionType[]) => React.ReactNode;
|
44
|
-
/** 自定义样式 */
|
45
|
-
style?: React.CSSProperties;
|
46
|
-
/** 自定义类名 */
|
47
|
-
className?: string;
|
48
|
-
/** 自定义浮层类名 */
|
49
|
-
popupClassName?: string;
|
50
|
-
/** 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` */
|
51
|
-
popupPlacement?: string;
|
52
|
-
/** 输入框占位文本 */
|
53
|
-
placeholder?: string;
|
54
|
-
/** 输入框大小,可选 `large` `default` `small` */
|
2
|
+
import type { CascaderProps as RcCascaderProps } from 'rc-cascader';
|
3
|
+
import type { FieldNames } from 'rc-cascader/lib/interface';
|
4
|
+
import type { SizeType } from '../config-provider/SizeContext';
|
5
|
+
export declare type FieldNamesType = FieldNames;
|
6
|
+
export declare type FilledFieldNamesType = Required<FieldNamesType>;
|
7
|
+
export interface CascaderProps extends Omit<RcCascaderProps, 'checkable'> {
|
8
|
+
multiple?: boolean;
|
55
9
|
size?: SizeType;
|
56
|
-
/** 输入框 name */
|
57
|
-
name?: string;
|
58
|
-
/** 输入框 id */
|
59
|
-
id?: string;
|
60
|
-
/** Whether has border style */
|
61
10
|
bordered?: boolean;
|
62
|
-
/** 禁用 */
|
63
|
-
disabled?: boolean;
|
64
|
-
/** 是否支持清除 */
|
65
|
-
allowClear?: boolean;
|
66
|
-
/** 自动获取焦点 */
|
67
|
-
autoFocus?: boolean;
|
68
|
-
showSearch?: boolean | ShowSearchType;
|
69
|
-
notFoundContent?: React.ReactNode;
|
70
|
-
loadData?: (selectedOptions?: CascaderOptionType[]) => void;
|
71
|
-
/** 次级菜单的展开方式,可选 'click' 和 'hover' */
|
72
|
-
expandTrigger?: CascaderExpandTrigger;
|
73
|
-
expandIcon?: React.ReactNode;
|
74
|
-
/** 当此项为 true 时,点选每级菜单选项值都会发生变化 */
|
75
|
-
changeOnSelect?: boolean;
|
76
|
-
/** 浮层可见变化时回调 */
|
77
|
-
onPopupVisibleChange?: (popupVisible: boolean) => void;
|
78
|
-
prefixCls?: string;
|
79
|
-
inputPrefixCls?: string;
|
80
|
-
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
81
|
-
popupVisible?: boolean;
|
82
|
-
/** Use this after antd@3.7.0 */
|
83
|
-
fieldNames?: FieldNamesType;
|
84
|
-
suffixIcon?: React.ReactNode;
|
85
|
-
dropdownRender?: (menus: React.ReactNode) => React.ReactNode;
|
86
|
-
autoComplete?: string;
|
87
|
-
transitionName?: string;
|
88
|
-
children?: React.ReactElement;
|
89
|
-
}
|
90
|
-
export interface CascaderState {
|
91
|
-
inputFocused: boolean;
|
92
|
-
inputValue: string;
|
93
|
-
value: CascaderValueType;
|
94
|
-
popupVisible: boolean | undefined;
|
95
|
-
flattenOptions: CascaderOptionType[][] | undefined;
|
96
|
-
prevProps: CascaderProps;
|
97
|
-
}
|
98
|
-
interface CascaderLocale {
|
99
|
-
placeholder?: string;
|
100
11
|
}
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
disabled: boolean;
|
105
|
-
allowClear: boolean;
|
106
|
-
bordered: boolean;
|
107
|
-
};
|
108
|
-
static getDerivedStateFromProps(nextProps: CascaderProps, { prevProps }: CascaderState): Partial<CascaderState>;
|
109
|
-
cachedOptions: CascaderOptionType[];
|
110
|
-
clearSelectionTimeout: any;
|
111
|
-
private input;
|
112
|
-
constructor(props: CascaderProps);
|
113
|
-
componentWillUnmount(): void;
|
114
|
-
setValue: (value: CascaderValueType, selectedOptions?: CascaderOptionType[]) => void;
|
115
|
-
getLabel(): any;
|
116
|
-
saveInput: (node: Input) => void;
|
117
|
-
handleChange: (value: any, selectedOptions: CascaderOptionType[]) => void;
|
118
|
-
handlePopupVisibleChange: (popupVisible: boolean) => void;
|
119
|
-
handleInputBlur: () => void;
|
120
|
-
handleInputClick: (e: React.MouseEvent<HTMLInputElement>) => void;
|
121
|
-
handleKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
122
|
-
handleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
123
|
-
clearSelection: (e: React.MouseEvent<HTMLElement>) => void;
|
124
|
-
generateFilteredOptions(prefixCls: string | undefined, renderEmpty: RenderEmptyHandler): CascaderOptionType[] | {
|
125
|
-
[x: string]: {} | null | undefined;
|
126
|
-
disabled: boolean;
|
127
|
-
isEmptyNode: boolean;
|
128
|
-
}[];
|
129
|
-
focus(): void;
|
130
|
-
blur(): void;
|
131
|
-
getPopupPlacement(direction?: DirectionType): string;
|
132
|
-
renderCascader: ({ getPopupContainer: getContextPopupContainer, getPrefixCls, renderEmpty, direction, }: ConfigConsumerProps, locale: CascaderLocale) => JSX.Element;
|
133
|
-
render(): JSX.Element;
|
12
|
+
interface CascaderRef {
|
13
|
+
focus: () => void;
|
14
|
+
blur: () => void;
|
134
15
|
}
|
16
|
+
declare const Cascader: React.ForwardRefExoticComponent<CascaderProps & React.RefAttributes<CascaderRef>>;
|
135
17
|
export default Cascader;
|