2023-05-25 06:38:12 +00:00
|
|
|
<script>
|
2023-10-02 10:46:09 +00:00
|
|
|
import BadgeStyle from 'primevue/badge/style';
|
2023-05-25 06:38:12 +00:00
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
|
|
|
|
|
|
export default {
|
2023-05-25 13:33:56 +00:00
|
|
|
name: 'BaseBadge',
|
2023-05-25 06:38:12 +00:00
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
type: [String, Number],
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
severity: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
size: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: BadgeStyle,
|
2023-05-30 12:28:04 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-25 06:38:12 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|