element-plus
Version:
A Component Library for Vue 3
31 lines (28 loc) • 729 B
JavaScript
import { uploadListTypes } from './upload.mjs';
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
import { mutable } from '../../../utils/typescript.mjs';
import { NOOP } from '@vue/shared';
const uploadListProps = buildProps({
files: {
type: definePropType(Array),
default: () => mutable([])
},
disabled: Boolean,
handlePreview: {
type: definePropType(Function),
default: NOOP
},
listType: {
type: String,
values: uploadListTypes,
default: "text"
},
crossorigin: {
type: definePropType(String)
}
});
const uploadListEmits = {
remove: (file) => !!file
};
export { uploadListEmits, uploadListProps };
//# sourceMappingURL=upload-list2.mjs.map