我正在使用 Angular 包 @uppy/angular 在我的应用程序中创建一个 uppy 组件。我已成功加载 uppy 上传窗口,但同时无法通过此添加截屏选项。
我的组件文件
import { Component } from '@angular/core';
import { Uppy } from '@uppy/core'
import Dashboard from '@uppy/dashboard';
import ScreenCapture from '@uppy/screen-capture';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css',
'../../node_modules/@uppy/core/dist/style.css',
'../../node_modules/@uppy/dashboard/dist/style.css'
]
})
export class AppComponent {
uppy: Uppy = new Uppy({
debug: true,
autoProceed: false,
allowMultipleUploadBatches:true,
restrictions: {
maxFileSize: 1000000,
maxNumberOfFiles: 3,
minNumberOfFiles: 2,
}
}).use(ScreenCapture, { });
obj = {height:350,inline:true};
}
还有我的模板文件
<uppy-dashboard-modal [uppy]='uppy' [props]='obj' [open]=true >
<uppy-dashboard-modal>
任何帮助/建议将不胜感激,谢谢