adtec-core-package 0.6.6 → 0.6.7

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": "adtec-core-package",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -28,7 +28,8 @@
28
28
  </el-icon>
29
29
  </el-button>
30
30
  <el-icon
31
- v-else
31
+ v-else-if="disabled"
32
+ @click.stop.prevent="iconClick"
32
33
  ref="ref_icons"
33
34
  :disabled="disabled"
34
35
  @mouseenter="visible = true"
@@ -51,6 +52,29 @@
51
52
  :virtual-ref="ref_icons"
52
53
  />
53
54
  </el-icon>
55
+ <el-icon
56
+ v-else
57
+ ref="ref_icons"
58
+ @mouseenter="visible = true"
59
+ @mouseleave="visible = false"
60
+ class="icon-btn"
61
+ :class="getClass"
62
+ >
63
+ <svg v-if="selcomp" class="icon" aria-hidden="true">
64
+ <use :href="'#' + iconName"></use>
65
+ </svg>
66
+ <component v-else :is="iconName"></component>
67
+ <el-tooltip
68
+ v-model:visible="visible"
69
+ v-if="tip"
70
+ :content="tip"
71
+ placement="top"
72
+ effect="light"
73
+ trigger="click"
74
+ virtual-triggering
75
+ :virtual-ref="ref_icons"
76
+ />
77
+ </el-icon>
54
78
  </template>
55
79
  <script setup lang="ts">
56
80
  import { useVModel } from '@vueuse/core'
@@ -64,6 +88,10 @@ const selcomp = computed(() => {
64
88
  return false
65
89
  }
66
90
  })
91
+ const iconClick=()=>{
92
+ //@ts-ignore
93
+ event.stopPropagation()
94
+ }
67
95
  /**
68
96
  * 获取样式
69
97
  */