mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 21:06:44 +08:00
-- bug 项目经理
This commit is contained in:
@@ -123,10 +123,15 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
function change(e, {label, value}) {
|
||||
function change(e, l) {
|
||||
console.log('change')
|
||||
ctx.emit('update:value', typeof value === 'object' ? e.join(',') : value)
|
||||
ctx.emit('update:name', typeof label === 'object' ? label.join(',') : label)
|
||||
if (Array.isArray(l)) {
|
||||
ctx.emit('update:value', l.map(t => t.value).join(','))
|
||||
ctx.emit('update:name', l.map(t => t.label).join(','))
|
||||
} else {
|
||||
ctx.emit('update:value', l.value)
|
||||
ctx.emit('update:name', l.label)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user