当前位置:网站首页>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,保持原始高度
边栏推荐
- SystemVerilog join and copy operators
- Synchronized keyword details
- 时序预测 | MATLAB实现TCN时间卷积神经网络的时间序列预测
- Introduction to FLV documents
- B+ tree~
- Django使用MySQL数据库已经存在的数据表方法
- Mathematical modeling and detailed explanation of basic knowledge (common knowledge points of Chemistry)
- 【idea】查询字段使用位置
- Solid smart contract tutorial (5) -nft auction contract
- [Commons lang3 topic] 001 stringutils topic
猜你喜欢

Flink SQL Hudi 实战

一文让你搞懂MYSQL底层原理。-内部结构、索引、锁、集群

如何执行建设项目的时间影响分析?

ACM SIGIR 2022 | 美团技术团队精选论文解读

一元函数积分学之1__不定积分

Expression evaluation

SystemVerilog-连接和复制运算符

QT static compiler (MinGW compilation)
![“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“](/img/f2/37a1e65eb1104d72128f96fc5d9c85.png)
“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“

18 diagrams, intuitive understanding of neural networks, manifolds and topologies
随机推荐
Canal real-time parsing MySQL binlog data practice
新一代超安全蜂窝电池,思皓爱跑上市,13.99万起售
【ManageEngine】助力哈尔滨工程大学实现网络流量一体化监控管理
教你一文解决 js 数字精度丢失问题
[ManageEngine] help Harbin Engineering University realize integrated monitoring and management of network traffic
(update 20211130) about the download and installation of Jupiter notebook and its own configuration and theme
Self made | a 16 bit RISC architecture CPU is self-made by hand
Consumer unit
Wechat campus bathroom reservation for the finished product of applet graduation design (7) mid term inspection report
Classification prediction | MATLAB realizes time series classification prediction of TCN time convolution neural network
SystemVerilog join and copy operators
Principle and usage setting of large page memory
Oozie job scheduling
电子招标初学者指南
How to carry out engineering implementation of DDD Domain Driven Design
图扑软件亮相 2022 福州数博会,携手共创数字新时代
【Jenkins笔记】入门,自由空间;持续集成企业微信;allure报告,持续集成电子邮件通知;构建定时任务
mysql分表之后怎么平滑上线?
Wechat campus bathroom reservation of small program completion work (6) opening defense ppt
线程锁及锁的升降级