mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #5681
This commit is contained in:
parent
3cc675e50f
commit
e1367fd494
89 changed files with 376 additions and 339 deletions
2
components/lib/inputnumber/InputNumber.d.ts
vendored
2
components/lib/inputnumber/InputNumber.d.ts
vendored
|
@ -104,7 +104,7 @@ export interface InputNumberPassThroughOptions<T = any> {
|
|||
* Used to pass attributes to the InputText component.
|
||||
* @see {@link InputTextPassThroughOptions}
|
||||
*/
|
||||
input?: InputTextPassThroughOptions<InputNumberSharedPassThroughMethodOptions>;
|
||||
pcInput?: InputTextPassThroughOptions<InputNumberSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the button group's DOM element.
|
||||
*/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
ref="input"
|
||||
:id="inputId"
|
||||
role="spinbutton"
|
||||
:class="[cx('input'), inputClass]"
|
||||
:class="[cx('pcInput'), inputClass]"
|
||||
:style="inputStyle"
|
||||
:value="formattedValue"
|
||||
:aria-valuemin="min"
|
||||
|
@ -25,7 +25,7 @@
|
|||
@click="onInputClick"
|
||||
@focus="onInputFocus"
|
||||
@blur="onInputBlur"
|
||||
:pt="ptm('input')"
|
||||
:pt="ptm('pcInput')"
|
||||
:unstyled="unstyled"
|
||||
/>
|
||||
<span v-if="showButtons && buttonLayout === 'stacked'" :class="cx('buttonGroup')" v-bind="ptm('buttonGroup')">
|
||||
|
|
|
@ -159,7 +159,7 @@ const classes = {
|
|||
'p-inputnumber-vertical': props.showButtons && props.buttonLayout === 'vertical'
|
||||
}
|
||||
],
|
||||
input: 'p-inputnumber-input',
|
||||
pcInput: 'p-inputnumber-input',
|
||||
buttonGroup: 'p-inputnumber-button-group',
|
||||
incrementButton: ({ instance, props }) => [
|
||||
'p-inputnumber-button p-inputnumber-increment-button',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue