当前位置:网站首页>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>
边栏推荐
- Record of problems in ollvm compilation
- Relevant information of National Natural Science Foundation of China
- Vant weave swipecell sets multiple buttons
- Redis-02.Redis命令
- 博弈论 AcWing 891. Nim游戏
- 2. Addition and management of Oracle data files
- How to correctly ask questions in CSDN Q & A
- Redis-02. Redis command
- Record the process of configuring nccl and horovod in these two days (original)
- MySQL advanced part 2: optimizing SQL steps
猜你喜欢
[wustctf2020] plain_ WP
MySQL advanced part 2: storage engine
TCP's understanding of three handshakes and four waves
Redis-01. First meet redis
Client use of Argo CD installation
容斥原理 AcWing 890. 能被整除的数
MPLS experiment
Game theory acwing 892 Steps Nim game
Package webapp or H5 pages into apps
5. Oracle TABLESPACE
随机推荐
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
There are three kinds of SQL connections: internal connection, external connection and cross connection
2022-5-the fourth week daily
[Chongqing Guangdong education] National Open University 2018 autumn 0702-22t contemporary Chinese political system reference questions
Game theory acwing 891 Nim games
什么是套接字?Socket基本介绍
[BMZCTF-pwn] ectf-2014 seddit
H5 embedded app adapts to dark mode
1. Create Oracle database manually
Single chip computer engineering experience - layered idea
3. Oracle control file management
__ builtin_ Popcount() counts the number of 1s, which are commonly used in bit operations
Speedtree01 generator properties
Using handler in a new thread
Vscode creates its own code template
Winter vacation water test 1 Summary
MPLS experiment
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
2. Addition and management of Oracle data files
Presentation of attribute value of an item