vxe-gantt 0.0.3 → 3.0.0-beta.1
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/README.md +14 -46
- package/es/components.js +3 -2
- package/es/gantt/src/gantt-body.js +83 -49
- package/es/gantt/src/gantt-chart.js +91 -43
- package/es/gantt/src/gantt-header.js +63 -36
- package/es/gantt/src/gantt-view.js +638 -586
- package/es/gantt/src/gantt.js +1346 -1178
- package/es/gantt/src/util.js +1 -4
- package/es/gantt/style.css +62 -28
- package/es/gantt/style.min.css +1 -1
- package/es/index.esm.js +5 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +9 -3
- package/es/ui/src/comp.js +1 -2
- package/es/ui/src/log.js +3 -2
- package/es/ui/src/utils.js +17 -17
- package/es/vxe-gantt/style.css +62 -28
- package/es/vxe-gantt/style.min.css +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/components.js +20 -19
- package/lib/components.min.js +1 -1
- package/lib/gantt/index.js +3 -3
- package/lib/gantt/index.min.js +1 -1
- package/lib/gantt/src/gantt-body.js +109 -87
- package/lib/gantt/src/gantt-body.min.js +1 -1
- package/lib/gantt/src/gantt-chart.js +109 -69
- package/lib/gantt/src/gantt-chart.min.js +1 -1
- package/lib/gantt/src/gantt-header.js +75 -56
- package/lib/gantt/src/gantt-header.min.js +1 -1
- package/lib/gantt/src/gantt-view.js +684 -686
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +1630 -1559
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/gantt/src/util.js +1 -4
- package/lib/gantt/src/util.min.js +1 -1
- package/lib/gantt/style/style.css +62 -28
- package/lib/gantt/style/style.min.css +1 -1
- package/lib/index.common.js +12 -7
- package/lib/index.umd.js +10704 -5870
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +12 -16
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/comp.js +3 -2
- package/lib/ui/src/comp.min.js +1 -1
- package/lib/ui/src/dom.js +33 -33
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +4 -3
- package/lib/ui/src/log.min.js +1 -1
- package/lib/ui/src/utils.js +21 -24
- package/lib/ui/src/utils.min.js +1 -1
- package/lib/vxe-gantt/index.js +4 -2
- package/lib/vxe-gantt/index.min.js +1 -1
- package/lib/vxe-gantt/style/style.css +62 -28
- package/lib/vxe-gantt/style/style.min.css +1 -1
- package/lib/vxe-ui/index.js +4 -2
- package/lib/vxe-ui/index.min.js +1 -1
- package/package.json +13 -13
- package/packages/components.ts +8 -5
- package/packages/gantt/index.ts +2 -2
- package/packages/gantt/src/gantt-body.ts +89 -53
- package/packages/gantt/src/gantt-chart.ts +100 -49
- package/packages/gantt/src/gantt-header.ts +69 -39
- package/packages/gantt/src/gantt-view.ts +692 -624
- package/packages/gantt/src/gantt.ts +1459 -1240
- package/packages/gantt/src/util.ts +1 -4
- package/packages/index.ts +6 -2
- package/packages/ui/index.ts +9 -3
- package/packages/ui/src/comp.ts +2 -2
- package/packages/ui/src/log.ts +3 -1
- package/packages/ui/src/utils.ts +22 -21
- package/styles/components/gantt-module/gantt-chart.scss +28 -9
- package/styles/components/gantt.scss +36 -21
- package/styles/theme/base.scss +5 -1
- package/types/all.d.ts +3 -3
- package/types/index.d.ts +2 -2
- package/README.en.md +0 -72
- package/README.ja-JP.md +0 -72
- package/README.zh-TW.md +0 -73
- package/es/gantt/src/emits.js +0 -4
- package/es/gantt/src/grid-emits.js +0 -16
- package/es/gantt/src/grid-props.js +0 -7
- package/es/gantt/src/props.js +0 -2
- package/es/gantt/src/table-emits.js +0 -97
- package/es/gantt/src/table-props.js +0 -298
- package/lib/gantt/src/emits.js +0 -8
- package/lib/gantt/src/emits.min.js +0 -1
- package/lib/gantt/src/grid-emits.js +0 -8
- package/lib/gantt/src/grid-emits.min.js +0 -1
- package/lib/gantt/src/grid-props.js +0 -24
- package/lib/gantt/src/grid-props.min.js +0 -1
- package/lib/gantt/src/props.js +0 -13
- package/lib/gantt/src/props.min.js +0 -1
- package/lib/gantt/src/table-emits.js +0 -7
- package/lib/gantt/src/table-emits.min.js +0 -1
- package/lib/gantt/src/table-props.js +0 -306
- package/lib/gantt/src/table-props.min.js +0 -1
- package/packages/gantt/src/emits.ts +0 -7
- package/packages/gantt/src/grid-emits.ts +0 -19
- package/packages/gantt/src/grid-props.ts +0 -23
- package/packages/gantt/src/props.ts +0 -13
- package/packages/gantt/src/table-emits.ts +0 -109
- package/packages/gantt/src/table-props.ts +0 -304
|
@@ -4,75 +4,94 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _vue = require("vue");
|
|
8
7
|
var _comp = require("../../ui/src/comp");
|
|
9
8
|
var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
10
9
|
name: 'VxeGanttView',
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
inject: {
|
|
11
|
+
$xeGantt: {
|
|
12
|
+
default: null
|
|
13
|
+
},
|
|
14
|
+
$xeGanttView: {
|
|
15
|
+
default: null
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
props: {},
|
|
19
|
+
data: function data() {
|
|
20
|
+
return {};
|
|
21
|
+
},
|
|
22
|
+
computed: Object.assign({}, {}),
|
|
23
|
+
methods: {
|
|
24
|
+
//
|
|
25
|
+
// Render
|
|
26
|
+
//
|
|
27
|
+
renderVN: function renderVN(h) {
|
|
28
|
+
var _vm = this;
|
|
29
|
+
var $xeGanttView = _vm.$xeGanttView;
|
|
30
|
+
var reactData = $xeGanttView.reactData;
|
|
31
|
+
var tableColumn = reactData.tableColumn,
|
|
32
|
+
headerGroups = reactData.headerGroups,
|
|
33
|
+
viewCellWidth = reactData.viewCellWidth;
|
|
34
|
+
return h('div', {
|
|
35
|
+
ref: 'refElem',
|
|
28
36
|
class: 'vxe-gantt-view--header-wrapper'
|
|
29
|
-
}, [
|
|
30
|
-
ref: refHeaderScroll,
|
|
37
|
+
}, [h('div', {
|
|
38
|
+
ref: 'refHeaderScroll',
|
|
31
39
|
class: 'vxe-gantt-view--header-inner-wrapper',
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
on: {
|
|
41
|
+
scroll: $xeGanttView.triggerHeaderScrollEvent
|
|
42
|
+
}
|
|
43
|
+
}, [h('div', {
|
|
44
|
+
ref: 'refHeaderXSpace',
|
|
35
45
|
class: 'vxe-body--x-space'
|
|
36
|
-
}),
|
|
37
|
-
ref: refHeaderTable,
|
|
46
|
+
}), h('table', {
|
|
47
|
+
ref: 'refHeaderTable',
|
|
38
48
|
class: 'vxe-gantt-view--header-table'
|
|
39
|
-
}, [
|
|
40
|
-
return
|
|
41
|
-
key: cIndex
|
|
49
|
+
}, [h('colgroup', {}, tableColumn.map(function (column, cIndex) {
|
|
50
|
+
return h('col', {
|
|
51
|
+
key: cIndex,
|
|
52
|
+
style: {
|
|
53
|
+
width: "".concat(viewCellWidth, "px")
|
|
54
|
+
}
|
|
42
55
|
});
|
|
43
|
-
})),
|
|
44
|
-
return
|
|
56
|
+
})), h('thead', {}, headerGroups.map(function (cols, rIndex) {
|
|
57
|
+
return h('tr', {
|
|
45
58
|
key: rIndex
|
|
46
|
-
}, cols.map((column, cIndex)
|
|
47
|
-
return
|
|
59
|
+
}, cols.map(function (column, cIndex) {
|
|
60
|
+
return h('th', {
|
|
48
61
|
key: cIndex,
|
|
49
62
|
class: 'vxe-gantt-view--header-column',
|
|
50
|
-
|
|
51
|
-
|
|
63
|
+
attrs: {
|
|
64
|
+
colspan: column.children ? column.children.length : null,
|
|
65
|
+
title: "".concat(column.field)
|
|
66
|
+
}
|
|
52
67
|
}, column.title);
|
|
53
68
|
}));
|
|
54
69
|
}))])])]);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
mounted: function mounted() {
|
|
73
|
+
var _vm = this;
|
|
74
|
+
var $xeGanttView = _vm.$xeGanttView;
|
|
75
|
+
var internalData = $xeGanttView.internalData;
|
|
76
|
+
var elemStore = internalData.elemStore;
|
|
77
|
+
var prefix = 'main-header-';
|
|
78
|
+
elemStore["".concat(prefix, "wrapper")] = _vm.$refs.refElem;
|
|
79
|
+
elemStore["".concat(prefix, "scroll")] = _vm.$refs.refHeaderScroll;
|
|
80
|
+
elemStore["".concat(prefix, "table")] = _vm.$refs.refHeaderTable;
|
|
81
|
+
elemStore["".concat(prefix, "xSpace")] = _vm.$refs.refHeaderXSpace;
|
|
82
|
+
},
|
|
83
|
+
destroyed: function destroyed() {
|
|
84
|
+
var _vm = this;
|
|
85
|
+
var $xeGanttView = _vm.$xeGanttView;
|
|
86
|
+
var internalData = $xeGanttView.internalData;
|
|
87
|
+
var elemStore = internalData.elemStore;
|
|
88
|
+
var prefix = 'main-header-';
|
|
89
|
+
elemStore["".concat(prefix, "wrapper")] = null;
|
|
90
|
+
elemStore["".concat(prefix, "scroll")] = null;
|
|
91
|
+
elemStore["".concat(prefix, "table")] = null;
|
|
92
|
+
elemStore["".concat(prefix, "xSpace")] = null;
|
|
93
|
+
},
|
|
94
|
+
render: function render(h) {
|
|
95
|
+
return this.renderVN(h);
|
|
77
96
|
}
|
|
78
97
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _comp=require("../../ui/src/comp"),_default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeGanttView",inject:{$xeGantt:{default:null},$xeGanttView:{default:null}},props:{},data:function(){return{}},computed:Object.assign({},{}),methods:{renderVN:function(r){var e=this.$xeGanttView,t=e.reactData,a=t.tableColumn,n=t.headerGroups,l=t.viewCellWidth;return r("div",{ref:"refElem",class:"vxe-gantt-view--header-wrapper"},[r("div",{ref:"refHeaderScroll",class:"vxe-gantt-view--header-inner-wrapper",on:{scroll:e.triggerHeaderScrollEvent}},[r("div",{ref:"refHeaderXSpace",class:"vxe-body--x-space"}),r("table",{ref:"refHeaderTable",class:"vxe-gantt-view--header-table"},[r("colgroup",{},a.map(function(e,t){return r("col",{key:t,style:{width:"".concat(l,"px")}})})),r("thead",{},n.map(function(e,t){return r("tr",{key:t},e.map(function(e,t){return r("th",{key:t,class:"vxe-gantt-view--header-column",attrs:{colspan:e.children?e.children.length:null,title:"".concat(e.field)}},e.title)}))}))])])])}},mounted:function(){var e=this,t=e.$xeGanttView.internalData.elemStore,r="main-header-";t["".concat(r,"wrapper")]=e.$refs.refElem,t["".concat(r,"scroll")]=e.$refs.refHeaderScroll,t["".concat(r,"table")]=e.$refs.refHeaderTable,t["".concat(r,"xSpace")]=e.$refs.refHeaderXSpace},destroyed:function(){var e=this.$xeGanttView.internalData.elemStore,t="main-header-";e["".concat(t,"wrapper")]=null,e["".concat(t,"scroll")]=null,e["".concat(t,"table")]=null,e["".concat(t,"xSpace")]=null},render:function(e){return this.renderVN(e)}});
|