91e3cb8879d021079dbdfd2aa8cc8222f31daf4fa07885b7381ca30883e85af66164bc916d113317dfd05ae69be6e1d74dadfc3c04e31878dd28b5688afa75 728 B

123456789101112131415161718192021222324252627282930
  1. import { uploadListTypes } from './upload.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: Boolean,
  11. handlePreview: {
  12. type: definePropType(Function),
  13. default: NOOP
  14. },
  15. listType: {
  16. type: String,
  17. values: uploadListTypes,
  18. default: "text"
  19. },
  20. crossorigin: {
  21. type: definePropType(String)
  22. }
  23. });
  24. const uploadListEmits = {
  25. remove: (file) => !!file
  26. };
  27. export { uploadListEmits, uploadListProps };
  28. //# sourceMappingURL=upload-list.mjs.map