aloudata-gantt 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +3 -5
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4871,13 +4871,11 @@ var GanttStore = /*#__PURE__*/function () {
|
|
|
4871
4871
|
}, {
|
|
4872
4872
|
key: "initWidth",
|
|
4873
4873
|
value: function initWidth() {
|
|
4874
|
-
|
|
4875
|
-
console.log(this.tableWidth, this.viewWidth, this.width);
|
|
4876
|
-
this.tableWidth = this.totalColumnWidth > 0 ? this.totalColumnWidth : 200;
|
|
4874
|
+
this.tableWidth = this.totalColumnWidth || 500;
|
|
4877
4875
|
this.viewWidth = this.width - this.tableWidth;
|
|
4878
4876
|
// 图表宽度不能小于 200
|
|
4879
|
-
if (this.viewWidth <
|
|
4880
|
-
this.viewWidth =
|
|
4877
|
+
if (this.viewWidth < 200) {
|
|
4878
|
+
this.viewWidth = 200;
|
|
4881
4879
|
this.tableWidth = this.width - this.viewWidth;
|
|
4882
4880
|
}
|
|
4883
4881
|
}
|