爱意满满的作品展示区。
coffce404

基于 vue.js 和 webpack 的 Chat 示例

  •  
  •   coffce404 ·
    Coffcer · Aug 30, 2015 · 6430 views
    This topic created in 4087 days ago, the information mentioned may be changed or developed.

    todomvc 看腻了,周末花时间做了一个基于 Vue + Webpack 构建的简单 chat 示例,聊天记录保存在 localStorge 。简单演示了 Vue 的 component 、 filter 、 directive 、 computed 以及组件间的事件通讯。

    项目地址: https://github.com/Coffcer/vue-chat

    image

    16 replies  •  2016-08-12 19:02:51 +08:00
    wsph123
    wsph123
    Aug 30, 2015
    1
    Star!
    djyde
    djyde
    Aug 30, 2015
    2
    cool 。

    问一句,为什么 components 不写成 `.vue` 文件?
    ljbha007
    ljbha007
    Aug 30, 2015
    3
    好看
    ljbha007
    ljbha007
    Aug 30, 2015
    4
    代码组织的很工整 赞一个
    ChiangDi
    ChiangDi
    Aug 30, 2015 via Android
    5
    赞, vue 确实相当优雅。
    coffce404
    coffce404
    OP
    Aug 30, 2015
    6
    @djyde 我用的 Brackets ,没法高亮 vue 文件 (─.─|||
    djyde
    djyde
    Aug 30, 2015
    7
    @coffce404 我用 Atom ,有高亮。但是写 scss style 的时候没有自动补全。

    我最近也写了一个关于 Vue.js 和 Webpack 的文章系列 http://djyde.github.io/2015/08/29/vuejs-and-webpack-1.html
    coffce404
    coffce404
    OP
    Aug 30, 2015❤️1
    8
    @djyde 原来是你,这两篇文章今天看到微博转发,已经看过了,写得很好。
    看了你博客的自我介绍, 95 年的同学,实在让人自愧不如
    wsph123
    wsph123
    Aug 31, 2015
    9
    @djyde 好棒的文章! OAQ 自愧不如!!
    djyde
    djyde
    Aug 31, 2015
    10
    @wsph123 你也才 94 !
    SuYia
    SuYia
    Aug 31, 2015
    11
    ~\(≧▽≦)/~赞一个~
    coffce404
    coffce404
    OP
    Aug 31, 2015
    12
    @wsph123 看了你发的贴,真巧。 94 年,大学专科,大二,我和你一模一样
    wsph123
    wsph123
    Aug 31, 2015
    13
    @coffce404 这个帖子找到好多小伙伴 OAQ !
    SquirrelMAN
    SquirrelMAN
    Aug 31, 2015
    14
    邓紫棋 XD !
    gaotongfei
    gaotongfei
    Sep 1, 2015 via iPad
    15
    赞一个
    zhanfenghai
    zhanfenghai
    Aug 12, 2016
    16
    您好 打包的时候遇到错误 ERROR in ./src/main.js
    Module build failed: Error: Cannot find module '../modules/web.dom.iterable'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    令人匪夷所思 希望能看下帮忙解决
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1672 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 11:30 · PVG 19:30 · LAX 03:30 · JFK 06:30
    ♥ Do have faith in what you're doing.