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
a9164bdbde
commit
dd84dbbb60
33 changed files with 82 additions and 44 deletions
|
@ -28,10 +28,13 @@ import BaseInputSwitch from './BaseInputSwitch.vue';
|
|||
export default {
|
||||
name: 'InputSwitch',
|
||||
extends: BaseInputSwitch,
|
||||
inheritAttrs: false,
|
||||
emits: ['update:modelValue', 'change', 'focus', 'blur'],
|
||||
methods: {
|
||||
getPTOptions(key) {
|
||||
return this.ptm(key, {
|
||||
const _ptm = root === 'root' ? this.ptmi : this.ptm;
|
||||
|
||||
return _ptm(key, {
|
||||
context: {
|
||||
checked: this.checked,
|
||||
disabled: this.disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue