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 🙏

© 2026 – Pkg Stats / Ryan Hefner

dlrmessage

v0.0.6

Published

> 弹窗,分alert、confirm 类型: <br> <span style="color:red">备注:</span> 使用控件前请确认是否满足业务需求,如有合理的个性化需求,控件会考虑后期整理迭代 <br> <span style="color:blue">体积:</span> 37K -------------

Readme

Message

弹窗,分alert、confirm 类型: 备注: 使用控件前请确认是否满足业务需求,如有合理的个性化需求,控件会考虑后期整理迭代 体积: 37K


git 地址:

https://git.corpautohome.com/gp_rd_fe_dealer/Dealer_Components/commits/toast

cdn 地址:

<script src="https://s.autoimg.cn/dealer/m/dealerUI/dlrvue/vue/vue.min.js"></script>
<script src="https://s.autoimg.cn/dealer/m/dealerUI/dlrvue/message/message.min.0.0.1.js"></script>

demo 页

http://10.168.66.123:9090/out/dealerUI/demo/components/toast/#/message

node 环境引入

1:安装 
  npm install dlsmessage (如指定版本号:npm install [email protected])

2:引入并注册
  import Vue from 'vue'
  import dlrMessage from 'dlrmessage'
  Vue.use(dlrMessage)

例子

代码示例

<template>
  <section class="wrap">
    <ul>
        <li>
          <Button class="btn" type="primary" @click="msgAlert1()">alert 简单模式 </Button>
        </li>
        <li>
          <Button class="btn" type="primary" @click="msgAlert2()">alert 对象模式 </Button>
        </li>
        <li>
          <Button  class="btn" type="primary" @click="msgConfirm1()">confirm 简单模式</Button>
        </li>
        <li>
          <Button  class="btn" type="primary" @click="msgConfirm2()">confirm 对象模式</Button>
        </li>
      </ul>
  </section>
</template>
<script>
export default {
  name: 'messageDemo',
  methods: {
    msgAlert1 () {
      this.$dlrMessage.alert('这是一条提示信息1')
    },
    msgAlert2 () {
      const okInfo = {
        message: '这是一条提示信2',
        okBtn: {
          text: 'ok了',
          handler: function () {
            console.log('ok handler')
          }
        }
      }
      this.$dlrMessage.alert(okInfo)
    },
    // 确认框
    msgConfirm1 () {
      this.$dlrMessage.confirm('确定要刷新?')
    },
    msgConfirm2 () {
      const config = {
        message: '确定刷新?',
        okBtn: {
          text: '确定',
          handler: function () {
            console.log('confirm ok')
          }
        },
        cancelBtn: {
          text: '取消',
          handler: function (params) {
            console.log('confirm cancel')
          }
        }
      }
      this.$dlrMessage.confirm(config)
    }
  }
}
</script>
<style lang="scss">
  .wrap {
    ul {
      list-style: none;
      li {
        margin: 8px;
      }
    }
  }
</style>

API

| 参数 | 说明 | 类型 | 可选值 | 默认值 | |------|-------|---------|-------|--------| | | | | | |

data 配置 参数

| 参数 | 说明 | 类型 | 可选值 | 默认值 | |------|-------|---------|-------|--------| | | | | | |