@rencp/vueuse
v1.0.0
Published
Collection of suc Vue Composition Utilities
Downloads
4
Readme
suc-vueuse
Collection of suc Vue Composition Utilities
install
npm install @suc/vueuse
Usage
useOffice
- htmll
<div class="office"></div>
- js
import { useOffice } from "@suc/vueuse";
const {
type:officeType,
url:officeUrl,
render,
clear,
loading
} = useOffice(
'.office', //selector
'video', //默认类型(excel,docx,pdf,video)
{
video: {},
docx: {},
excel: {},
pdf: {}
}
);
//渲染
render()
//清除
clear()