0.1.0 • Published 2 years ago

yangcom v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

components

Project setup

npm install

Customize configuration

See Configuration Reference.

uploadImg

  props: {
    name: String,//属性名称
    imgUrl: String,//图片路径
  },
  //图片上传公共事件(传递imgChage)
   onSuccess(res) {
      const item = {
        url: res.data.url,
        name: this.name,
      };
      this.$emit("imgChage", item);
    },
0.1.0

2 years ago