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

elm-fullscreen-dialog

v0.0.1

Published

Vue-based ElementUI-based fullscreen-dialog component

Downloads

6

Readme

elm-fullscreen-dialog

a fullscreen dialog component that's based on element-ui.

Install

npm install elm-fullscreen-dialog -S

Quick Start

import Vue from 'vue'
import ElmFullscreenDialog from 'elm-fullscreen-dialog'
# Vue.component('elm-fullscreen-dialog', ElmFullscreenDialog) # 可以指定组件名称
Vue.use(ElmFullscreenDialog) # 组件名称 `elm-fullscreen-dialog`

For more information, please refer to ElmFullscreenDialog in our documentation.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for demo with minification
npm run demo:build

# build for gh-pages with minification
npm run demo:prepublish

# build for production with minification
npm run build

# generate gh-pages
npm run deploy

LICENSE

MIT

截图

截图

基本用法

<template>
  <div class="vd-demo__block vd-demo__block-2">
    <el-button @click="value = true">open dialog</el-button>
    <elm-fullscreen-dialog
      :title="title"
      v-model="value"
      class="test-dialog"
      @visible-change="visibleChange"
    >
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
        dolore magna aliqua. Dolor sed viverra ipsum nunc aliquet bibendum enim. Arcu felis bibendum ut tristique
        et egestas quis. Elit pellentesque habitant morbi tristique senectus et. Libero enim sed faucibus turpis
        in eu. Non tellus orci ac auctor augue. Et netus et malesuada fames ac. Vitae auctor eu augue ut.
        Sollicitudin aliquam ultrices sagittis orci a scelerisque purus semper. Faucibus in ornare quam viverra
        orci. Mi in nulla posuere sollicitudin aliquam.</p>
      <p>Ornare suspendisse sed nisi lacus sed viverra. Proin libero nunc consequat interdum. Laoreet id donec
        ultrices tincidunt arcu non sodales. Quisque non tellus orci ac. Fusce id velit ut tortor pretium viverra
        suspendisse potenti. Iaculis nunc sed augue lacus viverra. Hac habitasse platea dictumst vestibulum. Metus
        dictum at tempor commodo ullamcorper a lacus vestibulum sed. Id consectetur purus ut faucibus pulvinar
        elementum integer enim. Felis eget nunc lobortis mattis aliquam. Odio facilisis mauris sit amet massa
        vitae tortor condimentum.</p>
      <p>
        Malesuada proin libero nunc consequat interdum varius. Est ullamcorper eget nulla facilisi etiam dignissim
        diam quis enim. Ultricies integer quis auctor elit sed. Sit amet nulla facilisi morbi tempus iaculis urna
        id volutpat. Placerat in egestas erat imperdiet sed euismod nisi porta. Odio facilisis mauris sit amet
        massa vitae tortor condimentum. Sed risus ultricies tristique nulla aliquet enim tortor at. Consequat
        mauris nunc congue nisi vitae suscipit tellus mauris. Diam sit amet nisl suscipit adipiscing bibendum est
        ultricies. Mauris pharetra et ultrices neque ornare aenean euismod elementum.
      </p>
      <p>
        Imperdiet massa tincidunt nunc pulvinar sapien et ligula ullamcorper malesuada. Lorem mollis aliquam ut
        porttitor leo. Enim sit amet venenatis urna cursus. Amet luctus venenatis lectus magna fringilla urna. Mi
        ipsum faucibus vitae aliquet nec ullamcorper. Hac habitasse platea dictumst quisque sagittis purus. Turpis
        massa sed elementum tempus. Augue interdum velit euismod in pellentesque. Tellus integer feugiat
        scelerisque varius morbi enim. Id volutpat lacus laoreet non curabitur gravida arcu ac tortor. Enim diam
        vulputate ut pharetra. Et pharetra pharetra massa massa ultricies mi quis hendrerit. Sit amet nulla
        facilisi morbi. Sed vulputate mi sit amet mauris. Eu scelerisque felis imperdiet proin fermentum leo vel.
        In mollis nunc sed id semper risus in. Vulputate mi sit amet mauris commodo. Vitae et leo duis ut diam
        quam nulla. Eleifend donec pretium vulputate sapien.
      </p>
      <p>
        Sed cras ornare arcu dui vivamus. Duis convallis convallis tellus id. Eget est lorem ipsum dolor sit amet
        consectetur. Urna nunc id cursus metus aliquam eleifend mi in nulla. Consectetur adipiscing elit
        pellentesque habitant morbi tristique. Mi sit amet mauris commodo quis. Tellus orci ac auctor augue mauris
        augue neque. Integer feugiat scelerisque varius morbi enim nunc faucibus a. Consequat id porta nibh
        venenatis cras sed. Varius vel pharetra vel turpis nunc eget. Ultrices in iaculis nunc sed. Mi eget mauris
        pharetra et. Risus nec feugiat in fermentum posuere urna nec tincidunt praesent. Sit amet porttitor eget
        dolor morbi.
      </p>
      <template slot="footer">
        <el-button @click="value = false">close</el-button>
      </template>
    </elm-fullscreen-dialog>
  </div>
</template>
<script>

<script>
  export default {
    data () {
      return {
        title: 'FullScreenModal',
        value: false
      }
    },
    methods: {
      close() {
        console.log('before-close');
      },
      visibleChange(v) {
        console.log('change', v);
      }
    }
  }
</script>

ElmFullscreenDialog props

除下面列举的属性外,其余属性同 el-dialog props一致 | 参数 | 说明 | 类型 | 可选值 | 默认值 | |----------|---------|---------|-----------|-----------| | value | 是否显示 Dialog,支持 .sync 修饰符 | Boolean | - | - |

ElmFullscreenDialog events

除添加下面列举的事件外,同 el-dialog events一致 | 事件名称 | 说明 | 回调参数 | |----------|---------|---------| | visible-change | Dialog打开和关闭时的回调 | visible |

ElmFullscreenDialog slot

| 名称 | 说明 | |----------|---------| | - | Dialog 内容 | | title | Dialog 头部内容,默认使用PageHeader显示title | | footer | Dialog 按钮操作区的内容 |