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

按钮

上级 66c78546
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
v-for="item in recommendQuestions" v-for="item in recommendQuestions"
color="gray" color="gray"
size="md" size="md"
:variant="colorMode.value === 'dark' ? 'solid' : 'soft'" variant="soft"
@click="handleClick(item.title)" @click="handleClick(item.title)"
> >
<div class="justify-between w-full flex items-center"> <div class="justify-between w-full flex items-center">
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
</div> </div>
</template> </template>
<script setup> <script setup>
const colorMode = useColorMode()
defineProps({ defineProps({
recommendQuestions: { recommendQuestions: {
type: Array, type: Array,
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<UButton <UButton
class="flex justify-between" class="flex justify-between"
color="gray" color="gray"
:variant="colorMode.value === 'dark' ? 'solid' : 'soft'" variant="soft"
size="md" size="md"
:trailing-icon="item.c_id ? 'i-heroicons-chevron-right-20-solid' : 'i-heroicons-plus-20-solid'" :trailing-icon="item.c_id ? 'i-heroicons-chevron-right-20-solid' : 'i-heroicons-plus-20-solid'"
:label="item.title" :label="item.title"
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
</div> </div>
</template> </template>
<script setup> <script setup>
const colorMode = useColorMode()
const recommendQuestions = [ const recommendQuestions = [
{ {
title: '如何解决 CORS 问题', title: '如何解决 CORS 问题',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册