1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import { defineMixin } from '../../libs/vue'
- import defProps from '../../libs/config/props.js'
- export const props = defineMixin({
- props: {
-
- src: {
- type: String,
- default: () => defProps.image.src
- },
-
- mode: {
- type: String,
- default: () => defProps.image.mode
- },
-
- width: {
- type: [String, Number],
- default: () => defProps.image.width
- },
-
- height: {
- type: [String, Number],
- default: () => defProps.image.height
- },
-
- shape: {
- type: String,
- default: () => defProps.image.shape
- },
-
- radius: {
- type: [String, Number],
- default: () => defProps.image.radius
- },
-
- lazyLoad: {
- type: Boolean,
- default: () => defProps.image.lazyLoad
- },
-
- showMenuByLongpress: {
- type: Boolean,
- default: () => defProps.image.showMenuByLongpress
- },
-
- loadingIcon: {
- type: String,
- default: () => defProps.image.loadingIcon
- },
-
- errorIcon: {
- type: String,
- default: () => defProps.image.errorIcon
- },
-
- showLoading: {
- type: Boolean,
- default: () => defProps.image.showLoading
- },
-
- showError: {
- type: Boolean,
- default: () => defProps.image.showError
- },
-
- fade: {
- type: Boolean,
- default: () => defProps.image.fade
- },
-
- webp: {
- type: Boolean,
- default: () => defProps.image.webp
- },
-
- duration: {
- type: [String, Number],
- default: () => defProps.image.duration
- },
-
- bgColor: {
- type: String,
- default: () => defProps.image.bgColor
- }
- }
- })
|