This commit is contained in:
3
frontend/app/components/viewer/widgets/TableWidget.vue
Normal file
3
frontend/app/components/viewer/widgets/TableWidget.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
@@ -1,3 +1,13 @@
|
||||
<script setup>
|
||||
const props = defineProps(['content']);
|
||||
|
||||
const name = ref('');
|
||||
|
||||
onMounted(() => {
|
||||
name.value = props.content || 'No content';
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h2>This is a test widget</h2>
|
||||
<h2>This is a {{name}} widget</h2>
|
||||
</template>
|
||||
Reference in New Issue
Block a user