oadp-material
Version:
oadp-material
40 lines • 1.36 kB
JavaScript
import _Upload from "@alifd/next/es/upload";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["name", "action", "defaultValue", "accept", "method", "reUpload", "multiple", "limit", "timeout", "shape", "listType", "disabled", "dragable", "useDataURL"];
import * as React from 'react';
import "./index.scss";
var OadpUpload = function OadpUpload(_ref) {
var name = _ref.name,
action = _ref.action,
defaultValue = _ref.defaultValue,
accept = _ref.accept,
method = _ref.method,
reUpload = _ref.reUpload,
multiple = _ref.multiple,
limit = _ref.limit,
timeout = _ref.timeout,
shape = _ref.shape,
listType = _ref.listType,
disabled = _ref.disabled,
dragable = _ref.dragable,
useDataURL = _ref.useDataURL,
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
return /*#__PURE__*/React.createElement(_Upload, _extends({
name: name,
action: action,
defaultValue: defaultValue,
accept: accept,
multiple: multiple,
timeout: timeout,
method: method,
limit: limit,
reUpload: reUpload,
shape: shape,
listType: listType,
disabled: disabled,
dragable: dragable,
useDataURL: useDataURL
}, otherProps));
};
export default OadpUpload;