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