Skip to content

Commit

Permalink
refactor(switch): round prop
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Nov 21, 2021
1 parent 3741916 commit cf2f37e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- `n-button` add `quaternary` prop.
- `n-auto-complete` add `input-props` prop, closes [#1610](https://github.com/TuSimple/naive-ui/issues/1610).
- Add `n-tab` component, closes [#1630](https://github.com/TuSimple/naive-ui/issues/1630).
- `n-switch` add `round` prop, closes [#1469](https://github.com/TuSimple/naive-ui/issues/1469).

### Fixes

Expand Down Expand Up @@ -49,7 +50,6 @@

- `n-modal` add `transform-origin` prop, closes [#1498](https://github.com/TuSimple/naive-ui/issues/1498).
- `n-tabs` add `pane-class` prop, closes [#1500](https://github.com/TuSimple/naive-ui/issues/1500).
- `n-switch` add `round` prop, closes [#1469](https://github.com/TuSimple/naive-ui/issues/1469).

### Fixes

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- `n-button` 新增 `quaternary` 属性
- `n-auto-complete` 新增 `input-props` 属性,关闭 [#1610](https://github.com/TuSimple/naive-ui/issues/1610)
- 新增 `n-tab` 组件,关闭 [#1630](https://github.com/TuSimple/naive-ui/issues/1630)
- `n-switch` 新增 `round` 属性,关闭 [#1469](https://github.com/TuSimple/naive-ui/issues/1469)

### Fixes

Expand Down Expand Up @@ -49,7 +50,6 @@

- `n-modal` 新增 `transform-origin` 属性,关闭 [#1498](https://github.com/TuSimple/naive-ui/issues/1498)
- `n-tabs` 新增 `pane-class` 属性,关闭 [#1500](https://github.com/TuSimple/naive-ui/issues/1500)
- `n-switch` 新增 `round` 属性,关闭 [#1469](https://github.com/TuSimple/naive-ui/issues/1469)

### Fixes

Expand Down
2 changes: 1 addition & 1 deletion src/switch/demos/enUS/customize-value.demo.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Customize Checked Value
# Customize checked value

Use `checked-value` and `unchecked-value` to customize respective values.

Expand Down
2 changes: 1 addition & 1 deletion src/switch/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ shape
| default-value | `boolean` | `false` | Default value. |
| disabled | `boolean` | `false` | Whether to disable the switch. |
| loading | `boolean` | `false` | Whether to show loading state. |
| round           | `boolean`                         | `true`       | Whether the switch shows rounded corners.   |
| round | `boolean` | `true` | Whether the switch has rounded corners.   |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | The size of the switch. |
| value | `boolean` | `undefined` | Value when being set manually. |
| unchecked-value | `string \| boolean \| number` | `false` | Value of unchecked state. |
Expand Down
2 changes: 1 addition & 1 deletion src/switch/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ shape
| default-value | `boolean` | `false` | 非受控模式下的默认值 |
| disabled | `boolean` | `false` | 是否禁用 |
| loading | `boolean` | `false` | 是否加载 |
| round | `boolean` | `true` | 是否是圆角 |
| round | `boolean` | `true` | 是否为圆形按钮 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 开关大小 |
| unchecked-value | `string \| boolean \| number` | `false` | 未选中时对应的值 |
| value | `boolean` | `undefined` | 受控模式下的值 |
Expand Down

0 comments on commit cf2f37e

Please sign in to comment.