npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ux-fileviewer

v0.2.8

Published

<!-- * @Descripttion: * @version: * @Author: houqiangxie * @Date: 2022-11-24 17:13:54 * @LastEditors: houqiangxie * @LastEditTime: 2023-07-13 15:00:18 --> # Vue 3 + TypeScript + Vite 文件在线预览组件 支持PDF,Docx,PPT,Excel,Txt,ofd格式在线榆林

Downloads

9

Readme

Vue 3 + TypeScript + Vite 文件在线预览组件 支持PDF,Docx,PPT,Excel,Txt,ofd格式在线榆林

##使用方法

import {FileViewer,Docx,PPT,Excel,Txt,H5PDF,Ofd} from 'uxfileviewer'
// 在main.js中引入css文件
import 'ux-fileviewer/dist/main.css'

// 文件路径最好使用通用前缀配置nginx转发,否则会导致跨越问题
// fileViewer是集齐所有文件预览组件弹窗展示
<FileViewer v-model:value="showModal.visible" name="11" url="/myResource/6360f0661934bf9dd65bb62d.pdf" />

 <H5PDF  url="/myResource/6360f0661934bf9dd65bb62d.pdf" />

在html中引入public中的文件

<!-- 在这里全局引入luckysheet的样式文件和js文件  -->
      <script type="text/javascript" src="/pptx/js/jquery-1.11.3.min.js"></script>
      <link rel="stylesheet" href="/LuckySheet/pluginsCss.css" />
      <link rel="stylesheet" href="/LuckySheet/plugins.css" />
      <link rel="stylesheet" href="/LuckySheet/luckysheet.css" />
      <link rel="stylesheet" href="/LuckySheet/iconfont.css" />
      <script src="/LuckySheet/plugin.js"></script>
      <script src="/LuckySheet/luckysheet.umd.js"></script>
      <!-- pptx -->
      <link rel="stylesheet" href="/pptx/css/pptxjs.css">
      <link rel="stylesheet" href="/pptx/css/nv.d3.min.css"> <!-- for charts graphs -->
      <script type="text/javascript" src="/pptx/js/jszip.min.js"></script> <!-- v2.. , NOT v.3.. -->
      <script type="text/javascript" src="/pptx/js/filereader.js"></script>
      <script type="text/javascript" src="/pptx/js/d3.min.js"></script> <!-- for charts graphs -->
      <script type="text/javascript" src="/pptx/js/nv.d3.min.js"></script> <!-- for charts graphs -->
      <script type="text/javascript" src="/pptx/js/pptxjs.js"></script>
      <script type="text/javascript" src="/pptx/js/divs2slides.js"></script> <!-- for slide show -->