Commit 963456dd by crushh

update: dist

parent 80f98918
......@@ -178,10 +178,10 @@ export default {
storeData: [],
form: {
linkType: 1,
// memberLabelName: '',
// memberLabelId: '',
memberLabelName: '测试标签值名称重复- 温州青童时代店',
memberLabelId: 'edd3901afd1e418d93fdc3b50bb24784',
memberLabelName: '',
memberLabelId: '',
// memberLabelName: '测试标签值名称重复- 温州青童时代店',
// memberLabelId: 'edd3901afd1e418d93fdc3b50bb24784',
storeList: [],
name: '',
pageId: '',
......
<template>
<div>
<div :id="id"></div>
<div :id="id" class="chart--nodata"></div>
<div v-if="!charData.length" class="chart--nodata">
<div>
<img class="image-120" src="@/assets/no-data.svg" />
......@@ -29,11 +29,7 @@ export default {
return [];
}
},
id: String,
width: {
type: Number,
default: 1192
}
id: String
},
mounted() {
setTimeout(() => {
......@@ -54,9 +50,10 @@ export default {
if (!this.charData.length) return;
this.chart = new G2.Chart({
container: this.id,
height: 359,
autoFit: true,
forceFit: true,
width: this.width,
padding: [20, 40, 80, 80]
});
this.chart.data(this.charData);
......@@ -139,7 +136,7 @@ export default {
</script>
<style lang="scss" scoped>
.chart--nodata {
height: 256px;
height: 359px;
width: 100%;
display: flex;
justify-content: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment