初始化

This commit is contained in:
lyd
2022-10-15 15:31:18 +08:00
parent b9d1c04bb5
commit c61b5e4641
1123 changed files with 187 additions and 1440 deletions

View File

@@ -0,0 +1,29 @@
import VXETable from 'vxe-table'
// 创建一个简单的工具栏-左侧按钮渲染
VXETable.renderer.add('ToolbarButtonDownload', {
renderToolbarButton(h, renderOpts, params) {
const { events = {}} = renderOpts
const { button } = params
return [
<vxe-button circle icon='fa fa-cloud-download' onClick={
() => {
events.click(button)
}
}></vxe-button>
]
}
})
// 创建一个简单的工具栏-右侧工具渲染
VXETable.renderer.add('ToolbarToolPrint', {
renderToolbarTool(h, renderOpts, params) {
const { $table } = params
return [
<vxe-button circle icon='fa fa-print' onClick={
() => {
$table.print()
}
}></vxe-button>
]
}
})