feat: 下载按钮显示
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
:show-date="false"
|
||||
:show-remove="false"
|
||||
:show-brand="false"
|
||||
is-order
|
||||
order-actions-layout
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user