import Drawer from '../src/index'; import Menu from '../../menu/index'; import Icon from '../../icon/index'; import '../assets/index.less'; import '../../menu/style/index'; import '../../icon/style/index'; const SubMenu = Menu.SubMenu; const MenuItemGroup = Menu.ItemGroup; export default { data() { return { show: true, }; }, mounted() { this.$nextTick(() => { setTimeout(() => { // this.show = false }, 2000); }); }, render() { const drawerProps = { props: { wrapperClassName: 'drawer-wrapper', width: '20vw', }, slots: { handler: () => { return (
alert('click')}>
); }, }, }; return (
{this.show && ( Navigation One } > Option 1 Option 2 Option 3 Option 4 Navigation Two } > Option 5 Option 6 Option 7 Option 8 Navigation Three } > Option 9 Option 10 Option 11 Option 12 )}
内容区块
); }, };