best-unit 2.0.9 → 2.0.11
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/dist/best-unit.cjs +8 -8
- package/dist/best-unit.js +83 -64
- package/package.json +1 -1
- package/src/components/business/payment-sdk/offline-detail/theme.tsx +3 -0
- package/src/components/business/payment-sdk/online-payment/theme.tsx +5 -0
- package/src/components/business/payment-sdk/select-payment/theme.tsx +5 -0
- package/src/components/common/date-picker/index.tsx +2 -1
- package/src/components/common/date-picker/theme.tsx +5 -0
package/dist/best-unit.js
CHANGED
|
@@ -2065,22 +2065,22 @@ z.getAdapter = zn.getAdapter;
|
|
|
2065
2065
|
z.HttpStatusCode = ot;
|
|
2066
2066
|
z.default = z;
|
|
2067
2067
|
const {
|
|
2068
|
-
Axios:
|
|
2069
|
-
AxiosError:
|
|
2070
|
-
CanceledError:
|
|
2071
|
-
isCancel:
|
|
2072
|
-
CancelToken:
|
|
2073
|
-
VERSION:
|
|
2074
|
-
all:
|
|
2075
|
-
Cancel:
|
|
2076
|
-
isAxiosError:
|
|
2077
|
-
spread:
|
|
2078
|
-
toFormData:
|
|
2079
|
-
AxiosHeaders:
|
|
2080
|
-
HttpStatusCode:
|
|
2081
|
-
formToJSON:
|
|
2082
|
-
getAdapter:
|
|
2083
|
-
mergeConfig:
|
|
2068
|
+
Axios: ra,
|
|
2069
|
+
AxiosError: oa,
|
|
2070
|
+
CanceledError: ia,
|
|
2071
|
+
isCancel: aa,
|
|
2072
|
+
CancelToken: sa,
|
|
2073
|
+
VERSION: la,
|
|
2074
|
+
all: ca,
|
|
2075
|
+
Cancel: da,
|
|
2076
|
+
isAxiosError: ua,
|
|
2077
|
+
spread: fa,
|
|
2078
|
+
toFormData: pa,
|
|
2079
|
+
AxiosHeaders: ha,
|
|
2080
|
+
HttpStatusCode: ma,
|
|
2081
|
+
formToJSON: ga,
|
|
2082
|
+
getAdapter: ba,
|
|
2083
|
+
mergeConfig: ya
|
|
2084
2084
|
} = z;
|
|
2085
2085
|
function Uo(e = {}) {
|
|
2086
2086
|
const t = JSON.parse(
|
|
@@ -2261,10 +2261,10 @@ const Wo = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.set
|
|
|
2261
2261
|
consistent: n.data.consistent
|
|
2262
2262
|
}));
|
|
2263
2263
|
};
|
|
2264
|
-
async function
|
|
2264
|
+
async function xa() {
|
|
2265
2265
|
return await Un();
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function _a(e) {
|
|
2268
2268
|
const {
|
|
2269
2269
|
merchant_id: t,
|
|
2270
2270
|
biz_type: n,
|
|
@@ -2443,13 +2443,13 @@ class Yo {
|
|
|
2443
2443
|
}
|
|
2444
2444
|
}
|
|
2445
2445
|
const Ie = new Yo();
|
|
2446
|
-
function
|
|
2446
|
+
function Sa() {
|
|
2447
2447
|
console.log("npm package test!!!");
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function La() {
|
|
2450
2450
|
console.log("Current time:", (/* @__PURE__ */ new Date()).toISOString());
|
|
2451
2451
|
}
|
|
2452
|
-
const
|
|
2452
|
+
const wa = {
|
|
2453
2453
|
"/api": {
|
|
2454
2454
|
target: "https://fund.bestfulfill.tech/api/sdk",
|
|
2455
2455
|
changeOrigin: !0,
|
|
@@ -4892,6 +4892,11 @@ function Mi() {
|
|
|
4892
4892
|
background: "#23262F",
|
|
4893
4893
|
color: "#fff"
|
|
4894
4894
|
},
|
|
4895
|
+
bizRateBox: {
|
|
4896
|
+
...t.bizRateBox,
|
|
4897
|
+
color: "#B5B8BE"
|
|
4898
|
+
},
|
|
4899
|
+
bizRateStrong: { color: "#ff4d4f", fontWeight: 600 },
|
|
4895
4900
|
methodItem: (n) => ({
|
|
4896
4901
|
padding: "12px 16px",
|
|
4897
4902
|
textAlign: "left",
|
|
@@ -5252,6 +5257,11 @@ function Ri() {
|
|
|
5252
5257
|
border: "1px solid #5C3E12",
|
|
5253
5258
|
color: "#F4E3C1"
|
|
5254
5259
|
},
|
|
5260
|
+
// 计算金额提示在暗黑模式下的文本颜色优化
|
|
5261
|
+
calcBox: {
|
|
5262
|
+
...t.calcBox,
|
|
5263
|
+
color: "#B5B8BE"
|
|
5264
|
+
},
|
|
5255
5265
|
reminderTitle: {
|
|
5256
5266
|
...t.reminderTitle,
|
|
5257
5267
|
color: "#fff"
|
|
@@ -5660,7 +5670,8 @@ function zi() {
|
|
|
5660
5670
|
}
|
|
5661
5671
|
return o;
|
|
5662
5672
|
}
|
|
5663
|
-
|
|
5673
|
+
const Oi = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1760084950168'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6759'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M932.579556%20137.272889h-192V64.142222a9.159111%209.159111%200%200%200-9.130667-9.159111h-64a9.159111%209.159111%200%200%200-9.159111%209.159111v73.130667H365.738667V64.142222a9.159111%209.159111%200%200%200-9.159111-9.159111h-64a9.159111%209.159111%200%200%200-9.130667%209.159111v73.130667h-192c-20.224%200-36.579556%2016.355556-36.579556%2036.579555v758.869334c0%2020.195556%2016.355556%2036.551111%2036.579556%2036.551111h841.130667c20.252444%200%2036.579556-16.327111%2036.579555-36.551111V173.852444c0-20.224-16.355556-36.579556-36.579555-36.579555zM886.897778%20887.011556H137.159111V452.693333H886.897778v434.261334z%20m-749.710222-512V219.534222h146.289777v54.869334c0%205.034667%204.124444%209.130667%209.130667%209.130666h64a9.159111%209.159111%200%200%200%209.159111-9.130666V219.562667h292.551111v54.869333c0%205.034667%204.124444%209.130667%209.159111%209.130667h64a9.159111%209.159111%200%200%200%209.130667-9.130667V219.562667h146.289778v155.448889H137.159111z'%20p-id='6760'%3e%3c/path%3e%3c/svg%3e";
|
|
5674
|
+
function Pi() {
|
|
5664
5675
|
const e = E("theme"), t = E("themeConfig"), n = {
|
|
5665
5676
|
container: {
|
|
5666
5677
|
position: "relative",
|
|
@@ -5689,7 +5700,12 @@ function Oi() {
|
|
|
5689
5700
|
calendarIcon: {
|
|
5690
5701
|
fontSize: "16px",
|
|
5691
5702
|
color: "rgba(0, 0, 0, 0.45)",
|
|
5692
|
-
marginLeft: "8px"
|
|
5703
|
+
marginLeft: "8px",
|
|
5704
|
+
// 作为<img>使用时控制尺寸,避免SVG原始尺寸过大撑开容器
|
|
5705
|
+
width: 16,
|
|
5706
|
+
height: 16,
|
|
5707
|
+
objectFit: "contain",
|
|
5708
|
+
display: "inline-block"
|
|
5693
5709
|
},
|
|
5694
5710
|
disabled: {
|
|
5695
5711
|
backgroundColor: "#f5f5f5",
|
|
@@ -5975,10 +5991,10 @@ function Oi() {
|
|
|
5975
5991
|
}, o = r[e] || r.white, a = t?.[e]?.color;
|
|
5976
5992
|
return a && (o.dayToday.color = a, o.daySelected.backgroundColor = a, o.yearSelected.backgroundColor = a, e === "dark" && (o.daySelected.color = "#111", o.yearSelected.color = "#111")), o;
|
|
5977
5993
|
}
|
|
5978
|
-
function
|
|
5979
|
-
return
|
|
5994
|
+
function Ni() {
|
|
5995
|
+
return Pi();
|
|
5980
5996
|
}
|
|
5981
|
-
function
|
|
5997
|
+
function Ui({
|
|
5982
5998
|
value: e = "",
|
|
5983
5999
|
placeholder: t = _("请选择日期"),
|
|
5984
6000
|
disabled: n = !1,
|
|
@@ -5989,7 +6005,7 @@ function Ni({
|
|
|
5989
6005
|
className: s = "",
|
|
5990
6006
|
style: p = {}
|
|
5991
6007
|
}) {
|
|
5992
|
-
const c =
|
|
6008
|
+
const c = Ni(), [f, u] = B(!1), [y, m] = B(e), [h, x] = B(/* @__PURE__ */ new Date()), [b, S] = B(!1), L = se(null), T = (k) => {
|
|
5993
6009
|
if (!k) return "";
|
|
5994
6010
|
const v = new Date(k);
|
|
5995
6011
|
return `${v.getFullYear()}-${String(v.getMonth() + 1).padStart(
|
|
@@ -6101,7 +6117,7 @@ function Ni({
|
|
|
6101
6117
|
onBlur: i,
|
|
6102
6118
|
children: [
|
|
6103
6119
|
/* @__PURE__ */ d("span", { style: c.inputText, children: y ? T(y) : t }),
|
|
6104
|
-
/* @__PURE__ */ d("
|
|
6120
|
+
/* @__PURE__ */ d("img", { src: Oi, alt: "calendar", style: c.calendarIcon })
|
|
6105
6121
|
]
|
|
6106
6122
|
}
|
|
6107
6123
|
),
|
|
@@ -6191,7 +6207,7 @@ function Ni({
|
|
|
6191
6207
|
}
|
|
6192
6208
|
);
|
|
6193
6209
|
}
|
|
6194
|
-
function
|
|
6210
|
+
function $i({
|
|
6195
6211
|
onBack: e,
|
|
6196
6212
|
onCancel: t,
|
|
6197
6213
|
currency: n = "USD",
|
|
@@ -6265,7 +6281,7 @@ function Ui({
|
|
|
6265
6281
|
_("转账时间")
|
|
6266
6282
|
] }),
|
|
6267
6283
|
/* @__PURE__ */ d(
|
|
6268
|
-
|
|
6284
|
+
Ui,
|
|
6269
6285
|
{
|
|
6270
6286
|
value: f.transferTime,
|
|
6271
6287
|
placeholder: _("请选择转账时间"),
|
|
@@ -6359,7 +6375,7 @@ function Ui({
|
|
|
6359
6375
|
] })
|
|
6360
6376
|
] });
|
|
6361
6377
|
}
|
|
6362
|
-
function
|
|
6378
|
+
function Wi() {
|
|
6363
6379
|
const e = E("size"), t = {
|
|
6364
6380
|
container: {
|
|
6365
6381
|
background: "#fff",
|
|
@@ -6527,7 +6543,10 @@ function $i() {
|
|
|
6527
6543
|
color: "#666",
|
|
6528
6544
|
lineHeight: 1.6,
|
|
6529
6545
|
textAlign: "left",
|
|
6530
|
-
fontSize: e === l.SMALL ? 12 : 13
|
|
6546
|
+
fontSize: e === l.SMALL ? 12 : 13,
|
|
6547
|
+
// 为避免宿主系统重置 ul/li 样式导致小圆点不显示,这里显式指定
|
|
6548
|
+
listStyleType: "disc",
|
|
6549
|
+
listStylePosition: "outside"
|
|
6531
6550
|
},
|
|
6532
6551
|
link: {
|
|
6533
6552
|
color: "#1890ff",
|
|
@@ -6616,8 +6635,8 @@ function $i() {
|
|
|
6616
6635
|
}
|
|
6617
6636
|
};
|
|
6618
6637
|
}
|
|
6619
|
-
function
|
|
6620
|
-
const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r =
|
|
6638
|
+
function Hi() {
|
|
6639
|
+
const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = Wi(), o = n ? r.white : r.dark;
|
|
6621
6640
|
if (t) {
|
|
6622
6641
|
const a = n ? t.white : t.dark;
|
|
6623
6642
|
if (a?.color)
|
|
@@ -6631,8 +6650,8 @@ function Wi() {
|
|
|
6631
6650
|
}
|
|
6632
6651
|
return o;
|
|
6633
6652
|
}
|
|
6634
|
-
function
|
|
6635
|
-
const n =
|
|
6653
|
+
function ji({ onConfirm: e, channelCode: t }) {
|
|
6654
|
+
const n = Hi(), [r, o] = B([]);
|
|
6636
6655
|
return J(() => {
|
|
6637
6656
|
if (!t) return;
|
|
6638
6657
|
let a = !0;
|
|
@@ -6697,7 +6716,7 @@ function Hi({ onConfirm: e, channelCode: t }) {
|
|
|
6697
6716
|
] })
|
|
6698
6717
|
] });
|
|
6699
6718
|
}
|
|
6700
|
-
function
|
|
6719
|
+
function qi({
|
|
6701
6720
|
visible: e,
|
|
6702
6721
|
onClose: t,
|
|
6703
6722
|
onSubmit: n
|
|
@@ -6803,7 +6822,7 @@ function ji({
|
|
|
6803
6822
|
onAmountError: f
|
|
6804
6823
|
}
|
|
6805
6824
|
) : i.showOfflineUpload ? /* @__PURE__ */ d(
|
|
6806
|
-
|
|
6825
|
+
$i,
|
|
6807
6826
|
{
|
|
6808
6827
|
onBack: h,
|
|
6809
6828
|
onCancel: t,
|
|
@@ -6813,7 +6832,7 @@ function ji({
|
|
|
6813
6832
|
onAmountError: f
|
|
6814
6833
|
}
|
|
6815
6834
|
) : /* @__PURE__ */ d(
|
|
6816
|
-
|
|
6835
|
+
ji,
|
|
6817
6836
|
{
|
|
6818
6837
|
onConfirm: m,
|
|
6819
6838
|
channelCode: i.channel
|
|
@@ -6825,7 +6844,7 @@ function ji({
|
|
|
6825
6844
|
}
|
|
6826
6845
|
);
|
|
6827
6846
|
}
|
|
6828
|
-
function
|
|
6847
|
+
function Ji() {
|
|
6829
6848
|
const [e, t] = B(!1), n = async (r) => {
|
|
6830
6849
|
const o = await Wn({
|
|
6831
6850
|
amount: r.amount,
|
|
@@ -6837,7 +6856,7 @@ function qi() {
|
|
|
6837
6856
|
return /* @__PURE__ */ d("div", { children: [
|
|
6838
6857
|
/* @__PURE__ */ d(ht, { onClick: () => t(!0), children: _("充值/转账") }),
|
|
6839
6858
|
/* @__PURE__ */ d(
|
|
6840
|
-
|
|
6859
|
+
qi,
|
|
6841
6860
|
{
|
|
6842
6861
|
visible: e,
|
|
6843
6862
|
onClose: () => t(!1),
|
|
@@ -6846,7 +6865,7 @@ function qi() {
|
|
|
6846
6865
|
)
|
|
6847
6866
|
] });
|
|
6848
6867
|
}
|
|
6849
|
-
qe(
|
|
6868
|
+
qe(Ji, "best-payment", ["theme"], { shadow: !1 });
|
|
6850
6869
|
const Kt = {
|
|
6851
6870
|
white: {
|
|
6852
6871
|
popover: {
|
|
@@ -6877,10 +6896,10 @@ const Kt = {
|
|
|
6877
6896
|
}
|
|
6878
6897
|
}
|
|
6879
6898
|
};
|
|
6880
|
-
function
|
|
6899
|
+
function Vi() {
|
|
6881
6900
|
return E("theme") === N.WHITE ? Kt.white : Kt.dark;
|
|
6882
6901
|
}
|
|
6883
|
-
const
|
|
6902
|
+
const Yi = ({
|
|
6884
6903
|
popover: e,
|
|
6885
6904
|
children: t,
|
|
6886
6905
|
popoverWidth: n,
|
|
@@ -6889,7 +6908,7 @@ const Vi = ({
|
|
|
6889
6908
|
offsetX: a,
|
|
6890
6909
|
popoverPosition: i = "top"
|
|
6891
6910
|
}) => {
|
|
6892
|
-
const s = E("size"), p = n ?? (s === l.SMALL ? 200 : 300), c = r ?? (s === l.SMALL ? 150 : 200), f = o ?? (s === l.SMALL ? 8 : 16), u = a ?? (s === l.SMALL ? 8 : 16), [y, m] = B(!1), [h, x] = B(i), b = se(null), S = se(null), L =
|
|
6911
|
+
const s = E("size"), p = n ?? (s === l.SMALL ? 200 : 300), c = r ?? (s === l.SMALL ? 150 : 200), f = o ?? (s === l.SMALL ? 8 : 16), u = a ?? (s === l.SMALL ? 8 : 16), [y, m] = B(!1), [h, x] = B(i), b = se(null), S = se(null), L = Vi(), T = () => {
|
|
6893
6912
|
if (S.current && (clearTimeout(S.current), S.current = null), i === "top" || i === "bottom")
|
|
6894
6913
|
if (b.current) {
|
|
6895
6914
|
const P = b.current.getBoundingClientRect();
|
|
@@ -7001,7 +7020,7 @@ const Vi = ({
|
|
|
7001
7020
|
}
|
|
7002
7021
|
);
|
|
7003
7022
|
};
|
|
7004
|
-
function
|
|
7023
|
+
function Gi() {
|
|
7005
7024
|
const e = E("size");
|
|
7006
7025
|
return {
|
|
7007
7026
|
white: {
|
|
@@ -7102,8 +7121,8 @@ function Yi() {
|
|
|
7102
7121
|
}
|
|
7103
7122
|
};
|
|
7104
7123
|
}
|
|
7105
|
-
function
|
|
7106
|
-
const t = E("theme") === N.WHITE, n =
|
|
7124
|
+
function Ki() {
|
|
7125
|
+
const t = E("theme") === N.WHITE, n = Gi();
|
|
7107
7126
|
return t ? n.white : n.dark;
|
|
7108
7127
|
}
|
|
7109
7128
|
function Xt(e) {
|
|
@@ -7112,7 +7131,7 @@ function Xt(e) {
|
|
|
7112
7131
|
maximumFractionDigits: 2
|
|
7113
7132
|
});
|
|
7114
7133
|
}
|
|
7115
|
-
function
|
|
7134
|
+
function Xi(e) {
|
|
7116
7135
|
const [t, n] = B({
|
|
7117
7136
|
currBalance: 0,
|
|
7118
7137
|
currency: "USD",
|
|
@@ -7180,7 +7199,7 @@ function Ki(e) {
|
|
|
7180
7199
|
);
|
|
7181
7200
|
};
|
|
7182
7201
|
}, []);
|
|
7183
|
-
const o =
|
|
7202
|
+
const o = Ki(), a = [
|
|
7184
7203
|
{
|
|
7185
7204
|
label: _("真实金额"),
|
|
7186
7205
|
value: t.details[0]?.value || 0,
|
|
@@ -7215,7 +7234,7 @@ function Ki(e) {
|
|
|
7215
7234
|
}
|
|
7216
7235
|
];
|
|
7217
7236
|
return /* @__PURE__ */ d(
|
|
7218
|
-
|
|
7237
|
+
Yi,
|
|
7219
7238
|
{
|
|
7220
7239
|
popover: /* @__PURE__ */ d(ne, { children: [
|
|
7221
7240
|
/* @__PURE__ */ d("div", { style: o.popoverTitle, children: _("余额详情") }),
|
|
@@ -7235,7 +7254,7 @@ function Ki(e) {
|
|
|
7235
7254
|
}
|
|
7236
7255
|
);
|
|
7237
7256
|
}
|
|
7238
|
-
qe(
|
|
7257
|
+
qe(Xi, "best-statistical-balance");
|
|
7239
7258
|
const we = {
|
|
7240
7259
|
white: {
|
|
7241
7260
|
background: "#1890ff",
|
|
@@ -7256,7 +7275,7 @@ const we = {
|
|
|
7256
7275
|
transition: "all 0.2s ease"
|
|
7257
7276
|
}
|
|
7258
7277
|
};
|
|
7259
|
-
function
|
|
7278
|
+
function Zi(e) {
|
|
7260
7279
|
return E("theme") === N.WHITE ? {
|
|
7261
7280
|
...we.white,
|
|
7262
7281
|
background: e || we.white.background
|
|
@@ -7265,7 +7284,7 @@ function Xi(e) {
|
|
|
7265
7284
|
background: e || we.dark.background
|
|
7266
7285
|
};
|
|
7267
7286
|
}
|
|
7268
|
-
function
|
|
7287
|
+
function Qi(e) {
|
|
7269
7288
|
switch (e) {
|
|
7270
7289
|
case "small":
|
|
7271
7290
|
return {
|
|
@@ -7284,12 +7303,12 @@ function Zi(e) {
|
|
|
7284
7303
|
};
|
|
7285
7304
|
}
|
|
7286
7305
|
}
|
|
7287
|
-
function
|
|
7306
|
+
function ea({
|
|
7288
7307
|
color: e,
|
|
7289
7308
|
size: t = "medium",
|
|
7290
7309
|
children: n
|
|
7291
7310
|
}) {
|
|
7292
|
-
const [r, o] = B(!1), a =
|
|
7311
|
+
const [r, o] = B(!1), a = Zi(e), i = Qi(t), s = {
|
|
7293
7312
|
...a,
|
|
7294
7313
|
...i,
|
|
7295
7314
|
display: "flex",
|
|
@@ -7352,19 +7371,19 @@ function Qi({
|
|
|
7352
7371
|
] }) })
|
|
7353
7372
|
] });
|
|
7354
7373
|
}
|
|
7355
|
-
qe(
|
|
7356
|
-
const
|
|
7374
|
+
qe(ea, "best-refresh-button", [], { shadow: !0 });
|
|
7375
|
+
const Aa = [
|
|
7357
7376
|
"best-recharge",
|
|
7358
7377
|
"best-payment",
|
|
7359
7378
|
"best-statistical-balance",
|
|
7360
7379
|
"best-refresh-button"
|
|
7361
7380
|
];
|
|
7362
7381
|
export {
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7382
|
+
Aa as components,
|
|
7383
|
+
xa as getBalanceData,
|
|
7384
|
+
_a as initFundUnit,
|
|
7385
|
+
Sa as npmTest,
|
|
7386
|
+
La as printCurrentTime,
|
|
7368
7387
|
Jo as refreshBalance,
|
|
7369
|
-
|
|
7388
|
+
wa as viteProxy
|
|
7370
7389
|
};
|
package/package.json
CHANGED
|
@@ -169,6 +169,9 @@ function createOfflineDetailThemes() {
|
|
|
169
169
|
lineHeight: 1.6,
|
|
170
170
|
textAlign: "left",
|
|
171
171
|
fontSize: size === Size.SMALL ? 12 : 13,
|
|
172
|
+
// 为避免宿主系统重置 ul/li 样式导致小圆点不显示,这里显式指定
|
|
173
|
+
listStyleType: "disc",
|
|
174
|
+
listStylePosition: "outside",
|
|
172
175
|
},
|
|
173
176
|
link: {
|
|
174
177
|
color: "#1890ff",
|
|
@@ -152,6 +152,11 @@ function createOnlinePaymentThemes() {
|
|
|
152
152
|
border: "1px solid #5C3E12",
|
|
153
153
|
color: "#F4E3C1",
|
|
154
154
|
},
|
|
155
|
+
// 计算金额提示在暗黑模式下的文本颜色优化
|
|
156
|
+
calcBox: {
|
|
157
|
+
...base.calcBox,
|
|
158
|
+
color: "#B5B8BE",
|
|
159
|
+
},
|
|
155
160
|
reminderTitle: {
|
|
156
161
|
...base.reminderTitle,
|
|
157
162
|
color: "#fff",
|
|
@@ -182,6 +182,11 @@ function createSelectPaymentThemes() {
|
|
|
182
182
|
background: "#23262F",
|
|
183
183
|
color: "#fff",
|
|
184
184
|
},
|
|
185
|
+
bizRateBox: {
|
|
186
|
+
...base.bizRateBox,
|
|
187
|
+
color: "#B5B8BE",
|
|
188
|
+
},
|
|
189
|
+
bizRateStrong: { color: "#ff4d4f", fontWeight: 600 },
|
|
185
190
|
methodItem: (active: boolean) => ({
|
|
186
191
|
padding: "12px 16px",
|
|
187
192
|
textAlign: "left",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useState, useRef, useEffect } from "preact/hooks";
|
|
2
2
|
import { t } from "@/local";
|
|
3
|
+
import DateIcon from "@/image/date.svg";
|
|
3
4
|
import { getDatePickerTheme } from "./theme";
|
|
4
5
|
|
|
5
6
|
export interface DatePickerProps {
|
|
@@ -231,7 +232,7 @@ export function DatePicker({
|
|
|
231
232
|
<span style={theme.inputText}>
|
|
232
233
|
{selectedDate ? formatDate(selectedDate) : placeholder}
|
|
233
234
|
</span>
|
|
234
|
-
<
|
|
235
|
+
<img src={DateIcon} alt="calendar" style={theme.calendarIcon} />
|
|
235
236
|
</div>
|
|
236
237
|
|
|
237
238
|
{/* 日历面板 */}
|
|
@@ -34,6 +34,11 @@ function createDatePickerThemes() {
|
|
|
34
34
|
fontSize: "16px",
|
|
35
35
|
color: "rgba(0, 0, 0, 0.45)",
|
|
36
36
|
marginLeft: "8px",
|
|
37
|
+
// 作为<img>使用时控制尺寸,避免SVG原始尺寸过大撑开容器
|
|
38
|
+
width: 16,
|
|
39
|
+
height: 16,
|
|
40
|
+
objectFit: "contain" as const,
|
|
41
|
+
display: "inline-block",
|
|
37
42
|
},
|
|
38
43
|
disabled: {
|
|
39
44
|
backgroundColor: "#f5f5f5",
|