-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #991 from ksc-fe/revision-menu
fix some issues
- Loading branch information
Showing
21 changed files
with
480 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: 控制全局水波纹动效 | ||
order: 1 | ||
--- | ||
|
||
通过配置`disableWave`,可以控制是否开启水波纹动效,默认`false` | ||
|
||
```vdt | ||
import {ConfigProvider, Button, Input, Checkbox, Radio, Select, Option} from 'kpc'; | ||
<ConfigProvider value={{disableWave: true}}> | ||
<Button>Button</Button> | ||
<Input /> | ||
<Checkbox v-model="value">checkbox</Checkbox> | ||
<Radio v-model="value">radio</Radio> | ||
<Select v-model="day"> | ||
<Option value="Monday">星期一</Option> | ||
<Option value="Tuesday">星期二</Option> | ||
<Option value="Wednesday">星期三</Option> | ||
<Option value="Thursday">星期四</Option> | ||
<Option value="Friday">星期五</Option> | ||
<Option value="Saturday">星期六</Option> | ||
<Option value="Sunday">星期天</Option> | ||
</Select> | ||
</ConfigProvider> | ||
``` | ||
|
||
```styl | ||
.k-input, .k-input, .k-checkbox, .k-radio | ||
margin 0 10px | ||
``` | ||
|
||
```ts | ||
interface Props { | ||
value?: boolean, | ||
day?: string | null | ||
} | ||
export default class extends Component<Props> { | ||
static template = template; | ||
static defaults() { | ||
return { | ||
value: false, | ||
day: '' | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.