1.0.4 • Published 1 year ago
origami-vue v1.0.4
快速上手
使用 tsl-cli
我们开发了前端统一脚手架tsl-cli,脚手架通过对@vue/cli-service的定制和扩展,支持直接运行vue的所有工程。
脚手架除了可支持业务项目开发,还支持组件库项目的开发、轻应用组件的开发。其它更多支持可通过tsl-cli -h命令查看。
引入 origami-vue
1. 安装脚手架工具 tsl-cli
$ npm install -g tsl-cli
# or
$ yarn global add tsl-cli2. 创建项目
$ tsl-cli init <projectName>根据提示拉取合适的模板项目
3. 使用组件
检查项目中 package.json 是否已经安装了 origami-vue 组件库,如果没有则安装组件库。
$ npm i origami-vue --save- 引入
import Vue from "vue";
import { Table } from "origami-vue";
import App from "./App";
Vue.config.productionTip = false;
Vue.component(Table);
Vue.component(Table.Input);
/* eslint-disable no-new */
new Vue({
el: "#app",
components: { App },
template: "<App/>"
});4. 按需加载
1.0.4
1 year ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.1.37
2 years ago
0.1.35
3 years ago
0.1.36
3 years ago
0.1.32
3 years ago
0.1.33
3 years ago
0.1.34
3 years ago
0.1.30
3 years ago
0.1.31
3 years ago
0.1.28
3 years ago
0.1.29
3 years ago
0.1.27
3 years ago
0.1.22
3 years ago
0.1.23
3 years ago
0.1.24
3 years ago
0.1.25
3 years ago
0.1.26
3 years ago
0.1.20
3 years ago
0.1.21
3 years ago
0.1.12
4 years ago
0.1.13
4 years ago
0.1.14
4 years ago
0.1.15
4 years ago
0.1.16
4 years ago
0.1.17
4 years ago
0.1.18
3 years ago
0.1.19
3 years ago
0.1.11
4 years ago
0.1.10
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago