当前位置:网站首页>uniapp movable-view表格缩放过程想保持容器高度不变的解决办法
uniapp movable-view表格缩放过程想保持容器高度不变的解决办法
2022-07-29 00:15:00 【anne都】
onScale: function(e) {
this.isCanClick = false;
console.log('缩放倍数',e.detail.scale);
//tablebasicHeight表格原始高度。 tableHeightCur更新后高度
this.tableHeightCur= this.tablebasicHeight/e.detail.scale;
console.log('更新后高度',this.tableHeightCur)
},
ps:假如原始表体高度是:400px;
缩小0.5倍数后:高度是200px;
我们想保持容器在400px,就得去设置原始表体高度为400/0.5,得到800px;这样缩小后的高度才能是800*0.5=400px,保持原始高度
边栏推荐
- C language bracket matching (stack bracket matching C language)
- 线程锁及锁的升降级
- Closures and decorators
- Transfer: cognitive subculture
- 写作作业一
- Mathematical modeling and detailed explanation of basic knowledge (common knowledge points of Chemistry)
- 【unity】将unity编辑c#配置为vscode
- Hilbert 变换与瞬时频率
- Seven marketing strategies of NFT project
- SystemVerilog-连接和复制运算符
猜你喜欢

Day2:三种语言暴刷牛客130题

状态压缩dp-蒙德里安的梦想

Wechat campus bathroom reservation applet graduation design finished product (8) graduation design thesis template

深度学习 | MATLAB实现TCN时间卷积神经网络spatialDropoutLayer参数描述

如何在WordPress中创建一个自定义404错误页面
![[target detection] Introduction to yolor theory + practical test visdrone data set](/img/cd/3cb13d6d79cd207c6d637af7756ffc.png)
[target detection] Introduction to yolor theory + practical test visdrone data set

nep 2022 cat
![“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“](/img/f2/37a1e65eb1104d72128f96fc5d9c85.png)
“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“

Flink SQL Hudi 实战

A new generation of ultra safe cellular battery, Sihao aipao, is on the market, starting from 139900
随机推荐
Brushless DC motor controller (how much is the hall charge for changing the motor)
How to check the redis Version (check the redis process)
Inftnews | yuanuniverse shopping experience will become a powerful tool to attract consumers
Flask project architecture (First Edition
20220728-不纯为数字的字符串排序
Dart array, map, type judgment, conditional judgment operator, type conversion
Charles -- 从0-1教你如何使用抓包工具
Recursion and divide and conquer
Deep learning | matlab implementation of TCN time convolution neural network spatialdropoutlayer parameter description
SystemVerilog join and copy operators
“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“
Solid smart contract tutorial (5) -nft auction contract
Summary of process and thread knowledge points 1
js判断 数组/对象数组 1 是否包含数组/对象数组 2
SystemVerilog-连接和复制运算符
FLV文件简介
Interview shock 69: is TCP reliable? Why?
Naver 三方登录
Self-attention neural architecture search for semantic image segmentation
Tupu software appeared at the 2022 Fuzhou digital Expo to jointly create a new digital era