You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2019/12/23 02:03:52 UTC

[incubator-shardingsphere-benchmark] branch master updated: feature[shadingsphere-benchmark-ui]: support for line feed

This is an automated email from the ASF dual-hosted git repository.

zhaoyanan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shardingsphere-benchmark.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d04410  feature[shadingsphere-benchmark-ui]: support for line feed
     new 785ca29  Merge pull request #36 from wqzwh/master
4d04410 is described below

commit 4d044102867b556d1ea9b78fcbe85b1b9f045d86
Author: wqzwh <wa...@163.com>
AuthorDate: Mon Dec 23 09:43:39 2019 +0800

    feature[shadingsphere-benchmark-ui]: support for line feed
---
 shadingsphere-benchmark-ui/src/utils/mixin.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/shadingsphere-benchmark-ui/src/utils/mixin.js b/shadingsphere-benchmark-ui/src/utils/mixin.js
index e5295cc..8803bab 100644
--- a/shadingsphere-benchmark-ui/src/utils/mixin.js
+++ b/shadingsphere-benchmark-ui/src/utils/mixin.js
@@ -31,7 +31,15 @@ const mountedMixin = {
         },
         {
           title: 'table description',
-          key: 'tableDescription'
+          key: 'tableDescription',
+          render: (h, params) => {
+            const rows = params.row.tableDescription.split('\n')
+            const html = []
+            for (const v of rows) {
+              html.push(h('div', v))
+            }
+            return h('div', html)
+          }
         },
         {
           title: 'encrypt rule',