智能照明系统APP-本地串口
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.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/be/be6e1cc98e0d587a8e54a7f2f7a...

33 lines
563 B

import clipboard from '@system.clipboard'
import {
invoke
} from '../../bridge'
export function getClipboardData (options, callbackId) {
clipboard.get({
success: (ret) => {
invoke(callbackId, {
data: ret.text,
errMsg: 'getClipboardData:ok'
})
},
fail: (data, code) => {
invoke(callbackId, {
data: code,
errMsg: 'getClipboardData:fail'
})
}
})
}
export function setClipboardData ({
data
}) {
clipboard.set({
text: data
})
return {
errMsg: 'setClipboardData:ok'
}
}