@pointcloud/pcloud-components 0.1.29 → 0.1.31
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 +107 -302
- package/dist/esm/AnimatedScrollList/index.d.ts +7 -0
- package/dist/esm/AnimatedScrollList/index.js +322 -0
- package/dist/esm/AnimatedScrollList/interface.d.ts +71 -0
- package/dist/esm/AnimatedScrollList/interface.js +1 -0
- package/dist/esm/AnimatedScrollList/styles/index.less +22 -0
- package/dist/esm/ConfigProvider/index.d.ts +1 -1
- package/dist/esm/ConfigProvider/index.js +21 -4
- package/dist/esm/ConfigProvider/interface.d.ts +2 -4
- package/dist/esm/OrgTree/index.d.ts +5 -0
- package/dist/esm/OrgTree/index.js +58 -0
- package/dist/esm/OrgTree/index.less +15 -0
- package/dist/esm/OrgTree/interface.d.ts +39 -0
- package/dist/esm/OrgTree/interface.js +1 -0
- package/dist/esm/index.d.ts +4 -0
- 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 +112 -110
- package/README_USER.md +0 -133
package/README.md
CHANGED
|
@@ -1,339 +1,144 @@
|
|
|
1
|
-
# pcloud-components
|
|
1
|
+
# @pointcloud/pcloud-components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://npmjs.org/package/@pointcloud/pcloud-components)
|
|
4
|
+
[](https://npmjs.org/package/@pointcloud/pcloud-components)
|
|
5
|
+
[](https://npmjs.org/package/@pointcloud/pcloud-components)
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
该项目已经发布到 [npm](https://www.npmjs.com/package/@pointcloud/pcloud-components)仓库。
|
|
7
|
+
一套基于 Ant Design v4.24.16 和 React v17.0.2 开发的业务组件库,包含 30+ 个高质量组件,可帮助您快速构建企业级中后台产品原型。
|
|
7
8
|
|
|
8
|
-
##
|
|
9
|
+
## 🎁 组件列表
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
# 安装依赖
|
|
12
|
-
npm i @pointcloud/pcloud-components or yarn add @pointcloud/pcloud-components
|
|
13
|
-
|
|
14
|
-
# 引入组件
|
|
15
|
-
import { DCascader } from '@pointcloud/pcloud-components';
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## 推荐环境
|
|
11
|
+
### 表单组件
|
|
19
12
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
| 组件名称 | 描述 |
|
|
14
|
+
| ----------- | ----------------------------------- |
|
|
15
|
+
| DForm | 基于 Ant Design Form 的增强表单组件 |
|
|
16
|
+
| DInput | 增强版输入框组件 |
|
|
17
|
+
| DSelect | 支持异步加载的下拉选择组件 |
|
|
18
|
+
| DCascader | 支持异步加载的级联选择组件 |
|
|
19
|
+
| DTreeSelect | 支持异步加载的树选择组件 |
|
|
20
|
+
| DUpload | 文件上传组件 |
|
|
21
|
+
| ColorPicker | 颜色选择器组件 |
|
|
26
22
|
|
|
27
|
-
|
|
28
|
-
📁pcloud-components
|
|
29
|
-
├─ 📁.dumi # api站点相关目录,例如全局样式、全局脚本、站点主题、自定义组件等
|
|
30
|
-
│ ├─ 📁tmp # dumi运行时目录
|
|
31
|
-
│ └─ 📄global.less # 全局样式
|
|
32
|
-
├─ 📁.husky # 代码提交相关配置
|
|
33
|
-
├─ 📁docker # docker部署相关文件
|
|
34
|
-
│ └─ 📄nginx.conf # nginx配置
|
|
35
|
-
├─ 📁scripts # 全局脚本目录
|
|
36
|
-
│ ├─ 📄clean-tmp.js # 清除.dumi目录下自动生成的tmp目录
|
|
37
|
-
│ └─ 📄source-replace-loader.js # 用于解决第三方主题antd版本冲突的webpack loader
|
|
38
|
-
├─ 📁docs # 文档目录,适用于普通文档生成路由,详见dumi官方介绍
|
|
39
|
-
│ ├─ 📁components # 组件库页面的文档
|
|
40
|
-
│ ├─ 📄guide.zh-CN.md # 指南页面的文档
|
|
41
|
-
│ └─ 📄index.zh-CN.md # 首页页面的文档
|
|
42
|
-
├─ 📁docs-dist # 组件文档目录
|
|
43
|
-
├─ 📁public # 站点的静态资源目录
|
|
44
|
-
├─ 📁src # 组件目录
|
|
45
|
-
│ ├─ 📁DCascader # 组件1
|
|
46
|
-
│ ├─ 📁DForm # 组件2
|
|
47
|
-
│ ...... # 组件n
|
|
48
|
-
│ └─ 📄index.ts # 组件导出配置
|
|
49
|
-
├─ 📄.dumirc.ts # dumi 的配置文件
|
|
50
|
-
├─ 📄.fatherrc.ts # father 的配置文件,用于组件库打包
|
|
51
|
-
├─ 📄.eslintrc.js # eslint插件配置
|
|
52
|
-
├─ 📄.release-it.js # release-it配置
|
|
53
|
-
├─ 📄.prettierrc.js # prettier插件配置
|
|
54
|
-
├─ 📄.stylelintrc # stylelint插件配置
|
|
55
|
-
└─ 📄tsconfig.json # ts相关配置
|
|
56
|
-
```
|
|
23
|
+
### 数据展示组件
|
|
57
24
|
|
|
58
|
-
|
|
25
|
+
| 组件名称 | 描述 |
|
|
26
|
+
| ------------------ | ---------------- |
|
|
27
|
+
| DTable | 增强版表格组件 |
|
|
28
|
+
| LabelValue | 标签值展示组件 |
|
|
29
|
+
| WordCloud | 词云组件 |
|
|
30
|
+
| ScrollNumber | 数字滚动动画组件 |
|
|
31
|
+
| AspectRatio | 宽高比容器组件 |
|
|
32
|
+
| NoData | 无数据展示组件 |
|
|
33
|
+
| IPAddress | IP 地址输入组件 |
|
|
34
|
+
| AnimatedScrollList | 动画滚动列表组件 |
|
|
35
|
+
| OrgTree | 组织树组件 |
|
|
59
36
|
|
|
60
|
-
|
|
37
|
+
### 模态框组件
|
|
61
38
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
│ ├─ 📄index.zh-CN.md # 组件文档
|
|
68
|
-
│ └─ 📁demos # 组件示例目录
|
|
69
|
-
│ ├─ 📄basicDemo.tsx
|
|
70
|
-
│ ├─ 📄loadChildrenDemo.tsx
|
|
71
|
-
│ └─ 📄loadingDemo.tsx
|
|
72
|
-
```
|
|
39
|
+
| 组件名称 | 描述 |
|
|
40
|
+
| --------- | ---------------- |
|
|
41
|
+
| DModal | 增强版模态框组件 |
|
|
42
|
+
| ModalForm | 表单模态框组件 |
|
|
43
|
+
| LoginForm | 登录表单组件 |
|
|
73
44
|
|
|
74
|
-
|
|
45
|
+
### 其他业务组件
|
|
75
46
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
47
|
+
| 组件名称 | 描述 |
|
|
48
|
+
| ------------------ | ------------------ |
|
|
49
|
+
| Loading | 全局加载组件 |
|
|
50
|
+
| ContextMenu | 右键菜单组件 |
|
|
51
|
+
| AdvancedFilter | 高级筛选组件 |
|
|
52
|
+
| InfiniteScrollList | 无限滚动列表组件 |
|
|
53
|
+
| PictureCard | 图片卡片组件 |
|
|
54
|
+
| SignaturePad | 签名板组件 |
|
|
55
|
+
| RndDrag | 可拖拽调整大小组件 |
|
|
56
|
+
| RCropper | 图片裁剪组件 |
|
|
81
57
|
|
|
82
|
-
|
|
58
|
+
## 🚀 安装
|
|
83
59
|
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
|
|
60
|
+
```bash
|
|
61
|
+
# 使用 npm
|
|
62
|
+
npm install @pointcloud/pcloud-components
|
|
87
63
|
|
|
88
|
-
|
|
89
|
-
|
|
64
|
+
# 使用 yarn
|
|
65
|
+
yarn add @pointcloud/pcloud-components
|
|
90
66
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
// 组件主体结构
|
|
94
|
-
function InternalCascader(props: DCascaderProps, ref: React.Ref<CascaderRef>) {
|
|
95
|
-
return <div>DCascader组件</div>
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// 组件导出
|
|
99
|
-
const DCascader = forwardRef(InternalCascader);
|
|
100
|
-
export default DCascader;
|
|
67
|
+
# 使用 pnpm
|
|
68
|
+
pnpm add @pointcloud/pcloud-components
|
|
101
69
|
```
|
|
102
70
|
|
|
103
|
-
|
|
71
|
+
## 🔨 快速开始
|
|
104
72
|
|
|
105
|
-
|
|
73
|
+
通过 umd 引入时,需要先引入`react`和`react-dom`, 示例:
|
|
106
74
|
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
|
|
75
|
+
```html
|
|
76
|
+
<link rel="stylesheet" href="https://unpkg.com/@pointcloud/pcloud-components@0.1.30/dist/umd/pcloud-components.min.css" />
|
|
77
|
+
<script src="https://unpkg.com/react@17.0.2/umd/react.production.min.js"></script>
|
|
78
|
+
<script src="https://unpkg.com/react-dom@17.0.2/umd/react-dom.production.min.js"></script>
|
|
79
|
+
<script src="https://unpkg.com/@pointcloud/pcloud-components@0.1.30/dist/umd/pcloud-components.min.js"></script>
|
|
110
80
|
```
|
|
111
81
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
```javascripta
|
|
115
|
-
import { useEffect, useState } from 'react';
|
|
116
|
-
// 使用当前组件库的别名路径而不是相对路径
|
|
117
|
-
import { DCascader } from '@pointcloud/pcloud-components'; // 正确示例
|
|
118
|
-
// import DCascader from '../index'; // 错误示例
|
|
119
|
-
const getRegionData = () => {
|
|
120
|
-
return new Promise<{ provinceList: any[]; cityList: any[]; countyList: any[] }>((resolve) => {
|
|
121
|
-
async function exec() {
|
|
122
|
-
// 体积较大的静态资源文件从public/mock下引入
|
|
123
|
-
const bodyProvince = await fetch('/mock/dcascader/china_region_province.json');
|
|
124
|
-
const provinceList = await bodyProvince.json();
|
|
125
|
-
const bodyCity = await fetch('/mock/dcascader/china_region_city.json');
|
|
126
|
-
const cityList = await bodyCity.json();
|
|
127
|
-
const bodyCounty = await fetch('/mock/dcascader/china_region_county.json');
|
|
128
|
-
const countyList = await bodyCounty.json();
|
|
129
|
-
resolve({ provinceList, cityList, countyList });
|
|
130
|
-
}
|
|
131
|
-
exec();
|
|
132
|
-
});
|
|
133
|
-
};
|
|
82
|
+
### 1. 基础使用
|
|
134
83
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
cityList: any[];
|
|
139
|
-
countyList: any[];
|
|
140
|
-
}>({ provinceList: [], cityList: [], countyList: [] });
|
|
141
|
-
|
|
142
|
-
const getOptionsAsync = (value, option): Promise<Array<{ value: string; label: string }>> => {
|
|
143
|
-
return new Promise((resolve) => {
|
|
144
|
-
const { provinceList, cityList, countyList } = regionData;
|
|
145
|
-
let options;
|
|
146
|
-
if (option) {
|
|
147
|
-
const listMap = { province: cityList, city: countyList };
|
|
148
|
-
const codeMap = { province: 'provinceCode', city: 'cityCode' };
|
|
149
|
-
const { level, code } = option;
|
|
150
|
-
const list = listMap[level]?.filter((item) => item[codeMap[level]] === code);
|
|
151
|
-
options = list?.map((item) => ({
|
|
152
|
-
...item,
|
|
153
|
-
value: item.code,
|
|
154
|
-
label: item.name,
|
|
155
|
-
isLeaf: item.level === 'county',
|
|
156
|
-
}));
|
|
157
|
-
} else {
|
|
158
|
-
options = provinceList.map((item) => ({
|
|
159
|
-
...item,
|
|
160
|
-
label: item.name,
|
|
161
|
-
value: item.code,
|
|
162
|
-
isLeaf: false,
|
|
163
|
-
}));
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
resolve(options);
|
|
167
|
-
});
|
|
168
|
-
};
|
|
84
|
+
```jsx
|
|
85
|
+
import React from 'react';
|
|
86
|
+
import { DCascader } from '@pointcloud/pcloud-components';
|
|
169
87
|
|
|
170
|
-
|
|
171
|
-
|
|
88
|
+
const App = () => {
|
|
89
|
+
const handleChange = (value, selectedOptions) => {
|
|
90
|
+
console.log(value, selectedOptions);
|
|
172
91
|
};
|
|
173
92
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}, []);
|
|
177
|
-
|
|
178
|
-
return <DCascader options={getOptionsAsync} showSearch onChange={onChange} />;
|
|
179
|
-
}
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
##### 组件文档的编写
|
|
183
|
-
|
|
184
|
-
组件文档使用 markdown 格式编写, 所有 Markdown 配置均以 FrontMatter 的形式配置在 Markdown 文件顶端,具体用法请参照 dumi 官方介绍, 对于开发的组件,应至少包含以下结构:
|
|
185
|
-
|
|
186
|
-
- 组件介绍(一个二级标题,包含组件的基本说明)
|
|
187
|
-
- 组件示例(若干二级标题,每个标题代表一个示例)
|
|
188
|
-
- API 文档(一个二级标题,命名为 API,以表格形式列出所有可用的 api)
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
---
|
|
192
|
-
title: DCascader
|
|
193
|
-
description: 基于 antd 4.24.10 Cascader 的二次封装组件
|
|
194
|
-
tocDepth: 2
|
|
195
|
-
nav:
|
|
196
|
-
title: 组件
|
|
197
|
-
path: /components
|
|
198
|
-
group:
|
|
199
|
-
title: 表单
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
## 组件特性
|
|
203
|
-
|
|
204
|
-
- options、loadData 均支持传入异步函数,在 From 表单组件中使用更方便
|
|
205
|
-
- 加载选项列表时可以显示加载中效果
|
|
206
|
-
- 本地搜索时默认匹配 label 字段
|
|
207
|
-
- 文本框与下拉面板同宽
|
|
208
|
-
|
|
209
|
-
## 基础用法
|
|
210
|
-
|
|
211
|
-
<code src="./demos/basicDemo.tsx" title="示例标题" description="示例说明"></code>
|
|
212
|
-
|
|
213
|
-
## 动态加载子级列表
|
|
214
|
-
|
|
215
|
-
<code src="./demos/loadChildrenDemo.tsx" title="示例标题" description="示例说明"></code>
|
|
216
|
-
|
|
217
|
-
## 显示加载中
|
|
218
|
-
|
|
219
|
-
<code src="./demos/loadingDemo.tsx" title="示例标题" description="示例说明"></code>
|
|
220
|
-
|
|
221
|
-
## API
|
|
222
|
-
|
|
223
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
224
|
-
| :-- | :-- | :-- | :---- | :--- |
|
|
225
|
-
| api1 | api1说明 | api1类型 | api1默认值 | api1版本 |
|
|
226
|
-
| api2 | api2说明 | api2类型 | api2默认值 | api2版本 |
|
|
227
|
-
| api3 | api3说明 | api3类型 | api3默认值 | api3版本 |
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
## 代码风格及提交规范
|
|
231
|
-
|
|
232
|
-
##### vscode 插件
|
|
233
|
-
|
|
234
|
-
为保证团队风格的一致,推荐在编辑器中安装以下插件,项目中已包含相应插件的配置,如无必要,请勿修改配置
|
|
235
|
-
|
|
236
|
-
| 插件名称 | 插件说明 |
|
|
237
|
-
| --------- | ---------------- |
|
|
238
|
-
| ESLint | js 代码检查工具 |
|
|
239
|
-
| Stylelint | css 样式检查工具 |
|
|
240
|
-
| Prettier | 代码格式化工具 |
|
|
241
|
-
| GitLens | 代码提交插件 |
|
|
242
|
-
|
|
243
|
-
##### 代码检查与格式化
|
|
244
|
-
|
|
245
|
-
由于项目已经包含 husky,每次提交前都会自动进行 lint 检查及代码格式化,如果检查不通过则会拒绝提交。代码提交时应当确保已经消除了所有 lint 错误,并尽量处理 lint 警告。lint 检查也可以手动执行,命令如下:
|
|
246
|
-
|
|
247
|
-
```
|
|
248
|
-
npm run lint // 同时检查js与css
|
|
249
|
-
|
|
250
|
-
npm run lint:es // 只检查js
|
|
251
|
-
|
|
252
|
-
npm run lint:css // 只检查css
|
|
253
|
-
|
|
254
|
-
npm run prettier // 执行代码格式化
|
|
255
|
-
|
|
256
|
-
npm run doctor // 执行依赖检查
|
|
93
|
+
return <DCascader showSearch placeholder="请选择" onChange={handleChange} />;
|
|
94
|
+
};
|
|
257
95
|
|
|
96
|
+
export default App;
|
|
258
97
|
```
|
|
259
98
|
|
|
260
|
-
|
|
99
|
+
### 2. 使用表单组件
|
|
261
100
|
|
|
262
|
-
|
|
101
|
+
```jsx
|
|
102
|
+
import React from 'react';
|
|
103
|
+
import { DForm, DInput, DSelect } from '@pointcloud/pcloud-components';
|
|
263
104
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
| docs | 文档更新 |
|
|
269
|
-
| style | 不影响程序逻辑的代码修改(修改空白字符,补全缺失的分号等) |
|
|
270
|
-
| refactor | 重构代码(既没有新增功能,也没有修复 bug) |
|
|
271
|
-
| perf | 性能优化 |
|
|
272
|
-
| test | 新增测试用例或是更新现有测试 |
|
|
273
|
-
| build | 主要目的是修改项目构建系统(例如 glup,webpack,rollup 的配置等)的提交 |
|
|
274
|
-
| ci | 主要目的是修改项目集成流程(例如 Travis,Jenkins,GitLab CI,Circle 等)的提交 |
|
|
275
|
-
| chore | 不属于以上类型的其他类型(日常事务) |
|
|
276
|
-
| revert | 回滚某个更早之前的提交 |
|
|
105
|
+
const App = () => {
|
|
106
|
+
const onFinish = (values) => {
|
|
107
|
+
console.log('表单值:', values);
|
|
108
|
+
};
|
|
277
109
|
|
|
278
|
-
|
|
279
|
-
|
|
110
|
+
return (
|
|
111
|
+
<DForm onFinish={onFinish}>
|
|
112
|
+
<DForm.Item label="用户名" name="username">
|
|
113
|
+
<DInput placeholder="请输入用户名" />
|
|
114
|
+
</DForm.Item>
|
|
115
|
+
|
|
116
|
+
<DForm.Item label="状态" name="status">
|
|
117
|
+
<DSelect
|
|
118
|
+
options={[
|
|
119
|
+
{ label: '启用', value: 1 },
|
|
120
|
+
{ label: '禁用', value: 0 },
|
|
121
|
+
]}
|
|
122
|
+
/>
|
|
123
|
+
</DForm.Item>
|
|
124
|
+
|
|
125
|
+
<DForm.Item>
|
|
126
|
+
<button type="submit">提交</button>
|
|
127
|
+
</DForm.Item>
|
|
128
|
+
</DForm>
|
|
129
|
+
);
|
|
130
|
+
};
|
|
280
131
|
|
|
281
|
-
|
|
132
|
+
export default App;
|
|
282
133
|
```
|
|
283
134
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
## 调试与发布
|
|
287
|
-
|
|
288
|
-
##### 在测试项目中调试
|
|
289
|
-
|
|
290
|
-
1. 在当前项目中通过 link 命令将当前包链接到全局
|
|
291
|
-
|
|
292
|
-
```
|
|
293
|
-
cd pui-components
|
|
294
|
-
npm link // 将当前包链接到全局
|
|
295
|
-
// npm unlink // 调试完成后解除链接
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
2. 在测试项目中链接当前包
|
|
299
|
-
|
|
300
|
-
```
|
|
301
|
-
cd test-project
|
|
302
|
-
npm link @pointcloud/pcloud-components
|
|
303
|
-
// npm unlink --no-save package && npm install // 调试完成后解除链接
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
3. docker 推送镜像
|
|
307
|
-
|
|
308
|
-
```
|
|
309
|
-
// 推送镜像之前需要先登录,并修改package.json-->scripts中对应docker的配置
|
|
310
|
-
npm run push
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
##### 发布项目
|
|
314
|
-
|
|
315
|
-
1. 前置工作
|
|
316
|
-
|
|
317
|
-
- 执行 `npm whoami` 查看当前用户是否已经登录,如果未登录则执行 `npm login`
|
|
318
|
-
|
|
319
|
-
- 检查 `package.json` 中的 NPM 包名及 `publishConfig` 是否符合预期
|
|
320
|
-
|
|
321
|
-
2. release 发布
|
|
322
|
-
|
|
323
|
-
使用 release-it 可以根据 [release-it 配置](https://github.com/release-it/release-it/blob/main/config/release-it.json) 自动完成发布前的准备工作,包括:更新版本号、生成 tag 、更新 changelog、git 提交及推送远程仓库、npm 发布等
|
|
324
|
-
|
|
325
|
-
```
|
|
326
|
-
npm run release
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
## FAQ
|
|
330
|
-
|
|
331
|
-
1. 安装组件后, 为什么项目中的 antd 组件都是英文的?
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
- 这是因为antd的默认语言是英文,项目启动时,会自动加载中文语言包,如果项目需要使用英文,请自行在项目入口处导入英文语言包, 并使用ConfigProvider组件注入.
|
|
135
|
+
## 📖 详细文档
|
|
335
136
|
|
|
336
|
-
|
|
137
|
+
访问我们的[在线文档](https://frank17008.github.io/pcloud-components)查看完整的组件列表和使用示例。
|
|
337
138
|
|
|
139
|
+
## ⚙️ 环境支持
|
|
338
140
|
|
|
339
|
-
|
|
141
|
+
- React >= 17.0.2
|
|
142
|
+
- Ant Design <= 4.24.16
|
|
143
|
+
- Node >= 16.20.0
|
|
144
|
+
- Modern browsers
|
|
@@ -0,0 +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;
|