@robot-admin/naive-ui-components 0.3.0

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 (352) hide show
  1. package/README.md +257 -0
  2. package/dist/C_ActionBar-DWN-woTc.css.map +1 -0
  3. package/dist/C_ActionBar.cjs +5 -0
  4. package/dist/C_ActionBar.d.cts +2 -0
  5. package/dist/C_ActionBar.d.ts +2 -0
  6. package/dist/C_ActionBar.js +4 -0
  7. package/dist/C_ActionBar2.js +196 -0
  8. package/dist/C_ActionBar2.js.map +1 -0
  9. package/dist/C_AntV-AFKyK6hH.css.map +1 -0
  10. package/dist/C_AntV.cjs +8 -0
  11. package/dist/C_AntV.d.cts +2 -0
  12. package/dist/C_AntV.d.ts +2 -0
  13. package/dist/C_AntV.js +4 -0
  14. package/dist/C_AntV2.js +3150 -0
  15. package/dist/C_AntV2.js.map +1 -0
  16. package/dist/C_Barcode-P_EFj8dC.css.map +1 -0
  17. package/dist/C_Barcode.cjs +4 -0
  18. package/dist/C_Barcode.d.cts +2 -0
  19. package/dist/C_Barcode.d.ts +2 -0
  20. package/dist/C_Barcode.js +3 -0
  21. package/dist/C_Barcode2.js +68 -0
  22. package/dist/C_Barcode2.js.map +1 -0
  23. package/dist/C_Captcha-C-ef41xw.css.map +1 -0
  24. package/dist/C_Captcha.cjs +4 -0
  25. package/dist/C_Captcha.d.cts +2 -0
  26. package/dist/C_Captcha.d.ts +2 -0
  27. package/dist/C_Captcha.js +3 -0
  28. package/dist/C_Captcha2.js +155 -0
  29. package/dist/C_Captcha2.js.map +1 -0
  30. package/dist/C_Cascade-D9kNsjsV.css.map +1 -0
  31. package/dist/C_Cascade.cjs +4 -0
  32. package/dist/C_Cascade.d.cts +2 -0
  33. package/dist/C_Cascade.d.ts +2 -0
  34. package/dist/C_Cascade.js +3 -0
  35. package/dist/C_Cascade2.js +103 -0
  36. package/dist/C_Cascade2.js.map +1 -0
  37. package/dist/C_City-BCQ4ipiK.css.map +1 -0
  38. package/dist/C_City.cjs +4 -0
  39. package/dist/C_City.d.cts +2 -0
  40. package/dist/C_City.d.ts +2 -0
  41. package/dist/C_City.js +3 -0
  42. package/dist/C_City2.js +841 -0
  43. package/dist/C_City2.js.map +1 -0
  44. package/dist/C_Code-C9kvvEmO.css.map +1 -0
  45. package/dist/C_Code.cjs +5 -0
  46. package/dist/C_Code.d.cts +2 -0
  47. package/dist/C_Code.d.ts +2 -0
  48. package/dist/C_Code.js +4 -0
  49. package/dist/C_Code2.js +346 -0
  50. package/dist/C_Code2.js.map +1 -0
  51. package/dist/C_CollapsePanel-BUJHuYcU.css.map +1 -0
  52. package/dist/C_CollapsePanel.cjs +6 -0
  53. package/dist/C_CollapsePanel.d.cts +2 -0
  54. package/dist/C_CollapsePanel.d.ts +2 -0
  55. package/dist/C_CollapsePanel.js +4 -0
  56. package/dist/C_CollapsePanel2.js +319 -0
  57. package/dist/C_CollapsePanel2.js.map +1 -0
  58. package/dist/C_Cron-yx2Ob4Jl.css.map +1 -0
  59. package/dist/C_Cron.cjs +15 -0
  60. package/dist/C_Cron.d.cts +2 -0
  61. package/dist/C_Cron.d.ts +2 -0
  62. package/dist/C_Cron.js +4 -0
  63. package/dist/C_Cron2.js +1209 -0
  64. package/dist/C_Cron2.js.map +1 -0
  65. package/dist/C_Date.cjs +4 -0
  66. package/dist/C_Date.d.cts +2 -0
  67. package/dist/C_Date.d.ts +2 -0
  68. package/dist/C_Date.js +3 -0
  69. package/dist/C_Date2.js +219 -0
  70. package/dist/C_Date2.js.map +1 -0
  71. package/dist/C_Draggable-C483syRC.css.map +1 -0
  72. package/dist/C_Draggable.cjs +5 -0
  73. package/dist/C_Draggable.d.cts +2 -0
  74. package/dist/C_Draggable.d.ts +2 -0
  75. package/dist/C_Draggable.js +3 -0
  76. package/dist/C_Draggable2.js +295 -0
  77. package/dist/C_Draggable2.js.map +1 -0
  78. package/dist/C_Editor-Bp0SyIEw.css.map +1 -0
  79. package/dist/C_Editor.cjs +4 -0
  80. package/dist/C_Editor.d.cts +2 -0
  81. package/dist/C_Editor.d.ts +2 -0
  82. package/dist/C_Editor.js +3 -0
  83. package/dist/C_Editor2.js +160 -0
  84. package/dist/C_Editor2.js.map +1 -0
  85. package/dist/C_FilePreview-CPqvhoCy.css.map +1 -0
  86. package/dist/C_FilePreview.cjs +6 -0
  87. package/dist/C_FilePreview.d.cts +2 -0
  88. package/dist/C_FilePreview.d.ts +2 -0
  89. package/dist/C_FilePreview.js +3 -0
  90. package/dist/C_FilePreview2.js +1031 -0
  91. package/dist/C_FilePreview2.js.map +1 -0
  92. package/dist/C_Form-Jx7PY3sT.css.map +1 -0
  93. package/dist/C_Form.cjs +15 -0
  94. package/dist/C_Form.d.cts +2 -0
  95. package/dist/C_Form.d.ts +2 -0
  96. package/dist/C_Form.js +4 -0
  97. package/dist/C_Form2.js +2510 -0
  98. package/dist/C_Form2.js.map +1 -0
  99. package/dist/C_FormSearch-DvRgxlRn.css.map +1 -0
  100. package/dist/C_FormSearch.cjs +6 -0
  101. package/dist/C_FormSearch.d.cts +2 -0
  102. package/dist/C_FormSearch.d.ts +2 -0
  103. package/dist/C_FormSearch.js +3 -0
  104. package/dist/C_FormSearch2.js +356 -0
  105. package/dist/C_FormSearch2.js.map +1 -0
  106. package/dist/C_FormulaEditor-DtGkt4T_.css.map +1 -0
  107. package/dist/C_FormulaEditor.cjs +13 -0
  108. package/dist/C_FormulaEditor.d.cts +2 -0
  109. package/dist/C_FormulaEditor.d.ts +2 -0
  110. package/dist/C_FormulaEditor.js +4 -0
  111. package/dist/C_FormulaEditor2.js +1433 -0
  112. package/dist/C_FormulaEditor2.js.map +1 -0
  113. package/dist/C_FullCalendar-BF7H0YIx.css.map +1 -0
  114. package/dist/C_FullCalendar.cjs +9 -0
  115. package/dist/C_FullCalendar.d.cts +2 -0
  116. package/dist/C_FullCalendar.d.ts +2 -0
  117. package/dist/C_FullCalendar.js +3 -0
  118. package/dist/C_FullCalendar2.js +377 -0
  119. package/dist/C_FullCalendar2.js.map +1 -0
  120. package/dist/C_Guide.cjs +4 -0
  121. package/dist/C_Guide.d.cts +2 -0
  122. package/dist/C_Guide.d.ts +2 -0
  123. package/dist/C_Guide.js +3 -0
  124. package/dist/C_Guide2.js +58 -0
  125. package/dist/C_Guide2.js.map +1 -0
  126. package/dist/C_Icon.cjs +4 -0
  127. package/dist/C_Icon.d.cts +2 -0
  128. package/dist/C_Icon.d.ts +2 -0
  129. package/dist/C_Icon.js +3 -0
  130. package/dist/C_Icon2.js +286 -0
  131. package/dist/C_Icon2.js.map +1 -0
  132. package/dist/C_ImageCropper-BVJfUufl.css.map +1 -0
  133. package/dist/C_ImageCropper.cjs +6 -0
  134. package/dist/C_ImageCropper.d.cts +2 -0
  135. package/dist/C_ImageCropper.d.ts +2 -0
  136. package/dist/C_ImageCropper.js +4 -0
  137. package/dist/C_ImageCropper2.js +723 -0
  138. package/dist/C_ImageCropper2.js.map +1 -0
  139. package/dist/C_Language.cjs +4 -0
  140. package/dist/C_Language.d.cts +2 -0
  141. package/dist/C_Language.d.ts +2 -0
  142. package/dist/C_Language.js +3 -0
  143. package/dist/C_Language2.js +72 -0
  144. package/dist/C_Language2.js.map +1 -0
  145. package/dist/C_Map-DpzeuWdX.css.map +1 -0
  146. package/dist/C_Map.cjs +7 -0
  147. package/dist/C_Map.d.cts +2 -0
  148. package/dist/C_Map.d.ts +2 -0
  149. package/dist/C_Map.js +3 -0
  150. package/dist/C_Map2.js +199 -0
  151. package/dist/C_Map2.js.map +1 -0
  152. package/dist/C_Markdown-BEjxknqd.css.map +1 -0
  153. package/dist/C_Markdown.cjs +4 -0
  154. package/dist/C_Markdown.d.cts +2 -0
  155. package/dist/C_Markdown.d.ts +2 -0
  156. package/dist/C_Markdown.js +3 -0
  157. package/dist/C_Markdown2.js +186 -0
  158. package/dist/C_Markdown2.js.map +1 -0
  159. package/dist/C_NotificationCenter-0l3TY2Gn.css.map +1 -0
  160. package/dist/C_NotificationCenter.cjs +20 -0
  161. package/dist/C_NotificationCenter.d.cts +2 -0
  162. package/dist/C_NotificationCenter.d.ts +2 -0
  163. package/dist/C_NotificationCenter.js +4 -0
  164. package/dist/C_NotificationCenter2.js +1383 -0
  165. package/dist/C_NotificationCenter2.js.map +1 -0
  166. package/dist/C_Progress.cjs +4 -0
  167. package/dist/C_Progress.d.cts +2 -0
  168. package/dist/C_Progress.d.ts +2 -0
  169. package/dist/C_Progress.js +3 -0
  170. package/dist/C_Progress2.js +103 -0
  171. package/dist/C_Progress2.js.map +1 -0
  172. package/dist/C_QRCode-DbdiAIPg.css.map +1 -0
  173. package/dist/C_QRCode.cjs +5 -0
  174. package/dist/C_QRCode.d.cts +2 -0
  175. package/dist/C_QRCode.d.ts +2 -0
  176. package/dist/C_QRCode.js +3 -0
  177. package/dist/C_QRCode2.js +218 -0
  178. package/dist/C_QRCode2.js.map +1 -0
  179. package/dist/C_Signature-zhHCbra9.css.map +1 -0
  180. package/dist/C_Signature.cjs +8 -0
  181. package/dist/C_Signature.d.cts +2 -0
  182. package/dist/C_Signature.d.ts +2 -0
  183. package/dist/C_Signature.js +4 -0
  184. package/dist/C_Signature2.js +618 -0
  185. package/dist/C_Signature2.js.map +1 -0
  186. package/dist/C_SplitPane-C6sBsfKY.css.map +1 -0
  187. package/dist/C_SplitPane.cjs +6 -0
  188. package/dist/C_SplitPane.d.cts +2 -0
  189. package/dist/C_SplitPane.d.ts +2 -0
  190. package/dist/C_SplitPane.js +4 -0
  191. package/dist/C_SplitPane2.js +356 -0
  192. package/dist/C_SplitPane2.js.map +1 -0
  193. package/dist/C_Steps-CODHN5Hs.css.map +1 -0
  194. package/dist/C_Steps.cjs +4 -0
  195. package/dist/C_Steps.d.cts +2 -0
  196. package/dist/C_Steps.d.ts +2 -0
  197. package/dist/C_Steps.js +3 -0
  198. package/dist/C_Steps2.js +82 -0
  199. package/dist/C_Steps2.js.map +1 -0
  200. package/dist/C_Table-DSNsntmT.css.map +1 -0
  201. package/dist/C_Table.cjs +19 -0
  202. package/dist/C_Table.d.cts +2 -0
  203. package/dist/C_Table.d.ts +2 -0
  204. package/dist/C_Table.js +5 -0
  205. package/dist/C_Table2.js +3009 -0
  206. package/dist/C_Table2.js.map +1 -0
  207. package/dist/C_Theme.cjs +4 -0
  208. package/dist/C_Theme.d.cts +2 -0
  209. package/dist/C_Theme.d.ts +2 -0
  210. package/dist/C_Theme.js +3 -0
  211. package/dist/C_Theme2.js +60 -0
  212. package/dist/C_Theme2.js.map +1 -0
  213. package/dist/C_Time-BvZLYraL.css.map +1 -0
  214. package/dist/C_Time.cjs +5 -0
  215. package/dist/C_Time.d.cts +2 -0
  216. package/dist/C_Time.d.ts +2 -0
  217. package/dist/C_Time.js +3 -0
  218. package/dist/C_Time2.js +199 -0
  219. package/dist/C_Time2.js.map +1 -0
  220. package/dist/C_Tree-0GDv--jX.css.map +1 -0
  221. package/dist/C_Tree.cjs +7 -0
  222. package/dist/C_Tree.d.cts +2 -0
  223. package/dist/C_Tree.d.ts +2 -0
  224. package/dist/C_Tree.js +4 -0
  225. package/dist/C_Tree2.js +441 -0
  226. package/dist/C_Tree2.js.map +1 -0
  227. package/dist/C_Upload-BXd3YYLx.css.map +1 -0
  228. package/dist/C_Upload.cjs +12 -0
  229. package/dist/C_Upload.d.cts +2 -0
  230. package/dist/C_Upload.d.ts +2 -0
  231. package/dist/C_Upload.js +4 -0
  232. package/dist/C_Upload2.js +1388 -0
  233. package/dist/C_Upload2.js.map +1 -0
  234. package/dist/C_VideoPlayer-DYG3RL0Q.css.map +1 -0
  235. package/dist/C_VideoPlayer.cjs +23 -0
  236. package/dist/C_VideoPlayer.d.cts +2 -0
  237. package/dist/C_VideoPlayer.d.ts +2 -0
  238. package/dist/C_VideoPlayer.js +3 -0
  239. package/dist/C_VideoPlayer2.js +1932 -0
  240. package/dist/C_VideoPlayer2.js.map +1 -0
  241. package/dist/C_VtableGantt-fhItIiHE.css.map +1 -0
  242. package/dist/C_VtableGantt.cjs +6 -0
  243. package/dist/C_VtableGantt.d.cts +2 -0
  244. package/dist/C_VtableGantt.d.ts +2 -0
  245. package/dist/C_VtableGantt.js +4 -0
  246. package/dist/C_VtableGantt2.js +873 -0
  247. package/dist/C_VtableGantt2.js.map +1 -0
  248. package/dist/C_WaterFall-8sQDFXKg.css.map +1 -0
  249. package/dist/C_WaterFall.cjs +13 -0
  250. package/dist/C_WaterFall.d.cts +2 -0
  251. package/dist/C_WaterFall.d.ts +2 -0
  252. package/dist/C_WaterFall.js +3 -0
  253. package/dist/C_WaterFall2.js +365 -0
  254. package/dist/C_WaterFall2.js.map +1 -0
  255. package/dist/C_WorkFlow-J-dyIuh9.css.map +1 -0
  256. package/dist/C_WorkFlow.cjs +8 -0
  257. package/dist/C_WorkFlow.d.cts +2 -0
  258. package/dist/C_WorkFlow.d.ts +2 -0
  259. package/dist/C_WorkFlow.js +4 -0
  260. package/dist/C_WorkFlow2.js +1984 -0
  261. package/dist/C_WorkFlow2.js.map +1 -0
  262. package/dist/chunk.js +22 -0
  263. package/dist/city.js +4817 -0
  264. package/dist/city.js.map +1 -0
  265. package/dist/constants.d.ts +273 -0
  266. package/dist/constants.d.ts.map +1 -0
  267. package/dist/constants2.d.ts +178 -0
  268. package/dist/constants2.d.ts.map +1 -0
  269. package/dist/constants3.d.ts +475 -0
  270. package/dist/constants3.d.ts.map +1 -0
  271. package/dist/constants4.d.ts +430 -0
  272. package/dist/constants4.d.ts.map +1 -0
  273. package/dist/constants5.d.ts +4283 -0
  274. package/dist/constants5.d.ts.map +1 -0
  275. package/dist/data.d.ts +67 -0
  276. package/dist/data.d.ts.map +1 -0
  277. package/dist/export-helper.js +9 -0
  278. package/dist/index.cjs +409 -0
  279. package/dist/index.d.cts +96 -0
  280. package/dist/index.d.cts.map +1 -0
  281. package/dist/index.d.ts +103 -0
  282. package/dist/index.d.ts.map +1 -0
  283. package/dist/index.js +230 -0
  284. package/dist/index.js.map +1 -0
  285. package/dist/index.vue.d.ts +80 -0
  286. package/dist/index.vue.d.ts.map +1 -0
  287. package/dist/index10.vue.d.ts +72 -0
  288. package/dist/index10.vue.d.ts.map +1 -0
  289. package/dist/index11.vue.d.ts +26 -0
  290. package/dist/index11.vue.d.ts.map +1 -0
  291. package/dist/index12.vue.d.ts +81 -0
  292. package/dist/index12.vue.d.ts.map +1 -0
  293. package/dist/index13.vue.d.ts +55 -0
  294. package/dist/index13.vue.d.ts.map +1 -0
  295. package/dist/index14.vue.d.ts +33 -0
  296. package/dist/index14.vue.d.ts.map +1 -0
  297. package/dist/index15.vue.d.ts +18 -0
  298. package/dist/index15.vue.d.ts.map +1 -0
  299. package/dist/index16.vue.d.ts +662 -0
  300. package/dist/index16.vue.d.ts.map +1 -0
  301. package/dist/index2.vue.d.ts +38 -0
  302. package/dist/index2.vue.d.ts.map +1 -0
  303. package/dist/index3.vue.d.ts +45 -0
  304. package/dist/index3.vue.d.ts.map +1 -0
  305. package/dist/index4.vue.d.ts +31 -0
  306. package/dist/index4.vue.d.ts.map +1 -0
  307. package/dist/index5.vue.d.ts +35 -0
  308. package/dist/index5.vue.d.ts.map +1 -0
  309. package/dist/index6.vue.d.ts +48 -0
  310. package/dist/index6.vue.d.ts.map +1 -0
  311. package/dist/index7.vue.d.ts +56 -0
  312. package/dist/index7.vue.d.ts.map +1 -0
  313. package/dist/index8.vue.d.ts +41 -0
  314. package/dist/index8.vue.d.ts.map +1 -0
  315. package/dist/index9.vue.d.ts +30 -0
  316. package/dist/index9.vue.d.ts.map +1 -0
  317. package/dist/storage.js +31 -0
  318. package/dist/storage.js.map +1 -0
  319. package/dist/style.css +7725 -0
  320. package/dist/useCalendarEvents.d.ts +148 -0
  321. package/dist/useCalendarEvents.d.ts.map +1 -0
  322. package/dist/useCollapsePanel.d.ts +132 -0
  323. package/dist/useCollapsePanel.d.ts.map +1 -0
  324. package/dist/useCropperCore.d.ts +102 -0
  325. package/dist/useCropperCore.d.ts.map +1 -0
  326. package/dist/useDraggableLayout.d.ts +194 -0
  327. package/dist/useDraggableLayout.d.ts.map +1 -0
  328. package/dist/useDynamicFormState.d.ts +4248 -0
  329. package/dist/useDynamicFormState.d.ts.map +1 -0
  330. package/dist/useEdgeInteraction.d.ts +7614 -0
  331. package/dist/useEdgeInteraction.d.ts.map +1 -0
  332. package/dist/useFullscreen.d.ts +166 -0
  333. package/dist/useFullscreen.d.ts.map +1 -0
  334. package/dist/useInfiniteScroll.d.ts +169 -0
  335. package/dist/useInfiniteScroll.d.ts.map +1 -0
  336. package/dist/useModalEdit.d.ts +960 -0
  337. package/dist/useModalEdit.d.ts.map +1 -0
  338. package/dist/useQRCode.d.ts +87 -0
  339. package/dist/useQRCode.d.ts.map +1 -0
  340. package/dist/useSearchState.d.ts +180 -0
  341. package/dist/useSearchState.d.ts.map +1 -0
  342. package/dist/useSignatureHistory.d.ts +189 -0
  343. package/dist/useSignatureHistory.d.ts.map +1 -0
  344. package/dist/useSplitResize.d.ts +158 -0
  345. package/dist/useSplitResize.d.ts.map +1 -0
  346. package/dist/useTimeSelection.d.ts +105 -0
  347. package/dist/useTimeSelection.d.ts.map +1 -0
  348. package/dist/useTreeOperations.d.ts +183 -0
  349. package/dist/useTreeOperations.d.ts.map +1 -0
  350. package/dist/useWorkflowValidation.d.ts +1052 -0
  351. package/dist/useWorkflowValidation.d.ts.map +1 -0
  352. package/package.json +342 -0
@@ -0,0 +1,873 @@
1
+ import { t as C_Icon_default } from "./C_Icon2.js";
2
+ import { t as export_helper_default } from "./export-helper.js";
3
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeStyle, onMounted, onUnmounted, openBlock, ref, toDisplayString, unref, watch, withCtx } from "vue";
4
+ import { NButton } from "naive-ui";
5
+
6
+ //#region src/components/C_VtableGantt/data.ts
7
+ const commonTheme = {
8
+ headerStyle: {
9
+ borderColor: "rgba(128, 128, 128, 0.2)",
10
+ borderLineWidth: 1,
11
+ fontSize: 14,
12
+ fontWeight: "bold"
13
+ },
14
+ bodyStyle: {
15
+ borderColor: "rgba(128, 128, 128, 0.2)",
16
+ borderLineWidth: [
17
+ 1,
18
+ 0,
19
+ 1,
20
+ 0
21
+ ],
22
+ fontSize: 13
23
+ }
24
+ };
25
+ const presetConfigs = {
26
+ basic: {
27
+ overscrollBehavior: "none",
28
+ headerRowHeight: 40,
29
+ rowHeight: 40,
30
+ taskListTable: {
31
+ columns: [
32
+ {
33
+ field: "title",
34
+ title: "任务名称",
35
+ width: 220,
36
+ tree: true
37
+ },
38
+ {
39
+ field: "start",
40
+ title: "开始时间",
41
+ width: 120
42
+ },
43
+ {
44
+ field: "end",
45
+ title: "结束时间",
46
+ width: 120
47
+ },
48
+ {
49
+ field: "progress",
50
+ title: "进度",
51
+ width: 80
52
+ }
53
+ ],
54
+ tableWidth: 420,
55
+ minTableWidth: 300,
56
+ theme: commonTheme
57
+ },
58
+ frame: {
59
+ outerFrameStyle: {
60
+ borderLineWidth: 1,
61
+ borderColor: "#e1e4e8",
62
+ cornerRadius: 6
63
+ },
64
+ verticalSplitLineMoveable: true,
65
+ verticalSplitLine: {
66
+ lineColor: "#e1e4e8",
67
+ lineWidth: 2
68
+ }
69
+ },
70
+ grid: {
71
+ verticalLine: {
72
+ lineWidth: 1,
73
+ lineColor: "rgba(128, 128, 128, 0.2)"
74
+ },
75
+ horizontalLine: {
76
+ lineWidth: 1,
77
+ lineColor: "rgba(128, 128, 128, 0.2)"
78
+ }
79
+ },
80
+ taskBar: {
81
+ startDateField: "start",
82
+ endDateField: "end",
83
+ progressField: "progress",
84
+ moveable: true,
85
+ resizable: true,
86
+ labelText: "{title}",
87
+ labelTextStyle: {
88
+ fontSize: 12,
89
+ textAlign: "left"
90
+ },
91
+ barStyle: {
92
+ width: 18,
93
+ barColor: "#1890ff",
94
+ completedBarColor: "#52c41a",
95
+ cornerRadius: 4,
96
+ borderLineWidth: 0
97
+ },
98
+ milestoneStyle: {
99
+ borderColor: "#fa8c16",
100
+ borderLineWidth: 1,
101
+ fillColor: "#ffd666",
102
+ width: 12
103
+ }
104
+ },
105
+ timelineHeader: {
106
+ colWidth: 60,
107
+ horizontalLine: {
108
+ lineWidth: 1,
109
+ lineColor: "rgba(128, 128, 128, 0.2)"
110
+ },
111
+ verticalLine: {
112
+ lineWidth: 1,
113
+ lineColor: "rgba(128, 128, 128, 0.2)"
114
+ },
115
+ scales: [{
116
+ unit: "week",
117
+ step: 1,
118
+ format: (date) => `第${date.dateIndex}周`,
119
+ style: {
120
+ fontSize: 12,
121
+ fontWeight: "bold"
122
+ }
123
+ }, {
124
+ unit: "day",
125
+ step: 1,
126
+ format: (date) => `${date.dateIndex}`,
127
+ style: { fontSize: 11 }
128
+ }]
129
+ },
130
+ scrollStyle: {
131
+ scrollRailColor: "rgba(246,246,246,0.5)",
132
+ visible: "scrolling",
133
+ width: 6,
134
+ scrollSliderCornerRadius: 2,
135
+ scrollSliderColor: "#1890ff"
136
+ }
137
+ },
138
+ project: {
139
+ overscrollBehavior: "none",
140
+ headerRowHeight: 40,
141
+ rowHeight: 40,
142
+ taskListTable: {
143
+ columns: [
144
+ {
145
+ field: "title",
146
+ title: "任务名称",
147
+ width: 200,
148
+ tree: true,
149
+ editor: "input"
150
+ },
151
+ {
152
+ field: "start",
153
+ title: "开始时间",
154
+ width: 120,
155
+ editor: "date-input"
156
+ },
157
+ {
158
+ field: "end",
159
+ title: "结束时间",
160
+ width: 120,
161
+ editor: "date-input"
162
+ },
163
+ {
164
+ field: "priority",
165
+ title: "优先级",
166
+ width: 80,
167
+ editor: "input"
168
+ },
169
+ {
170
+ field: "progress",
171
+ title: "进度%",
172
+ width: 80,
173
+ editor: "input"
174
+ }
175
+ ],
176
+ tableWidth: 480,
177
+ minTableWidth: 350,
178
+ maxTableWidth: 800,
179
+ theme: commonTheme,
180
+ hierarchyExpandLevel: 2
181
+ },
182
+ frame: {
183
+ outerFrameStyle: {
184
+ borderLineWidth: 2,
185
+ borderColor: "#e1e4e8",
186
+ cornerRadius: 8
187
+ },
188
+ verticalSplitLineMoveable: true,
189
+ verticalSplitLine: {
190
+ lineColor: "#e1e4e8",
191
+ lineWidth: 3
192
+ }
193
+ },
194
+ grid: {
195
+ verticalLine: {
196
+ lineWidth: 1,
197
+ lineColor: "rgba(128, 128, 128, 0.2)"
198
+ },
199
+ horizontalLine: {
200
+ lineWidth: 1,
201
+ lineColor: "rgba(128, 128, 128, 0.2)"
202
+ }
203
+ },
204
+ taskBar: {
205
+ startDateField: "start",
206
+ endDateField: "end",
207
+ progressField: "progress",
208
+ moveable: true,
209
+ resizable: true,
210
+ hoverBarStyle: { barOverlayColor: "rgba(24, 144, 255, 0.3)" },
211
+ labelText: "{title} {progress}%",
212
+ labelTextStyle: {
213
+ fontSize: 12,
214
+ textAlign: "left",
215
+ textOverflow: "ellipsis"
216
+ },
217
+ barStyle: {
218
+ width: 20,
219
+ barColor: "#1890ff",
220
+ completedBarColor: "#52c41a",
221
+ cornerRadius: 6,
222
+ borderLineWidth: 0
223
+ }
224
+ },
225
+ timelineHeader: {
226
+ colWidth: 60,
227
+ horizontalLine: {
228
+ lineWidth: 1,
229
+ lineColor: "rgba(128, 128, 128, 0.2)"
230
+ },
231
+ verticalLine: {
232
+ lineWidth: 1,
233
+ lineColor: "rgba(128, 128, 128, 0.2)"
234
+ },
235
+ scales: [{
236
+ unit: "week",
237
+ step: 1,
238
+ startOfWeek: "monday",
239
+ format: (date) => `第${date.dateIndex}周`,
240
+ style: {
241
+ fontSize: 13,
242
+ fontWeight: "bold",
243
+ textAlign: "center"
244
+ }
245
+ }, {
246
+ unit: "day",
247
+ step: 1,
248
+ format: (date) => `${date.dateIndex}`,
249
+ style: {
250
+ fontSize: 11,
251
+ textAlign: "center"
252
+ }
253
+ }]
254
+ },
255
+ rowSeriesNumber: {
256
+ title: "序号",
257
+ dragOrder: true,
258
+ headerStyle: { borderColor: "rgba(128, 128, 128, 0.2)" },
259
+ style: { borderColor: "rgba(128, 128, 128, 0.2)" }
260
+ },
261
+ scrollStyle: {
262
+ scrollRailColor: "rgba(246,246,246,0.5)",
263
+ visible: "scrolling",
264
+ width: 6,
265
+ scrollSliderCornerRadius: 2,
266
+ scrollSliderColor: "#1890ff"
267
+ }
268
+ },
269
+ timeline: {
270
+ overscrollBehavior: "none",
271
+ headerRowHeight: 45,
272
+ rowHeight: 40,
273
+ taskListTable: {
274
+ columns: [{
275
+ field: "title",
276
+ title: "事件名称",
277
+ width: 250,
278
+ tree: true
279
+ }, {
280
+ field: "start",
281
+ title: "时间",
282
+ width: 150
283
+ }],
284
+ tableWidth: 400,
285
+ minTableWidth: 300,
286
+ theme: {
287
+ headerStyle: { ...commonTheme.headerStyle },
288
+ bodyStyle: commonTheme.bodyStyle
289
+ }
290
+ },
291
+ frame: {
292
+ outerFrameStyle: {
293
+ borderLineWidth: 1,
294
+ borderColor: "rgba(128, 128, 128, 0.3)",
295
+ cornerRadius: 4
296
+ },
297
+ verticalSplitLineMoveable: true
298
+ },
299
+ grid: {
300
+ verticalLine: {
301
+ lineWidth: 1,
302
+ lineColor: "rgba(128, 128, 128, 0.2)"
303
+ },
304
+ horizontalLine: {
305
+ lineWidth: 1,
306
+ lineColor: "rgba(128, 128, 128, 0.2)"
307
+ }
308
+ },
309
+ taskBar: {
310
+ startDateField: "start",
311
+ endDateField: "end",
312
+ progressField: "progress",
313
+ moveable: true,
314
+ resizable: true,
315
+ labelText: "{title}",
316
+ labelTextStyle: {
317
+ fontSize: 12,
318
+ textAlign: "left"
319
+ },
320
+ barStyle: {
321
+ width: 22,
322
+ barColor: "#722ed1",
323
+ completedBarColor: "#b37feb",
324
+ cornerRadius: 8,
325
+ borderLineWidth: 0
326
+ }
327
+ },
328
+ timelineHeader: {
329
+ colWidth: 60,
330
+ scales: [{
331
+ unit: "month",
332
+ step: 1,
333
+ format: (date) => `${date.dateIndex}月`,
334
+ style: {
335
+ fontSize: 13,
336
+ fontWeight: "bold"
337
+ }
338
+ }, {
339
+ unit: "day",
340
+ step: 1,
341
+ format: (date) => `${date.dateIndex}`,
342
+ style: { fontSize: 11 }
343
+ }]
344
+ },
345
+ scrollStyle: {
346
+ scrollRailColor: "rgba(246,246,246,0.5)",
347
+ visible: "scrolling",
348
+ width: 6,
349
+ scrollSliderCornerRadius: 2,
350
+ scrollSliderColor: "#1890ff"
351
+ }
352
+ },
353
+ milestone: {
354
+ overscrollBehavior: "none",
355
+ headerRowHeight: 40,
356
+ rowHeight: 38,
357
+ taskListTable: {
358
+ columns: [
359
+ {
360
+ field: "title",
361
+ title: "里程碑",
362
+ width: 200,
363
+ tree: true
364
+ },
365
+ {
366
+ field: "start",
367
+ title: "目标日期",
368
+ width: 120
369
+ },
370
+ {
371
+ field: "priority",
372
+ title: "重要性",
373
+ width: 100
374
+ }
375
+ ],
376
+ tableWidth: 400,
377
+ minTableWidth: 300,
378
+ theme: {
379
+ headerStyle: {
380
+ ...commonTheme.headerStyle,
381
+ borderColor: "#ffa940"
382
+ },
383
+ bodyStyle: {
384
+ ...commonTheme.bodyStyle,
385
+ borderColor: "#ffa940"
386
+ }
387
+ }
388
+ },
389
+ frame: {
390
+ outerFrameStyle: {
391
+ borderLineWidth: 2,
392
+ borderColor: "#ffa940",
393
+ cornerRadius: 6
394
+ },
395
+ verticalSplitLineMoveable: true
396
+ },
397
+ grid: {
398
+ verticalLine: {
399
+ lineWidth: 1,
400
+ lineColor: "rgba(255, 168, 64, 0.3)"
401
+ },
402
+ horizontalLine: {
403
+ lineWidth: 1,
404
+ lineColor: "rgba(255, 168, 64, 0.3)"
405
+ }
406
+ },
407
+ taskBar: {
408
+ startDateField: "start",
409
+ endDateField: "start",
410
+ labelText: "{title}",
411
+ labelTextStyle: {
412
+ fontSize: 12,
413
+ fontWeight: "bold"
414
+ },
415
+ barStyle: {
416
+ width: 0,
417
+ barColor: "transparent"
418
+ },
419
+ milestoneStyle: {
420
+ borderColor: "#fa8c16",
421
+ borderLineWidth: 2,
422
+ fillColor: "#ffd666",
423
+ width: 16
424
+ }
425
+ },
426
+ timelineHeader: {
427
+ colWidth: 80,
428
+ scales: [{
429
+ unit: "month",
430
+ step: 1,
431
+ format: (date) => `${date.dateIndex}月`,
432
+ style: {
433
+ fontSize: 13,
434
+ fontWeight: "bold"
435
+ }
436
+ }, {
437
+ unit: "week",
438
+ step: 1,
439
+ format: (date) => `第${date.dateIndex}周`,
440
+ style: { fontSize: 11 }
441
+ }]
442
+ },
443
+ scrollStyle: {
444
+ scrollRailColor: "rgba(246,246,246,0.5)",
445
+ visible: "scrolling",
446
+ width: 6,
447
+ scrollSliderCornerRadius: 2,
448
+ scrollSliderColor: "#1890ff"
449
+ }
450
+ },
451
+ official: {
452
+ overscrollBehavior: "none",
453
+ headerRowHeight: 40,
454
+ rowHeight: 40,
455
+ taskListTable: {
456
+ columns: [
457
+ {
458
+ field: "title",
459
+ title: "title",
460
+ width: 180,
461
+ sort: true,
462
+ tree: true,
463
+ editor: "input"
464
+ },
465
+ {
466
+ field: "start",
467
+ title: "start",
468
+ width: 120,
469
+ sort: true,
470
+ editor: "date-input"
471
+ },
472
+ {
473
+ field: "end",
474
+ title: "end",
475
+ width: 120,
476
+ sort: true,
477
+ editor: "date-input"
478
+ },
479
+ {
480
+ field: "priority",
481
+ title: "priority",
482
+ width: 80,
483
+ sort: true,
484
+ editor: "input"
485
+ },
486
+ {
487
+ field: "progress",
488
+ title: "progress",
489
+ width: 80,
490
+ sort: true,
491
+ editor: "input"
492
+ }
493
+ ],
494
+ tableWidth: 460,
495
+ minTableWidth: 350,
496
+ maxTableWidth: 800,
497
+ theme: {
498
+ headerStyle: {
499
+ ...commonTheme.headerStyle,
500
+ fontSize: 18,
501
+ color: "red"
502
+ },
503
+ bodyStyle: {
504
+ ...commonTheme.bodyStyle,
505
+ fontSize: 16,
506
+ color: "#4D4D4D"
507
+ }
508
+ },
509
+ hierarchyExpandLevel: 2
510
+ },
511
+ frame: {
512
+ outerFrameStyle: {
513
+ borderLineWidth: 2,
514
+ borderColor: "#e1e4e8",
515
+ cornerRadius: 8
516
+ },
517
+ verticalSplitLineMoveable: true,
518
+ verticalSplitLine: {
519
+ lineColor: "#e1e4e8",
520
+ lineWidth: 3
521
+ },
522
+ horizontalSplitLine: {
523
+ lineColor: "#e1e4e8",
524
+ lineWidth: 3
525
+ }
526
+ },
527
+ grid: {
528
+ verticalLine: {
529
+ lineWidth: 1,
530
+ lineColor: "rgba(128, 128, 128, 0.2)"
531
+ },
532
+ horizontalLine: {
533
+ lineWidth: 1,
534
+ lineColor: "rgba(128, 128, 128, 0.2)"
535
+ }
536
+ },
537
+ taskBar: {
538
+ startDateField: "start",
539
+ endDateField: "end",
540
+ progressField: "progress",
541
+ moveable: true,
542
+ resizable: true,
543
+ hoverBarStyle: { barOverlayColor: "rgba(99, 144, 0, 0.4)" },
544
+ labelText: "{title} {progress}%",
545
+ labelTextStyle: {
546
+ fontSize: 16,
547
+ textAlign: "left",
548
+ textOverflow: "ellipsis"
549
+ },
550
+ barStyle: {
551
+ width: 20,
552
+ barColor: "#ee8800",
553
+ completedBarColor: "#91e8e0",
554
+ cornerRadius: 8,
555
+ borderLineWidth: 1,
556
+ borderColor: "black"
557
+ },
558
+ milestoneStyle: {
559
+ borderColor: "red",
560
+ borderLineWidth: 1,
561
+ fillColor: "green",
562
+ width: 15
563
+ }
564
+ },
565
+ timelineHeader: {
566
+ backgroundColor: "#EEF1F5",
567
+ colWidth: 60,
568
+ horizontalLine: {
569
+ lineWidth: 1,
570
+ lineColor: "#e1e4e8"
571
+ },
572
+ verticalLine: {
573
+ lineWidth: 1,
574
+ lineColor: "#e1e4e8"
575
+ },
576
+ scales: [{
577
+ unit: "week",
578
+ step: 1,
579
+ startOfWeek: "sunday",
580
+ format: (date) => `Week ${date.dateIndex}`,
581
+ style: {
582
+ fontSize: 20,
583
+ fontWeight: "bold",
584
+ color: "white",
585
+ strokeColor: "black",
586
+ textAlign: "right",
587
+ textBaseline: "bottom",
588
+ textStick: true
589
+ }
590
+ }, {
591
+ unit: "day",
592
+ step: 1,
593
+ format: (date) => date.dateIndex.toString(),
594
+ style: {
595
+ fontSize: 20,
596
+ fontWeight: "bold",
597
+ color: "white",
598
+ strokeColor: "black",
599
+ textAlign: "right",
600
+ textBaseline: "bottom"
601
+ }
602
+ }]
603
+ },
604
+ markLine: [{
605
+ date: "2024-07-28",
606
+ style: {
607
+ lineWidth: 1,
608
+ lineColor: "blue",
609
+ lineDash: [8, 4]
610
+ }
611
+ }, {
612
+ date: "2024-08-17",
613
+ style: {
614
+ lineWidth: 2,
615
+ lineColor: "red",
616
+ lineDash: [8, 4]
617
+ }
618
+ }],
619
+ rowSeriesNumber: {
620
+ title: "行号",
621
+ dragOrder: true,
622
+ headerStyle: { borderColor: "rgba(128, 128, 128, 0.2)" },
623
+ style: { borderColor: "rgba(128, 128, 128, 0.2)" }
624
+ },
625
+ scrollStyle: {
626
+ scrollRailColor: "rgba(246,246,246,0.5)",
627
+ visible: "scrolling",
628
+ width: 6,
629
+ scrollSliderCornerRadius: 2,
630
+ scrollSliderColor: "#1890ff"
631
+ }
632
+ }
633
+ };
634
+
635
+ //#endregion
636
+ //#region src/components/C_VtableGantt/index.vue?vue&type=script&setup=true&lang.ts
637
+ const _hoisted_1 = { class: "c-vtable-gantt-wrapper" };
638
+ const _hoisted_2 = {
639
+ key: 0,
640
+ class: "gantt-toolbar"
641
+ };
642
+ const _hoisted_3 = { class: "toolbar-left" };
643
+ const _hoisted_4 = { class: "gantt-title" };
644
+ const _hoisted_5 = { class: "toolbar-right" };
645
+ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
646
+ name: "C_VtableGantt",
647
+ __name: "index",
648
+ props: {
649
+ data: { default: () => [] },
650
+ options: { default: () => ({}) },
651
+ preset: { default: "basic" },
652
+ height: { default: "600px" },
653
+ title: { default: "" },
654
+ showToolbar: {
655
+ type: Boolean,
656
+ default: true
657
+ },
658
+ showFullscreenButton: {
659
+ type: Boolean,
660
+ default: true
661
+ },
662
+ theme: { default: "light" }
663
+ },
664
+ emits: [
665
+ "ganttCreated",
666
+ "taskClick",
667
+ "taskChange"
668
+ ],
669
+ setup(__props, { expose: __expose, emit: __emit }) {
670
+ const props = __props;
671
+ const emit = __emit;
672
+ const ganttContainerRef = ref();
673
+ const ganttInstance = ref();
674
+ const isFullscreen = ref(false);
675
+ const containerHeight = computed(() => typeof props.height === "number" ? `${props.height}px` : props.height);
676
+ const deepMerge = (target, source, seen = /* @__PURE__ */ new WeakMap()) => {
677
+ if (!isObject(target)) return source;
678
+ if (!isObject(source)) return target;
679
+ if (seen.has(source)) return seen.get(source);
680
+ return createMergeResult(target, source, seen);
681
+ };
682
+ const isObject = (value) => {
683
+ return value !== null && typeof value === "object";
684
+ };
685
+ const isSpecialObject = (value) => {
686
+ return value instanceof Date || value instanceof RegExp;
687
+ };
688
+ const createMergeResult = (target, source, seen) => {
689
+ const result = Array.isArray(target) ? [...target] : { ...target };
690
+ seen.set(source, result);
691
+ for (const key in source) {
692
+ if (!source.hasOwnProperty(key)) continue;
693
+ const sourceValue = source[key];
694
+ result[key] = isObject(sourceValue) && !Array.isArray(sourceValue) && !isSpecialObject(sourceValue) ? deepMerge(target[key] || {}, sourceValue, seen) : sourceValue;
695
+ }
696
+ return result;
697
+ };
698
+ const processData = (data) => {
699
+ return data.map((item) => ({
700
+ ...item,
701
+ title: item.title || `任务${item.id}`,
702
+ children: item.children ? processData(item.children) : void 0
703
+ }));
704
+ };
705
+ const getThemeConfig = (isDark) => ({
706
+ underlayBackgroundColor: isDark ? "#1e1e1e" : "#ffffff",
707
+ timelineHeaderBg: isDark ? "#2d2d2d" : "#EEF1F5",
708
+ gridBg: isDark ? "#1e1e1e" : "#ffffff",
709
+ lineColor: isDark ? "rgba(255, 255, 255, 0.1)" : "rgba(128, 128, 128, 0.2)",
710
+ textColor: isDark ? "#ffffff" : "#000000"
711
+ });
712
+ const applyThemeToTimelineHeader = (timelineHeader, themeColors) => ({
713
+ ...timelineHeader,
714
+ backgroundColor: themeColors.timelineHeaderBg,
715
+ horizontalLine: {
716
+ ...timelineHeader?.horizontalLine,
717
+ lineColor: themeColors.lineColor
718
+ },
719
+ verticalLine: {
720
+ ...timelineHeader?.verticalLine,
721
+ lineColor: themeColors.lineColor
722
+ },
723
+ scales: timelineHeader?.scales?.map((scale) => ({
724
+ ...scale,
725
+ style: {
726
+ ...scale.style,
727
+ color: themeColors.textColor
728
+ }
729
+ }))
730
+ });
731
+ const applyThemeToGrid = (grid, themeColors) => ({
732
+ ...grid,
733
+ backgroundColor: themeColors.gridBg,
734
+ horizontalLine: {
735
+ ...grid?.horizontalLine,
736
+ lineColor: themeColors.lineColor
737
+ },
738
+ verticalLine: {
739
+ ...grid?.verticalLine,
740
+ lineColor: themeColors.lineColor
741
+ }
742
+ });
743
+ const buildGanttOptions = (finalConfig, processedData, tableTheme, themeColors) => ({
744
+ ...finalConfig,
745
+ records: processedData,
746
+ underlayBackgroundColor: themeColors.underlayBackgroundColor,
747
+ taskListTable: {
748
+ ...finalConfig.taskListTable,
749
+ theme: tableTheme
750
+ },
751
+ timelineHeader: applyThemeToTimelineHeader(finalConfig.timelineHeader, themeColors),
752
+ grid: applyThemeToGrid(finalConfig.grid, themeColors)
753
+ });
754
+ const bindGanttEvents = (instance) => {
755
+ instance.on("click_cell", (args) => {
756
+ const { record, event } = args || {};
757
+ if (record) emit("taskClick", record, event);
758
+ });
759
+ instance.on("change_data", (args) => {
760
+ const { record, changes } = args || {};
761
+ if (record && changes) emit("taskChange", record, changes);
762
+ });
763
+ };
764
+ const initGantt = async () => {
765
+ if (!ganttContainerRef.value) return;
766
+ try {
767
+ const { Gantt } = await import("@visactor/vtable-gantt");
768
+ const { themes } = await import("@visactor/vtable");
769
+ const isDark = props.theme === "dark";
770
+ const finalConfig = deepMerge(presetConfigs[props.preset] || presetConfigs.basic, props.options);
771
+ const processedData = processData(props.data || []);
772
+ if (ganttInstance.value) ganttInstance.value.release();
773
+ const ganttOptions = buildGanttOptions(finalConfig, processedData, isDark ? themes.DARK : themes.DEFAULT, getThemeConfig(isDark));
774
+ ganttInstance.value = new Gantt(ganttContainerRef.value, ganttOptions);
775
+ bindGanttEvents(ganttInstance.value);
776
+ emit("ganttCreated", ganttInstance.value);
777
+ } catch (error) {
778
+ console.error("甘特图初始化失败:", error);
779
+ }
780
+ };
781
+ const toggleFullscreen = async () => {
782
+ if (!ganttContainerRef.value) return;
783
+ try {
784
+ if (!document.fullscreenElement) {
785
+ await ganttContainerRef.value.requestFullscreen();
786
+ isFullscreen.value = true;
787
+ } else {
788
+ await document.exitFullscreen();
789
+ isFullscreen.value = false;
790
+ }
791
+ setTimeout(() => ganttInstance.value?.resize?.(), 100);
792
+ } catch (error) {
793
+ console.warn("全屏切换失败:", error);
794
+ isFullscreen.value = !isFullscreen.value;
795
+ nextTick(() => ganttInstance.value?.resize?.());
796
+ }
797
+ };
798
+ const handleFullscreenChange = () => {
799
+ isFullscreen.value = !!document.fullscreenElement;
800
+ nextTick(() => ganttInstance.value?.resize?.());
801
+ };
802
+ const updateData = (newData) => {
803
+ if (ganttInstance.value && newData) try {
804
+ ganttInstance.value.setRecords(processData(newData));
805
+ } catch (error) {
806
+ console.warn("更新数据失败:", error);
807
+ }
808
+ };
809
+ const updateOptions = (newOptions) => {
810
+ if (ganttInstance.value && newOptions) try {
811
+ ganttInstance.value.updateOption(newOptions);
812
+ } catch (error) {
813
+ console.warn("更新配置失败:", error);
814
+ }
815
+ };
816
+ const destroyGantt = () => {
817
+ if (ganttInstance.value) try {
818
+ ganttInstance.value.release();
819
+ } catch (error) {
820
+ console.warn("销毁甘特图失败:", error);
821
+ } finally {
822
+ ganttInstance.value = void 0;
823
+ }
824
+ };
825
+ watch(() => props.data, (newData) => {
826
+ if (newData && ganttInstance.value) updateData(newData);
827
+ }, { deep: true });
828
+ watch(() => [props.options, props.preset], () => nextTick(() => initGantt()), { deep: true });
829
+ watch(() => props.theme, () => nextTick(() => initGantt()));
830
+ onMounted(() => {
831
+ document.addEventListener("fullscreenchange", handleFullscreenChange);
832
+ nextTick(() => setTimeout(() => initGantt(), 100));
833
+ });
834
+ onUnmounted(() => {
835
+ document.removeEventListener("fullscreenchange", handleFullscreenChange);
836
+ destroyGantt();
837
+ });
838
+ __expose({
839
+ ganttInstance,
840
+ updateData,
841
+ updateOptions,
842
+ toggleFullscreen
843
+ });
844
+ return (_ctx, _cache) => {
845
+ return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.showToolbar ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("span", _hoisted_4, toDisplayString(_ctx.title || "甘特图"), 1)]), createElementVNode("div", _hoisted_5, [_ctx.showFullscreenButton ? (openBlock(), createBlock(unref(NButton), {
846
+ key: 0,
847
+ size: "small",
848
+ onClick: toggleFullscreen
849
+ }, {
850
+ icon: withCtx(() => [createVNode(C_Icon_default, {
851
+ name: isFullscreen.value ? "carbon:minimize" : "carbon:maximize",
852
+ size: 16,
853
+ color: "currentColor"
854
+ }, null, 8, ["name"])]),
855
+ default: withCtx(() => [createTextVNode(" " + toDisplayString(isFullscreen.value ? "退出全屏" : "全屏"), 1)]),
856
+ _: 1
857
+ })) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true), createElementVNode("div", {
858
+ ref_key: "ganttContainerRef",
859
+ ref: ganttContainerRef,
860
+ class: "gantt-container",
861
+ style: normalizeStyle({ height: containerHeight.value })
862
+ }, null, 4)]);
863
+ };
864
+ }
865
+ });
866
+
867
+ //#endregion
868
+ //#region src/components/C_VtableGantt/index.vue
869
+ var C_VtableGantt_default = /* @__PURE__ */ export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-bdd6834b"]]);
870
+
871
+ //#endregion
872
+ export { presetConfigs as n, C_VtableGantt_default as t };
873
+ //# sourceMappingURL=C_VtableGantt2.js.map