mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-03-14 12:14:01 +08:00
v2.0.2
v2.0.2 2.0版本上线
This commit is contained in:
17
demo/pages/test.js
Normal file
17
demo/pages/test.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const app = getApp();
|
||||
Page({
|
||||
data: {
|
||||
StatusBar: app.globalData.StatusBar,
|
||||
CustomBar: app.globalData.CustomBar,
|
||||
ColorList: app.globalData.ColorList,
|
||||
scrollLeft: 0,
|
||||
TabCur: 0,
|
||||
},
|
||||
tabSelect(e) {
|
||||
console.log(e);
|
||||
this.setData({
|
||||
TabCur: e.currentTarget.dataset.id,
|
||||
scrollLeft: (e.currentTarget.dataset.id - 1) * 60
|
||||
})
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user