ember-tag-input:用于输入标签的简单 Ember 插件

时间:2021-08-03 23:57:15
【文件属性】:
文件名称:ember-tag-input:用于输入标签的简单 Ember 插件
文件大小:149KB
文件格式:ZIP
更新时间:2021-08-03 23:57:15
emberjs input addon tag JavaScript 余烬标签输入 ember-tag-input 是一个简单的 Ember 插件,可以将用户的输入转换为标签。 当用户输入逗号、空格或按下回车键时,就会创建新标签。 可以使用退格键或单击每个标签上的 x 按钮来删除标签。 用法 在最简单的情况下,只需传递要渲染的标签列表以及添加和删除标签的操作。 该组件永远不会为您更改标签列表,而是会在需要进行更改时调用操作。 该组件将生成列表中的每个标签,允许您根据需要呈现它。 {{ #tag-input tags = tags addTag = ( action ' addTag ' ) removeTagAtIndex = ( action ' removeTagAtIndex ' ) as | tag | }} {{ tag }} {{ /tag-input }} import Ember from 'ember' ; e
【文件预览】:
ember-tag-input-master
----.gitignore(300B)
----app()
--------components()
--------.gitkeep(0B)
--------styles()
----package.json(1KB)
----LICENSE.md(1KB)
----.watchmanconfig(37B)
----index.js(166B)
----addon()
--------components()
--------templates()
--------.gitkeep(0B)
--------styles()
----testem.js(562B)
----.github()
--------dependabot.yml(230B)
----.eslintrc.js(142B)
----README.md(3KB)
----vendor()
--------.gitkeep(0B)
----tests()
--------dummy()
--------integration()
--------unit()
--------helpers()
--------.eslintrc.js(87B)
--------index.html(1KB)
--------test-helper.js(228B)
----config()
--------ember-try.js(1KB)
--------environment.js(155B)
----.ember-cli(280B)
----ember-cli-build.js(479B)
----.circleci()
--------config.yml(711B)
----.npmignore(419B)
----.editorconfig(368B)
----yarn.lock(365KB)

网友评论