[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

View File

@@ -1,4 +1,5 @@
import { createNamespace } from '../utils';
import { BORDER } from '../utils/constant';
import Icon from '../icon';
const [createComponent, bem] = createNamespace('step');
@@ -54,7 +55,7 @@ export default createComponent({
}
return (
<div class={['van-hairline', bem([direction, { [status]: status }])]}>
<div class={[BORDER, bem([direction, { [status]: status }])]}>
<div class={bem('title')} style={titleStyle}>
{this.slots()}
</div>