enhance(client): improve files page of control panel

This commit is contained in:
syuilo
2022-06-16 16:05:43 +09:00
parent fdba255b9a
commit 4a55425fdb
5 changed files with 105 additions and 96 deletions

View File

@ -1,7 +1,10 @@
<template>
<transition :name="$store.state.animation ? 'tooltip' : ''" appear @after-leave="emit('closed')">
<div v-show="showing" ref="el" class="buebdbiu _acrylic _shadow" :style="{ zIndex, maxWidth: maxWidth + 'px' }">
<slot>{{ text }}</slot>
<slot>
<Mfm v-if="asMfm" :text="text"/>
<span v-else>{{ text }}</span>
</slot>
</div>
</transition>
</template>
@ -16,6 +19,7 @@ const props = withDefaults(defineProps<{
x?: number;
y?: number;
text?: string;
asMfm?: boolean;
maxWidth?: number;
direction?: 'top' | 'bottom' | 'right' | 'left';
innerMargin?: number;
@ -170,8 +174,6 @@ const setPosition = () => {
return { left, top, transformOrigin: 'left center' };
}
}
return null as never;
};
const { left, top, transformOrigin } = calc();