chore: 升级 wot-ui 至 2.2.0 并适配暗黑模式主题色
- ConfigProvider 全局配置 button 默认类型、tag 默认变体 - 清理模板中重复的 type=primary 和 variant=plain - 静态资源 logo.png 迁至 src/static/images/ - 暗黑模式 --wot-filled-oppo 统一组件背景色
This commit is contained in:
1 parent
ce01e3cff8
commit
4dd142bb5a
25 files changed
+52
-40
No files matched your search
@@ -2,7 +2,7 @@
|
||||
<view class="page page--padding">
|
||||
<wd-card>
|
||||
<view class="about__header">
|
||||
<image class="about__logo" src="/logo.png" mode="aspectFit" />
|
||||
<image class="about__logo" src="/static/images/logo.png" mode="aspectFit" />
|
||||
<view class="about__info">
|
||||
<text class="about__app-title">youlai-app</text>
|
||||
<text class="about__app-version">版本 {{ version }}</text>
|
||||
@@ -172,7 +172,7 @@
|
||||
{{ currentProject.summary }}
|
||||
</view>
|
||||
<view class="about__popup-action">
|
||||
<wd-button type="primary" block @click="goCurrentProjectRepo">去仓库</wd-button>
|
||||
<wd-button block @click="goCurrentProjectRepo">去仓库</wd-button>
|
||||
</view>
|
||||
</view>
|
||||
</wd-popup>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
/>
|
||||
</wd-cell-group>
|
||||
<view class="p-24rpx">
|
||||
<wd-button type="primary" size="large" block @click="handleSubmit">提交</wd-button>
|
||||
<wd-button size="large" block @click="handleSubmit">提交</wd-button>
|
||||
</view>
|
||||
</wd-form>
|
||||
<wd-form
|
||||
@@ -104,6 +104,7 @@
|
||||
>
|
||||
<template #suffix>
|
||||
<wd-button
|
||||
type=""
|
||||
plain
|
||||
:disabled="mobileCountdown > 0"
|
||||
@click="handleSendVerificationCode('MOBILE')"
|
||||
@@ -114,7 +115,7 @@
|
||||
</wd-input>
|
||||
</wd-cell-group>
|
||||
<view class="p-24rpx">
|
||||
<wd-button type="primary" size="large" block @click="handleSubmit">提交</wd-button>
|
||||
<wd-button size="large" block @click="handleSubmit">提交</wd-button>
|
||||
</view>
|
||||
</wd-form>
|
||||
<wd-form
|
||||
@@ -144,6 +145,7 @@
|
||||
>
|
||||
<template #suffix>
|
||||
<wd-button
|
||||
type=""
|
||||
plain
|
||||
:disabled="emailCountdown > 0"
|
||||
@click="handleSendVerificationCode('EMAIL')"
|
||||
@@ -154,7 +156,7 @@
|
||||
</wd-input>
|
||||
</wd-cell-group>
|
||||
<view class="p-24rpx">
|
||||
<wd-button type="primary" size="large" block @click="handleSubmit">提交</wd-button>
|
||||
<wd-button size="large" block @click="handleSubmit">提交</wd-button>
|
||||
</view>
|
||||
</wd-form>
|
||||
</wd-popup>
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
</view>
|
||||
|
||||
<view v-if="!isLogin" class="profile-card__action" @click.stop="navigateToLogin()">
|
||||
<wd-button custom-class="profile-card__button" size="small" type="primary">
|
||||
<wd-button custom-class="profile-card__button" size="small">
|
||||
立即登录
|
||||
</wd-button>
|
||||
</view>
|
||||
@@ -81,7 +81,7 @@
|
||||
/>
|
||||
<view class="community-card__mask" />
|
||||
<view class="community-card__logo">
|
||||
<image src="/logo.png" mode="aspectFit" class="w-full h-full" />
|
||||
<image src="/static/images/logo.png" mode="aspectFit" class="w-full h-full" />
|
||||
</view>
|
||||
<view class="community-card__body">
|
||||
<view class="community-card__title-row">
|
||||
|
||||
@@ -104,7 +104,6 @@
|
||||
<view class="profile-footer">
|
||||
<wd-button
|
||||
class="profile-footer__submit"
|
||||
type="primary"
|
||||
size="large"
|
||||
block
|
||||
:disabled="!canComplete || isLoading"
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
</wd-cell>
|
||||
</wd-cell-group>
|
||||
<view class="edit-form__submit">
|
||||
<wd-button type="primary" size="large" block @click="handleSubmit">提交</wd-button>
|
||||
<wd-button size="large" block @click="handleSubmit">提交</wd-button>
|
||||
</view>
|
||||
</wd-form>
|
||||
</wd-popup>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</wd-collapse>
|
||||
|
||||
<view class="agreement__action">
|
||||
<wd-button type="primary" block @click="handleAgree">我已阅读并同意</wd-button>
|
||||
<wd-button block @click="handleAgree">我已阅读并同意</wd-button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</wd-collapse>
|
||||
|
||||
<view class="privacy__action">
|
||||
<wd-button type="primary" block @click="handleAgree">我已阅读并同意</wd-button>
|
||||
<wd-button block @click="handleAgree">我已阅读并同意</wd-button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -55,11 +55,11 @@
|
||||
<wd-cell>
|
||||
<template #default>
|
||||
<view class="flex items-center justify-center gap-24rpx py-12rpx">
|
||||
<wd-button type="primary" size="small">主要按钮</wd-button>
|
||||
<wd-button size="small">主要按钮</wd-button>
|
||||
<text class="text-28rpx font-500" :style="{ color: currentThemeColor }">
|
||||
主题色文本
|
||||
</text>
|
||||
<wd-tag type="primary" size="small">标签</wd-tag>
|
||||
<wd-tag type="primary" size="small" variant="filled">标签</wd-tag>
|
||||
</view>
|
||||
</template>
|
||||
</wd-cell>
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
<!-- 操作按钮 -->
|
||||
<view class="mt-32rpx">
|
||||
<wd-button type="primary" plain size="large" block @click="handleResetTheme">
|
||||
<wd-button plain size="large" block @click="handleResetTheme">
|
||||
重置为默认主题
|
||||
</wd-button>
|
||||
</view>
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
<view class="popup-actions">
|
||||
<wd-button type="info" plain @click="showCustomColorInput = false">取消</wd-button>
|
||||
<wd-button type="primary" @click="applyCustomColor">应用</wd-button>
|
||||
<wd-button @click="applyCustomColor">应用</wd-button>
|
||||
</view>
|
||||
</view>
|
||||
</wd-popup>
|
||||
|
||||
Reference in new issue
Block a user