Download the PHP package quansitech/qscmf-antd-builder without Composer

On this page you can find all versions of the php package quansitech/qscmf-antd-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package qscmf-antd-builder

qscmf-antd-builder

antd 控件生成器

安装

控件列表

Divider

分割线

最简单的分割线

给分割线设置说明

修改分割线标题位置,默认为 center,即居中

实例化对象时设置标题和标题位置

Table

表格

最简单的表格

带有筛选条件的表格

筛选通用参数说明

参数 说明 类型 默认值
name 列属性值,即data.dataIndex string
text 筛选项标题 string
type 筛选类型,可选值请看 筛选类型及其options参数说明 string
rule 筛选规则,可选值请看 筛选规则说明 string
changeThenSearch 筛选内容改变时马上筛选数据,例如选择下拉框值即筛选数据,若需要应该设置为 "1" boolean I string false
showLabel 是否在左侧显示筛选项标题,若需要应该设置为 "1" boolean I string false
options 筛选项额外配置,具体请看类型说明;使用自定义筛选规则时应设置callback,具体请看类型说明中的 使用回调自定义规则 array

筛选类型及其options参数说明

筛选规则说明

使用说明

带有排序的表格

排序参数说明

参数 说明 类型 默认值
name 即data.dataIndex string
type 排序类型,可选值请看 排序类型及其使用说明 string I null null
options 排序项额外配置,使用自定义排序规则时应设置callback,具体请看排序类型及其使用说明中的 使用回调函数自定义规则 array

排序类型及其使用说明

使用远程加载数据的表格

data.list 为表格数据源 data.count 为数据总条数

text 仅筛选项样式有效,筛选规则需要接口处理 text 通过设置数据的 _cellProperties 的值来自定义单元格的列、行的属性 text 设置字段的 rowSpan colSpan值 当rowSpan/colSpan为0时,不渲染 text 设置字段的 className值 text 远程加载数据的表格无效



### Collapse

折叠卡

最简单的折叠卡

### Descriptions

描述列表

示例:

函数说明:

+ setBordered 

  指定是否使用边框表格的展示方式

  | 参数       | 说明              | 必填  | 默认值   |
  |:-------- |:--------------- | --- |:----- |
  | bordered | 指定是否使用边框表格的展示方式 | 否   | false |

+ addItem

  添加展示列

  | 参数          | 说明                                                                                                       | 必填  | 默认值                          |
  |:----------- |:-------------------------------------------------------------------------------------------------------- | --- |:---------------------------- |
  | label       | 列标题                                                                                                      | 是   |                              |
  | content     | 内容                                                                                                       | 是   |                              |
  | option      | 配置                                                                                                       | 否   | [ 'type' => '', 'span' => 0] |
  | option.type | 类型 <br />1. image 图片 content需要填写图片地址<br />    content也可以填入数组表示多图展示<br />2. html content可以输入简单的html进行信息展示 | 否   | text                         |
  | option.span | 列宽 2表示占据两列,以此类推                                                                                          | 否   | 0                            |

### Datepicker

日期查询控件

示例:

函数说明:

+ ___construct

  构造函数

  | 参数     | 说明                                                                                                                                                                                    | 必填  | 默认值                                |
  | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ---------------------------------- |
  | type   | 控件类型<br>DatepickerBuilder::TYPE_DATEPICKER 单日期选择<br><br>DatepickerBuilder::TYPE_RANGEPICKER 范围选择                                                                                      | 否   | DatepickerBuilder::TYPE_DATEPICKER |
  | picker | DatepickerBuilder::PICKER_DATE 日<br/>DatepickerBuilder::PICKER_WEEK 周<br/>DatepickerBuilder::PICKER_MONTH 月<br/>DatepickerBuilder::PICKER_YEAR 年<br/>DatepickerBuilder::PICKER_YEAR 季 | 否   | DatepickerBuilder::PICKER_DATE     |

- setType 

  控件类型 

  | 参数   | 说明                                                                                                  | 必填  | 默认值 |
  | ---- | --------------------------------------------------------------------------------------------------- | --- | --- |
  | type | 控件类型<br/>DatepickerBuilder::TYPE_DATEPICKER 单日期选择<br/><br/>DatepickerBuilder::TYPE_RANGEPICKER 范围选择 | 是   | 无   |

- setPicker

  选择日期粒度

  | 参数     | 说明                                                                                                                                                                                    | 必填  | 默认值 |
  | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | --- |
  | picker | DatepickerBuilder::PICKER_DATE 日<br/>DatepickerBuilder::PICKER_WEEK 周<br/>DatepickerBuilder::PICKER_MONTH 月<br/>DatepickerBuilder::PICKER_YEAR 年<br/>DatepickerBuilder::PICKER_YEAR 季 | 是   | 无   |

+ setDefaultValue

  设置日期

  | 参数    | 说明                                                                                                          | 必填  | 默认值 |
  | ----- | ----------------------------------------------------------------------------------------------------------- | --- | --- |
  | dates | 数组 <br/>range类型时必须传递包含开始日期和结束日期得数组<br/>datepicker类型时只需传递一个日期<br/>格式为字符串<br/>如: ['2022-08-01', '2022-08-31'] | 是   | 无   |

+ parseParam

  参数解释函数

  | 参数       | 说明                                                   | 必填  | 默认值 |
  | -------- | ---------------------------------------------------- | --- | --- |
  | get_data | 数组 <br>url传参数组,一般为I('get.')<br/>                     | 是   | 无   |
  | 返回值      | 数组<br/>range类型,返回选择的开始和结束时间<br/>datepicker类型,返回选择的时间 |     |     |

All versions of qscmf-antd-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
tiderjian/think-core Version >=11.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package quansitech/qscmf-antd-builder contains the following files

Loading the files please wait ....