0.0.20 • Published 2 months ago

shimo-compact-sdk v0.0.20

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

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

2 months ago

0.0.18

3 months ago

0.0.19

3 months ago

0.0.17

3 months ago

0.0.16

4 months ago

0.0.10

5 months ago

0.0.11

5 months ago

0.0.12

5 months ago

0.0.13

5 months ago

0.0.14

5 months ago

0.0.15

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago