Commit e2affe49cf7f50c6864f3edbc673e81de1d50f00
1 parent
f4e462c0
fixed #397
Showing
3 changed files
with
13 additions
and
5 deletions
Show diff stats
examples/routers/input.vue
src/components/input/input.vue
| ... | ... | @@ -119,6 +119,8 @@ |
| 119 | 119 | [`${prefixCls}-type`]: this.type, |
| 120 | 120 | [`${prefixCls}-group`]: this.prepend || this.append, |
| 121 | 121 | [`${prefixCls}-group-${this.size}`]: (this.prepend || this.append) && !!this.size, |
| 122 | + [`${prefixCls}-group-with-prepend`]: this.prepend, | |
| 123 | + [`${prefixCls}-group-with-append`]: this.append, | |
| 122 | 124 | [`${prefixCls}-hide-icon`]: this.append // #554 |
| 123 | 125 | } |
| 124 | 126 | ]; | ... | ... |
src/styles/mixins/input.less
| ... | ... | @@ -124,9 +124,17 @@ |
| 124 | 124 | > .@{inputClass} { |
| 125 | 125 | display: table-cell; |
| 126 | 126 | |
| 127 | - &:not(:first-child):not(:last-child) { | |
| 128 | - border-radius: 0; | |
| 129 | - } | |
| 127 | + //&:not(:first-child):not(:last-child) { | |
| 128 | + // border-radius: 0; | |
| 129 | + //} | |
| 130 | + } | |
| 131 | + &-with-prepend .@{inputClass} { | |
| 132 | + border-top-left-radius: 0; | |
| 133 | + border-bottom-left-radius: 0; | |
| 134 | + } | |
| 135 | + &-with-append .@{inputClass} { | |
| 136 | + border-top-right-radius: 0; | |
| 137 | + border-bottom-right-radius: 0; | |
| 130 | 138 | } |
| 131 | 139 | |
| 132 | 140 | &-prepend .@{css-prefix}btn, | ... | ... |