upload-list.js 911 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var upload = require('./upload2.js');
  4. var runtime = require('../../../utils/vue/props/runtime.js');
  5. var typescript = require('../../../utils/typescript.js');
  6. var shared = require('@vue/shared');
  7. const uploadListProps = runtime.buildProps({
  8. files: {
  9. type: runtime.definePropType(Array),
  10. default: () => typescript.mutable([])
  11. },
  12. disabled: {
  13. type: Boolean,
  14. default: false
  15. },
  16. handlePreview: {
  17. type: runtime.definePropType(Function),
  18. default: shared.NOOP
  19. },
  20. listType: {
  21. type: String,
  22. values: upload.uploadListTypes,
  23. default: "text"
  24. },
  25. crossorigin: {
  26. type: runtime.definePropType(String)
  27. }
  28. });
  29. const uploadListEmits = {
  30. remove: (file) => !!file
  31. };
  32. exports.uploadListEmits = uploadListEmits;
  33. exports.uploadListProps = uploadListProps;
  34. //# sourceMappingURL=upload-list.js.map