PHPackages                             quansitech/qscmf-antd-tag - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. quansitech/qscmf-antd-tag

ActiveLibrary

quansitech/qscmf-antd-tag
=========================

antd tag

v1.1.1(5y ago)0103↓100%MITJavaScriptPHP &gt;=7.2CI failing

Since May 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/quansitech/qscmf-antd-tag)[ Packagist](https://packagist.org/packages/quansitech/qscmf-antd-tag)[ RSS](/packages/quansitech-qscmf-antd-tag/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

qscmf-antd-tag
==============

[](#qscmf-antd-tag)

antd tag 列表、表单组件

#### 安装

[](#安装)

```
composer require quansitech/qscmf-antd-tag
```

#### 截图

[](#截图)

列表组件 [![](https://user-images.githubusercontent.com/1665649/81764741-d4c04680-9504-11ea-8e79-96bc8c99db8f.png)](https://user-images.githubusercontent.com/1665649/81764741-d4c04680-9504-11ea-8e79-96bc8c99db8f.png)

表单组件 [![](https://user-images.githubusercontent.com/1665649/81764842-0e914d00-9505-11ea-9365-2787282a7611.png)](https://user-images.githubusercontent.com/1665649/81764842-0e914d00-9505-11ea-9365-2787282a7611.png)

#### 用法

[](#用法)

- 组件基础

组件默认带hidden的input元素，input元素存着tag id序列，用逗号分隔。当使用列表保存或者表单提交，都会将这个隐藏input的数据提交到后端处理。

如果新增tag，tag id默认格式为 @ + tag名称， 如新增 test1，那么tag.id=@test1。 因此做业务处理时可判断有无@前缀来辨别是否新增的数据

- 列表组件

```
foreach($data_list as &$data){
    $ents = [
        [
          'openid' => 'openid1',
          'nickname' => '昵称1'
        ],
        [
          'openid' => 'openid2',
          'nickname' => '昵称2'
        ]
    ];
    $data['person'] = collect($ents)->map(function($item){
        return [
            'id' => $item['openid'],
            'text' => $item['nickname'],
            'deletable' => true, //是否可删除 默认为false 可省略
            'editable' => false //是否可修改 默认为false 可省略
        ];
    })->all();
}

$builder = new ListBuilder();
.
.
.
$builder->addTableColumn('person', '已绑定', 'antd_tags', ['createTag' => false, 'createTagBtnText' => '添加'])
//createTag 是否可新增tag 默认为false 可省略
//createTagBtnText 新增按钮的文字提示 默认为 New Tag， 只有当createTag为true时才有效
->setTableDataList($data_list)
```

可配合listBuilder的保存功能，直接在表单去增删改tag，显著提高操作效率。

- 表单组件

```
$info['person'] = [
    [
        'id' => 1,
        'text' => '测试1',
        'deletable' => true, //是否可删除 默认为false 可省略
        'editable' => true //是否可修改 默认为false 可省略
    ],
    [
        'id' => 2,
        'text' => '测试2',
        'deletable' => true,
        'editable' => true
    ]
];

$builder = new FormBuilder();
$builder->addFormItem('person', 'antd_tags', '绑定用户', '', ['createTag' => true])
//createTag 是否可新增tag 默认为false 可省略
//createTagBtnText 新增按钮的文字提示 默认为 New Tag， 只有当createTag为true时才有效
->setFormData($info);
```

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

3

Last Release

2120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15a0610fee78753bdad92fd45c3506455c0fd45ae51924797b1841d260495a3f?d=identicon)[tiderjian](/maintainers/tiderjian)

---

Tags

componentqscmf

### Embed Badge

![Health badge](/badges/quansitech-qscmf-antd-tag/health.svg)

```
[![Health](https://phpackages.com/badges/quansitech-qscmf-antd-tag/health.svg)](https://phpackages.com/packages/quansitech-qscmf-antd-tag)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
