Последняя версия с сервера прошлого разработчика
This commit is contained in:
23
nova/resources/js/components/TooltipContent.vue
Executable file
23
nova/resources/js/components/TooltipContent.vue
Executable file
@@ -0,0 +1,23 @@
|
||||
<script>
|
||||
const defaultClasses =
|
||||
'bg-white px-3 py-2 rounded border border-50 shadow text-sm leading-normal'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
maxWidth: {
|
||||
default: 'auto',
|
||||
},
|
||||
},
|
||||
|
||||
render(h) {
|
||||
return (
|
||||
<div
|
||||
class={this.$props.class || defaultClasses}
|
||||
style={`max-width: ${this.maxWidth}px`}
|
||||
>
|
||||
{this.$slots.default}
|
||||
</div>
|
||||
)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user