fix: added tooltip
This commit is contained in:
parent
8371262336
commit
5ee2717f45
@ -39,7 +39,7 @@
|
|||||||
<div v-if="data[field.name]" class="truncate">
|
<div v-if="data[field.name]" class="truncate">
|
||||||
{{ data[field.name] }}
|
{{ data[field.name] }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="text-base leading-5 text-gray-500">
|
<div v-else class="text-base leading-5 text-gray-500 truncate">
|
||||||
{{ field.placeholder }}
|
{{ field.placeholder }}
|
||||||
</div>
|
</div>
|
||||||
<template #suffix>
|
<template #suffix>
|
||||||
@ -110,7 +110,7 @@
|
|||||||
/>
|
/>
|
||||||
<FormControl
|
<FormControl
|
||||||
v-else-if="field.type === 'select'"
|
v-else-if="field.type === 'select'"
|
||||||
class="form-control cursor-pointer [&_select]:cursor-pointer"
|
class="form-control cursor-pointer [&_select]:cursor-pointer truncate"
|
||||||
type="select"
|
type="select"
|
||||||
v-model="data[field.name]"
|
v-model="data[field.name]"
|
||||||
:options="field.options"
|
:options="field.options"
|
||||||
|
|||||||
@ -89,9 +89,13 @@
|
|||||||
<FeatherIcon name="trash-2" class="h-4 w-4" />
|
<FeatherIcon name="trash-2" class="h-4 w-4" />
|
||||||
</template>
|
</template>
|
||||||
</Button>
|
</Button>
|
||||||
<Button size="sm" @click="openWebsite">
|
<Tooltip :text="__('Open website')">
|
||||||
<FeatherIcon name="link" class="h-4 w-4" />
|
<div>
|
||||||
</Button>
|
<Button @click="openWebsite">
|
||||||
|
<FeatherIcon name="link" class="h-4 w-4" />
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -219,6 +223,7 @@ import {
|
|||||||
createToast,
|
createToast,
|
||||||
} from '@/utils'
|
} from '@/utils'
|
||||||
import {
|
import {
|
||||||
|
Tooltip,
|
||||||
Breadcrumbs,
|
Breadcrumbs,
|
||||||
Avatar,
|
Avatar,
|
||||||
FileUploader,
|
FileUploader,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user