weifuwu 0.40.0 → 0.40.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 +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ npm install weifuwu
|
|
|
32
32
|
| `weifuwu/client` | **ErrorBoundary** | 错误边界组件 | createApp |
|
|
33
33
|
| `weifuwu/client` | **confirm** | Promise 化确认对话框 | createApp |
|
|
34
34
|
| `weifuwu/client** | **lockScroll/trapFocus** | 滚动锁定 / 焦点陷阱工具 | — |
|
|
35
|
-
| `weifuwu/components` | **
|
|
35
|
+
| `weifuwu/components` | **41 个组件** | Button/Table/Modal/Toast/... | weifuwu/client |
|
|
36
36
|
| `weifuwu/layout` | **CSS 布局** | 35 个布局原语 + 72 个主题 Token | — |
|
|
37
37
|
|
|
38
38
|
---
|
|
@@ -1276,7 +1276,7 @@ import type { RouterOptions } from 'weifuwu/client'
|
|
|
1276
1276
|
|
|
1277
1277
|
# 组件库 (`weifuwu/components`)
|
|
1278
1278
|
|
|
1279
|
-
|
|
1279
|
+
41 个 HTML 原语组件。每个是 `(props, ctx) => VNode` 纯函数,引用 `--wf-*` CSS 变量做主题。
|
|
1280
1280
|
|
|
1281
1281
|
```ts
|
|
1282
1282
|
import { Button, Input, Table, Modal, Toast } from 'weifuwu/components'
|
|
@@ -1352,6 +1352,14 @@ import 'weifuwu/components/style.css'
|
|
|
1352
1352
|
| Steps | `Steps` | `items: StepItem[]`, `current`, `direction`, `size` | 步骤条 |
|
|
1353
1353
|
| Accordion | `Accordion` | `items: AccordionItem[]`, `multiple`, `defaultActive` | 手风琴 |
|
|
1354
1354
|
|
|
1355
|
+
### 图表
|
|
1356
|
+
|
|
1357
|
+
| 组件 | 导入名 | 关键 Props | 说明 |
|
|
1358
|
+
|-----|--------|-----------|------|
|
|
1359
|
+
| Chart | `Chart` | `type: ChartType`, `data`, `options`, `title`, `area` | SVG 图表(line/bar/pie)|
|
|
1360
|
+
| DatePicker | `DatePicker` | `mode: DatePickerMode`, `value`, `onChange`, `placeholder` | 日期选择器(date/datetime/time/range)|
|
|
1361
|
+
| Editor | `Editor` | `value`, `onChange`, `toolbar`, `placeholder`, `disabled` | 富文本编辑器,零依赖 |
|
|
1362
|
+
|
|
1355
1363
|
### 布局
|
|
1356
1364
|
|
|
1357
1365
|
| 组件 | 导入名 | 关键 Props | 说明 |
|