1.1.6 • Published 3 years ago

ai-search-colltable v1.1.6

Weekly downloads
2
License
MIT
Repository
-
Last release
3 years ago

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

参数类型说明必填默认值
classNamestring组件自定义样式-
codestring获取配置入参-
queryParamsobject获取数据入参映射入参-
apiUrlstring获取配置接口-
tableUrlstring获取数据接口-
dataSourceobject[]数据数组 (apiUrl & tableUrl 两者取其一 )-
isDownLoadboolean是否需要导出true
downLoadNameboolean导出文件名称未知
columsobject[]表格列的配置描述-
antdTableConfg参考antd配置 https://ant.design/components/table-cn/-
1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago