@rencp/vueuse

1.0.0 • Public • Published

suc-vueuse

Collection of suc Vue Composition Utilities

install

npm install @suc/vueuse

Usage

useOffice

  1. htmll
    <div class="office"></div>
  1. 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()

Readme

Keywords

none

Package Sidebar

Install

npm i @rencp/vueuse

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.34 MB

Total Files

39

Last publish

Collaborators

  • rencp