vr-uniapp/src/components/model-data-magic/model-data-magic-styles.vue

46 lines
1.2 KiB
Vue
Raw Normal View History

2024-08-13 02:48:05 +00:00
<template>
<div class="w">
<el-form :model="form" label-width="70">
2024-08-29 07:23:52 +00:00
<card-container>
2024-08-26 08:51:20 +00:00
<div class="mb-12">数据魔方</div>
<el-form-item label="数据间距">
2024-08-13 02:48:05 +00:00
<slider v-model="form.image_spacing" :max="100"></slider>
</el-form-item>
<el-form-item label="数据圆角">
2024-12-31 06:33:25 +00:00
<radius :value="form.data_radius"></radius>
2024-08-13 02:48:05 +00:00
</el-form-item>
</card-container>
</el-form>
2024-08-29 07:23:52 +00:00
<div class="bg-f5 divider-line" />
2024-08-13 02:48:05 +00:00
<common-styles :value="form.common_style" @update:value="common_style_update" />
</div>
</template>
<script setup lang="ts">
import { pick } from 'lodash';
const props = defineProps({
value: {
type: Object,
default: () => ({}),
}
});
// 默认值
const state = reactive({
form: props.value
});
// 如果需要解构确保使用toRefs
const { form } = toRefs(state);
const common_style_update = (value: any) => {
form.value.common_style = value;
};
</script>
<style lang="scss" scoped>
.topic {
:deep(.el-form-item__content) {
align-items: flex-start;
flex-direction: column;
}
}
</style>