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 🙏

© 2026 – Pkg Stats / Ryan Hefner

datam-components

v1.1.39

Published

A Vue.js project

Downloads

14

Readme

datam-components

泰豪大数据中台数据公共组件库

运行

npm run dev

发布

# 生成库
npm run lib
# 使用在https://www.npmjs.com上注册的用户名密码来登录
npm login // vcvt/360121
# 发布到npm仓库,每次发布需要先修改package.json中的版本号
npm publish

引入

npm install datam-components --save

组件列表及参数

说明: 所有组件提供统一的属性config对象,所有配置均在config对象中设置, 使用样例参考App.vue

  • DmButton(按钮)
{
    text: '查询', // 按钮名称
    icon: 'el-icon-search' // 按钮图标
}
  • DmTable(表格)
{
    tableData: [ // 表格数据
      {
        "index": 1,
        "dirname": "广东",
        "parentDir": "根目录",
        "updateTime": "2020-10-15 10:00:00"
      },
      {
        "index": 2,
        "dirname": "广西",
        "parentDir": "根目录",
        "updateTime": "2020-10-15 10:00:00"
      },
      {
        "index": 3,
        "dirname": "湖南",
        "parentDir": "根目录",
        "updateTime": "2020-10-15 10:00:00"
      }
    ],
    columns: [ //表头列表
      {
        prop: 'index', // 属性
        label: '序号', // 文本
        width: '50' // 宽度
      },
      {
        prop: 'dirname',
        label: '目录名称',
        width: '100'
      },
      {
        prop: 'parentDir',
        label: '上级目录',
        width: '100'
      },
      {
        prop: 'updateTime',
        label: '修改时间',
        width: ''
      }
    ],
    operations: [
      {
        'name': '编辑',
        'icon': 'el-icon-edit',
        'method': 'editColumn'
      },
      {
        'name': '添加',
        'icon': 'el-icon-plus',
        'method': 'addColumn'
      }
    ]
}
  • DmPagination(带分页的表格)
{
    tableData: [
      {
        "index": 1,
        "dirname": "广东",
        "parentDir": "根目录",
        "updateTime": "2020-10-15 10:00:00"
      },
      {
        "index": 2,
        "dirname": "广西",
        "parentDir": "根目录",
        "updateTime": "2020-10-15 10:00:00"
      },
      {
        "index": 3,
        "dirname": "湖南",
        "parentDir": "根目录",
        "updateTime": "2020-10-15 10:00:00"
      }
    ],
    columns: [
      {
        prop: 'index',
        label: '序号',
        width: '50'
      },
      {
        prop: 'dirname',
        label: '目录名称',
        width: '100'
      },
      {
        prop: 'parentDir',
        label: '上级目录',
        width: '100'
      },
      {
        prop: 'updateTime',
        label: '修改时间',
        width: ''
      }
    ],
    total: 20, // 总记录数
    page: 1, // 当前页号
    limit: 10, // 页大小
    operations: [
      {
        'name': '编辑',
        'icon': 'el-icon-edit',
        'method': 'editColumn'
      },
      {
        'name': '添加',
        'icon': 'el-icon-plus',
        'method': 'addColumn'
      }
    ]
}
  • DmTree(树)
{
    data: [{ // 数据
      label: '一级 1', // 名称
      children: [{ // 子节点
        label: '二级 1-1',
        children: [{
          label: '三级 1-1-1'
        }]
      }]
    }],
    props:  {
      children: 'children',
      label: 'label'
    },
    nodeKey: 'index', // 键
    placeholder: '请输入', // 输入框默认内容
    defaultExpandAll: true, // 是否展开所有节点
    contextMenus: [ // 右键菜单列表
      {
          "name": "新增目录", // 菜单名称
          "method": "add" // 方法名
      },
      {
          "name": "编辑目录",
          "method": "edit"
      }
    ]
}