update
This commit is contained in:
@@ -20,6 +20,11 @@ export default {
|
||||
delete: '#FF5454',
|
||||
preview: '#f09843',
|
||||
design: '#99089f',
|
||||
'destroy-order': '#FF5454',
|
||||
'confirm-order': '#37d97f',
|
||||
'end-order': '#f09843',
|
||||
'move-to-top': '#8833ff',
|
||||
'move-to-bottom': '#8833ff',
|
||||
// 'view-trend': 'red'
|
||||
// add more...
|
||||
},
|
||||
@@ -72,11 +77,11 @@ export default {
|
||||
btns.push(
|
||||
h('el-button',
|
||||
{
|
||||
props: { type: 'text' },
|
||||
props: { type: opt.type ?? 'text', icon: opt.icon ? `el-icon-${opt.icon}` : '', title: opt.label ?? opt.name },
|
||||
style: { color: this.colors[opt.name] || '#0b58ff' },
|
||||
on: { click: this.emit.bind(null, opt) }
|
||||
},
|
||||
this.text[opt.name]
|
||||
opt.icon ? opt.showText ? this.text[opt.name] ?? opt.label : '' : ''
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -89,7 +94,7 @@ export default {
|
||||
style: { color: this.colors[opt] || '#0b58ff' },
|
||||
on: { click: this.emit.bind(null, opt) }
|
||||
},
|
||||
this.text[opt]
|
||||
this.text[opt] ?? opt
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user