primevue-mirror/components/lib/button/BaseButton.vue

82 lines
1.6 KiB
Vue

<script>
import BaseComponent from 'primevue/basecomponent';
import ButtonStyle from 'primevue/button/style';
export default {
name: 'BaseButton',
extends: BaseComponent,
props: {
label: {
type: String,
default: null
},
icon: {
type: String,
default: null
},
iconPos: {
type: String,
default: 'left'
},
iconClass: {
type: String,
default: null
},
badge: {
type: String,
default: null
},
badgeClass: {
type: String,
default: null
},
loading: {
type: Boolean,
default: false
},
loadingIcon: {
type: String,
default: undefined
},
link: {
type: Boolean,
default: false
},
severity: {
type: String,
default: null
},
raised: {
type: Boolean,
default: false
},
rounded: {
type: Boolean,
default: false
},
text: {
type: Boolean,
default: false
},
outlined: {
type: Boolean,
default: false
},
size: {
type: String,
default: null
},
plain: {
type: Boolean,
default: false
}
},
style: ButtonStyle,
provide() {
return {
$parentInstance: this
};
}
};
</script>