Comparing version 0.0.2 to 0.0.3
@@ -78,11 +78,11 @@ 'use strict'; | ||
var ImageUpload = function (_Component) { | ||
_inherits(ImageUpload, _Component); | ||
var AcUpload = function (_Component) { | ||
_inherits(AcUpload, _Component); | ||
function ImageUpload(props) { | ||
function AcUpload(props) { | ||
var _this2 = this; | ||
_classCallCheck(this, ImageUpload); | ||
_classCallCheck(this, AcUpload); | ||
var _this = _possibleConstructorReturn(this, (ImageUpload.__proto__ || (0, _getPrototypeOf2.default)(ImageUpload)).call(this, props)); | ||
var _this = _possibleConstructorReturn(this, (AcUpload.__proto__ || (0, _getPrototypeOf2.default)(AcUpload)).call(this, props)); | ||
@@ -203,3 +203,3 @@ _this.getElement = function () { | ||
_createClass(ImageUpload, [{ | ||
_createClass(AcUpload, [{ | ||
key: 'render', | ||
@@ -299,7 +299,7 @@ value: function render() { | ||
return ImageUpload; | ||
return AcUpload; | ||
}(_react.Component); | ||
ImageUpload.propTypes = propTypes; | ||
ImageUpload.defaultProps = { | ||
AcUpload.propTypes = propTypes; | ||
AcUpload.defaultProps = { | ||
title: "文件上传", | ||
@@ -309,6 +309,6 @@ multiple: false, | ||
showUploadList: true, | ||
accept: "image/*", | ||
accept: "", | ||
name: "files[]", | ||
data: {} | ||
}; | ||
exports.default = ImageUpload; | ||
exports.default = AcUpload; |
{ | ||
"name": "ac-upload", | ||
"version": "0.0.2", | ||
"description": "tinper-bee upload components", | ||
"version": "0.0.3", | ||
"description": "tinper-bee ac upload components", | ||
"main": "./lib/index.js", | ||
@@ -39,3 +39,2 @@ "scripts": { | ||
"css-loader": "^0.28.11", | ||
"extract-text-webpack-plugin": "^3.0.2", | ||
"less": "^3.0.4", | ||
@@ -42,0 +41,0 @@ "less-loader": "^4.1.0", |
@@ -24,3 +24,4 @@ ## AC-Upload | ||
```js | ||
import AcUpload from 'ac-upload'; | ||
import AcUpload from 'ac-upload';//加载组件 | ||
import 'ac-upload/build/ac-upload.css';//加载组件样式 | ||
``` | ||
@@ -33,4 +34,7 @@ 然后在render使用的时候传入相应组件需要的参数: | ||
<AcUpload | ||
title="图片上传" | ||
action="/iuap_pap_quickstart/fileMananger/fastDfs/imgUpload" | ||
name="filelist[]" | ||
data={{ "other": "params" }} | ||
accept="image/*" | ||
multiple={true} | ||
@@ -37,0 +41,0 @@ onError={(err) => console.log(err)} |
@@ -24,3 +24,3 @@ /** | ||
class ImageUpload extends Component { | ||
class AcUpload extends Component { | ||
constructor(props) { | ||
@@ -164,4 +164,4 @@ super(props); | ||
ImageUpload.propTypes = propTypes; | ||
ImageUpload.defaultProps = { | ||
AcUpload.propTypes = propTypes; | ||
AcUpload.defaultProps = { | ||
title: "文件上传", | ||
@@ -171,6 +171,6 @@ multiple: false, | ||
showUploadList: true, | ||
accept: "image/*", | ||
accept: "", | ||
name: "files[]", | ||
data: {} | ||
} | ||
export default ImageUpload; | ||
export default AcUpload; |
@@ -8,3 +8,3 @@ const path = require('path'); | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
path: path.resolve(__dirname, 'build'), | ||
filename: 'ac-upload.js', | ||
@@ -11,0 +11,0 @@ library: 'ac-upload', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
21
58
222603
107