This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
vuejs_course/2021-09-06_composition-17-r.../src/pages/ProductDetails.vue

32 lines
506 B
Vue

<template>
<section>
<h2>{{ title }}</h2>
<h3>${{ price}}</h3>
<p>{{ description}}</p>
</section>
</template>
<script>
import { ref } from 'vue';
export default {
setup() {
const title = ref('');
const price = ref(null);
const description = ref('');
return { title, price, description };
},
};
</script>
<style scoped>
section {
margin: 3rem auto;
max-width: 40rem;
padding: 1rem;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
}
</style>