2023-10-17 07:11:39 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2023-11-02 07:21:31 +00:00
|
|
|
<p>Tooltip gets hidden when mouse leaves the target element by default, set <i>autoHide</i> to false to change this behavior.</p>
|
2023-10-17 07:11:39 +00:00
|
|
|
</DocSectionText>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-wrap justify-center gap-2">
|
2023-10-17 07:11:39 +00:00
|
|
|
<InputText v-tooltip="{ value: 'Enter your username', autoHide: false }" type="text" placeholder="autoHide: false" />
|
|
|
|
<InputText v-tooltip="'Enter your username'" type="text" placeholder="autoHide: true" />
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
<InputText v-tooltip="{ value: 'Enter your username', autoHide: false }" type="text" placeholder="autoHide: false" />
|
|
|
|
<InputText v-tooltip="'Enter your username'" type="text" placeholder="autoHide: true" />
|
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-wrap justify-center gap-2">
|
2023-10-17 07:11:39 +00:00
|
|
|
<InputText v-tooltip="{ value: 'Enter your username', autoHide: false }" type="text" placeholder="autoHide: false" />
|
|
|
|
<InputText v-tooltip="'Enter your username'" type="text" placeholder="autoHide: true" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-wrap justify-center gap-2">
|
2023-10-17 07:11:39 +00:00
|
|
|
<InputText v-tooltip="{ value: 'Enter your username', autoHide: false }" type="text" placeholder="autoHide: false" />
|
|
|
|
<InputText v-tooltip="'Enter your username'" type="text" placeholder="autoHide: true" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|