primevue-mirror/components/lib/badge/Badge.vue

25 lines
525 B
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
2023-12-05 09:49:37 +00:00
<span :class="cx('root')" v-bind="getPTOptions('root')" data-pc-name="badge">
2022-09-14 11:26:01 +00:00
<slot>{{ value }}</slot>
2022-09-06 12:03:37 +00:00
</span>
</template>
<script>
2023-05-25 06:38:12 +00:00
import BaseBadge from './BaseBadge.vue';
2022-09-06 12:03:37 +00:00
export default {
name: 'Badge',
2023-12-05 09:49:37 +00:00
extends: BaseBadge,
methods: {
getPTOptions(key) {
return this.ptm(key, {
parent: {
props: this.$parent?.$props,
state: this.$parent?.$data
}
});
}
}
2022-09-14 11:26:01 +00:00
};
2022-09-06 12:03:37 +00:00
</script>