From e470b2ed8a8aca1101fcf1927e7e5fb8f04a2b1a Mon Sep 17 00:00:00 2001 From: jiaming743 <743192023@qq.com> Date: Thu, 22 Aug 2019 14:42:51 +0800 Subject: [PATCH] update note --- lib/components/activeRingChart/src/main.vue | 8 +++++--- lib/components/percentPond/src/main.vue | 3 ++- lib/components/waterLevelPond/src/main.vue | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/components/activeRingChart/src/main.vue b/lib/components/activeRingChart/src/main.vue index 0b7759e..ad61cc3 100644 --- a/lib/components/activeRingChart/src/main.vue +++ b/lib/components/activeRingChart/src/main.vue @@ -47,7 +47,7 @@ export default { activeRadius: '55%', /** * @description Ring data - * @type {Array} + * @type {Array} * @default data = [{ name: '', value: 0 }] */ data: [{ name: '', value: 0 }], @@ -64,9 +64,10 @@ export default { */ activeTimeGap: 3000, /** - * @description Ring color (hex|rgb|rgba) + * @description Ring color (hex|rgb|rgba|color keywords) * @type {Array} * @default color = [Charts Default Color] + * @example color = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red'] */ color: [], /** @@ -195,7 +196,8 @@ export default { show: false } } - ] + ], + color: mergedConfig.color } }, getRealRadius (active = false) { diff --git a/lib/components/percentPond/src/main.vue b/lib/components/percentPond/src/main.vue index a511083..6d8bd4f 100644 --- a/lib/components/percentPond/src/main.vue +++ b/lib/components/percentPond/src/main.vue @@ -72,9 +72,10 @@ export default { */ value: 0, /** - * @description Colors (Hex|rgb|rgba) + * @description Colors (hex|rgb|rgba|color keywords) * @type {Array} * @default colors = ['#00BAFF', '#3DE7C9'] + * @example colors = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red'] */ colors: ['#3DE7C9', '#00BAFF'], /** diff --git a/lib/components/waterLevelPond/src/main.vue b/lib/components/waterLevelPond/src/main.vue index cf8e00d..0608f01 100644 --- a/lib/components/waterLevelPond/src/main.vue +++ b/lib/components/waterLevelPond/src/main.vue @@ -90,9 +90,10 @@ export default { */ waveOpacity: 0.4, /** - * @description Colors (Hex|rgb|rgba) + * @description Colors (hex|rgb|rgba|color keywords) * @type {Array} * @default colors = ['#00BAFF', '#3DE7C9'] + * @example colors = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red'] */ colors: ['#3DE7C9', '#00BAFF'], /**