init
This commit is contained in:
25
xhs-mini-demos/component-case/movable-area/movable-area.js
Normal file
25
xhs-mini-demos/component-case/movable-area/movable-area.js
Normal file
@@ -0,0 +1,25 @@
|
||||
Page({
|
||||
data: {
|
||||
x: 0,
|
||||
y: 0,
|
||||
x1: 30,
|
||||
y1: 30,
|
||||
},
|
||||
move() {
|
||||
this.setData({
|
||||
x1: 50,
|
||||
y1: 50,
|
||||
});
|
||||
},
|
||||
scale() {
|
||||
this.setData({
|
||||
scale: 3,
|
||||
});
|
||||
},
|
||||
onChange(e) {
|
||||
console.log(e.detail);
|
||||
},
|
||||
onScale(e) {
|
||||
console.log(e.detail);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user