mirror of
https://github.com/youzan/vant.git
synced 2026-05-07 01:01:01 +08:00
[improvement] add constant of border (#4078)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { createNamespace } from '../utils';
|
||||
import { ParentMixin } from '../mixins/relation';
|
||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||
|
||||
const [createComponent, bem] = createNamespace('sidebar');
|
||||
|
||||
@@ -18,6 +19,6 @@ export default createComponent({
|
||||
},
|
||||
|
||||
render() {
|
||||
return <div class={[bem(), 'van-hairline--top-bottom']}>{this.slots()}</div>;
|
||||
return <div class={[bem(), BORDER_TOP_BOTTOM]}>{this.slots()}</div>;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user