Skip to content

Commit faf30ea

Browse files
committed
InputNumber: fix style when controls-position is right
1 parent efcfbdd commit faf30ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/docs/zh-CN/slider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
选项可以是离散的
109109

110-
:::demo 改变`step`的值可以改变步长,通过设置`show-step`属性可以显示间断点
110+
:::demo 改变`step`的值可以改变步长,通过设置`show-stops`属性可以显示间断点
111111
```html
112112
<template>
113113
<div class="block">

packages/input-number/src/input-number.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
}
144144
},
145145
controlsAtRight() {
146-
return this.controlsPosition === 'right';
146+
return this.controls && this.controlsPosition === 'right';
147147
},
148148
_elFormItemSize() {
149149
return (this.elFormItem || {}).elFormItemSize;

0 commit comments

Comments
 (0)