claude-web/node_modules/primevue/toggleswitch/BaseToggleSwitch.vue

55 lines
1.1 KiB
Vue
Raw Permalink Normal View History

2026-02-23 02:23:38 +00:00
<script>
import BaseEditableHolder from '@primevue/core/baseeditableholder';
import ToggleSwitchStyle from 'primevue/toggleswitch/style';
export default {
name: 'BaseToggleSwitch',
extends: BaseEditableHolder,
props: {
trueValue: {
type: null,
default: true
},
falseValue: {
type: null,
default: false
},
readonly: {
type: Boolean,
default: false
},
tabindex: {
type: Number,
default: null
},
inputId: {
type: String,
default: null
},
inputClass: {
type: [String, Object],
default: null
},
inputStyle: {
type: Object,
default: null
},
ariaLabelledby: {
type: String,
default: null
},
ariaLabel: {
type: String,
default: null
}
},
style: ToggleSwitchStyle,
provide() {
return {
$pcToggleSwitch: this,
$parentInstance: this
};
}
};
</script>