interface Fields {[key: string]: {bind: stringview?: {bind?: stringtype: stringprops: any}edit?: {bind?: stringtype: stringprops: any}}}
export declare namespace Remote {interface IProps extends Component.PropsEditComponent {xProps: {remote?: Requestsearch?: Request & { key: string }}}}interface Request {api: stringparams?: { [key: string]: any }}
export declare namespace Component {interface Props {__namespace: string__primary: string__type: FormType__bind: string__name: string__data_item: any}interface PropsEditComponent extends Props {style?: CSSPropertiesitemProps?: FormItemProps}interface PropsViewComponent extends Props {__value: any}}
动态值可在如下场景使用:
Table.operation.actions
Table.fields
Form.operation.actions
Form.fields
动态值是对当前组件所在的数据项进行动态解析,解析语法和mustache保持一致。
一般变量: {{id}}
多层对象: {{person.age}}
对当前数据项调用接口进行状态变更:
pet.form.json
{"name": "::Pet Admin","action": {"bind": { "model": "pet", "option": { "withs": { "doctor": {} } } }},"layout": {"primary": "id","operation": {"preset": { "save": { "back": true }, "back": {} },"actions": [{"title": "治愈 {{name}}","icon": "icon-check","action": {"Form.save": { "id": "{{id}}", "status": "cured" }},"style": "success","confirm": {"title": "提示","desc": "确认将{{name}}变更为治愈状态?"}}]}}}
在所有页面 setting 中可通过如下配置,取消页面宽度限制:
{"config": { "full": true }}
interface Fields {[key: string]: {bind: stringview?: {bind?: stringtype: stringprops: any}edit?: {bind?: stringtype: stringprops: any}}}
export declare namespace Remote {interface IProps extends Component.PropsEditComponent {xProps: {remote?: Requestsearch?: Request & { key: string }}}}interface Request {api: stringparams?: { [key: string]: any }}
export declare namespace Component {interface Props {__namespace: string__primary: string__type: FormType__bind: string__name: string__data_item: any}interface PropsEditComponent extends Props {style?: CSSPropertiesitemProps?: FormItemProps}interface PropsViewComponent extends Props {__value: any}}
动态值可在如下场景使用:
Table.operation.actions
Table.fields
Form.operation.actions
Form.fields
动态值是对当前组件所在的数据项进行动态解析,解析语法和mustache保持一致。
一般变量: {{id}}
多层对象: {{person.age}}
对当前数据项调用接口进行状态变更:
pet.form.json
{"name": "::Pet Admin","action": {"bind": { "model": "pet", "option": { "withs": { "doctor": {} } } }},"layout": {"primary": "id","operation": {"preset": { "save": { "back": true }, "back": {} },"actions": [{"title": "治愈 {{name}}","icon": "icon-check","action": {"Form.save": { "id": "{{id}}", "status": "cured" }},"style": "success","confirm": {"title": "提示","desc": "确认将{{name}}变更为治愈状态?"}}]}}}
在所有页面 setting 中可通过如下配置,取消页面宽度限制:
{"config": { "full": true }}