From a7181790a6cc7bdce5debce494bd97088021d722 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Mon, 16 Dec 2019 19:00:34 +0800 Subject: [PATCH] refactor(log): wip --- .../components/log/enUS/basic.md | 4 +- .../components/log/enUS/index.md | 1 + packages/common/Log/src/LogLoader.vue | 15 ++++ packages/common/Log/src/main.vue | 31 ++++--- packages/utils/colors.js | 9 ++ styles/Log.scss | 83 ++++++++++++------- styles/themes/vars.scss | 40 +++++++-- 7 files changed, 129 insertions(+), 54 deletions(-) create mode 100644 packages/common/Log/src/LogLoader.vue create mode 100644 packages/utils/colors.js diff --git a/demo/documentation/components/log/enUS/basic.md b/demo/documentation/components/log/enUS/basic.md index 5a669417d..59521a046 100644 --- a/demo/documentation/components/log/enUS/basic.md +++ b/demo/documentation/components/log/enUS/basic.md @@ -64,7 +64,7 @@ export default { setTimeout(() => { this.log = log + this.log this.topLoading = false - }, 3000) + }, 6000) }, handleReachBottom () { if (this.bottomLoading) return @@ -72,7 +72,7 @@ export default { setTimeout(() => { this.log = this.log + log this.bottomLoading = false - }, 3000) + }, 6000) } } } diff --git a/demo/documentation/components/log/enUS/index.md b/demo/documentation/components/log/enUS/index.md index 4d0db4851..434f1c33b 100644 --- a/demo/documentation/components/log/enUS/index.md +++ b/demo/documentation/components/log/enUS/index.md @@ -1,4 +1,5 @@ # Log + ```demo basic ``` \ No newline at end of file diff --git a/packages/common/Log/src/LogLoader.vue b/packages/common/Log/src/LogLoader.vue new file mode 100644 index 000000000..421117b5c --- /dev/null +++ b/packages/common/Log/src/LogLoader.vue @@ -0,0 +1,15 @@ + + + Loading + + + + diff --git a/packages/common/Log/src/main.vue b/packages/common/Log/src/main.vue index 67fe9ae55..43014970d 100644 --- a/packages/common/Log/src/main.vue +++ b/packages/common/Log/src/main.vue @@ -1,41 +1,40 @@ - - {{ topLoading ? "Loading More" : 'Wheel Up to View More' }} + {{ processedLog }} - {{ bottomLoading ? "Loading More" : 'Wheel Down to View More' }} + + +
{{ topLoading ? "Loading More" : 'Wheel Up to View More' }}
{{ processedLog }}
{{ bottomLoading ? "Loading More" : 'Wheel Down to View More' }}