当前位置:网站首页>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>
边栏推荐
- MySQL advanced part 2: the use of indexes
- MySQL advanced part 1: stored procedures and functions
- 区间问题 AcWing 906. 区间分组
- Game theory acwing 893 Set Nim game
- 高斯消元 AcWing 884. 高斯消元解异或线性方程组
- What's wrong with this paragraph that doesn't work? (unresolved)
- MySQL advanced part 2: storage engine
- 【高德地图POI踩坑】AMap.PlaceSearch无法使用
- [QT] QT multithreading development qthread
- LeetCode-54
猜你喜欢
P2575 master fight
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
Game theory acwing 892 Steps Nim game
ollvm编译出现的问题纪录
Quickly use Amazon memorydb and build your own redis memory database
Find the combination number acwing 887 Find combination number III
How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian
3. Oracle control file management
随机推荐
[wustctf2020] plain_ WP
Paper reading report
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
Leetcode-6108: decrypt messages
3. Oracle control file management
Daily question 1189 Maximum number of "balloons"
One question per day 1020 Number of enclaves
New title of module a of "PanYun Cup" secondary vocational network security skills competition
MySQL advanced part 1: stored procedures and functions
1.手动创建Oracle数据库
区间问题 AcWing 906. 区间分组
[leetcode] day94 reshape matrix
Find the combination number acwing 887 Find combination number III
Dataframe (1): introduction and creation of dataframe
栈 AcWing 3302. 表达式求值
LeetCode-54
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
1.14 - assembly line
Leetcode-1200: minimum absolute difference