简体   繁体   English

PolymerJS:如何安装paper-submenu?

[英]PolymerJS: How to install paper-submenu?

I'd like to try out the paper-submenu element . 我想尝试一下paper-submenu元素

But I can't find the bower-command to install the element. 但我找不到bower-command来安装元素。 The page of the paper-submenu is here: 纸 - 子菜单的页面在这里:

https://elements.polymer-project.org/elements/paper-menu https://elements.polymer-project.org/elements/paper-menu

But the command 但是命令

bower install --save PolymerElements/paper-menu bower install --save PolymerElements / paper-menu

does not install the paper-submenu along. 没有安装paper-submenu

and just using 并且只是使用

bower install --save PolymerElements/paper-submenu bower install --save PolymerElements / paper-submenu

does throw an error. 确实会引发错误。

Where do I get the paper-submenu element? 我在哪里可以获得paper-submenu元素?


Update 更新

It was suggested to just install the paper-menu element via bower. 建议只通过凉亭安装paper-menu元素。 I believe that I made it clear that I did exactly this with the commands I posted above. 我相信我明确表示我使用上面发布的命令完成了这一操作。

Here are some screenshots of my folder structure so that you can see what gets installed when I install the paper-menu element through the above bower command: 以下是我的文件夹结构的一些截图,以便您通过上面的bower命令安装paper-menu元素时可以看到安装的内容:

安慰

文件夹结构

**As you can see there is NO paper-submenu element installed along **正如您所看到的那样,没有安装paper-submenu元素

如果你看一下git repopaper-menu你会看到paper-submenu的文件也在那里,所以要使用paper-submenu你只需要安装paper-menu并导入为<link rel="import" href="bower_components/paper-menu/paper-submenu.html">

You should import paper-menu element , it's coming with paper-submenu, here is a code pen example. 你应该导入paper-menu元素,它带有paper-submenu,这是一个代码笔的例子。 I used polygit for my imports in code pen settings paper-submenu example 我在代码笔设置paper-submenu示例中使用polygit进行导入

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM