mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
20 lines
419 B
JavaScript
20 lines
419 B
JavaScript
import { createNamespace } from '../utils';
|
|
import { ParentMixin } from '../mixins/relation';
|
|
|
|
const [createComponent, bem] = createNamespace('sidebar');
|
|
|
|
export default createComponent({
|
|
mixins: [ParentMixin('vanSidebar')],
|
|
|
|
props: {
|
|
activeKey: {
|
|
type: [Number, String],
|
|
default: 0
|
|
}
|
|
},
|
|
|
|
render(h) {
|
|
return <div class={[bem(), 'van-hairline--top-bottom']}>{this.slots()}</div>;
|
|
}
|
|
});
|