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

87 lines
1.7 KiB
Vue
Raw Normal View History

2023-05-30 14:05:57 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import ButtonStyle from 'primevue/button/style';
2023-05-30 14:05:57 +00:00
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
},
badgeSeverity: {
2023-05-30 14:05:57 +00:00
type: String,
2024-05-25 11:42:57 +00:00
default: 'secondary'
2023-05-30 14:05:57 +00:00
},
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,
2023-05-30 14:05:57 +00:00
provide() {
return {
$pcButton: this,
2023-05-30 14:05:57 +00:00
$parentInstance: this
};
}
};
</script>