Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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