解决部分电脑打包失败的问题

This commit is contained in:
季圣华
2023-03-15 00:37:35 +08:00
parent 2c5b8f82ff
commit f9bd8e33cf

View File

@@ -1,54 +1,54 @@
<template> <template>
<div :class="[prefixCls]"> <div :class="[prefixCls]">
<slot name="subtitle"> <slot name="subtitle">
<div :class="[`${prefixCls}-subtitle`]">{{ typeof subTitle === 'string' ? subTitle : subTitle() }}</div> <div :class="[`${prefixCls}-subtitle`]">{{ typeof subTitle === 'string' ? subTitle : subTitle() }}</div>
</slot> </slot>
<div class="number-info-value"> <div class="number-info-value">
<span>{{ total }}</span> <span>{{ total }}</span>
<span class="sub-total"> <span class="sub-total">
{{ subTotal }} {{ subTotal }}
<icon :type="`caret-${status}`" /> <icon :type="`caret-${status}`" />
</span> </span>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import Icon from 'ant-design-vue/es/icon' import Icon from 'ant-design-vue/es/icon'
export default { export default {
name: 'NumberInfo', name: 'NumberInfo',
props: { props: {
prefixCls: { prefixCls: {
type: String, type: String,
default: 'ant-pro-number-info' default: 'ant-pro-number-info'
}, },
total: { total: {
type: Number, type: Number,
required: true required: true
}, },
subTotal: { subTotal: {
type: Number, type: Number,
required: true required: true
}, },
subTitle: { subTitle: {
type: [String, Function], type: [String, Function],
default: '' default: ''
}, },
status: { status: {
type: String, type: String,
default: 'up' default: 'up'
} }
}, },
components: { components: {
Icon Icon
}, },
data () { data () {
return {} return {}
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@import "index"; /*@import "index";*/
</style> </style>