import Drawer from '../src/index' import Button from '../../button/index' import '../assets/index.less' import '../../menu/style/index' import '../../icon/style/index' import '../../button/style/index' export default { data () { return { open: false, openChild: false, openChildren: false, } }, methods: { onClick () { this.open = !this.open }, onChildClick () { this.openChild = !this.openChild }, onChildrenClick () { this.openChildren = !this.openChildren }, getLevelMove (e) { const target = e.target if (target.className === 'drawer1') { return [200, 100] } return 100 }, }, render () { return (
二级抽屉
三级抽屉
) }, }