primevue-mirror/apps/showcase/doc/imagecompare/pt/PTViewer.vue

30 lines
690 B
Vue
Raw Normal View History

2024-10-03 17:09:21 +00:00
<template>
<DocPTViewer :docs="docs">
<ImageCompare style="width: 728px; height: 410px">
<template #left>
<img src="~/assets/images/island1.jpg" />
</template>
<template #right>
<img src="~/assets/images/island2.jpg" />
</template>
</ImageCompare>
</DocPTViewer>
</template>
<script>
import { getPTOptions } from '@/components/doc/helpers';
export default {
data() {
return {
docs: [
{
data: getPTOptions('ImageCompare'),
key: 'ImageCompare'
}
]
};
}
};
</script>