Browse Source

InputNumber: fix style when `controls-position` is right (#13052)

hetech 6 năm trước cách đây
mục cha
commit
9e6cdd788c

+ 1 - 1
examples/docs/zh-CN/slider.md

@@ -107,7 +107,7 @@
 
 选项可以是离散的
 
-:::demo 改变`step`的值可以改变步长,通过设置`show-step`属性可以显示间断点
+:::demo 改变`step`的值可以改变步长,通过设置`show-stops`属性可以显示间断点
 ```html
 <template>
   <div class="block">

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

@@ -143,7 +143,7 @@
         }
       },
       controlsAtRight() {
-        return this.controlsPosition === 'right';
+        return this.controls && this.controlsPosition === 'right';
       },
       _elFormItemSize() {
         return (this.elFormItem || {}).elFormItemSize;