本文整理汇总了TypeScript中react-komposer.IKomposerData类的典型用法代码示例。如果您正苦于以下问题:TypeScript IKomposerData类的具体用法?TypeScript IKomposerData怎么用?TypeScript IKomposerData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了IKomposerData类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: onData
export const composer: IKomposer = ({multiple, submitData, fileTypes, autoStart, hideQueue, callbacks}: IProps, onData: IKomposerData<IComponentProps>) => {
onData(null, {
i18n: Ui.i18n,
classes: Ui.semanticUI,
multiple,
callbacks,
submitData,
fileTypes,
autoStart,
hideQueue
});
return null;
};
示例2: Uploader
export const composer: IKomposer = ({i18n, classes, multiple, submitData, fileTypes, autoStart, hideQueue, callbacks}: IProps, onData: IKomposerData<IComponentProps>) => {
if (!callbacks) {
callbacks = {};
}
const uploader = new Uploader(callbacks, autoStart);
onData(null, {
i18n,
classes,
multiple,
submitData,
fileTypes,
uploader,
autoStart,
hideQueue
});
return null;
};
示例3: onData
const data = () => {
onData(null, {
i18n,
classes,
queue: uploader.queue
});
// console.log("Rendering queue ...: " + uploader.queue)
}
示例4: onData
const render = () => {
onData(null, {
i18n,
classes,
state: item.status,
info: item.info,
progress: item.progress,
autoStart,
startUpload: item.startUpload.bind(item),
cancelUpload: item.cancelUpload.bind(item),
reset: item.reset.bind(item)
});
console.log("Rendering progress ...: " + item.status);
}