vxe-gantt 4.7.2 → 4.7.4
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 +5 -0
- package/dist/all.esm.js +45 -3
- package/es/gantt/src/gantt.js +35 -1
- package/es/ui/index.js +9 -1
- package/es/ui/src/log.js +1 -1
- package/lib/gantt/src/gantt.js +36 -0
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/index.umd.js +46 -2
- package/lib/index.umd.min.js +1 -1
- package/lib/ui/index.js +9 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +3 -3
- package/packages/gantt/src/gantt.ts +38 -0
- package/packages/ui/index.ts +8 -0
package/lib/index.umd.js
CHANGED
|
@@ -2856,7 +2856,7 @@ const {
|
|
|
2856
2856
|
setConfig,
|
|
2857
2857
|
setIcon
|
|
2858
2858
|
} = core_.VxeUI;
|
|
2859
|
-
core_.VxeUI.ganttVersion = "4.7.
|
|
2859
|
+
core_.VxeUI.ganttVersion = "4.7.4";
|
|
2860
2860
|
const ymdFormat = 'yyyy-MM-dd';
|
|
2861
2861
|
const ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
2862
2862
|
setConfig({
|
|
@@ -2951,6 +2951,14 @@ setConfig({
|
|
|
2951
2951
|
},
|
|
2952
2952
|
taskBarSubviewConfig: {
|
|
2953
2953
|
// showOverview: false
|
|
2954
|
+
},
|
|
2955
|
+
taskBarMoveTooltipConfig: {
|
|
2956
|
+
enterable: true,
|
|
2957
|
+
enterDelay: 0
|
|
2958
|
+
},
|
|
2959
|
+
taskBarResizeTooltipConfig: {
|
|
2960
|
+
enterable: true,
|
|
2961
|
+
enterDelay: 0
|
|
2954
2962
|
}
|
|
2955
2963
|
}
|
|
2956
2964
|
});
|
|
@@ -2970,7 +2978,7 @@ setIcon({
|
|
|
2970
2978
|
const {
|
|
2971
2979
|
log
|
|
2972
2980
|
} = core_.VxeUI;
|
|
2973
|
-
const ganttVersion = `gantt v${"4.7.
|
|
2981
|
+
const ganttVersion = `gantt v${"4.7.4"}`;
|
|
2974
2982
|
function createComponentLog(name) {
|
|
2975
2983
|
const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
|
|
2976
2984
|
const tableVersion = core_.VxeUI.tableVersion ? `table v${core_.VxeUI.tableVersion}` : '';
|
|
@@ -6957,7 +6965,9 @@ function getViewTypeLevel(type) {
|
|
|
6957
6965
|
taskBarTooltipConfig: Object,
|
|
6958
6966
|
taskSplitConfig: Object,
|
|
6959
6967
|
taskBarResizeConfig: Object,
|
|
6968
|
+
taskBarResizeTooltipConfig: Object,
|
|
6960
6969
|
taskBarMoveConfig: Object,
|
|
6970
|
+
taskBarMoveTooltipConfig: Object,
|
|
6961
6971
|
size: {
|
|
6962
6972
|
type: String,
|
|
6963
6973
|
default: () => getConfig().gantt.size || getConfig().size
|
|
@@ -7061,9 +7071,15 @@ function getViewTypeLevel(type) {
|
|
|
7061
7071
|
const computeTaskBarMoveOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7062
7072
|
return Object.assign({}, getConfig().gantt.taskBarMoveConfig, props.taskBarMoveConfig);
|
|
7063
7073
|
});
|
|
7074
|
+
const computeTaskBarMoveTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7075
|
+
return Object.assign({}, getConfig().gantt.taskBarMoveTooltipConfig, props.taskBarMoveTooltipConfig);
|
|
7076
|
+
});
|
|
7064
7077
|
const computeTaskBarResizeOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7065
7078
|
return Object.assign({}, getConfig().gantt.taskBarResizeConfig, props.taskBarResizeConfig);
|
|
7066
7079
|
});
|
|
7080
|
+
const computeTaskBarResizeTooltipOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7081
|
+
return Object.assign({}, getConfig().gantt.taskBarResizeTooltipConfig, props.taskBarResizeTooltipConfig);
|
|
7082
|
+
});
|
|
7067
7083
|
const computeTaskSplitOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
7068
7084
|
return Object.assign({}, getConfig().gantt.taskSplitConfig, props.taskSplitConfig);
|
|
7069
7085
|
});
|
|
@@ -7416,7 +7432,9 @@ function getViewTypeLevel(type) {
|
|
|
7416
7432
|
computeTaskViewOpts,
|
|
7417
7433
|
computeTaskBarOpts,
|
|
7418
7434
|
computeTaskBarMoveOpts,
|
|
7435
|
+
computeTaskBarMoveTooltipOpts,
|
|
7419
7436
|
computeTaskBarResizeOpts,
|
|
7437
|
+
computeTaskBarResizeTooltipOpts,
|
|
7420
7438
|
computeTaskSplitOpts,
|
|
7421
7439
|
computeTaskBarMilestoneOpts,
|
|
7422
7440
|
computeTaskBarSubviewOpts,
|
|
@@ -8699,6 +8717,10 @@ function getViewTypeLevel(type) {
|
|
|
8699
8717
|
return handleZoom();
|
|
8700
8718
|
},
|
|
8701
8719
|
getFormData,
|
|
8720
|
+
/**
|
|
8721
|
+
* 已废弃,被 getFormFlatItems 替换
|
|
8722
|
+
* @deprecated
|
|
8723
|
+
*/
|
|
8702
8724
|
getFormItems(itemIndex) {
|
|
8703
8725
|
const formOpts = computeFormOpts.value;
|
|
8704
8726
|
const {
|
|
@@ -8713,8 +8735,30 @@ function getViewTypeLevel(type) {
|
|
|
8713
8735
|
}, {
|
|
8714
8736
|
children: 'children'
|
|
8715
8737
|
});
|
|
8738
|
+
// errLog('vxe.error.delFunc', ['getFormItems', 'getFormFlatItems'])
|
|
8716
8739
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(itemIndex) ? itemList : itemList[itemIndex];
|
|
8717
8740
|
},
|
|
8741
|
+
getFormFlatItems() {
|
|
8742
|
+
const $form = refForm.value;
|
|
8743
|
+
if ($form) {
|
|
8744
|
+
return $form.getFlatItems();
|
|
8745
|
+
}
|
|
8746
|
+
return [];
|
|
8747
|
+
},
|
|
8748
|
+
getFormNestedItems() {
|
|
8749
|
+
const $form = refForm.value;
|
|
8750
|
+
if ($form) {
|
|
8751
|
+
return $form.getNestedItems();
|
|
8752
|
+
}
|
|
8753
|
+
return [];
|
|
8754
|
+
},
|
|
8755
|
+
getFormItemByField(field) {
|
|
8756
|
+
const $form = refForm.value;
|
|
8757
|
+
if ($form) {
|
|
8758
|
+
return $form.getItemByField(field);
|
|
8759
|
+
}
|
|
8760
|
+
return null;
|
|
8761
|
+
},
|
|
8718
8762
|
resetForm() {
|
|
8719
8763
|
const $form = refForm.value;
|
|
8720
8764
|
if ($form) {
|