Web组件:一些基于Polymer3的自定义Web组件

时间:2021-02-06 03:32:59
【文件属性】:
文件名称:Web组件:一些基于Polymer3的自定义Web组件
文件大小:1.55MB
文件格式:ZIP
更新时间:2021-02-06 03:32:59
polymer web-components WebComponentsJavaScript 介绍 基于Polymer的组件库。 立即开始 安装 安装polymer-cli npm install -g polymer-cli 安装npm依赖: $ npm i 启动开发 $ npm start 访问http://127.0.0.1:8081/demo/ 建立 $ npm run build 测试 $ npm run test 开发步骤 在elements目录中加入要开发的组件目录,命名与现有的保持一致。 Referenceox ox-button的写法,将组件的css与js都写在同一个js文件中。 公共样式加入elements/global.css文件中。 在demo目录中创建组件

网友评论