Skip to content

Commit

Permalink
fix(ui): 页面style没有响应式了
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Aug 1, 2024
1 parent c8d6a4f commit 81a221e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/container/src/Container.vue
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -27,7 +27,7 @@ const props = withDefaults(defineProps<UiComponentProps<MContainer>>(), {
model: () => ({}),
});
const { style, display, app } = useApp({
const { display, app } = useApp({
config: props.config,
methods: {},
});
Expand Down

0 comments on commit 81a221e

Please sign in to comment.