1
0
elk/components/publish/PublishButton.vue

15 lines
345 B
Vue
Raw Normal View History

2022-11-24 23:32:20 +09:00
<script setup lang="ts">
function openDialog() {
if (dialogDraft.draft.value.editingStatus)
openPublishDialog(getDefaultDraft())
else openPublishDialog()
}
</script>
2022-11-24 17:04:53 +09:00
<template>
2022-11-24 23:32:20 +09:00
<button btn-outline rounded-full font-bold py4 flex="~ gap2 center" @click="openDialog">
2022-11-24 17:04:53 +09:00
<div i-ri:quill-pen-line />
Compose
</button>
</template>