apility / attribute-list
用于生成属性列表的辅助类。
v1.0.2
2022-11-13 01:56 UTC
Requires (Dev)
- brainmaestro/composer-git-hooks: dev-master
- squizlabs/php_codesniffer: ^3.0@dev
This package is auto-updated.
Last update: 2024-09-13 06:04:41 UTC
README
AttributeList 是用于生成标记属性列表的辅助类。
安装
使用Composer 包管理器安装 AttributeList。
composer require apility/attribute-list
用法
use Apility\AttributeList\AttributeList; $attributes = new AttributeList(); $attributes->addAttribute('class', 'button'); $attributes->addAttribute('loading', false); $attributes->addAttribute('items', ['Item 1', 'Item 2', 'Item 3']); echo "<vue-component {$attributes->toVuePropsString()}></vue-component>";
许可
cathrine.vaage@gmail.com 编写了此文件。只要您保留此通知,您就可以随意使用此软件。如果有一天我们见面,并且您认为这些软件值得,您可以用啤酒作为回报。