feat: 下载按钮显示
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="amount" v-show="!disabled">${{ info.amount }}<span> HKD</span></div>
|
<div class="amount" v-show="!disabled">${{ info.amount }}<span> HKD</span></div>
|
||||||
<SvgIcon
|
<SvgIcon
|
||||||
v-if="orderActionsLayout"
|
v-if="showDownload"
|
||||||
class="download"
|
class="download"
|
||||||
name="download"
|
name="download"
|
||||||
size="32"
|
size="32"
|
||||||
@@ -57,6 +57,7 @@
|
|||||||
showRemove: { type: Boolean, default: true },
|
showRemove: { type: Boolean, default: true },
|
||||||
orderActionsLayout: { type: Boolean, default: false },
|
orderActionsLayout: { type: Boolean, default: false },
|
||||||
showBrand: { type: Boolean, default: true },
|
showBrand: { type: Boolean, default: true },
|
||||||
|
isOrder: { type: Boolean, default: false },
|
||||||
info: {
|
info: {
|
||||||
type: Object as () => {
|
type: Object as () => {
|
||||||
status: number
|
status: number
|
||||||
@@ -74,6 +75,10 @@
|
|||||||
const onRemove = () => {
|
const onRemove = () => {
|
||||||
emit('remove', props.info)
|
emit('remove', props.info)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const showDownload = computed(() => {
|
||||||
|
return props.isOrder ? props.info.status === 1 : props.orderActionsLayout
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -80,6 +80,7 @@
|
|||||||
:show-date="false"
|
:show-date="false"
|
||||||
:show-remove="false"
|
:show-remove="false"
|
||||||
:show-brand="false"
|
:show-brand="false"
|
||||||
|
is-order
|
||||||
order-actions-layout
|
order-actions-layout
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user