扫码关注官方订阅号
{{item.tName}}
刚研究polymer,为每个li绑定tooltype属性,用{{item.tooltype}}解析不了。是不是可以用其他的方式?
光阴似箭催人老,日月如移越少年。
我是把repeat item也定义成组件了。
<template is="dom-repeat" items="{{testItems}}"> <performance-item item="{{item}}"></performance-item> </template>
<link rel="import" href="../bower_components/polymer/polymer.html"> <dom-module id="performance-item"> <template> <li> <p> <label>{{item.field}}</label> <input type="text" value="{{item.field::input}}" style="width:80px"> </p> </li> </template> <script> Polymer({ is: "performance-item", properties:{ item:{ value: null, type: "object" } } }); </script> </dom-module>
题主有兴趣,可以看下我写的polymer几篇专栏,虽然都比较浅
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
我是把repeat item也定义成组件了。
题主有兴趣,可以看下我写的polymer几篇专栏,虽然都比较浅