在浏览器上不会报错
<view :prop="list" :change:prop="kline.updateKineInfo" id="kline" class="kline">
</view>
<script>
export default {
props: {
list: {
type: Array
}
},
}
</script>
<script module="kline" lang="renderjs">
// 烛台chart
let candlestickChart
// 烛台数据
let candlestickSeries
import {
createChart
} from 'lightweight-charts';
export default {
methods: {
updateKineInfo(newValue, oldValue, ownerInstance, instance) {
// 监听 service 层数据变更
newValue = JSON.parse(JSON.stringify(newValue))
if (candlestickSeries) {
candlestickSeries.setData(newValue)
}
}
},
}
</script>
wangqian_
具体是什么意思呢
2022-12-05 16:30