Authored by 郭成尧

暂存

... ... @@ -26,6 +26,32 @@ const component = {
result: result
});
});
},
letterList: (req, res, next) => {
res.json(
[
{
id: 'A',
name: 'A'
},
{
id: 'B',
name: 'B'
},
{
id: 'C',
name: 'C'
},
{
id: 'D',
name: 'D'
},
{
id: 'E',
name: 'E'
}
]
);
}
};
... ...
... ... @@ -14,6 +14,6 @@
</div>
<div id="letter-list">
<letter-list items={{letters}}></letter-list>
<letter-list></letter-list>
</div>
{{/ result}}
\ No newline at end of file
... ...
... ... @@ -27,7 +27,32 @@
</style>
<script>
module.exports = {
props: ['items']
data: function () {
return {
items: [
{
id: 'A',
name: 'A'
},
{
id: 'B',
name: 'B'
},
{
id: 'C',
name: 'C'
},
{
id: 'D',
name: 'D'
},
{
id: 'E',
name: 'E'
}
]
}
}
};
</script>
... ...