upload-list.mjs 765 B

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