chore: update

zio/stable
Anthony Fu 2022-11-24 21:26:33 +08:00
parent d8621024f8
commit 071e11b8f4
1 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ const status = $computed(() => {
}) })
const currentVisibility = $computed(() => { const currentVisibility = $computed(() => {
return STATUS_VISIBILITIES.find(v => v.value === status.visibility)! return STATUS_VISIBILITIES.find(v => v.value === status.visibility) || STATUS_VISIBILITIES[0]
}) })
let isUploading = $ref<boolean>(false) let isUploading = $ref<boolean>(false)
@ -148,9 +148,12 @@ onUnmounted(() => {
<div i-ri:upload-line /> <div i-ri:upload-line />
</button> </button>
<div flex-auto />
<CommonDropdown> <CommonDropdown>
<button btn-action-icon> <button btn-action-icon w-12>
<div :class="currentVisibility.icon" /> <div :class="currentVisibility.icon" />
<div i-ri:arrow-down-s-line text-sm op50 mr--1 />
</button> </button>
<template #popper> <template #popper>
@ -168,11 +171,8 @@ onUnmounted(() => {
</CommonDropdownItem> </CommonDropdownItem>
</template> </template>
</CommonDropdown> </CommonDropdown>
<div flex-auto />
<button <button
btn-solid rounded-full btn-solid rounded-full text-sm
:disabled="isUploading || (draft.attachments.length === 0 && !draft.params.status)" :disabled="isUploading || (draft.attachments.length === 0 && !draft.params.status)"
@click="publish" @click="publish"
> >