当前位置:网站首页>Vant Weapp SwipeCell設置多個按鈕
Vant Weapp SwipeCell設置多個按鈕
2022-07-05 06:29: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>
边栏推荐
- Redis-01. First meet redis
- What is socket? Basic introduction to socket
- Dataframe (1): introduction and creation of dataframe
- 【高德地图POI踩坑】AMap.PlaceSearch无法使用
- 11-gorm-v2-03-basic query
- Leetcode backtracking method
- Knapsack problem acwing 9 Group knapsack problem
- 5.Oracle-表空间
- Using handler in a new thread
- 4.Oracle-重做日志文件管理
猜你喜欢
vsCode创建自己的代码模板
Day 2 document
‘mongoexport‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
[2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields
什么是套接字?Socket基本介绍
高斯消元 AcWing 884. 高斯消元解异或线性方程组
ollvm编译出现的问题纪录
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
5.Oracle-表空间
博弈论 AcWing 891. Nim游戏
随机推荐
1.手动创建Oracle数据库
How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
高斯消元 AcWing 884. 高斯消元解异或线性方程组
LSA Type Explanation - lsa-1 [type 1 LSA - router LSA] detailed explanation
MySQL advanced part 2: optimizing SQL steps
2022 winter vacation training game 5
LeetCode-61
AE tutorial - path growth animation
Package webapp or H5 pages into apps
求组合数 AcWing 887. 求组合数 III
Bit of MySQL_ OR、BIT_ Count function
MPLS experiment
4. Oracle redo log file management
The route of wechat applet jumps again without triggering onload
高斯消元 AcWing 884. 高斯消元解异或線性方程組
Getting started with typescript
C job interview - casting and comparing - C job interview - casting and comparing
How to correctly ask questions in CSDN Q & A
Interval problem acwing 906 Interval grouping
La redirection de l'applet Wechat ne déclenche pas onload