Skip to content

zhangweipu/mytest

Repository files navigation

mytest

aaaa

question one :router的使用,import的使用会很多
two

## Build Setup
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.


Special thanks to the generous sponsorship by:

A Vue.js 2.0 UI Toolkit for Web.

Links

Install

npm install element-ui -S

Quick Start

import Vue from 'vue'
import Element from 'element-ui'

Vue.use(Element)

// or
import {
  Select,
  Button
  // ...
} from 'element-ui'

Vue.component(Select.name, Select)
Vue.component(Button.name, Button)

For more information, please refer to Quick Start in our documentation.

Browser Support

Modern browsers and Internet Explorer 10+.

Development

Skip this part if you just want to use Element.

For those who are interested in contributing to Element, please refer to our contributing guide (中文 | English | Español) to see how to run this project.

Changelog

Detailed changes for each release are documented in the release notes.

FAQ

We have collected some frequently asked questions. Before reporting an issue, please search if the FAQ has the answer to your problem.

Contribution

Please make sure to read the contributing guide (中文 | English | Español) before making a pull request.

Special Thanks

English documentation is brought to you by SwiftGG Translation Team:

Spanish documentation is made possible by these community developers:

Donation

If you find Element useful, you can buy us a cup of coffee

donation

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

##node开发环境

这句在运行时候如果不对会有提示 npm config set scripts-prepend-node-path true

LICENSE

MIT 1、安装最新的nodejs,官网下载最新的nodejs安装 2、安装npm(注:windows安装包里自带npm,此步省略) 3、配置代理(非代理环境此步省略) 配置环境变更:npm_config_proxy=http://server:port 或命令行配置:npm --proxy http://server:port 4、安装cnpm(淘宝的npm镜像,国外npm库下载速度慢) npm install -g cnpm --registry=https://registry.npm.taobao.org 5、全局安装webpack cnpm install webpack -g 6、安装安装vue脚手架 cnpm install vue-cli -g

7、在硬盘上找一个文件夹放工程用的,在终端中进入该目录 cd 目录路径 8、根据模板创建项目 vue init webpack-simple 工程名字<工程名字不能用中文> 9、进入工程目录,安装包依赖 cnpm install 10、启动项目 npm run dev

更新插件 1、更新npm:npm update -g 2、更新vue-cli:npm update vue-cli 3、查看版本:npm view vue-cli