当前位置:网站首页>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>
边栏推荐
- In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
- 博弈论 AcWing 894. 拆分-Nim游戏
- 论文阅读报告
- How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
- AE tutorial - path growth animation
- MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
- 5. Oracle TABLESPACE
- Currently clicked button and current mouse coordinates in QT judgment interface
- 1.15 - input and output system
- TypeScript 基础讲解
猜你喜欢
博弈论 AcWing 893. 集合-Nim游戏
LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
Game theory acwing 894 Split Nim game
Design specification for mobile folding screen
[moviepy] unable to find a solution for exe
Leetcode array operation
高斯消元 AcWing 884. 高斯消元解异或線性方程組
7.Oracle-表结构
ollvm编译出现的问题纪录
阿里新成员「瓴羊」正式亮相,由阿里副总裁朋新宇带队,集结多个核心部门技术团队
随机推荐
Dataframe (1): introduction and creation of dataframe
[2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields
7.Oracle-表结构
Inclusion exclusion principle acwing 890 Divisible number
FFmpeg build下载(包含old version)
How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
1.13 - RISC/CISC
Chinese remainder theorem acwing 204 Strange way of expressing integers
Leetcode-9: palindromes
博弈论 AcWing 892. 台阶-Nim游戏
高斯消元 AcWing 884. 高斯消元解异或線性方程組
[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian
Basic explanation of typescript
Leetcode dynamic programming
Daily question 1189 Maximum number of "balloons"
11-gorm-v2-03-basic query
Usage scenarios of golang context
MySQL advanced part 2: the use of indexes
TCP's understanding of three handshakes and four waves
[rust notes] 16 input and output (Part 2)