vxe-gantt 4.0.0 → 4.0.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 CHANGED
@@ -52,6 +52,8 @@
52
52
  [👀 Vxe Gantt](https://gantt.vxeui.com/)
53
53
 
54
54
  * [x] gantt 甘特图
55
+ * [x] ([企业版](https://vxetable.cn/pluginDocs/)) 依赖线
56
+ * [x] ([企业版](https://vxetable.cn/pluginDocs/)) 任务条拖拽
55
57
 
56
58
  ## 安装
57
59
 
package/es/ui/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { errLog } from './src/log';
3
3
  const { setConfig, setIcon, checkVersion } = VxeUI;
4
- VxeUI.ganttVersion = "4.0.0";
4
+ VxeUI.ganttVersion = "4.0.1";
5
5
  setConfig({
6
6
  gantt: {
7
7
  // size: null,
@@ -56,8 +56,15 @@ setIcon({
56
56
  GANTT_VIEW_RIGHT_OPEN: iconPrefix + 'arrow-right',
57
57
  GANTT_VIEW_RIGHT_CLOSE: iconPrefix + 'arrow-left'
58
58
  });
59
- if (!checkVersion(VxeUI.tableVersion, 4, 16)) {
60
- errLog('vxe.error.errorVersion', [`vxe-table@${VxeUI.tableVersion || '?'}`, 'vxe-table v4.16+']);
59
+ const pVersion = 4;
60
+ const sVersion = 16;
61
+ if (checkVersion) {
62
+ if (!checkVersion(VxeUI.tableVersion, pVersion, sVersion)) {
63
+ errLog('vxe.error.errorVersion', [`vxe-table@${VxeUI.tableVersion || '?'}`, `vxe-table v${pVersion}.${sVersion}+`]);
64
+ }
65
+ }
66
+ else {
67
+ errLog(`Requires vxe-table v${pVersion}.${sVersion}+`);
61
68
  }
62
69
  export { VxeUI };
63
70
  export default VxeUI;
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `gantt v${"4.0.0"}`;
3
+ const version = `gantt v${"4.0.1"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);