From ab5ade9be12201cb784877b5ae1f1ee0dd38077e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?=
<1262327911@qq.com>
Date: Fri, 11 Aug 2023 22:35:44 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E8=A1=A8?=
=?UTF-8?q?=E6=A0=BC=E7=BB=84=E4=BB=B6=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Tables/Tables/TablesBasic/config.ts | 32 ++--
.../Tables/Tables/TablesBasic/config.vue | 161 +++++++++---------
.../Tables/Tables/TablesBasic/data.json | 118 ++++++-------
.../Tables/Tables/TablesBasic/index.vue | 112 ++++++------
4 files changed, 216 insertions(+), 207 deletions(-)
diff --git a/src/packages/components/Tables/Tables/TablesBasic/config.ts b/src/packages/components/Tables/Tables/TablesBasic/config.ts
index eeca61bd..f1151226 100644
--- a/src/packages/components/Tables/Tables/TablesBasic/config.ts
+++ b/src/packages/components/Tables/Tables/TablesBasic/config.ts
@@ -5,26 +5,26 @@ import { chartInitConfig } from '@/settings/designSetting'
import { TablesBasicConfig } from './index'
import dataJson from './data.json'
-const {dimensions,source} = dataJson
+const { dimensions, source } = dataJson
export const option = {
- dataset:{dimensions,source},
- pagination:{
+ dataset: { dimensions, source },
+ pagination: {
page: 1,
- pageSize:5
+ pageSize: 5
},
- align:'center',
- style:{
- border:'on',
- singleColumn:'off',
- singleLine:'off',
- bottomBordered:'on',
- striped:'on',
- fontSize:16,
- borderWidth:0,
- borderColor:'black',
- borderStyle:'solid'
+ align: 'center',
+ style: {
+ border: 'on',
+ singleColumn: 'off',
+ singleLine: 'off',
+ bottomBordered: 'on',
+ striped: 'on',
+ fontSize: 16,
+ borderWidth: 0,
+ borderColor: 'black',
+ borderStyle: 'solid'
},
- inputShow:"none"
+ inputShow: 'none'
}
export default class Config extends PublicConfigClass implements CreateComponentType {
diff --git a/src/packages/components/Tables/Tables/TablesBasic/config.vue b/src/packages/components/Tables/Tables/TablesBasic/config.vue
index 10b06699..9701196c 100644
--- a/src/packages/components/Tables/Tables/TablesBasic/config.vue
+++ b/src/packages/components/Tables/Tables/TablesBasic/config.vue
@@ -1,117 +1,123 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
diff --git a/src/packages/components/Tables/Tables/TablesBasic/data.json b/src/packages/components/Tables/Tables/TablesBasic/data.json
index 6d671fb6..29ba4085 100644
--- a/src/packages/components/Tables/Tables/TablesBasic/data.json
+++ b/src/packages/components/Tables/Tables/TablesBasic/data.json
@@ -1,60 +1,60 @@
{
- "dimensions":[
- {
- "title": "产品名称",
- "key": "productName"
- },
- {
- "title": "产品销量(万)",
- "key": "totalSum"
- },
- {
- "title": "销售额(万)",
- "key": "totalAmount"
- }
- ],
- "source":[
- {
- "key": 0,
- "productName": "产品A1",
- "totalSum": 10,
- "totalAmount": 10
- },
- {
- "key": 1,
- "productName": "产品B1",
- "totalSum": 10,
- "totalAmount": 10
- },
- {
- "key": 2,
- "productName": "产品C1",
- "totalSum": 10,
- "totalAmount": 10
- },
- {
- "key": 3,
- "productName": "产品D1",
- "totalSum": 10,
- "totalAmount": 10
- },
- {
- "key": 4,
- "productName": "产品A2",
- "totalSum": 10,
- "totalAmount": 10
- },
- {
- "key": 5,
- "productName": "产品D2",
- "totalSum": 10,
- "totalAmount": 10
- },
- {
- "key": 6,
- "productName": "产品A3",
- "totalSum": 10,
- "totalAmount": 10
- }
- ]
-}
\ No newline at end of file
+ "dimensions": [
+ {
+ "title": "产品名称",
+ "key": "productName"
+ },
+ {
+ "title": "产品销量(万)",
+ "key": "totalSum"
+ },
+ {
+ "title": "销售额(万)",
+ "key": "totalAmount"
+ }
+ ],
+ "source": [
+ {
+ "key": 0,
+ "productName": "产品A1",
+ "totalSum": 10,
+ "totalAmount": 10
+ },
+ {
+ "key": 1,
+ "productName": "产品B1",
+ "totalSum": 10,
+ "totalAmount": 10
+ },
+ {
+ "key": 2,
+ "productName": "产品C1",
+ "totalSum": 10,
+ "totalAmount": 10
+ },
+ {
+ "key": 3,
+ "productName": "产品D1",
+ "totalSum": 10,
+ "totalAmount": 10
+ },
+ {
+ "key": 4,
+ "productName": "产品A2",
+ "totalSum": 10,
+ "totalAmount": 10
+ },
+ {
+ "key": 5,
+ "productName": "产品D2",
+ "totalSum": 10,
+ "totalAmount": 10
+ },
+ {
+ "key": 6,
+ "productName": "产品A3",
+ "totalSum": 10,
+ "totalAmount": 10
+ }
+ ]
+}
diff --git a/src/packages/components/Tables/Tables/TablesBasic/index.vue b/src/packages/components/Tables/Tables/TablesBasic/index.vue
index 5dcd2901..f3580744 100644
--- a/src/packages/components/Tables/Tables/TablesBasic/index.vue
+++ b/src/packages/components/Tables/Tables/TablesBasic/index.vue
@@ -1,33 +1,41 @@
-
-
+
+
+
+
+
+