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-card

v1.0.0-beta.8

Published

LamboCard 是一个卡片组件,主要用于配合LamboListPage,实现卡片列表页面。卡片包含标题,副标题,标记,标签,明细键值展示列表,及底部操作按钮元素,除标题外,其他元素不是必须的。

Downloads

177

Readme

LamboCard 卡片

介绍

LamboCard 是一个卡片组件,主要用于配合LamboListPage,实现卡片列表页面。卡片包含标题,副标题,标记,标签,明细键值展示列表,及底部操作按钮元素,除标题外,其他元素不是必须的。

引入

import Vue from 'vue';
import LamboCard from '@lambo-design-mobile/lambo-card';

Vue.use(LamboCard);

代码演示

示例

<LamboListPage :searchForm="searchForm" :params="params" :showFilter="true" :url="'/ibp-upms-server/manage/demoUser/list'" :useBatch="true"
        listTitle="用户列表" placeholder="请输入用户关键字" :autoSearch="true" >
        <template #filter>
            <van-field
                v-model="searchForm.userId"
                label="用户帐号"
                placeholder="请输入用户帐号"
                :rules="[{ required: true}]"
            />
            <van-field
                v-model="searchForm.userName" 
                label="用户名称"
                placeholder="请输入用户名称"
                :rules="[{ required: false, }]"
            />
        </template>
            
        <template #row="{ item, isBatching, reload }">
            <LamboCard :title="item.userName" :subTitle="item.userId" :mark="item.status" :tag="tag"  :detail='[
                {"label":"编码编码","value":item.organId},
                {"label":"帐号状态","value":item.status},
                {"label":"用户邮箱","value":item.userEmail},
                {"label":"手机号码","value":item.userPhone},
                {"label":"性别","value":item.userSex}
                ]'>
                <van-button v-if="!isBatching" plain color="#0e78ff" size="small" style="margin-left: 10px;border-radius: 5px;padding:0 10px" @click="delItem(item,reload)">删除</van-button>
            </LamboCard>
        </template>
       <template #batch="{ itemCheckList ,reload }">
            <van-button icon="passed"  plain color="#0e78ff" size="small" style="margin-left: 10px;" @click="auditItem(itemCheckList,reload)">启用</van-button>
            <van-button icon="warning-o" plain color="#0e78ff" size="small" style="margin-left: 10px;" @click="denyItem(itemCheckList,reload)">禁用</van-button>
       </template>
         
    </LamboListPage>
    import { Toast } from 'vant';
    import LamboListPage from '@lambo-design-mobile/lambo-list-page';
    import LamboCard from '../src/card.vue';

    export default {
        components:{
            LamboListPage,
            LamboCard
        },
        data(){
            return {
                params: { paraSearch: '' },
                searchForm:{
                    "userId": "",
                    "userName": "",
                },
                tag:["标签一","标签二"],
            }
        },
        methods:{
            delItem(itemCheckList,reload){
                console.log('stopItem',itemCheckList);
                Toast.success('删除成功');
                reload();
            },
            auditItem(itemCheckList,reload){
                console.log('stopItem',itemCheckList);
                Toast.success('批量审核成功');
                reload();
            },
            denyItem(itemCheckList,reload){
                console.log('stopItem',itemCheckList);
                Toast.success('批量驳回成功');
                reload();
            },
        }
    }

API

Props

| 参数 | 说明 | 类型 | 默认值 | 版本 | |------|------|------|------|------| | title | 标题 | string | | - | | mark | 标题行右侧文字 | string | - | | | subTitle | 副标题 | string | - | | | tag | 标签 | array | - | | | detail | 对象属性明细列表 | array | - | | | leftWidth | 左侧列宽,取值范围1-24 | number | 12 | |

Slots

| 名称 | 说明 | |------|-----------------------------| | default | 用于渲染卡片底部按钮行|