修改数据魔方显示

v1.0.0
于肖磊 2024-10-21 13:59:57 +08:00
parent 2d46c9ee8b
commit 5124e92d39
1 changed files with 5 additions and 3 deletions

View File

@ -57,10 +57,12 @@ const state = reactive({
});
// 使toRefs
const { form, new_style } = toRefs(state);
const outer_spacing = computed(() => (new_style.value?.image_spacing || 0) + 'px');
const outer_sx = computed(() => -((new_style.value?.image_spacing || 0) / 2) + 'px');
const new_style_spacing = computed(() => form.value.style_actived === 10 ? 0 : (new_style.value?.image_spacing || 0));
const outer_spacing = computed(() => new_style_spacing.value + 'px');
const outer_sx = computed(() => -(new_style_spacing.value / 2) + 'px');
//
const spacing = computed(() => (new_style.value?.image_spacing || 0) / 2 + 'px');
const spacing = computed(() => new_style_spacing.value / 2 + 'px');
//
const content_img_radius = computed(() => radius_computer(new_style.value));
//#region