48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
import type { VbenFormProps } from '#/adapter/form';
|
|
|
|
export const formOptions: VbenFormProps = {
|
|
// 默认展开
|
|
collapsed: false,
|
|
schema: [
|
|
{
|
|
component: 'VbenInput',
|
|
componentProps: {
|
|
placeholder: '输入标题',
|
|
},
|
|
defaultValue: '',
|
|
fieldName: 'title',
|
|
label: '菜单标题',
|
|
},
|
|
// {
|
|
// component: 'VbenSelect',
|
|
// componentProps: {
|
|
// allowClear: true,
|
|
// filterOption: true,
|
|
// showSearch: true,
|
|
// options: [
|
|
// {
|
|
// label: '超管',
|
|
// value: 1,
|
|
// },
|
|
// {
|
|
// label: '菜单',
|
|
// value: 2,
|
|
// },
|
|
// ],
|
|
// placeholder: '请选择',
|
|
// },
|
|
// fieldName: 'role_id',
|
|
// label: '角色',
|
|
// },
|
|
],
|
|
// 控制表单是否显示折叠按钮
|
|
showCollapseButton: true,
|
|
submitButtonOptions: {
|
|
content: '查询',
|
|
},
|
|
// 是否在字段值改变时提交表单
|
|
submitOnChange: true,
|
|
// 按下回车时是否提交表单
|
|
submitOnEnter: false,
|
|
};
|