diff --git a/src/components/Drawer/src/BasicDrawer.vue b/src/components/Drawer/src/BasicDrawer.vue index 43480dc0..9ff9469b 100644 --- a/src/components/Drawer/src/BasicDrawer.vue +++ b/src/components/Drawer/src/BasicDrawer.vue @@ -52,7 +52,7 @@ const getProps = computed((): DrawerProps => { opt.width = '100%' const detailCls = `${prefixCls}__detail` - opt.class = wrapClassName ? `${wrapClassName} ${detailCls}` : detailCls + opt.rootClassName = wrapClassName ? `${wrapClassName} ${detailCls}` : detailCls if (!getContainer) opt.getContainer = `.${prefixVar}-layout-content` as any @@ -133,9 +133,10 @@ function handleOk() {