mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
fix(ui): 页面style没有响应式了
This commit is contained in:
parent
c8d6a4f4d1
commit
81a221e561
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div v-if="display(config)" :id="`${config.id}`" :class="className" :style="style">
|
||||
<div v-if="display(config)" :id="`${config.id}`" :class="className" :style="app?.transformStyle(config.style || {})">
|
||||
<slot>
|
||||
<template v-for="item in config.items">
|
||||
<component
|
||||
@ -27,7 +27,7 @@ const props = withDefaults(defineProps<UiComponentProps<MContainer>>(), {
|
||||
model: () => ({}),
|
||||
});
|
||||
|
||||
const { style, display, app } = useApp({
|
||||
const { display, app } = useApp({
|
||||
config: props.config,
|
||||
methods: {},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user