vxe-table 4.23.5 → 4.23.7

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 (482) hide show
  1. package/dist/all.esm.js +32456 -33938
  2. package/dist/style.css +4501 -1
  3. package/dist/style.mini.css +1 -0
  4. package/es/colgroup/index.d.ts +760 -0
  5. package/es/colgroup/index.js +16 -13
  6. package/es/column/index.d.ts +760 -0
  7. package/es/column/index.js +16 -13
  8. package/es/components.d.ts +9 -0
  9. package/es/components.js +29 -29
  10. package/es/grid/index.d.ts +2824 -0
  11. package/es/grid/index.js +14 -9
  12. package/es/grid/src/emits.d.ts +2 -0
  13. package/es/grid/src/emits.js +18 -15
  14. package/es/grid/src/grid.d.ts +556 -0
  15. package/es/grid/src/grid.js +1695 -1758
  16. package/es/grid/src/props.d.ts +200 -0
  17. package/es/grid/src/props.js +19 -6
  18. package/es/{vxe-grid/style.min.css → grid/style.mini.css} +1 -1
  19. package/es/index.d.ts +3 -0
  20. package/es/index.esm.js +6 -3
  21. package/es/index.js +6 -0
  22. package/es/locale/lang/ar-EG.d.ts +908 -2
  23. package/es/locale/lang/ar-EG.js +906 -903
  24. package/es/locale/lang/de-DE.d.ts +908 -2
  25. package/es/locale/lang/de-DE.js +906 -903
  26. package/es/locale/lang/en-US.d.ts +908 -2
  27. package/es/locale/lang/en-US.js +906 -903
  28. package/es/locale/lang/es-ES.d.ts +908 -2
  29. package/es/locale/lang/es-ES.js +906 -903
  30. package/es/locale/lang/fr-FR.d.ts +908 -2
  31. package/es/locale/lang/fr-FR.js +906 -903
  32. package/es/locale/lang/hu-HU.d.ts +908 -2
  33. package/es/locale/lang/hu-HU.js +906 -903
  34. package/es/locale/lang/hy-AM.d.ts +908 -2
  35. package/es/locale/lang/hy-AM.js +906 -903
  36. package/es/locale/lang/id-ID.d.ts +908 -2
  37. package/es/locale/lang/id-ID.js +906 -903
  38. package/es/locale/lang/it-IT.d.ts +908 -2
  39. package/es/locale/lang/it-IT.js +906 -903
  40. package/es/locale/lang/ja-JP.d.ts +908 -2
  41. package/es/locale/lang/ja-JP.js +906 -903
  42. package/es/locale/lang/ko-KR.d.ts +908 -2
  43. package/es/locale/lang/ko-KR.js +906 -903
  44. package/es/locale/lang/ms-MY.d.ts +908 -2
  45. package/es/locale/lang/ms-MY.js +906 -903
  46. package/es/locale/lang/nb-NO.d.ts +908 -2
  47. package/es/locale/lang/nb-NO.js +906 -903
  48. package/es/locale/lang/pt-BR.d.ts +908 -2
  49. package/es/locale/lang/pt-BR.js +906 -903
  50. package/es/locale/lang/ru-RU.d.ts +908 -2
  51. package/es/locale/lang/ru-RU.js +906 -903
  52. package/es/locale/lang/th-TH.d.ts +908 -2
  53. package/es/locale/lang/th-TH.js +906 -903
  54. package/es/locale/lang/ug-CN.d.ts +908 -2
  55. package/es/locale/lang/ug-CN.js +906 -903
  56. package/es/locale/lang/uk-UA.d.ts +908 -2
  57. package/es/locale/lang/uk-UA.js +906 -903
  58. package/es/locale/lang/uz-UZ.d.ts +908 -2
  59. package/es/locale/lang/uz-UZ.js +906 -903
  60. package/es/locale/lang/vi-VN.d.ts +908 -2
  61. package/es/locale/lang/vi-VN.js +906 -903
  62. package/es/locale/lang/zh-CHT.d.ts +908 -2
  63. package/es/locale/lang/zh-CHT.js +906 -903
  64. package/es/locale/lang/zh-CN.d.ts +908 -2
  65. package/es/locale/lang/zh-CN.js +906 -903
  66. package/es/locale/lang/zh-HK.d.ts +908 -2
  67. package/es/locale/lang/zh-HK.js +910 -2
  68. package/es/locale/lang/zh-MO.d.ts +908 -2
  69. package/es/locale/lang/zh-MO.js +910 -2
  70. package/es/locale/lang/zh-TC.d.ts +908 -0
  71. package/es/locale/lang/zh-TC.js +910 -2
  72. package/es/locale/lang/zh-TW.d.ts +908 -2
  73. package/es/locale/lang/zh-TW.js +910 -2
  74. package/es/style.css +4501 -1
  75. package/es/style.mini.css +1 -0
  76. package/es/table/index.d.ts +2672 -0
  77. package/es/table/index.js +16 -11
  78. package/es/table/module/custom/hook.d.ts +1 -0
  79. package/es/table/module/custom/hook.js +462 -483
  80. package/es/table/module/custom/panel.d.ts +17 -0
  81. package/es/table/module/custom/panel.js +1482 -1559
  82. package/es/table/module/edit/hook.d.ts +1 -0
  83. package/es/table/module/edit/hook.js +1008 -1078
  84. package/es/table/module/export/export-panel.d.ts +27 -0
  85. package/es/table/module/export/export-panel.js +523 -575
  86. package/es/table/module/export/hook.d.ts +1 -0
  87. package/es/table/module/export/hook.js +1805 -1884
  88. package/es/table/module/export/import-panel.d.ts +27 -0
  89. package/es/table/module/export/import-panel.js +244 -252
  90. package/es/table/module/export/util.d.ts +5 -0
  91. package/es/table/module/export/util.js +20 -17
  92. package/es/table/module/filter/hook.d.ts +1 -0
  93. package/es/table/module/filter/hook.js +472 -487
  94. package/es/table/module/filter/panel.d.ts +16 -0
  95. package/es/table/module/filter/panel.js +251 -275
  96. package/es/table/module/keyboard/hook.d.ts +1 -0
  97. package/es/table/module/keyboard/hook.js +445 -497
  98. package/es/table/module/menu/hook.d.ts +1 -0
  99. package/es/table/module/menu/hook.js +295 -315
  100. package/es/table/module/menu/panel.d.ts +2 -0
  101. package/es/table/module/menu/panel.js +164 -183
  102. package/es/table/module/validator/hook.d.ts +1 -0
  103. package/es/table/module/validator/hook.js +522 -571
  104. package/es/table/render/index.d.ts +1 -0
  105. package/es/table/render/index.js +1402 -1362
  106. package/es/table/src/body.d.ts +24 -0
  107. package/es/table/src/body.js +850 -865
  108. package/es/table/src/cell.d.ts +192 -0
  109. package/es/table/src/cell.js +1209 -1207
  110. package/es/table/src/column.d.ts +263 -0
  111. package/es/table/src/column.js +178 -174
  112. package/es/table/src/columnInfo.d.ts +13 -0
  113. package/es/table/src/columnInfo.js +202 -196
  114. package/es/table/src/emits.d.ts +2 -0
  115. package/es/table/src/emits.js +126 -119
  116. package/es/table/src/footer.d.ts +45 -0
  117. package/es/table/src/footer.js +336 -340
  118. package/es/table/src/group.d.ts +178 -0
  119. package/es/table/src/group.js +49 -46
  120. package/es/table/src/header.d.ts +26 -0
  121. package/es/table/src/header.js +517 -519
  122. package/es/table/src/props.d.ts +238 -0
  123. package/es/table/src/props.js +331 -328
  124. package/es/table/src/store.d.ts +6 -0
  125. package/es/table/src/store.js +9 -6
  126. package/es/table/src/table.d.ts +539 -0
  127. package/es/table/src/table.js +14061 -15071
  128. package/es/table/src/use/cell-view.d.ts +10 -0
  129. package/es/table/src/use/cell-view.js +36 -33
  130. package/es/table/src/use/index.d.ts +1 -0
  131. package/es/table/src/use/index.js +1 -1
  132. package/es/table/src/util.d.ts +74 -0
  133. package/es/table/src/util.js +1038 -1026
  134. package/es/table/style.css +1 -1
  135. package/es/table/style.mini.css +1 -0
  136. package/es/toolbar/index.d.ts +340 -0
  137. package/es/toolbar/index.js +14 -9
  138. package/es/toolbar/src/toolbar.d.ts +75 -0
  139. package/es/toolbar/src/toolbar.js +605 -613
  140. package/es/toolbar/{style.min.css → style.mini.css} +1 -1
  141. package/es/ui/index.d.ts +86 -0
  142. package/es/ui/index.js +457 -501
  143. package/es/ui/src/anime.d.ts +10 -0
  144. package/es/ui/src/anime.js +40 -40
  145. package/es/ui/src/comp.d.ts +2 -0
  146. package/es/ui/src/comp.js +5 -2
  147. package/es/ui/src/dom.d.ts +80 -0
  148. package/es/ui/src/dom.js +377 -380
  149. package/es/ui/src/log.d.ts +6 -0
  150. package/es/ui/src/log.js +18 -13
  151. package/es/ui/src/utils.d.ts +23 -0
  152. package/es/ui/src/utils.js +57 -53
  153. package/es/ui/src/vn.d.ts +7 -0
  154. package/es/ui/src/vn.js +49 -42
  155. package/es/v-x-e-table/index.d.ts +3 -0
  156. package/es/v-x-e-table/index.js +6 -3
  157. package/es/vxe-colgroup/index.d.ts +3 -0
  158. package/es/vxe-colgroup/index.js +6 -3
  159. package/es/vxe-column/index.d.ts +3 -0
  160. package/es/vxe-column/index.js +6 -3
  161. package/es/vxe-grid/index.d.ts +3 -0
  162. package/es/vxe-grid/index.js +6 -3
  163. package/{lib/grid/style/style.min.css → es/vxe-grid/style.mini.css} +1 -1
  164. package/es/vxe-table/index.d.ts +3 -0
  165. package/es/vxe-table/index.js +6 -3
  166. package/es/vxe-table/style.css +1 -1
  167. package/es/vxe-table/style.mini.css +1 -0
  168. package/es/vxe-toolbar/index.d.ts +3 -0
  169. package/es/vxe-toolbar/index.js +6 -3
  170. package/es/vxe-toolbar/{style.min.css → style.mini.css} +1 -1
  171. package/es/vxe-ui/index.d.ts +3 -0
  172. package/es/vxe-ui/index.js +6 -3
  173. package/lib/colgroup/index.js +44 -18
  174. package/lib/colgroup/style/index.js +1 -1
  175. package/lib/column/index.js +44 -18
  176. package/lib/column/style/index.js +1 -1
  177. package/lib/components.js +58 -92
  178. package/lib/grid/index.js +42 -14
  179. package/lib/grid/src/emits.js +37 -6
  180. package/lib/grid/src/grid.js +850 -1195
  181. package/lib/grid/src/props.js +27 -11
  182. package/lib/grid/style/index.js +1 -1
  183. package/lib/{vxe-grid/style/style.min.css → grid/style/style.mini.css} +1 -1
  184. package/lib/iconfont.1792979665397.ttf +0 -0
  185. package/lib/iconfont.1792979665397.woff +0 -0
  186. package/lib/iconfont.1792979665397.woff2 +0 -0
  187. package/lib/index.common.js +35 -19
  188. package/lib/index.js +37 -0
  189. package/lib/index.umd.js +30584 -24324
  190. package/lib/index.umd.min.js +3 -1
  191. package/lib/locale/ar-EG.umd.js +948 -0
  192. package/lib/locale/de-DE.umd.js +948 -0
  193. package/lib/locale/en-US.umd.js +948 -0
  194. package/lib/locale/es-ES.umd.js +948 -0
  195. package/lib/locale/fr-FR.umd.js +948 -0
  196. package/lib/locale/hu-HU.umd.js +948 -0
  197. package/lib/locale/hy-AM.umd.js +948 -0
  198. package/lib/locale/id-ID.umd.js +948 -0
  199. package/lib/locale/it-IT.umd.js +948 -0
  200. package/lib/locale/ja-JP.umd.js +948 -0
  201. package/lib/locale/ko-KR.umd.js +948 -0
  202. package/lib/locale/lang/ar-EG.js +681 -664
  203. package/lib/locale/lang/ar-EG.umd.js +913 -892
  204. package/lib/locale/lang/de-DE.js +681 -664
  205. package/lib/locale/lang/de-DE.umd.js +913 -892
  206. package/lib/locale/lang/en-US.js +678 -661
  207. package/lib/locale/lang/en-US.umd.js +913 -892
  208. package/lib/locale/lang/es-ES.js +681 -664
  209. package/lib/locale/lang/es-ES.umd.js +913 -892
  210. package/lib/locale/lang/fr-FR.js +654 -637
  211. package/lib/locale/lang/fr-FR.umd.js +913 -892
  212. package/lib/locale/lang/hu-HU.js +681 -664
  213. package/lib/locale/lang/hu-HU.umd.js +913 -892
  214. package/lib/locale/lang/hy-AM.js +681 -664
  215. package/lib/locale/lang/hy-AM.umd.js +913 -892
  216. package/lib/locale/lang/id-ID.js +681 -664
  217. package/lib/locale/lang/id-ID.umd.js +913 -892
  218. package/lib/locale/lang/it-IT.js +661 -644
  219. package/lib/locale/lang/it-IT.umd.js +912 -891
  220. package/lib/locale/lang/ja-JP.js +710 -693
  221. package/lib/locale/lang/ja-JP.umd.js +913 -892
  222. package/lib/locale/lang/ko-KR.js +681 -664
  223. package/lib/locale/lang/ko-KR.umd.js +913 -892
  224. package/lib/locale/lang/ms-MY.js +681 -664
  225. package/lib/locale/lang/ms-MY.umd.js +913 -892
  226. package/lib/locale/lang/nb-NO.js +681 -664
  227. package/lib/locale/lang/nb-NO.umd.js +913 -892
  228. package/lib/locale/lang/pt-BR.js +681 -664
  229. package/lib/locale/lang/pt-BR.umd.js +913 -892
  230. package/lib/locale/lang/ru-RU.js +690 -673
  231. package/lib/locale/lang/ru-RU.umd.js +913 -892
  232. package/lib/locale/lang/th-TH.js +681 -664
  233. package/lib/locale/lang/th-TH.umd.js +913 -892
  234. package/lib/locale/lang/ug-CN.js +681 -664
  235. package/lib/locale/lang/ug-CN.umd.js +913 -892
  236. package/lib/locale/lang/uk-UA.js +674 -657
  237. package/lib/locale/lang/uk-UA.umd.js +913 -892
  238. package/lib/locale/lang/uz-UZ.js +583 -566
  239. package/lib/locale/lang/uz-UZ.umd.js +908 -887
  240. package/lib/locale/lang/vi-VN.js +681 -664
  241. package/lib/locale/lang/vi-VN.umd.js +913 -892
  242. package/lib/locale/lang/zh-CHT.js +681 -664
  243. package/lib/locale/lang/zh-CHT.umd.js +913 -892
  244. package/lib/locale/lang/zh-CN.js +681 -664
  245. package/lib/locale/lang/zh-CN.umd.js +913 -892
  246. package/lib/locale/lang/zh-HK.js +928 -7
  247. package/lib/locale/lang/zh-HK.umd.js +945 -20
  248. package/lib/locale/lang/zh-MO.js +928 -7
  249. package/lib/locale/lang/zh-MO.umd.js +945 -20
  250. package/lib/locale/lang/zh-TC.js +928 -7
  251. package/lib/locale/lang/zh-TC.umd.js +948 -0
  252. package/lib/locale/lang/zh-TW.js +928 -7
  253. package/lib/locale/lang/zh-TW.umd.js +945 -20
  254. package/lib/locale/ms-MY.umd.js +948 -0
  255. package/lib/locale/nb-NO.umd.js +948 -0
  256. package/lib/locale/pt-BR.umd.js +948 -0
  257. package/lib/locale/ru-RU.umd.js +948 -0
  258. package/lib/locale/th-TH.umd.js +948 -0
  259. package/lib/locale/ug-CN.umd.js +948 -0
  260. package/lib/locale/uk-UA.umd.js +948 -0
  261. package/lib/locale/uz-UZ.umd.js +948 -0
  262. package/lib/locale/vi-VN.umd.js +948 -0
  263. package/lib/locale/zh-CHT.umd.js +948 -0
  264. package/lib/locale/zh-CN.umd.js +948 -0
  265. package/lib/locale/zh-HK.umd.js +948 -0
  266. package/lib/locale/zh-MO.umd.js +948 -0
  267. package/lib/locale/zh-TC.umd.js +948 -0
  268. package/lib/locale/zh-TW.umd.js +948 -0
  269. package/lib/style.css +4501 -1
  270. package/lib/style.mini.css +1 -0
  271. package/lib/table/index.js +45 -17
  272. package/lib/table/module/custom/hook.js +132 -252
  273. package/lib/table/module/custom/panel.js +919 -970
  274. package/lib/table/module/edit/hook.js +248 -618
  275. package/lib/table/module/export/export-panel.js +390 -347
  276. package/lib/table/module/export/hook.js +745 -1179
  277. package/lib/table/module/export/import-panel.js +170 -136
  278. package/lib/table/module/export/util.js +37 -14
  279. package/lib/table/module/filter/hook.js +127 -227
  280. package/lib/table/module/filter/panel.js +177 -208
  281. package/lib/table/module/keyboard/hook.js +93 -172
  282. package/lib/table/module/menu/hook.js +86 -165
  283. package/lib/table/module/menu/panel.js +176 -141
  284. package/lib/table/module/validator/hook.js +164 -271
  285. package/lib/table/render/index.js +700 -1147
  286. package/lib/table/src/body.js +426 -559
  287. package/lib/table/src/cell.js +619 -987
  288. package/lib/table/src/column.js +55 -30
  289. package/lib/table/src/columnInfo.js +88 -110
  290. package/lib/table/src/emits.js +145 -13
  291. package/lib/table/src/footer.js +181 -240
  292. package/lib/table/src/group.js +56 -34
  293. package/lib/table/src/header.js +292 -367
  294. package/lib/table/src/props.js +27 -12
  295. package/lib/table/src/store.js +25 -9
  296. package/lib/table/src/table.js +14179 -1023
  297. package/lib/table/src/use/cell-view.js +47 -37
  298. package/lib/table/src/use/index.js +17 -15
  299. package/lib/table/src/util.js +236 -337
  300. package/lib/table/style/index.js +1 -1
  301. package/lib/table/style/style.css +1 -1
  302. package/lib/table/style/style.mini.css +1 -0
  303. package/lib/toolbar/index.js +42 -14
  304. package/lib/toolbar/src/toolbar.js +271 -379
  305. package/lib/toolbar/style/index.js +1 -1
  306. package/lib/toolbar/style/{style.min.css → style.mini.css} +1 -1
  307. package/lib/ui/index.js +153 -195
  308. package/lib/ui/src/anime.js +49 -29
  309. package/lib/ui/src/comp.js +23 -6
  310. package/lib/ui/src/dom.js +114 -147
  311. package/lib/ui/src/log.js +34 -18
  312. package/lib/ui/src/utils.js +57 -45
  313. package/lib/ui/src/vn.js +60 -34
  314. package/lib/ui/style/index.js +1 -1
  315. package/lib/v-x-e-table/index.js +35 -19
  316. package/lib/vxe-colgroup/index.js +35 -19
  317. package/lib/vxe-colgroup/style/index.js +1 -1
  318. package/lib/vxe-column/index.js +35 -19
  319. package/lib/vxe-column/style/index.js +1 -1
  320. package/lib/vxe-grid/index.js +35 -19
  321. package/lib/vxe-grid/style/index.js +1 -1
  322. package/{es/grid/style.min.css → lib/vxe-grid/style/style.mini.css} +1 -1
  323. package/lib/vxe-table/index.js +35 -19
  324. package/lib/vxe-table/style/index.js +1 -1
  325. package/lib/vxe-table/style/style.css +1 -1
  326. package/lib/vxe-table/style/style.mini.css +1 -0
  327. package/lib/vxe-toolbar/index.js +35 -19
  328. package/lib/vxe-toolbar/style/index.js +1 -1
  329. package/lib/vxe-toolbar/style/{style.min.css → style.mini.css} +1 -1
  330. package/lib/vxe-ui/index.js +35 -19
  331. package/lib/vxe-ui/style/index.js +1 -1
  332. package/package.json +8 -4
  333. package/packages/locale/lang/zh-HK.ts +907 -3
  334. package/packages/locale/lang/zh-MO.ts +907 -3
  335. package/packages/locale/lang/zh-TC.ts +907 -3
  336. package/packages/locale/lang/zh-TW.ts +907 -3
  337. package/packages/ui/index.ts +1 -28
  338. package/dist/style.min.css +0 -1
  339. package/es/index.css +0 -1
  340. package/es/index.min.css +0 -1
  341. package/es/style.min.css +0 -1
  342. package/es/table/style.min.css +0 -1
  343. package/es/vxe-table/style.min.css +0 -1
  344. package/es/vxe-v-x-e-table/index.js +0 -3
  345. package/lib/colgroup/index.min.js +0 -1
  346. package/lib/column/index.min.js +0 -1
  347. package/lib/components.min.js +0 -1
  348. package/lib/grid/index.min.js +0 -1
  349. package/lib/grid/src/emits.min.js +0 -1
  350. package/lib/grid/src/grid.min.js +0 -1
  351. package/lib/grid/src/props.min.js +0 -1
  352. package/lib/index.css +0 -1
  353. package/lib/index.min.css +0 -1
  354. package/lib/locale/lang/ar-EG.d.ts +0 -2
  355. package/lib/locale/lang/ar-EG.min.js +0 -1
  356. package/lib/locale/lang/de-DE.d.ts +0 -2
  357. package/lib/locale/lang/de-DE.min.js +0 -1
  358. package/lib/locale/lang/en-US.d.ts +0 -2
  359. package/lib/locale/lang/en-US.min.js +0 -1
  360. package/lib/locale/lang/es-ES.d.ts +0 -2
  361. package/lib/locale/lang/es-ES.min.js +0 -1
  362. package/lib/locale/lang/fr-FR.d.ts +0 -2
  363. package/lib/locale/lang/fr-FR.min.js +0 -1
  364. package/lib/locale/lang/hu-HU.d.ts +0 -2
  365. package/lib/locale/lang/hu-HU.min.js +0 -1
  366. package/lib/locale/lang/hy-AM.d.ts +0 -2
  367. package/lib/locale/lang/hy-AM.min.js +0 -1
  368. package/lib/locale/lang/id-ID.d.ts +0 -2
  369. package/lib/locale/lang/id-ID.min.js +0 -1
  370. package/lib/locale/lang/it-IT.d.ts +0 -2
  371. package/lib/locale/lang/it-IT.min.js +0 -1
  372. package/lib/locale/lang/ja-JP.d.ts +0 -2
  373. package/lib/locale/lang/ja-JP.min.js +0 -1
  374. package/lib/locale/lang/ko-KR.d.ts +0 -2
  375. package/lib/locale/lang/ko-KR.min.js +0 -1
  376. package/lib/locale/lang/ms-MY.d.ts +0 -2
  377. package/lib/locale/lang/ms-MY.min.js +0 -1
  378. package/lib/locale/lang/nb-NO.d.ts +0 -2
  379. package/lib/locale/lang/nb-NO.min.js +0 -1
  380. package/lib/locale/lang/pt-BR.d.ts +0 -2
  381. package/lib/locale/lang/pt-BR.min.js +0 -1
  382. package/lib/locale/lang/ru-RU.d.ts +0 -2
  383. package/lib/locale/lang/ru-RU.min.js +0 -1
  384. package/lib/locale/lang/th-TH.d.ts +0 -2
  385. package/lib/locale/lang/th-TH.min.js +0 -1
  386. package/lib/locale/lang/ug-CN.d.ts +0 -2
  387. package/lib/locale/lang/ug-CN.min.js +0 -1
  388. package/lib/locale/lang/uk-UA.d.ts +0 -2
  389. package/lib/locale/lang/uk-UA.min.js +0 -1
  390. package/lib/locale/lang/uz-UZ.d.ts +0 -2
  391. package/lib/locale/lang/uz-UZ.min.js +0 -1
  392. package/lib/locale/lang/vi-VN.d.ts +0 -2
  393. package/lib/locale/lang/vi-VN.min.js +0 -1
  394. package/lib/locale/lang/zh-CHT.d.ts +0 -2
  395. package/lib/locale/lang/zh-CHT.min.js +0 -1
  396. package/lib/locale/lang/zh-CN.d.ts +0 -2
  397. package/lib/locale/lang/zh-CN.min.js +0 -1
  398. package/lib/locale/lang/zh-HK.d.ts +0 -2
  399. package/lib/locale/lang/zh-HK.min.js +0 -1
  400. package/lib/locale/lang/zh-MO.d.ts +0 -2
  401. package/lib/locale/lang/zh-MO.min.js +0 -1
  402. package/lib/locale/lang/zh-TC.min.js +0 -1
  403. package/lib/locale/lang/zh-TW.d.ts +0 -2
  404. package/lib/locale/lang/zh-TW.min.js +0 -1
  405. package/lib/style.min.css +0 -1
  406. package/lib/table/index.min.js +0 -1
  407. package/lib/table/module/custom/hook.min.js +0 -1
  408. package/lib/table/module/custom/panel.min.js +0 -1
  409. package/lib/table/module/edit/hook.min.js +0 -1
  410. package/lib/table/module/export/export-panel.min.js +0 -1
  411. package/lib/table/module/export/hook.min.js +0 -1
  412. package/lib/table/module/export/import-panel.min.js +0 -1
  413. package/lib/table/module/export/util.min.js +0 -1
  414. package/lib/table/module/filter/hook.min.js +0 -1
  415. package/lib/table/module/filter/panel.min.js +0 -1
  416. package/lib/table/module/keyboard/hook.min.js +0 -1
  417. package/lib/table/module/menu/hook.min.js +0 -1
  418. package/lib/table/module/menu/panel.min.js +0 -1
  419. package/lib/table/module/validator/hook.min.js +0 -1
  420. package/lib/table/render/index.min.js +0 -1
  421. package/lib/table/src/body.min.js +0 -1
  422. package/lib/table/src/cell.min.js +0 -1
  423. package/lib/table/src/column.min.js +0 -1
  424. package/lib/table/src/columnInfo.min.js +0 -1
  425. package/lib/table/src/emits.min.js +0 -1
  426. package/lib/table/src/footer.min.js +0 -1
  427. package/lib/table/src/group.min.js +0 -1
  428. package/lib/table/src/header.min.js +0 -1
  429. package/lib/table/src/props.min.js +0 -1
  430. package/lib/table/src/store.min.js +0 -1
  431. package/lib/table/src/table.min.js +0 -1
  432. package/lib/table/src/use/cell-view.min.js +0 -1
  433. package/lib/table/src/use/index.min.js +0 -1
  434. package/lib/table/src/util.min.js +0 -1
  435. package/lib/table/style/style.min.css +0 -1
  436. package/lib/toolbar/index.min.js +0 -1
  437. package/lib/toolbar/src/toolbar.min.js +0 -1
  438. package/lib/ui/index.min.js +0 -1
  439. package/lib/ui/src/anime.min.js +0 -1
  440. package/lib/ui/src/comp.min.js +0 -1
  441. package/lib/ui/src/dom.min.js +0 -1
  442. package/lib/ui/src/log.min.js +0 -1
  443. package/lib/ui/src/utils.min.js +0 -1
  444. package/lib/ui/src/vn.min.js +0 -1
  445. package/lib/ui/style/style.min.css +0 -0
  446. package/lib/v-x-e-table/index.min.js +0 -1
  447. package/lib/v-x-e-table/style/index.js +0 -1
  448. package/lib/v-x-e-table/style/style.css +0 -0
  449. package/lib/v-x-e-table/style/style.min.css +0 -0
  450. package/lib/vxe-colgroup/index.min.js +0 -1
  451. package/lib/vxe-colgroup/style/style.min.css +0 -0
  452. package/lib/vxe-column/index.min.js +0 -1
  453. package/lib/vxe-column/style/style.min.css +0 -0
  454. package/lib/vxe-grid/index.min.js +0 -1
  455. package/lib/vxe-table/index.min.js +0 -1
  456. package/lib/vxe-table/style/style.min.css +0 -1
  457. package/lib/vxe-toolbar/index.min.js +0 -1
  458. package/lib/vxe-ui/index.min.js +0 -1
  459. package/lib/vxe-ui/style/style.min.css +0 -0
  460. package/lib/vxe-v-x-e-table/index.js +0 -21
  461. package/lib/vxe-v-x-e-table/index.min.js +0 -1
  462. package/lib/vxe-v-x-e-table/style/index.js +0 -1
  463. package/lib/vxe-v-x-e-table/style/style.css +0 -0
  464. package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
  465. /package/{es/iconfont.1792838769925.ttf → dist/iconfont.1792979665397.ttf} +0 -0
  466. /package/{es/iconfont.1792838769925.woff → dist/iconfont.1792979665397.woff} +0 -0
  467. /package/{es/iconfont.1792838769925.woff2 → dist/iconfont.1792979665397.woff2} +0 -0
  468. /package/es/colgroup/{style.min.css → style.mini.css} +0 -0
  469. /package/es/column/{style.min.css → style.mini.css} +0 -0
  470. /package/{lib/iconfont.1792838769925.ttf → es/iconfont.1792979665397.ttf} +0 -0
  471. /package/{lib/iconfont.1792838769925.woff → es/iconfont.1792979665397.woff} +0 -0
  472. /package/{lib/iconfont.1792838769925.woff2 → es/iconfont.1792979665397.woff2} +0 -0
  473. /package/es/ui/{style.min.css → style.mini.css} +0 -0
  474. /package/es/{v-x-e-table/style.css → vxe-colgroup/style.mini.css} +0 -0
  475. /package/es/{v-x-e-table/style.min.css → vxe-column/style.mini.css} +0 -0
  476. /package/es/{vxe-colgroup/style.min.css → vxe-ui/style.mini.css} +0 -0
  477. /package/{es/vxe-column/style.min.css → lib/colgroup/style/style.mini.css} +0 -0
  478. /package/{es/vxe-ui/style.min.css → lib/column/style/style.mini.css} +0 -0
  479. /package/{es/vxe-v-x-e-table/style.css → lib/ui/style/style.mini.css} +0 -0
  480. /package/{es/vxe-v-x-e-table/style.min.css → lib/vxe-colgroup/style/style.mini.css} +0 -0
  481. /package/lib/{colgroup/style/style.min.css → vxe-column/style/style.mini.css} +0 -0
  482. /package/lib/{column/style/style.min.css → vxe-ui/style/style.mini.css} +0 -0
@@ -0,0 +1,27 @@
1
+ import { PropType } from 'vue';
2
+ import type { VxeTableDefines } from '../../../../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ defaultOptions: {
5
+ type: PropType<VxeTableDefines.ImportParamsObj>;
6
+ default: () => VxeTableDefines.ImportParamsObj;
7
+ };
8
+ storeData: {
9
+ type: PropType<VxeTableDefines.ImportStoreObj>;
10
+ default: () => VxeTableDefines.ImportStoreObj;
11
+ };
12
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
+ [key: string]: any;
14
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ defaultOptions: {
16
+ type: PropType<VxeTableDefines.ImportParamsObj>;
17
+ default: () => VxeTableDefines.ImportParamsObj;
18
+ };
19
+ storeData: {
20
+ type: PropType<VxeTableDefines.ImportStoreObj>;
21
+ default: () => VxeTableDefines.ImportStoreObj;
22
+ };
23
+ }>>, {
24
+ defaultOptions: VxeTableDefines.ImportParamsObj;
25
+ storeData: VxeTableDefines.ImportStoreObj;
26
+ }, {}>;
27
+ export default _default;
@@ -1,256 +1,248 @@
1
- import { h, ref, computed, inject, reactive, nextTick } from 'vue';
2
- import { defineVxeComponent } from '../../../ui/src/comp';
3
- import { VxeUI } from '../../../ui';
4
- import XEUtils from 'xe-utils';
5
- import { getDefaultConfig, parseFile } from '../../../ui/src/utils';
6
- import { createComponentLog } from '../../../ui/src/log';
7
- const { errLog } = createComponentLog('table');
1
+ import { h, ref, computed, inject, reactive, nextTick } from "vue";
2
+ import { defineVxeComponent } from "../../../ui/src/comp";
3
+ import { VxeUI } from "../../../ui";
4
+ import XEUtils from "xe-utils";
5
+ import { getDefaultConfig, parseFile } from "../../../ui/src/utils";
6
+ import { createComponentLog } from "../../../ui/src/log";
7
+ const { errLog } = createComponentLog("table");
8
8
  const { getI18n, getIcon, renderEmptyElement } = VxeUI;
9
- export default defineVxeComponent({
10
- name: 'VxeTableImportPanel',
11
- props: {
12
- defaultOptions: {
13
- type: Object,
14
- default: () => ({})
15
- },
16
- storeData: {
17
- type: Object,
18
- default: () => ({})
19
- }
9
+ var import_panel_default = defineVxeComponent({
10
+ name: "VxeTableImportPanel",
11
+ props: {
12
+ defaultOptions: {
13
+ type: Object,
14
+ default: () => ({})
20
15
  },
21
- setup(props) {
22
- const VxeUIModalComponent = VxeUI.getComponent('VxeModal');
23
- const VxeUIButtonComponent = VxeUI.getComponent('VxeButton');
24
- const VxeUISelectComponent = VxeUI.getComponent('VxeSelect');
25
- const $xeTable = inject('$xeTable', {});
26
- const { computeImportOpts } = $xeTable.getComputeMaps();
27
- const reactData = reactive({
28
- loading: false
29
- });
30
- const refFileBtn = ref();
31
- const computeSelectName = computed(() => {
32
- const { storeData } = props;
33
- return `${storeData.filename}.${storeData.type}`;
34
- });
35
- const computeHasFile = computed(() => {
36
- const { storeData } = props;
37
- return storeData.file && storeData.type;
38
- });
39
- const computeParseTypeLabel = computed(() => {
40
- const { storeData } = props;
41
- const { type, typeList } = storeData;
42
- if (type) {
43
- const selectItem = XEUtils.find(typeList, item => type === item.value);
44
- return `${selectItem ? selectItem.label : '*.*'}`;
45
- }
46
- return `*.${typeList.map((item) => item.value).join(', *.')}`;
47
- });
48
- const clearFileEvent = () => {
49
- const { storeData } = props;
50
- Object.assign(storeData, {
51
- filename: '',
52
- sheetName: '',
53
- type: ''
54
- });
55
- };
56
- const selectFileEvent = () => {
57
- const { storeData, defaultOptions } = props;
58
- $xeTable.readFile(defaultOptions).then((params) => {
59
- const { file } = params;
60
- Object.assign(storeData, parseFile(file), { file });
61
- }).catch(() => { });
62
- };
63
- const showEvent = () => {
64
- nextTick(() => {
65
- const targetElem = refFileBtn.value;
66
- if (targetElem) {
67
- targetElem.focus();
68
- }
69
- });
70
- };
71
- const cancelEvent = () => {
72
- const { storeData } = props;
73
- storeData.visible = false;
74
- };
75
- const importEvent = () => {
76
- const { storeData, defaultOptions } = props;
77
- const importOpts = computeImportOpts.value;
78
- reactData.loading = true;
79
- $xeTable.importByFile(storeData.file, Object.assign({}, importOpts, defaultOptions)).then(() => {
80
- reactData.loading = false;
81
- storeData.visible = false;
82
- }).catch(() => {
83
- reactData.loading = false;
84
- });
85
- };
86
- const renderVN = () => {
87
- const $xeGrid = $xeTable.xeGrid;
88
- const $xeGantt = $xeTable.xeGantt;
89
- const { defaultOptions, storeData } = props;
90
- const selectName = computeSelectName.value;
91
- const hasFile = computeHasFile.value;
92
- const importOpts = computeImportOpts.value;
93
- const parseTypeLabel = computeParseTypeLabel.value;
94
- const modelOptions = importOpts.modelOptions || {};
95
- const settingOptions = importOpts.settingOptions || {};
96
- const slots = defaultOptions.slots || {};
97
- const topSlot = slots.top;
98
- const bottomSlot = slots.bottom;
99
- const defaultSlot = slots.default;
100
- const footerSlot = slots.footer;
101
- return VxeUIModalComponent
102
- ? h(VxeUIModalComponent, {
103
- id: 'VXE_IMPORT_MODAL',
104
- modelValue: storeData.visible,
105
- title: modelOptions.title || getI18n('vxe.import.impTitle'),
106
- className: 'vxe-table-export-popup-wrapper',
107
- width: modelOptions.width || 540,
108
- height: modelOptions.height,
109
- minWidth: modelOptions.minWidth || 360,
110
- minHeight: modelOptions.minHeight || 240,
111
- mask: getDefaultConfig(modelOptions.mask, true),
112
- lockView: getDefaultConfig(modelOptions.lockView, true),
113
- showFooter: true,
114
- escClosable: true,
115
- maskClosable: true,
116
- position: modelOptions.position,
117
- fullscreen: modelOptions.fullscreen,
118
- remember: modelOptions.remember,
119
- showMinimize: modelOptions.showMinimize,
120
- showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
121
- resize: getDefaultConfig(modelOptions.resize, true),
122
- loading: reactData.loading,
123
- 'onUpdate:modelValue'(value) {
124
- storeData.visible = value;
125
- },
126
- onShow: showEvent
127
- }, {
128
- default: () => {
129
- const params = {
130
- $table: $xeTable,
131
- $grid: $xeGrid,
132
- $gantt: $xeGantt,
133
- options: defaultOptions,
134
- params: defaultOptions.params
135
- };
136
- return h('div', {
137
- class: 'vxe-table-export--panel'
138
- }, [
139
- topSlot
140
- ? h('div', {
141
- class: 'vxe-table-export--panel-top'
142
- }, $xeTable.callSlot(topSlot, params))
143
- : renderEmptyElement($xeTable),
144
- h('div', {
145
- class: 'vxe-table-export--panel-body'
146
- }, defaultSlot
147
- ? $xeTable.callSlot(defaultSlot, params)
148
- : [
149
- h('table', {
150
- class: 'vxe-table-export--panel-table',
151
- cellspacing: 0,
152
- cellpadding: 0,
153
- border: 0
154
- }, [
155
- h('tbody', [
156
- h('tr', [
157
- h('td', getI18n('vxe.import.impFile')),
158
- h('td', [
159
- hasFile
160
- ? h('div', {
161
- class: 'vxe-table-export--selected--file',
162
- title: selectName
163
- }, [
164
- h('span', selectName),
165
- h('i', {
166
- class: getIcon().INPUT_CLEAR,
167
- onClick: clearFileEvent
168
- })
169
- ])
170
- : h('button', {
171
- ref: refFileBtn,
172
- class: 'vxe-table-export--select--file',
173
- onClick: selectFileEvent
174
- }, getI18n('vxe.import.impSelect'))
175
- ])
176
- ]),
177
- h('tr', [
178
- h('td', getI18n('vxe.import.impType')),
179
- h('td', parseTypeLabel)
180
- ]),
181
- settingOptions.showMode === false
182
- ? renderEmptyElement($xeTable)
183
- : h('tr', [
184
- h('td', getI18n('vxe.import.impMode')),
185
- h('td', [
186
- VxeUISelectComponent
187
- ? h(VxeUISelectComponent, {
188
- modelValue: defaultOptions.mode,
189
- options: storeData.modeList,
190
- 'onUpdate:modelValue'(value) {
191
- defaultOptions.mode = value;
192
- }
193
- })
194
- : renderEmptyElement($xeTable)
195
- ])
196
- ])
197
- ])
198
- ])
199
- ]),
200
- bottomSlot
201
- ? h('div', {
202
- class: 'vxe-table-export--panel-bottom'
203
- }, $xeTable.callSlot(bottomSlot, params))
204
- : renderEmptyElement($xeTable)
205
- ]);
206
- },
207
- footer() {
208
- const params = {
209
- $table: $xeTable,
210
- $grid: $xeGrid,
211
- $gantt: $xeGantt,
212
- options: defaultOptions,
213
- params: defaultOptions.params
214
- };
215
- return h('div', {
216
- class: 'vxe-table-export--panel-footer'
217
- }, footerSlot
218
- ? $xeTable.callSlot(footerSlot, params)
219
- : [
220
- h('div', {
221
- class: 'vxe-table-export--panel-btns'
222
- }, [
223
- VxeUIButtonComponent
224
- ? h(VxeUIButtonComponent, {
225
- content: getI18n('vxe.import.impCancel'),
226
- onClick: cancelEvent
227
- })
228
- : renderEmptyElement($xeTable),
229
- VxeUIButtonComponent
230
- ? h(VxeUIButtonComponent, {
231
- status: 'primary',
232
- disabled: !hasFile || reactData.loading,
233
- content: getI18n('vxe.import.impConfirm'),
234
- onClick: importEvent
235
- })
236
- : renderEmptyElement($xeTable)
237
- ])
238
- ]);
239
- }
240
- })
241
- : renderEmptyElement($xeTable);
242
- };
243
- nextTick(() => {
244
- if (!VxeUIModalComponent) {
245
- errLog('vxe.error.reqComp', ['vxe-modal']);
246
- }
247
- if (!VxeUIButtonComponent) {
248
- errLog('vxe.error.reqComp', ['vxe-button']);
249
- }
250
- if (!VxeUISelectComponent) {
251
- errLog('vxe.error.reqComp', ['vxe-select']);
252
- }
253
- });
254
- return renderVN;
16
+ storeData: {
17
+ type: Object,
18
+ default: () => ({})
255
19
  }
20
+ },
21
+ setup(props) {
22
+ const VxeUIModalComponent = VxeUI.getComponent("VxeModal");
23
+ const VxeUIButtonComponent = VxeUI.getComponent("VxeButton");
24
+ const VxeUISelectComponent = VxeUI.getComponent("VxeSelect");
25
+ const $xeTable = inject("$xeTable", {});
26
+ const { computeImportOpts } = $xeTable.getComputeMaps();
27
+ const reactData = reactive({
28
+ loading: false
29
+ });
30
+ const refFileBtn = ref();
31
+ const computeSelectName = computed(() => {
32
+ const { storeData } = props;
33
+ return `${storeData.filename}.${storeData.type}`;
34
+ });
35
+ const computeHasFile = computed(() => {
36
+ const { storeData } = props;
37
+ return storeData.file && storeData.type;
38
+ });
39
+ const computeParseTypeLabel = computed(() => {
40
+ const { storeData } = props;
41
+ const { type, typeList } = storeData;
42
+ if (type) {
43
+ const selectItem = XEUtils.find(typeList, (item) => type === item.value);
44
+ return `${selectItem ? selectItem.label : "*.*"}`;
45
+ }
46
+ return `*.${typeList.map((item) => item.value).join(", *.")}`;
47
+ });
48
+ const clearFileEvent = () => {
49
+ const { storeData } = props;
50
+ Object.assign(storeData, {
51
+ filename: "",
52
+ sheetName: "",
53
+ type: ""
54
+ });
55
+ };
56
+ const selectFileEvent = () => {
57
+ const { storeData, defaultOptions } = props;
58
+ $xeTable.readFile(defaultOptions).then((params) => {
59
+ const { file } = params;
60
+ Object.assign(storeData, parseFile(file), { file });
61
+ }).catch(() => {
62
+ });
63
+ };
64
+ const showEvent = () => {
65
+ nextTick(() => {
66
+ const targetElem = refFileBtn.value;
67
+ if (targetElem) {
68
+ targetElem.focus();
69
+ }
70
+ });
71
+ };
72
+ const cancelEvent = () => {
73
+ const { storeData } = props;
74
+ storeData.visible = false;
75
+ };
76
+ const importEvent = () => {
77
+ const { storeData, defaultOptions } = props;
78
+ const importOpts = computeImportOpts.value;
79
+ reactData.loading = true;
80
+ $xeTable.importByFile(storeData.file, Object.assign({}, importOpts, defaultOptions)).then(() => {
81
+ reactData.loading = false;
82
+ storeData.visible = false;
83
+ }).catch(() => {
84
+ reactData.loading = false;
85
+ });
86
+ };
87
+ const renderVN = () => {
88
+ const $xeGrid = $xeTable.xeGrid;
89
+ const $xeGantt = $xeTable.xeGantt;
90
+ const { defaultOptions, storeData } = props;
91
+ const selectName = computeSelectName.value;
92
+ const hasFile = computeHasFile.value;
93
+ const importOpts = computeImportOpts.value;
94
+ const parseTypeLabel = computeParseTypeLabel.value;
95
+ const modelOptions = importOpts.modelOptions || {};
96
+ const settingOptions = importOpts.settingOptions || {};
97
+ const slots = defaultOptions.slots || {};
98
+ const topSlot = slots.top;
99
+ const bottomSlot = slots.bottom;
100
+ const defaultSlot = slots.default;
101
+ const footerSlot = slots.footer;
102
+ return VxeUIModalComponent ? h(VxeUIModalComponent, {
103
+ id: "VXE_IMPORT_MODAL",
104
+ modelValue: storeData.visible,
105
+ title: modelOptions.title || getI18n("vxe.import.impTitle"),
106
+ className: "vxe-table-export-popup-wrapper",
107
+ width: modelOptions.width || 540,
108
+ height: modelOptions.height,
109
+ minWidth: modelOptions.minWidth || 360,
110
+ minHeight: modelOptions.minHeight || 240,
111
+ mask: getDefaultConfig(modelOptions.mask, true),
112
+ lockView: getDefaultConfig(modelOptions.lockView, true),
113
+ showFooter: true,
114
+ escClosable: true,
115
+ maskClosable: true,
116
+ position: modelOptions.position,
117
+ fullscreen: modelOptions.fullscreen,
118
+ remember: modelOptions.remember,
119
+ showMinimize: modelOptions.showMinimize,
120
+ showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
121
+ resize: getDefaultConfig(modelOptions.resize, true),
122
+ loading: reactData.loading,
123
+ "onUpdate:modelValue"(value) {
124
+ storeData.visible = value;
125
+ },
126
+ onShow: showEvent
127
+ }, {
128
+ default: () => {
129
+ const params = {
130
+ $table: $xeTable,
131
+ $grid: $xeGrid,
132
+ $gantt: $xeGantt,
133
+ options: defaultOptions,
134
+ params: defaultOptions.params
135
+ };
136
+ return h("div", {
137
+ class: "vxe-table-export--panel"
138
+ }, [
139
+ topSlot ? h("div", {
140
+ class: "vxe-table-export--panel-top"
141
+ }, $xeTable.callSlot(topSlot, params)) : renderEmptyElement($xeTable),
142
+ h(
143
+ "div",
144
+ {
145
+ class: "vxe-table-export--panel-body"
146
+ },
147
+ defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [
148
+ h("table", {
149
+ class: "vxe-table-export--panel-table",
150
+ cellspacing: 0,
151
+ cellpadding: 0,
152
+ border: 0
153
+ }, [
154
+ h("tbody", [
155
+ h("tr", [
156
+ h("td", getI18n("vxe.import.impFile")),
157
+ h("td", [
158
+ hasFile ? h("div", {
159
+ class: "vxe-table-export--selected--file",
160
+ title: selectName
161
+ }, [
162
+ h("span", selectName),
163
+ h("i", {
164
+ class: getIcon().INPUT_CLEAR,
165
+ onClick: clearFileEvent
166
+ })
167
+ ]) : h("button", {
168
+ ref: refFileBtn,
169
+ class: "vxe-table-export--select--file",
170
+ onClick: selectFileEvent
171
+ }, getI18n("vxe.import.impSelect"))
172
+ ])
173
+ ]),
174
+ h("tr", [
175
+ h("td", getI18n("vxe.import.impType")),
176
+ h("td", parseTypeLabel)
177
+ ]),
178
+ settingOptions.showMode === false ? renderEmptyElement($xeTable) : h("tr", [
179
+ h("td", getI18n("vxe.import.impMode")),
180
+ h("td", [
181
+ VxeUISelectComponent ? h(VxeUISelectComponent, {
182
+ modelValue: defaultOptions.mode,
183
+ options: storeData.modeList,
184
+ "onUpdate:modelValue"(value) {
185
+ defaultOptions.mode = value;
186
+ }
187
+ }) : renderEmptyElement($xeTable)
188
+ ])
189
+ ])
190
+ ])
191
+ ])
192
+ ]
193
+ ),
194
+ bottomSlot ? h("div", {
195
+ class: "vxe-table-export--panel-bottom"
196
+ }, $xeTable.callSlot(bottomSlot, params)) : renderEmptyElement($xeTable)
197
+ ]);
198
+ },
199
+ footer() {
200
+ const params = {
201
+ $table: $xeTable,
202
+ $grid: $xeGrid,
203
+ $gantt: $xeGantt,
204
+ options: defaultOptions,
205
+ params: defaultOptions.params
206
+ };
207
+ return h(
208
+ "div",
209
+ {
210
+ class: "vxe-table-export--panel-footer"
211
+ },
212
+ footerSlot ? $xeTable.callSlot(footerSlot, params) : [
213
+ h("div", {
214
+ class: "vxe-table-export--panel-btns"
215
+ }, [
216
+ VxeUIButtonComponent ? h(VxeUIButtonComponent, {
217
+ content: getI18n("vxe.import.impCancel"),
218
+ onClick: cancelEvent
219
+ }) : renderEmptyElement($xeTable),
220
+ VxeUIButtonComponent ? h(VxeUIButtonComponent, {
221
+ status: "primary",
222
+ disabled: !hasFile || reactData.loading,
223
+ content: getI18n("vxe.import.impConfirm"),
224
+ onClick: importEvent
225
+ }) : renderEmptyElement($xeTable)
226
+ ])
227
+ ]
228
+ );
229
+ }
230
+ }) : renderEmptyElement($xeTable);
231
+ };
232
+ nextTick(() => {
233
+ if (!VxeUIModalComponent) {
234
+ errLog("vxe.error.reqComp", ["vxe-modal"]);
235
+ }
236
+ if (!VxeUIButtonComponent) {
237
+ errLog("vxe.error.reqComp", ["vxe-button"]);
238
+ }
239
+ if (!VxeUISelectComponent) {
240
+ errLog("vxe.error.reqComp", ["vxe-select"]);
241
+ }
242
+ });
243
+ return renderVN;
244
+ }
256
245
  });
246
+ export {
247
+ import_panel_default as default
248
+ };
@@ -0,0 +1,5 @@
1
+ import type { VxeTablePropTypes } from '../../../../types';
2
+ export declare function getExportBlobByContent(content: string, options: {
3
+ type: string;
4
+ }): Blob;
5
+ export declare function createHtmlPage(opts: VxeTablePropTypes.PrintConfig, content: string): string;
@@ -1,20 +1,23 @@
1
- // 默认导出或打印的 HTML 样式
2
1
  const defaultHtmlStyle = 'body{padding:0;color:rgba(0,0,0,0.7);font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table.is--default-width,.vxe-table.is--auto-width{width:100%}.vxe-table.is--scale-width{table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{white-space:pre-line;word-break:break-all;border-color:#D0D0D0;border-style:solid;border-width:0}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:0.5em 0.4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:0.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';
3
- export function getExportBlobByContent(content, options) {
4
- return new Blob([content], { type: `text/${options.type};charset=utf-8;` });
2
+ function getExportBlobByContent(content, options) {
3
+ return new Blob([content], { type: `text/${options.type};charset=utf-8;` });
5
4
  }
6
- export function createHtmlPage(opts, content) {
7
- const { style } = opts;
8
- return [
9
- '<!DOCTYPE html><html>',
10
- '<head>',
11
- '<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',
12
- `<title>${opts.sheetName}</title>`,
13
- '<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>',
14
- `<style>${defaultHtmlStyle}</style>`,
15
- style ? `<style>${style}</style>` : '',
16
- '</head>',
17
- `<body>${content}</body>`,
18
- '</html>'
19
- ].join('');
5
+ function createHtmlPage(opts, content) {
6
+ const { style } = opts;
7
+ return [
8
+ "<!DOCTYPE html><html>",
9
+ "<head>",
10
+ '<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',
11
+ `<title>${opts.sheetName}</title>`,
12
+ '<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>',
13
+ `<style>${defaultHtmlStyle}</style>`,
14
+ style ? `<style>${style}</style>` : "",
15
+ "</head>",
16
+ `<body>${content}</body>`,
17
+ "</html>"
18
+ ].join("");
20
19
  }
20
+ export {
21
+ createHtmlPage,
22
+ getExportBlobByContent
23
+ };
@@ -0,0 +1 @@
1
+ export {};