mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-22 11:59:46 +08:00
24 lines
431 B
JavaScript
24 lines
431 B
JavaScript
import { createNamespace } from '../utils';
|
|
import { ParentMixin } from '../mixins/relation';
|
|
|
|
const [createComponent, bem] = createNamespace('sidebar');
|
|
|
|
export default createComponent({
|
|
mixins: [ParentMixin('vanSidebar')],
|
|
|
|
model: {
|
|
prop: 'activeKey',
|
|
},
|
|
|
|
props: {
|
|
activeKey: {
|
|
type: [Number, String],
|
|
default: 0,
|
|
},
|
|
},
|
|
|
|
render() {
|
|
return <div class={bem()}>{this.slots()}</div>;
|
|
},
|
|
});
|