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

vue-table-plugins

v1.0.3

Published

<!-- * @Descripttion: your project * @version: 1.0 * @Author: 冷水泡茶 * @Date: 2023-11-02 10:37:07 * @LastEditors: 冷水泡茶 * @LastEditTime: 2023-11-02 17:35:19 --> # 这是vue3+ts+elementPlus封装的表格组件,他满足普通表格、普通表格的动态表头。表头嵌套(目前满足三级嵌套)

Downloads

8

Readme

描述

  这是vue3+ts+elementPlus封装的表格组件,他满足普通表格、普通表格的动态表头。表头嵌套(目前满足三级嵌套)

使用yarn或者npm下载插件

   yarn add vue-table-plugins

   npm install vue-table-plugins -D

表格的使用

传值

defaultProps: {}; 绑定标签label的字段和多级表头时下级表头数组字段
tableHeader: [];表头
tableData:[];表格内容
toDoName?: string; 操作部分的显示文字
isSlot?: boolean; 是否显示操作

全局这侧

在 main.ts 里面引入插件并全局注册,组件中使用如下。

import vueTablePlugins from 'vue-table-plugins'

app.use(vueTablePlugins)

组件中使用


 const defaultProps={
  children:"lib",
    label:"label"
 }
 
 <t-table :tableHeader="tableHeader" :tableData="tableData" :isSlot="true" :defaultProps="defaultProps" >
    <template #toDo = "scope">
      <el-button size="small" @click="handleEdit(scope.scope)"
          >Edit</el-button
        >
        <el-button
          size="small"
          type="danger"
          @click="handleDelete(scope.scope)"
          >Delete</el-button
        >
    </template>
</t-table>