fix(components): [dialog] fix type error (#8898)

* fix(components): [dialog] fix type error

* fix(components): [dialog] use const assertion
This commit is contained in:
LIUCHAO
2022-07-20 21:46:18 +08:00
committed by GitHub
parent 5f041f47a8
commit d3291e3fc4

View File

@@ -1,4 +1,3 @@
// @ts-nocheck
import {
computed,
getCurrentInstance,
@@ -45,7 +44,7 @@ export const useDialog = (
const style = computed<CSSProperties>(() => {
const style: CSSProperties = {}
const varPrefix = `--${namespace.value}-dialog`
const varPrefix = `--${namespace.value}-dialog` as const
if (!props.fullscreen) {
if (props.top) {
style[`${varPrefix}-margin-top`] = props.top