GithubHelp home page GithubHelp logo

teng2015 / demo-vue-sign Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qfy081/demo-vue-sign

0.0 1.0 0.0 112 KB

用vue组件化做个简单的注册登陆SPA页面示例

Home Page: http://demo-vue-sign.dingyiming.cn

HTML 17.26% Vue 16.19% JavaScript 66.56%

demo-vue-sign's Introduction

vuejs-start

vue2 从头再来

vue2文档

  • 官方RC文档

http://rc.vuejs.org

  • 中文文档

http://vuefe.cn (逐步更新...)

vue2 启航注意点

https://github.com/dingyiming/vuejs-start/issues/10

webpack2

涉及技术栈

  • vue2
  • webpack2 && tree shaking
  • axios
  • vue-router@next
  • vuex@next
  • normalize.css
  • ssr
  • stream render
  • express

vue2起手式

逐步搭建vue2全家桶 // 先逐步进展,较完善后进行详细解说

vue2 && vue-router@next

  • npm i vue-cli -g
  • vue init webpack-simple-2.0 vuejs-start
  • cd vuejs-start && npm install
  • npm run dev (http://localhost:8080)
  • npm i vue-router@next

做个简单的注册登录页面

https://github.com/dingyiming/demo-vue-sign/tree/vue2.x http://demo-vue-sign.dingyiming.cn/

  • 目标界面
  • 拆分组件
  • 做点纯组件
  • 赋予组件不同样式的能力
  • 尝试两套样式
  • 可以切换主题啦
  • 简单完结小示例 -> 仓库链接
  • 深化,直接写样式,点击生成,完成样式(待考虑)

规范

  • ESLint Airbnb ES6 base

  • 尽量写上注释

Vue 生命周期

demo-vue-sign's People

Contributors

dingyiming avatar

Watchers

 avatar

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.