当前位置:网站首页>Jvxetable增加自定义按钮
Jvxetable增加自定义按钮
2022-06-30 02:48:00 【OK_boom】
上一篇讲到如何动态让默认的一些按钮消失,这篇就讲一下如果实现在工具栏加入自定义按钮
查代码发现jvxetoolbar提供两个插槽,一个是prefix,一个是suffix,所以你可以在默认按钮前面或后面加上自己的自定义按钮都可以。
而prefix的插槽名为toolbarPrefix,suffix的插槽名为toolbarSuffix。
下面给出例子:
<j-vxe-table
keep-source
:ref="refKeys[1]"
:loading="smpOrderMtMainTable.loading"
:columns="smpOrderMtMainTable.columns"
:dataSource="smpOrderMtMainTable.dataSource"
:maxHeight="300"
:disabled="formDisabled"
:rowNumber="true"
:rowSelection="true"
:toolbar="true">
<a-popconfirm slot='toolbarSuffix' title="确定下单吗?" @confirm="()=>purchaseAssigned()">
<a-button>已下单待回</a-button>
</a-popconfirm>
</j-vxe-table>
边栏推荐
- Cmake tutorial series -05- options and variables
- What is an X.509 certificate? 10. 509 certificate working principle and application?
- 模板参数包和函数参数包
- JMeter obtains cookies across thread groups or JMeter thread groups share cookies
- Global and Chinese markets of liquid optical waveguides 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets for light cargo conveyors 2022-2028: Research Report on technology, participants, trends, market size and share
- Raii memory management
- Global and Chinese market of relay lens 2022-2028: Research Report on technology, participants, trends, market size and share
- Lua 基础知识
- Sitelock nine FAQs
猜你喜欢

FDA mail security solution

【postgres】postgres 数据库迁移

SSL证书七大常见错误及解决方法

Unity3d ugui force refresh of layout components

重磅来袭--UE5的开源数字孪生解决方案

Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)

福利抽奖 | 开源企业级监控Zabbix6.0都有哪些亮点

uniapp 地址转换经纬度

中断操作:AbortController学习笔记
![[on] [DSTG] dynamic spatiotemporalgraph revolutionary neural networks for traffic data impact](/img/c3/f9d6399c931a006ca295bb1e3ac427.png)
[on] [DSTG] dynamic spatiotemporalgraph revolutionary neural networks for traffic data impact
随机推荐
Welfare lottery | what are the highlights of open source enterprise monitoring zabbix6.0
Xunwei enzhipu ITop - imx6 Development Platform
福利抽奖 | 开源企业级监控Zabbix6.0都有哪些亮点
【npm】解决使用npm安装TypeORM的报错问题
2022年7月深圳地区CPDA数据分析师认证
Time complexity analysis
【postgres】postgres 数据库迁移
Playful palette: an interactive parametric color mixer for artists
[dry goods sharing] the latest WHQL logo certification application process
IDEA 远程调试 Remote JVM Debug
Cmake tutorial series-03-dependency management
[NPM] solve the problem of error reporting when installing typeorm with NPM
What are the three paradigms of database
How to prevent phishing emails? S/mime mail certificate
Sitelock nine FAQs
Network neuroscience——网络神经科学综述
Several key points recorded after reviewing redis design and Implementation
[on] [DSTG] dynamic spatiotemporalgraph revolutionary neural networks for traffic data impact
HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification
怎么使用Vant实现数据分页和下拉加载