提交 62477554 编写于 作者: View Design's avatar View Design

收藏夹

上级 5628ec10
...@@ -20,11 +20,15 @@ ...@@ -20,11 +20,15 @@
<UInput <UInput
v-model="title" v-model="title"
placeholder="集合标题" placeholder="集合标题"
autofocus
/> />
</div> </div>
<div class="flex flex-col gap-1"> <div class="flex flex-col gap-1">
<div class="flex content-center items-center justify-between text-sm"> <div class="flex content-center items-center justify-between text-sm">
<label class="block font-medium text-gray-700 dark:text-gray-200">描述</label> <label class="block font-medium text-gray-700 dark:text-gray-200">
描述
<span class="text-gray-400 dark:text-gray-100">(可选)</span>
</label>
</div> </div>
<UTextarea <UTextarea
v-model="description" v-model="description"
...@@ -49,6 +53,10 @@ const isOpenCreate = ref(false) ...@@ -49,6 +53,10 @@ const isOpenCreate = ref(false)
const title = ref('') const title = ref('')
const description = ref('') const description = ref('')
function handleClose () { function handleClose () {
isOpenCreate.value = false
} }
function handleOpen () {
isOpenCreate.value = true
}
defineExpose({ handleOpen })
</script> </script>
...@@ -52,11 +52,12 @@ ...@@ -52,11 +52,12 @@
</div> </div>
</div> </div>
</div> </div>
<ILibraryCreate /> <ILibraryCreate ref="refCreate" />
</template> </template>
<script setup> <script setup>
const searchQuery = ref('') const searchQuery = ref('')
const refCreate = ref(null)
function handleOpenCreateLibrary () { function handleOpenCreateLibrary () {
refCreate.value.handleOpen()
} }
</script> </script>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册