当前位置:网站首页>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>
边栏推荐
- Unity TimeLine 数据绑定
- Some configuration details about servlet initial development
- Heap sort
- 在php中字符串的概念是什么
- 2.8 【 weight of complete binary tree 】
- 怎么使用Vant实现数据分页和下拉加载
- Select sort
- Global and Chinese market of wind energy equipment logistics 2022-2028: Research Report on technology, participants, trends, market size and share
- Precautions for purchasing wildcard SSL certificate
- Matlab code running tutorial (how to run the downloaded code)
猜你喜欢

Playful palette: an interactive parametric color mixer for artists

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

如何在 JupyterLab 中把 ipykernel 切换到不同的 conda 虚拟环境?

微信小程序页面跳转以及参数传递

2.< tag-动态规划和0-1背包问题>lt.416. 分割等和子集 + lt.1049. 最后一块石头的重量 II

Sitelock nine FAQs

Wechat applet page Jump and parameter transfer
![[Postgres] Postgres database migration](/img/45/7074aa766640160a3b6f00b109cb2f.png)
[Postgres] Postgres database migration

Raki's notes on reading paper: named entity recognition as dependency parsing

Insert sort directly
随机推荐
什么是自签名证书?自签名SSL证书的优缺点?
How long is the general term of the bank's financial products?
打造創客教育中精湛技藝
外汇交易平台哪个好?有监管的资金就安全吗?
Ffmpeg source code
微信小程序页面跳转以及参数传递
FAQs for code signature and driver signature
Select sort
Implementation of Sanzi chess with C language
Multi card server usage
公司电脑强制休眠的3种解决方案
什么是证书透明度CT?如何查询CT logs证书日志?
C language pivot_ Invalid argument error resolution for root
How to use redis to realize the like function
2. < tag dynamic programming and 0-1 knapsack problem > lt.416 Split equal sum subset + lt.1049 Weight of the last stone II
Série de tutoriels cmake - 02 - génération de binaires à l'aide du Code cmake
Threejs mirror case reflector create mirror + house construction + small ball movement
走进江苏作家诗人胭脂茉莉|世界读书日
How to modify and add fields when MySQL table data is large
代码签名、驱动签名的常见问题解答