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