mirror of https://github.com/FreeTubeApp/FreeTube
25 lines
472 B
JavaScript
25 lines
472 B
JavaScript
import Vue from 'vue'
|
|
import { uniqueId } from 'lodash'
|
|
|
|
export default Vue.extend({
|
|
name: 'FtTooltip',
|
|
props: {
|
|
position: {
|
|
type: String,
|
|
default: 'bottom',
|
|
validator: (value) => value === 'bottom' || value === 'left' || value === 'right' || value === 'top' || value === 'bottom-left'
|
|
},
|
|
tooltip: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
},
|
|
data() {
|
|
const id = uniqueId('ft-tooltip-')
|
|
|
|
return {
|
|
id
|
|
}
|
|
}
|
|
})
|