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

vue-direction-fullscreen

v1.0.0

Published

vue的全屏指令,支持有icon和无icon两种方式使用

Downloads

16

Readme

vue-全屏指令

这是一个可以在全屏之后插入筛选器的基于element-ui组件封装的vue-全屏指令

使用方式如下:

对于指令参数的说明

updateFullScreen参数是在不展示icon的情况下配置的触发全屏的参数用于写在触发全屏的函数中 值是true进入全屏 值是false退出全屏

showIcon true是展示全屏icon 通过点击icon触发全屏 false则不展示全屏icon

insertNode 是在全屏时插入的dom节点的id 可用于全屏之后插入一些筛选条件用来筛选

index 是页面中全部全屏指令的标识 注意 每个指令的标识应当不相同 用来区分全屏指令

fn 是全屏之后可以做的一些样式调整 以及别的操作 它有两个参数一个是binding 一个是el el是插入全屏指令的节点本身

top && right: 是全屏指令在插入节点的位置

第一种配置方案

如果不想展示全屏icon 想通过一种方式触发全屏操作的话请采用如下配置方案

v-fullScreen="{
    updateFullScreen:updateFullScreen,
    showIcon:'false',
    insertNode:'fullScreenFilter',
    index:index,
    isNeedInsertNode:chart.config.extends.hasFilter
}"

第二种配置方案

如果想展示icon,通过点击icon触发全屏,请采用如下配置方案

v-fullScreen="{
    showIcon:'true',
    insertNode:'fullScreenFilter',
    index:index,
    top:20,
    right:20
}"