当前位置:网站首页>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>
边栏推荐
- Inclusion exclusion principle acwing 890 Divisible number
- 2.Oracle-数据文件的添加及管理
- International Open Source firmware Foundation (osff) organization
- June 29, 2022 daily
- 博弈论 AcWing 893. 集合-Nim游戏
- 栈 AcWing 3302. 表达式求值
- TCP's understanding of three handshakes and four waves
- Stack acwing 3302 Expression evaluation
- 阿里新成员「瓴羊」正式亮相,由阿里副总裁朋新宇带队,集结多个核心部门技术团队
- Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
猜你喜欢
![[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis](/img/20/826cc9d514496955a557439881234d.jpg)
[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis

ADG5412FBRUZ-RL7应用 双电源模拟开关和多路复用器IC

Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne

Is it impossible for lamda to wake up?

安装OpenCV--conda建立虚拟环境并在jupyter中添加此环境的kernel

Single chip computer engineering experience - layered idea

P2575 master fight

Paper reading report

Doing SQL performance optimization is really eye-catching

4. Oracle redo log file management
随机推荐
MySQL advanced part 1: stored procedures and functions
Is it impossible for lamda to wake up?
LeetCode 1200. Minimum absolute difference
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
How to understand the definition of sequence limit?
Ffmpeg build download (including old version)
[2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields
Redis-01.初识Redis
Leetcode-556: the next larger element III
[wustctf2020] plain_ WP
[learning] database: MySQL query conditions have functions that lead to index failure. Establish functional indexes
[moviepy] unable to find a solution for exe
MySQL advanced part 2: optimizing SQL steps
求组合数 AcWing 889. 满足条件的01序列
MySQL advanced part 2: MySQL architecture
C - XOR to all (binary topic)
2048项目实现
Shutter web hardware keyboard monitoring
__ builtin_ Popcount() counts the number of 1s, which are commonly used in bit operations
2048 project realization