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,72 @@
const renderOptions = (n, callback) => {
return [...new Array(n)].map((item, index) => callback(index));
};
const options = renderOptions(1000, index => {
const value = `${10000 + index * 3}`;
return {
value: value,
label: value,
children:
index % 10 === 0
? renderOptions(20, i => {
return {
value: `value-${value}-${i}`,
label: `label-${value}-${i}`
};
})
: undefined
};
});
export default {
type: 'form',
debug: true,
body: [
{
// type: 'input-tree',
type: 'tree-select',
// "type": "nested-select",
name: 'output_fields',
label: '输出字段',
description:
'输出字段中的制表符会转换为"\\t",换行符会转换为"\
"',
mode: 'horizontal',
multiple: true,
required: true,
clearable: true,
withChildren: true,
extractValue: true,
joinValues: true,
cascade: true,
borderMode: 'full',
searchable: true,
options: options,
initiallyOpen: false,
draggable: true
},
{
label: '选项',
type: 'input-tree',
name: 'input-tree',
searchable: true,
multiple: true,
menuTpl: '<div>${label} 值:${value}, 当前是否选中: ${checked}</div>',
options: options
},
{
label: '选项',
type: 'input-tree',
name: 'radio',
options: options.map(item =>
item.children ? {...item, disabled: true} : item
),
joinValues: false,
extractValues: false,
enableNodePath: true,
pathSeparator: '.'
}
]
};