From 984d820ea9f54e084efcac66c20261827cf41edd Mon Sep 17 00:00:00 2001 From: Aaron <427787340@qq.com> Date: Thu, 26 Dec 2019 18:33:30 +0800 Subject: [PATCH] 新式表格支持行内编辑 --- examples/views/page/other.vue | 2 +- examples/views/page/table-new/index.vue | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------- packages/scheme/index.vue | 2 +- 3 files changed, 75 insertions(+), 16 deletions(-) diff --git a/examples/views/page/other.vue b/examples/views/page/other.vue index 6efc7aa..a6fb804 100644 --- a/examples/views/page/other.vue +++ b/examples/views/page/other.vue @@ -76,7 +76,7 @@ export default { // { type: 'el-input', label: '市', key: 'city', render: { type: 'el-tag', props: { type: 'danger', size: 'mini' } } }, { type: 'el-input', label: '市', key: 'city', render: { - type: 'span', props: { href: 'https:///www.baidu.com/' }, style: { color: 'red' }, + type: 'a', props: { href: 'https:///www.baidu.com/', target: '_blank' }, style: { color: 'red' }, children({ row }) { const { location: { district: { city } = {} } = {} } = row; return city ? `${city}[城市]` : ''; diff --git a/examples/views/page/table-new/index.vue b/examples/views/page/table-new/index.vue index 890ed1b..3055a93 100644 --- a/examples/views/page/table-new/index.vue +++ b/examples/views/page/table-new/index.vue @@ -2,49 +2,93 @@ .eagle-table { width: 100%; } +.eagle-table-cell-edit { + display: flex; + align-items: center; +}