vendor: amis 6.13.0 base (fork root)
This commit is contained in:
25
examples/components/OfficeViewer.jsx
Normal file
25
examples/components/OfficeViewer.jsx
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user