mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 20:34:08 +00:00
44 lines
621 B
Vue
44 lines
621 B
Vue
<template>
|
|
<button :type="nativeType" :disabled="loading" :class="{
|
|
[`btn-${type}`]: true,
|
|
'btn-block': block,
|
|
'btn-lg': large,
|
|
'btn-loading': loading
|
|
}" class="btn">
|
|
<slot/>
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'VButton',
|
|
|
|
props: {
|
|
type: {
|
|
type: String,
|
|
default: 'primary'
|
|
},
|
|
|
|
nativeType: {
|
|
type: String,
|
|
default: 'submit'
|
|
},
|
|
|
|
loading: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
|
|
block: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
|
|
large: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
}
|
|
}
|
|
</script>
|