mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4929 - Add parent param to all pt method options
This commit is contained in:
parent
1a4bba8107
commit
eb00b8ee23
104 changed files with 399 additions and 158 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<span :class="cx('root')" v-bind="getPTOptions('root')" data-pc-name="badge">
|
||||
<span :class="cx('root')" v-bind="ptm('root')" data-pc-name="badge">
|
||||
<slot>{{ value }}</slot>
|
||||
</span>
|
||||
</template>
|
||||
|
@ -9,16 +9,6 @@ import BaseBadge from './BaseBadge.vue';
|
|||
|
||||
export default {
|
||||
name: 'Badge',
|
||||
extends: BaseBadge,
|
||||
methods: {
|
||||
getPTOptions(key) {
|
||||
return this.ptm(key, {
|
||||
parent: {
|
||||
props: this.$parent?.$props,
|
||||
state: this.$parent?.$data
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
extends: BaseBadge
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue