forked from xzhhbx/jsbox_script
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext2img.js
More file actions
39 lines (36 loc) · 752 Bytes
/
Copy pathtext2img.js
File metadata and controls
39 lines (36 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$ui.render({
props: {
},
views: [{
type: "view",
props: {
id: "bottomView",
bgcolor: $color("#fff")
},
layout: (make, view) => {
make.width.equalTo(view.super)
make.center.equalTo(view.super)
make.height.equalTo(view.views[0]).offset(40)
},
views: [{
type: "label",
props: {
text: $clipboard.text,
lines: 0
},
layout: (make, view) => {
make.left.equalTo(view.super).offset(20)
make.centerY.equalTo(view.super)
make.width.equalTo(view.super).offset(-40)
},
events: {
tapped: sender => {
}
},
}]
}]
})
$delay(.1, function () {
$share.wechat($("bottomView").snapshot)
$app.close()
})