Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 22:22
    visualfanatic edited #9403
  • Jan 31 22:04
    visualfanatic opened #9403
  • Jan 31 18:25

    yyx990803 on regression-test

    fix: allow more enumerated valu… chore: update sponsors [ci skip… fix: fix v-bind:style for camel… and 1 more (compare)

  • Jan 31 17:29
    yyx990803 closed #9402
  • Jan 31 17:20
    devedse opened #9402
  • Jan 31 16:49
    Justineo closed #9401
  • Jan 31 16:40
    Giwayume opened #9401
  • Jan 31 15:24
    yyx990803 closed #9396
  • Jan 31 15:24

    yyx990803 on dev

    fix: fix child forceUpdate regr… (compare)

  • Jan 31 15:08
    yyx990803 closed #9382
  • Jan 31 15:08

    yyx990803 on dev

    fix: fix v-bind:style for camel… (compare)

  • Jan 31 15:08
    yyx990803 closed #9386
  • Jan 31 15:04

    yyx990803 on dev

    chore: update sponsors [ci skip… (compare)

  • Jan 31 15:04

    yyx990803 on patreon-update-1548947041032

    (compare)

  • Jan 31 15:04
    yyx990803 closed #9400
  • Jan 31 15:04

    vue-bot on patreon-update-1548947041032

    chore: update sponsors [ci skip] (compare)

  • Jan 31 15:04
    vue-bot opened #9400
  • Jan 31 14:59

    yyx990803 on patreon-update-1548924868622

    (compare)

  • Jan 31 14:58
    yyx990803 closed #9393
  • Jan 31 14:56

    yyx990803 on dev

    fix: allow more enumerated valu… (compare)

Jake Evans
@Jake-E
Hi, just wondering if there's a way to make Vue render a tag for component names, rather than just the template contents?
Neil Duffy
@skiv71
@Jake-E does that mean indirect component reference?
Joe Pea
@trusktr
Boom!
Neil Duffy
@skiv71
Shacka-lack
XiaRunxi
@XiaRunxi
typescript....When is the official version released?
Moshaojia
@Moshaojia
11
·
Element tree 三级联动点击的时候如何不获取一二级的数据,只点击获取最后一级的数据,去传到后台。
Element tree 三级联动点击的时候如何不获取一二级的数据,只点击获取最后一级的数据,去传到后台。
matrixbot
@matrixbot

KB1RD > <@gitter_danilosilvadev:matrix.org> Hi guys i have a very basic question, why items is undefined?

<template>
  <ul>
    <li v-for="(item, index) in items" v-bind:key="index">
      {{ item.snippet.title }}
    </li>
  </ul>
</template>

<script>
export default {
  name: "VideoList",
  props: {
    items
  }
};
</script>

items is listed as a prop. You'd have to show where you use the VideoList component to find out what the value of items is

Bogdan Chayka
@BogdanChayka
items is a prop, perhaps you pass an empty value?
Neil Duffy
@skiv71
for the component, if you are only defining the prop name, it should be props: ['items']
that's why its undefined
also, make sure its 'bound' from the component parent
Brijesh Soni
@ibrijeshsoni
I ma new to vue JS can any one help me with the best material so I can start working on the same
Bogdan Chayka
@BogdanChayka

@ibrijeshsoni actually so far i never needed any other resource than the documentation: https://vuejs.org/v2/guide/
https://vuejs.org/v2/guide/single-file-components.html
https://vuex.vuejs.org/guide/

or if you want vue with ssr go here: https://nuxtjs.org/guide

Brijesh Soni
@ibrijeshsoni
Thanks @BogdanChayka, I have created Project and I would to Add .js and .css file(s) in public\index.html
Tugay Yaldız
@TugayYaldiz
I just published How to Boost Vue.js Performance 🚀🚀 https://medium.com/@tugayyaldiz/how-to-boost-vue-js-performance-c7df027ff3f5
meimeiH
@meimeiH
Error: Cannot find module 'string.prototype.padend' Cannot install for help
张明新
@zmx877905212
@meimeiH emmm, try to padEnd()
Andrius Solopovas
@asolopovas

Hi everyone, does anyone know why

    mounted() {
      window.addEventListener('resize', debounce(this.hangleResize, 500))
      window.addEventListener('scroll', debounce(this.hangleScroll, 500))
    },
    destroyed() {
      window.removeEventListener('resize', debounce(this.hangleResize, 500))
      window.removeEventListener('scroll', debounce(this.hangleScroll, 500))
    },

does not update vue.devtools values

MuggleFighter
@MuggleFighter
Do you mean it do not emit the removeEventListener callback function ?
Joe Pea
@trusktr
@asolopovas no idea what you're asking
Travis Briggs
@audiodude
if anyone has any ideas, it would be greatly appreciated. I assume it's something simple
Neil Duffy
@skiv71
yea, like you don't know how Vue works :smile:
not that i do either :smirk:
Mohsen Shafiei
@mohsenshafiei
a webpack plugin to filter webpack stats
isowen
@isowen
9点了
下班
Danilo Silva
@danilosilvadev

Hi guys, i have a component that is receiving a prop array.
PARENT

<ExerciseLayoutCardComponent
      v-for="layout of layouts"
      :key="layout.id"
      :layout="{layout}"
    />

CHILD

 props: {
    layout: Object
  },

But at the CHILD template when trying to access, is not displaying anything. I already made a console.log that showed the data is there. What is missing?

    <span class="exercise-type-card__title">{{ layout.title }}</span>

PS: layout.title returns nothing.

Victor Toschi
@toschivictor_twitter
If layout is an object you can remove the {}. It would be something like: :layout="layout"
Danilo Silva
@danilosilvadev
got it
thanks
Olonilua Olalekan
@lecxis

How savvy are you on the latest dev tools and technologies? All developers who complete the survey and register enter a raffle to win $16,000 worth of prizes. Get your community involved too - promote the survey and you may win in addition $1,000 in cash!

https://developereconomics.net/?member_id=pdSrFATx&lang=en

Strictly for developers or those learning any programming language

Make your voice heard and earn cool cash and swags as a developer.

carrow
@carrowheap

I want to configure idletime from the component level , and rewrite onIdle action for each component.
it doesn't work when I call onIdle in a component it just work in the main.js. sorry for bad english

// this works in main.js but not in component eg: test.vue

const eventsHub = new Vue()

Vue.use(IdleVue, {
eventEmitter: eventsHub,
idleTime: 10000
})
how can I achieve that ? thanks

Hi everyone
JackeL
@jackel27
IDK why I am having such trouble thinking of how to make use of Facebook's SDK
beforeMount: function () { this.$loadScript('https://connect.facebook.net/en_US/sdk.js') .then((res) => { console.log('LOADED SUCCESSFULLY', res) }) .catch((err) => { console.log(err) }) },
it loads, but how to make use of it ???
zhengyadong
@zhengyadong
{ _isComponent:true,
eventEmitter: eventsHub,
idleTime: 10000
})
@carrowheap you can try
In the source code of Vue , there's a function of initMixin,
JackeL
@jackel27
Anyone help me out with this one lol
Danilo Silva
@danilosilvadev

Yo guys, im helping with a project that has a strange way of create types. It doesnt uses TS, but is giving types using classes like this, mostly to Vuex.

class Exercise {
  constructor (id, type, title) {
    this.id = id
    this.type = type
    this.title = title
  }
}

module.exports = Exercise


module.exports = Activity

and to call it

...exercise: new Exercise(null, card.type, 'Exercise Title')

Is this a good pratice? make sense to do this?

Thomas Piekarski
@tpiekarski
Looks quite interesting, I am curios about the opinion of other people as well.
IMHO this makes sense, but why are you not using TS?
Danilo Silva
@danilosilvadev
My company hates TS and don't let me use
im not sure why
Neil Duffy
@skiv71
TS was born from microsoft, enough said