ember-route-action-helper:路由中的气泡关闭操作

时间:2021-02-19 15:05:18
【文件属性】:
文件名称:ember-route-action-helper:路由中的气泡关闭操作
文件大小:77KB
文件格式:ZIP
更新时间:2021-02-19 15:05:18
JavaScript 警告 您可能不需要使用此插件。 如果没有此插件,您将可以很好地实现使用该插件的大多数用例。 阅读以下博客文章以获取更多信息: 余烬路线行动帮手 。 信用:@rwjblue的 演示: : ember install ember-route-action-helper route-action帮助器允许您对关闭操作进行冒泡,这将根据actions下解释的冒泡规则将其委派给当前活动的路由层次结构。 像关闭动作一样, route-action也将具有返回值。 但是,在操作中返回true不会保留冒泡的语义。 如果您想要这种行为,则应该改用普通的字符串操作。 用法 例如,此路由模板告诉组件在调用其内部clicked属性时在路由上查找updateFoo动作,并使用2个参数来使函数调用updateFoo 。 {{! foo/route.hbs }} {{ foo-bar clicked =
【文件预览】:
ember-route-action-helper-master
----.travis.yml(1KB)
----.ember-cli(280B)
----ember-cli-build.js(526B)
----vendor()
--------.gitkeep(0B)
----addon()
---------private()
--------.gitkeep(0B)
--------helpers()
----config()
--------ember-try.js(2KB)
--------environment.js(112B)
----index.js(95B)
----.watchmanconfig(37B)
----package.json(2KB)
----tests()
--------acceptance()
--------test-helper.js(162B)
--------index.html(1KB)
--------.eslintrc.js(55B)
--------dummy()
--------integration()
--------.jshintrc(831B)
--------helpers()
----app()
--------.gitkeep(0B)
--------helpers()
----testem.js(194B)
----.npmignore(280B)
----.eslintrc.js(188B)
----LICENSE.md(1KB)
----.gitignore(387B)
----circle.yml(236B)
----README.md(7KB)
----yarn.lock(181KB)
----.editorconfig(368B)

网友评论