自定义逻辑修改

master
于肖磊 2024-10-12 17:44:32 +08:00
parent 01087ac61a
commit 0ec279e305
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<view :style="style_container + 'height:' + form.height * 2 + 'rpx;'">
<view :style="style_container + 'height:' + form.height * scale + 'px;'">
<view class="custom-container wh-auto ht-auto" :style="style_img_container">
<view class="wh-auto ht-auto pr">
<view v-for="item in form.custom_list" :key="item.id" class="main-content"
@ -68,6 +68,7 @@ export default {
computed: {
get_percentage_count() {
return (num, container_size) => {
// console.log(num);
return num * this.scale + 'px';
};
},
@ -93,6 +94,7 @@ export default {
query
.select('.custom-container')
.boundingClientRect((res) => {
console.log(res);
if ((res || null) != null) {
this.setData({
div_width: res.width,