comand-component-library 3.3.79 → 3.3.81
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +576 -567
- package/dist/comand-component-library.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +22 -10
- package/src/components/CmdSocialNetworks.vue +47 -43
- package/src/components/CmdTabs.vue +16 -4
- package/src/components/CmdThumbnailScroller.vue +3 -3
- package/src/components/CmdTooltip.vue +19 -0
- package/src/components/CmdUploadForm.vue +1 -1
@@ -52,6 +52,15 @@ export default {
|
|
52
52
|
type: String,
|
53
53
|
required: false
|
54
54
|
},
|
55
|
+
/**
|
56
|
+
* delay (in milliseconds) until tooltip will be shown
|
57
|
+
*
|
58
|
+
* toggleVisibilityByClick-property must be false
|
59
|
+
*/
|
60
|
+
delayToShowTooltip: {
|
61
|
+
type: Number,
|
62
|
+
default: 0
|
63
|
+
},
|
55
64
|
/**
|
56
65
|
* id of related input-element
|
57
66
|
*/
|
@@ -114,6 +123,16 @@ export default {
|
|
114
123
|
this.tooltipVisibility = !this.tooltipVisibility
|
115
124
|
},
|
116
125
|
showTooltip(event) {
|
126
|
+
// if delay is set
|
127
|
+
if (this.delayToShowTooltip > 0) {
|
128
|
+
setTimeout(() => {
|
129
|
+
this.toggleVisibility(event)
|
130
|
+
}, this.delayToShowTooltip)
|
131
|
+
} else {
|
132
|
+
this.toggleVisibility(event)
|
133
|
+
}
|
134
|
+
},
|
135
|
+
toggleVisibility(event) {
|
117
136
|
if(!this.toggleVisibilityByClick) {
|
118
137
|
this.tooltipVisibility = true
|
119
138
|
}
|