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