From eb7aecf1de69f11d6d52684ac5571d67ddd07041 Mon Sep 17 00:00:00 2001 From: JakHuang <352407406@qq.com> Date: Mon, 27 Jul 2020 00:50:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A8=E6=A0=BC=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E9=9B=8F=E5=BD=A21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/generator/config.js | 75 ++++++++++++++++++++++++++++++ src/icons/svg/table.svg | 1 + 2 files changed, 76 insertions(+) create mode 100644 src/icons/svg/table.svg diff --git a/src/components/generator/config.js b/src/components/generator/config.js index 8dc93a26..3dc2a166 100644 --- a/src/components/generator/config.js +++ b/src/components/generator/config.js @@ -541,5 +541,80 @@ export const layoutComponents = [ plain: false, circle: false, disabled: false + }, + { + __config__: { + layout: 'colFormItem', + tagIcon: 'table', + tag: 'el-table', + document: 'https://element.eleme.cn/#/zh-CN/component/table', + span: 24, + formId: 101, + renderKey: 1595761764203, + componentName: 'row101', + showLabel: true, + changeTag: true, + labelWidth: null, + label: '表格[开发中]', + children: [{ + __config__: { + layout: 'raw', + tag: 'el-table-column', + renderKey: 15957617660153 + }, + prop: 'date', + label: '日期' + }, { + __config__: { + layout: 'raw', + tag: 'el-table-column', + renderKey: 15957617660152 + }, + prop: 'address', + label: '地址' + }, { + __config__: { + layout: 'raw', + tag: 'el-table-column', + renderKey: 15957617660151 + }, + prop: 'name', + label: '名称' + }, { + __config__: { + layout: 'raw', + tag: 'el-table-column', + renderKey: 1595774496335, + children: [ + { + __config__: { + label: '按钮', + tag: 'el-button', + tagIcon: 'button', + layout: 'raw', + renderKey: 1595779809901 + }, + __slot__: { + default: '主要按钮' + }, + type: 'primary', + icon: 'el-icon-search', + round: false, + size: 'medium' + } + ] + }, + label: '操作' + }] + }, + data: [{ + date: '2016-05-02', + name: '王小虎', + address: '上海市普陀区金沙江路 1518 弄' + }], + border: true, + type: 'default', + justify: 'start', + align: 'top' } ] diff --git a/src/icons/svg/table.svg b/src/icons/svg/table.svg new file mode 100644 index 00000000..e8068454 --- /dev/null +++ b/src/icons/svg/table.svg @@ -0,0 +1 @@ + \ No newline at end of file