From 93e01926e316f9034854f1b9dad56e411d942d08 Mon Sep 17 00:00:00 2001 From: "AndyLZC/AndyLZC.github.io" <34624589+AndyLZC@users.noreply.github.com> Date: Tue, 7 Jan 2020 22:30:07 +0800 Subject: [PATCH] perf[complex-table]:refine code (#2825) --- mock/article.js | 2 +- src/views/table/complex-table.vue | 28 +++++++++------------------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/mock/article.js b/mock/article.js index bc236eb9..7980ac1b 100644 --- a/mock/article.js +++ b/mock/article.js @@ -18,7 +18,7 @@ for (let i = 0; i < count; i++) { forecast: '@float(0, 100, 2, 2)', importance: '@integer(1, 3)', 'type|1': ['CN', 'US', 'JP', 'EU'], - 'status|1': ['published', 'draft', 'deleted'], + 'status|1': ['published', 'draft'], display_time: '@datetime', comment_disabled: true, pageviews: '@integer(300, 5000)', diff --git a/src/views/table/complex-table.vue b/src/views/table/complex-table.vue index 4e1626a5..6cad8db0 100644 --- a/src/views/table/complex-table.vue +++ b/src/views/table/complex-table.vue @@ -80,7 +80,7 @@ -