File tree 2 files changed +3
-4
lines changed
layouts/components/AppSetting
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ function handleCopy() {
49
49
</script >
50
50
51
51
<template >
52
- <FaDrawer v-model =" isShow" title =" 应用配置" description =" 在生产环境中应关闭该模块" :footer =" isSupported" >
52
+ <FaDrawer v-model =" isShow" title =" 应用配置" description =" 在生产环境中应关闭该模块" :footer =" isSupported" content-class = " sm:min-w-md " >
53
53
<div class =" rounded-2 bg-rose/20 px-4 py-2 text-sm/6 c-rose" >
54
54
应用配置可实时预览效果,但只是临时生效,要想真正应用于项目,可以点击下方的「复制配置」按钮,并将配置粘贴到 src/settings.ts 文件中。
55
55
</div >
Original file line number Diff line number Diff line change @@ -36,9 +36,8 @@ const props = withDefaults(
36
36
footer? : boolean
37
37
closeOnClickOverlay? : boolean
38
38
closeOnPressEscape? : boolean
39
- class? : HTMLAttributes [' class' ]
40
- headerClass? : HTMLAttributes [' class' ]
41
39
contentClass? : HTMLAttributes [' class' ]
40
+ headerClass? : HTMLAttributes [' class' ]
42
41
footerClass? : HTMLAttributes [' class' ]
43
42
}>(),
44
43
{
@@ -139,7 +138,7 @@ function handleAnimationEnd() {
139
138
:open =" isOpen"
140
139
:overlay =" props.overlay"
141
140
:overlay-blur =" props.overlayBlur"
142
- class =" w-full flex flex-col gap-0 p-0"
141
+ : class =" cn(' w-full flex flex-col gap-0 p-0', props.contentClass) "
143
142
:side =" props.side"
144
143
@open-auto-focus =" handleFocusOutside"
145
144
@close-auto-focus =" handleFocusOutside"
You can’t perform that action at this time.
0 commit comments