aloudata-gantt 0.0.1 → 0.0.2
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 +5 -3
- package/package.json +1 -2
package/dist/index.esm.js
CHANGED
|
@@ -4871,11 +4871,13 @@ var GanttStore = /*#__PURE__*/function () {
|
|
|
4871
4871
|
}, {
|
|
4872
4872
|
key: "initWidth",
|
|
4873
4873
|
value: function initWidth() {
|
|
4874
|
-
this.tableWidth
|
|
4874
|
+
console.log("**********this.tableWidth, this.viewWidth, this.width************");
|
|
4875
|
+
console.log(this.tableWidth, this.viewWidth, this.width);
|
|
4876
|
+
this.tableWidth = this.totalColumnWidth > 0 ? this.totalColumnWidth : 200;
|
|
4875
4877
|
this.viewWidth = this.width - this.tableWidth;
|
|
4876
4878
|
// 图表宽度不能小于 200
|
|
4877
|
-
if (this.viewWidth <
|
|
4878
|
-
this.viewWidth =
|
|
4879
|
+
if (this.viewWidth < 50) {
|
|
4880
|
+
this.viewWidth = 50;
|
|
4879
4881
|
this.tableWidth = this.width - this.viewWidth;
|
|
4880
4882
|
}
|
|
4881
4883
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aloudata-gantt",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/types/index.d.ts",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
},
|
|
17
17
|
"husky": {
|
|
18
18
|
"hooks": {
|
|
19
|
-
"pre-commit": "lint-staged",
|
|
20
19
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
21
20
|
}
|
|
22
21
|
},
|