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

jie-element-plugs

v1.0.6

Published

- 示例

Downloads

185

Readme

使用说明

  • 示例
<template>
    <div class="layout">
        <!-- 进度条 -->
        <m-process :percentage="88" isAnimate />
        <!-- 省市区 -->
        <s-s-q @getOptions="handleOptions" />
        <!-- 消息通知 -->
        <m-notification>
            <template #default>
                <m-list :list="list" :actions="actions" />
            </template>
        </m-notification>
        <!-- form表格 -->
        <m-form :options="options"
            @on-change="handleChange"
            @on-error="handleError"
            @before-upload="handleBeforeUpdate"
            @on-preview="handlePreview"
            @on-remove="handleRemove"
            @before-remove="BeforeRemove"
            @on-success="handleSuccess"
            @on-exceed="handleExceed"
            @on-progress="handleProgress">
            <template #uploadArea="scope">
                <button>文件上传</button>
            </template>
            <template #uploadTip="scope">
                <span>文件不能太大ooo</span>
            </template>
        </m-form>
        <!-- 表格 -->
        <m-table :tableData="tableData" :options="tableOptions">
            <template #action="scope">
                <el-button size="small" @click="edit(scope)">编辑</el-button>
                <el-button size="small" @click="edit(scope)" type="danger">删除</el-button>
            </template>
        </m-table>
    </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { list, actions } from './data.ts'
import { FormOptions } from '@/components/form/src/types/types.ts'
import { ITableOptions } from '../../components/table/src/types'
const collapse = ref<boolean>(false)

export interface IContent {
    title?: string
    time?: string
    avatar?: string
    desc?: string
    tag?: string
    tagType?: "" | "success" | "info" | "warning" | "danger"
}
export interface IList {
    title: string
    content: IContent[]
}
export interface IActions {
    text: string
    icon: string
}

const options: FormOptions[] = [
    {
        type: 'input',
        value: '',
        placeholder: '请输入',
        label: 'name',
        prop: 'name'
    },
    {
        type: 'select',
        value: '',
        placeholder: '请选择',
        label: 'sex',
        prop: 'sex',

        children: [
            {
                type: 'option',
                label: 'man',
                value: 'man'
            },
            {
                type: 'option',
                label: 'woman',
                value: 'woman'
            },
        ]
    },
    {
        type: 'editor',
        value: '',
        label: '编辑器',
        placeholder: '请输入编辑内容',
        prop: 'desc'
    },
    {
        type: 'upload',
        value: '',
        label: '文件上传',
    }
]


const tableData = [
    {
        name: 'Jerry',
        date: '2008-09',
        address: 'chian'
    },
    {
        name: 'Jerry',
        date: '2008-09',
        address: 'chian'
    },
]

const tableOptions: ITableOptions[] = [
    {
        prop: 'name',
        label: '名字',
    },
    {
        prop: 'date',
        label: '日期',
    },
    {
        prop: 'address',
        label: '地址',
    },
    {
        prop: 'action',
        label: '操作',
        width: '300',
        align: 'center',
        action: true
    },
]

const edit = (scope) => {
    console.log(scope);

}

const handleChange = (file: any) => {
    console.log('handleChange', file);
}

const handleError = (file: any) => {
    console.log('handleError', file);
}

const handleBeforeUpdate = (file: any) => {
    console.log('handleBeforeUpdate', file);
}
const handlePreview = (file: any) => {
    console.log('handlePreview', file);
}
const handleRemove = (file: any) => {
    console.log('handleRemove', file);
}
const BeforeRemove = (file: any) => {
    console.log('BeforeRemove', file);
}
const handleSuccess = (file: any) => {
    console.log('handleSuccess', file);
}
const handleExceed = (file: any) => {
    console.log('handleExceed', file);
}
const handleProgress = (file: any) => {
    console.log('handleProgress', file);
}
const handleOptions = (val) => {
    console.log(val);
}
</script>

<style scoped lang="scss">
.layout {
    width: 100vw;
    height: 100vh;

    .el-container {
        width: 100%;
        height: 100%;
    }
}
</style>