curl --header "Content-Type: application/json" \
--request POST \
--data '{"username":"xyz","password":"xyz"}' \
http://localhost:3000/api/login
options:[
{id: 4, type:'simple', total: 1000, name: 'simple' },
{id: 5, type:'select', total: 5000, name: 'select'}
{id: 6, type:'select', total: 1000 , name: 'select'}
]
<li v-for="opt in options" class="opt">
<SimpleCell v-if="opt.type === 'simple'" :item="opt"/>
<SelectCell v-else-if="opt.type === 'select'" :item="opt" />
<DefaultCell v-else :name="opt.name" :total='opt.total' />