Skip to content

Commit 7e5635e

Browse files
committed
chore: align father config and Chinese README
1 parent c0a866f commit 7e5635e

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.fatherrc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
plugins: ['@rc-component/father-plugin'],
5+
});

README.zh-CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ npm start
7575
| `allowCross` | boolean | true | 允许手柄在范围模式下交叉。 |
7676
| `ariaLabelForHandle` | string \| string[] | - | `aria-label` for handle elements. |
7777
| `ariaLabelledByForHandle` | string \| string[] | - | `aria-labelledby` for handle elements. |
78-
| `ariaRequired` | boolean | - | `aria-required` for handle elements. |
79-
| `ariaValueTextFormatterForHandle` | `((value: number) => string) \| ((value: number) => string)[]` | - | Formatter for `aria-valuetext`. |
78+
| `ariaRequired` | boolean | - | 句柄元素的 `aria-required` |
79+
| `ariaValueTextFormatterForHandle` | `((value: number) => string) \| ((value: number) => string)[]` | - | `aria-valuetext` 格式化函数。 |
8080
| `autoFocus` | boolean | - | 将滑块聚焦在安装座上。 |
8181
| `className` | string | - | 附加 className。 |
8282
| `classNames` | `Partial<Record<'tracks' \| 'track' \| 'rail' \| 'handle', string>>` | - | 内部插槽的语义化 className。 |
@@ -90,7 +90,7 @@ npm start
9090
| `id` | string | - | 根 ID。 |
9191
| `included` | boolean | true | 轨道是否渲染为连续的选定间隔。 |
9292
| `keyboard` | boolean | true | 启用键盘交互。 |
93-
| `marks` | `Record<string \| number, ReactNode \| MarkObj>` | - | Slider marks. |
93+
| `marks` | `Record<string \| number, ReactNode \| MarkObj>` | - | 滑块刻度标记。 |
9494
| `max` | number | 100 | 最大值。 |
9595
| `min` | number | 0 | 最小值。 |
9696
| `onAfterChange` | `(value) => void` | - | 已废弃。请使用 `onChangeComplete`|

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
},
3232
"include": [
3333
".dumirc.ts",
34+
".fatherrc.ts",
3435
"src",
3536
"tests",
3637
"docs/examples"

0 commit comments

Comments
 (0)