增加设备节点名称过长显示tooltip&修改表格项长度

This commit is contained in:
wu
2022-08-24 16:31:16 +08:00
parent 231912e617
commit c63a0a699d

View File

@@ -135,8 +135,14 @@ export default {
{ {
title: '名称', title: '名称',
key: '@Name', key: '@Name',
'show-overflow-tooltip': true,
component: { component: {
size: 'small' size: 'small'
},
filterMethod (value, row) {
console.log(value)
console.log(value)
return row.tag === value
} }
}, },
{ {
@@ -171,6 +177,7 @@ export default {
{ {
title: '长度', title: '长度',
key: '@Length', key: '@Length',
width: '80%',
component: { component: {
name: 'el-input', name: 'el-input',
size: 'small' size: 'small'
@@ -187,6 +194,7 @@ export default {
{ {
title: '当前值', title: '当前值',
key: '@Value', key: '@Value',
width: '80%',
component: { component: {
name: 'el-input', name: 'el-input',
size: 'small' size: 'small'
@@ -194,7 +202,7 @@ export default {
} }
], ],
rowHandle: { rowHandle: {
minWidth: '200', minWidth: '150',
custom: [ custom: [
{ {
text: '绑定', text: '绑定',
@@ -232,8 +240,7 @@ export default {
}, },
formOptions: { formOptions: {
modal: false, modal: false,
saveLoading: false, saveLoading: false
showOverflowTooltip: true
}, },
addTemplate: { addTemplate: {
'@Name': { '@Name': {
@@ -495,7 +502,6 @@ export default {
assign(o, { assign(o, {
id: i + 1, id: i + 1,
showBindButton: true, showBindButton: true,
showSendButton: true,
showCopyButton: true, showCopyButton: true,
showRemoveButton: true showRemoveButton: true
}) })
@@ -578,8 +584,7 @@ export default {
id: this.devicePointData.length + 1, id: this.devicePointData.length + 1,
showBindButton: true, showBindButton: true,
showCopyButton: true, showCopyButton: true,
showRemoveButton: true, showRemoveButton: true
showSendButton: true
}) })
this.devicePointData.push(row) this.devicePointData.push(row)
done() done()
@@ -663,7 +668,6 @@ export default {
unset(item, 'showBindButton') unset(item, 'showBindButton')
unset(item, 'showCopyButton') unset(item, 'showCopyButton')
unset(item, 'showRemoveButton') unset(item, 'showRemoveButton')
unset(item, 'showSendButton')
unset(item, '@Value') unset(item, '@Value')
item['@Binding'] = item['@Binding'] || '' item['@Binding'] = item['@Binding'] || ''
}) })