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--iview-tree-table

v1.0.3

Published

tree-grid 基于vue和iview组件库的树型表格 主要使用了 iview(checkbox组件,icon组件,button组件) 同时部分表格渲染模仿iview表格 支持iview

Downloads

3

Readme

tree-grid 基于vue和iview组件库的树型表格 主要使用了 iview(checkbox组件,icon组件,button组件) 同时部分表格渲染模仿iview表格 支持iview

DEMO 如果对您如果有帮助的话,给颗星谢谢 版本支持 VUE1.0/2.0 使用时请下载对应iview

自适应功能新增

  1. width 字段增加
  2. td总和大于容器宽宽度 出现滚动条 否则表格自适应 需要使用者下载组件后 修改源码中 document.body.clientWidth 修改为 document.getElementsByClassName('你的容器')[0].clientWidth 新增默认选中
  3. _checked字段增加
  4. 给data项设置特殊 key _checked: true 2.0 多选框样式错乱,默认选中问题
  5. 修改为元素checkbox 样式大概调整
  6. 如果样式不好看 可以自行修改或者使用其他组件ui checkbox API props 属性 说明 类型 items 显示的结构化数据 Array columns 表格列的配置描述 Array columns 属性 说明 类型 默认值 title 列头显示文字 String # key 对应列内容的字段名 String # width 列宽名 Number # sortable 排序功能 Boolean false type 'selection':多选功能 String # type 'action' 操作功能, 必填参数:actions:[{}] String # events 事件名 说明 返回值 @on-row-click 单击行或者单击操作按钮方法 data,$event,index @on-selection-change 返回选中数组 arr @on-sort-change 表格列的配置描述 key和排序规则(值为 asc 或 desc) 使用方式

main.js 引入 import iView from 'iview'; import 'iview/dist/styles/iview.css'; Vue.use(iView);

treeGird 放入工程项目 例如 components/treeGird