Code Monkey home page Code Monkey logo

eleme's Issues

install完run dev时报错,把src目录加入eslintignore才可以,是不是版本问题?

E:\data2\eleme>cnpm install
| Installing es6-symbol@~3.1platform unsupported [email protected][email protected][email protected][email protected] Pac
kage require os(darwin) not compatible with your platform(win32)
[fsevents@^1.0.0] optional install error: Package require os(darwin) not compatible with your platform(win32)
peerDependencies WARNING [email protected] requires a peer of eslint-plugin-promise@>=3.3.0 but eslint-plugin
[email protected] was installed
√ All packages installed (608 packages installed from npm registry, use 32s, speed 128.62kB/s, json 765(3.96MB), tarbal
l 0B)
Recently updated (since 2016-12-29): 15 packages (detail see file node_modules/.recently_updates.txt)
Today:
[email protected][email protected][email protected] (02:12:10)
[email protected][email protected][email protected][email protected] (06:25:53)

E:\data2\eleme>cnpm run dev

[email protected] dev E:\data2\eleme
node build/dev-server.js

Listening at http://localhost:8080

webpack: wait until bundle finished: /index.html
webpack built dbf20fe8c9302bfe7604 in 9428ms
Hash: dbf20fe8c9302bfe7604
Version: webpack 1.14.0
Time: 9428ms
Asset Size Chunks Chunk Names
app.js 2.29 MB 0 app

ERROR in ./src/App.vue

http://eslint.org/docs/rules/space-before-function-paren Missing space before function parentheses
E:\data2\eleme\src\App.vue:39:9
data() {
^

http://eslint.org/docs/rules/space-before-function-paren Missing space before function parentheses
E:\data2\eleme\src\App.vue:49:12
created() {
^

✘ 2 problems (2 errors, 0 warnings)

小bug

点击加减商品时,连续点击会出现商品价钱为负数的现象,希望作者尽快调整

hi,想向你请教一个问题,header组件已经注册了,但还是用不了,可以帮忙解决一下吗?

这是浏览器的报错信息:
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
(found in component at C:\Users\zou\sell\src\App.vue)

这是App.vue文件的代码:

<template>
  <div id="app">
  <v-header></v-header>
  <div class="tab">
  I am tab
  </div>
  <div class="content">
  I am content
  </div>
  </div>
</template>

<script type="text/ecmascript-6">
import header from './components/header/header.vue';
export default{
components: {
      'vheader': header
    }
};
</script>

<style lang="stylus" rel="stylesheet/stylus">
</style>  

这是header.vue代码:

<template>
<div class="header">
我是header
</div>
  </template>

  <script text="text/ecmascript-6">
  export default{};
  </script>

  <style lang="stylus" rel="stylesheet/stylus">

  </style> 

有个关于vue-router的问题想请教一下

就是我在使用了vue-router之后,页面上挂载不出来我的app这个组件
这是我的app.vue页面
`

商品
评论
商家
`

这是main.js
`import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App';
import goods from './components/goods/goods';

Vue.use(VueRouter);

let routes = [
{path:'/goods',component: goods}
]

let router = new VueRouter({
routes
})

let app = new Vue({
router
}).$mount('#app')

`

这是index.html
`

<title>sell</title>
`

麻烦告知一下要怎么弄才能挂载上去

请教

好奇的问一下,是怎么拿到素材的?尤其是生成的标注图

header组件里面的弹框滚动穿透你是怎么处理的?

header组件点击商家,弹出商家弹框,我自己试着实现这个功能,但是发现弹框弹出后,滚动时背景跟着滚动,也就是滚动穿透,单我看你的代码,没有找到相关处理逻辑,你是怎么实现的?

项目生成问题

这个项目bulid之后,生成静态文件,您放在liangxiaojuan.github.io仓库里面,可是为什么可以打开网址预览呢,这个项目不是有后台才能打开吗,github pages只能打开静态文件呀。
我想知道您是什么弄的

scroll

为什么不能向下拉,下面的内容看不到啊

npm install 后,npm run dev出错

D:\git\eleme\eleme-master\node_modules\semver\semver.js:293
throw new TypeError('Invalid Version: ' + version);
^

TypeError: Invalid Version: D:\git\eleme\eleme-master>doskey ll=dir $*
3.10.10
at new SemVer (D:\git\eleme\eleme-master\node_modules\semver\semver.js:293:11)
at Range.test (D:\git\eleme\eleme-master\node_modules\semver\semver.js:1036:15)

求教

你好,我在研究你写的高仿饿了么vue项目,有一个问题搞不懂,就是在cartControl.vue中,你用了props接受food这个对象,后点击给这个对象加上count属性,怎么让页面时时更新,同时也改变父组件的这个food值。我照着你写的都不行。你能帮我解决吗

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.