|
|
@@ -0,0 +1,38 @@
|
|
|
+<template>
|
|
|
+ <section id="container">
|
|
|
+ <template v-for="item in editableItems">
|
|
|
+ <editable-item-vue
|
|
|
+ :key="item.id"
|
|
|
+ :tagName="item.tagName"
|
|
|
+ :content="item.content"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </section>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import EditableItemVue from '../../components/EditableItem.vue'
|
|
|
+export default {
|
|
|
+ name: 'editor',
|
|
|
+ data: () => {
|
|
|
+ return {
|
|
|
+ editableItems: [{ id: '', tagName: 'div', content: '2' }]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ EditableItemVue
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+#container {
|
|
|
+ min-height: 100vh;
|
|
|
+ padding: 10px;
|
|
|
+
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ outline: none;
|
|
|
+ border: 40px solid lightblue;
|
|
|
+}
|
|
|
+</style>
|