File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/components/DiyEditor/components/mobile/TabBar Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 79
79
</template >
80
80
81
81
<script setup lang="ts">
82
- import { TabBarProperty , THEME_LIST } from ' ./config'
82
+ import { TabBarProperty , component , THEME_LIST } from ' ./config'
83
83
import { usePropertyForm } from ' @/components/DiyEditor/util'
84
84
// 底部导航栏
85
85
defineOptions ({ name: ' TabBarProperty' })
@@ -88,6 +88,9 @@ const props = defineProps<{ modelValue: TabBarProperty }>()
88
88
const emit = defineEmits ([' update:modelValue' ])
89
89
const { formData } = usePropertyForm (props .modelValue , emit )
90
90
91
+ // 将数据库的值更新到右侧属性栏
92
+ component .property .items = formData .value .items
93
+
91
94
// 要的主题
92
95
const handleThemeChange = () => {
93
96
const theme = THEME_LIST .find ((theme ) => theme .id === formData .value .theme )
You can’t perform that action at this time.
0 commit comments