修改自定义高度处理

master
于肖磊 2024-10-19 18:27:04 +08:00
parent ed95f36600
commit 474d6163b5
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template>
<view :style="style_container + 'height:' + form.height * scale + 'px;'">
<view :style="style_container">
<view class="custom-container wh-auto ht-auto" :style="style_img_container">
<view class="wh-auto ht-auto pr">
<view class="wh-auto pr" :style="'height:' + form.height * scale + 'px;'">
<view v-for="(item, index) in form.custom_list" :key="item.id" class="main-content" :style="{ left: get_percentage_count(item.location.x, div_width), top: get_percentage_count(item.location.y, div_height), width: get_percentage_count(item.com_data.com_width, div_width), height: get_percentage_count(item.com_data.com_height, div_height), 'z-index': custom_list_length > 0 ? custom_list_length - index : 0 }">
<template v-if="item.key == 'text'">
<model-text :propKey="propKey" :propValue="item.com_data" :propScale="scale" :propSourceList="form.data_source_content" @url_event="url_event"></model-text>