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

mone-editable

v0.2.1

Published

基于vue的可编辑表格插件

Downloads

2

Readme

mone-editable

基于 vue 的可编辑表格插件 效果展示

特性

mone-editable支持的表单类型有:

  • KCheckBox 单选框,类似于 input type="radio"
  • KNumber 数字框,类似于 input type="number"
  • KSelect 下拉框,类似于 select
  • KQuery 搜索框,自定义表单类型,常用于异步关联查询
  • KText 文本框,类似于 input type="text"

简约的样式风格

使用

安装组件

npm i mone-editable -S

引入和使用

index.js

import Vue from 'vue';
import App from './App';

// 全局引入
import 'mone-editable/dist/mone-editable.css';
import me from 'mone-editable';
Vue.use(me);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: h => h(App)
});

App.vue

<template>
  <div class="app">
    <h3 class="text-center">mone-editable</h3>
    <!-- 可编辑表格 -->
    <k-editable :config="config"
      :data-list="rows"
      @add-row="addNewRow"
      @del-row="delRow"></k-editable>

  </div>
</template>
...

通过config参数配置整个 editable 的主结构, 通过data-list参数展示列表数据,数据的编辑改动直接影响到该引用参数

目录

  • assets 文档以及项目相关资源
  • example 示例程序开发目录
  • lib 压缩打包后的正式文件
  • src 插件源码

开发

# 安装依赖
npm install

# 查看项目 http://localhost:8080
npm run dev

开发时会启动example目录的示例程序

构建

# 构建正式文件到 lib 目录
npm run build

# 查看webpack构建分析
npm run build --report

贡献人员

jczzq