本文整理汇总了TypeScript中react-komposer.IKomposerData.default方法的典型用法代码示例。如果您正苦于以下问题:TypeScript IKomposerData.default方法的具体用法?TypeScript IKomposerData.default怎么用?TypeScript IKomposerData.default使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类react-komposer.IKomposerData
的用法示例。
在下文中一共展示了IKomposerData.default方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: onData
const data = () => {
onData(null, {
i18n,
classes,
queue: uploader.queue
});
// console.log("Rendering queue ...: " + uploader.queue)
}
示例2: 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;
};
示例3: 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);
}
示例4: 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;
};