You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
650 B
39 lines
650 B
// components/focus/index.js
|
|
Component({
|
|
/**
|
|
* 组件的属性列表
|
|
*/
|
|
properties: {
|
|
|
|
},
|
|
|
|
/**
|
|
* 组件的初始数据
|
|
*/
|
|
data: {
|
|
items: [
|
|
{
|
|
id: '1',
|
|
title: '啦啦啦阿拉啦啦啦爱啦啦啦'
|
|
},
|
|
{
|
|
id: '2',
|
|
title: '啦啦啦阿拉啦啦啦爱啦啦啦啦啦啦阿拉啦啦啦爱啦啦啦'
|
|
},
|
|
{
|
|
id: '3',
|
|
title: '啦啦啦阿拉啦啦啦爱啦啦啦'
|
|
}
|
|
]
|
|
},
|
|
|
|
/**
|
|
* 组件的方法列表
|
|
*/
|
|
methods: {
|
|
onTap (e) {
|
|
const { item } = e.currentTarget.dataset
|
|
this.triggerEvent('tapFocusItem', item)
|
|
}
|
|
}
|
|
})
|
|
|