修改数据魔方显示处理
parent
6aba63cc80
commit
6bc12640e6
|
|
@ -35,6 +35,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { get_math } from '@/utils';
|
||||||
import { isEmpty, cloneDeep } from 'lodash';
|
import { isEmpty, cloneDeep } from 'lodash';
|
||||||
// interface content {
|
// interface content {
|
||||||
// data_type: string;
|
// data_type: string;
|
||||||
|
|
@ -195,7 +196,10 @@ const onClickCubeItem = (event: any) => {
|
||||||
...cloneDeep(props.defaultContent),
|
...cloneDeep(props.defaultContent),
|
||||||
width: Math.round((props.cubeWidth / densityNum.value) * (selectingItem.end.x - selectingItem.start.x + 1))
|
width: Math.round((props.cubeWidth / densityNum.value) * (selectingItem.end.x - selectingItem.start.x + 1))
|
||||||
},
|
},
|
||||||
data_style: cloneDeep(props.defaultStyle),
|
data_style: {
|
||||||
|
...cloneDeep(props.defaultStyle),
|
||||||
|
carouselKey: get_math(),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
selectedItem = {
|
selectedItem = {
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,7 @@ const url_value_dialog_call_back = (item: any[]) => {
|
||||||
} else {
|
} else {
|
||||||
form.value.goods_list[data_list_replace_index.value] = {
|
form.value.goods_list[data_list_replace_index.value] = {
|
||||||
id: get_math(),
|
id: get_math(),
|
||||||
new_cover: [],
|
new_cover: form.value.goods_list[data_list_replace_index.value]?.new_cover || [],
|
||||||
new_title: '',
|
new_title: '',
|
||||||
data: item[0],
|
data: item[0],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue