You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
739 B
53 lines
739 B
![]()
3 months ago
|
<template>
|
||
|
<el-button
|
||
|
:type="type"
|
||
|
:plain="plain"
|
||
|
:loading="loading"
|
||
|
:size="size"
|
||
|
:disabled="disabled"
|
||
|
:style="{...btnstyle}"
|
||
|
>
|
||
|
<slot></slot>
|
||
|
</el-button>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'GuipButton',
|
||
|
// props:['type','plain'],
|
||
|
props:{
|
||
|
type:{
|
||
|
type:String,
|
||
|
default:''
|
||
|
},
|
||
|
size:{
|
||
|
type:String,
|
||
|
default:'normal'
|
||
|
},
|
||
|
// 为false 的可以不需要传参
|
||
|
plain:{
|
||
|
type:Boolean,
|
||
|
default:false
|
||
|
},
|
||
|
loading:{
|
||
|
type:Boolean,
|
||
|
default:false
|
||
|
},
|
||
|
disabled:{
|
||
|
type:Boolean,
|
||
|
default:false
|
||
|
},
|
||
|
btnstyle:Object
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
radio: ''
|
||
|
}
|
||
|
},
|
||
|
mounted(){
|
||
|
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|