| | |
| | | </el-form-item> |
| | | <el-form-item label="导航背景"> |
| | | <el-radio-group v-model="formData!.style.bgType"> |
| | | <el-radio-button label="color">纯色</el-radio-button> |
| | | <el-radio-button label="img">图片</el-radio-button> |
| | | <el-radio-button value="color">纯色</el-radio-button> |
| | | <el-radio-button value="img">图片</el-radio-button> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="选择颜色" v-if="formData!.style.bgType === 'color'"> |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { TabBarProperty, THEME_LIST } from './config' |
| | | import { TabBarProperty, component, THEME_LIST } from './config' |
| | | import { usePropertyForm } from '@/components/DiyEditor/util' |
| | | // 底部导航栏 |
| | | defineOptions({ name: 'TabBarProperty' }) |
| | |
| | | const emit = defineEmits(['update:modelValue']) |
| | | const { formData } = usePropertyForm(props.modelValue, emit) |
| | | |
| | | // 将数据库的值更新到右侧属性栏 |
| | | component.property.items = formData.value.items |
| | | |
| | | // 要的主题 |
| | | const handleThemeChange = () => { |
| | | const theme = THEME_LIST.find((theme) => theme.id === formData.value.theme) |