Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ac-upload

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-upload - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

build/ac-upload.css

22

lib/index.js

@@ -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',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc