修改数据魔方显示
parent
2d46c9ee8b
commit
5124e92d39
|
|
@ -57,10 +57,12 @@ const state = reactive({
|
||||||
});
|
});
|
||||||
// 如果需要解构,确保使用toRefs
|
// 如果需要解构,确保使用toRefs
|
||||||
const { form, new_style } = toRefs(state);
|
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));
|
const content_img_radius = computed(() => radius_computer(new_style.value));
|
||||||
//#region 容器大小计算
|
//#region 容器大小计算
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue