当前位置:网站首页>Vant weave swipecell sets multiple buttons
Vant weave swipecell sets multiple buttons
2022-07-05 06:26:00 【Heerey525】
situation
stay weapp There is no code to set two buttons in the document
Unfortunately, after looking around, I didn't find a solution
Solution
On the console, I see that in fact <view slot="right">
Width is not enough. , It's not that the second button doesn't come out .
Found to have right-width
This attribute , hold right-width
Bigger to accommodate more buttons
Code
<van-swipe-cell right-width="{
{ 130 }}" left-width="{
{ 65 }}">
<view slot="left"> choice </view>
<van-cell-group>
<van-cell title=" Cell " value=" Content " />
</van-cell-group>
<view slot="right">
<van-button type="primary" > edit </van-button>
<van-button type="danger" > Delete </van-button>
</view>
</van-swipe-cell>
边栏推荐
- 3.Oracle-控制文件的管理
- TypeScript入门
- Sword finger offer II 058: schedule
- [moviepy] unable to find a solution for exe
- Game theory acwing 891 Nim games
- 4. 对象映射 - Mapping.Mapster
- confidential! Netease employee data analysis internal training course, white whoring! (attach a data package worth 399 yuan)
- MySQL advanced part 1: index
- Daily question 1189 Maximum number of "balloons"
- 阿里新成员「瓴羊」正式亮相,由阿里副总裁朋新宇带队,集结多个核心部门技术团队
猜你喜欢
SQL三种连接:内连接、外连接、交叉连接
MySQL advanced part 2: MySQL architecture
Inclusion exclusion principle acwing 890 Divisible number
Game theory acwing 892 Steps Nim game
LeetCode 0107. Sequence traversal of binary tree II - another method
Leetcode stack related
Paper reading report
[moviepy] unable to find a solution for exe
【LeetCode】Easy | 20. Valid parentheses
What is socket? Basic introduction to socket
随机推荐
What's wrong with this paragraph that doesn't work? (unresolved)
Client use of Argo CD installation
In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
1.14 - assembly line
__ builtin_ Popcount() counts the number of 1s, which are commonly used in bit operations
Leetcode-1200: minimum absolute difference
求组合数 AcWing 889. 满足条件的01序列
MySQL advanced part 1: triggers
MySQL advanced part 2: the use of indexes
5. Oracle tablespace
Simple selection sort of selection sort
TypeScript 基础讲解
【LeetCode】Day95-有效的数独&矩阵置零
1.13 - RISC/CISC
3.Oracle-控制文件的管理
confidential! Netease employee data analysis internal training course, white whoring! (attach a data package worth 399 yuan)
MySQL advanced part 1: stored procedures and functions
Idea debug failed
Leetcode dynamic programming
Paper reading report