@creekjs/web-components 1.0.0 → 1.0.1
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 +241 -973
- package/dist/bg-center/index.d.ts +5 -0
- package/dist/creek-config-provider/CreekConfigContext.d.ts +5 -0
- package/dist/creek-config-provider/index.d.ts +9 -0
- package/dist/creek-hooks/index.d.ts +1 -0
- package/dist/creek-hooks/useViewportHeight.d.ts +31 -0
- package/dist/creek-icon/index.d.ts +11 -0
- package/dist/creek-keep-alive/index.d.ts +1 -0
- package/dist/creek-layout/CollapseButton.d.ts +9 -0
- package/dist/creek-layout/Exception/NotFound.d.ts +1 -0
- package/dist/creek-layout/Exception/NotFoundPage.d.ts +2 -0
- package/dist/creek-layout/Exception/index.d.ts +6 -0
- package/dist/creek-layout/HeaderContent/FullScreen.d.ts +6 -0
- package/dist/creek-layout/HeaderContent/UserInfo.d.ts +1 -0
- package/dist/creek-layout/HeaderContent/index.d.ts +1 -0
- package/dist/creek-layout/index.d.ts +13 -0
- package/dist/creek-loading/index.d.ts +9 -0
- package/dist/creek-search/CreekSearch.d.ts +7 -0
- package/dist/creek-search/CreekSearchContext.d.ts +54 -0
- package/dist/creek-search/CreekSearchContext.js +1 -1
- package/dist/creek-search/CreekSearchFilterDisplay.d.ts +5 -0
- package/dist/creek-search/CreekSearchInput.d.ts +4 -0
- package/dist/creek-search/CreekSearchValueSelector.d.ts +5 -0
- package/dist/creek-search/index.d.ts +5 -0
- package/dist/creek-search/type.d.ts +8 -0
- package/dist/creek-table/SearchTable.d.ts +3 -0
- package/dist/creek-table/TableOptionRender.d.ts +9 -0
- package/dist/creek-table/TableViewContent.d.ts +4 -0
- package/dist/creek-table/hooks/index.d.ts +3 -0
- package/dist/creek-table/hooks/useAdaptiveToolBar.d.ts +9 -0
- package/dist/creek-table/hooks/useAutoAddFilterToColumns.d.ts +12 -0
- package/dist/creek-table/hooks/useElementDistance.d.ts +7 -0
- package/dist/creek-table/index.d.ts +3 -0
- package/dist/creek-table/toolBarRender.d.ts +4 -0
- package/dist/creek-table/type.d.ts +19 -0
- package/dist/index.d.ts +7 -0
- package/package.json +2 -2
- package/src/creek-search/CreekSearchContext.tsx +1 -1
package/README.md
CHANGED
|
@@ -1,1026 +1,294 @@
|
|
|
1
1
|
# @creekjs/web-components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
基于 Ant Design 的业务组件库,提供开箱即用的企业级 React 组件。
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 📦 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @creekjs/web-components
|
|
9
|
-
#
|
|
10
|
-
yarn add @creekjs/web-components
|
|
11
|
-
# or
|
|
9
|
+
# 或
|
|
12
10
|
pnpm add @creekjs/web-components
|
|
11
|
+
# 或
|
|
12
|
+
yarn add @creekjs/web-components
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
##
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { /* component names */ } from '@creekjs/web-components';
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## API Reference
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### BgCenterProps
|
|
25
|
-
|
|
26
|
-
No description available
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
#### Properties
|
|
32
|
-
|
|
33
|
-
| Name | Type | Description |
|
|
34
|
-
|------|------|-------------|
|
|
35
|
-
| children | `React.ReactNode` | |
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
**Source:** `web-components/src/bg-center/index.tsx`
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### BgCenter
|
|
46
|
-
|
|
47
|
-
No description available
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
#### Properties
|
|
53
|
-
|
|
54
|
-
| Name | Type | Description |
|
|
55
|
-
|------|------|-------------|
|
|
56
|
-
| children | `React.ReactNode` | |
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
**Source:** `web-components/src/bg-center/index.tsx`
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### CreekConfigContextProps
|
|
67
|
-
|
|
68
|
-
No description available
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
#### Properties
|
|
74
|
-
|
|
75
|
-
| Name | Type | Description |
|
|
76
|
-
|------|------|-------------|
|
|
77
|
-
| iconFontCNs | `string[]` | |
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
**Source:** `web-components/src/creek-config-provider/CreekConfigContext.tsx`
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### CreekConfigContext
|
|
88
|
-
|
|
89
|
-
No description available
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
#### Properties
|
|
95
|
-
|
|
96
|
-
| Name | Type | Description |
|
|
97
|
-
|------|------|-------------|
|
|
98
|
-
| iconFontCNs | `string[]` | |
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
**Source:** `web-components/src/creek-config-provider/CreekConfigContext.tsx`
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### CreekConfigProviderProps
|
|
109
|
-
|
|
110
|
-
No description available
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
#### Properties
|
|
116
|
-
|
|
117
|
-
| Name | Type | Description |
|
|
118
|
-
|------|------|-------------|
|
|
119
|
-
| children | `React.ReactNode` | |
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
**Source:** `web-components/src/creek-config-provider/index.tsx`
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### CreekConfigProvider
|
|
130
|
-
|
|
131
|
-
No description available
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
#### Properties
|
|
137
|
-
|
|
138
|
-
| Name | Type | Description |
|
|
139
|
-
|------|------|-------------|
|
|
140
|
-
| children | `React.ReactNode` | |
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
**Source:** `web-components/src/creek-config-provider/index.tsx`
|
|
146
|
-
|
|
147
|
-
---
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
### useViewportHeight
|
|
151
|
-
|
|
152
|
-
No description available
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
**Source:** `web-components/src/creek-hooks/useViewportHeight.tsx`
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
### CreekIconProps
|
|
166
|
-
|
|
167
|
-
No description available
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
#### Properties
|
|
173
|
-
|
|
174
|
-
| Name | Type | Description |
|
|
175
|
-
|------|------|-------------|
|
|
176
|
-
| iconFontCNs | `CreekConfigProviderProps['iconFontCNs']` | |
|
|
177
|
-
| type | `string` | |
|
|
178
|
-
| component | `CustomIconComponentProps['component']` | |
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
**Source:** `web-components/src/creek-icon/index.tsx`
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### CreekIcon
|
|
189
|
-
|
|
190
|
-
No description available
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
#### Properties
|
|
196
|
-
|
|
197
|
-
| Name | Type | Description |
|
|
198
|
-
|------|------|-------------|
|
|
199
|
-
| iconFontCNs | `CreekConfigProviderProps['iconFontCNs']` | |
|
|
200
|
-
| type | `string` | |
|
|
201
|
-
| component | `CustomIconComponentProps['component']` | |
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
**Source:** `web-components/src/creek-icon/index.tsx`
|
|
207
|
-
|
|
208
|
-
---
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
### CreekKeepAlive
|
|
212
|
-
|
|
213
|
-
No description available
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
15
|
+
## 🔧 依赖
|
|
219
16
|
|
|
17
|
+
- `@ant-design/icons`: ^5.5.1
|
|
18
|
+
- `@ant-design/pro-components`: ^2.7.18
|
|
19
|
+
- `antd-style`: ^3.7.1
|
|
20
|
+
- `zustand`: ^5.0.1
|
|
220
21
|
|
|
221
|
-
|
|
22
|
+
## 📚 组件列表
|
|
222
23
|
|
|
223
|
-
|
|
24
|
+
### 🎨 布局组件
|
|
224
25
|
|
|
26
|
+
#### CreekLayout
|
|
27
|
+
企业级布局组件,提供完整的页面布局解决方案。
|
|
225
28
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
No description available
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
#### Properties
|
|
234
|
-
|
|
235
|
-
| Name | Type | Description |
|
|
236
|
-
|------|------|-------------|
|
|
237
|
-
| collapsed | `boolean` | |
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
**Source:** `web-components/src/creek-layout/CollapseButton.tsx`
|
|
243
|
-
|
|
244
|
-
---
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
### CollapsedButtonStore
|
|
248
|
-
|
|
249
|
-
No description available
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
#### Properties
|
|
255
|
-
|
|
256
|
-
| Name | Type | Description |
|
|
257
|
-
|------|------|-------------|
|
|
258
|
-
| collapsed | `boolean` | |
|
|
259
|
-
| changeCollapsed | `() => void` | |
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
**Source:** `web-components/src/creek-layout/CollapseButton.tsx`
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
### useCollapsedStore
|
|
270
|
-
|
|
271
|
-
No description available
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
**Source:** `web-components/src/creek-layout/CollapseButton.tsx`
|
|
280
|
-
|
|
281
|
-
---
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
### CollapsedButton
|
|
285
|
-
|
|
286
|
-
No description available
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
#### Properties
|
|
292
|
-
|
|
293
|
-
| Name | Type | Description |
|
|
294
|
-
|------|------|-------------|
|
|
295
|
-
| collapsed | `boolean` | |
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
**Source:** `web-components/src/creek-layout/CollapseButton.tsx`
|
|
301
|
-
|
|
302
|
-
---
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
### NotFound
|
|
306
|
-
|
|
307
|
-
No description available
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
**Source:** `web-components/src/creek-layout/Exception/NotFound.tsx`
|
|
316
|
-
|
|
317
|
-
---
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
### ExceptionProps
|
|
321
|
-
|
|
322
|
-
No description available
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
#### Properties
|
|
328
|
-
|
|
329
|
-
| Name | Type | Description |
|
|
330
|
-
|------|------|-------------|
|
|
331
|
-
| children | `React.ReactNode` | |
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
**Source:** `web-components/src/creek-layout/Exception/index.tsx`
|
|
337
|
-
|
|
338
|
-
---
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
### Exception
|
|
342
|
-
|
|
343
|
-
No description available
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
#### Properties
|
|
349
|
-
|
|
350
|
-
| Name | Type | Description |
|
|
351
|
-
|------|------|-------------|
|
|
352
|
-
| children | `React.ReactNode` | |
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
**Source:** `web-components/src/creek-layout/Exception/index.tsx`
|
|
358
|
-
|
|
359
|
-
---
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
### FullScreenStore
|
|
363
|
-
|
|
364
|
-
No description available
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
#### Properties
|
|
370
|
-
|
|
371
|
-
| Name | Type | Description |
|
|
372
|
-
|------|------|-------------|
|
|
373
|
-
| isFullScreen | `boolean` | |
|
|
374
|
-
| changeFullScreen | `() => void` | |
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
**Source:** `web-components/src/creek-layout/HeaderContent/FullScreen.tsx`
|
|
380
|
-
|
|
381
|
-
---
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
### useFullScreenStore
|
|
385
|
-
|
|
386
|
-
No description available
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
**Source:** `web-components/src/creek-layout/HeaderContent/FullScreen.tsx`
|
|
395
|
-
|
|
396
|
-
---
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
### FullScreen
|
|
400
|
-
|
|
401
|
-
No description available
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
#### Properties
|
|
407
|
-
|
|
408
|
-
| Name | Type | Description |
|
|
409
|
-
|------|------|-------------|
|
|
410
|
-
| isFullScreen | `boolean` | |
|
|
411
|
-
| changeFullScreen | `() => void` | |
|
|
29
|
+
```tsx
|
|
30
|
+
import { CreekLayout } from '@creekjs/web-components';
|
|
412
31
|
|
|
32
|
+
function App() {
|
|
33
|
+
return (
|
|
34
|
+
<CreekLayout>
|
|
35
|
+
{/* 你的页面内容 */}
|
|
36
|
+
</CreekLayout>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
```
|
|
413
40
|
|
|
41
|
+
**特性**:
|
|
42
|
+
- 响应式布局
|
|
43
|
+
- 侧边栏折叠
|
|
44
|
+
- 面包屑导航
|
|
45
|
+
- 异常页面处理
|
|
46
|
+
- 头部内容自定义
|
|
414
47
|
|
|
48
|
+
#### BgCenter
|
|
49
|
+
背景居中组件,用于页面背景处理。
|
|
415
50
|
|
|
416
|
-
|
|
51
|
+
```tsx
|
|
52
|
+
import { BgCenter } from '@creekjs/web-components';
|
|
417
53
|
|
|
418
|
-
|
|
54
|
+
<BgCenter>
|
|
55
|
+
<div>居中内容</div>
|
|
56
|
+
</BgCenter>
|
|
57
|
+
```
|
|
419
58
|
|
|
59
|
+
### 🔍 搜索组件
|
|
60
|
+
|
|
61
|
+
#### CreekSearch
|
|
62
|
+
高级搜索组件,支持多种搜索条件和筛选器。
|
|
63
|
+
|
|
64
|
+
```tsx
|
|
65
|
+
import { CreekSearch } from '@creekjs/web-components';
|
|
66
|
+
|
|
67
|
+
const searchConfig = {
|
|
68
|
+
fields: [
|
|
69
|
+
{
|
|
70
|
+
name: 'keyword',
|
|
71
|
+
label: '关键词',
|
|
72
|
+
type: 'input'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'status',
|
|
76
|
+
label: '状态',
|
|
77
|
+
type: 'select',
|
|
78
|
+
options: [
|
|
79
|
+
{ label: '启用', value: 'active' },
|
|
80
|
+
{ label: '禁用', value: 'inactive' }
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
function SearchDemo() {
|
|
87
|
+
const handleSearch = (values) => {
|
|
88
|
+
console.log('搜索条件:', values);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
return (
|
|
92
|
+
<CreekSearch
|
|
93
|
+
config={searchConfig}
|
|
94
|
+
onSearch={handleSearch}
|
|
95
|
+
/>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
```
|
|
420
99
|
|
|
421
|
-
|
|
100
|
+
**特性**:
|
|
101
|
+
- 多种搜索字段类型
|
|
102
|
+
- 搜索条件显示
|
|
103
|
+
- 值选择器
|
|
104
|
+
- 搜索输入框
|
|
105
|
+
- 筛选器显示
|
|
106
|
+
|
|
107
|
+
### 📊 表格组件
|
|
108
|
+
|
|
109
|
+
#### CreekTable
|
|
110
|
+
增强型表格组件,基于 Ant Design Pro Table。
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
import { CreekTable } from '@creekjs/web-components';
|
|
114
|
+
|
|
115
|
+
const columns = [
|
|
116
|
+
{
|
|
117
|
+
title: '姓名',
|
|
118
|
+
dataIndex: 'name',
|
|
119
|
+
key: 'name',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
title: '年龄',
|
|
123
|
+
dataIndex: 'age',
|
|
124
|
+
key: 'age',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
title: '操作',
|
|
128
|
+
key: 'action',
|
|
129
|
+
render: (_, record) => (
|
|
130
|
+
<a onClick={() => handleEdit(record)}>编辑</a>
|
|
131
|
+
),
|
|
132
|
+
},
|
|
133
|
+
];
|
|
134
|
+
|
|
135
|
+
function TableDemo() {
|
|
136
|
+
return (
|
|
137
|
+
<CreekTable
|
|
138
|
+
columns={columns}
|
|
139
|
+
request={async (params) => {
|
|
140
|
+
// 请求数据
|
|
141
|
+
const response = await fetchData(params);
|
|
142
|
+
return {
|
|
143
|
+
data: response.data,
|
|
144
|
+
total: response.total,
|
|
145
|
+
success: true,
|
|
146
|
+
};
|
|
147
|
+
}}
|
|
148
|
+
rowKey="id"
|
|
149
|
+
/>
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
```
|
|
422
153
|
|
|
423
|
-
|
|
154
|
+
**特性**:
|
|
155
|
+
- 搜索表格集成
|
|
156
|
+
- 工具栏渲染
|
|
157
|
+
- 表格视图内容
|
|
158
|
+
- 表格选项渲染
|
|
159
|
+
- 自定义 hooks 支持
|
|
160
|
+
|
|
161
|
+
### ⚙️ 配置组件
|
|
162
|
+
|
|
163
|
+
#### CreekConfigProvider
|
|
164
|
+
全局配置提供者,管理主题和全局设置。
|
|
165
|
+
|
|
166
|
+
```tsx
|
|
167
|
+
import { CreekConfigProvider } from '@creekjs/web-components';
|
|
168
|
+
|
|
169
|
+
function App() {
|
|
170
|
+
return (
|
|
171
|
+
<CreekConfigProvider
|
|
172
|
+
theme={{
|
|
173
|
+
primaryColor: '#1890ff',
|
|
174
|
+
// 其他主题配置
|
|
175
|
+
}}
|
|
176
|
+
>
|
|
177
|
+
<YourApp />
|
|
178
|
+
</CreekConfigProvider>
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
```
|
|
424
182
|
|
|
183
|
+
### 🎯 工具组件
|
|
425
184
|
|
|
185
|
+
#### CreekIcon
|
|
186
|
+
图标组件,基于 Ant Design Icons。
|
|
426
187
|
|
|
188
|
+
```tsx
|
|
189
|
+
import { CreekIcon } from '@creekjs/web-components';
|
|
427
190
|
|
|
191
|
+
<CreekIcon type="user" />
|
|
192
|
+
<CreekIcon type="setting" size={24} />
|
|
193
|
+
```
|
|
428
194
|
|
|
195
|
+
#### CreekLoading
|
|
196
|
+
加载组件,提供统一的加载状态显示。
|
|
429
197
|
|
|
198
|
+
```tsx
|
|
199
|
+
import { CreekLoading } from '@creekjs/web-components';
|
|
430
200
|
|
|
431
|
-
|
|
201
|
+
<CreekLoading spinning={loading}>
|
|
202
|
+
<div>内容区域</div>
|
|
203
|
+
</CreekLoading>
|
|
204
|
+
```
|
|
432
205
|
|
|
433
|
-
|
|
206
|
+
#### CreekKeepAlive
|
|
207
|
+
组件缓存,保持组件状态。
|
|
434
208
|
|
|
209
|
+
```tsx
|
|
210
|
+
import { CreekKeepAlive } from '@creekjs/web-components';
|
|
435
211
|
|
|
436
|
-
|
|
212
|
+
<CreekKeepAlive cacheKey="unique-key">
|
|
213
|
+
<YourComponent />
|
|
214
|
+
</CreekKeepAlive>
|
|
215
|
+
```
|
|
437
216
|
|
|
438
|
-
|
|
217
|
+
### 🪝 Hooks
|
|
439
218
|
|
|
219
|
+
#### useViewportHeight
|
|
220
|
+
获取视口高度的 Hook。
|
|
440
221
|
|
|
222
|
+
```tsx
|
|
223
|
+
import { useViewportHeight } from '@creekjs/web-components';
|
|
441
224
|
|
|
225
|
+
function MyComponent() {
|
|
226
|
+
const viewportHeight = useViewportHeight();
|
|
227
|
+
|
|
228
|
+
return (
|
|
229
|
+
<div style={{ height: viewportHeight }}>
|
|
230
|
+
全屏内容
|
|
231
|
+
</div>
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
```
|
|
442
235
|
|
|
236
|
+
## 🎨 主题定制
|
|
443
237
|
|
|
238
|
+
组件库基于 `antd-style` 提供主题定制能力:
|
|
444
239
|
|
|
240
|
+
```tsx
|
|
241
|
+
import { CreekConfigProvider } from '@creekjs/web-components';
|
|
445
242
|
|
|
446
|
-
|
|
243
|
+
const customTheme = {
|
|
244
|
+
token: {
|
|
245
|
+
colorPrimary: '#00b96b',
|
|
246
|
+
borderRadius: 6,
|
|
247
|
+
},
|
|
248
|
+
components: {
|
|
249
|
+
Button: {
|
|
250
|
+
colorPrimary: '#00b96b',
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
};
|
|
447
254
|
|
|
448
|
-
|
|
255
|
+
<CreekConfigProvider theme={customTheme}>
|
|
256
|
+
<App />
|
|
257
|
+
</CreekConfigProvider>
|
|
258
|
+
```
|
|
449
259
|
|
|
260
|
+
## 📱 响应式设计
|
|
450
261
|
|
|
451
|
-
|
|
262
|
+
所有组件都支持响应式设计,自动适配不同屏幕尺寸:
|
|
452
263
|
|
|
453
|
-
|
|
264
|
+
- 桌面端:完整功能展示
|
|
265
|
+
- 平板端:适配中等屏幕
|
|
266
|
+
- 移动端:优化触摸操作
|
|
454
267
|
|
|
268
|
+
## 🔧 开发指南
|
|
455
269
|
|
|
270
|
+
### 本地开发
|
|
456
271
|
|
|
272
|
+
```bash
|
|
273
|
+
# 克隆项目
|
|
274
|
+
git clone <repository-url>
|
|
457
275
|
|
|
458
|
-
|
|
276
|
+
# 安装依赖
|
|
277
|
+
pnpm install
|
|
459
278
|
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
| runtimeConfig | `ProLayoutProps` | |
|
|
463
|
-
| userConfig | `ProLayoutProps` | |
|
|
464
|
-
| navigate | `(path?: string | number) => void` | |
|
|
465
|
-
| initialInfo | `{
|
|
466
|
-
initialState: any` | |
|
|
467
|
-
| loading | `boolean` | |
|
|
468
|
-
| setInitialState | `() => void` | |
|
|
279
|
+
# 启动开发服务器
|
|
280
|
+
pnpm run father:dev
|
|
469
281
|
|
|
282
|
+
# 构建
|
|
283
|
+
pnpm run father:build
|
|
284
|
+
```
|
|
470
285
|
|
|
286
|
+
### 组件开发规范
|
|
471
287
|
|
|
288
|
+
1. **组件命名**:使用 `Creek` 前缀
|
|
289
|
+
2. **文件结构**:每个组件一个文件夹
|
|
290
|
+
3. **类型定义**:使用 TypeScript 严格模式
|
|
291
|
+
4. **样式方案**:使用 `antd-style`
|
|
292
|
+
5. **状态管理**:使用 `zustand`
|
|
472
293
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
---
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
### CreekLayout
|
|
479
|
-
|
|
480
|
-
No description available
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
**Source:** `web-components/src/creek-layout/index.tsx`
|
|
489
|
-
|
|
490
|
-
---
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
### Loading
|
|
494
|
-
|
|
495
|
-
No description available
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
**Source:** `web-components/src/creek-loading/index.tsx`
|
|
504
|
-
|
|
505
|
-
---
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
### CreekSearchProps
|
|
509
|
-
|
|
510
|
-
No description available
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
#### Properties
|
|
516
|
-
|
|
517
|
-
| Name | Type | Description |
|
|
518
|
-
|------|------|-------------|
|
|
519
|
-
| columns | `ProColumnType<T>[]` | |
|
|
520
|
-
| onSubmit | `(values: Record<string, any>) => void` | |
|
|
521
|
-
| justify | `'start' | 'end'` | |
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
**Source:** `web-components/src/creek-search/CreekSearch.tsx`
|
|
527
|
-
|
|
528
|
-
---
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
### CreekSearch
|
|
532
|
-
|
|
533
|
-
No description available
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
#### Properties
|
|
539
|
-
|
|
540
|
-
| Name | Type | Description |
|
|
541
|
-
|------|------|-------------|
|
|
542
|
-
| columns | `ProColumnType<T>[]` | |
|
|
543
|
-
| onSubmit | `(values: Record<string, any>) => void` | |
|
|
544
|
-
| justify | `'start' | 'end'` | |
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
**Source:** `web-components/src/creek-search/CreekSearch.tsx`
|
|
550
|
-
|
|
551
|
-
---
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
### SearchContextValue
|
|
555
|
-
|
|
556
|
-
No description available
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
#### Properties
|
|
562
|
-
|
|
563
|
-
| Name | Type | Description |
|
|
564
|
-
|------|------|-------------|
|
|
565
|
-
| searchValue | `string` | |
|
|
566
|
-
| filters | `CreekSearchFilter[]` | |
|
|
567
|
-
| showValueSelector | `boolean` | |
|
|
568
|
-
| selectedColumn | `ProColumnType<T, U>` | |
|
|
569
|
-
| tempValue | `any` | |
|
|
570
|
-
| inputRef | `React.RefObject<any>` | |
|
|
571
|
-
| columns | `ProTableProps<T, U, ValueType>['columns']` | |
|
|
572
|
-
| filterOptions | `ProTableProps<T, U, ValueType>['columns']` | |
|
|
573
|
-
| onSubmit | `(params: U) => void` | |
|
|
574
|
-
| beforeSearchSubmit | `(params: Record<string, any>) => Record<string, any>` | |
|
|
575
|
-
| setSearchValue | `(value: string) => void` | |
|
|
576
|
-
| setFilters | `React.Dispatch<React.SetStateAction<CreekSearchFilter[]>>` | |
|
|
577
|
-
| setShowValueSelector | `(show: boolean) => void` | |
|
|
578
|
-
| setSelectedColumn | `(column: any) => void` | |
|
|
579
|
-
| setTempValue | `(value: any) => void` | |
|
|
580
|
-
| handleSearch | `(value: string) => void` | |
|
|
581
|
-
| handleSelectColumn | `(value: string) => void` | |
|
|
582
|
-
| addFilter | `(key: string, option: CreekSearchAddFilterOption) => void` | |
|
|
583
|
-
| confirmAddFilter | `() => void` | |
|
|
584
|
-
| cancelValueSelector | `() => void` | |
|
|
585
|
-
| removeFilter | `(filterId: string) => void` | |
|
|
586
|
-
| handelRest | `() => void` | |
|
|
587
|
-
| getColumnOptions | `(column: any) => Array<{ label: string` | |
|
|
588
|
-
| value | `string` | |
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
**Source:** `web-components/src/creek-search/CreekSearchContext.tsx`
|
|
594
|
-
|
|
595
|
-
---
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
### useSearchContext
|
|
599
|
-
|
|
600
|
-
No description available
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
**Source:** `web-components/src/creek-search/CreekSearchContext.tsx`
|
|
609
|
-
|
|
610
|
-
---
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
### CreekSearchProvider
|
|
614
|
-
|
|
615
|
-
No description available
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
#### Properties
|
|
621
|
-
|
|
622
|
-
| Name | Type | Description |
|
|
623
|
-
|------|------|-------------|
|
|
624
|
-
| columns | `ProTableProps<T, U, ValueType>['columns']` | |
|
|
625
|
-
| onSubmit | `(params: U) => void` | |
|
|
626
|
-
| beforeSearchSubmit | `(params: Record<string, any>) => Record<string, any>` | |
|
|
627
|
-
| children | `ReactNode` | |
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
**Source:** `web-components/src/creek-search/CreekSearchContext.tsx`
|
|
633
|
-
|
|
634
|
-
---
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
### CreekFilterDisplayProps
|
|
638
|
-
|
|
639
|
-
No description available
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
#### Properties
|
|
645
|
-
|
|
646
|
-
| Name | Type | Description |
|
|
647
|
-
|------|------|-------------|
|
|
648
|
-
| className | `string` | |
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
**Source:** `web-components/src/creek-search/CreekSearchFilterDisplay.tsx`
|
|
654
|
-
|
|
655
|
-
---
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
### CreekFilterDisplay
|
|
659
|
-
|
|
660
|
-
No description available
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
#### Properties
|
|
666
|
-
|
|
667
|
-
| Name | Type | Description |
|
|
668
|
-
|------|------|-------------|
|
|
669
|
-
| className | `string` | |
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
**Source:** `web-components/src/creek-search/CreekSearchFilterDisplay.tsx`
|
|
675
|
-
|
|
676
|
-
---
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
### CreekSearchInputProps
|
|
680
|
-
|
|
681
|
-
No description available
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
#### Properties
|
|
687
|
-
|
|
688
|
-
| Name | Type | Description |
|
|
689
|
-
|------|------|-------------|
|
|
690
|
-
| className | `string` | |
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
**Source:** `web-components/src/creek-search/CreekSearchInput.tsx`
|
|
696
|
-
|
|
697
|
-
---
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
### CreekSearchInput
|
|
701
|
-
|
|
702
|
-
No description available
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
#### Properties
|
|
708
|
-
|
|
709
|
-
| Name | Type | Description |
|
|
710
|
-
|------|------|-------------|
|
|
711
|
-
| className | `string` | |
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
**Source:** `web-components/src/creek-search/CreekSearchInput.tsx`
|
|
717
|
-
|
|
718
|
-
---
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
### CreekSearchValueSelectorProps
|
|
722
|
-
|
|
723
|
-
No description available
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
#### Properties
|
|
729
|
-
|
|
730
|
-
| Name | Type | Description |
|
|
731
|
-
|------|------|-------------|
|
|
732
|
-
| onConfirm | `() => void` | |
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
**Source:** `web-components/src/creek-search/CreekSearchValueSelector.tsx`
|
|
738
|
-
|
|
739
|
-
---
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
### CreekSearchValueSelector
|
|
743
|
-
|
|
744
|
-
No description available
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
#### Properties
|
|
750
|
-
|
|
751
|
-
| Name | Type | Description |
|
|
752
|
-
|------|------|-------------|
|
|
753
|
-
| onConfirm | `() => void` | |
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
**Source:** `web-components/src/creek-search/CreekSearchValueSelector.tsx`
|
|
759
|
-
|
|
760
|
-
---
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
### CreekSearchAddFilterOption
|
|
764
|
-
|
|
765
|
-
No description available
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
#### Properties
|
|
771
|
-
|
|
772
|
-
| Name | Type | Description |
|
|
773
|
-
|------|------|-------------|
|
|
774
|
-
| value | `any` | |
|
|
775
|
-
| displayText | `string` | |
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
**Source:** `web-components/src/creek-search/type.ts`
|
|
781
|
-
|
|
782
|
-
---
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
### CreekSearchFilter
|
|
786
|
-
|
|
787
|
-
No description available
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
#### Properties
|
|
793
|
-
|
|
794
|
-
| Name | Type | Description |
|
|
795
|
-
|------|------|-------------|
|
|
796
|
-
| dataIndex | `string` | |
|
|
797
|
-
| title | `string` | |
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
**Source:** `web-components/src/creek-search/type.ts`
|
|
803
|
-
|
|
804
|
-
---
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
### SearchProTable
|
|
808
|
-
|
|
809
|
-
No description available
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
**Source:** `web-components/src/creek-table/SearchTable.tsx`
|
|
818
|
-
|
|
819
|
-
---
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
### TableOptionRenderProps
|
|
823
|
-
|
|
824
|
-
No description available
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
#### Properties
|
|
830
|
-
|
|
831
|
-
| Name | Type | Description |
|
|
832
|
-
|------|------|-------------|
|
|
833
|
-
| defaultDom | `React.ReactNode[]` | |
|
|
834
|
-
| importConfig | `OptionRenderCustom` | |
|
|
835
|
-
| exportConfig | `OptionRenderCustom` | |
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
**Source:** `web-components/src/creek-table/TableOptionRender.tsx`
|
|
841
|
-
|
|
842
|
-
---
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
### TableOptionRender
|
|
846
|
-
|
|
847
|
-
No description available
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
#### Properties
|
|
853
|
-
|
|
854
|
-
| Name | Type | Description |
|
|
855
|
-
|------|------|-------------|
|
|
856
|
-
| defaultDom | `React.ReactNode[]` | |
|
|
857
|
-
| importConfig | `OptionRenderCustom` | |
|
|
858
|
-
| exportConfig | `OptionRenderCustom` | |
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
**Source:** `web-components/src/creek-table/TableOptionRender.tsx`
|
|
864
|
-
|
|
865
|
-
---
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
### CreekTableViewRender
|
|
869
|
-
|
|
870
|
-
No description available
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
**Source:** `web-components/src/creek-table/TableViewContent.tsx`
|
|
879
|
-
|
|
880
|
-
---
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
### TableViewContent
|
|
884
|
-
|
|
885
|
-
No description available
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
**Source:** `web-components/src/creek-table/TableViewContent.tsx`
|
|
894
|
-
|
|
895
|
-
---
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
### useAdaptiveToolBar
|
|
899
|
-
|
|
900
|
-
No description available
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
**Source:** `web-components/src/creek-table/hooks/useAdaptiveToolBar.tsx`
|
|
909
|
-
|
|
910
|
-
---
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
### useAutoAddFilterToColumns
|
|
914
|
-
|
|
915
|
-
No description available
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
**Source:** `web-components/src/creek-table/hooks/useAutoAddFilterToColumns.tsx`
|
|
924
|
-
|
|
925
|
-
---
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
### useElementDistance
|
|
929
|
-
|
|
930
|
-
No description available
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
**Source:** `web-components/src/creek-table/hooks/useElementDistance.tsx`
|
|
939
|
-
|
|
940
|
-
---
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
### CreekTable
|
|
944
|
-
|
|
945
|
-
No description available
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
**Source:** `web-components/src/creek-table/index.tsx`
|
|
954
|
-
|
|
955
|
-
---
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
### toolBarRender
|
|
959
|
-
|
|
960
|
-
No description available
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
**Source:** `web-components/src/creek-table/toolBarRender.tsx`
|
|
969
|
-
|
|
970
|
-
---
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
### OptionRenderCustom
|
|
974
|
-
|
|
975
|
-
No description available
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
#### Properties
|
|
981
|
-
|
|
982
|
-
| Name | Type | Description |
|
|
983
|
-
|------|------|-------------|
|
|
984
|
-
| text | `string` | |
|
|
985
|
-
| icon | `React.ReactNode` | |
|
|
986
|
-
| onClick | `() => void` | |
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
**Source:** `web-components/src/creek-table/type.ts`
|
|
992
|
-
|
|
993
|
-
---
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
### CreekTableProps
|
|
997
|
-
|
|
998
|
-
No description available
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
#### Properties
|
|
1004
|
-
|
|
1005
|
-
| Name | Type | Description |
|
|
1006
|
-
|------|------|-------------|
|
|
1007
|
-
| pageFixedBottom | `boolean` | |
|
|
1008
|
-
| pageFixedBottomConfig | `{
|
|
1009
|
-
/** 底部保留空间(如固定在底部的元素高度),默认 0 */
|
|
1010
|
-
bottomFix?: number` | |
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
**Source:** `web-components/src/creek-table/type.ts`
|
|
1016
|
-
|
|
1017
|
-
---
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
## Version
|
|
1021
|
-
|
|
1022
|
-
1.0.0
|
|
1023
|
-
|
|
1024
|
-
## License
|
|
1025
|
-
|
|
1026
|
-
ISC
|
|
294
|
+
### 组件结构示例
|