feat(视图): ECharts 表格右键复制指定单元格内容
This commit is contained in:
parent
8c1f9d1d31
commit
5b358abdd4
@ -37,6 +37,8 @@
|
||||
:index-config="{seqMethod}"
|
||||
:show-header="showHeader"
|
||||
@cell-click="cellClick"
|
||||
@row-contextmenu="(_, __, e) => cellRightClick(e)"
|
||||
@header-contextmenu="(_, e) => cellRightClick(e)"
|
||||
>
|
||||
<ux-table-column
|
||||
type="index"
|
||||
@ -654,6 +656,12 @@ export default {
|
||||
}
|
||||
this.antVActionPost(dimensionList, nameIdMap[col.property] || 'null', position)
|
||||
},
|
||||
cellRightClick(event) {
|
||||
if (event.target?.innerText) {
|
||||
navigator.clipboard.writeText(event.target.innerText)
|
||||
}
|
||||
event.preventDefault()
|
||||
},
|
||||
antVActionPost(dimensionList, name, param) {
|
||||
this.pointParam = {
|
||||
data: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user