当前位置:网站首页>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>
边栏推荐
- Sum of three terms (construction)
- 安装OpenCV--conda建立虚拟环境并在jupyter中添加此环境的kernel
- MySQL advanced part 2: storage engine
- Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
- Sword finger offer II 058: schedule
- 【高德地图POI踩坑】AMap.PlaceSearch无法使用
- 4. Object mapping Mapster
- LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
- Inclusion exclusion principle acwing 890 Divisible number
- Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
猜你喜欢
1.15 - input and output system
[wustctf2020] plain_ WP
3.Oracle-控制文件的管理
ollvm编译出现的问题纪录
ADG5412FBRUZ-RL7应用 双电源模拟开关和多路复用器IC
5. Oracle tablespace
高斯消元 AcWing 884. 高斯消元解异或線性方程組
Leetcode stack related
将webApp或者H5页面打包成App
LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
随机推荐
3. Oracle control file management
Leetcode backtracking method
vsCode创建自己的代码模板
[moviepy] unable to find a solution for exe
Game theory acwing 892 Steps Nim game
容斥原理 AcWing 890. 能被整除的数
Find the combination number acwing 889 01 sequence meeting conditions
1.14 - assembly line
Leetcode-9: palindromes
栈 AcWing 3302. 表达式求值
Stack acwing 3302 Expression evaluation
博弈论 AcWing 892. 台阶-Nim游戏
[learning] database: several cases of index failure
4. Object mapping Mapster
5. Oracle tablespace
How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
Daily question 1189 Maximum number of "balloons"
How to generate an image from text on fly at runtime
【高德地图POI踩坑】AMap.PlaceSearch无法使用
MySQL advanced part 2: storage engine