airyland / airyland/vux

[Bug Report] V-chart can't show when data init finished

Aberta
#3,081 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Vue
Estrelas
17.5k
Forks
3.6k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### VUX version
2.9.2

### OS/Browsers version
chrome

### Vue version
2.5.13

### Code

```html









import { VChart, VLine, VArea, VTooltip, VLegend, VBar, XButton, VScale } from 'vux'

export default {
name: 'Chart',
components: {
VChart,
VLine,
VArea,
VTooltip,
VLegend,
VBar,
XButton,
VScale
},
props: {
tech: Array
},
// data () {
// return {
// score: []
// }
// },
data () {
return {
data: [
// { name: 'Jedi', 动作: '正手', 成绩: 12.4 },
// { name: 'Jedi', 动作: '反手', 成绩: 23.2 },
// { name: 'Jedi', 动作: '上旋', 成绩: 34.5 },
// { name: 'Jedi', 动作: '反削', 成绩: 99.7 },
// { name: 'Jedi', 动作: '发球', 成绩: 52.6 },
// { name: 'Jedi', 动作: '接发', 成绩: 35.5 },
// { name: 'Jedi', 动作: '正截击', 成绩: 37.4 },
// { name: 'Jedi', 动作: '反截击', 成绩: 42.4 },
// { name: 'Jedi', 动作: '挑高球', 成绩: 35.6 },
// { name: 'Jedi', 动作: '放小球', 成绩: 35.6 }
]
}
}
// watch: {
// tech () {
// this.data = this.tech
// }
// }
// beforeUpdate () {
// this.data = this.tech
// }
}

```

### Steps to reproduce
1. load the 'tech' prop value from parent.
2. assign 'tech' value to the 'data' parameter in v-chart module
3. show the v-chart with correct value.

### What is Expected?
show the v-chart with the correct value.

### What is actually happening?
blank chart show, but the value is correct load finished from vue log.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.