今儿用了Render函数这个东西渲染页面,特此记录一下用法。
const h = that.$createElement;
that.$info({
title: '导出数据',
content: h('div', {class: 'dialogDiv'},[
h('div', {
style: {
display: 'flex',
'align-items': 'center',
margin: '30px 0 20px 0 '
},
}, [
h('span', '页码'),
h('a-input', {
style: {
flex: '1',
margin: '0 0 0 10px'
},
}),
]),
h('div', {
style: {
display: 'flex',
'align-items': 'center'