mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-07 13:48:31 +08:00
chore(input-number): format
This commit is contained in:
parent
4e927823a3
commit
5905c07276
@ -367,45 +367,45 @@ export default defineComponent({
|
||||
>
|
||||
{this.showButton
|
||||
? {
|
||||
suffix: () => [
|
||||
<NButton
|
||||
text
|
||||
disabled={!this.minusable || this.disabled}
|
||||
focusable={false}
|
||||
builtinThemeOverrides={this.buttonThemeOverrides}
|
||||
onClick={this.handleMinusClick}
|
||||
ref="minusButtonInstRef"
|
||||
>
|
||||
{{
|
||||
default: () => (
|
||||
<NBaseIcon clsPrefix={mergedClsPrefix}>
|
||||
{{
|
||||
default: () => <RemoveIcon />
|
||||
}}
|
||||
</NBaseIcon>
|
||||
)
|
||||
}}
|
||||
</NButton>,
|
||||
<NButton
|
||||
text
|
||||
disabled={!this.addable || this.disabled}
|
||||
focusable={false}
|
||||
builtinThemeOverrides={this.buttonThemeOverrides}
|
||||
onClick={this.handleAddClick}
|
||||
ref="addButtonInstRef"
|
||||
>
|
||||
{{
|
||||
default: () => (
|
||||
<NBaseIcon clsPrefix={mergedClsPrefix}>
|
||||
{{
|
||||
default: () => <AddIcon />
|
||||
}}
|
||||
</NBaseIcon>
|
||||
)
|
||||
}}
|
||||
</NButton>
|
||||
]
|
||||
}
|
||||
suffix: () => [
|
||||
<NButton
|
||||
text
|
||||
disabled={!this.minusable || this.disabled}
|
||||
focusable={false}
|
||||
builtinThemeOverrides={this.buttonThemeOverrides}
|
||||
onClick={this.handleMinusClick}
|
||||
ref="minusButtonInstRef"
|
||||
>
|
||||
{{
|
||||
default: () => (
|
||||
<NBaseIcon clsPrefix={mergedClsPrefix}>
|
||||
{{
|
||||
default: () => <RemoveIcon />
|
||||
}}
|
||||
</NBaseIcon>
|
||||
)
|
||||
}}
|
||||
</NButton>,
|
||||
<NButton
|
||||
text
|
||||
disabled={!this.addable || this.disabled}
|
||||
focusable={false}
|
||||
builtinThemeOverrides={this.buttonThemeOverrides}
|
||||
onClick={this.handleAddClick}
|
||||
ref="addButtonInstRef"
|
||||
>
|
||||
{{
|
||||
default: () => (
|
||||
<NBaseIcon clsPrefix={mergedClsPrefix}>
|
||||
{{
|
||||
default: () => <AddIcon />
|
||||
}}
|
||||
</NBaseIcon>
|
||||
)
|
||||
}}
|
||||
</NButton>
|
||||
]
|
||||
}
|
||||
: null}
|
||||
</NInput>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user