From 1afc638fb668d8f7f75f90a000c3f287309f4a7d Mon Sep 17 00:00:00 2001 From: pengYYYYY Date: Thu, 21 Oct 2021 11:10:27 +0800 Subject: [PATCH] feat: update trend component --- src/components/trend/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/trend/index.vue b/src/components/trend/index.vue index cc5e5e4..6ec879b 100644 --- a/src/components/trend/index.vue +++ b/src/components/trend/index.vue @@ -49,8 +49,14 @@ import { defineComponent, computed, PropType } from 'vue'; export default defineComponent({ name: 'Trend', props: { - type: String as PropType, - describe: [String, Number] as PropType, + type: { + type: String as PropType, + default: '', + }, + describe: { + type: [String, Number] as PropType, + default: '', + }, isReverseColor: Boolean as PropType, }, setup(props) {