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

@lambo-design-mobile/lambo-action-sheet

v1.0.0-beta.4

Published

LamboActionSheet 是一个基于vant拓展的动作面板展示组件,在van-action-sheet组件基础上集成了lambo-button-group组件,动作面板底部的按钮组更符合用户使用习惯。

Downloads

117

Readme

LamboActionSheet 动作面板

介绍

LamboActionSheet 是一个基于vant拓展的动作面板展示组件,在van-action-sheet组件基础上集成了lambo-button-group组件,动作面板底部的按钮组更符合用户使用习惯。

引入

import Vue from 'vue';
import LamboActionSheet from '@lambo-design-mobile/lambo-action-sheet';
 
Vue.use(LamboActionSheet);

代码演示

基础用法

<van-button @click="actionShow">点击这里</van-button>
<action-sheet :showAction="showAction" :actions-value-list="actionsValueList" :title="title"></action-sheet>
import {Button} from '@lambo-design-mobile/core'
export default {
    components:{
        vanButton:Button
    },
    name: "index",
    data(){
        return{
            showAction:false,
            actionsValueList:[{name:'选项一'},{name:'选项二'},{name:'选项三'}],
            title:'请选择'
        }
    },
    methods:{
        actionShow(){
            this.showAction = true
        }
    }
}

API

Props

| 参数 | 说明 | 类型 | 默认值 | 版本 | |------|------|------|------|------| | title | 弹出框顶部的标题 | String | '' | - | | showAction | 是否展示动作面板 | boolean | false | - | | buttonNameList | 动作面板底部的按钮名称组 | Array | [] | - | | buttonColorList | 动作面板底部的按钮风格组 | Array | ['info', 'primary', 'primary'] | - | | actionsValueList | 动作面板展示的列表数据 | Array | [] | - | | closeOnClickOverlay | 是否在点击遮罩层时关闭动作面板 | boolean | true | - | | isOpenFunction | 是否开启打开遮罩层的监听,开启之后通过openOverlayFunction回调 | boolean | false | - | | isOpened | 是否开启打开遮罩层且动画结束的监听,开启之后通过opened回调 | boolean | false | - | | isFixed | 动作面板底部的按钮是否沉底fixed | boolean | true | - |

actionsValueList 数据结构

| 参数 | 说明 | 类型 | 默认值 | 版本 | |------|------|------|------|------| | name | 标题 | String | '' | - | | subname | 二级标题 | String | '' | - | | color | 选项文字的颜色 | String | '' | - | | className | 为对应列添加的className | String | '' | - | | loading | 是否为加载状态 | boolean | false | - | | disabled | 是否为禁用状态 | boolean | false | - |

Events

| 事件名 | 说明 | 回调参数 | |------|------|------| | btn-click | 按钮点击参数 | index(从左到右被点击的按钮的位置:0~2) | | select-action | 点击选项时触发,禁用或加载状态下不会触发 | action: Action, index: number | | openOverlayFunction | 打开面板时触发 | - | | opened | 打开面板且动画结束后触发 | - |