Vue中的可自定义表格组件

(prot-table)

A customizable table component in vue. Intended to be used as a web-component or as a component in vue projects.

vue中的可定制表组件。 旨在用作Web组件或vue项目中的组件。

安装 (Installation)

从NPM安装 (Install from NPM)

Run:

跑:

npm install prot-table

从源构建 (Build from Source)

Install dependencies:

安装依赖项:

npm install

npm install

Build as Web-Component:

作为Web组件构建:

vue-cli-service build --mode production --dest dist/web-component --target wc --name prot-table && cp public/demo.html dist/index.html && cp public/data.json dist/data.json

用法 (Usage)

用作Web组件(暂时无法使用) (Use as Web-Component (Not working right now))

Include Vue and the Component:

包括Vue和组件:

import Vue from 'vue';
import protTable from 'prot-table';

OR

要么

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>
<script src="prot-table"></script>

用作Vue组件 (Use as a Vue Component)

Import it from prot-table and it gets registered as a Vue component for further use.

prot-table导入它,并将其注册为Vue组件以供进一步使用。

import ProtTable from 'prot-table'

Use the <prot-table></prot-table> tag with appropriate attributes:

<prot-table></prot-table>标记与适当的属性一起使用:


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值