fix(input): round border radius

This commit is contained in:
07akioni 2020-11-30 19:11:55 +08:00
parent 95593d90f3
commit 44b0efd9c5
3 changed files with 61 additions and 64 deletions

View File

@ -1,5 +1,6 @@
<template>
<div
ref="triggerRef"
:class="{
[`n-${mergedTheme}-theme`]: mergedTheme,
'n-date-picker--disabled': disabled,
@ -8,14 +9,11 @@
'n-date-picker--start-invalid': isStartValueInvalid,
'n-date-picker--end-invalid': isEndValueInvalid
}"
>
<v-binder>
<v-target>
<div
ref="triggerRef"
class="n-date-picker"
@keydown="handleKeyDown"
>
<v-binder>
<v-target>
<n-input
v-if="isRange"
ref="inputRef"
@ -73,7 +71,6 @@
</n-icon>
</template>
</n-input>
</div>
</v-target>
<v-follower
:show="active"

View File

@ -65,7 +65,7 @@ export default c([
cursor: 'not-allowed',
backgroundColor: colorDisabled
}, [
cE('state-border', {
cE('border', {
border: borderDisabled
}),
cE('input, textarea', {

View File

@ -97,7 +97,7 @@ export default c([
left: paddingLeft,
right: paddingRight
}),
cE('box-shadow, border', {
cE('box-shadow, border, state-border', {
borderRadius: roundBorderRadius
})
])