@robot-admin/naive-ui-components 0.11.6 → 0.11.8

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.
Files changed (125) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +5 -1
  3. package/README_EN.md +5 -1
  4. package/dist/C_ActionBar.css +59 -0
  5. package/dist/C_AudioPlayer.css +59 -0
  6. package/dist/C_Breadcrumb.css +59 -0
  7. package/dist/C_Captcha.css +24 -24
  8. package/dist/C_Captcha2.cjs +1 -1
  9. package/dist/C_Captcha2.js +1 -1
  10. package/dist/C_Chat.css +59 -0
  11. package/dist/C_Code.css +59 -0
  12. package/dist/C_CollapsePanel.css +59 -0
  13. package/dist/C_ContextMenu.css +59 -0
  14. package/dist/C_Guide.css +59 -0
  15. package/dist/C_Guide2.cjs +1 -1
  16. package/dist/C_Guide2.js +1 -1
  17. package/dist/C_Language.css +58 -1
  18. package/dist/C_Login.css +244 -0
  19. package/dist/C_Map.css +3 -3
  20. package/dist/C_Map2.cjs +1 -1
  21. package/dist/C_Map2.js +1 -1
  22. package/dist/C_Menu2.cjs +1 -1
  23. package/dist/C_Menu2.js +1 -1
  24. package/dist/C_Table.base.css +59 -0
  25. package/dist/C_Table.css +59 -0
  26. package/dist/C_TagsView.css +59 -0
  27. package/dist/C_Theme.css +58 -1
  28. package/dist/C_Timeline.css +59 -0
  29. package/dist/C_Transfer.css +59 -0
  30. package/dist/C_VtableGantt.css +19 -19
  31. package/dist/C_VtableGantt2.cjs +1 -1
  32. package/dist/C_VtableGantt2.js +1 -1
  33. package/dist/C_WorkFlow.css +59 -0
  34. package/dist/constants.d.cts +1 -1
  35. package/dist/constants.d.ts +1 -1
  36. package/dist/constants2.d.cts +3 -3
  37. package/dist/constants2.d.ts +3 -3
  38. package/dist/constants3.d.cts +1 -1
  39. package/dist/constants3.d.ts +1 -1
  40. package/dist/constants4.d.cts +6 -6
  41. package/dist/constants4.d.ts +6 -6
  42. package/dist/constants5.d.cts +2 -2
  43. package/dist/constants5.d.ts +2 -2
  44. package/dist/index10.vue.d.cts +2 -2
  45. package/dist/index10.vue.d.ts +2 -2
  46. package/dist/index11.vue.d.cts +2 -2
  47. package/dist/index11.vue.d.ts +1 -1
  48. package/dist/index12.vue.d.cts +1 -1
  49. package/dist/index12.vue.d.ts +4 -4
  50. package/dist/index13.vue.d.cts +4 -4
  51. package/dist/index13.vue.d.ts +3 -3
  52. package/dist/index14.vue.d.cts +3 -3
  53. package/dist/index14.vue.d.ts +7 -7
  54. package/dist/index15.vue.d.cts +7 -7
  55. package/dist/index15.vue.d.ts +1 -1
  56. package/dist/index16.vue.d.cts +1 -1
  57. package/dist/index16.vue.d.ts +1 -1
  58. package/dist/index17.vue.d.cts +1 -1
  59. package/dist/index17.vue.d.ts +3 -3
  60. package/dist/index18.vue.d.cts +3 -3
  61. package/dist/index18.vue.d.ts +4 -0
  62. package/dist/index19.vue.d.cts +1 -1
  63. package/dist/index19.vue.d.ts +1 -1
  64. package/dist/index2.vue.d.cts +4 -4
  65. package/dist/index2.vue.d.ts +4 -4
  66. package/dist/index20.vue.d.cts +1 -1
  67. package/dist/index20.vue.d.ts +1 -1
  68. package/dist/index21.vue.d.cts +2 -2
  69. package/dist/index21.vue.d.ts +2 -2
  70. package/dist/index22.vue.d.cts +2 -2
  71. package/dist/index22.vue.d.ts +2 -2
  72. package/dist/index24.vue.d.cts +5 -5
  73. package/dist/index24.vue.d.ts +5 -5
  74. package/dist/index25.vue.d.cts +1 -1
  75. package/dist/index25.vue.d.ts +1 -1
  76. package/dist/index26.vue.d.cts +2 -2
  77. package/dist/index26.vue.d.ts +2 -2
  78. package/dist/index27.vue.d.cts +2 -2
  79. package/dist/index27.vue.d.ts +2 -2
  80. package/dist/index3.vue.d.cts +3 -3
  81. package/dist/index3.vue.d.ts +3 -3
  82. package/dist/index4.vue.d.cts +4 -4
  83. package/dist/index4.vue.d.ts +4 -4
  84. package/dist/index5.vue.d.cts +4 -0
  85. package/dist/index7.vue.d.ts +4 -4
  86. package/dist/index8.vue.d.cts +4 -4
  87. package/dist/index9.vue.d.ts +2 -2
  88. package/dist/mapUtils.d.cts +2 -2
  89. package/dist/mapUtils.d.ts +2 -2
  90. package/dist/style.css +46 -46
  91. package/dist/useCalendarEvents.d.cts +2 -2
  92. package/dist/useCalendarEvents.d.ts +2 -2
  93. package/dist/useCollapsePanel.d.cts +1 -1
  94. package/dist/useCollapsePanel.d.ts +1 -1
  95. package/dist/useCropperCore.d.cts +8 -8
  96. package/dist/useCropperCore.d.ts +8 -8
  97. package/dist/useDraggableLayout.d.cts +4 -4
  98. package/dist/useDraggableLayout.d.ts +4 -4
  99. package/dist/useDynamicFormState.d.cts +3 -3
  100. package/dist/useDynamicFormState.d.ts +3 -3
  101. package/dist/useEdgeInteraction.d.cts +2 -2
  102. package/dist/useEdgeInteraction.d.ts +2 -2
  103. package/dist/useFullscreen.d.cts +2 -2
  104. package/dist/useFullscreen.d.ts +2 -2
  105. package/dist/useInfiniteScroll.d.cts +1 -1
  106. package/dist/useInfiniteScroll.d.ts +1 -1
  107. package/dist/useQRCode.d.cts +5 -5
  108. package/dist/useQRCode.d.ts +5 -5
  109. package/dist/useSearchState.d.cts +24 -24
  110. package/dist/useSearchState.d.ts +24 -24
  111. package/dist/useSignatureHistory.d.cts +2 -2
  112. package/dist/useSignatureHistory.d.ts +2 -2
  113. package/dist/useSplitResize.d.cts +7 -7
  114. package/dist/useSplitResize.d.ts +7 -7
  115. package/dist/useTableQuery.d.cts +1 -1
  116. package/dist/useTableQuery.d.ts +1 -1
  117. package/dist/useTimeSelection.d.cts +3 -3
  118. package/dist/useTimeSelection.d.ts +3 -3
  119. package/dist/useTreeOperations.d.cts +6 -6
  120. package/dist/useTreeOperations.d.ts +6 -6
  121. package/dist/useWorkflowValidation.d.cts +4 -4
  122. package/dist/useWorkflowValidation.d.ts +4 -4
  123. package/dist/verification.d.cts +2 -2
  124. package/dist/verification.d.ts +2 -2
  125. package/package.json +1 -1
@@ -1,3 +1,62 @@
1
+ /* unplugin-vue-components disabled */.c-icon[data-v-d0d8dba0] {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ user-select: none;
6
+ transition: all 0.2s ease-in-out;
7
+ }
8
+ .c-icon--clickable[data-v-d0d8dba0] {
9
+ cursor: pointer;
10
+ }
11
+ .c-icon--clickable[data-v-d0d8dba0]:hover {
12
+ opacity: 0.8;
13
+ transform: scale(1.05);
14
+ }
15
+ .c-icon--clickable[data-v-d0d8dba0]:active {
16
+ transform: scale(0.95);
17
+ }
18
+ .c-icon--clickable[data-v-d0d8dba0]:focus-visible {
19
+ outline: 2px solid currentColor;
20
+ outline-offset: 2px;
21
+ border-radius: 4px;
22
+ }
23
+ .c-icon--loading[data-v-d0d8dba0] {
24
+ opacity: 0.6;
25
+ cursor: wait;
26
+ }
27
+ .c-icon--error[data-v-d0d8dba0] {
28
+ opacity: 0.5;
29
+ }
30
+ .c-icon__loading[data-v-d0d8dba0] {
31
+ position: relative;
32
+ }
33
+ .c-icon__spinner[data-v-d0d8dba0] {
34
+ width: 100%;
35
+ height: 100%;
36
+ border: 2px solid currentColor;
37
+ border-radius: 50%;
38
+ border-top-color: transparent;
39
+ animation: spin-d0d8dba0 1s linear infinite;
40
+ }
41
+ .c-icon__error[data-v-d0d8dba0] {
42
+ font-size: 0.8em;
43
+ opacity: 0.5;
44
+ }
45
+ .c-icon__rotatable[data-v-d0d8dba0] {
46
+ transition: transform 0.3s ease-in-out;
47
+ }
48
+ .c-icon__flippable[data-v-d0d8dba0] {
49
+ transition: transform 0.3s ease-in-out;
50
+ }
51
+ @keyframes spin-d0d8dba0 {
52
+ 0% {
53
+ transform: rotate(0deg);
54
+ }
55
+ 100% {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
59
+
1
60
  /* unplugin-vue-components disabled */
2
61
  .c-form-default[data-v-f5303a7c] {
3
62
  width: 100%;
package/dist/C_Table.css CHANGED
@@ -1,3 +1,62 @@
1
+ /* unplugin-vue-components disabled */.c-icon[data-v-d0d8dba0] {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ user-select: none;
6
+ transition: all 0.2s ease-in-out;
7
+ }
8
+ .c-icon--clickable[data-v-d0d8dba0] {
9
+ cursor: pointer;
10
+ }
11
+ .c-icon--clickable[data-v-d0d8dba0]:hover {
12
+ opacity: 0.8;
13
+ transform: scale(1.05);
14
+ }
15
+ .c-icon--clickable[data-v-d0d8dba0]:active {
16
+ transform: scale(0.95);
17
+ }
18
+ .c-icon--clickable[data-v-d0d8dba0]:focus-visible {
19
+ outline: 2px solid currentColor;
20
+ outline-offset: 2px;
21
+ border-radius: 4px;
22
+ }
23
+ .c-icon--loading[data-v-d0d8dba0] {
24
+ opacity: 0.6;
25
+ cursor: wait;
26
+ }
27
+ .c-icon--error[data-v-d0d8dba0] {
28
+ opacity: 0.5;
29
+ }
30
+ .c-icon__loading[data-v-d0d8dba0] {
31
+ position: relative;
32
+ }
33
+ .c-icon__spinner[data-v-d0d8dba0] {
34
+ width: 100%;
35
+ height: 100%;
36
+ border: 2px solid currentColor;
37
+ border-radius: 50%;
38
+ border-top-color: transparent;
39
+ animation: spin-d0d8dba0 1s linear infinite;
40
+ }
41
+ .c-icon__error[data-v-d0d8dba0] {
42
+ font-size: 0.8em;
43
+ opacity: 0.5;
44
+ }
45
+ .c-icon__rotatable[data-v-d0d8dba0] {
46
+ transition: transform 0.3s ease-in-out;
47
+ }
48
+ .c-icon__flippable[data-v-d0d8dba0] {
49
+ transition: transform 0.3s ease-in-out;
50
+ }
51
+ @keyframes spin-d0d8dba0 {
52
+ 0% {
53
+ transform: rotate(0deg);
54
+ }
55
+ 100% {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
59
+
1
60
  :host,:root{--w-e-textarea-bg-color:#fff;--w-e-textarea-color:#333;--w-e-textarea-border-color:#ccc;--w-e-textarea-slight-border-color:#e8e8e8;--w-e-textarea-slight-color:#d4d4d4;--w-e-textarea-slight-bg-color:#f5f2f0;--w-e-textarea-selected-border-color:#b4d5ff;--w-e-textarea-handler-bg-color:#4290f7;--w-e-toolbar-color:#595959;--w-e-toolbar-bg-color:#fff;--w-e-toolbar-active-color:#333;--w-e-toolbar-active-bg-color:#f1f1f1;--w-e-toolbar-disabled-color:#999;--w-e-toolbar-border-color:#e8e8e8;--w-e-modal-button-bg-color:#fafafa;--w-e-modal-button-border-color:#d9d9d9}
2
61
  .w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th{line-height:1.5}.w-e-text-container sub,.w-e-text-container sup{line-height:inherit}.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.no-scroll{width:100%}.w-e-text-container .w-e-scroll{height:100%;-webkit-overflow-scrolling:touch}.w-e-text-container [data-slate-editor]{outline:0;white-space:pre-wrap;word-wrap:break-word;border-top:1px solid transparent;min-height:100%;padding:0 10px}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px #0000001f;position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;padding:5px 10px;text-align:center;top:40px;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after,.w-e-menu-tooltip-v5:before{opacity:0;position:absolute;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:after{border-color:transparent transparent var(--w-e-toolbar-active-color) transparent;border-style:solid;border-width:5px;content:"";top:30px}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-color:transparent var(--w-e-toolbar-active-color) transparent transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal button,.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color)}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{background-color:var(--w-e-toolbar-bg-color);font-feature-settings:"tnum";font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}
3
62
  .w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px 3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px 3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-color-ewtzuf{color:#000}.w-e-color-4xvty2{color:#262626}.w-e-color-sqycuk{color:#595959}.w-e-color-3z8psd{color:#8c8c8c}.w-e-color-wksmh8{color:#bfbfbf}.w-e-color-paasa7{color:#d9d9d9}.w-e-color-6bm9m5{color:#e9e9e9}.w-e-color-l91prz{color:#f5f5f5}.w-e-color-k3jp27{color:#fafafa}.w-e-color-67tap4{color:#fff}.w-e-color-tunwkj{color:#e13c39}.w-e-color-s85xre{color:#e75f33}.w-e-color-xx8cx7{color:#eb903a}.w-e-color-8hp23z{color:#f5db4d}.w-e-color-vbyzhj{color:#72c040}.w-e-color-a0scch{color:#59bfc0}.w-e-color-786vrv{color:#4290f7}.w-e-color-jztut9{color:#3658e2}.w-e-color-wh1hr9{color:#6a39c9}.w-e-color-enuf5u{color:#d84493}.w-e-color-ofga0e{color:#fbe9e6}.w-e-color-n2n1ob{color:#fcede1}.w-e-color-o0q9nf{color:#fcefd4}.w-e-color-e2ltc0{color:#fcfbcf}.w-e-color-sx4s4b{color:#e7f6d5}.w-e-color-t4t3jr{color:#daf4f0}.w-e-color-j4jejh{color:#d9edfa}.w-e-color-wb7pdv{color:#e0e8fa}.w-e-color-f3wgv5{color:#ede1f8}.w-e-color-omv2nm{color:#f6e2ea}.w-e-color-qn194t{color:#ffa39e}.w-e-color-mdg9z8{color:#ffbb96}.w-e-color-hl8b9g{color:#ffd591}.w-e-color-4bm5ce{color:#fffb8f}.w-e-color-xyf4ks{color:#b7eb8f}.w-e-color-wj8ykc{color:#87e8de}.w-e-color-9gfdr3{color:#91d5ff}.w-e-color-hsaivy{color:#adc6ff}.w-e-color-v3pqyx{color:#d3adf7}.w-e-color-5sw276{color:#ffadd2}.w-e-color-bsc56c{color:#ff4d4f}.w-e-color-qg254p{color:#ff7a45}.w-e-color-sg36qp{color:#ffa940}.w-e-color-6556xy{color:#ffec3d}.w-e-color-byp7re{color:#73d13d}.w-e-color-eyz4ng{color:#36cfc9}.w-e-color-9xmyha{color:#40a9ff}.w-e-color-g6x347{color:#597ef7}.w-e-color-qkkoll{color:#9254de}.w-e-color-4uljq8{color:#f759ab}.w-e-color-2zmrji{color:#cf1322}.w-e-color-8epkxl{color:#d4380d}.w-e-color-6ff92a{color:#d46b08}.w-e-color-6j9t63{color:#d4b106}.w-e-color-xsysfa{color:#389e0d}.w-e-color-qic72q{color:#08979c}.w-e-color-oounuc{color:#096dd9}.w-e-color-dcs2ck{color:#1d39c4}.w-e-color-nkq71x{color:#531dab}.w-e-color-v640ve{color:#c41d7f}.w-e-color-beewzy{color:#820014}.w-e-color-dsgatp{color:#871400}.w-e-color-du7iiy{color:#873800}.w-e-color-aoputq{color:#614700}.w-e-color-mkf87m{color:#135200}.w-e-color-l4iwsq{color:#00474f}.w-e-color-p38mu9{color:#003a8c}.w-e-color-z5ty33{color:#061178}.w-e-color-6t1egh{color:#22075e}.w-e-color-i6ncxa{color:#780650}.w-e-bg-color-704qgs{background-color:#000}.w-e-bg-color-fwpfd7{background-color:#262626}.w-e-bg-color-477xa6{background-color:#595959}.w-e-bg-color-nkdmaz{background-color:#8c8c8c}.w-e-bg-color-gndi0b{background-color:#bfbfbf}.w-e-bg-color-9cvnta{background-color:#d9d9d9}.w-e-bg-color-pwr64r{background-color:#e9e9e9}.w-e-bg-color-5bmlb2{background-color:#f5f5f5}.w-e-bg-color-464kla{background-color:#fafafa}.w-e-bg-color-psy77q{background-color:#fff}.w-e-bg-color-eol2qk{background-color:#e13c39}.w-e-bg-color-d233xf{background-color:#e75f33}.w-e-bg-color-pe10xx{background-color:#eb903a}.w-e-bg-color-zh1r48{background-color:#f5db4d}.w-e-bg-color-msrni9{background-color:#72c040}.w-e-bg-color-1hl0d7{background-color:#59bfc0}.w-e-bg-color-y7jks4{background-color:#4290f7}.w-e-bg-color-4tr0za{background-color:#3658e2}.w-e-bg-color-nxu5rz{background-color:#6a39c9}.w-e-bg-color-64n36k{background-color:#d84493}.w-e-bg-color-8i15jh{background-color:#fbe9e6}.w-e-bg-color-757x7e{background-color:#fcede1}.w-e-bg-color-83b56i{background-color:#fcefd4}.w-e-bg-color-xnqpum{background-color:#fcfbcf}.w-e-bg-color-czpnne{background-color:#e7f6d5}.w-e-bg-color-d7dz2u{background-color:#daf4f0}.w-e-bg-color-374a2k{background-color:#d9edfa}.w-e-bg-color-gdskwy{background-color:#e0e8fa}.w-e-bg-color-yp1ddr{background-color:#ede1f8}.w-e-bg-color-8pfy6p{background-color:#f6e2ea}.w-e-bg-color-apm4nw{background-color:#ffa39e}.w-e-bg-color-6g15ib{background-color:#ffbb96}.w-e-bg-color-1nt6sj{background-color:#ffd591}.w-e-bg-color-nwr1v0{background-color:#fffb8f}.w-e-bg-color-i1003v{background-color:#b7eb8f}.w-e-bg-color-gltu3f{background-color:#87e8de}.w-e-bg-color-t1ka9p{background-color:#91d5ff}.w-e-bg-color-1uvef1{background-color:#adc6ff}.w-e-bg-color-f6ami0{background-color:#d3adf7}.w-e-bg-color-pe0yps{background-color:#ffadd2}.w-e-bg-color-w4tcbw{background-color:#ff4d4f}.w-e-bg-color-hwut5f{background-color:#ff7a45}.w-e-bg-color-jwvurf{background-color:#ffa940}.w-e-bg-color-x4hvy7{background-color:#ffec3d}.w-e-bg-color-3fhvs4{background-color:#73d13d}.w-e-bg-color-6frso6{background-color:#36cfc9}.w-e-bg-color-1efmi0{background-color:#40a9ff}.w-e-bg-color-7npr4x{background-color:#597ef7}.w-e-bg-color-i1dcmb{background-color:#9254de}.w-e-bg-color-vty8qh{background-color:#f759ab}.w-e-bg-color-nc3yp2{background-color:#cf1322}.w-e-bg-color-sr6s35{background-color:#d4380d}.w-e-bg-color-qrwg7u{background-color:#d46b08}.w-e-bg-color-qvr0bn{background-color:#d4b106}.w-e-bg-color-imvylb{background-color:#389e0d}.w-e-bg-color-bc9d8r{background-color:#08979c}.w-e-bg-color-9iru0d{background-color:#096dd9}.w-e-bg-color-xp99i4{background-color:#1d39c4}.w-e-bg-color-8end7y{background-color:#531dab}.w-e-bg-color-mmwow4{background-color:#c41d7f}.w-e-bg-color-md8if3{background-color:#820014}.w-e-bg-color-or9w8u{background-color:#871400}.w-e-bg-color-ot13y3{background-color:#873800}.w-e-bg-color-b1gcxp{background-color:#614700}.w-e-bg-color-mx5qbl{background-color:#135200}.w-e-bg-color-lh9ewp{background-color:#00474f}.w-e-bg-color-ji79v{background-color:#003a8c}.w-e-bg-color-am3iip{background-color:#061178}.w-e-bg-color-75rwkg{background-color:#22075e}.w-e-bg-color-t5gycf{background-color:#780650}.w-e-font-size-okzesi{font-size:12px}.w-e-font-size-okzfj7{font-size:13px}.w-e-font-size-okzg9w{font-size:14px}.w-e-font-size-okzh0l{font-size:15px}.w-e-font-size-okzhra{font-size:16px}.w-e-font-size-okzjzd{font-size:19px}.w-e-font-size-ol01s1{font-size:22px}.w-e-font-size-ol039f{font-size:24px}.w-e-font-size-ol06yw{font-size:29px}.w-e-font-size-ol0ork{font-size:32px}.w-e-font-size-ol1a9p{font-size:40px}.w-e-font-size-ol1g79{font-size:48px}.w-e-font-family-u0ju81{font-family:黑体}.w-e-font-family-u06buz{font-family:仿宋}.w-e-font-family-u0ariz{font-family:楷体}.w-e-font-family-6uqaji{font-family:标楷体}.w-e-font-family-w9792n{font-family:华文仿宋}.w-e-font-family-w9boqn{font-family:华文楷体}.w-e-font-family-u08e9z{font-family:宋体}.w-e-font-family-xzvn93{font-family:微软雅黑}.w-e-font-family-nbqzij{font-family:Arial}.w-e-font-family-ljm044{font-family:Tahoma}.w-e-font-family-ohnbdm{font-family:Verdana}.w-e-font-family-hmdqt{font-family:Times New Roman}.w-e-font-family-qur2ze{font-family:Courier New}.w-e-text-align-g1w4xb{text-align:left}.w-e-text-align-8k65m7{text-align:center}.w-e-text-align-i96wy{text-align:right}.w-e-text-align-klzjuo{text-align:justify}.w-e-line-height-11is3t{line-height:1}.w-e-line-height-9qd9zn{line-height:1.15}.w-e-line-height-76rj3g{line-height:1.5}.w-e-line-height-11is3u{line-height:2}.w-e-line-height-76rju5{line-height:2.5}.w-e-line-height-11is3v{line-height:3}.w-e-indent-d1l1vd{text-indent:2em}.w-e-indent-dozaza{text-indent:24px}.w-e-indent-dozcgo{text-indent:26px}.w-e-indent-dozdy2{text-indent:28px}.w-e-indent-dozv01{text-indent:30px}.w-e-indent-dozwhf{text-indent:32px}.w-e-indent-dp00xl{text-indent:38px}.w-e-indent-dp0kyc{text-indent:44px}.w-e-indent-dp0nx4{text-indent:48px}.w-e-indent-dp1awn{text-indent:58px}.w-e-indent-dp1uxe{text-indent:64px}.w-e-indent-dp31xo{text-indent:80px}.w-e-indent-dp3tdd{text-indent:96px}.w-e-text-style-underline-offset{text-underline-offset:.15em}.w-e-text-style-wavy-underline{text-decoration-line:underline;text-decoration-style:wavy;text-underline-offset:.3em}.w-e-text-style-wavy-underline-with-emphasis{text-underline-offset:.8em}.w-e-text-style-emphasis-dot{-webkit-text-emphasis-position:under;text-emphasis-position:under left;-webkit-text-emphasis-style:filled dot;text-emphasis-style:filled dot}.w-e-text-style-emphasis-dot-with-wavy{line-height:2}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px 3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre.w-e-code-block{position:relative}.w-e-text-container [data-slate-editor] pre.w-e-code-block .w-e-code-block-copy-button{background-color:#fff;border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px;color:#666;cursor:pointer;font-size:12px;height:24px;line-height:1;min-width:56px;opacity:0;padding:0 8px;position:absolute;right:8px;top:8px;transition:opacity .15s ease;z-index:1}.w-e-text-container [data-slate-editor] pre.w-e-code-block .w-e-code-block-copy-button:focus,.w-e-text-container [data-slate-editor] pre.w-e-code-block:hover .w-e-code-block-copy-button{opacity:1}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [contenteditable=false] .w-e-image-container:hover,.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover{box-shadow:none}
@@ -1,3 +1,62 @@
1
+ /* unplugin-vue-components disabled */.c-icon[data-v-d0d8dba0] {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ user-select: none;
6
+ transition: all 0.2s ease-in-out;
7
+ }
8
+ .c-icon--clickable[data-v-d0d8dba0] {
9
+ cursor: pointer;
10
+ }
11
+ .c-icon--clickable[data-v-d0d8dba0]:hover {
12
+ opacity: 0.8;
13
+ transform: scale(1.05);
14
+ }
15
+ .c-icon--clickable[data-v-d0d8dba0]:active {
16
+ transform: scale(0.95);
17
+ }
18
+ .c-icon--clickable[data-v-d0d8dba0]:focus-visible {
19
+ outline: 2px solid currentColor;
20
+ outline-offset: 2px;
21
+ border-radius: 4px;
22
+ }
23
+ .c-icon--loading[data-v-d0d8dba0] {
24
+ opacity: 0.6;
25
+ cursor: wait;
26
+ }
27
+ .c-icon--error[data-v-d0d8dba0] {
28
+ opacity: 0.5;
29
+ }
30
+ .c-icon__loading[data-v-d0d8dba0] {
31
+ position: relative;
32
+ }
33
+ .c-icon__spinner[data-v-d0d8dba0] {
34
+ width: 100%;
35
+ height: 100%;
36
+ border: 2px solid currentColor;
37
+ border-radius: 50%;
38
+ border-top-color: transparent;
39
+ animation: spin-d0d8dba0 1s linear infinite;
40
+ }
41
+ .c-icon__error[data-v-d0d8dba0] {
42
+ font-size: 0.8em;
43
+ opacity: 0.5;
44
+ }
45
+ .c-icon__rotatable[data-v-d0d8dba0] {
46
+ transition: transform 0.3s ease-in-out;
47
+ }
48
+ .c-icon__flippable[data-v-d0d8dba0] {
49
+ transition: transform 0.3s ease-in-out;
50
+ }
51
+ @keyframes spin-d0d8dba0 {
52
+ 0% {
53
+ transform: rotate(0deg);
54
+ }
55
+ 100% {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
59
+
1
60
  /* unplugin-vue-components disabled *//* ===========================================
2
61
  * 标签组件样式 - 精简版
3
62
  * =========================================== */
package/dist/C_Theme.css CHANGED
@@ -1 +1,58 @@
1
- /* C_Theme has no component-specific styles. */
1
+ /* unplugin-vue-components disabled */.c-icon[data-v-d0d8dba0] {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ user-select: none;
6
+ transition: all 0.2s ease-in-out;
7
+ }
8
+ .c-icon--clickable[data-v-d0d8dba0] {
9
+ cursor: pointer;
10
+ }
11
+ .c-icon--clickable[data-v-d0d8dba0]:hover {
12
+ opacity: 0.8;
13
+ transform: scale(1.05);
14
+ }
15
+ .c-icon--clickable[data-v-d0d8dba0]:active {
16
+ transform: scale(0.95);
17
+ }
18
+ .c-icon--clickable[data-v-d0d8dba0]:focus-visible {
19
+ outline: 2px solid currentColor;
20
+ outline-offset: 2px;
21
+ border-radius: 4px;
22
+ }
23
+ .c-icon--loading[data-v-d0d8dba0] {
24
+ opacity: 0.6;
25
+ cursor: wait;
26
+ }
27
+ .c-icon--error[data-v-d0d8dba0] {
28
+ opacity: 0.5;
29
+ }
30
+ .c-icon__loading[data-v-d0d8dba0] {
31
+ position: relative;
32
+ }
33
+ .c-icon__spinner[data-v-d0d8dba0] {
34
+ width: 100%;
35
+ height: 100%;
36
+ border: 2px solid currentColor;
37
+ border-radius: 50%;
38
+ border-top-color: transparent;
39
+ animation: spin-d0d8dba0 1s linear infinite;
40
+ }
41
+ .c-icon__error[data-v-d0d8dba0] {
42
+ font-size: 0.8em;
43
+ opacity: 0.5;
44
+ }
45
+ .c-icon__rotatable[data-v-d0d8dba0] {
46
+ transition: transform 0.3s ease-in-out;
47
+ }
48
+ .c-icon__flippable[data-v-d0d8dba0] {
49
+ transition: transform 0.3s ease-in-out;
50
+ }
51
+ @keyframes spin-d0d8dba0 {
52
+ 0% {
53
+ transform: rotate(0deg);
54
+ }
55
+ 100% {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
@@ -1,3 +1,62 @@
1
+ /* unplugin-vue-components disabled */.c-icon[data-v-d0d8dba0] {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ user-select: none;
6
+ transition: all 0.2s ease-in-out;
7
+ }
8
+ .c-icon--clickable[data-v-d0d8dba0] {
9
+ cursor: pointer;
10
+ }
11
+ .c-icon--clickable[data-v-d0d8dba0]:hover {
12
+ opacity: 0.8;
13
+ transform: scale(1.05);
14
+ }
15
+ .c-icon--clickable[data-v-d0d8dba0]:active {
16
+ transform: scale(0.95);
17
+ }
18
+ .c-icon--clickable[data-v-d0d8dba0]:focus-visible {
19
+ outline: 2px solid currentColor;
20
+ outline-offset: 2px;
21
+ border-radius: 4px;
22
+ }
23
+ .c-icon--loading[data-v-d0d8dba0] {
24
+ opacity: 0.6;
25
+ cursor: wait;
26
+ }
27
+ .c-icon--error[data-v-d0d8dba0] {
28
+ opacity: 0.5;
29
+ }
30
+ .c-icon__loading[data-v-d0d8dba0] {
31
+ position: relative;
32
+ }
33
+ .c-icon__spinner[data-v-d0d8dba0] {
34
+ width: 100%;
35
+ height: 100%;
36
+ border: 2px solid currentColor;
37
+ border-radius: 50%;
38
+ border-top-color: transparent;
39
+ animation: spin-d0d8dba0 1s linear infinite;
40
+ }
41
+ .c-icon__error[data-v-d0d8dba0] {
42
+ font-size: 0.8em;
43
+ opacity: 0.5;
44
+ }
45
+ .c-icon__rotatable[data-v-d0d8dba0] {
46
+ transition: transform 0.3s ease-in-out;
47
+ }
48
+ .c-icon__flippable[data-v-d0d8dba0] {
49
+ transition: transform 0.3s ease-in-out;
50
+ }
51
+ @keyframes spin-d0d8dba0 {
52
+ 0% {
53
+ transform: rotate(0deg);
54
+ }
55
+ 100% {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
59
+
1
60
  /* unplugin-vue-components disabled */.c-timeline[data-v-671bd4b6] {
2
61
  --tl-bg: transparent;
3
62
  --tl-text-primary: var(--app-text-primary);
@@ -1,3 +1,62 @@
1
+ /* unplugin-vue-components disabled */.c-icon[data-v-d0d8dba0] {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ user-select: none;
6
+ transition: all 0.2s ease-in-out;
7
+ }
8
+ .c-icon--clickable[data-v-d0d8dba0] {
9
+ cursor: pointer;
10
+ }
11
+ .c-icon--clickable[data-v-d0d8dba0]:hover {
12
+ opacity: 0.8;
13
+ transform: scale(1.05);
14
+ }
15
+ .c-icon--clickable[data-v-d0d8dba0]:active {
16
+ transform: scale(0.95);
17
+ }
18
+ .c-icon--clickable[data-v-d0d8dba0]:focus-visible {
19
+ outline: 2px solid currentColor;
20
+ outline-offset: 2px;
21
+ border-radius: 4px;
22
+ }
23
+ .c-icon--loading[data-v-d0d8dba0] {
24
+ opacity: 0.6;
25
+ cursor: wait;
26
+ }
27
+ .c-icon--error[data-v-d0d8dba0] {
28
+ opacity: 0.5;
29
+ }
30
+ .c-icon__loading[data-v-d0d8dba0] {
31
+ position: relative;
32
+ }
33
+ .c-icon__spinner[data-v-d0d8dba0] {
34
+ width: 100%;
35
+ height: 100%;
36
+ border: 2px solid currentColor;
37
+ border-radius: 50%;
38
+ border-top-color: transparent;
39
+ animation: spin-d0d8dba0 1s linear infinite;
40
+ }
41
+ .c-icon__error[data-v-d0d8dba0] {
42
+ font-size: 0.8em;
43
+ opacity: 0.5;
44
+ }
45
+ .c-icon__rotatable[data-v-d0d8dba0] {
46
+ transition: transform 0.3s ease-in-out;
47
+ }
48
+ .c-icon__flippable[data-v-d0d8dba0] {
49
+ transition: transform 0.3s ease-in-out;
50
+ }
51
+ @keyframes spin-d0d8dba0 {
52
+ 0% {
53
+ transform: rotate(0deg);
54
+ }
55
+ 100% {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
59
+
1
60
  /* unplugin-vue-components disabled *//**
2
61
  * C_Transfer — 穿梭框组件样式
3
62
  * 变量说明:
@@ -1,5 +1,5 @@
1
1
  /* unplugin-vue-components disabled *//* 甘特图组件样式 */
2
- .c-vtable-gantt-wrapper[data-v-1fc4d705] {
2
+ .c-vtable-gantt-wrapper[data-v-cadc6c9b] {
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  border: 1px solid var(--c-border, #e1e4e8);
@@ -8,7 +8,7 @@
8
8
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
9
9
  height: 100%;
10
10
  }
11
- .c-vtable-gantt-wrapper .gantt-toolbar[data-v-1fc4d705] {
11
+ .c-vtable-gantt-wrapper .gantt-toolbar[data-v-cadc6c9b] {
12
12
  display: flex;
13
13
  justify-content: space-between;
14
14
  align-items: center;
@@ -17,75 +17,75 @@
17
17
  min-height: 48px;
18
18
  flex-shrink: 0;
19
19
  }
20
- .c-vtable-gantt-wrapper .gantt-toolbar .toolbar-left .gantt-title[data-v-1fc4d705] {
20
+ .c-vtable-gantt-wrapper .gantt-toolbar .toolbar-left .gantt-title[data-v-cadc6c9b] {
21
21
  font-size: 16px;
22
22
  font-weight: 600;
23
23
  color: var(--c-text-1, #333);
24
24
  }
25
- .c-vtable-gantt-wrapper .gantt-toolbar .toolbar-right[data-v-1fc4d705] {
25
+ .c-vtable-gantt-wrapper .gantt-toolbar .toolbar-right[data-v-cadc6c9b] {
26
26
  display: flex;
27
27
  gap: 8px;
28
28
  align-items: center;
29
29
  }
30
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] {
30
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] {
31
31
  flex: 1;
32
32
  position: relative;
33
33
  min-height: 400px;
34
34
  overflow: hidden;
35
35
  /* 确保甘特图组件完全填充容器 */
36
36
  }
37
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] > * {
37
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] > * {
38
38
  width: 100%;
39
39
  height: 100%;
40
40
  }
41
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] {
41
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] {
42
42
  /* 确保甘特图内部组件正确填充 */
43
43
  }
44
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] .vtable-gantt {
44
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] .vtable-gantt {
45
45
  width: 100% !important;
46
46
  height: 100% !important;
47
47
  overflow: hidden;
48
48
  }
49
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] .vtable-gantt * {
49
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] .vtable-gantt * {
50
50
  backface-visibility: hidden;
51
51
  transform: translateZ(0);
52
52
  -webkit-font-smoothing: subpixel-antialiased;
53
53
  }
54
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] {
54
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] {
55
55
  /* 防止内部表格自动调整高度 */
56
56
  }
57
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] .vtable-gantt-table {
57
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] .vtable-gantt-table {
58
58
  height: 100% !important;
59
59
  box-sizing: border-box;
60
60
  }
61
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] {
61
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] {
62
62
  /* 防止拖动时底部色块闪烁 */
63
63
  }
64
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] .vtable-gantt-chart {
64
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] .vtable-gantt-chart {
65
65
  position: relative;
66
66
  overflow: hidden;
67
67
  will-change: transform;
68
68
  transform: translateZ(0);
69
69
  }
70
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] {
70
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] {
71
71
  /* 针对拖动元素的优化 */
72
72
  }
73
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] .vtable-gantt-task {
73
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] .vtable-gantt-task {
74
74
  backface-visibility: hidden;
75
75
  transform: translateZ(0);
76
76
  }
77
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] .vtable-gantt-task.dragging {
77
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] .vtable-gantt-task.dragging {
78
78
  z-index: 1000;
79
79
  pointer-events: none;
80
80
  }
81
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] {
81
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] {
82
82
  /* 防止拖动时底部区域的重绘闪烁 */
83
83
  }
84
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] .vtable-gantt-chart-container {
84
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] .vtable-gantt-chart-container {
85
85
  position: relative;
86
86
  overflow: hidden;
87
87
  }
88
- .c-vtable-gantt-wrapper .gantt-container[data-v-1fc4d705] .vtable-gantt-chart-container::after {
88
+ .c-vtable-gantt-wrapper .gantt-container[data-v-cadc6c9b] .vtable-gantt-chart-container::after {
89
89
  content: "";
90
90
  position: absolute;
91
91
  bottom: 0;
@@ -1 +1 @@
1
- require(`./chunk.cjs`);const e=require(`./C_Icon2.cjs`),t=require(`./export-helper.cjs`);let n=require(`vue`),r=require(`naive-ui`);const i={headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:[1,0,1,0],fontSize:13}},a={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:i},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`#e1e4e8`,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:2}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:i,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...i.headerStyle},bodyStyle:i.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`rgba(128, 128, 128, 0.3)`,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...i.headerStyle,borderColor:`#ffa940`},bodyStyle:{...i.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12,fontWeight:`bold`},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...i.headerStyle,fontSize:18,color:`red`},bodyStyle:{...i.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3},horizontalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{backgroundColor:`#EEF1F5`,colWidth:60,horizontalLine:{lineWidth:1,lineColor:`#e1e4e8`},verticalLine:{lineWidth:1,lineColor:`#e1e4e8`},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}}},o={class:`c-vtable-gantt-wrapper`},s={key:0,class:`gantt-toolbar`},c={class:`toolbar-left`},l={class:`gantt-title`},u={class:`toolbar-right`},d=(0,n.defineComponent)({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{default:`light`}},emits:[`ganttCreated`,`taskClick`,`taskChange`],setup(t,{expose:i,emit:d}){let f=t,p=d,m=(0,n.ref)(),h=(0,n.ref)(),g=(0,n.ref)(!1),_=(0,n.computed)(()=>typeof f.height==`number`?`${f.height}px`:f.height),v=(e,t,n=new WeakMap)=>y(e)?y(t)?n.has(t)?n.get(t):x(e,t,n):e:t,y=e=>typeof e==`object`&&!!e,b=e=>e instanceof Date||e instanceof RegExp,x=(e,t,n)=>{let r=Array.isArray(e)?[...e]:{...e};n.set(t,r);for(let i in t){if(!t.hasOwnProperty(i))continue;let a=t[i];r[i]=y(a)&&!Array.isArray(a)&&!b(a)?v(e[i]||{},a,n):a}return r},S=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?S(e.children):void 0})),C=e=>({underlayBackgroundColor:e?`#1e1e1e`:`#ffffff`,timelineHeaderBg:e?`#2d2d2d`:`#EEF1F5`,gridBg:e?`#1e1e1e`:`#ffffff`,lineColor:e?`rgba(255, 255, 255, 0.1)`:`rgba(128, 128, 128, 0.2)`,textColor:e?`#ffffff`:`#000000`}),w=(e,t)=>({...e,backgroundColor:t.timelineHeaderBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor},scales:e?.scales?.map(e=>({...e,style:{...e.style,color:t.textColor}}))}),T=(e,t)=>({...e,backgroundColor:t.gridBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor}}),E=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n},timelineHeader:w(e.timelineHeader,r),grid:T(e.grid,r)}),D=e=>{e.on(`click_cell`,e=>{let{record:t,event:n}=e||{};t&&p(`taskClick`,t,n)}),e.on(`change_data`,e=>{let{record:t,changes:n}=e||{};t&&n&&p(`taskChange`,t,n)})},O=async()=>{if(m.value)try{let{Gantt:e}=await import(`@visactor/vtable-gantt`),{themes:t}=await import(`@visactor/vtable`),n=f.theme===`dark`,r=v(a[f.preset]||a.basic,f.options),i=S(f.data||[]);h.value&&h.value.release();let o=E(r,i,n?t.DARK:t.DEFAULT,C(n));h.value=new e(m.value,o),D(h.value),p(`ganttCreated`,h.value)}catch(e){console.error(`甘特图初始化失败:`,e)}},k=async()=>{if(m.value)try{document.fullscreenElement?(await document.exitFullscreen(),g.value=!1):(await m.value.requestFullscreen(),g.value=!0),setTimeout(()=>h.value?.resize?.(),100)}catch(e){console.warn(`全屏切换失败:`,e),g.value=!g.value,(0,n.nextTick)(()=>h.value?.resize?.())}},A=()=>{g.value=!!document.fullscreenElement,(0,n.nextTick)(()=>h.value?.resize?.())},j=e=>{if(h.value&&e)try{h.value.setRecords(S(e))}catch(e){console.warn(`更新数据失败:`,e)}},M=e=>{if(h.value&&e)try{h.value.updateOption(e)}catch(e){console.warn(`更新配置失败:`,e)}},N=()=>{if(h.value)try{h.value.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}finally{h.value=void 0}};return(0,n.watch)(()=>f.data,e=>{e&&h.value&&j(e)},{deep:!0}),(0,n.watch)(()=>[f.options,f.preset],()=>(0,n.nextTick)(()=>O()),{deep:!0}),(0,n.watch)(()=>f.theme,()=>(0,n.nextTick)(()=>O())),(0,n.onMounted)(()=>{document.addEventListener(`fullscreenchange`,A),(0,n.nextTick)(()=>setTimeout(()=>O(),100))}),(0,n.onUnmounted)(()=>{document.removeEventListener(`fullscreenchange`,A),N()}),i({ganttInstance:h,updateData:j,updateOptions:M,toggleFullscreen:k}),(i,a)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,o,[t.showToolbar?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,s,[(0,n.createElementVNode)(`div`,c,[(0,n.createElementVNode)(`span`,l,(0,n.toDisplayString)(t.title||`甘特图`),1)]),(0,n.createElementVNode)(`div`,u,[t.showFullscreenButton?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.NButton),{key:0,size:`small`,onClick:k},{icon:(0,n.withCtx)(()=>[(0,n.createVNode)(e.t,{name:g.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:(0,n.withCtx)(()=>[(0,n.createTextVNode)(` `+(0,n.toDisplayString)(g.value?`退出全屏`:`全屏`),1)]),_:1})):(0,n.createCommentVNode)(`v-if`,!0)])])):(0,n.createCommentVNode)(`v-if`,!0),(0,n.createElementVNode)(`div`,{ref_key:`ganttContainerRef`,ref:m,class:`gantt-container`,style:(0,n.normalizeStyle)({height:_.value})},null,4)]))}});var f=t.t(d,[[`__scopeId`,`data-v-1fc4d705`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
1
+ require(`./chunk.cjs`);const e=require(`./C_Icon2.cjs`),t=require(`./export-helper.cjs`);let n=require(`vue`),r=require(`naive-ui`);const i={headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:[1,0,1,0],fontSize:13}},a={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:i},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`#e1e4e8`,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:2}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:i,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...i.headerStyle},bodyStyle:i.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`rgba(128, 128, 128, 0.3)`,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...i.headerStyle,borderColor:`#ffa940`},bodyStyle:{...i.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12,fontWeight:`bold`},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...i.headerStyle,fontSize:18,color:`red`},bodyStyle:{...i.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3},horizontalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{backgroundColor:`#EEF1F5`,colWidth:60,horizontalLine:{lineWidth:1,lineColor:`#e1e4e8`},verticalLine:{lineWidth:1,lineColor:`#e1e4e8`},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}}},o={class:`c-vtable-gantt-wrapper`},s={key:0,class:`gantt-toolbar`},c={class:`toolbar-left`},l={class:`gantt-title`},u={class:`toolbar-right`},d=(0,n.defineComponent)({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{default:`light`}},emits:[`ganttCreated`,`taskClick`,`taskChange`],setup(t,{expose:i,emit:d}){let f=t,p=d,m=(0,n.ref)(),h=(0,n.ref)(),g=(0,n.ref)(!1),_=0,v,y=!1,b=(0,n.computed)(()=>typeof f.height==`number`?`${f.height}px`:f.height),x=(e,t)=>!y&&e===_&&m.value===t,S=(e,t,n=new WeakMap)=>C(e)?C(t)?n.has(t)?n.get(t):T(e,t,n):e:t,C=e=>typeof e==`object`&&!!e,w=e=>e instanceof Date||e instanceof RegExp,T=(e,t,n)=>{let r=Array.isArray(e)?[...e]:{...e};n.set(t,r);for(let i in t){if(!t.hasOwnProperty(i))continue;let a=t[i];r[i]=C(a)&&!Array.isArray(a)&&!w(a)?S(e[i]||{},a,n):a}return r},E=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?E(e.children):void 0})),D=e=>({underlayBackgroundColor:e?`#1e1e1e`:`#ffffff`,timelineHeaderBg:e?`#2d2d2d`:`#EEF1F5`,gridBg:e?`#1e1e1e`:`#ffffff`,lineColor:e?`rgba(255, 255, 255, 0.1)`:`rgba(128, 128, 128, 0.2)`,textColor:e?`#ffffff`:`#000000`}),O=(e,t)=>({...e,backgroundColor:t.timelineHeaderBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor},scales:e?.scales?.map(e=>({...e,style:{...e.style,color:t.textColor}}))}),k=(e,t)=>({...e,backgroundColor:t.gridBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor}}),A=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n},timelineHeader:O(e.timelineHeader,r),grid:k(e.grid,r)}),j=e=>{e.on(`click_cell`,e=>{let{record:t,event:n}=e||{};t&&p(`taskClick`,t,n)}),e.on(`change_data`,e=>{let{record:t,changes:n}=e||{};t&&n&&p(`taskChange`,t,n)})},M=async()=>{let e=m.value;if(!e||y)return;let t=++_;try{let{Gantt:n}=await import(`@visactor/vtable-gantt`),{themes:r}=await import(`@visactor/vtable`);if(!x(t,e))return;let i=f.theme===`dark`,o=S(a[f.preset]||a.basic,f.options),s=E(f.data||[]);h.value&&h.value.release();let c=new n(e,A(o,s,i?r.DARK:r.DEFAULT,D(i)));if(!x(t,e)){c.release();return}h.value=c,j(c),p(`ganttCreated`,c)}catch(e){console.error(`甘特图初始化失败:`,e)}},N=async()=>{if(m.value)try{document.fullscreenElement?(await document.exitFullscreen(),g.value=!1):(await m.value.requestFullscreen(),g.value=!0),setTimeout(()=>h.value?.resize?.(),100)}catch(e){console.warn(`全屏切换失败:`,e),g.value=!g.value,(0,n.nextTick)(()=>h.value?.resize?.())}},P=()=>{g.value=!!document.fullscreenElement,(0,n.nextTick)(()=>h.value?.resize?.())},F=e=>{if(h.value&&e)try{h.value.setRecords(E(e))}catch(e){console.warn(`更新数据失败:`,e)}},I=e=>{if(h.value&&e)try{h.value.updateOption(e)}catch(e){console.warn(`更新配置失败:`,e)}},L=()=>{if(h.value)try{h.value.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}finally{h.value=void 0}};return(0,n.watch)(()=>f.data,e=>{e&&h.value&&F(e)},{deep:!0}),(0,n.watch)(()=>[f.options,f.preset],()=>(0,n.nextTick)(()=>M()),{deep:!0}),(0,n.watch)(()=>f.theme,()=>(0,n.nextTick)(()=>M())),(0,n.onMounted)(()=>{y=!1,document.addEventListener(`fullscreenchange`,P),(0,n.nextTick)(()=>{y||(v=setTimeout(()=>M(),100))})}),(0,n.onUnmounted)(()=>{y=!0,_+=1,v&&clearTimeout(v),document.removeEventListener(`fullscreenchange`,P),L()}),i({ganttInstance:h,updateData:F,updateOptions:I,toggleFullscreen:N}),(i,a)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,o,[t.showToolbar?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,s,[(0,n.createElementVNode)(`div`,c,[(0,n.createElementVNode)(`span`,l,(0,n.toDisplayString)(t.title||`甘特图`),1)]),(0,n.createElementVNode)(`div`,u,[t.showFullscreenButton?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.NButton),{key:0,size:`small`,onClick:N},{icon:(0,n.withCtx)(()=>[(0,n.createVNode)(e.t,{name:g.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:(0,n.withCtx)(()=>[(0,n.createTextVNode)(` `+(0,n.toDisplayString)(g.value?`退出全屏`:`全屏`),1)]),_:1})):(0,n.createCommentVNode)(`v-if`,!0)])])):(0,n.createCommentVNode)(`v-if`,!0),(0,n.createElementVNode)(`div`,{ref_key:`ganttContainerRef`,ref:m,class:`gantt-container`,style:(0,n.normalizeStyle)({height:b.value})},null,4)]))}});var f=t.t(d,[[`__scopeId`,`data-v-cadc6c9b`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
@@ -1 +1 @@
1
- import{t as e}from"./C_Icon2.js";import{t}from"./export-helper.js";import{computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createTextVNode as s,createVNode as c,defineComponent as l,nextTick as u,normalizeStyle as d,onMounted as f,onUnmounted as p,openBlock as m,ref as h,toDisplayString as g,unref as _,watch as v,withCtx as y}from"vue";import{NButton as b}from"naive-ui";const x={headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:[1,0,1,0],fontSize:13}},S={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:x},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`#e1e4e8`,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:2}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:x,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...x.headerStyle},bodyStyle:x.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`rgba(128, 128, 128, 0.3)`,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...x.headerStyle,borderColor:`#ffa940`},bodyStyle:{...x.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12,fontWeight:`bold`},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...x.headerStyle,fontSize:18,color:`red`},bodyStyle:{...x.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3},horizontalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{backgroundColor:`#EEF1F5`,colWidth:60,horizontalLine:{lineWidth:1,lineColor:`#e1e4e8`},verticalLine:{lineWidth:1,lineColor:`#e1e4e8`},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}}},C={class:`c-vtable-gantt-wrapper`},w={key:0,class:`gantt-toolbar`},T={class:`toolbar-left`},E={class:`gantt-title`},D={class:`toolbar-right`};var O=t(l({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{default:`light`}},emits:[`ganttCreated`,`taskClick`,`taskChange`],setup(t,{expose:l,emit:x}){let O=t,k=x,A=h(),j=h(),M=h(!1),N=n(()=>typeof O.height==`number`?`${O.height}px`:O.height),P=(e,t,n=new WeakMap)=>F(e)?F(t)?n.has(t)?n.get(t):L(e,t,n):e:t,F=e=>typeof e==`object`&&!!e,I=e=>e instanceof Date||e instanceof RegExp,L=(e,t,n)=>{let r=Array.isArray(e)?[...e]:{...e};n.set(t,r);for(let i in t){if(!t.hasOwnProperty(i))continue;let a=t[i];r[i]=F(a)&&!Array.isArray(a)&&!I(a)?P(e[i]||{},a,n):a}return r},R=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?R(e.children):void 0})),z=e=>({underlayBackgroundColor:e?`#1e1e1e`:`#ffffff`,timelineHeaderBg:e?`#2d2d2d`:`#EEF1F5`,gridBg:e?`#1e1e1e`:`#ffffff`,lineColor:e?`rgba(255, 255, 255, 0.1)`:`rgba(128, 128, 128, 0.2)`,textColor:e?`#ffffff`:`#000000`}),B=(e,t)=>({...e,backgroundColor:t.timelineHeaderBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor},scales:e?.scales?.map(e=>({...e,style:{...e.style,color:t.textColor}}))}),V=(e,t)=>({...e,backgroundColor:t.gridBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor}}),H=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n},timelineHeader:B(e.timelineHeader,r),grid:V(e.grid,r)}),U=e=>{e.on(`click_cell`,e=>{let{record:t,event:n}=e||{};t&&k(`taskClick`,t,n)}),e.on(`change_data`,e=>{let{record:t,changes:n}=e||{};t&&n&&k(`taskChange`,t,n)})},W=async()=>{if(A.value)try{let{Gantt:e}=await import(`@visactor/vtable-gantt`),{themes:t}=await import(`@visactor/vtable`),n=O.theme===`dark`,r=P(S[O.preset]||S.basic,O.options),i=R(O.data||[]);j.value&&j.value.release();let a=H(r,i,n?t.DARK:t.DEFAULT,z(n));j.value=new e(A.value,a),U(j.value),k(`ganttCreated`,j.value)}catch(e){console.error(`甘特图初始化失败:`,e)}},G=async()=>{if(A.value)try{document.fullscreenElement?(await document.exitFullscreen(),M.value=!1):(await A.value.requestFullscreen(),M.value=!0),setTimeout(()=>j.value?.resize?.(),100)}catch(e){console.warn(`全屏切换失败:`,e),M.value=!M.value,u(()=>j.value?.resize?.())}},K=()=>{M.value=!!document.fullscreenElement,u(()=>j.value?.resize?.())},q=e=>{if(j.value&&e)try{j.value.setRecords(R(e))}catch(e){console.warn(`更新数据失败:`,e)}},J=e=>{if(j.value&&e)try{j.value.updateOption(e)}catch(e){console.warn(`更新配置失败:`,e)}},Y=()=>{if(j.value)try{j.value.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}finally{j.value=void 0}};return v(()=>O.data,e=>{e&&j.value&&q(e)},{deep:!0}),v(()=>[O.options,O.preset],()=>u(()=>W()),{deep:!0}),v(()=>O.theme,()=>u(()=>W())),f(()=>{document.addEventListener(`fullscreenchange`,K),u(()=>setTimeout(()=>W(),100))}),p(()=>{document.removeEventListener(`fullscreenchange`,K),Y()}),l({ganttInstance:j,updateData:q,updateOptions:J,toggleFullscreen:G}),(n,l)=>(m(),a(`div`,C,[t.showToolbar?(m(),a(`div`,w,[o(`div`,T,[o(`span`,E,g(t.title||`甘特图`),1)]),o(`div`,D,[t.showFullscreenButton?(m(),r(_(b),{key:0,size:`small`,onClick:G},{icon:y(()=>[c(e,{name:M.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:y(()=>[s(` `+g(M.value?`退出全屏`:`全屏`),1)]),_:1})):i(`v-if`,!0)])])):i(`v-if`,!0),o(`div`,{ref_key:`ganttContainerRef`,ref:A,class:`gantt-container`,style:d({height:N.value})},null,4)]))}}),[[`__scopeId`,`data-v-1fc4d705`]]);export{S as n,O as t};
1
+ import{t as e}from"./C_Icon2.js";import{t}from"./export-helper.js";import{computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createTextVNode as s,createVNode as c,defineComponent as l,nextTick as u,normalizeStyle as d,onMounted as f,onUnmounted as p,openBlock as m,ref as h,toDisplayString as g,unref as _,watch as v,withCtx as y}from"vue";import{NButton as b}from"naive-ui";const x={headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:1,fontSize:14,fontWeight:`bold`},bodyStyle:{borderColor:`rgba(128, 128, 128, 0.2)`,borderLineWidth:[1,0,1,0],fontSize:13}},S={basic:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:220,tree:!0},{field:`start`,title:`开始时间`,width:120},{field:`end`,title:`结束时间`,width:120},{field:`progress`,title:`进度`,width:80}],tableWidth:420,minTableWidth:300,theme:x},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`#e1e4e8`,cornerRadius:6},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:2}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:18,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:4,borderLineWidth:0},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:1,fillColor:`#ffd666`,width:12}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:12,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},project:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`任务名称`,width:200,tree:!0,editor:`input`},{field:`start`,title:`开始时间`,width:120,editor:`date-input`},{field:`end`,title:`结束时间`,width:120,editor:`date-input`},{field:`priority`,title:`优先级`,width:80,editor:`input`},{field:`progress`,title:`进度%`,width:80,editor:`input`}],tableWidth:480,minTableWidth:350,maxTableWidth:800,theme:x,hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(24, 144, 255, 0.3)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:12,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#1890ff`,completedBarColor:`#52c41a`,cornerRadius:6,borderLineWidth:0}},timelineHeader:{colWidth:60,horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},scales:[{unit:`week`,step:1,startOfWeek:`monday`,format:e=>`第${e.dateIndex}周`,style:{fontSize:13,fontWeight:`bold`,textAlign:`center`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11,textAlign:`center`}}]},rowSeriesNumber:{title:`序号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},timeline:{overscrollBehavior:`none`,headerRowHeight:45,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`事件名称`,width:250,tree:!0},{field:`start`,title:`时间`,width:150}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...x.headerStyle},bodyStyle:x.bodyStyle}},frame:{outerFrameStyle:{borderLineWidth:1,borderColor:`rgba(128, 128, 128, 0.3)`,cornerRadius:4},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,labelText:`{title}`,labelTextStyle:{fontSize:12,textAlign:`left`},barStyle:{width:22,barColor:`#722ed1`,completedBarColor:`#b37feb`,cornerRadius:8,borderLineWidth:0}},timelineHeader:{colWidth:60,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`day`,step:1,format:e=>`${e.dateIndex}`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},milestone:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:38,taskListTable:{columns:[{field:`title`,title:`里程碑`,width:200,tree:!0},{field:`start`,title:`目标日期`,width:120},{field:`priority`,title:`重要性`,width:100}],tableWidth:400,minTableWidth:300,theme:{headerStyle:{...x.headerStyle,borderColor:`#ffa940`},bodyStyle:{...x.bodyStyle,borderColor:`#ffa940`}}},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#ffa940`,cornerRadius:6},verticalSplitLineMoveable:!0},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`},horizontalLine:{lineWidth:1,lineColor:`rgba(255, 168, 64, 0.3)`}},taskBar:{startDateField:`start`,endDateField:`start`,labelText:`{title}`,labelTextStyle:{fontSize:12,fontWeight:`bold`},barStyle:{width:0,barColor:`transparent`},milestoneStyle:{borderColor:`#fa8c16`,borderLineWidth:2,fillColor:`#ffd666`,width:16}},timelineHeader:{colWidth:80,scales:[{unit:`month`,step:1,format:e=>`${e.dateIndex}月`,style:{fontSize:13,fontWeight:`bold`}},{unit:`week`,step:1,format:e=>`第${e.dateIndex}周`,style:{fontSize:11}}]},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}},official:{overscrollBehavior:`none`,headerRowHeight:40,rowHeight:40,taskListTable:{columns:[{field:`title`,title:`title`,width:180,sort:!0,tree:!0,editor:`input`},{field:`start`,title:`start`,width:120,sort:!0,editor:`date-input`},{field:`end`,title:`end`,width:120,sort:!0,editor:`date-input`},{field:`priority`,title:`priority`,width:80,sort:!0,editor:`input`},{field:`progress`,title:`progress`,width:80,sort:!0,editor:`input`}],tableWidth:460,minTableWidth:350,maxTableWidth:800,theme:{headerStyle:{...x.headerStyle,fontSize:18,color:`red`},bodyStyle:{...x.bodyStyle,fontSize:16,color:`#4D4D4D`}},hierarchyExpandLevel:2},frame:{outerFrameStyle:{borderLineWidth:2,borderColor:`#e1e4e8`,cornerRadius:8},verticalSplitLineMoveable:!0,verticalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3},horizontalSplitLine:{lineColor:`#e1e4e8`,lineWidth:3}},grid:{verticalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`},horizontalLine:{lineWidth:1,lineColor:`rgba(128, 128, 128, 0.2)`}},taskBar:{startDateField:`start`,endDateField:`end`,progressField:`progress`,moveable:!0,resizable:!0,hoverBarStyle:{barOverlayColor:`rgba(99, 144, 0, 0.4)`},labelText:`{title} {progress}%`,labelTextStyle:{fontSize:16,textAlign:`left`,textOverflow:`ellipsis`},barStyle:{width:20,barColor:`#ee8800`,completedBarColor:`#91e8e0`,cornerRadius:8,borderLineWidth:1,borderColor:`black`},milestoneStyle:{borderColor:`red`,borderLineWidth:1,fillColor:`green`,width:15}},timelineHeader:{backgroundColor:`#EEF1F5`,colWidth:60,horizontalLine:{lineWidth:1,lineColor:`#e1e4e8`},verticalLine:{lineWidth:1,lineColor:`#e1e4e8`},scales:[{unit:`week`,step:1,startOfWeek:`sunday`,format:e=>`Week ${e.dateIndex}`,style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`,textStick:!0}},{unit:`day`,step:1,format:e=>e.dateIndex.toString(),style:{fontSize:20,fontWeight:`bold`,color:`white`,strokeColor:`black`,textAlign:`right`,textBaseline:`bottom`}}]},markLine:[{date:`2024-07-28`,style:{lineWidth:1,lineColor:`blue`,lineDash:[8,4]}},{date:`2024-08-17`,style:{lineWidth:2,lineColor:`red`,lineDash:[8,4]}}],rowSeriesNumber:{title:`行号`,dragOrder:!0,headerStyle:{borderColor:`rgba(128, 128, 128, 0.2)`},style:{borderColor:`rgba(128, 128, 128, 0.2)`}},scrollStyle:{scrollRailColor:`rgba(246,246,246,0.5)`,visible:`scrolling`,width:6,scrollSliderCornerRadius:2,scrollSliderColor:`#1890ff`}}},C={class:`c-vtable-gantt-wrapper`},w={key:0,class:`gantt-toolbar`},T={class:`toolbar-left`},E={class:`gantt-title`},D={class:`toolbar-right`};var O=t(l({name:`C_VtableGantt`,__name:`index`,props:{data:{default:()=>[]},options:{default:()=>({})},preset:{default:`basic`},height:{default:`600px`},title:{default:``},showToolbar:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},theme:{default:`light`}},emits:[`ganttCreated`,`taskClick`,`taskChange`],setup(t,{expose:l,emit:x}){let O=t,k=x,A=h(),j=h(),M=h(!1),N=0,P,F=!1,I=n(()=>typeof O.height==`number`?`${O.height}px`:O.height),L=(e,t)=>!F&&e===N&&A.value===t,R=(e,t,n=new WeakMap)=>z(e)?z(t)?n.has(t)?n.get(t):V(e,t,n):e:t,z=e=>typeof e==`object`&&!!e,B=e=>e instanceof Date||e instanceof RegExp,V=(e,t,n)=>{let r=Array.isArray(e)?[...e]:{...e};n.set(t,r);for(let i in t){if(!t.hasOwnProperty(i))continue;let a=t[i];r[i]=z(a)&&!Array.isArray(a)&&!B(a)?R(e[i]||{},a,n):a}return r},H=e=>e.map(e=>({...e,title:e.title||`任务${e.id}`,children:e.children?H(e.children):void 0})),U=e=>({underlayBackgroundColor:e?`#1e1e1e`:`#ffffff`,timelineHeaderBg:e?`#2d2d2d`:`#EEF1F5`,gridBg:e?`#1e1e1e`:`#ffffff`,lineColor:e?`rgba(255, 255, 255, 0.1)`:`rgba(128, 128, 128, 0.2)`,textColor:e?`#ffffff`:`#000000`}),W=(e,t)=>({...e,backgroundColor:t.timelineHeaderBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor},scales:e?.scales?.map(e=>({...e,style:{...e.style,color:t.textColor}}))}),G=(e,t)=>({...e,backgroundColor:t.gridBg,horizontalLine:{...e?.horizontalLine,lineColor:t.lineColor},verticalLine:{...e?.verticalLine,lineColor:t.lineColor}}),K=(e,t,n,r)=>({...e,records:t,underlayBackgroundColor:r.underlayBackgroundColor,taskListTable:{...e.taskListTable,theme:n},timelineHeader:W(e.timelineHeader,r),grid:G(e.grid,r)}),q=e=>{e.on(`click_cell`,e=>{let{record:t,event:n}=e||{};t&&k(`taskClick`,t,n)}),e.on(`change_data`,e=>{let{record:t,changes:n}=e||{};t&&n&&k(`taskChange`,t,n)})},J=async()=>{let e=A.value;if(!e||F)return;let t=++N;try{let{Gantt:n}=await import(`@visactor/vtable-gantt`),{themes:r}=await import(`@visactor/vtable`);if(!L(t,e))return;let i=O.theme===`dark`,a=R(S[O.preset]||S.basic,O.options),o=H(O.data||[]);j.value&&j.value.release();let s=new n(e,K(a,o,i?r.DARK:r.DEFAULT,U(i)));if(!L(t,e)){s.release();return}j.value=s,q(s),k(`ganttCreated`,s)}catch(e){console.error(`甘特图初始化失败:`,e)}},Y=async()=>{if(A.value)try{document.fullscreenElement?(await document.exitFullscreen(),M.value=!1):(await A.value.requestFullscreen(),M.value=!0),setTimeout(()=>j.value?.resize?.(),100)}catch(e){console.warn(`全屏切换失败:`,e),M.value=!M.value,u(()=>j.value?.resize?.())}},X=()=>{M.value=!!document.fullscreenElement,u(()=>j.value?.resize?.())},Z=e=>{if(j.value&&e)try{j.value.setRecords(H(e))}catch(e){console.warn(`更新数据失败:`,e)}},Q=e=>{if(j.value&&e)try{j.value.updateOption(e)}catch(e){console.warn(`更新配置失败:`,e)}},$=()=>{if(j.value)try{j.value.release()}catch(e){console.warn(`销毁甘特图失败:`,e)}finally{j.value=void 0}};return v(()=>O.data,e=>{e&&j.value&&Z(e)},{deep:!0}),v(()=>[O.options,O.preset],()=>u(()=>J()),{deep:!0}),v(()=>O.theme,()=>u(()=>J())),f(()=>{F=!1,document.addEventListener(`fullscreenchange`,X),u(()=>{F||(P=setTimeout(()=>J(),100))})}),p(()=>{F=!0,N+=1,P&&clearTimeout(P),document.removeEventListener(`fullscreenchange`,X),$()}),l({ganttInstance:j,updateData:Z,updateOptions:Q,toggleFullscreen:Y}),(n,l)=>(m(),a(`div`,C,[t.showToolbar?(m(),a(`div`,w,[o(`div`,T,[o(`span`,E,g(t.title||`甘特图`),1)]),o(`div`,D,[t.showFullscreenButton?(m(),r(_(b),{key:0,size:`small`,onClick:Y},{icon:y(()=>[c(e,{name:M.value?`carbon:minimize`:`carbon:maximize`,size:16,color:`currentColor`},null,8,[`name`])]),default:y(()=>[s(` `+g(M.value?`退出全屏`:`全屏`),1)]),_:1})):i(`v-if`,!0)])])):i(`v-if`,!0),o(`div`,{ref_key:`ganttContainerRef`,ref:A,class:`gantt-container`,style:d({height:I.value})},null,4)]))}}),[[`__scopeId`,`data-v-cadc6c9b`]]);export{S as n,O as t};