vendor: amis 6.13.0 base (fork root)
This commit is contained in:
36
examples/components/Tabs/Dynamic.jsx
Normal file
36
examples/components/Tabs/Dynamic.jsx
Normal file
@@ -0,0 +1,36 @@
|
||||
export default {
|
||||
type: 'page',
|
||||
title: '动态选项卡',
|
||||
subTitle: '根据变量动态生成',
|
||||
data: {
|
||||
arr: [
|
||||
{
|
||||
label: '收入',
|
||||
value: 123
|
||||
},
|
||||
|
||||
{
|
||||
label: '支出',
|
||||
value: 233
|
||||
}
|
||||
]
|
||||
},
|
||||
body: [
|
||||
{
|
||||
type: 'tabs',
|
||||
source: '${arr}',
|
||||
mode: 'card',
|
||||
tabs: [
|
||||
{
|
||||
title: '${label}-A',
|
||||
body: '选项卡内容 ${value}'
|
||||
},
|
||||
|
||||
{
|
||||
title: '${label}-B',
|
||||
body: '选项卡内容 ${value}'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user