@pointcloud/pcloud-components 0.1.32 → 0.1.34
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/README.md +39 -31
- package/dist/esm/AdvancedFilter/FormFilter.d.ts +4 -4
- package/dist/esm/AdvancedFilter/index.d.ts +5 -5
- package/dist/esm/AdvancedFilter/interface.d.ts +101 -101
- package/dist/esm/AnimatedScrollList/index.d.ts +7 -7
- package/dist/esm/AnimatedScrollList/interface.d.ts +71 -71
- package/dist/esm/AspectRatio/index.d.ts +9 -9
- package/dist/esm/AuthComponent/index.d.ts +3 -3
- package/dist/esm/AuthComponent/interface.d.ts +24 -24
- package/dist/esm/CRUD/config.d.ts +2 -0
- package/dist/esm/CRUD/config.js +21 -0
- package/dist/esm/CRUD/index.d.ts +98 -0
- package/dist/esm/CRUD/index.js +669 -0
- package/dist/esm/CRUD/index.less +140 -0
- package/dist/esm/CRUD/toolbar.d.ts +16 -0
- package/dist/esm/CRUD/toolbar.js +249 -0
- package/dist/esm/ColorPicker/index.d.ts +17 -18
- package/dist/esm/ColorPicker/interface.d.ts +164 -164
- package/dist/esm/ConfigProvider/index.d.ts +6 -6
- package/dist/esm/ConfigProvider/index.js +7 -13
- package/dist/esm/ConfigProvider/interface.d.ts +9 -9
- package/dist/esm/ContextMenu/index.d.ts +28 -28
- package/dist/esm/DCascader/index.d.ts +24 -24
- package/dist/esm/DForm/DItem/index.d.ts +5 -5
- package/dist/esm/DForm/DItem/itemType.d.ts +123 -119
- package/dist/esm/DForm/DItem/itemsRender.d.ts +47 -45
- package/dist/esm/DForm/DItem/itemsRender.js +6 -0
- package/dist/esm/DForm/helper.d.ts +8 -8
- package/dist/esm/DForm/index.d.ts +29 -29
- package/dist/esm/DInput/index.d.ts +19 -19
- package/dist/esm/DModal/index.d.ts +19 -18
- package/dist/esm/DModal/index.js +11 -9
- package/dist/esm/DModal/interface.d.ts +8 -14
- package/dist/esm/DRangePicker/index.d.ts +7 -0
- package/dist/esm/DRangePicker/index.js +24 -0
- package/dist/esm/DRangePicker/index.less +30 -0
- package/dist/esm/DRangePicker/interface.d.ts +5 -0
- package/dist/esm/DRangePicker/interface.js +1 -0
- package/dist/esm/DSelect/index.d.ts +24 -24
- package/dist/esm/DTable/index.d.ts +62 -46
- package/dist/esm/DTable/index.js +43 -13
- package/dist/esm/DTreeSelect/index.d.ts +16 -16
- package/dist/esm/DUpload/helper.d.ts +107 -107
- package/dist/esm/DUpload/index.d.ts +55 -55
- package/dist/esm/ErrorBoundary/index.d.ts +5 -6
- package/dist/esm/IPAddress/index.d.ts +20 -20
- package/dist/esm/IconFont/index.d.ts +17 -17
- package/dist/esm/InfiniteScrollList/index.d.ts +63 -63
- package/dist/esm/LabelValue/index.d.ts +16 -16
- package/dist/esm/LabelValue/interface.d.ts +39 -39
- package/dist/esm/Loading/hooks/useLoading.d.ts +6 -6
- package/dist/esm/Loading/index.d.ts +10 -10
- package/dist/esm/Loading/interface.d.ts +23 -23
- package/dist/esm/Loading/loading.d.ts +9 -8
- package/dist/esm/Loading/loading.js +48 -23
- package/dist/esm/Loading/styles/index.less +37 -25
- package/dist/esm/LoginForm/defaultConfig.d.ts +4 -4
- package/dist/esm/LoginForm/index.d.ts +21 -21
- package/dist/esm/ModalForm/index.d.ts +13 -11
- package/dist/esm/ModalForm/index.js +76 -7
- package/dist/esm/NoData/index.d.ts +4 -5
- package/dist/esm/NoData/interface.d.ts +13 -13
- package/dist/esm/OrgTree/index.d.ts +5 -5
- package/dist/esm/OrgTree/interface.d.ts +41 -41
- package/dist/esm/PictureCard/index.d.ts +16 -16
- package/dist/esm/RCropper/handler.d.ts +16 -16
- package/dist/esm/RCropper/index.d.ts +4 -4
- package/dist/esm/RCropper/interface.d.ts +70 -70
- package/dist/esm/RCropper/svgIcons.d.ts +28 -28
- package/dist/esm/RCropper/toolbar.d.ts +5 -5
- package/dist/esm/RndDrag/index.d.ts +5 -6
- package/dist/esm/ScrollNumber/index.d.ts +7 -8
- package/dist/esm/SignaturePad/index.d.ts +32 -32
- package/dist/esm/TypewriterText/index.d.ts +5 -5
- package/dist/esm/TypewriterText/interface.d.ts +42 -42
- package/dist/esm/WordCloud/index.d.ts +10 -11
- package/dist/esm/index.d.ts +66 -62
- package/dist/esm/index.js +3 -1
- package/dist/umd/pcloud-components.min.css +1 -1
- package/dist/umd/pcloud-components.min.js +1 -1
- package/package.json +15 -5
package/README.md
CHANGED
|
@@ -10,15 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 表单组件
|
|
12
12
|
|
|
13
|
-
| 组件名称
|
|
14
|
-
|
|
|
15
|
-
| DForm
|
|
16
|
-
| DInput
|
|
17
|
-
| DSelect
|
|
18
|
-
| DCascader
|
|
19
|
-
| DTreeSelect
|
|
20
|
-
| DUpload
|
|
21
|
-
|
|
|
13
|
+
| 组件名称 | 描述 |
|
|
14
|
+
| ------------ | ----------------------------------- |
|
|
15
|
+
| DForm | 基于 Ant Design Form 的增强表单组件 |
|
|
16
|
+
| DInput | 增强版输入框组件 |
|
|
17
|
+
| DSelect | 支持异步加载的下拉选择组件 |
|
|
18
|
+
| DCascader | 支持异步加载的级联选择组件 |
|
|
19
|
+
| DTreeSelect | 支持异步加载的树选择组件 |
|
|
20
|
+
| DUpload | 文件上传组件 |
|
|
21
|
+
| DRangePicker | 日期选择组件 |
|
|
22
|
+
| ColorPicker | 颜色选择器组件 |
|
|
22
23
|
|
|
23
24
|
### 数据展示组件
|
|
24
25
|
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
| IPAddress | IP 地址输入组件 |
|
|
34
35
|
| AnimatedScrollList | 动画滚动列表组件 |
|
|
35
36
|
| OrgTree | 组织树组件 |
|
|
37
|
+
| TypewriterText | 打字机组件 |
|
|
36
38
|
|
|
37
39
|
### 模态框组件
|
|
38
40
|
|
|
@@ -54,6 +56,7 @@
|
|
|
54
56
|
| SignaturePad | 签名板组件 |
|
|
55
57
|
| RndDrag | 可拖拽调整大小组件 |
|
|
56
58
|
| RCropper | 图片裁剪组件 |
|
|
59
|
+
| CRUD | CRUD 组件 |
|
|
57
60
|
|
|
58
61
|
## 🚀 安装
|
|
59
62
|
|
|
@@ -106,27 +109,32 @@ const App = () => {
|
|
|
106
109
|
const onFinish = (values) => {
|
|
107
110
|
console.log('表单值:', values);
|
|
108
111
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
112
|
+
const items = [
|
|
113
|
+
{
|
|
114
|
+
label: '用户名',
|
|
115
|
+
name: 'username',
|
|
116
|
+
rules: [{ required: true, message: '请输入用户名' }],
|
|
117
|
+
renderType: 'input',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: '状态',
|
|
121
|
+
name: 'status',
|
|
122
|
+
rules: [{ required: true, message: '请选择状态' }],
|
|
123
|
+
renderType: 'select',
|
|
124
|
+
options: [
|
|
125
|
+
{ label: '启用', value: 1 },
|
|
126
|
+
{ label: '禁用', value: 0 },
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: '提交',
|
|
131
|
+
renderType: 'button',
|
|
132
|
+
type: 'primary',
|
|
133
|
+
htmlType: 'submit',
|
|
134
|
+
},
|
|
135
|
+
];
|
|
136
|
+
|
|
137
|
+
return <DForm onFinish={onFinish} items={items}></DForm>;
|
|
130
138
|
};
|
|
131
139
|
|
|
132
140
|
export default App;
|
|
@@ -138,7 +146,7 @@ export default App;
|
|
|
138
146
|
|
|
139
147
|
## ⚙️ 环境支持
|
|
140
148
|
|
|
141
|
-
- React
|
|
149
|
+
- React < 18
|
|
142
150
|
- Ant Design <= 4.24.16
|
|
143
151
|
- Node >= 16.20.0
|
|
144
152
|
- Modern browsers
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FProps } from './interface';
|
|
2
|
-
import './styles/index.less';
|
|
3
|
-
declare const _default: (props: FProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default _default;
|
|
1
|
+
import { FProps } from './interface';
|
|
2
|
+
import './styles/index.less';
|
|
3
|
+
declare const _default: (props: FProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FilterProps } from './interface';
|
|
3
|
-
import './styles/index.less';
|
|
4
|
-
declare const AdvancedFilter: React.FC<FilterProps>;
|
|
5
|
-
export default AdvancedFilter;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterProps } from './interface';
|
|
3
|
+
import './styles/index.less';
|
|
4
|
+
declare const AdvancedFilter: React.FC<FilterProps>;
|
|
5
|
+
export default AdvancedFilter;
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export interface FormItem {
|
|
4
|
-
/**
|
|
5
|
-
* @description 筛选项label文字
|
|
6
|
-
*/
|
|
7
|
-
label?: string;
|
|
8
|
-
/**
|
|
9
|
-
* @description 筛选项字段名
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* @description 筛选项类型
|
|
14
|
-
*/
|
|
15
|
-
type: FormItemType;
|
|
16
|
-
/**
|
|
17
|
-
* @description 筛选项placeholder
|
|
18
|
-
*/
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
/**
|
|
21
|
-
* @description 筛选项的配置项(select|treeSelect时可用)
|
|
22
|
-
*/
|
|
23
|
-
options?: any[];
|
|
24
|
-
/**
|
|
25
|
-
* @description 筛选项的格式化配置(rangePicker|datePicker时可用)
|
|
26
|
-
*/
|
|
27
|
-
format?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface FormProps {
|
|
30
|
-
/**
|
|
31
|
-
* @description 筛选项配置
|
|
32
|
-
*/
|
|
33
|
-
formItemConfig: FormItem[];
|
|
34
|
-
/**
|
|
35
|
-
* @description 筛选项值变更时触发
|
|
36
|
-
*/
|
|
37
|
-
onValuesChange?: (_values: any) => void;
|
|
38
|
-
/**
|
|
39
|
-
* @description 点击查询按钮时触发
|
|
40
|
-
*/
|
|
41
|
-
onSearch?: (_v: any) => void;
|
|
42
|
-
/**
|
|
43
|
-
* @description 点击重置按钮时触发
|
|
44
|
-
*/
|
|
45
|
-
onReset?: () => void;
|
|
46
|
-
}
|
|
47
|
-
export interface FProps extends FormProps {
|
|
48
|
-
/**
|
|
49
|
-
* @description 显示查询/重置按钮
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
showButton?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* @description 筛选项表单的Ref
|
|
55
|
-
*/
|
|
56
|
-
formRef?: any;
|
|
57
|
-
}
|
|
58
|
-
export interface InputProps {
|
|
59
|
-
/**
|
|
60
|
-
* @description input检索框placeholder
|
|
61
|
-
*/
|
|
62
|
-
placeholder?: string;
|
|
63
|
-
/**
|
|
64
|
-
* @description input检索框字段名
|
|
65
|
-
*/
|
|
66
|
-
name: string;
|
|
67
|
-
/**
|
|
68
|
-
* @description input检索框回车时或点击检索图标时触发
|
|
69
|
-
*/
|
|
70
|
-
inputSearch?: (_v: any) => void;
|
|
71
|
-
}
|
|
72
|
-
export interface FilterProps extends FormProps {
|
|
73
|
-
/**
|
|
74
|
-
* @description 左侧渲染区
|
|
75
|
-
*/
|
|
76
|
-
left?: React.ReactNode;
|
|
77
|
-
/**
|
|
78
|
-
* @description 右侧渲染区
|
|
79
|
-
*/
|
|
80
|
-
right?: React.ReactNode;
|
|
81
|
-
/**
|
|
82
|
-
* @description input检索框props
|
|
83
|
-
*/
|
|
84
|
-
inputProps: InputProps;
|
|
85
|
-
/**
|
|
86
|
-
* @description children
|
|
87
|
-
*/
|
|
88
|
-
children?: React.ReactNode;
|
|
89
|
-
/**
|
|
90
|
-
* @description 表单引用ref值
|
|
91
|
-
*/
|
|
92
|
-
fRef?: any;
|
|
93
|
-
/**
|
|
94
|
-
* @description 筛选文字按钮图标
|
|
95
|
-
*/
|
|
96
|
-
icon?: React.ReactNode;
|
|
97
|
-
}
|
|
98
|
-
export
|
|
99
|
-
export
|
|
100
|
-
export
|
|
101
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type FormItemType = 'input' | 'inputNumber' | 'radio' | 'select' | 'checkbox' | 'datePicker' | 'rangePicker' | 'switch' | 'treeSelect';
|
|
3
|
+
export interface FormItem {
|
|
4
|
+
/**
|
|
5
|
+
* @description 筛选项label文字
|
|
6
|
+
*/
|
|
7
|
+
label?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @description 筛选项字段名
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* @description 筛选项类型
|
|
14
|
+
*/
|
|
15
|
+
type: FormItemType;
|
|
16
|
+
/**
|
|
17
|
+
* @description 筛选项placeholder
|
|
18
|
+
*/
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @description 筛选项的配置项(select|treeSelect时可用)
|
|
22
|
+
*/
|
|
23
|
+
options?: any[];
|
|
24
|
+
/**
|
|
25
|
+
* @description 筛选项的格式化配置(rangePicker|datePicker时可用)
|
|
26
|
+
*/
|
|
27
|
+
format?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface FormProps {
|
|
30
|
+
/**
|
|
31
|
+
* @description 筛选项配置
|
|
32
|
+
*/
|
|
33
|
+
formItemConfig: FormItem[];
|
|
34
|
+
/**
|
|
35
|
+
* @description 筛选项值变更时触发
|
|
36
|
+
*/
|
|
37
|
+
onValuesChange?: (_values: any) => void;
|
|
38
|
+
/**
|
|
39
|
+
* @description 点击查询按钮时触发
|
|
40
|
+
*/
|
|
41
|
+
onSearch?: (_v: any) => void;
|
|
42
|
+
/**
|
|
43
|
+
* @description 点击重置按钮时触发
|
|
44
|
+
*/
|
|
45
|
+
onReset?: () => void;
|
|
46
|
+
}
|
|
47
|
+
export interface FProps extends FormProps {
|
|
48
|
+
/**
|
|
49
|
+
* @description 显示查询/重置按钮
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
showButton?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @description 筛选项表单的Ref
|
|
55
|
+
*/
|
|
56
|
+
formRef?: any;
|
|
57
|
+
}
|
|
58
|
+
export interface InputProps {
|
|
59
|
+
/**
|
|
60
|
+
* @description input检索框placeholder
|
|
61
|
+
*/
|
|
62
|
+
placeholder?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @description input检索框字段名
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
* @description input检索框回车时或点击检索图标时触发
|
|
69
|
+
*/
|
|
70
|
+
inputSearch?: (_v: any) => void;
|
|
71
|
+
}
|
|
72
|
+
export interface FilterProps extends FormProps {
|
|
73
|
+
/**
|
|
74
|
+
* @description 左侧渲染区
|
|
75
|
+
*/
|
|
76
|
+
left?: React.ReactNode;
|
|
77
|
+
/**
|
|
78
|
+
* @description 右侧渲染区
|
|
79
|
+
*/
|
|
80
|
+
right?: React.ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* @description input检索框props
|
|
83
|
+
*/
|
|
84
|
+
inputProps: InputProps;
|
|
85
|
+
/**
|
|
86
|
+
* @description children
|
|
87
|
+
*/
|
|
88
|
+
children?: React.ReactNode;
|
|
89
|
+
/**
|
|
90
|
+
* @description 表单引用ref值
|
|
91
|
+
*/
|
|
92
|
+
fRef?: any;
|
|
93
|
+
/**
|
|
94
|
+
* @description 筛选文字按钮图标
|
|
95
|
+
*/
|
|
96
|
+
icon?: React.ReactNode;
|
|
97
|
+
}
|
|
98
|
+
export type AdvancedFilterProps = FilterProps;
|
|
99
|
+
export type FormFilterProps = FProps;
|
|
100
|
+
export type FotmItemProps = FormItem;
|
|
101
|
+
export type InputSearchProps = InputProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IAnimatedScrollListProps } from './interface';
|
|
3
|
-
import './styles/index.less';
|
|
4
|
-
declare function AnimatedScrollList(props: IAnimatedScrollListProps): JSX.Element;
|
|
5
|
-
export type { AnimatedScrollListProps } from './interface';
|
|
6
|
-
declare const _default: React.MemoExoticComponent<typeof AnimatedScrollList>;
|
|
7
|
-
export default _default;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IAnimatedScrollListProps } from './interface';
|
|
3
|
+
import './styles/index.less';
|
|
4
|
+
declare function AnimatedScrollList(props: IAnimatedScrollListProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export type { AnimatedScrollListProps } from './interface';
|
|
6
|
+
declare const _default: React.MemoExoticComponent<typeof AnimatedScrollList>;
|
|
7
|
+
export default _default;
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export interface IAnimatedScrollListProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 滚动方向
|
|
6
|
-
* @default 'up'
|
|
7
|
-
*/
|
|
8
|
-
direction?: ScrollDirection;
|
|
9
|
-
/**
|
|
10
|
-
* @description 滚动速度,单位 px/s
|
|
11
|
-
* @default 50
|
|
12
|
-
*/
|
|
13
|
-
speed?: number;
|
|
14
|
-
/**
|
|
15
|
-
* @description 是否在鼠标悬停时暂停滚动
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
hoverStop?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @description 是否自动开始滚动
|
|
21
|
-
* @default true
|
|
22
|
-
*/
|
|
23
|
-
autoStart?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @description 容器高度(垂直滚动时)或宽度(水平滚动时)
|
|
26
|
-
*/
|
|
27
|
-
containerHeight?: number | string;
|
|
28
|
-
/**
|
|
29
|
-
* @description 容器宽度(水平滚动时)或高度(垂直滚动时)
|
|
30
|
-
*/
|
|
31
|
-
containerWidth?: number | string;
|
|
32
|
-
/**
|
|
33
|
-
* @description 列表数据
|
|
34
|
-
*/
|
|
35
|
-
data: any[];
|
|
36
|
-
/**
|
|
37
|
-
* @description 渲染列表项的方法
|
|
38
|
-
* @param item 列表项数据
|
|
39
|
-
* @param index 索引
|
|
40
|
-
* @returns React.ReactNode
|
|
41
|
-
*/
|
|
42
|
-
renderItem: (_item: any, _index: number) => React.ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* @description 列表项的唯一标识字段,用于 key
|
|
45
|
-
* @default 'id'
|
|
46
|
-
*/
|
|
47
|
-
itemKey?: string | ((_item: any, _index: number) => string | number);
|
|
48
|
-
/**
|
|
49
|
-
* @description 自定义类名
|
|
50
|
-
*/
|
|
51
|
-
className?: string;
|
|
52
|
-
/**
|
|
53
|
-
* @description 自定义样式
|
|
54
|
-
*/
|
|
55
|
-
style?: React.CSSProperties;
|
|
56
|
-
/**
|
|
57
|
-
* @description 是否显示滚动条
|
|
58
|
-
* @default false
|
|
59
|
-
*/
|
|
60
|
-
showScrollbar?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* @description 当列表项数量不足一屏时是否仍然滚动
|
|
63
|
-
* @default false
|
|
64
|
-
*/
|
|
65
|
-
scrollWhenInsufficient?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* @description 表头内容,传入后表头固定,内容区域自动滚动
|
|
68
|
-
*/
|
|
69
|
-
header?: React.ReactNode;
|
|
70
|
-
}
|
|
71
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ScrollDirection = 'up' | 'down' | 'left' | 'right';
|
|
3
|
+
export interface IAnimatedScrollListProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description 滚动方向
|
|
6
|
+
* @default 'up'
|
|
7
|
+
*/
|
|
8
|
+
direction?: ScrollDirection;
|
|
9
|
+
/**
|
|
10
|
+
* @description 滚动速度,单位 px/s
|
|
11
|
+
* @default 50
|
|
12
|
+
*/
|
|
13
|
+
speed?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @description 是否在鼠标悬停时暂停滚动
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
hoverStop?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @description 是否自动开始滚动
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
autoStart?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @description 容器高度(垂直滚动时)或宽度(水平滚动时)
|
|
26
|
+
*/
|
|
27
|
+
containerHeight?: number | string;
|
|
28
|
+
/**
|
|
29
|
+
* @description 容器宽度(水平滚动时)或高度(垂直滚动时)
|
|
30
|
+
*/
|
|
31
|
+
containerWidth?: number | string;
|
|
32
|
+
/**
|
|
33
|
+
* @description 列表数据
|
|
34
|
+
*/
|
|
35
|
+
data: any[];
|
|
36
|
+
/**
|
|
37
|
+
* @description 渲染列表项的方法
|
|
38
|
+
* @param item 列表项数据
|
|
39
|
+
* @param index 索引
|
|
40
|
+
* @returns React.ReactNode
|
|
41
|
+
*/
|
|
42
|
+
renderItem: (_item: any, _index: number) => React.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* @description 列表项的唯一标识字段,用于 key
|
|
45
|
+
* @default 'id'
|
|
46
|
+
*/
|
|
47
|
+
itemKey?: string | ((_item: any, _index: number) => string | number);
|
|
48
|
+
/**
|
|
49
|
+
* @description 自定义类名
|
|
50
|
+
*/
|
|
51
|
+
className?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @description 自定义样式
|
|
54
|
+
*/
|
|
55
|
+
style?: React.CSSProperties;
|
|
56
|
+
/**
|
|
57
|
+
* @description 是否显示滚动条
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
showScrollbar?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @description 当列表项数量不足一屏时是否仍然滚动
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
scrollWhenInsufficient?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @description 表头内容,传入后表头固定,内容区域自动滚动
|
|
68
|
+
*/
|
|
69
|
+
header?: React.ReactNode;
|
|
70
|
+
}
|
|
71
|
+
export type AnimatedScrollListProps = IAnimatedScrollListProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface AspectRatioProps {
|
|
3
|
-
ratio?: number;
|
|
4
|
-
className?: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
}
|
|
8
|
-
declare function AspectRatio({ ratio, className, children, style }: AspectRatioProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default AspectRatio;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AspectRatioProps {
|
|
3
|
+
ratio?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare function AspectRatio({ ratio, className, children, style }: AspectRatioProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AspectRatio;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IAuthComponentProps } from './interface';
|
|
2
|
-
declare const AuthComponent: ({ value, noAuthContent, children, authList, fieldName }: IAuthComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default AuthComponent;
|
|
1
|
+
import { IAuthComponentProps } from './interface';
|
|
2
|
+
declare const AuthComponent: ({ value, noAuthContent, children, authList, fieldName }: IAuthComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default AuthComponent;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface IAuthComponentProps {
|
|
3
|
-
/**
|
|
4
|
-
* @description 权限值
|
|
5
|
-
*/
|
|
6
|
-
value: string | number | boolean;
|
|
7
|
-
/**
|
|
8
|
-
* @description 权限列表中的字段名称
|
|
9
|
-
*/
|
|
10
|
-
fieldName?: string;
|
|
11
|
-
/**
|
|
12
|
-
* @description 权限列表数据
|
|
13
|
-
*/
|
|
14
|
-
authList: any[];
|
|
15
|
-
/**
|
|
16
|
-
* @description 无权限时显示的内容
|
|
17
|
-
*/
|
|
18
|
-
noAuthContent?: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* @description 有权限时显示的内容
|
|
21
|
-
*/
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
}
|
|
24
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IAuthComponentProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 权限值
|
|
5
|
+
*/
|
|
6
|
+
value: string | number | boolean;
|
|
7
|
+
/**
|
|
8
|
+
* @description 权限列表中的字段名称
|
|
9
|
+
*/
|
|
10
|
+
fieldName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @description 权限列表数据
|
|
13
|
+
*/
|
|
14
|
+
authList: any[];
|
|
15
|
+
/**
|
|
16
|
+
* @description 无权限时显示的内容
|
|
17
|
+
*/
|
|
18
|
+
noAuthContent?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* @description 有权限时显示的内容
|
|
21
|
+
*/
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export type AuthComponentProps = IAuthComponentProps;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RedoOutlined, SearchOutlined } from '@ant-design/icons';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
export var SearchButtons = [{
|
|
4
|
+
label: '搜索',
|
|
5
|
+
renderType: 'button',
|
|
6
|
+
icon: /*#__PURE__*/_jsx(SearchOutlined, {}),
|
|
7
|
+
type: 'primary',
|
|
8
|
+
htmlType: 'submit',
|
|
9
|
+
style: {
|
|
10
|
+
marginBottom: 24,
|
|
11
|
+
marginRight: 16
|
|
12
|
+
}
|
|
13
|
+
}, {
|
|
14
|
+
label: '重置',
|
|
15
|
+
renderType: 'button',
|
|
16
|
+
icon: /*#__PURE__*/_jsx(RedoOutlined, {}),
|
|
17
|
+
htmlType: 'reset',
|
|
18
|
+
style: {
|
|
19
|
+
marginBottom: 24
|
|
20
|
+
}
|
|
21
|
+
}];
|