doway-coms 1.4.60 → 1.4.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.4.60",
3
+ "version": "1.4.61",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -34,7 +34,7 @@
34
34
  <template slot="title">
35
35
  {{ currentValue }}
36
36
  </template>
37
- <span @contextmenu.prevent="onContextmenu">
37
+ <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
38
38
  {{ currentValue }}
39
39
  </span>
40
40
  </Tooltip>
@@ -134,14 +134,14 @@ export default {
134
134
  blur() {
135
135
  this.$emit('blur')
136
136
  },
137
- onContextmenu(event) {
137
+ onContextmenu(event, currentValue) {
138
138
  this.$contextmenu({
139
139
  items: [
140
140
  {
141
141
  icon: 'ant-design:folder-open-filled',
142
142
  label: "复制",
143
143
  onClick: () => {
144
- if (XEClipboard.copy(event.target.innerText)) {
144
+ if (XEClipboard.copy(currentValue)) {
145
145
  VXETable.modal.message({
146
146
  content: "已复制到剪贴板!",
147
147
  status: "success",