Commit 84475c0a authored by 何钱贝's avatar 何钱贝

Revert "feat:rpx"

This reverts commit 6bd466c2.
parent 0166f522
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
canvas-id="bar-mix-map-chart" canvas-id="bar-mix-map-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -181,10 +180,6 @@ ...@@ -181,10 +180,6 @@
categories, categories,
series series
} }
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
'text-align': elementInfo.option.title.left, 'text-align': elementInfo.option.title.left,
'animation-duration':`${elementInfo.marquee.speed ? elementInfo.marquee.speed : defaultSpeed}s` 'animation-duration':`${elementInfo.marquee.speed ? elementInfo.marquee.speed : defaultSpeed}s`
}" }"
:font-size="getFontSize()"
> >
{{ text }} {{ text }}
</p> </p>
...@@ -30,10 +29,6 @@ export default { ...@@ -30,10 +29,6 @@ export default {
methods: { methods: {
initChart() { initChart() {
this.text = this.elementData.dataList.text || this.elementInfo.option.title.text this.text = this.elementData.dataList.text || this.elementInfo.option.title.text
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
canvas-id="china-map-chart" canvas-id="china-map-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -158,10 +157,6 @@ ...@@ -158,10 +157,6 @@
} }
} }
return res return res
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
ref="dashboardProgressCanvas" ref="dashboardProgressCanvas"
canvas-id="dashboard-progress-chart" canvas-id="dashboard-progress-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -144,10 +143,6 @@ ...@@ -144,10 +143,6 @@
return chart return chart
}) })
}) })
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
canvas-id="horizontal-bar-chart" canvas-id="horizontal-bar-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -80,10 +79,6 @@ export default { ...@@ -80,10 +79,6 @@ export default {
return { ...item, ...config } return { ...item, ...config }
}) })
return newData return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
ref="lineMixBarCanvas" ref="lineMixBarCanvas"
canvas-id="line-mix-bar-chart" canvas-id="line-mix-bar-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -107,10 +106,6 @@ ...@@ -107,10 +106,6 @@
} }
}) })
return newData return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
canvas-id="normal-bar-chart" canvas-id="normal-bar-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -80,10 +79,6 @@ export default { ...@@ -80,10 +79,6 @@ export default {
return { ...item, ...config } return { ...item, ...config }
}) })
return newData return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
canvas-id="normal-gauge-chart" canvas-id="normal-gauge-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -63,10 +62,6 @@ export default { ...@@ -63,10 +62,6 @@ export default {
return chart return chart
}) })
}) })
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -48,9 +48,6 @@ ...@@ -48,9 +48,6 @@
}, },
onLoad() { onLoad() {
},
methods: {
} }
} }
</script> </script>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
canvas-id="normal-line-chart" canvas-id="normal-line-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -80,10 +79,6 @@ export default { ...@@ -80,10 +79,6 @@ export default {
return { ...item, ...config } return { ...item, ...config }
}) })
return newData return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
canvas-id="normal-pie-chart" canvas-id="normal-pie-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -84,10 +83,6 @@ export default { ...@@ -84,10 +83,6 @@ export default {
data data
}] }]
return series return series
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -37,13 +37,7 @@ export default { ...@@ -37,13 +37,7 @@ export default {
}; };
}, },
methods: { methods: {
initChart() { initChart() {}
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
} }
} }
</script> </script>
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
ref="normalRadarCanvas" ref="normalRadarCanvas"
canvas-id="normalra-dar-chart" canvas-id="normalra-dar-chart"
:ec="ec" :ec="ec"
:style="[elStyleObject]" :style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas> ></uni-ec-canvas>
</view> </view>
</template> </template>
...@@ -83,10 +82,6 @@ ...@@ -83,10 +82,6 @@
} }
}) })
return newData return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -57,10 +57,6 @@ ...@@ -57,10 +57,6 @@
const paramName = this.elementInfo.table.primaryKey const paramName = this.elementInfo.table.primaryKey
const value = e[paramName] const value = e[paramName]
uni.$emit('handleLinkParams', { index, paramName, value: value }) uni.$emit('handleLinkParams', { index, paramName, value: value })
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -67,10 +67,6 @@ ...@@ -67,10 +67,6 @@
}); });
uni.$emit('handleLinkComp', { showData, hideData }) uni.$emit('handleLinkComp', { showData, hideData })
} }
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
}, },
watch: { watch: {
......
...@@ -84,10 +84,6 @@ ...@@ -84,10 +84,6 @@
numberItemsClass() { numberItemsClass() {
return 'numberItems-' + this.elementInfo.id return 'numberItems-' + this.elementInfo.id
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
}, },
} }
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
'font-weight': elementInfo.option.title.textStyle.fontWeight, 'font-weight': elementInfo.option.title.textStyle.fontWeight,
'text-align': elementInfo.option.title.left, 'text-align': elementInfo.option.title.left,
}" }"
:font-size="getFontSize()"
> >
{{ realTime }} {{ realTime }}
</div> </div>
...@@ -37,10 +36,6 @@ export default { ...@@ -37,10 +36,6 @@ export default {
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.realTime = this.$u.common.dateFormat() this.realTime = this.$u.common.dateFormat()
}, 1000) }, 1000)
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
} }
} }
} }
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
:src="imageUrl" :src="imageUrl"
width="100%" width="100%"
:height="imageHeight" :height="imageHeight"
:font-size="getFontSize()"
></u-image> ></u-image>
</view> </view>
</template> </template>
...@@ -37,9 +36,6 @@ ...@@ -37,9 +36,6 @@
}) })
}, },
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
} }
} }
</script> </script>
......
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