mirror of
https://github.com/certd/certd.git
synced 2026-06-28 22:47:35 +08:00
chore: 钱包余额明细
This commit is contained in:
@@ -13,11 +13,13 @@ const props = withDefaults(
|
||||
modelValue?: number;
|
||||
edit?: boolean;
|
||||
fontSize?: number;
|
||||
zeroText?: string;
|
||||
}>(),
|
||||
{
|
||||
modelValue: 0,
|
||||
edit: false,
|
||||
fontSize: 14,
|
||||
zeroText: "¥0",
|
||||
}
|
||||
);
|
||||
|
||||
@@ -39,7 +41,7 @@ const priceValue = computed(() => {
|
||||
|
||||
const priceLabel = computed(() => {
|
||||
if (priceValue.value === 0) {
|
||||
return "免费";
|
||||
return props.zeroText;
|
||||
}
|
||||
return `¥${priceValue.value}`;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user