@policystudio/policy-studio-ui-vue 1.1.90-beta.48 → 1.1.90-beta.49
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
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="psui-el-chips"
|
|
4
4
|
:class="[getComponentClass, `layout-${layout}`, `type-${type}`]"
|
|
5
|
+
v-tooltip="{
|
|
6
|
+
content: disabledText,
|
|
7
|
+
trigger: 'hover',
|
|
8
|
+
placement: 'bottom',
|
|
9
|
+
show: layout === 'disabled' && disabledText !== '' && isHovering
|
|
10
|
+
}"
|
|
11
|
+
@mouseover="isHovering = true"
|
|
12
|
+
@mouseleave="isHovering = false"
|
|
5
13
|
>
|
|
6
14
|
<input
|
|
7
15
|
@change="onChange"
|
|
@@ -33,7 +41,7 @@
|
|
|
33
41
|
</template>
|
|
34
42
|
|
|
35
43
|
<script setup>
|
|
36
|
-
import { computed, useAttrs } from 'vue'
|
|
44
|
+
import { computed, useAttrs, ref } from 'vue'
|
|
37
45
|
|
|
38
46
|
import { randomString } from '../../util/GeneralFunctions.js'
|
|
39
47
|
|
|
@@ -98,8 +106,14 @@ const props = defineProps({
|
|
|
98
106
|
type: Object,
|
|
99
107
|
default: () => ({}),
|
|
100
108
|
},
|
|
109
|
+
disabledText: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: '',
|
|
112
|
+
}
|
|
101
113
|
})
|
|
102
114
|
|
|
115
|
+
const isHovering = ref(false)
|
|
116
|
+
|
|
103
117
|
const getComponentClass = computed(() => {
|
|
104
118
|
if (props.disabled) {
|
|
105
119
|
return 'status-disabled'
|