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,97 @@
export default {
type: 'page',
initApi: '/api/mock2/page/initData?keywords=${keywords}',
body: [
{
type: 'form',
debug: true,
body: [
{
type: 'search-box',
name: 'keywords',
id: 'searchbox01',
onEvent: {
search: {
actions: [
{
actionType: 'toast',
args: {
msg: '${keywords}'
}
}
]
},
change: {
actions: [
{
actionType: 'toast',
args: {
msg: '${keywords}'
}
}
]
},
focus: {
actions: [
{
actionType: 'toast',
args: {
msg: '${keywords}'
}
}
]
},
blur: {
actions: [
{
actionType: 'toast',
args: {
msg: '${keywords}'
}
}
]
}
}
}
]
},
{
type: 'button',
label: '清空',
onEvent: {
click: {
actions: [
{
actionType: 'clear',
componentId: 'searchbox01'
}
]
}
}
},
{
type: 'button',
label: '更新值',
onEvent: {
click: {
actions: [
{
actionType: 'setValue',
componentId: 'searchbox01',
args: {
value: 'Jerry'
}
}
]
}
}
},
{
type: 'tpl',
tpl: '<p>关键字:${keywords}</p><p>返回结果:${&|json}</p>'
}
]
};