当前位置:网站首页>Vant Weapp SwipeCell设置多个按钮
Vant Weapp SwipeCell设置多个按钮
2022-07-05 06:23:00 【Heerey525】
情况
在weapp文档中没有看到设置两个按钮的代码
遗憾的是找了一圈其实没有发现有人给出解决方案
解决方案
在控制台看到其实在<view slot="right">
宽度不够,并不是第二个按钮出不来。
发现有right-width
这个属性,把right-width
变大就可以容纳更多按钮了
代码
<van-swipe-cell right-width="{
{ 130 }}" left-width="{
{ 65 }}">
<view slot="left">选择</view>
<van-cell-group>
<van-cell title="单元格" value="内容" />
</van-cell-group>
<view slot="right">
<van-button type="primary" >编辑</van-button>
<van-button type="danger" >删除</van-button>
</view>
</van-swipe-cell>
边栏推荐
- June 29, 2022 daily
- Design specification for mobile folding screen
- FFmpeg build下载(包含old version)
- MySQL advanced part 1: View
- How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
- [learning] database: MySQL query conditions have functions that lead to index failure. Establish functional indexes
- 2048 project realization
- Basic explanation of typescript
- Traversal of leetcode tree
- [wustctf2020] plain_ WP
猜你喜欢
2021apmcm post game Summary - edge detection
ollvm编译出现的问题纪录
LeetCode-61
4.Oracle-重做日志文件管理
Find the combination number acwing 887 Find combination number III
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
中国剩余定理 AcWing 204. 表达整数的奇怪方式
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
Interval problem acwing 906 Interval grouping
7.Oracle-表结构
随机推荐
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
Leetcode-1200: minimum absolute difference
Chinese remainder theorem acwing 204 Strange way of expressing integers
Daily question 1189 Maximum number of "balloons"
阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
1.15 - input and output system
Find the combination number acwing 887 Find combination number III
3.Oracle-控制文件的管理
Leetcode-6111: spiral matrix IV
Currently clicked button and current mouse coordinates in QT judgment interface
MySQL advanced part 2: optimizing SQL steps
Leetcode-6110: number of incremental paths in the grid graph
2022/6/29-日报
June 29, 2022 daily
MySQL advanced part 1: View
Paper reading report
RecyclerView的应用
Simple selection sort of selection sort
__ builtin_ Popcount() counts the number of 1s, which are commonly used in bit operations
Sum of three terms (construction)