feat: support more actions for user

This commit is contained in:
三咲智子 2022-11-26 20:58:10 +08:00
parent 3d7d2ca405
commit 84478984dc
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
12 changed files with 184 additions and 37 deletions

View file

@ -1,3 +1,9 @@
<script setup lang="ts">
defineProps<{
back?: boolean
}>()
</script>
<template>
<div relative>
<div
@ -7,13 +13,12 @@
:class="isZenMode ? 'op0 hover:op100 transition duration-300' : ''"
>
<div flex justify-between px5 py4>
<div flex gap-1>
<slot name="title">
<NuxtLink flex="~ gap1" items-center btn-text p-0 @click="$router.go(-1)">
<div i-ri-arrow-left-line />
Back
</NuxtLink>
</slot>
<div flex gap-3>
<NuxtLink v-if="back" flex="~ gap1" items-center btn-text p-0 @click="$router.go(-1)">
<div i-ri-arrow-left-line />
</NuxtLink>
<slot name="title" />
<div h-7 w-1px />
</div>
<div flex items-center>
<slot name="actions" />