|
@@ -72,19 +72,6 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
initStyles() {
|
|
|
- const containers = ["stdinfo", "notice", "stdno", "dynamic"];
|
|
|
- containers.forEach((container) => {
|
|
|
- const dom =
|
|
|
- this.$refs[`${container}Container`] &&
|
|
|
- this.$refs[`${container}Container`].firstChild;
|
|
|
- this.orgHeights[container] = dom ? dom.offsetHeight : 0;
|
|
|
- });
|
|
|
- Object.keys(this.orgHeights).map((key) => {
|
|
|
- this.heights[key] = this.orgHeights[key] + 2;
|
|
|
- });
|
|
|
- this.resizeRect();
|
|
|
- },
|
|
|
- resizeRect() {
|
|
|
// width size
|
|
|
const fillNumber = this.data.fillNumber || 13;
|
|
|
if (fillNumber <= 10) {
|
|
@@ -95,6 +82,22 @@ export default {
|
|
|
}
|
|
|
this.leftColWidth = 100 - this.rightColWidth;
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const containers = ["stdinfo", "notice", "stdno", "dynamic"];
|
|
|
+ containers.forEach((container) => {
|
|
|
+ const dom =
|
|
|
+ this.$refs[`${container}Container`] &&
|
|
|
+ this.$refs[`${container}Container`].firstChild;
|
|
|
+ this.orgHeights[container] = dom ? dom.offsetHeight : 0;
|
|
|
+ });
|
|
|
+ Object.keys(this.orgHeights).map((key) => {
|
|
|
+ this.heights[key] = this.orgHeights[key] + 2;
|
|
|
+ });
|
|
|
+
|
|
|
+ this.resizeRect();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ resizeRect() {
|
|
|
// height size
|
|
|
let col1 = this.orgHeights.stdinfo + this.orgHeights.notice;
|
|
|
let col2 = this.orgHeights.stdno + this.orgHeights.dynamic;
|