mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Hidden input renaming for PT
This commit is contained in:
parent
1103bcdfbc
commit
d2125fd726
4 changed files with 10 additions and 10 deletions
8
components/lib/inputswitch/InputSwitch.d.ts
vendored
8
components/lib/inputswitch/InputSwitch.d.ts
vendored
|
@ -34,13 +34,13 @@ export interface InputSwitchPassThroughOptions {
|
|||
*/
|
||||
slider?: InputSwitchPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the hidden accessible DOM element.
|
||||
* Uses to pass attributes to the hidden input wrapper's DOM element.
|
||||
*/
|
||||
hiddenAccessible?: InputSwitchPassThroughOptionType;
|
||||
hiddenInputWrapper?: InputSwitchPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the input aria's DOM element.
|
||||
* Uses to pass attributes to the hidden input's DOM element.
|
||||
*/
|
||||
inputAria?: InputSwitchPassThroughOptionType;
|
||||
hiddenInput?: InputSwitchPassThroughOptionType;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div :class="containerClass" @click="onClick($event)" v-bind="ptm('root')">
|
||||
<div class="p-hidden-accessible" v-bind="ptm('hiddenAccessible')">
|
||||
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')">
|
||||
<input
|
||||
ref="input"
|
||||
:id="inputId"
|
||||
|
@ -15,7 +15,7 @@
|
|||
:aria-label="ariaLabel"
|
||||
@focus="onFocus($event)"
|
||||
@blur="onBlur($event)"
|
||||
v-bind="ptm('inputAria')"
|
||||
v-bind="ptm('hiddenInput')"
|
||||
/>
|
||||
</div>
|
||||
<span class="p-inputswitch-slider" v-bind="{ ...inputProps, ...ptm('slider') }"></span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue