feat: 下载按钮显示

This commit is contained in:
2026-05-27 11:05:30 +08:00
parent b8662fd379
commit c263f1cffc
2 changed files with 7 additions and 1 deletions

View File

@@ -33,7 +33,7 @@
</div>
<div class="amount" v-show="!disabled">${{ info.amount }}<span> HKD</span></div>
<SvgIcon
v-if="orderActionsLayout"
v-if="showDownload"
class="download"
name="download"
size="32"
@@ -57,6 +57,7 @@
showRemove: { type: Boolean, default: true },
orderActionsLayout: { type: Boolean, default: false },
showBrand: { type: Boolean, default: true },
isOrder: { type: Boolean, default: false },
info: {
type: Object as () => {
status: number
@@ -74,6 +75,10 @@
const onRemove = () => {
emit('remove', props.info)
}
const showDownload = computed(() => {
return props.isOrder ? props.info.status === 1 : props.orderActionsLayout
})
</script>
<style lang="less" scoped>

View File

@@ -80,6 +80,7 @@
:show-date="false"
:show-remove="false"
:show-brand="false"
is-order
order-actions-layout
/>
</div>