19 lines
594 B
JavaScript
19 lines
594 B
JavaScript
Component({
|
|
properties: {
|
|
items: { type: Array, value: [] },
|
|
color: { type: Array, value: ["#333333", "#999999", "#999999"] },
|
|
fontSize: { type: Array, value: ["36rpx", "24rpx", "24rpx"] },
|
|
background: { type: String, value: "" },
|
|
padding: { type: String, value: "25rpx" },
|
|
border: { type: Array, value: ["none", "", ""] },
|
|
borderRadius: { type: String, value: "10rpx" },
|
|
lineHeight: { type: String, value: "1.5em" },
|
|
},
|
|
methods: {
|
|
taped: function (e) {
|
|
var r = e.currentTarget.dataset.index;
|
|
this.triggerEvent("taped", r);
|
|
},
|
|
},
|
|
});
|