欧共体 未排序的列表组件
npm 软件包 : @ecl/unordered-list
npm install --save @ecl/unordered-list
参数
- “项目” (阵列) (默认: []) 列出项目; 格式 :
- "标签"(字符串) 项目案文
- "取消" (阵列)(默认: []) 无序列表项目( 相同的结构)
- "变相" (字符串)(默认为:")列表变体;可以是"no-marker","divider"
- "超级" (字符串)(默认为:") 额外类(空格分隔)
- “外部属性” (阵列) (默认: []) 额外属性
- 名称 (字符串) 属性名称, 如“ 数据测试 ”
- 值 (字符串) 属性值, 如 : “ data- test-1 ”
示例
{% include '@ecl/unordered-list/unordered-list.html.twig' with {
items: [
{
label: 'Jobs, growth and investment',
nested: [
{
label: 'Investment Plan for Europe: the Juncker Plan',
},
{
label: 'European Semester',
}
]
},
{
label: 'Digital single market',
},
{
label: 'Energy union and climate',
nested: [
{
label: 'Security, solidarity and trust',
},
{
label: 'A fully-integrated internal energy market',
},
{
label: 'Energy efficiency',
}
]
}
],
variant: 'no-marker'
} %}