polymer-1.0

    0熱度

    2回答

    我用聚合物1(最新版本)加上polymerfire(最新版本)來顯示一個索引列表(我的代碼中的seedPosition屬性如下)。在聚合物1中,當我向Firebase添加一個對象時,索引增加1,但是當我將所有內容更新爲聚合物2.0預覽時,索引增加了整個列表長度。這表明整個對象得到更新,而不是新添加的。 我做加載通過涼亭所有元素爲#2.0-preview,並改變了類語法聚合物2(例如,class C

    1熱度

    1回答

    我試圖建立我的應用程序,所以我跑以下命令: polymer build -v 在終端打印出來,我看到以下消息: debug: Skipping static resource "build/bundled/src/path/to/my-element.html" (2.46 MB) - max size is 2.1 MB 另外還有控制檯錯誤始發從同一個文件時,我與服務捆綁版本: polyme

    0熱度

    1回答

    的應用頭的造型看起來像這樣 app-header { position: fixed; top: 0; left: 0; width: 100%; height: 212px; color: #fff; background-color: #3f51b5; --app-header-background-front-l

    0熱度

    1回答

    比方說,我有這樣的元素: <dom-module id="my-element"> <template> <auth-service is-authorized="{{isAuthorized}}"></auth-service> </template> <script> Polymer({ is: 'my-element',

    0熱度

    1回答

    我第一次嘗試聚合物。 我對索引文件下面的CSS: body { margin: 0; font-family: 'Roboto', 'Noto', sans-serif; line-height: 1.5; height: 100vh; background-color: #eeeeee; } 你可以看到,高度爲顯式指定大

    0熱度

    1回答

    聚合物1.0 我沒有使用陰影dom,但本機陰影dom在鉻。 有沒有簡單的方法來查詢<paper-checkbox name="pets" id="noPets">?既然是嵌套在<template is="dom-if" if="{{foo}}">我不能使用this.$.noPets: <dom-module id="foobar-element> <template> ...

    1熱度

    1回答

    在聚合文檔中,當我們使用app-localstorage時,如果我們將屬性sessionOnly =「true」和storage =「window.sessionStorage」數據存儲在會話存儲中,但其在localStorage的還是存儲數據 <paper-input value="{{myData}}"></paper-input> <app-localstorage-document ke

    0熱度

    1回答

    HTML <div class="layout horizontal flex around-justified typeArea"> <input is="iron-input" class="typeBox flex-1" > <paper-icon-button icon="polymer" class="pink"></paper-icon-button> </div

    4熱度

    1回答

    我正在開發發送一個數組作爲元素的屬性。 文件形式-list.html <dom-module id="form-list"> <template> <div>{{title}} - {{owner}} </div> <form> <template is="dom-repeat" items="{{inputAndLabel}}">

    0熱度

    1回答

    我正在使用Polymer js,假設我有頁面A,B,C,並且我在頁面A中請求登錄API調用,並且我需要頁面B和C中的響應,直到用戶註銷。所以當我得到響應時,我將響應存儲在一個JS局部變量中,然後將該變量綁定到頁面B和C上,並使用數據綁定和傳遞值,直到刷新頁面B或C時才起作用。當我刷新頁面B或C所有我的本地變量被銷燬,頁面B和C取決於頁面A的數據,甚至我不能將整個響應存儲在localstorage中