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

vi-dialog

v0.0.6

Published

微信小程序组件dialog

Downloads

2

Readme

vi-dialog

使用

npm i vi-dialog 使用微信开发者工具构建NPM并使用NPM模块

{
  "usingComponents": {
    "vi-dialog": "vi-dialog"
  }
}

属性

| 接口 | 数据类型 | 说明 | 选项 | 默认值 | | :--: | :--: | :--: | :--: | :--: | | ishide | Boolean | 控制组件dialog显示隐藏 | 必填 | false | | title | String | dialog组件title | 选填 | 提示 | | input | Boolean | 是否开启输入会话窗,默认不开启 | 选填 | false | | confirm | Boolean | 确认会话窗 | 选填 | false | | alert | Boolean | 警告会话窗 | 选填 | false | | custom | Boolean | 自定义会话窗按钮 | 选填 | false | | placeholder | String | input标签的placeholder属性要和组件的input接口配合使用 | 选填 | 请输入内容 | | value | String | input标签的value属性要和组件的input接口配合使用 | 选填 | '' | | inputType | String | input标签的type属性要和组件的input接口配合使用 | 选填 | 文本输入框(text) | | maxlength | Number | input标签的maxlength属性要和组件的input接口配合使用 | 选填 | 140 | | disabled | Boolean | input标签的disable属性要和组件的input接口配合使用 | 选填 | false | | confirmType | String | 小程序input组件的confirmType属性要和组件的input接口配合使用 | 选填 | done | | password | Boolean | input组件的password属性要和组件的input接口配合使用 | 选填 | false |

event

| event name | description | 返回值数据类型 | 返回值说明 | | :--: | :--: | :--: | :--: | | triggerToCancel | 取消按钮的事件 | String | 按钮的标识:'cancel' | | triggerToConfirm | 确认按钮的事件 | String, Object | 数据类型为String时是按钮的标识:'confirm',数据类型为Object时,是输入会话窗的event.detail值 | | triggerToInput | input的输入事件 | Object | 返回用户输入的值 | | triggerToFocus | input的聚焦事件 | Object | event.detail | | triggerToBlur | input的失焦事件 | Object | event.detail |

slot

| slot name | description | | :--: | :--: | | default | 默认插槽,会话窗的提示内容 | | customButton | 自定义按钮的插槽,注意需要和组件的custom接口配合使用 |

Bug&&Tips

  • 该组件的default形式与confirm形式是一样的

版本信息

  • v0.0.1 第一个版本
  • v0.0.6 修改组件层级、更新文档