用jsx语法比较方便,不然slot不知道要怎么写
render (h) {
return (
<el-input { ...{ props: this.$attrs, on: this.$listeners } }>
{
Object.entries(this.$slots).map(([name, slot]) => (
<template slot={ name }>{ slot }</template>
))
}
</el-input>
)
}