UNPKG
@mini-dev/directive-views
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
用组件方式来调用小程序的API
github.com/miniapp-develop/directive-views
miniapp-develop/directive-views
@mini-dev/directive-views
/
libs
/
copy
/
index.js
14 lines
(12 loc)
•
279 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
MiniComponent
}
from
'../internal'
;
import
{
Value
}
from
'../behaviors'
;
MiniComponent
({
behaviors
: [
Value
],
methods
: {
onTap
(
e
) { wx.
setClipboardData
({
data
:
this
.
getValue
() }); } } });