This repository was archived by the owner on Jan 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,6 @@ export default defineComponent({
9494 return ' 0'
9595 })
9696
97- // const computedBorderRadius = computed(() => convertToUnit(props.borderRadius))
98-
9997 return {
10098 styles ,
10199 classes ,
@@ -112,20 +110,23 @@ export default defineComponent({
112110
113111 --content-bg : var (--g-dialog-content-bg , #fff );
114112 --content-border-radius : var (--g-dialog-content-border-radius , 4px );
113+ --content-shadow :
114+ var (
115+ --g-dialog-content-shadow ,
116+ 0 11px 15px -7px rgb (0 0 0 / 20% ),
117+ 0 24px 38px 3px rgb (0 0 0 / 14% ),
118+ 0 9px 46px 8px rgb (0 0 0 / 12% )
119+ );
115120
116121 pointer-events : auto ;
117122 overflow-y : auto ;
118123 transition : 0.3s cubic-bezier (0.25 , 0.8 , 0.25 , 1 );
119124 width : 100% ;
120- z-index : inherit ;
121125 background : v-bind (' computedBackground' );
122126 border-radius : v-bind (' computedBorderRadius' );
123127
124128 & :not (#{$dialog}--depressed) {
125- box-shadow :
126- 0 11px 15px -7px rgb (0 0 0 / 20% ),
127- 0 24px 38px 3px rgb (0 0 0 / 14% ),
128- 0 9px 46px 8px rgb (0 0 0 / 12% );
129+ box-shadow : var (--content-shadow )
129130 }
130131
131132 & :not (#{$dialog}--fullscreen) {
You can’t perform that action at this time.
0 commit comments