Type alias CrudExpose

CrudExpose: {
    crudBinding: any;
    crudRef: any;
    doPageTurn: ((no: number) => void);
    doRefresh: (() => Promise<void>);
    doRemove: ((context: any) => Promise<void>);
    doSearch: ((opts: {
        form: any;
        goFirstPage?: boolean;
        mergeForm?: boolean;
    }) => Promise<void>);
    doSelectCurrentRow: ((context: {
        row: any;
    }) => void);
    doValueBuilder: ((records: any, columns?: any) => void);
    doValueResolve: ((context: {
        form: any;
    }, columns?: any) => void);
    editable: any;
    getBaseTableRef: (() => any);
    getFormComponentRef: ((key: string, isAsync: boolean) => any);
    getFormData: (() => any);
    getFormRef: (() => any);
    getFormWrapperRef: (() => any);
    getSearchFormData: (() => any);
    getSearchRef: (() => any);
    getTableData: (() => []);
    getTableDataRow: ((index: number) => any);
    getTableRef: (() => any);
    insertTableRow: ((index: number, row: Object) => void);
    openAdd: ((context: any) => Promise<void>);
    openDialog: ((context: any) => Promise<void>);
    openEdit: ((context: any) => Promise<void>);
    openView: ((context: any) => Promise<void>);
    removeTableRow: ((index: number) => void);
    setSearchFormData: ((context: {
        form: any;
        mergeForm?: boolean;
    }) => void);
    setTableData: (([]: any) => void);
    updateTableRow: ((index: number, row: Object, merge?: boolean) => void);
}

Type declaration

  • crudBinding: any
  • crudRef: any
  • doPageTurn: ((no: number) => void)
      • (no: number): void
      • 翻页

        Parameters

        • no: number

        Returns void

  • doRefresh: (() => Promise<void>)
      • (): Promise<void>
      • 刷新列表数据

        Returns Promise<void>

  • doRemove: ((context: any) => Promise<void>)
      • (context: any): Promise<void>
      • 删除行按钮点击

        Parameters

        • context: any

          = {index,row,...} , delRequest的请求参数

        Returns Promise<void>

  • doSearch: ((opts: {
        form: any;
        goFirstPage?: boolean;
        mergeForm?: boolean;
    }) => Promise<void>)
      • (opts: {
            form: any;
            goFirstPage?: boolean;
            mergeForm?: boolean;
        }): Promise<void>
      • 查询按钮点击,执行查询

        Parameters

        • opts: {
              form: any;
              goFirstPage?: boolean;
              mergeForm?: boolean;
          }

          {form, goFirstPage =true,mergeForm=false}

          • form: any
          • Optional goFirstPage?: boolean
          • Optional mergeForm?: boolean

        Returns Promise<void>

  • doSelectCurrentRow: ((context: {
        row: any;
    }) => void)
      • (context: {
            row: any;
        }): void
      • 选中某一行

        Parameters

        • context: {
              row: any;
          }

          = {row}

          • row: any

        Returns void

  • doValueBuilder: ((records: any, columns?: any) => void)
      • (records: any, columns?: any): void
      • 执行valueBuilder

        Parameters

        • records: any

          表格数据列表

        • Optional columns: any

        Returns void

  • doValueResolve: ((context: {
        form: any;
    }, columns?: any) => void)
      • (context: {
            form: any;
        }, columns?: any): void
      • 执行valueResolve

        Parameters

        • context: {
              form: any;
          }

          { form }

          • form: any
        • Optional columns: any

        Returns void

  • editable: any

    行编辑

  • getBaseTableRef: (() => any)
      • (): any
      • 获取x-table的实例

        Returns any

  • getFormComponentRef: ((key: string, isAsync: boolean) => any)
      • (key: string, isAsync: boolean): any
      • 获取表单组件实例 key: 字段key isAsync: 是否异步获取,传true时,此方法返回promise(当组件是异步组件<extends中的组件>时,第一次获取会为空,所以需要异步等待加载完成后才能获取)

        Parameters

        • key: string
        • isAsync: boolean

        Returns any

  • getFormData: (() => any)
      • (): any
      • 获取表单数据

        Returns any

  • getFormRef: (() => any)
      • (): any
      • 获取FsFormRef

        Returns any

  • getFormWrapperRef: (() => any)
      • (): any
      • 获取FsFormWrapper的实例

        Returns any

  • getSearchFormData: (() => any)
      • (): any
      • 获取查询表单数据

        Returns any

  • getSearchRef: (() => any)
      • (): any
      • 获取查询组件ref

        Returns any

  • getTableData: (() => [])
      • (): []
      • 获取表格数据

        Returns []

  • getTableDataRow: ((index: number) => any)
      • (index: number): any
      • 获取表格数据某一行

        Parameters

        • index: number

        Returns any

  • getTableRef: (() => any)
      • (): any
      • 获取FsTable的实例

        Returns any

  • insertTableRow: ((index: number, row: Object) => void)
      • (index: number, row: Object): void
      • 插入行

        Parameters

        • index: number
        • row: Object

        Returns void

  • openAdd: ((context: any) => Promise<void>)
      • (context: any): Promise<void>
      • 打开添加对话框

        Parameters

        • context: any

          = {row,...formWrapper.open的自定义参数}

        Returns Promise<void>

  • openDialog: ((context: any) => Promise<void>)
      • (context: any): Promise<void>
      • 打开对话框

        Parameters

        • context: any

          = {...formWrapper.open的自定义参数}

        Returns Promise<void>

  • openEdit: ((context: any) => Promise<void>)
      • (context: any): Promise<void>
      • 打开编辑对话框

        Parameters

        • context: any

          = {index,row,...formWrapper.open的自定义参数}

        Returns Promise<void>

  • openView: ((context: any) => Promise<void>)
      • (context: any): Promise<void>
      • 打开查看对话框

        Parameters

        • context: any

          = {index,row,...formWrapper.open的自定义参数}

        Returns Promise<void>

  • removeTableRow: ((index: number) => void)
      • (index: number): void
      • 删除行

        Parameters

        • index: number

        Returns void

  • setSearchFormData: ((context: {
        form: any;
        mergeForm?: boolean;
    }) => void)
      • (context: {
            form: any;
            mergeForm?: boolean;
        }): void
      • 重新设置查询表单数据

        Parameters

        • context: {
              form: any;
              mergeForm?: boolean;
          }
          • form: any
          • Optional mergeForm?: boolean

        Returns void

  • setTableData: (([]: any) => void)
      • ([]: any): void
      • 重新设置表格数据

        Parameters

        • []: any

        Returns void

  • updateTableRow: ((index: number, row: Object, merge?: boolean) => void)
      • (index: number, row: Object, merge?: boolean): void
      • 更新行

        Parameters

        • index: number
        • row: Object
        • Optional merge: boolean

        Returns void

Generated using TypeDoc