npm i ofd-view -S
在 main.js 中写入以下内容:
import OfdView from "ofd-view";
import 'ofd-view/lib/viewer.css'
Vue.use(OfdView);
在 静态页 index.html 中声明dir为ltr
dir="ltr"
配置参数
参数 | 说明 | 类型 | 示例 | 默认值 |
---|---|---|---|---|
file | ofd文件 | url | [] | |
mem | parser_x.js变量 | object | - | |
secret | string | |||
digest | string | |||
canDownload | 是否可下载 | boolean | true | |
canPrint | 是否可打印(打印合脊那边客户看不懂新打开页的意思) | boolean | true | |
canOpen | 是否可打开新文档 | boolean | false |