Polymer 扩大造纸厂可消除涟漪效应
我曾尝试扩展Polymer 扩大造纸厂可消除涟漪效应,polymer,Polymer,我曾尝试扩展paper fab元素,但之后我失去了连锁反应 我的代码如下所示: <polymer-element name="custom-fab" attributes="name count" extends="paper-fab"> <template> <style> :host{ margin: 5px; }; </style
paper fab
元素,但之后我失去了连锁反应
我的代码如下所示:
<polymer-element name="custom-fab" attributes="name count" extends="paper-fab">
<template>
<style>
:host{
margin: 5px;
};
</style>
<shadow></shadow>
</template>
<script>
Polymer({
count: 0,
created: function() {
this.name = {};
}
})
</script>
</polymer-element>
:主持人{
保证金:5px;
};
聚合物({
计数:0,
已创建:函数(){
this.name={};
}
})
这是因为我的元素是空的,在向标签
属性添加一些文本后,我再次获得了涟漪
效果
<custom-fab label="test"></custom-fab>