ember-class-names-helper:在Ember模板中有条件地联接类名的更简洁方法

时间:2024-05-20 05:08:00
【文件属性】:

文件名称:ember-class-names-helper:在Ember模板中有条件地联接类名的更简洁方法

文件大小:211KB

文件格式:ZIP

更新时间:2024-05-20 05:08:00

JavaScript

{{class-names}}助手 提供了一种更干净的方法,用于在模板中有条件地连接类名。 前: < button class = " button {{ if @ primary " button--primary " }} {{ if @ small " button--small " }} {{ if @ disabled " is-disabled " }} " type = " button " > Submit </ button > 后: < button class = {{ class-names " button " button--primary = @ primary button--small = @ small is-disabled = @ disabled }} type = " button " >


【文件预览】:
ember-class-names-helper-master
----ember-cli-build.js(497B)
----.github()
--------workflows()
----testem.js(589B)
----yarn.lock(501KB)
----.eslintrc.js(1KB)
----.prettierignore(253B)
----.npmignore(481B)
----.ember-cli(280B)
----CONTRIBUTING.md(645B)
----config()
--------environment.js(90B)
--------ember-try.js(2KB)
----.prettierrc(595B)
----LICENSE.md(1KB)
----README.md(2KB)
----addon()
--------helpers()
--------.gitkeep(0B)
----.template-lintrc.js(58B)
----.editorconfig(367B)
----tests()
--------integration()
--------index.html(1KB)
--------test-helper.js(323B)
--------helpers()
--------dummy()
--------unit()
----.gitignore(383B)
----.prettierrc.js(58B)
----app()
--------helpers()
--------.gitkeep(0B)
----index.js(72B)
----.watchmanconfig(37B)
----.eslintignore(253B)
----package.json(3KB)
----vendor()
--------.gitkeep(0B)

网友评论