本文整理匯總了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);
}