You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
467 B

1 year ago
  1. // components/Uploader.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. fileList: {
  8. type: Array,
  9. value: []
  10. },
  11. info: {
  12. type: Object,
  13. value: {url:'',text:''}
  14. }
  15. },
  16. /**
  17. * 组件的初始数据
  18. */
  19. data: {
  20. },
  21. /**
  22. * 组件的方法列表
  23. */
  24. methods: {
  25. afterRead(e){
  26. this.triggerEvent('afterRead',e)
  27. },
  28. deleteImg(e){
  29. this.triggerEvent('deleteImg',e)
  30. }
  31. }
  32. })