0.0.4 • Published 1 year ago

lf-screenshot-v3 v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

插件使用方法

1: npm i lf-screenshot-v3

2: main.js中引入 import "../node_modules/lf-screenshot-v3/style.css"; //引入组件样式 import Screenshots from "lf-screenshot-v3"; //引入下载后的组件 app.use(Screenshots)

3: // 带拖动选取 // 点击对应区域直接选取

4: 参数解析 :show // 控制是否开始截图 true || false :customid //目标id 如'app' :scrolltop // 带拖动选取时 如果页面带滚动条需要传入滚动的scrolltop @backtrack // 取消的回调方法 @SendCallback // 发送的回调方法

右上角添加触发按钮的方法

// maiaH5 是 @longfor/maia-h5插件

this.maiaH5.clearNavigationBar('right') window'TransmitPopup' = ()=>{ //点击转发的回调 } window'CommentPopup' = ()=>{ //点击评论的回调 } this.maiaH5.setNavigationBar({ right: { action: "js", bundle: "", customized: 1, image: "图标地址", js: "TransmitPopup", title: "转发", }, { action: "js", bundle: "", customized: 1, image: "图标地址", js: "CommentPopup", title: "评论" } })

调起云图梭转发

extContent // 点击发送回调接收到的参数

const items = { typeId: 'im', actionUrl: longfor://im/forward?objectName=${encodeURIComponent( extContent.objectName, )}&content=${encodeURIComponent( JSON.stringify(extContent.content), )}, }, this.maiaH5.useNative('longfor', 'share/showPopupWindow', { items: ${encodeURIComponent(JSON.stringify(items))}, })

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago