当前位置:网站首页>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 the process of configuring nccl and horovod in these two days (original)
- [leetcode] day94 reshape matrix
- Game theory acwing 891 Nim games
- 1. Create Oracle database manually
- Financial risk control practice -- feature derivation based on time series
- La redirection de l'applet Wechat ne déclenche pas onload
- Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022
- How to generate an image from text on fly at runtime
- How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
- AE tutorial - path growth animation
猜你喜欢

Install opencv -- CONDA to establish a virtual environment and add the kernel of this environment in jupyter

5. Oracle TABLESPACE

confidential! Netease employee data analysis internal training course, white whoring! (attach a data package worth 399 yuan)

MySQL advanced part 2: optimizing SQL steps

博弈论 AcWing 891. Nim游戏

Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022

International Open Source firmware Foundation (osff) organization

7.Oracle-表结构

5. Oracle tablespace

Paper reading report
随机推荐
[learning] database: several cases of index failure
LSA Type Explanation - lsa-5 (type 5 LSA - autonomous system external LSA) and lsa-4 (type 4 LSA - ASBR summary LSA) explanation
Knapsack problem acwing 9 Group knapsack problem
MySQL advanced part 2: storage engine
MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
Simple selection sort of selection sort
4.Oracle-重做日志文件管理
ADG5412FBRUZ-RL7应用 双电源模拟开关和多路复用器IC
The route of wechat applet jumps again without triggering onload
__ builtin_ Popcount() counts the number of 1s, which are commonly used in bit operations
H5 embedded app adapts to dark mode
2048 project realization
11-gorm-v2-02-create data
Traversal of leetcode tree
Redis-01.初识Redis
How to generate an image from text on fly at runtime
International Open Source firmware Foundation (osff) organization
Record of problems in ollvm compilation
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
MySQL advanced part 2: the use of indexes