primevue-mirror/components/lib/image/BaseImage.vue

59 lines
1.2 KiB
Vue
Raw Normal View History

2023-05-31 08:00:55 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import ImageStyle from 'primevue/image/style';
2023-05-31 08:00:55 +00:00
export default {
name: 'BaseImage',
extends: BaseComponent,
props: {
preview: {
type: Boolean,
default: false
},
class: {
type: null,
default: null
},
style: {
type: null,
default: null
},
imageStyle: {
type: null,
default: null
},
imageClass: {
type: null,
default: null
},
previewButtonProps: {
type: null,
default: null
},
indicatorIcon: {
type: String,
default: undefined
},
2024-05-06 10:45:36 +00:00
previewIcon: {
type: String,
default: undefined
},
2023-05-31 08:00:55 +00:00
zoomInDisabled: {
type: Boolean,
default: false
},
zoomOutDisabled: {
type: Boolean,
default: false
}
},
style: ImageStyle,
2023-05-31 08:00:55 +00:00
provide() {
return {
$pcImage: this,
2023-05-31 08:00:55 +00:00
$parentInstance: this
};
}
};
</script>