|
楼主 |
发表于 2020-6-18 15:19:46
|
显示全部楼层
已解决
1.加一个slot- <span slot="supplierPart" slot-scope="text">
- <a @click="handleClickSupplierPart(text)">{{text}}</a>
- </span>
复制代码 2.引用slot- {
- title:'Supplier Part #',
- align:"center",
- dataIndex: 'supplierPart',
- scopedSlots: {customRender: 'supplierPart'}
- },
复制代码 3.js实现- handleClickSupplierPart(text) {
- if (text) {
- window.open('https://www.baidu.com?q=' + text, '_blank')
- }
- }
复制代码 |
|