[improvement] add constant of border (#4078)

This commit is contained in:
neverland
2019-08-09 14:15:49 +08:00
committed by GitHub
parent 4cba618792
commit 24f5a91cd3
41 changed files with 88 additions and 57 deletions
+2 -3
View File
@@ -1,5 +1,6 @@
import { createNamespace } from '../utils';
import { inherit } from '../utils/functional';
import { BORDER_SURROUND } from '../utils/constant';
// Types
import { CreateElement, RenderContext } from 'vue/types';
@@ -46,9 +47,7 @@ function Tag(
style={style}
class={[
bem([classes, type]),
{
'van-hairline--surround': plain
}
{ [BORDER_SURROUND]: plain }
]}
{...inherit(ctx, true)}
>