diff --git a/src/components/mCountCard/index.vue b/src/components/mCountCard/index.vue index 1aa4ea7..3988658 100644 --- a/src/components/mCountCard/index.vue +++ b/src/components/mCountCard/index.vue @@ -37,14 +37,14 @@ const props = defineProps({ info: { type: Object, default: () => { - return { - icon: "xiaoshoujine", - zh: "2023年销售金额", - en: "Sales amount in 2023", - value: 9500, - unit: "万元", - decimals: 0, - } + return { + icon: "", + zh: "", + en: "", + value: 0, + unit: "", + decimals: 0, + } }, }, }) diff --git a/src/components/mCountTo/vue-countTo.vue b/src/components/mCountTo/vue-countTo.vue index 86f7dbd..beb9944 100644 --- a/src/components/mCountTo/vue-countTo.vue +++ b/src/components/mCountTo/vue-countTo.vue @@ -12,10 +12,10 @@ export default { required: false, default: 0, }, - endVal: { - type: Number, - required: false, - default: 2017, + endVal: { + type: Number, + required: false, + default: 0, }, duration: { type: Number, diff --git a/src/components/mSvglineAnimation/index.vue b/src/components/mSvglineAnimation/index.vue index 15203b0..82999bd 100644 --- a/src/components/mSvglineAnimation/index.vue +++ b/src/components/mSvglineAnimation/index.vue @@ -37,9 +37,11 @@ * @property {Number} begin 路径开始的位置 * @property {Number} dir 路径移动方向 [0,1]-正向 [1,0]-反向 * @property {Number} strokeWidth 路径的粗细 - * @property {String} color 路径的颜色 - */ -export default { + * @property {String} color 路径的颜色 + */ +let svgLineUid = 0 + +export default { name: "SvglineAnimation", props: { width: { @@ -78,20 +80,15 @@ export default { type: Number, default: 4, }, - }, - data() { - let uid = 1 - return { - maskId: "svgline-" + uid, - radialGradientId: "radialGradient-" + uid, - } - }, - mounted() { - let uid = this._.uid - this.maskId = "svgline-" + uid - this.radialGradientId = "radialGradient-" + uid - }, -} + }, + data() { + const uid = ++svgLineUid + return { + maskId: "svgline-" + uid, + radialGradientId: "radialGradient-" + uid, + } + }, +}