-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jaskang
committed
Jan 6, 2023
1 parent
f69ec35
commit e1f57cf
Showing
15 changed files
with
415 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
registry=https://registry.npmmirror.com | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,115 @@ | ||
# Button | ||
|
||
## 颜色 | ||
|
||
```vue demo | ||
<template> | ||
<div class="space-x-1"> | ||
<EButton>你测试好</EButton> | ||
<EButton color="primary">primary</EButton> | ||
<EButton color="success">success</EButton> | ||
<EButton color="warning">warning</EButton> | ||
<EButton color="error">error</EButton> | ||
<EButton disabled>默认</EButton> | ||
<EButton color="primary" disabled>primary</EButton> | ||
</div> | ||
</template> | ||
``` | ||
|
||
## 大小 | ||
|
||
```vue demo | ||
<template> | ||
<div class="space-x-1"> | ||
<EButton size="xs">button xs</EButton> | ||
<EButton size="sm">button sm</EButton> | ||
<EButton>button</EButton> | ||
<EButton size="lg">button lg</EButton> | ||
<EButton size="xl">button xl</EButton> | ||
</div> | ||
<br /> | ||
<div class="space-x-1"> | ||
<EButton color="primary" size="xs">primary xs</EButton> | ||
<EButton color="primary" size="sm">primary sm</EButton> | ||
<EButton color="primary">primary</EButton> | ||
<EButton color="primary" size="lg">primary lg</EButton> | ||
<EButton color="primary" size="xl">primary xl</EButton> | ||
</div> | ||
</template> | ||
``` | ||
|
||
## 圆角 | ||
|
||
```vue demo | ||
<template> | ||
<div class="space-x-1"> | ||
<EButton type="round">默认</EButton> | ||
<EButton color="primary" type="round">primary</EButton> | ||
<EButton color="success" type="round">success</EButton> | ||
<EButton color="warning" type="round">warning</EButton> | ||
<EButton color="error" type="round">error</EButton> | ||
</div> | ||
</template> | ||
``` | ||
|
||
## 圆形 | ||
|
||
```vue demo | ||
<template> | ||
<div class="space-x-1"> | ||
<EButton type="circle">D</EButton> | ||
<EButton color="primary" type="circle">P</EButton> | ||
<EButton color="success" type="circle">S</EButton> | ||
<EButton color="warning" type="circle">W</EButton> | ||
<EButton color="error" type="circle">E</EButton> | ||
</div> | ||
</template> | ||
``` | ||
|
||
## 链接 | ||
|
||
```vue demo | ||
<template> | ||
<button>Get Started</button> | ||
<div class="space-x-1"> | ||
<EButton type="link">default</EButton> | ||
<EButton color="primary" type="link">primary</EButton> | ||
<EButton color="success" type="link">success</EButton> | ||
<EButton color="warning" type="link">warning</EButton> | ||
<EButton color="error" type="link">error</EButton> | ||
</div> | ||
</template> | ||
``` | ||
|
||
```vue demo [config.ts] | ||
## 禁用 | ||
|
||
```vue demo | ||
<template> | ||
<EButton>你好</EButton> | ||
<EButton color="primary">primary</EButton> | ||
<EButton color="success">success</EButton> | ||
<EButton color="warning">warning</EButton> | ||
<EButton color="error">error</EButton> | ||
<EButton disabled>默认</EButton> | ||
<EButton color="primary" disabled>primary</EButton> | ||
<div class="space-x-1"> | ||
<EButton disabled>禁用</EButton> | ||
<EButton color="primary" disabled>primary 禁用</EButton> | ||
<EButton type="round" disabled>默认</EButton> | ||
<EButton type="circle" disabled>D</EButton> | ||
<EButton type="link" disabled>primary</EButton> | ||
</div> | ||
</template> | ||
``` | ||
|
||
## 按钮组 | ||
|
||
```vue demo | ||
<template> | ||
<EButton>aaaaaasssssss</EButton> | ||
<EButton color="primary">primary</EButton> | ||
<EButton color="success">success</EButton> | ||
<EButton color="warning">warning</EButton> | ||
<EButton color="error">error</EButton> | ||
<EButton disabled>默认</EButton> | ||
<EButton color="primary" disabled>primary</EButton> | ||
<EButtonGroup> | ||
<EButton>primary</EButton> | ||
<EButton>primary</EButton> | ||
<EButton>primary</EButton> | ||
<EButton>primary</EButton> | ||
</EButtonGroup> | ||
<br /><br /> | ||
<EButtonGroup> | ||
<EButton color="primary">primary</EButton> | ||
<EButton color="primary">primary</EButton> | ||
<EButton color="primary">primary</EButton> | ||
<EButton color="primary">primary</EButton> | ||
</EButtonGroup> | ||
</template> | ||
``` |
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 |
---|---|---|
@@ -1 +1,11 @@ | ||
# checkbox | ||
|
||
```vue demo | ||
<template> | ||
<div class="space-x-1"> | ||
<ECheckbox>ECheckbox</ECheckbox> | ||
<ECheckbox disabled>ECheckbox disabled</ECheckbox> | ||
<ECheckbox checked disabled>ECheckbox disabled</ECheckbox> | ||
</div> | ||
</template> | ||
``` |
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 |
---|---|---|
@@ -1 +1,13 @@ | ||
# radio | ||
|
||
```vue demo | ||
<template> | ||
<div class="space-x-1"> | ||
<ERadio name="radio">ERadio</ERadio> | ||
<ERadio name="radio">ERadio</ERadio> | ||
<ERadio name="radio">ERadio</ERadio> | ||
<ERadio name="radio" disabled>ERadio disabled</ERadio> | ||
<ERadio name="radio" checked disabled>ERadio disabled</ERadio> | ||
</div> | ||
</template> | ||
``` |
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.