From b82a8c599773e60157cafab6fd1a97ac441ce68e Mon Sep 17 00:00:00 2001 From: "Mr.T" Date: Sat, 7 Sep 2024 21:05:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?uniapp=E6=B7=BB=E5=8A=A0dicInited?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vol.uniapp/components/view-grid/view-grid.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vol.uniapp/components/view-grid/view-grid.vue b/vol.uniapp/components/view-grid/view-grid.vue index 47f1bbf7a..9c2ec9d50 100644 --- a/vol.uniapp/components/view-grid/view-grid.vue +++ b/vol.uniapp/components/view-grid/view-grid.vue @@ -649,6 +649,7 @@ } }) }) + this.dicInited && this.dicInited(result); }) }, initSearchFormDateRange() { @@ -966,4 +967,4 @@ border-radius: 50%; } } - --> \ No newline at end of file + --> From 30b5c10763266cd75e3c7ec188d4ca6b4004bc81 Mon Sep 17 00:00:00 2001 From: Cookies <11@22.com> Date: Thu, 10 Oct 2024 23:02:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?uniapp=20vol-table=20=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E6=94=AF=E6=8C=81=E5=8B=BE=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vol.uniapp/components/vol-table/vol-table.vue | 97 ++++++++++++------- 1 file changed, 62 insertions(+), 35 deletions(-) diff --git a/vol.uniapp/components/vol-table/vol-table.vue b/vol.uniapp/components/vol-table/vol-table.vue index 97a79776f..a84a97b78 100644 --- a/vol.uniapp/components/vol-table/vol-table.vue +++ b/vol.uniapp/components/vol-table/vol-table.vue @@ -111,40 +111,54 @@ - - {{column.title}} - - - - - - {{row[column.field]}} - - - - - - - - - {{rowFormatterValue(row,column)}} - - - - - - + + + + + {{column.title}} + + + + + + + + + {{row[column.field]}} + + + + + + + + + {{rowFormatterValue(row,column)}} + + + + + + + + + + + {{(row[column.field]||'').substr(0,10)}} + + {{row[column.field]==null?'':row[column.field]}} - - {{(row[column.field]||'').substr(0,10)}} - - {{row[column.field]==null?'':row[column.field]}} + + + + + @@ -363,7 +377,7 @@ } let _val = row[column.field] + ''; - if (!column.bind.data.length) { + if (!column.bind.data || !column.bind.data.length) { return _val; } //if (column.type == "selectList" || column.type == 'checkbox') { @@ -467,7 +481,6 @@ this.$emit('rowButtons', index, row, (buttons) => { _buttons = buttons; }) - console.log(_buttons) return (_buttons || []) //.reverse(); }, rowBtnClick(btn, rowindex, row) { @@ -729,10 +742,24 @@ .vol-table-list-item { margin: 8rpx 16rpx; background: #FFFFFF; - box-shadow: 1px 1px 14px rgb(246 246 246); + box-shadow: 1px 1px 14px rgb(246 246 246); border: 1px solid #f3f3f3; border-radius: 10rpx; - + .vol-table-list-item-content { + display: flex; + .vol-table-list-item-content-left { + flex: 1; + } + .vol-table-list-item-content-ck { + width: 52rpx; + flex: none; + padding: 0 8rpx; + min-height: 55rpx; + display: flex; + justify-content: center; + align-items: center; + } + } .vol-table-list-item-cell { display: flex; padding: 20rpx 28rpx;