From 26a5c3cedd8393e43e4fb6d6a069d5509c85088a Mon Sep 17 00:00:00 2001 From: jiaming743 <743192023@qq.com> Date: Wed, 4 Sep 2019 11:23:59 +0800 Subject: [PATCH] add unit configuration item --- lib/components/scrollRankingBoard/src/main.vue | 11 +++++++++-- src/components/scrollRankingBoard/src/main.vue | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/lib/components/scrollRankingBoard/src/main.vue b/lib/components/scrollRankingBoard/src/main.vue index b6db935..114fa79 100644 --- a/lib/components/scrollRankingBoard/src/main.vue +++ b/lib/components/scrollRankingBoard/src/main.vue @@ -9,7 +9,7 @@
No.{{ item.ranking }}
{{ item.name }}
-
{{ item.value }}
+
{{ item.value + mergedConfig.unit }}
@@ -69,7 +69,14 @@ export default { * @default carousel = 'single' * @example carousel = 'single' | 'page' */ - carousel: 'single' + carousel: 'single', + /** + * @description Value unit + * @type {String} + * @default unit = '' + * @example unit = 'ton' + */ + unit: '' }, mergedConfig: null, diff --git a/src/components/scrollRankingBoard/src/main.vue b/src/components/scrollRankingBoard/src/main.vue index 024d568..4df1823 100644 --- a/src/components/scrollRankingBoard/src/main.vue +++ b/src/components/scrollRankingBoard/src/main.vue @@ -9,7 +9,7 @@
No.{{ item.ranking }}
{{ item.name }}
-
{{ item.value }}
+
{{ item.value + mergedConfig.unit }}
@@ -69,7 +69,14 @@ export default { * @default carousel = 'single' * @example carousel = 'single' | 'page' */ - carousel: 'single' + carousel: 'single', + /** + * @description Value unit + * @type {String} + * @default unit = '' + * @example unit = 'ton' + */ + unit: '' }, mergedConfig: null,