vxe-gantt 3.6.0 → 3.6.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.
@@ -293,6 +293,22 @@
293
293
  }
294
294
 
295
295
  /*分割条*/
296
+ .vxe-gantt--gantt-container {
297
+ &.is--ah-split-btn {
298
+ & > .vxe-gantt--view-split-bar {
299
+ .vxe-gantt--view-split-bar-action-btn {
300
+ opacity: 0;
301
+ }
302
+ }
303
+ &:hover {
304
+ & > .vxe-gantt--view-split-bar {
305
+ .vxe-gantt--view-split-bar-action-btn {
306
+ opacity: 1;
307
+ }
308
+ }
309
+ }
310
+ }
311
+ }
296
312
  .vxe-gantt--view-split-bar {
297
313
  position: relative;
298
314
  user-select: none;
@@ -306,33 +322,23 @@
306
322
  z-index: 3;
307
323
  }
308
324
  .vxe-gantt--view-split-bar-btn-wrapper {
309
- display: flex;
310
- flex-direction: column;
311
- align-items: center;
312
325
  position: absolute;
313
326
  left: 50%;
314
327
  top: 50%;
315
328
  transform: translate(-50%, -50%);
316
329
  z-index: 5;
317
330
  pointer-events: none;
318
- & > div {
319
- margin-top: 1em;
320
- &:first-child {
321
- margin-top: 0;
322
- }
323
- }
324
331
  }
325
- .vxe-gantt--view-split-bar-left-btn,
326
- .vxe-gantt--view-split-bar-right-btn {
332
+ .vxe-gantt--view-split-bar-action-btn {
333
+ position: absolute;
327
334
  display: flex;
328
335
  flex-direction: row;
329
336
  align-items: center;
330
337
  justify-content: center;
331
- height: var(--vxe-ui-gantt-view-split-bar-height);
332
- width: var(--vxe-ui-gantt-view-split-bar-width);
333
- color: var(--vxe-ui-layout-background-color);
338
+ height: var(--vxe-ui-gantt-view-split-bar-action-btn-height);
339
+ width: var(--vxe-ui-gantt-view-split-bar-action-btn-width);
334
340
  border-radius: var(--vxe-ui-base-border-radius);
335
- background-color: var(--vxe-ui-gantt-view-handle-background-color);
341
+ background-color: var(--vxe-ui-gantt-view-handle-button-background-color);
336
342
  border: 1px solid var(--vxe-ui-input-border-color);
337
343
  pointer-events: all;
338
344
  cursor: pointer;
@@ -345,10 +351,17 @@
345
351
  &:active {
346
352
  transform: scale(0.9);
347
353
  }
354
+ &.is--prev {
355
+ left: calc(var(--vxe-ui-gantt-view-split-bar-action-btn-width) * -1 - 0.2em);
356
+ }
357
+ &.is--next {
358
+ right: calc(var(--vxe-ui-gantt-view-split-bar-action-btn-width) * -1 - 0.2em);
359
+ }
348
360
  i {
349
361
  font-size: 0.5em;
350
362
  }
351
363
  }
364
+
352
365
  .vxe-gantt--resizable-split-tip {
353
366
  display: none;
354
367
  position: absolute;
@@ -2,13 +2,19 @@
2
2
  /*gantt*/
3
3
  --vxe-ui-gantt-view-default-cell-width: 2.6em;
4
4
  --vxe-ui-gantt-view-chart-bar-height: 1.6em;
5
- --vxe-ui-gantt-view-split-bar-width: 0.68em;
6
- --vxe-ui-gantt-view-split-bar-height: 3.2em;
5
+
6
+ --vxe-ui-gantt-view-split-bar-width: 2px;
7
+ --vxe-ui-gantt-view-split-bar-action-btn-width: 1.2em;
8
+ --vxe-ui-gantt-view-split-bar-action-btn-height: 2.4em;
9
+ --vxe-ui-gantt-view-handle-button-background-color: var(--vxe-ui-gantt-view-split-bar-background-color);
10
+
7
11
  --vxe-ui-gantt-view-table-default-width: 30%;
12
+
8
13
  --vxe-ui-gantt-view-task-bar-border-radius: calc(var(--vxe-ui-gantt-view-split-bar-height) / 2);
9
14
  --vxe-ui-gantt-view-task-bar-background-color: var(--vxe-ui-font-primary-lighten-color);
10
15
  --vxe-ui-gantt-view-task-bar-completed-background-color: var(--vxe-ui-font-primary-color);
11
16
  --vxe-ui-gantt-view-task-bar-overview-background-color: var(--vxe-ui-font-disabled-color);
17
+
12
18
  --vxe-ui-gantt-view-task-line-color: var(--vxe-ui-font-primary-color);
13
19
  --vxe-ui-gantt-view-task-line-width: 2px;
14
20
  --vxe-ui-gantt-view-task-line-arrow-width: 5;
@@ -2,7 +2,6 @@
2
2
 
3
3
  [data-vxe-ui-theme="dark"] {
4
4
  /*gantt*/
5
- --vxe-ui-gantt-view-handle-background-color: #9f9f9f;
6
5
  --vxe-ui-gantt-view-split-bar-background-color: #444444;
7
6
  --vxe-ui-gantt-view-split-bar-hover-background-color: #606060;
8
7
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  [data-vxe-ui-theme="light"] {
4
4
  /*gantt*/
5
- --vxe-ui-gantt-view-handle-background-color: #8b8b8b;
6
5
  --vxe-ui-gantt-view-split-bar-background-color: #e2e2e3;
7
6
  --vxe-ui-gantt-view-split-bar-hover-background-color: #d8d8d8;
8
7
  }