mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [dialog] fix type error (#8898)
* fix(components): [dialog] fix type error * fix(components): [dialog] use const assertion
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user