client: refactor page-preview to composition api

This commit is contained in:
Norm 2022-08-29 16:07:34 -04:00
parent e631bdbb9a
commit 12c811514d
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -14,21 +14,12 @@
</MkA>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
<script lang="ts" setup>
import { userName } from '@/filters/user';
export default defineComponent({
props: {
page: {
type: Object,
required: true,
},
},
methods: {
userName,
},
});
defineProps<{
page: Record<string, any>;
}>();
</script>
<style lang="scss" scoped>