style(components): 统一按钮样式为 primary 和 warning 类型
将上传和请求组件中的按钮样式统一为 type="primary",并将重置按钮改为 type="warning" 以保持一致性
This commit is contained in:
parent
03317eefb1
commit
ab669ce491
@ -61,7 +61,7 @@ function reset() {
|
||||
<!-- #endif -->
|
||||
|
||||
<!-- http://localhost:9000/#/pages/index/request -->
|
||||
<up-button class="my-6" @click="run">
|
||||
<up-button class="my-6" type="primary" @click="run">
|
||||
发送请求
|
||||
</up-button>
|
||||
<view class="h-16">
|
||||
@ -77,7 +77,7 @@ function reset() {
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<up-button theme="danger" class="my-6" :disabled="!data" @click="reset">
|
||||
<up-button type="warning" class="my-6" :disabled="!data" @click="reset">
|
||||
重置数据
|
||||
</up-button>
|
||||
</view>
|
||||
|
@ -13,7 +13,7 @@ const { loading, data, run } = useUpload()
|
||||
|
||||
<template>
|
||||
<view class="p-4 text-center">
|
||||
<up-button @click="run">
|
||||
<up-button type="primary" @click="run">
|
||||
选择图片并上传
|
||||
</up-button>
|
||||
<view v-if="loading" class="h-10 text-blue">
|
||||
|
Loading…
x
Reference in New Issue
Block a user