Skip to content

Commit

Permalink
InputNumber: fix style when controls-position is right
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyoung committed Oct 15, 2018
1 parent efcfbdd commit faf30ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/docs/zh-CN/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

选项可以是离散的

:::demo 改变`step`的值可以改变步长,通过设置`show-step`属性可以显示间断点
:::demo 改变`step`的值可以改变步长,通过设置`show-stops`属性可以显示间断点
```html
<template>
<div class="block">
Expand Down
2 changes: 1 addition & 1 deletion packages/input-number/src/input-number.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
}
},
controlsAtRight() {
return this.controlsPosition === 'right';
return this.controls && this.controlsPosition === 'right';
},
_elFormItemSize() {
return (this.elFormItem || {}).elFormItemSize;
Expand Down

0 comments on commit faf30ea

Please sign in to comment.