Skip to content

Commit

Permalink
feat: 给搜索按钮换个样式
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyeeee committed Nov 9, 2024
1 parent d339ade commit 6b6d2db
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/SearchPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ async function search(keyword: string, page: number, sort: SearchSort) {
<template>
<div class="h-full flex flex-col">
<div class="flex flex-col">
<div class="grid grid-cols-[4fr_1fr]">
<div class="flex">
<div class="grid grid-cols-[4fr_1fr] gap-col-1">
<div class="flex gap-col-1">
<n-input class="text-align-left"
size="tiny"
v-model:value="searchInput"
Expand All @@ -71,8 +71,9 @@ async function search(keyword: string, page: number, sort: SearchSort) {
关键词:
</template>
</n-input>
<!-- TODO: 搜索按钮改个样式,默认样式太不显眼了 -->
<n-button size="tiny" @click="search(searchInput.trim(), 1, sortSelected)">搜索</n-button>
<n-button type="primary" secondary size="tiny" @click="search(searchInput.trim(), 1, sortSelected)">
搜索
</n-button>
</div>
<n-select class="flex"
v-model:value="sortSelected"
Expand Down

0 comments on commit 6b6d2db

Please sign in to comment.