mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:48:32 +08:00
4b8dd7a9ca
* feat: Office viewer 支持 Excel * 修复类型报错 * 修复类型报错
26 lines
495 B
JavaScript
26 lines
495 B
JavaScript
export default {
|
|
type: 'page',
|
|
body: {
|
|
type: 'form',
|
|
title: '',
|
|
wrapWithPanel: false,
|
|
body: [
|
|
{
|
|
type: 'input-file',
|
|
name: 'file',
|
|
label: '选择 Docx/Excel 文件预览效果(不会上传到服务器)',
|
|
asBlob: true,
|
|
accept: '.docx,.xlsx,.csv,.tsv'
|
|
},
|
|
{
|
|
type: 'office-viewer',
|
|
id: 'office-viewer',
|
|
name: 'file',
|
|
excelOptions: {
|
|
height: 500
|
|
}
|
|
}
|
|
]
|
|
}
|
|
};
|