1.0.27 • Published 7 years ago
yy-web-office
Licence
MIT
Version
1.0.27
Deps
1
Size
15 kB
Vulns
1
Weekly
0
yy-web-office
A Vue.js project
-由于参数及接口局限性,目前只支持文库文件
使用方法
npm install yy-web-office
<template>
<div @click="openMethods">点击打开</div>
</template>
<script>
//组件内部引入
import webOpenoffice from "yy-web-office"
export default{
methods:{
openMethods(){
//设置参数
let params = {
fid:02,
docFileName:"文库文档",
isNewCreated:false,
qzid:"01",
showHistory:true,
fileType:".doc",
userName:"lijian",
member_id:"213123"
};
//调用
webOpenoffice(params);
}
}
}
</script>
参数说明
fid(必填) - 文档id type -- Number
docFileName - 文档名 type -- String
isNewCreated - 是否为新建(默认否) type -- boolean
qzid(必填) - 圈子id string
showHistory - 是否显示历史版本(默认显示) type -- boolean
fileType - 文档类型 .doc .xls
userName - 当前操作文件者
member_id - 当前操作人员id