From 3e9b724ea5789ef4e77f39bf8deb3eeb0bdeaf62 Mon Sep 17 00:00:00 2001 From: xingyu Date: Mon, 11 Sep 2023 17:53:28 +0800 Subject: [PATCH] fix: use rootClassName --- src/components/Drawer/src/BasicDrawer.vue | 12 +++++++----- src/components/Drawer/src/typing.ts | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) 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() {