You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.5 KiB
34 lines
1.5 KiB
<template>
|
|
<div>
|
|
<element-factory v-for="(element, key) in elements" :element="element" :key="key"></element-factory>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import Factory from './FactoryPattern'
|
|
export default {
|
|
components:{
|
|
'element-factory' : Factory
|
|
},
|
|
data: () => ({
|
|
elements:[
|
|
{type:"wm-input", width: "pa-2", label:"salam", placeholder: "placeholder", hint:"hint", color:"red" },
|
|
{type: "wm-form", width: "pa-2", label:"salam", placeholder: "placeholder", hint:"hint", color:"red", children: [
|
|
{type:"wm-input", width: "pa-2", label:"salam", placeholder: "placeholder", hint:"hint", color:"red" },
|
|
{type:"wm-form", width: "pa-2", label:"salam", placeholder: "placeholder", hint:"hint", color:"red", children: [
|
|
{type: "wm-input", width: "pa-2", label:"salam", placeholder: "placeholder", hint:"hint", color:"red"},
|
|
{type: "wm-input", width: "pa-2", label:"salam", placeholder: "placeholder", hint:"hint", color:"red"},
|
|
]},
|
|
{type:"wm-input", width: "pa-2", label:"salam", placeholder: "placeholder", hint:"hint", color:"red" },
|
|
]},
|
|
{type:"wm-input", width: "pa-2", label:"salam", placeholder: "placeholder", hint:"hint", color:"red"},
|
|
{type:"wm-input", width: "pa-2", label:"salam", placeholder: "placeholder", hint:"hint", color:"red" },
|
|
]
|
|
}),
|
|
props:{
|
|
// elements: {
|
|
// type: Array,
|
|
// required: true
|
|
// }
|
|
}
|
|
}
|
|
</script> |