当前位置:网站首页>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>
边栏推荐
- LeetCode-54
- Single chip computer engineering experience - layered idea
- MySQL advanced part 2: MySQL architecture
- 背包问题 AcWing 9. 分组背包问题
- __ builtin_ Popcount() counts the number of 1s, which are commonly used in bit operations
- Find the combination number acwing 888 Find the combination number IV
- 1.15 - input and output system
- [wustctf2020] plain_ WP
- TCP's understanding of three handshakes and four waves
- How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
猜你喜欢
博弈论 AcWing 894. 拆分-Nim游戏
[wustctf2020] plain_ WP
【LeetCode】Easy | 20. Valid parentheses
MySQL advanced part 2: SQL optimization
Leetcode-6110: number of incremental paths in the grid graph
Quickly use Amazon memorydb and build your own redis memory database
Leetcode-6111: spiral matrix IV
SQL三种连接:内连接、外连接、交叉连接
MySQL advanced part 2: the use of indexes
4. Oracle redo log file management
随机推荐
5.Oracle-表空间
What is socket? Basic introduction to socket
Nested method, calculation attribute is not applicable, use methods
ADG5412FBRUZ-RL7应用 双电源模拟开关和多路复用器IC
【LeetCode】Day94-重塑矩阵
博弈论 AcWing 891. Nim游戏
Gaussian elimination acwing 884 Gauss elimination for solving XOR linear equations
[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian
Leetcode-6109: number of people who know secrets
Day 2 document
MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
1.14 - assembly line
[moviepy] unable to find a solution for exe
[leetcode] day94 reshape matrix
Simple selection sort of selection sort
Leetcode divide and conquer / dichotomy
论文阅读报告
Game theory acwing 892 Steps Nim game
Inclusion exclusion principle acwing 890 Divisible number
WordPress switches the page, and the domain name changes back to the IP address