修改自定义高度处理

v1.0.0
于肖磊 2024-10-19 18:28:09 +08:00
parent 960e550aca
commit 8c015b4d78
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template>
<div ref="container" class="custom-other" :style="style_container">
<div ref="container" :style="style_container">
<div class="w h" :style="style_img_container">
<div class="w h re">
<div class="w h re custom-other">
<div v-for="(item, index) in form.custom_list" :key="item.id" class="main-content" :style="{'left': percentage_count(item.location.x * scale, div_width) , 'top': percentage_count(item.location.y * scale, form.height), 'width': percentage_count(item.com_data.com_width * scale, div_width), 'height': percentage_count(item.com_data.com_height * scale, form.height), 'z-index': (form.custom_list.length - 1) - index}">
<template v-if="item.key == 'text'">
<model-text :key="item.com_data" :value="item.com_data" :scale="scale" :source-list="form.data_source_content" :is-percentage="true"></model-text>