open-office
v1.0.5
Published
The open office appliaction
Downloads
2
Maintainers
Readme
Open office
Project setup
npm i open-office -S
import openOffice from 'open-office'
Vue.use(openOffice)
// method
$openOffice(path, online=false, width = 800, height = 600)
// Open Office
<a href="javascript:;" @click="$openOffice('D:/office/file.xlsx')">openOffice</a>
// Open Office Online
<a href="javascript:;" @click="$openOffice('https://office/file.xlsx', true)">openOffice Online</a>