:close-on-click-modal="false" :close-on-press-escape="pressEscape" append-to-body :direction="direction" :destroy-on-close="destroyOnClose" @closed="handleClose" > <slot></slot> </el-drawer> </template> export default { name: "baseDraw", props: { title: { type: String, defaul...
Create an el-drawer component without visible.sync Adddestroy-on-close="true" Add abefore-closemethod that does some pre-close work and then closes the drawer Add a component inside the drawer that holds some sort of state, so you can see if it has been destroyed the next time you open...
问题:点击打开抽屉组件时,时间选择器(或选择器类)下拉框会自动弹出,如图所示: 本人探索了两个方法,先只上最简单暴力的办法!解决办法:1.在选择器上加上disabled属性。 <el-drawer size="25%" class="car-drawer" :wrapperClosable="false" :visible="drawerVisible" :destroy-on-close="true" :append-to-...
一、参数modal设置为false会导致弹窗无法正常展示 代码 <el-drawer title="我是标题" v-model="drawer" :direction="direction" :modal="false" :before-close="handleClose" destroy-on-close> 我来啦! </el-drawer> 通过官网的调试功能,和目前我个人代码中的环境都会产生问题。 版本:^1.0.1-beta...
drawer.value?.isOpen() }//抽屉修改或新增事件完成后重新调用查询接口刷新父组件const subData = (val) =>{ getEmployee() } 子组件 <template> <el-drawer v-model="isShow":direction="direction":before-close="handleClose":destroy-on-close="true"custom-class="drawer-box" ...