Commit aaf9999b authored by baiyaaaaa's avatar baiyaaaaa Committed by GitHub

Merge pull request #126 from QingWei-Li/next

Button: add nativeType attribute
parents 53ebf91f 4e78b733
......@@ -138,3 +138,4 @@ Button 组件提供除了默认值以外的三种尺寸,可以在不同场景
| plain | 是否朴素按钮 | Boolean | true,false | false |
| disabled | 禁用 | boolean | true, false | false |
| icon | 图标,已有的图标库中的图标名 | string | | |
| native-type | 原生 type 属性 | string | button,submit,reset | button |
<template>
<button :disabled="disabled" class="el-button"
:type="nativeType"
:class="[
type ? 'el-button-' + type : '',
size ? 'el-button-' + size : '',
......@@ -32,6 +33,10 @@
type: String,
default: ''
},
nativeType: {
type: String,
default: 'button'
},
loading: {
type: Boolean,
default: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment