1.1.6 • Published 5 years ago

ai-search-colltable v1.1.6

Weekly downloads
2
License
MIT
Repository
-
Last release
5 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

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago