[new feature] Icon: add tag prop (#2986)

This commit is contained in:
neverland
2019-03-17 18:48:18 +08:00
committed by GitHub
parent 36fc3ab921
commit 94a7445945
10 changed files with 56 additions and 18 deletions

View File

@@ -63,7 +63,7 @@ Vue.use(Button);
| type | Can be set to `primary` `info` `warning` `danger` | `String` | `default` |
| size | Can be set to `large` `small` `mini` | `String` | `normal` |
| text | Text | `String` | - |
| tag | Tag | `String` | `button` |
| tag | HTML Tag | `String` | `button` |
| native-type | Native Type Attribute | `String` | `''` |
| plain | Whether to be plain button | `Boolean` | `false` |
| block | Whether to set display block | `Boolean` | `false` |

View File

@@ -8,7 +8,7 @@ import { CreateElement, RenderContext } from 'vue/types';
import { DefaultSlots } from '../utils/use/sfc';
export type ButtonProps = RouteProps & {
tag: string;
tag: keyof HTMLElementTagNameMap;
type: string;
size: string;
text?: string;