This commit is contained in:
@@ -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