fixed #397
This commit is contained in:
parent
f4e462c051
commit
e2affe49cf
3 changed files with 13 additions and 5 deletions
|
@ -1,7 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="width: 300px;">
|
<div style="width: 300px;">
|
||||||
<i-input v-model="value11">
|
|
||||||
</i-input>
|
|
||||||
<i-input v-model="value11" icon="ios-clock-outline">
|
<i-input v-model="value11" icon="ios-clock-outline">
|
||||||
<span slot="prepend">.com</span>
|
<span slot="prepend">.com</span>
|
||||||
</i-input>
|
</i-input>
|
||||||
|
|
|
@ -119,6 +119,8 @@
|
||||||
[`${prefixCls}-type`]: this.type,
|
[`${prefixCls}-type`]: this.type,
|
||||||
[`${prefixCls}-group`]: this.prepend || this.append,
|
[`${prefixCls}-group`]: this.prepend || this.append,
|
||||||
[`${prefixCls}-group-${this.size}`]: (this.prepend || this.append) && !!this.size,
|
[`${prefixCls}-group-${this.size}`]: (this.prepend || this.append) && !!this.size,
|
||||||
|
[`${prefixCls}-group-with-prepend`]: this.prepend,
|
||||||
|
[`${prefixCls}-group-with-append`]: this.append,
|
||||||
[`${prefixCls}-hide-icon`]: this.append // #554
|
[`${prefixCls}-hide-icon`]: this.append // #554
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -124,9 +124,17 @@
|
||||||
> .@{inputClass} {
|
> .@{inputClass} {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
|
|
||||||
&:not(:first-child):not(:last-child) {
|
//&:not(:first-child):not(:last-child) {
|
||||||
border-radius: 0;
|
// border-radius: 0;
|
||||||
}
|
//}
|
||||||
|
}
|
||||||
|
&-with-prepend .@{inputClass} {
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
}
|
||||||
|
&-with-append .@{inputClass} {
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-prepend .@{css-prefix}btn,
|
&-prepend .@{css-prefix}btn,
|
||||||
|
|
Loading…
Add table
Reference in a new issue