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({
94
94
return ' 0'
95
95
})
96
96
97
- // const computedBorderRadius = computed(() => convertToUnit(props.borderRadius))
98
-
99
97
return {
100
98
styles ,
101
99
classes ,
@@ -112,20 +110,23 @@ export default defineComponent({
112
110
113
111
--content-bg : var (--g-dialog-content-bg , #fff );
114
112
--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
+ );
115
120
116
121
pointer-events : auto ;
117
122
overflow-y : auto ;
118
123
transition : 0.3s cubic-bezier (0.25 , 0.8 , 0.25 , 1 );
119
124
width : 100% ;
120
- z-index : inherit ;
121
125
background : v-bind (' computedBackground' );
122
126
border-radius : v-bind (' computedBorderRadius' );
123
127
124
128
& :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 )
129
130
}
130
131
131
132
& :not (#{$dialog}--fullscreen) {
You can’t perform that action at this time.
0 commit comments