0.0.20 • Published 1 year ago
shimo-compact-sdk v0.0.20
shimo-compact-sdk
https://www.npmjs.com/package/shimo-js-sdk
本项目为shimo-js-sdk的IE兼容版本。 当用户使用IE访问石墨服务的时候,由于套件本身不支持IE,所以只使用预览的方式查看。
使用说明
安装
# 通过 npm
npm install --save shimo-compact-sdk
初始化
import { connect } from 'shimo-compact-sdk'
// 方法一
connect({
fileId: '您系统中的 file id',
endpoint: '石墨服务的地址',
signature: '用您的 app id 和 secret 签发的签名',
token: '用于您系统识别用户请求的 token',
container: document.querySelector('#shimo-file'), // pdf 预览的容器
// lang: 'en' // 未指定此参数时,使用浏览器默认语言 预览模式暂时没有多语言
})
// 方法二
// 先在网页引入整个静态文件
window.shimoCompactSDK.connect({
fileId: '您系统中的 file id',
endpoint: '石墨服务的地址',
signature: '用您的 app id 和 secret 签发的签名',
token: '用于您系统识别用户请求的 token',
container: document.querySelector('#shimo-file'), // pdf 预览的容器
// lang: 'en' // 未指定此参数时,使用浏览器默认语言 预览模式暂时没有多语言
})
0.0.20
1 year ago
0.0.18
1 year ago
0.0.19
1 year ago
0.0.17
1 year ago
0.0.16
1 year ago
0.0.10
2 years ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago