vendor: amis 6.13.0 base (fork root)
This commit is contained in:
24
examples/components/PdfViewer.jsx
Normal file
24
examples/components/PdfViewer.jsx
Normal file
@@ -0,0 +1,24 @@
|
||||
export default {
|
||||
type: 'page',
|
||||
body: {
|
||||
type: 'form',
|
||||
id: 'form',
|
||||
debug: true,
|
||||
wrapWithPanel: false,
|
||||
body: [
|
||||
{
|
||||
type: 'input-file',
|
||||
name: 'file',
|
||||
label: '选择 PDF 文件预览效果(不会上传到服务器)',
|
||||
asBlob: true,
|
||||
accept: '.pdf'
|
||||
},
|
||||
{
|
||||
type: 'pdf-viewer',
|
||||
id: 'pdf-viewer',
|
||||
name: 'file',
|
||||
width: 500
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user