mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #5257
This commit is contained in:
parent
bcb1b6eb8d
commit
9a82025215
9 changed files with 29 additions and 15 deletions
|
@ -35,10 +35,13 @@ import BaseToggleButton from './BaseToggleButton.vue';
|
|||
export default {
|
||||
name: 'ToggleButton',
|
||||
extends: BaseToggleButton,
|
||||
inheritAttrs: false,
|
||||
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
||||
methods: {
|
||||
getPTOptions(key) {
|
||||
return this.ptm(key, {
|
||||
const _ptm = key === 'root' ? this.ptmi : this.ptm;
|
||||
|
||||
return _ptm(key, {
|
||||
context: {
|
||||
active: this.active,
|
||||
disabled: this.disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue