landluck bcae47b8d0
feat(uploader): add showmenu prop support (#5229)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-13 09:25:02 +08:00

61 lines
901 B
TypeScript

// props for image
export const imageProps = {
sizeType: {
type: Array,
value: ['original', 'compressed'],
},
capture: {
type: Array,
value: ['album', 'camera'],
},
showmenu: {
type: Boolean,
value: true,
},
};
// props for video
export const videoProps = {
capture: {
type: Array,
value: ['album', 'camera'],
},
compressed: {
type: Boolean,
value: true,
},
maxDuration: {
type: Number,
value: 60,
},
camera: {
type: String,
value: 'back',
},
};
// props for media
export const mediaProps = {
capture: {
type: Array,
value: ['album', 'camera'],
},
mediaType: {
type: Array,
value: ['image', 'video'],
},
maxDuration: {
type: Number,
value: 60,
},
camera: {
type: String,
value: 'back',
},
};
// props for file
export const messageFileProps = {
extension: null,
};