vendor: amis 6.13.0 base (fork root)

This commit is contained in:
2026-06-16 22:14:57 +08:00
commit 8c8e4247a9
3840 changed files with 2467374 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
export default {
type: 'page',
body: [
{
type: 'alert',
body: '刷新图表,使图表重新加载',
level: 'info',
className: 'mb-1'
},
{
type: 'button',
label: '刷新',
level: 'primary',
className: 'mt-2 mb-2',
onEvent: {
click: {
actions: [
{
actionType: 'reload',
componentId: 'chart_reload'
}
]
}
}
},
{
type: 'chart',
id: 'chart_reload',
api: 'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chartData',
config: {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
},
yAxis: {
type: 'value'
},
series: [
{
data: '${line}',
type: 'line'
}
]
}
}
]
};

View File

@@ -0,0 +1,43 @@
export default {
type: 'page',
body: [
{
type: 'alert',
body: '刷新表单,使表单重新加载,这样可以触发表单的远程数据重新请求',
level: 'info',
className: 'mb-1'
},
{
type: 'button',
label: '刷新',
className: 'mt-2 mb-2',
level: 'primary',
onEvent: {
click: {
actions: [
{
actionType: 'reload',
componentId: 'form-reload'
}
]
}
}
},
{
type: 'form',
id: 'form-reload',
name: 'form-reload',
initApi:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData',
title: '表单',
body: [
{
type: 'input-text',
id: 'date-input-01',
name: 'date',
label: '时间戳'
}
]
}
]
};

View File

@@ -0,0 +1,37 @@
export default {
type: 'page',
body: [
{
type: 'alert',
body: '刷新下拉框,使下拉框重新加载,这样可以触发下拉框的远程数据重新请求',
level: 'info',
className: 'mb-1'
},
{
type: 'button',
label: '刷新',
className: 'mt-2 mb-2',
level: 'primary',
onEvent: {
click: {
actions: [
{
actionType: 'reload',
componentId: 'select-reload'
}
]
}
}
},
{
label: '下拉框',
type: 'select',
id: 'select-reload',
mode: 'horizontal',
className: 'mt-2',
name: 'select',
source:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/getOptions?waitSeconds=1'
}
]
};