1.0.4 • Published 12 months 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-cli
2. 创建项目
$ 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
12 months ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
2 years ago
1.0.0
2 years ago
0.1.37
2 years ago
0.1.35
2 years ago
0.1.36
2 years ago
0.1.32
2 years ago
0.1.33
2 years ago
0.1.34
2 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
3 years ago
0.1.13
3 years ago
0.1.14
3 years ago
0.1.15
3 years ago
0.1.16
3 years ago
0.1.17
3 years ago
0.1.18
3 years ago
0.1.19
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago