ai-search-colltable
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

CollTable

import { CollTable } from "ai-search-colltable";
 
<CollTable
          code="123"
          apiUrl="POST /module/ps-module-data-config/getInputOutPutParam"
          tableUrl="POST /module/powersearch/api/module/data/get"
          queryParams={{
            caseId: "12222222",
            searchKey: "sss",
          }}
          dataSource={dataSource}
          colums={[
            {
              title: "查看完整表",
              key: "detail",
              fixed: "right",
              width: "150px",
              render: (item) => {
                return (
                  <a
                    onClick={() => {
                      console.log(item);
                    }}
                  >
                    查看详情
                  </a>
                );
              },
            },
          ]}
        />

props

参数 类型 说明 必填 默认值
className string 组件自定义样式 -
code string 获取配置入参 -
queryParams object 获取数据入参映射入参 -
apiUrl string 获取配置接口 -
tableUrl string 获取数据接口 -
dataSource object[] 数据数组 (apiUrl & tableUrl 两者取其一 ) -
isDownLoad boolean 是否需要导出 true
downLoadName boolean 导出文件名称 未知
colums object[] 表格列的配置描述 -
antdTableConfg 参考antd配置 https://ant.design/components/table-cn/ -

Package Sidebar

Install

npm i ai-search-colltable

Weekly Downloads

1

Version

1.1.6

License

MIT

Unpacked Size

23.6 kB

Total Files

18

Last publish

Collaborators

  • zhoushaojun
  • gaiyanhang
  • yuanff