{"id":28092366,"url":"https://github.com/jczzq/mone-editable","last_synced_at":"2025-05-13T13:09:49.600Z","repository":{"id":57301419,"uuid":"100221314","full_name":"jczzq/mone-editable","owner":"jczzq","description":"基于vue的可编辑表格插件","archived":false,"fork":false,"pushed_at":"2023-01-19T03:47:32.000Z","size":1349,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T06:47:42.402Z","etag":null,"topics":["editable","javascript","vue","vue-editable"],"latest_commit_sha":null,"homepage":"https://jczzq.github.io/mone-editable/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jczzq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-14T02:44:20.000Z","updated_at":"2024-04-20T06:25:16.000Z","dependencies_parsed_at":"2023-02-10T20:15:22.375Z","dependency_job_id":null,"html_url":"https://github.com/jczzq/mone-editable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jczzq%2Fmone-editable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jczzq%2Fmone-editable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jczzq%2Fmone-editable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jczzq%2Fmone-editable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jczzq","download_url":"https://codeload.github.com/jczzq/mone-editable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948417,"owners_count":21988957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["editable","javascript","vue","vue-editable"],"created_at":"2025-05-13T13:06:14.665Z","updated_at":"2025-05-13T13:09:49.567Z","avatar_url":"https://github.com/jczzq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mone-editable\n\n基于 vue 的可编辑表格插件\n![效果展示](assets/show.png)\n\n## 特性\n#### 可编辑的单元格包括\n  - `KCheckBox` 单选框，类似于 input type=\"radio\"\n  - `KNumber` 数字框，类似于 input type=\"number\"\n  - `KSelect` 下拉框，类似于 select\n  - `KQuery` 搜索框，自定义表单类型，常用于异步关联查询\n  - `KText` 文本框，类似于 input type=\"text\"\n#### 数据驱动\n根据规则可以快速配置出一个简易的Excel。\n\n#### 简约的样式风格\n\n## 使用\n\n#### 安装组件\n\n```bash\nnpm i mone-editable -S\n```\n\n#### 引入和使用\n\n[`index.js`](https://github.com/jczzq/mone-editable/blob/master/example/index.js)\n\n```\nimport Vue from 'vue';\nimport App from './App';\n\n// 全局引入\nimport 'mone-editable/dist/mone-editable.css';\nimport me from 'mone-editable';\nVue.use(me);\n\n/* eslint-disable no-new */\nnew Vue({\n  el: '#app',\n  render: h =\u003e h(App)\n});\n```\n\n[`App.vue`](https://github.com/jczzq/mone-editable/blob/master/example/App.vue)\n\n```\n\u003ctemplate\u003e\n  \u003cdiv class=\"app\"\u003e\n    \u003ch3 class=\"text-center\"\u003emone-editable\u003c/h3\u003e\n    \u003c!-- 可编辑表格 --\u003e\n    \u003ck-editable :config=\"config\"\n      :data-list=\"rows\"\n      @add-row=\"addNewRow\"\n      @del-row=\"delRow\"\u003e\u003c/k-editable\u003e\n\n  \u003c/div\u003e\n\u003c/template\u003e\n...\n```\n\n通过`config`参数配置整个 editable 的主结构，\n通过`data-list`参数展示列表数据，数据的编辑改动直接影响到该引用参数\n\n## 目录\n\n- assets 文档以及项目相关资源\n- example 示例程序开发目录\n- lib 压缩打包后的正式文件\n- src 插件源码\n\n## 开发\n\n```bash\n# 安装依赖\nnpm install\n\n# 查看项目 http://localhost:8080\nnpm run dev\n```\n\n开发时会启动`example`目录的示例程序\n\n## 构建\n\n```bash\n# 构建正式文件到 lib 目录\nnpm run build\n\n# 查看webpack构建分析\nnpm run build --report\n```\n\n## 贡献人员\n\n[jczzq](https://github.com/jczzq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjczzq%2Fmone-editable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjczzq%2Fmone-editable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjczzq%2Fmone-editable/lists"}