Giter Club home page Giter Club logo

vue-tcbj's Introduction

快速上手

本文将介绍如果在项目中使用 vue-tcbj。

新建你的项目

可以直接参考vue的webpack模板构建方法。本文不再赘述

use the webpack-simple template

安装

使用 npm 的方式安装

npm install vue-tcbj --save

引入

在 main.js 中写入以下内容:

import Vue from 'vue'
import App from './App'
import t from 'vue-tcbj'
import tConfig from '../tConfig.js'

Vue.use(t, tConfig);

new Vue({
    el: '#app',
    render: h => h(App)
});

以上代码便完成了vue-tcbj的引入。接下来只需要对它进行一下配置,马上就能开始运行了

配置

在项目根目录创建 tConfig.js文件

!> 推荐使用tConfig命名文件,当然你也可以改为其他名字。

!> 路径不一定是根目录,只要你能成功在main.js里import进来就可以。

请复制配置至js文件内

开始使用

至此,一个基于 Vue 和 vue-tcbj 的开发环境已经搭建完毕,现在就可以编写代码了。启动开发模式:

npm run dev

vue-tcbj's People

Stargazers

 avatar  avatar Daniel Huo avatar  avatar

Watchers

James Cloos avatar Daniel Huo avatar

Forkers

navcat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.