wui-components-v2 1.1.67 → 1.1.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/action-popup/action-popup.vue +46 -17
- package/components/evaluation-page/evaluation-page.vue +5 -1
- package/components/login-form/login-form.vue +1 -1
- package/components/wui-user/wui-user.vue +5 -0
- package/package.json +1 -1
- package/styles/dark-mode.css +523 -0
- package/styles/dark-mode.min.css +1 -0
- package/styles/dark-mode.scss +83 -9
|
@@ -8,15 +8,15 @@ import { useGlobalToast } from '../../composables/useGlobalToast'
|
|
|
8
8
|
defineOptions({
|
|
9
9
|
name: 'ActionPopup',
|
|
10
10
|
})
|
|
11
|
-
const props = defineProps<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
>()
|
|
11
|
+
const props = defineProps<{
|
|
12
|
+
fieldGroup?: Groups
|
|
13
|
+
show: boolean
|
|
14
|
+
code: string
|
|
15
|
+
zpaging: any
|
|
16
|
+
enumColumn?: Enums
|
|
17
|
+
/** 提交成功后跳转的自定义页面路径,不传则默认刷新 */
|
|
18
|
+
successUrl?: string
|
|
19
|
+
}>()
|
|
20
20
|
const emits = defineEmits(['update:show'])
|
|
21
21
|
const btnLoading = ref(false)
|
|
22
22
|
const toast = useGlobalToast()
|
|
@@ -59,10 +59,14 @@ async function action() {
|
|
|
59
59
|
await actionDataSave(props.fieldGroup?.id || '', props.code, formatFileData(data))
|
|
60
60
|
btnLoading.value = false
|
|
61
61
|
show.value = false
|
|
62
|
-
props.zpaging.reload()
|
|
63
62
|
toast.success({ msg: '操作成功!' })
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
// 如果传了 successUrl,跳转到自定义页面;否则默认刷新
|
|
64
|
+
if (props.successUrl) {
|
|
65
|
+
uni.navigateTo({ url: props.successUrl })
|
|
66
|
+
} else {
|
|
67
|
+
props.zpaging.reload()
|
|
68
|
+
}
|
|
69
|
+
} catch (error: any) {
|
|
66
70
|
btnLoading.value = false
|
|
67
71
|
toast.error(error)
|
|
68
72
|
}
|
|
@@ -70,14 +74,39 @@ async function action() {
|
|
|
70
74
|
</script>
|
|
71
75
|
|
|
72
76
|
<template>
|
|
73
|
-
<wd-popup
|
|
74
|
-
|
|
77
|
+
<wd-popup
|
|
78
|
+
v-model="show"
|
|
79
|
+
position="bottom"
|
|
80
|
+
closable
|
|
81
|
+
:z-index="999999"
|
|
82
|
+
@close="
|
|
83
|
+
() => {
|
|
84
|
+
show = false
|
|
85
|
+
}
|
|
86
|
+
"
|
|
87
|
+
>
|
|
88
|
+
<view class="h-50vh w-100vw bg-white dark:bg-[var(--wot-dark-background)]">
|
|
75
89
|
<view class="h-44px bg-white dark:bg-[var(--wot-dark-background)]" />
|
|
76
90
|
<view class="w-[calc(100%-44px)] overflow-auto bg-white dark:bg-[var(--wot-dark-background)]">
|
|
77
|
-
<formControl
|
|
91
|
+
<formControl
|
|
92
|
+
v-if="props.fieldGroup"
|
|
93
|
+
ref="formControlRef"
|
|
94
|
+
:field-group="props.fieldGroup"
|
|
95
|
+
:enum-column="enumColumn"
|
|
96
|
+
/>
|
|
78
97
|
<view class="h-44px bg-white dark:bg-[var(--wot-dark-background)]" />
|
|
79
|
-
<view
|
|
80
|
-
|
|
98
|
+
<view
|
|
99
|
+
class="fixed bottom-0 left-0 right-0 box-border w-100% flex p-2 bg-white dark:bg-[var(--wot-dark-background)]"
|
|
100
|
+
>
|
|
101
|
+
<wd-button
|
|
102
|
+
:loading="btnLoading"
|
|
103
|
+
custom-class="flex-1"
|
|
104
|
+
@click="
|
|
105
|
+
() => {
|
|
106
|
+
action()
|
|
107
|
+
}
|
|
108
|
+
"
|
|
109
|
+
>
|
|
81
110
|
提交
|
|
82
111
|
</wd-button>
|
|
83
112
|
</view>
|
|
@@ -10,6 +10,10 @@ import { useGlobalToast } from '../../composables/useGlobalToast'
|
|
|
10
10
|
defineOptions({
|
|
11
11
|
name: 'EvaluationPage',
|
|
12
12
|
})
|
|
13
|
+
const props = defineProps<{
|
|
14
|
+
/** 评价提交成功后的跳转地址,不传则默认刷新详情 */
|
|
15
|
+
successUrl?: string
|
|
16
|
+
}>()
|
|
13
17
|
const toast = useGlobalToast()
|
|
14
18
|
const sourceId = ref('')
|
|
15
19
|
const id = ref('')
|
|
@@ -125,7 +129,6 @@ async function getOperationPageConfig() {
|
|
|
125
129
|
if (res.ltmplConfig?.rowActions) {
|
|
126
130
|
evaluationActions.value = res.ltmplConfig.rowActions.filter((item: rowActions) => item.title.includes('评价'))
|
|
127
131
|
}
|
|
128
|
-
console.log(res, '222222222')
|
|
129
132
|
} catch (error) {
|
|
130
133
|
console.log(error)
|
|
131
134
|
}
|
|
@@ -187,6 +190,7 @@ async function handleEvaluationClick() {
|
|
|
187
190
|
:zpaging="mockZpaging"
|
|
188
191
|
:field-group="actionItem"
|
|
189
192
|
:code="code"
|
|
193
|
+
:success-url="props.successUrl + '?sourceId=' + sourceId"
|
|
190
194
|
/>
|
|
191
195
|
</view>
|
|
192
196
|
</template>
|
|
@@ -113,7 +113,7 @@ function handleSubmit() {
|
|
|
113
113
|
placeholder="请输入密码"
|
|
114
114
|
:rules="[{ required: true, message: '请填写密码' }]"
|
|
115
115
|
/>
|
|
116
|
-
<view class="p-4 pb-0 pt-0">
|
|
116
|
+
<view class="p-4 pb-0 pt-0 dark:bg-[#1b1b1e]">
|
|
117
117
|
<wd-checkbox v-model="model.remember" shape="square">记住密码</wd-checkbox>
|
|
118
118
|
</view>
|
|
119
119
|
</wd-cell-group>
|
|
@@ -16,6 +16,10 @@ const props = defineProps({
|
|
|
16
16
|
type: String,
|
|
17
17
|
default: '/pages/login/index',
|
|
18
18
|
},
|
|
19
|
+
showLogout: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: true,
|
|
22
|
+
},
|
|
19
23
|
})
|
|
20
24
|
|
|
21
25
|
const { currentThemeColor, isDark } = useManualTheme()
|
|
@@ -114,6 +118,7 @@ async function clearCache() {
|
|
|
114
118
|
/>
|
|
115
119
|
<wd-cell title="清空缓存" :is-link="true" :clickable="true" :custom-style="cellStyle" @click="clearCache" />
|
|
116
120
|
<wd-cell
|
|
121
|
+
v-if="showLogout"
|
|
117
122
|
title="退出登录"
|
|
118
123
|
icon="logout"
|
|
119
124
|
:is-link="true"
|
package/package.json
CHANGED
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* 暗黑模式全局样式覆盖
|
|
4
|
+
* 用于强制覆盖 wot-design-uni 组件内部样式(:deep() 无法穿透的场景)
|
|
5
|
+
*
|
|
6
|
+
* 注意:此文件不能使用 scoped,否则无法穿透第三方组件
|
|
7
|
+
*
|
|
8
|
+
* @package wui-components-v2
|
|
9
|
+
*
|
|
10
|
+
* 使用方式:在项目 main.ts 中 import 此文件
|
|
11
|
+
* import 'wui-components-v2/styles/dark-mode'
|
|
12
|
+
*/
|
|
13
|
+
/* ====== CSS 变量定义(修正命名不匹配问题)====== */
|
|
14
|
+
/* wot-design-uni 的 kebabCase 转换会把 darkBackground2 → --wot-dark-background-2 */
|
|
15
|
+
/* 但项目中模板引用的是 --wot-dark-background2,需手动补齐 */
|
|
16
|
+
:root,
|
|
17
|
+
.wot-theme-dark {
|
|
18
|
+
--wot-dark-background: #1b1b1e;
|
|
19
|
+
--wot-dark-background2: #161616;
|
|
20
|
+
--wot-dark-background3: #1e1e1e;
|
|
21
|
+
--wot-dark-background4: #262626;
|
|
22
|
+
--wot-dark-background5: #333333;
|
|
23
|
+
--wot-dark-color: #ffffff;
|
|
24
|
+
--wot-dark-color2: #e8e8e8;
|
|
25
|
+
--wot-dark-color3: #999999;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* ====== 暗黑模式下 wot-design-uni 组件内部文字颜色覆盖 ====== */
|
|
29
|
+
.wot-theme-dark {
|
|
30
|
+
/* Cell 组件 */
|
|
31
|
+
/* CellGroup */
|
|
32
|
+
/* Switch 开关 */
|
|
33
|
+
/* Input 输入框 */
|
|
34
|
+
/* 原生 input 元素 - 必须用 uni- 前缀类名才能在小程序中命中 */
|
|
35
|
+
/* InputNumber 数字输入框 */
|
|
36
|
+
/* Textarea 多行文本输入框 */
|
|
37
|
+
/* Form 表单 */
|
|
38
|
+
/* Button 按钮 */
|
|
39
|
+
/* Popup 弹窗 */
|
|
40
|
+
/* ActionSheet */
|
|
41
|
+
/* Checkbox 复选框 */
|
|
42
|
+
/* SelectPicker 选择器弹窗 */
|
|
43
|
+
/* Calendar 日历选择器弹窗 */
|
|
44
|
+
/* Calendar 日历日期单元格暗黑适配(覆盖 wot-design-uni 内部变量)*/
|
|
45
|
+
/* YearPanel 年份选择器 */
|
|
46
|
+
/* picker-view 滚轮遮罩 - 暗黑模式下去掉白色渐变 */
|
|
47
|
+
/* DateTimePicker 时间选择器弹窗 */
|
|
48
|
+
/* Toast / Notify */
|
|
49
|
+
/* Picker */
|
|
50
|
+
/* Dialog */
|
|
51
|
+
/* Loading */
|
|
52
|
+
/* Tag 标签 */
|
|
53
|
+
/* Collapse 折叠面板 */
|
|
54
|
+
/* Tabbar tab栏 */
|
|
55
|
+
/* 未选中:白色 */
|
|
56
|
+
/* 选中态:蓝色(同权重,后定义覆盖前) */
|
|
57
|
+
/* Navbar 导航栏 */
|
|
58
|
+
/* Cell 右侧箭头图标 */
|
|
59
|
+
/* Cell 左侧图标 */
|
|
60
|
+
/* Card 卡片 - 菜单卡片暗黑背景 */
|
|
61
|
+
/* Grid 网格 */
|
|
62
|
+
/* Grid 图标区域 - 去掉白色背景 */
|
|
63
|
+
/* 快速访问区域(section-menus) */
|
|
64
|
+
/* 非TabBar区域内的普通图标(排除tabbar避免干扰选中态) */
|
|
65
|
+
/* Search 搜索栏 */
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.wot-theme-dark .wd-cell__title {
|
|
69
|
+
color: #e8e8e8 !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.wot-theme-dark .wd-cell__right {
|
|
73
|
+
color: #666666 !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.wot-theme-dark .wd-cell__icon {
|
|
77
|
+
color: #666666 !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.wot-theme-dark .wd-cell-group {
|
|
81
|
+
background-color: #111111 !important;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.wot-theme-dark .wd-cell {
|
|
85
|
+
background-color: #161616 !important;
|
|
86
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.wot-theme-dark .wd-cell:active {
|
|
90
|
+
background-color: #1b1b1e !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.wot-theme-dark .wd-switch__node {
|
|
94
|
+
background-color: #3d3d3d !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.wot-theme-dark .wd-switch__node--checked {
|
|
98
|
+
background-color: var(--wot-color-primary, #2164f3) !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.wot-theme-dark .wd-input {
|
|
102
|
+
--wot-input-bg: #252530;
|
|
103
|
+
--wot-input-inner-color: #e8e8e8;
|
|
104
|
+
--wot-input-inner-placeholder-color: #fff;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.wot-theme-dark .uni-input-input,
|
|
108
|
+
.wot-theme-dark .wd-input__input,
|
|
109
|
+
.wot-theme-dark .wd-input.is-compact .uni-input-input {
|
|
110
|
+
color: var(--wot-input-inner-color, #e8e8e8) !important;
|
|
111
|
+
caret-color: var(--wot-color-primary, #2164f3) !important;
|
|
112
|
+
background-color: transparent !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.wot-theme-dark .uni-input-placeholder,
|
|
116
|
+
.wot-theme-dark .wd-input__placeholder,
|
|
117
|
+
.wot-theme-dark .wd-input.is-compact .uni-input-placeholder {
|
|
118
|
+
color: #fff !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.wot-theme-dark .wd-input-number {
|
|
122
|
+
--wot-input-number-bg: #252530;
|
|
123
|
+
--wot-input-number-inner-color: #000000;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.wot-theme-dark .wd-input-number .uni-input-input,
|
|
127
|
+
.wot-theme-dark .wd-input-number__input {
|
|
128
|
+
color: var(--wot-input-number-inner-color, #000000) !important;
|
|
129
|
+
caret-color: var(--wot-color-primary, #2164f3) !important;
|
|
130
|
+
background-color: transparent !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.wot-theme-dark .wd-input-number .uni-input-placeholder,
|
|
134
|
+
.wot-theme-dark .wd-input-number__input::placeholder,
|
|
135
|
+
.wot-theme-dark .wd-input-number__placeholder {
|
|
136
|
+
color: #fff !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.wot-theme-dark .wd-textarea {
|
|
140
|
+
--wot-textarea-bg: #252530;
|
|
141
|
+
--wot-textarea-inner-color: #e8e8e8;
|
|
142
|
+
--wot-textarea-inner-placeholder-color: #fff;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.wot-theme-dark .wd-textarea__inner {
|
|
146
|
+
color: var(--wot-textarea-inner-color, #e8e8e8) !important;
|
|
147
|
+
caret-color: var(--wot-color-primary, #2164f3) !important;
|
|
148
|
+
background-color: transparent !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.wot-theme-dark .wd-textarea__inner::placeholder,
|
|
152
|
+
.wot-theme-dark .wd-textarea__placeholder {
|
|
153
|
+
color: #fff !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.wot-theme-dark .wd-form {
|
|
157
|
+
background-color: transparent;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.wot-theme-dark .wd-form-item {
|
|
161
|
+
background-color: transparent !important;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.wot-theme-dark .wd-form-item .wd-cell {
|
|
165
|
+
background-color: transparent !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.wot-theme-dark .wd-form-item__label,
|
|
169
|
+
.wot-theme-dark .wd-form-item__title {
|
|
170
|
+
color: var(--wot-dark-color2, #e8e8e8) !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.wot-theme-dark .wd-form-item__body {
|
|
174
|
+
background-color: transparent;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.wot-theme-dark .wd-button--primary {
|
|
178
|
+
--wd-button-primary-bg-color: var(--wot-color-primary, #2164f3) !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.wot-theme-dark .wd-popup {
|
|
182
|
+
background-color: #1b1b1e !important;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.wot-theme-dark .wd-popup__container {
|
|
186
|
+
background-color: #161616 !important;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.wot-theme-dark .wd-popup__body {
|
|
190
|
+
background-color: #1b1b1e !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.wot-theme-dark .wd-action-sheet {
|
|
194
|
+
background-color: #161616 !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.wot-theme-dark .wd-action-sheet__title {
|
|
198
|
+
color: var(--wot-dark-color, #fff) !important;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.wot-theme-dark .wd-action-sheet__item {
|
|
202
|
+
color: var(--wot-dark-color2, #e0e0e0) !important;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.wot-theme-dark .wd-action-sheet__action {
|
|
206
|
+
background-color: #1b1b1e !important;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.wot-theme-dark .wd-checkbox__label {
|
|
210
|
+
color: var(--wot-dark-color, #fff) !important;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.wot-theme-dark .wd-select-picker__wrapper {
|
|
214
|
+
background-color: #1b1b1e;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.wot-theme-dark .wd-select-picker__popup {
|
|
218
|
+
background-color: #161616 !important;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.wot-theme-dark .wd-select-picker__checkbox-label,
|
|
222
|
+
.wot-theme-dark .wd-select-picker__radio-label {
|
|
223
|
+
color: var(--wot-dark-color2, #e8e8e8) !important;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.wot-theme-dark .wd-select-picker__text-active {
|
|
227
|
+
color: var(--wot-color-primary, #2164f3) !important;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.wot-theme-dark .wd-select-picker__footer {
|
|
231
|
+
background-color: #161616;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.wot-theme-dark .wd-calendar__wrapper {
|
|
235
|
+
background-color: #1b1b1e;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.wot-theme-dark .wd-calendar__popup {
|
|
239
|
+
background-color: #161616 !important;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.wot-theme-dark .wd-calendar__header {
|
|
243
|
+
color: var(--wot-dark-color, #fff);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.wot-theme-dark .wd-calendar__view,
|
|
247
|
+
.wot-theme-dark .wd-month-panel {
|
|
248
|
+
--wot-calendar-view-day-color: #e8e8e8;
|
|
249
|
+
/* 日期数字 */
|
|
250
|
+
--wot-calendar-view-week-color: #999999;
|
|
251
|
+
/* 星期头(日一二三四五六) */
|
|
252
|
+
--wot-calendar-view-panel-title-color: #ccc;
|
|
253
|
+
/* 面板标题(2026年6月) */
|
|
254
|
+
--wot-calendar-view-control-icon-color: #aaa;
|
|
255
|
+
/* 左右箭头图标 */
|
|
256
|
+
--wot-calendar-view-control-color-disabled: #444;
|
|
257
|
+
/* 禁用箭头 */
|
|
258
|
+
--wot-calendar-view-color-disabled: #555555;
|
|
259
|
+
/* 禁用/不可选日期 */
|
|
260
|
+
--wot-calendar-view-time-picker-color: #e8e8e8;
|
|
261
|
+
/* 时间选择器文字 */
|
|
262
|
+
--wot-calendar-view-time-picker-bg: #252530;
|
|
263
|
+
/* 时间选择器背景 */
|
|
264
|
+
--wot-calendar-view-range-color: #e8e8e8;
|
|
265
|
+
/* 区间模式文字色 */
|
|
266
|
+
background-color: transparent !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.wot-theme-dark .wd-calendar__tabs {
|
|
270
|
+
color: var(--wot-dark-color3, #999999) !important;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.wot-theme-dark .wd-calendar__shortcuts {
|
|
274
|
+
border-bottom-color: rgba(255, 255, 255, 0.06);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.wot-theme-dark .wd-calendar__view {
|
|
278
|
+
background-color: transparent;
|
|
279
|
+
color: var(--wot-dark-color2, #e8e8e8);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.wot-theme-dark .wd-calendar__range-item.is-placeholder {
|
|
283
|
+
color: var(--wot-dark-color3, #666666) !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.wot-theme-dark .wd-calendar__range-separator {
|
|
287
|
+
color: var(--wot-dark-color3, #666666) !important;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.wot-theme-dark .wd-year-panel {
|
|
291
|
+
--wot-calendar-bg: #1b1b1e;
|
|
292
|
+
--wot-picker-view-bg: #1b1b1e;
|
|
293
|
+
background-color: #1b1b1e;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.wot-theme-dark .wd-picker-view {
|
|
297
|
+
--wot-picker-view-bg: #1b1b1e;
|
|
298
|
+
--wot-picker-view-mask-start-color: rgba(0, 0, 0, 0.85);
|
|
299
|
+
--wot-picker-view-mask-end-color: rgba(0, 0, 0, 0.2);
|
|
300
|
+
--wot-picker-view-roller-bg: #2a2a30;
|
|
301
|
+
--wot-picker-view-column-item-color: #e8e8e8;
|
|
302
|
+
background-color: #1b1b1e;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.wot-theme-dark .wd-picker-view__mask {
|
|
306
|
+
background-image:
|
|
307
|
+
linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2)),
|
|
308
|
+
linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2)) !important;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.wot-theme-dark .wd-picker-view__roller {
|
|
312
|
+
background-color: #2a2a30 !important;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.wot-theme-dark .wd-picker-view__column-item {
|
|
316
|
+
color: #e8e8e8 !important;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.wot-theme-dark .wd-picker-view__column-item--active {
|
|
320
|
+
color: var(--wot-dark-color, #fff) !important;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.wot-theme-dark .wd-year-panel__text {
|
|
324
|
+
color: var(--wot-dark-color2, #e8e8e8);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.wot-theme-dark .wd-year-panel__item.is-active .wd-year-panel__text,
|
|
328
|
+
.wot-theme-dark .wd-year-panel__item.is-active {
|
|
329
|
+
color: var(--wot-color-primary, #2164f3) !important;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.wot-theme-dark .wd-datetime-picker__wrapper {
|
|
333
|
+
background-color: #1b1b1e;
|
|
334
|
+
color: var(--wot-dark-color2, #e8e8e8);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.wot-theme-dark .wd-datetime-picker__popup {
|
|
338
|
+
background-color: #161616 !important;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.wot-theme-dark::after {
|
|
342
|
+
background-color: transparent !important;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.wot-theme-dark .wd-toast {
|
|
346
|
+
color: #fff !important;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.wot-theme-dark .wd-picker__title,
|
|
350
|
+
.wot-theme-dark .wd-picker__toolbar {
|
|
351
|
+
color: var(--wot-dark-color2, #e0e0) !important;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.wot-theme-dark .wd-dialog {
|
|
355
|
+
color: var(--wot-dark-color2, #e0e0e0) !important;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.wot-theme-dark .wd-dialog__header {
|
|
359
|
+
color: var(--wot-dark-color, #fff) !important;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.wot-theme-dark .wd-loading-text {
|
|
363
|
+
color: var(--wot-dark-color3, #a0a0a0) !important;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.wot-theme-dark .wd-tag {
|
|
367
|
+
color: #fff !important;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.wot-theme-dark .wd-collapse {
|
|
371
|
+
background-color: transparent !important;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.wot-theme-dark .wd-collapse-item__title {
|
|
375
|
+
color: var(--wot-dark-color2, #e0e0e0) !important;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.wot-theme-dark .wd-tabbar {
|
|
379
|
+
background-color: #111111 !important;
|
|
380
|
+
border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.wot-theme-dark .wd-tabbar-item {
|
|
384
|
+
color: #ffffff;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.wot-theme-dark .wd-tabbar-item__body .is-inactive {
|
|
388
|
+
color: #ffffff !important;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.wot-theme-dark .wd-tabbar-item--active {
|
|
392
|
+
color: var(--wot-color-primary, #2164f3) !important;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.wot-theme-dark .wd-tabbar-item--active .wd-icon,
|
|
396
|
+
.wot-theme-dark .wd-tabbar-item--active .wd-tabbar-item__icon {
|
|
397
|
+
color: var(--wot-color-primary, #2164f3) !important;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.wot-theme-dark .wd-tabbar-item--active .wd-tabbar-item__body-title {
|
|
401
|
+
color: var(--wot-color-primary, #2164f3) !important;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.wot-theme-dark .wd-navbar {
|
|
405
|
+
background-color: #1b1b1e !important;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.wot-theme-dark .wd-cell__arrow {
|
|
409
|
+
color: #555555 !important;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.wot-theme-dark .wd-cell__left-icon {
|
|
413
|
+
color: #e0e0e0 !important;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.wot-theme-dark .wd-card {
|
|
417
|
+
background: linear-gradient(180deg, #1e1e23 0%, #19191e 100%) !important;
|
|
418
|
+
box-shadow:
|
|
419
|
+
0 8rpx 32rpx rgba(0, 0, 0, 0.25),
|
|
420
|
+
0 2rpx 8rpx rgba(0, 0, 0, 0.15) !important;
|
|
421
|
+
border-color: rgba(255, 255, 255, 0.06) !important;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.wot-theme-dark .wd-card__title {
|
|
425
|
+
color: #f9fafb !important;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.wot-theme-dark .wd-grid-item__text,
|
|
429
|
+
.wot-theme-dark .wd-grid-item__content text {
|
|
430
|
+
color: #e5e7eb !important;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.wot-theme-dark .wd-grid-item__wrapper,
|
|
434
|
+
.wot-theme-dark .wd-grid-item__content {
|
|
435
|
+
background-color: transparent !important;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.wot-theme-dark .wd-grid-item {
|
|
439
|
+
background-color: transparent !important;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.wot-theme-dark .recent-section {
|
|
443
|
+
background-color: #1e1e23 !important;
|
|
444
|
+
box-shadow:
|
|
445
|
+
0 4px 16px rgba(0, 0, 0, 0.2),
|
|
446
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
|
|
447
|
+
border: 1px solid rgba(255, 255, 255, 0.06) !important;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.wot-theme-dark .recent-label {
|
|
451
|
+
color: #d1d5db !important;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* 非TabBar区域内的普通图标(排除tabbar避免干扰选中态) */
|
|
455
|
+
.wot-theme-dark .wd-cell .wd-icon,
|
|
456
|
+
.wot-theme-dark .wd-navbar .wd-icon,
|
|
457
|
+
.wot-theme-dark .wd-button .wd-icon {
|
|
458
|
+
color: #e0e0e0 !important;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.wot-theme-dark .wd-cell .wd-icon svg,
|
|
462
|
+
.wot-theme-dark .wd-cell .wd-icon path,
|
|
463
|
+
.wot-theme-dark .wd-navbar .wd-icon svg,
|
|
464
|
+
.wot-theme-dark .wd-navbar .wd-icon path,
|
|
465
|
+
.wot-theme-dark .wd-button .wd-icon svg,
|
|
466
|
+
.wot-theme-dark .wd-button .wd-icon path {
|
|
467
|
+
fill: currentColor !important;
|
|
468
|
+
color: currentColor !important;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.wot-theme-dark .wd-search,
|
|
472
|
+
.wot-theme-dark .wd-search.is-light,
|
|
473
|
+
.wot-theme-dark .wd-search.is-plain {
|
|
474
|
+
background: transparent !important;
|
|
475
|
+
--wot-search-input-bg: #252530 !important;
|
|
476
|
+
--wot-search-cover-bg: #252530 !important;
|
|
477
|
+
--wot-search-placeholder-color: #666666 !important;
|
|
478
|
+
--wot-search-cancel-color: var(--wot-color-primary, #2164f3) !important;
|
|
479
|
+
--wot-search-icon-color: #888888 !important;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.wot-theme-dark .wd-search .wd-search__block,
|
|
483
|
+
.wot-theme-dark .wd-search.is-light .wd-search__block,
|
|
484
|
+
.wot-theme-dark .wd-search.is-plain .wd-search__block {
|
|
485
|
+
background-color: #252530 !important;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.wot-theme-dark .wd-search .wd-search__cover,
|
|
489
|
+
.wot-theme-dark .wd-search.is-light .wd-search__cover,
|
|
490
|
+
.wot-theme-dark .wd-search.is-plain .wd-search__cover {
|
|
491
|
+
background-color: #252530 !important;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* Rate 评分星级 - 暗黑模式下恢复星星选中效果 */
|
|
495
|
+
.wot-theme-dark .wd-rate {
|
|
496
|
+
--wot-rate-color: #555555;
|
|
497
|
+
--wot-rate-active-color: #f5a623;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/* 恢复 wd-rate 星级颜色:放弃 background-clip:text(小程序不支持),改用原生 color 控制 SVG fill */
|
|
501
|
+
.wot-theme-dark .wd-rate .wd-rate__item-star {
|
|
502
|
+
background: none !important;
|
|
503
|
+
-webkit-background-clip: initial !important;
|
|
504
|
+
background-clip: initial !important;
|
|
505
|
+
color: var(--wot-rate-color, #555555) !important;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.wot-theme-dark .wd-rate .wd-rate__item-star svg,
|
|
509
|
+
.wot-theme-dark .wd-rate .wd-rate__item-star path {
|
|
510
|
+
fill: currentColor !important;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.wot-theme-dark .wd-rate .wd-rate__item-star--active,
|
|
514
|
+
.wot-theme-dark .wd-rate .wd-rate .wd-rate__item-star.wd-rate__item-star--active {
|
|
515
|
+
color: var(--wot-rate-active-color, #f5a623) !important;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.wot-theme-dark .wd-rate .wd-rate__item-star--active svg,
|
|
519
|
+
.wot-theme-dark .wd-rate .wd-rate__item-star--active path,
|
|
520
|
+
.wot-theme-dark .wd-rate .wd-rate .wd-rate__item-star.wd-rate__item-star--active svg,
|
|
521
|
+
.wot-theme-dark .wd-rate .wd-rate .wd-rate__item-star.wd-rate__item-star--active path {
|
|
522
|
+
fill: currentColor !important;
|
|
523
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root,.wot-theme-dark{--wot-dark-background:#1b1b1e;--wot-dark-background2:#161616;--wot-dark-background3:#1e1e1e;--wot-dark-background4:#262626;--wot-dark-background5:#333333;--wot-dark-color:#ffffff;--wot-dark-color2:#e8e8e8;--wot-dark-color3:#999999}.wot-theme-dark .wd-cell__title{color:#e8e8e8 !important}.wot-theme-dark .wd-cell__right{color:#666666 !important}.wot-theme-dark .wd-cell__icon{color:#666666 !important}.wot-theme-dark .wd-cell-group{background-color:#111111 !important}.wot-theme-dark .wd-cell{background-color:#161616 !important;border-bottom:1px solid rgba(255,255,255,0.04) !important}.wot-theme-dark .wd-cell:active{background-color:#1b1b1e !important}.wot-theme-dark .wd-switch__node{background-color:#3d3d3d !important}.wot-theme-dark .wd-switch__node--checked{background-color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-input{--wot-input-bg:#252530;--wot-input-inner-color:#e8e8e8;--wot-input-inner-placeholder-color:#fff}.wot-theme-dark .uni-input-input,.wot-theme-dark .wd-input__input,.wot-theme-dark .wd-input.is-compact .uni-input-input{color:var(--wot-input-inner-color, #e8e8e8) !important;caret-color:var(--wot-color-primary, #2164f3) !important;background-color:transparent !important}.wot-theme-dark .uni-input-placeholder,.wot-theme-dark .wd-input__placeholder,.wot-theme-dark .wd-input.is-compact .uni-input-placeholder{color:#fff !important}.wot-theme-dark .wd-input-number{--wot-input-number-bg:#252530;--wot-input-number-inner-color:#000000}.wot-theme-dark .wd-input-number .uni-input-input,.wot-theme-dark .wd-input-number__input{color:var(--wot-input-number-inner-color, #000) !important;caret-color:var(--wot-color-primary, #2164f3) !important;background-color:transparent !important}.wot-theme-dark .wd-input-number .uni-input-placeholder,.wot-theme-dark .wd-input-number__input::placeholder,.wot-theme-dark .wd-input-number__placeholder{color:#fff !important}.wot-theme-dark .wd-textarea{--wot-textarea-bg:#252530;--wot-textarea-inner-color:#e8e8e8;--wot-textarea-inner-placeholder-color:#fff}.wot-theme-dark .wd-textarea__inner{color:var(--wot-textarea-inner-color, #e8e8e8) !important;caret-color:var(--wot-color-primary, #2164f3) !important;background-color:transparent !important}.wot-theme-dark .wd-textarea__inner::placeholder,.wot-theme-dark .wd-textarea__placeholder{color:#fff !important}.wot-theme-dark .wd-form{background-color:transparent}.wot-theme-dark .wd-form-item{background-color:transparent !important}.wot-theme-dark .wd-form-item .wd-cell{background-color:transparent !important}.wot-theme-dark .wd-form-item__label,.wot-theme-dark .wd-form-item__title{color:var(--wot-dark-color2, #e8e8e8) !important}.wot-theme-dark .wd-form-item__body{background-color:transparent}.wot-theme-dark .wd-button--primary{--wd-button-primary-bg-color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-popup{background-color:transparent !important}.wot-theme-dark .wd-popup__container{background-color:#161616 !important}.wot-theme-dark .wd-popup__body{background-color:#1b1b1e !important}.wot-theme-dark .wd-action-sheet{background-color:#161616 !important}.wot-theme-dark .wd-action-sheet__title{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-action-sheet__item{color:var(--wot-dark-color2, #e0e0e0) !important}.wot-theme-dark .wd-action-sheet__action{background-color:#1b1b1e !important}.wot-theme-dark .wd-checkbox__label{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-select-picker__wrapper{background-color:#1b1b1e}.wot-theme-dark .wd-select-picker__popup{background-color:#161616 !important}.wot-theme-dark .wd-select-picker__checkbox-label,.wot-theme-dark .wd-select-picker__radio-label{color:var(--wot-dark-color2, #e8e8e8) !important}.wot-theme-dark .wd-select-picker__text-active{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-select-picker__footer{background-color:#161616}.wot-theme-dark .wd-calendar__wrapper{background-color:#1b1b1e}.wot-theme-dark .wd-calendar__popup{background-color:#161616 !important}.wot-theme-dark .wd-calendar__header{color:var(--wot-dark-color, #fff)}.wot-theme-dark .wd-calendar__view,.wot-theme-dark .wd-month-panel{--wot-calendar-view-day-color:#e8e8e8;--wot-calendar-view-week-color:#999999;--wot-calendar-view-panel-title-color:#ccc;--wot-calendar-view-control-icon-color:#aaa;--wot-calendar-view-control-color-disabled:#444;--wot-calendar-view-color-disabled:#555555;--wot-calendar-view-time-picker-color:#e8e8e8;--wot-calendar-view-time-picker-bg:#252530;--wot-calendar-view-range-color:#e8e8e8;background-color:transparent !important}.wot-theme-dark .wd-calendar__tabs{color:var(--wot-dark-color3, #999) !important}.wot-theme-dark .wd-calendar__shortcuts{border-bottom-color:rgba(255,255,255,0.06)}.wot-theme-dark .wd-calendar__view{background-color:transparent;color:var(--wot-dark-color2, #e8e8e8)}.wot-theme-dark .wd-calendar__range-item.is-placeholder{color:var(--wot-dark-color3, #666) !important}.wot-theme-dark .wd-calendar__range-separator{color:var(--wot-dark-color3, #666) !important}.wot-theme-dark .wd-year-panel{--wot-calendar-bg:#1b1b1e;--wot-picker-view-bg:#1b1b1e;background-color:#1b1b1e}.wot-theme-dark .wd-picker-view{--wot-picker-view-bg:#1b1b1e;--wot-picker-view-mask-start-color:rgba(0,0,0,0.85);--wot-picker-view-mask-end-color:rgba(0,0,0,0.2);--wot-picker-view-roller-bg:#2a2a30;--wot-picker-view-column-item-color:#e8e8e8;background-color:#1b1b1e}.wot-theme-dark .wd-picker-view__mask{background-image:linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.2)),linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0.2)) !important}.wot-theme-dark .wd-picker-view__roller{background-color:#2a2a30 !important}.wot-theme-dark .wd-picker-view__column-item{color:#e8e8e8 !important}.wot-theme-dark .wd-picker-view__column-item--active{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-year-panel__text{color:var(--wot-dark-color2, #e8e8e8)}.wot-theme-dark .wd-year-panel__item.is-active .wd-year-panel__text,.wot-theme-dark .wd-year-panel__item.is-active{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-datetime-picker__wrapper{background-color:#1b1b1e;color:var(--wot-dark-color2, #e8e8e8)}.wot-theme-dark .wd-datetime-picker__popup{background-color:#161616 !important}.wot-theme-dark::after{background-color:transparent !important}.wot-theme-dark .wd-toast{color:#fff !important}.wot-theme-dark .wd-picker__title,.wot-theme-dark .wd-picker__toolbar{color:var(--wot-dark-color2, #e0e0) !important}.wot-theme-dark .wd-dialog{color:var(--wot-dark-color2, #e0e0e0) !important}.wot-theme-dark .wd-dialog__header{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-loading-text{color:var(--wot-dark-color3, #a0a0a0) !important}.wot-theme-dark .wd-tag{color:#fff !important}.wot-theme-dark .wd-collapse{background-color:transparent !important}.wot-theme-dark .wd-collapse-item__title{color:var(--wot-dark-color2, #e0e0e0) !important}.wot-theme-dark .wd-tabbar{background-color:#111111 !important;border-top:1px solid rgba(255,255,255,0.06) !important}.wot-theme-dark .wd-tabbar-item{color:#ffffff}.wot-theme-dark .wd-tabbar-item__body .is-inactive{color:#ffffff !important}.wot-theme-dark .wd-tabbar-item--active{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-tabbar-item--active .wd-icon,.wot-theme-dark .wd-tabbar-item--active .wd-tabbar-item__icon{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-tabbar-item--active .wd-tabbar-item__body-title{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-navbar{background-color:#1b1b1e !important}.wot-theme-dark .wd-cell__arrow{color:#555555 !important}.wot-theme-dark .wd-cell__left-icon{color:#e0e0e0 !important}.wot-theme-dark .wd-card{background:linear-gradient(180deg, #1e1e23 0%, #19191e 100%) !important;box-shadow:0 8rpx 32rpx rgba(0,0,0,0.25),0 2rpx 8rpx rgba(0,0,0,0.15) !important;border-color:rgba(255,255,255,0.06) !important}.wot-theme-dark .wd-card__title{color:#f9fafb !important}.wot-theme-dark .wd-grid-item__text,.wot-theme-dark .wd-grid-item__content text{color:#e5e7eb !important}.wot-theme-dark .wd-grid-item__wrapper,.wot-theme-dark .wd-grid-item__content{background-color:transparent !important}.wot-theme-dark .wd-grid-item{background-color:transparent !important}.wot-theme-dark .recent-section{background-color:#1e1e23 !important;box-shadow:0 4px 16px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.05) !important;border:1px solid rgba(255,255,255,0.06) !important}.wot-theme-dark .recent-label{color:#d1d5db !important}.wot-theme-dark .wd-cell .wd-icon,.wot-theme-dark .wd-navbar .wd-icon,.wot-theme-dark .wd-button .wd-icon{color:#e0e0e0 !important}.wot-theme-dark .wd-cell .wd-icon svg,.wot-theme-dark .wd-cell .wd-icon path,.wot-theme-dark .wd-navbar .wd-icon svg,.wot-theme-dark .wd-navbar .wd-icon path,.wot-theme-dark .wd-button .wd-icon svg,.wot-theme-dark .wd-button .wd-icon path{fill:currentColor !important;color:currentColor !important}.wot-theme-dark .wd-search,.wot-theme-dark .wd-search.is-light,.wot-theme-dark .wd-search.is-plain{background:transparent !important;--wot-search-input-bg:#252530 !important;--wot-search-cover-bg:#252530 !important;--wot-search-placeholder-color:#666666 !important;--wot-search-cancel-color:var(--wot-color-primary, #2164f3) !important;--wot-search-icon-color:#888888 !important}.wot-theme-dark .wd-search .wd-search__block,.wot-theme-dark .wd-search.is-light .wd-search__block,.wot-theme-dark .wd-search.is-plain .wd-search__block{background-color:#252530 !important}.wot-theme-dark .wd-search .wd-search__cover,.wot-theme-dark .wd-search.is-light .wd-search__cover,.wot-theme-dark .wd-search.is-plain .wd-search__cover{background-color:#252530 !important}
|
package/styles/dark-mode.scss
CHANGED
|
@@ -85,6 +85,43 @@
|
|
|
85
85
|
color: #fff !important;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
/* InputNumber 数字输入框 */
|
|
89
|
+
.wd-input-number {
|
|
90
|
+
--wot-input-number-bg: #252530;
|
|
91
|
+
--wot-input-number-inner-color: #000000;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.wd-input-number .uni-input-input,
|
|
95
|
+
.wd-input-number__input {
|
|
96
|
+
color: var(--wot-input-number-inner-color, #000000) !important;
|
|
97
|
+
caret-color: var(--wot-color-primary, #2164f3) !important;
|
|
98
|
+
background-color: transparent !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.wd-input-number .uni-input-placeholder,
|
|
102
|
+
.wd-input-number__input::placeholder,
|
|
103
|
+
.wd-input-number__placeholder {
|
|
104
|
+
color: #fff !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Textarea 多行文本输入框 */
|
|
108
|
+
.wd-textarea {
|
|
109
|
+
--wot-textarea-bg: #252530;
|
|
110
|
+
--wot-textarea-inner-color: #e8e8e8;
|
|
111
|
+
--wot-textarea-inner-placeholder-color: #fff;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.wd-textarea__inner {
|
|
115
|
+
color: var(--wot-textarea-inner-color, #e8e8e8) !important;
|
|
116
|
+
caret-color: var(--wot-color-primary, #2164f3) !important;
|
|
117
|
+
background-color: transparent !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.wd-textarea__inner::placeholder,
|
|
121
|
+
.wd-textarea__placeholder {
|
|
122
|
+
color: #fff !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
88
125
|
/* Form 表单 */
|
|
89
126
|
.wd-form {
|
|
90
127
|
background-color: transparent;
|
|
@@ -138,6 +175,15 @@
|
|
|
138
175
|
color: var(--wot-dark-color2, #e0e0e0) !important;
|
|
139
176
|
}
|
|
140
177
|
|
|
178
|
+
.wd-action-sheet__action {
|
|
179
|
+
background-color: #1b1b1e !important;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Checkbox 复选框 */
|
|
183
|
+
.wd-checkbox__label {
|
|
184
|
+
color: var(--wot-dark-color, #fff) !important;
|
|
185
|
+
}
|
|
186
|
+
|
|
141
187
|
/* SelectPicker 选择器弹窗 */
|
|
142
188
|
.wd-select-picker__wrapper {
|
|
143
189
|
background-color: #1b1b1e;
|
|
@@ -176,15 +222,15 @@
|
|
|
176
222
|
/* Calendar 日历日期单元格暗黑适配(覆盖 wot-design-uni 内部变量)*/
|
|
177
223
|
.wd-calendar__view,
|
|
178
224
|
.wd-month-panel {
|
|
179
|
-
--wot-calendar-view-day-color: #e8e8e8;
|
|
180
|
-
--wot-calendar-view-week-color: #999999;
|
|
181
|
-
--wot-calendar-view-panel-title-color: #ccc;
|
|
182
|
-
--wot-calendar-view-control-icon-color: #aaa;
|
|
183
|
-
--wot-calendar-view-control-color-disabled: #444;
|
|
184
|
-
--wot-calendar-view-color-disabled: #555555;
|
|
185
|
-
--wot-calendar-view-time-picker-color: #e8e8e8;
|
|
186
|
-
--wot-calendar-view-time-picker-bg: #252530;
|
|
187
|
-
--wot-calendar-view-range-color: #e8e8e8;
|
|
225
|
+
--wot-calendar-view-day-color: #e8e8e8; /* 日期数字 */
|
|
226
|
+
--wot-calendar-view-week-color: #999999; /* 星期头(日一二三四五六) */
|
|
227
|
+
--wot-calendar-view-panel-title-color: #ccc; /* 面板标题(2026年6月) */
|
|
228
|
+
--wot-calendar-view-control-icon-color: #aaa; /* 左右箭头图标 */
|
|
229
|
+
--wot-calendar-view-control-color-disabled: #444; /* 禁用箭头 */
|
|
230
|
+
--wot-calendar-view-color-disabled: #555555; /* 禁用/不可选日期 */
|
|
231
|
+
--wot-calendar-view-time-picker-color: #e8e8e8; /* 时间选择器文字 */
|
|
232
|
+
--wot-calendar-view-time-picker-bg: #252530; /* 时间选择器背景 */
|
|
233
|
+
--wot-calendar-view-range-color: #e8e8e8; /* 区间模式文字色 */
|
|
188
234
|
background-color: transparent !important;
|
|
189
235
|
}
|
|
190
236
|
|
|
@@ -421,4 +467,32 @@
|
|
|
421
467
|
background-color: #252530 !important;
|
|
422
468
|
}
|
|
423
469
|
}
|
|
470
|
+
|
|
471
|
+
/* Rate 评分星级 - 暗黑模式下恢复星星选中效果 */
|
|
472
|
+
.wd-rate {
|
|
473
|
+
--wot-rate-color: #555555;
|
|
474
|
+
--wot-rate-active-color: #f5a623;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/* 恢复 wd-rate 星级颜色:放弃 background-clip:text(小程序不支持),改用原生 color 控制 SVG fill */
|
|
478
|
+
.wd-rate .wd-rate__item-star {
|
|
479
|
+
background: none !important;
|
|
480
|
+
-webkit-background-clip: initial !important;
|
|
481
|
+
background-clip: initial !important;
|
|
482
|
+
color: var(--wot-rate-color, #555555) !important;
|
|
483
|
+
|
|
484
|
+
svg,
|
|
485
|
+
path {
|
|
486
|
+
fill: currentColor !important;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
&.wd-rate__item-star--active {
|
|
490
|
+
color: var(--wot-rate-active-color, #f5a623) !important;
|
|
491
|
+
|
|
492
|
+
svg,
|
|
493
|
+
path {
|
|
494
|
+
fill: currentColor !important;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
424
498
|
}
|