From 1b3caf2455bdffb0ed320129ef92d2e8c3bc4edb Mon Sep 17 00:00:00 2001 From: surunzi Date: Fri, 9 Sep 2016 15:54:29 +0800 Subject: [PATCH] Dev: Improve table source display --- src/Console/Log.es6 | 8 +++++++- test/manual.html | 30 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/Console/Log.es6 b/src/Console/Log.es6 index 2af7392..7665514 100644 --- a/src/Console/Log.es6 +++ b/src/Console/Log.es6 @@ -72,7 +72,13 @@ export default class Log if (this._needSrc()) { - this.src = extractObj(args.length === 1 && util.isObj(args[0]) ? args[0] : args); + if (type === 'table') + { + this.src = extractObj(args[0]); + } else + { + this.src = extractObj(args.length === 1 && util.isObj(args[0]) ? args[0] : args); + } } let msg = '', icon; diff --git a/test/manual.html b/test/manual.html index a2d934d..6434ac2 100644 --- a/test/manual.html +++ b/test/manual.html @@ -4,10 +4,40 @@ Manual + +
Manual Test
+ +