From 6de7c4258f16fe101dcc9e127fbce053fbea5fd0 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 24 九月 2022 13:29:09 +0800
Subject: [PATCH] 1.研究甘特图,之前调试出来好的甘特图样式没展现出来,现在已将样式调出来

---
 src/lib/v-gantt-chart/test/gtUtils.test.js |   66 ++++++++++++++++-----------------
 1 files changed, 32 insertions(+), 34 deletions(-)

diff --git a/src/components/v-gantt-chart/test/gtUtils.test.js b/src/lib/v-gantt-chart/test/gtUtils.test.js
similarity index 75%
rename from src/components/v-gantt-chart/test/gtUtils.test.js
rename to src/lib/v-gantt-chart/test/gtUtils.test.js
index d1e80ce..0a1af6f 100644
--- a/src/components/v-gantt-chart/test/gtUtils.test.js
+++ b/src/lib/v-gantt-chart/test/gtUtils.test.js
@@ -1,103 +1,101 @@
-var expect = require('chai').expect;
+var expect = require('chai').expect
 var func = require('../lib/utils/gtUtils')
 import dayjs from 'dayjs'
 
 describe('娴嬭瘯gtUtils.js', function() {
-
   describe('娴嬭瘯getWidthAbout2Times鍑芥暟', function() {
     it('鐩稿悓鏃堕棿 璁$畻缁撴灉涓�0', function() {
       expect(func.getWidthAbout2Times(dayjs(
-          '2018-10-10 10:00:00'), dayjs(
+        '2018-10-10 10:00:00'), dayjs(
         '2018-10-10 10:00:00'), {
-          scale: 60,
-          cellWidth: 60
-        }))
-        .to.be.equal(0);
-    });
+        scale: 60,
+        cellWidth: 60
+      }))
+        .to.be.equal(0)
+    })
 
     it('鏁版嵁娴嬭瘯1', function() {
       expect(func.getWidthAbout2Times(dayjs(
         '2018-10-10 10:00:00'), dayjs(
-      '2018-10-10 11:00:00'), {
+        '2018-10-10 11:00:00'), {
         scale: 60,
         cellWidth: 60
       })).to.equal(60)
-    });
+    })
 
     it('鏁版嵁娴嬭瘯2', function() {
       expect(func.getWidthAbout2Times(dayjs(
         '2018-10-10 00:00:00'), dayjs(
-      '2018-10-10 01:10:00'), {
+        '2018-10-10 01:10:00'), {
         scale: 1,
         cellWidth: 1
       })).to.equal(70)
-    });
+    })
 
     it('鏁版嵁娴嬭瘯3', function() {
       expect(func.getWidthAbout2Times(dayjs(
         '2018-10-11 10:00:00'), dayjs(
-      '2018-10-11 00:00:00'), {
+        '2018-10-11 00:00:00'), {
         scale: 10,
         cellWidth: 10
       })).to.equal(-600)
-    });
+    })
 
     it('鏁版嵁娴嬭瘯4', function() {
       expect(func.getWidthAbout2Times(dayjs(
         '2018-10-10 00:00:00'), dayjs(
-      '2018-10-10 10:00:00'), {
+        '2018-10-10 10:00:00'), {
         scale: 10,
         cellWidth: 60
       })).to.equal(3600)
-    });
-  });
+    })
+  })
 
   describe('娴嬭瘯getPositonOffset鍑芥暟', function() {
     it('鐩稿悓鏃堕棿 璁$畻缁撴灉涓�0', function() {
       expect(func.getPositonOffset(dayjs(
-          '2018-10-10 10:00:00'), dayjs(
+        '2018-10-10 10:00:00'), dayjs(
         '2018-10-10 10:00:00'), {
-          scale: 60,
-          cellWidth: 60
-        }))
-        .to.be.equal(0);
-    });
+        scale: 60,
+        cellWidth: 60
+      }))
+        .to.be.equal(0)
+    })
 
     it('鏁版嵁娴嬭瘯1', function() {
       expect(func.getPositonOffset(dayjs(
         '2018-10-10 10:00:00'), dayjs(
-      '2018-10-10 11:00:00'), {
+        '2018-10-10 11:00:00'), {
         scale: 60,
         cellWidth: 60
       })).to.equal(-60)
-    });
+    })
 
     it('鏁版嵁娴嬭瘯2', function() {
       expect(func.getPositonOffset(dayjs(
         '2018-10-10 00:00:00'), dayjs(
-      '2018-10-10 01:10:00'), {
+        '2018-10-10 01:10:00'), {
         scale: 60,
         cellWidth: 60
       })).to.equal(-70)
-    });
+    })
 
     it('鏁版嵁娴嬭瘯3', function() {
       expect(func.getPositonOffset(dayjs(
         '2018-10-11 10:00:00'), dayjs(
-      '2018-10-11 00:00:00'), {
+        '2018-10-11 00:00:00'), {
         scale: 60,
         cellWidth: 60
       })).to.equal(+600)
-    });
+    })
 
     it('鏁版嵁娴嬭瘯4', function() {
       expect(func.getPositonOffset(dayjs(
         '2018-10-10 00:00:00'), dayjs(
-      '2018-10-10 10:00:00'), {
+        '2018-10-10 10:00:00'), {
         scale: 60,
         cellWidth: 60
       })).to.equal(-600)
-    });
-  });
-
-});
\ No newline at end of file
+    })
+  })
+})

--
Gitblit v1.9.3