fix(input-number): peers theme can't be configured, closes #3422 (#3439)

This commit is contained in:
07akioni 2022-08-07 16:41:46 +08:00 committed by GitHub
parent 6b328680ba
commit e16223f1e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -9,6 +9,7 @@
- Fix `n-pagination`'s' `default-page-size` prop doesn't follows `page-sizes` prop, closes [#3369](https://github.com/TuSimple/naive-ui/issues/3369).
- Added `exports` field in package.json [#3410](https://github.com/TuSimple/naive-ui/pull/3410).
- Fix `n-dropdown` option prefix & suffix's z-index, closes [#3433](https://github.com/TuSimple/naive-ui/issues/3433).
- Fix `n-input-number`'s peers theme can't be configured, closes [#3422](https://github.com/TuSimple/naive-ui/issues/3422).
### Feats

View File

@ -9,6 +9,7 @@
- 修复 `n-pagination``default-page-size` 没有跟随 `page-sizes` prop关闭 [#3369](https://github.com/TuSimple/naive-ui/issues/3369)
- 在 package.json 中新增 `exports` [3410](https://github.com/TuSimple/naive-ui/pull/3410)
- 修复 `n-dropdown` 选项 prefix & suffix 的 z-index关闭 [#3433](https://github.com/TuSimple/naive-ui/issues/3433)
- 修复 `n-input-number` 中配置 peers 主题不生效,关闭 [#3422](https://github.com/TuSimple/naive-ui/issues/3422)
### Feats

View File

@ -620,6 +620,8 @@ export default defineComponent({
text
disabled={!this.minusable || this.mergedDisabled || this.readonly}
focusable={false}
theme={this.mergedTheme.peers.Button}
themeOverrides={this.mergedTheme.peerOverrides.Button}
builtinThemeOverrides={this.buttonThemeOverrides}
onClick={this.handleMinusClick}
onMousedown={this.handleMinusMousedown}
@ -644,6 +646,8 @@ export default defineComponent({
text
disabled={!this.addable || this.mergedDisabled || this.readonly}
focusable={false}
theme={this.mergedTheme.peers.Button}
themeOverrides={this.mergedTheme.peerOverrides.Button}
builtinThemeOverrides={this.buttonThemeOverrides}
onClick={this.handleAddClick}
onMousedown={this.handleAddMousedown}

View File

@ -1503,8 +1503,8 @@ export default defineComponent({
? resolveSlot(this.$slots.empty, () => [
<NEmpty
class={`${mergedClsPrefix}-tree__empty`}
theme={this.theme?.peers?.Empty}
themeOverrides={this.themeOverrides?.peers?.Empty}
theme={this.mergedTheme.peers.Empty}
themeOverrides={this.mergedTheme.peerOverrides.Empty}
/>
])
: fNodes.map(createNode)}