vxe-table 4.3.4 → 4.3.6-beta.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 (521) hide show
  1. package/es/button/style.css +465 -341
  2. package/es/checkbox/style.css +156 -127
  3. package/es/checkbox-group/style.css +1 -1
  4. package/es/colgroup/style.css +1 -1
  5. package/es/column/style.css +1 -1
  6. package/es/edit/style.css +1 -1
  7. package/es/export/src/hook.js +1 -0
  8. package/es/export/style.css +136 -108
  9. package/es/filter/src/hook.js +1 -1
  10. package/es/filter/style.css +103 -82
  11. package/es/footer/src/footer.js +3 -3
  12. package/es/form/src/form.js +5 -4
  13. package/es/form/style.css +201 -168
  14. package/es/form-gather/style.css +1 -1
  15. package/es/form-item/style.css +1 -1
  16. package/es/grid/style.css +61 -50
  17. package/es/header/src/header.js +10 -5
  18. package/es/icon/style/iconfont.1669214286403.ttf +0 -0
  19. package/es/icon/style/iconfont.1669214286403.woff +0 -0
  20. package/es/icon/style/iconfont.1669214286403.woff2 +0 -0
  21. package/es/icon/style.css +406 -178
  22. package/es/iconfont.1669214286403.ttf +0 -0
  23. package/es/iconfont.1669214286403.woff +0 -0
  24. package/es/iconfont.1669214286403.woff2 +0 -0
  25. package/es/input/style.css +771 -595
  26. package/es/keyboard/style.css +1 -1
  27. package/es/list/src/list.js +7 -1
  28. package/es/list/style.css +19 -14
  29. package/es/loading/style.css +52 -48
  30. package/es/locale/lang/en-US.js +0 -1
  31. package/es/locale/lang/ja-JP.js +0 -1
  32. package/es/locale/lang/zh-CN.js +0 -1
  33. package/es/locale/lang/zh-TC.js +0 -1
  34. package/es/menu/style.css +79 -59
  35. package/es/modal/style.css +311 -247
  36. package/es/optgroup/style.css +1 -1
  37. package/es/option/style.css +1 -1
  38. package/es/pager/style.css +307 -257
  39. package/es/pulldown/src/pulldown.js +9 -3
  40. package/es/pulldown/style.css +42 -31
  41. package/es/radio/style.css +184 -151
  42. package/es/radio-button/style.css +1 -1
  43. package/es/radio-group/style.css +1 -1
  44. package/es/select/style.css +108 -79
  45. package/es/style.css +1 -1
  46. package/es/style.min.css +1 -1
  47. package/es/switch/style.css +87 -67
  48. package/es/table/src/column.js +2 -0
  49. package/es/table/src/columnInfo.js +1 -0
  50. package/es/table/src/table.js +36 -40
  51. package/es/table/style.css +1025 -835
  52. package/es/textarea/style.css +57 -41
  53. package/es/toolbar/style.css +216 -174
  54. package/es/tools/log.js +1 -1
  55. package/es/tooltip/style.css +87 -63
  56. package/es/v-x-e-table/index.js +1 -1
  57. package/es/v-x-e-table/style.css +458 -226
  58. package/es/validator/style.css +1 -1
  59. package/es/vxe-button/style.css +465 -341
  60. package/es/vxe-checkbox/style.css +156 -127
  61. package/es/vxe-checkbox-group/style.css +1 -1
  62. package/es/vxe-colgroup/style.css +1 -1
  63. package/es/vxe-column/style.css +1 -1
  64. package/es/vxe-form/style.css +201 -168
  65. package/es/vxe-form-gather/style.css +1 -1
  66. package/es/vxe-form-item/style.css +1 -1
  67. package/es/vxe-grid/style.css +61 -50
  68. package/es/vxe-icon/style.css +406 -178
  69. package/es/vxe-input/style.css +771 -595
  70. package/es/vxe-list/style.css +19 -14
  71. package/es/vxe-loading/style.css +52 -48
  72. package/es/vxe-modal/style.css +311 -247
  73. package/es/vxe-module-edit/style.css +1 -1
  74. package/es/vxe-module-export/style.css +136 -108
  75. package/es/vxe-module-filter/style.css +103 -82
  76. package/es/vxe-module-keyboard/style.css +1 -1
  77. package/es/vxe-module-menu/style.css +79 -59
  78. package/es/vxe-module-validator/style.css +1 -1
  79. package/es/vxe-optgroup/style.css +1 -1
  80. package/es/vxe-option/style.css +1 -1
  81. package/es/vxe-pager/style.css +307 -257
  82. package/es/vxe-pulldown/style.css +42 -31
  83. package/es/vxe-radio/style.css +184 -151
  84. package/es/vxe-radio-button/style.css +1 -1
  85. package/es/vxe-radio-group/style.css +1 -1
  86. package/es/vxe-select/style.css +108 -79
  87. package/es/vxe-switch/style.css +87 -67
  88. package/es/vxe-table/style.css +1025 -835
  89. package/es/vxe-textarea/style.css +57 -41
  90. package/es/vxe-toolbar/style.css +216 -174
  91. package/es/vxe-tooltip/style.css +87 -63
  92. package/lib/all.js +45 -115
  93. package/lib/all.min.js +1 -1
  94. package/lib/button/index.js +1 -7
  95. package/lib/button/index.min.js +1 -1
  96. package/lib/button/src/button.js +48 -113
  97. package/lib/button/src/button.min.js +1 -1
  98. package/lib/button/style/style.css +465 -341
  99. package/lib/button/style/style.min.css +1 -1
  100. package/lib/checkbox/index.js +1 -7
  101. package/lib/checkbox/index.min.js +1 -1
  102. package/lib/checkbox/src/checkbox.js +12 -32
  103. package/lib/checkbox/src/checkbox.min.js +1 -1
  104. package/lib/checkbox/src/group.js +13 -28
  105. package/lib/checkbox/src/group.min.js +1 -1
  106. package/lib/checkbox/style/style.css +156 -127
  107. package/lib/checkbox/style/style.min.css +1 -1
  108. package/lib/checkbox-group/index.js +1 -7
  109. package/lib/checkbox-group/index.min.js +1 -1
  110. package/lib/checkbox-group/style/style.css +1 -1
  111. package/lib/colgroup/index.js +5 -12
  112. package/lib/colgroup/index.min.js +1 -1
  113. package/lib/colgroup/style/style.css +1 -1
  114. package/lib/column/index.js +5 -12
  115. package/lib/column/index.min.js +1 -1
  116. package/lib/column/style/style.css +1 -1
  117. package/lib/dynamics/index.js +1 -5
  118. package/lib/dynamics/index.min.js +1 -1
  119. package/lib/edit/index.js +1 -5
  120. package/lib/edit/index.min.js +1 -1
  121. package/lib/edit/src/hook.js +102 -248
  122. package/lib/edit/src/hook.min.js +1 -1
  123. package/lib/edit/style/style.css +1 -1
  124. package/lib/export/index.js +4 -19
  125. package/lib/export/index.min.js +1 -1
  126. package/lib/export/src/export-panel.js +38 -77
  127. package/lib/export/src/export-panel.min.js +1 -1
  128. package/lib/export/src/hook.js +127 -380
  129. package/lib/export/src/hook.min.js +1 -1
  130. package/lib/export/src/import-panel.js +17 -39
  131. package/lib/export/src/import-panel.min.js +1 -1
  132. package/lib/export/src/util.js +10 -52
  133. package/lib/export/src/util.min.js +1 -1
  134. package/lib/export/style/style.css +136 -108
  135. package/lib/export/style/style.min.css +1 -1
  136. package/lib/filter/index.js +1 -10
  137. package/lib/filter/index.min.js +1 -1
  138. package/lib/filter/src/hook.js +31 -82
  139. package/lib/filter/src/hook.min.js +1 -1
  140. package/lib/filter/src/panel.js +25 -52
  141. package/lib/filter/src/panel.min.js +1 -1
  142. package/lib/filter/style/style.css +103 -82
  143. package/lib/filter/style/style.min.css +1 -1
  144. package/lib/footer/index.js +1 -7
  145. package/lib/footer/index.min.js +1 -1
  146. package/lib/footer/src/footer.js +54 -99
  147. package/lib/footer/src/footer.min.js +1 -1
  148. package/lib/form/index.js +1 -7
  149. package/lib/form/index.min.js +1 -1
  150. package/lib/form/src/form-config-item.js +27 -56
  151. package/lib/form/src/form-config-item.min.js +1 -1
  152. package/lib/form/src/form-gather.js +3 -12
  153. package/lib/form/src/form-gather.min.js +1 -1
  154. package/lib/form/src/form-item.js +23 -52
  155. package/lib/form/src/form-item.min.js +1 -1
  156. package/lib/form/src/form.js +78 -185
  157. package/lib/form/src/form.min.js +1 -1
  158. package/lib/form/src/itemInfo.js +1 -9
  159. package/lib/form/src/render.js +7 -26
  160. package/lib/form/src/render.min.js +1 -1
  161. package/lib/form/src/util.js +4 -28
  162. package/lib/form/src/util.min.js +1 -1
  163. package/lib/form/style/style.css +201 -168
  164. package/lib/form/style/style.min.css +1 -1
  165. package/lib/form-gather/index.js +1 -7
  166. package/lib/form-gather/index.min.js +1 -1
  167. package/lib/form-gather/style/style.css +1 -1
  168. package/lib/form-item/index.js +1 -7
  169. package/lib/form-item/index.min.js +1 -1
  170. package/lib/form-item/style/style.css +1 -1
  171. package/lib/grid/index.js +1 -7
  172. package/lib/grid/index.min.js +1 -1
  173. package/lib/grid/src/grid.js +97 -315
  174. package/lib/grid/src/grid.min.js +1 -1
  175. package/lib/grid/style/style.css +61 -50
  176. package/lib/grid/style/style.min.css +1 -1
  177. package/lib/header/index.js +1 -7
  178. package/lib/header/index.min.js +1 -1
  179. package/lib/header/src/header.js +57 -92
  180. package/lib/header/src/header.min.js +1 -1
  181. package/lib/header/src/util.js +3 -14
  182. package/lib/header/src/util.min.js +1 -1
  183. package/lib/hooks/size.js +0 -2
  184. package/lib/icon/index.js +1 -7
  185. package/lib/icon/index.min.js +1 -1
  186. package/lib/icon/src/icon.js +2 -7
  187. package/lib/icon/style/iconfont.1669214286403.ttf +0 -0
  188. package/lib/icon/style/iconfont.1669214286403.woff +0 -0
  189. package/lib/icon/style/iconfont.1669214286403.woff2 +0 -0
  190. package/lib/icon/style/style.css +406 -178
  191. package/lib/icon/style/style.min.css +719 -1
  192. package/lib/iconfont.1669214286403.ttf +0 -0
  193. package/lib/iconfont.1669214286403.woff +0 -0
  194. package/lib/iconfont.1669214286403.woff2 +0 -0
  195. package/lib/index.common.js +3 -10
  196. package/lib/index.common.min.js +1 -1
  197. package/lib/index.umd.js +14514 -23890
  198. package/lib/index.umd.min.js +1 -1
  199. package/lib/input/index.js +1 -7
  200. package/lib/input/index.min.js +1 -1
  201. package/lib/input/src/date.js +0 -10
  202. package/lib/input/src/date.min.js +1 -1
  203. package/lib/input/src/input.js +217 -553
  204. package/lib/input/src/input.min.js +1 -1
  205. package/lib/input/src/number.js +0 -5
  206. package/lib/input/style/style.css +771 -595
  207. package/lib/input/style/style.min.css +1 -1
  208. package/lib/keyboard/index.js +1 -5
  209. package/lib/keyboard/index.min.js +1 -1
  210. package/lib/keyboard/src/hook.js +40 -106
  211. package/lib/keyboard/src/hook.min.js +1 -1
  212. package/lib/keyboard/style/style.css +1 -1
  213. package/lib/list/index.js +1 -7
  214. package/lib/list/index.min.js +1 -1
  215. package/lib/list/src/list.js +39 -91
  216. package/lib/list/src/list.min.js +1 -1
  217. package/lib/list/style/style.css +19 -14
  218. package/lib/loading/index.js +1 -4
  219. package/lib/loading/index.min.js +1 -1
  220. package/lib/loading/src/loading.js +1 -6
  221. package/lib/loading/style/style.css +52 -48
  222. package/lib/loading/style/style.min.css +1 -1
  223. package/lib/locale/lang/en-US.js +0 -1
  224. package/lib/locale/lang/en-US.min.js +1 -1
  225. package/lib/locale/lang/en-US.umd.js +0 -1
  226. package/lib/locale/lang/ja-JP.js +0 -1
  227. package/lib/locale/lang/ja-JP.min.js +1 -1
  228. package/lib/locale/lang/ja-JP.umd.js +0 -1
  229. package/lib/locale/lang/zh-CN.js +0 -1
  230. package/lib/locale/lang/zh-CN.min.js +1 -1
  231. package/lib/locale/lang/zh-CN.umd.js +0 -1
  232. package/lib/locale/lang/zh-HK.js +0 -3
  233. package/lib/locale/lang/zh-HK.min.js +1 -1
  234. package/lib/locale/lang/zh-HK.umd.js +0 -1
  235. package/lib/locale/lang/zh-MO.js +0 -3
  236. package/lib/locale/lang/zh-MO.min.js +1 -1
  237. package/lib/locale/lang/zh-MO.umd.js +0 -1
  238. package/lib/locale/lang/zh-TC.js +0 -1
  239. package/lib/locale/lang/zh-TC.min.js +1 -1
  240. package/lib/locale/lang/zh-TC.umd.js +0 -1
  241. package/lib/locale/lang/zh-TW.js +0 -3
  242. package/lib/locale/lang/zh-TW.min.js +1 -1
  243. package/lib/locale/lang/zh-TW.umd.js +0 -1
  244. package/lib/menu/index.js +1 -10
  245. package/lib/menu/index.min.js +1 -1
  246. package/lib/menu/src/hooks.js +45 -109
  247. package/lib/menu/src/hooks.min.js +1 -1
  248. package/lib/menu/src/panel.js +10 -19
  249. package/lib/menu/src/panel.min.js +1 -1
  250. package/lib/menu/style/style.css +79 -59
  251. package/lib/menu/style/style.min.css +1 -1
  252. package/lib/modal/index.js +5 -36
  253. package/lib/modal/index.min.js +1 -1
  254. package/lib/modal/src/modal.js +128 -315
  255. package/lib/modal/src/modal.min.js +1 -1
  256. package/lib/modal/style/style.css +311 -247
  257. package/lib/modal/style/style.min.css +1 -1
  258. package/lib/optgroup/index.js +1 -7
  259. package/lib/optgroup/index.min.js +1 -1
  260. package/lib/optgroup/style/style.css +1 -1
  261. package/lib/option/index.js +1 -7
  262. package/lib/option/index.min.js +1 -1
  263. package/lib/option/style/style.css +1 -1
  264. package/lib/pager/index.js +1 -7
  265. package/lib/pager/index.min.js +1 -1
  266. package/lib/pager/src/pager.js +74 -151
  267. package/lib/pager/src/pager.min.js +1 -1
  268. package/lib/pager/style/style.css +307 -257
  269. package/lib/pager/style/style.min.css +1 -1
  270. package/lib/pulldown/index.js +1 -7
  271. package/lib/pulldown/index.min.js +1 -1
  272. package/lib/pulldown/src/pulldown.js +46 -90
  273. package/lib/pulldown/src/pulldown.min.js +1 -1
  274. package/lib/pulldown/style/style.css +42 -31
  275. package/lib/pulldown/style/style.min.css +1 -1
  276. package/lib/radio/index.js +1 -7
  277. package/lib/radio/index.min.js +1 -1
  278. package/lib/radio/src/button.js +14 -32
  279. package/lib/radio/src/button.min.js +1 -1
  280. package/lib/radio/src/group.js +11 -22
  281. package/lib/radio/src/group.min.js +1 -1
  282. package/lib/radio/src/radio.js +15 -34
  283. package/lib/radio/src/radio.min.js +1 -1
  284. package/lib/radio/style/style.css +184 -151
  285. package/lib/radio/style/style.min.css +1 -1
  286. package/lib/radio-button/index.js +1 -7
  287. package/lib/radio-button/index.min.js +1 -1
  288. package/lib/radio-button/style/style.css +1 -1
  289. package/lib/radio-group/index.js +1 -7
  290. package/lib/radio-group/index.min.js +1 -1
  291. package/lib/radio-group/style/style.css +1 -1
  292. package/lib/select/index.js +1 -7
  293. package/lib/select/index.min.js +1 -1
  294. package/lib/select/src/optgroup.js +1 -5
  295. package/lib/select/src/option.js +1 -5
  296. package/lib/select/src/optionInfo.js +1 -9
  297. package/lib/select/src/select.js +103 -256
  298. package/lib/select/src/select.min.js +1 -1
  299. package/lib/select/src/util.js +0 -13
  300. package/lib/select/src/util.min.js +1 -1
  301. package/lib/select/style/style.css +108 -79
  302. package/lib/select/style/style.min.css +1 -1
  303. package/lib/style.css +1 -1
  304. package/lib/style.min.css +1 -1
  305. package/lib/switch/index.js +1 -7
  306. package/lib/switch/index.min.js +1 -1
  307. package/lib/switch/src/switch.js +16 -35
  308. package/lib/switch/src/switch.min.js +1 -1
  309. package/lib/switch/style/style.css +87 -67
  310. package/lib/switch/style/style.min.css +1 -1
  311. package/lib/table/index.js +1 -7
  312. package/lib/table/index.min.js +1 -1
  313. package/lib/table/src/body.js +143 -262
  314. package/lib/table/src/body.min.js +1 -1
  315. package/lib/table/src/cell.js +138 -259
  316. package/lib/table/src/cell.min.js +1 -1
  317. package/lib/table/src/column.js +4 -13
  318. package/lib/table/src/column.min.js +1 -1
  319. package/lib/table/src/columnInfo.js +6 -35
  320. package/lib/table/src/columnInfo.min.js +1 -1
  321. package/lib/table/src/group.js +2 -15
  322. package/lib/table/src/group.min.js +1 -1
  323. package/lib/table/src/props.js +25 -29
  324. package/lib/table/src/props.min.js +1 -1
  325. package/lib/table/src/table.js +670 -1620
  326. package/lib/table/src/table.min.js +1 -1
  327. package/lib/table/src/util.js +32 -102
  328. package/lib/table/src/util.min.js +1 -1
  329. package/lib/table/style/style.css +1025 -835
  330. package/lib/table/style/style.min.css +1 -1
  331. package/lib/textarea/index.js +1 -7
  332. package/lib/textarea/index.min.js +1 -1
  333. package/lib/textarea/src/textarea.js +31 -71
  334. package/lib/textarea/src/textarea.min.js +1 -1
  335. package/lib/textarea/style/style.css +57 -41
  336. package/lib/textarea/style/style.min.css +1 -1
  337. package/lib/toolbar/index.js +1 -7
  338. package/lib/toolbar/index.min.js +1 -1
  339. package/lib/toolbar/src/toolbar.js +60 -167
  340. package/lib/toolbar/src/toolbar.min.js +1 -1
  341. package/lib/toolbar/style/style.css +216 -174
  342. package/lib/toolbar/style/style.min.css +1 -1
  343. package/lib/tools/dom.js +6 -48
  344. package/lib/tools/dom.min.js +1 -1
  345. package/lib/tools/event.js +8 -20
  346. package/lib/tools/event.min.js +1 -1
  347. package/lib/tools/log.js +1 -6
  348. package/lib/tools/log.min.js +1 -1
  349. package/lib/tools/resize.js +3 -27
  350. package/lib/tools/utils.js +0 -16
  351. package/lib/tools/utils.min.js +1 -1
  352. package/lib/tools/vn.js +0 -5
  353. package/lib/tooltip/index.js +1 -8
  354. package/lib/tooltip/index.min.js +1 -1
  355. package/lib/tooltip/src/tooltip.js +47 -111
  356. package/lib/tooltip/src/tooltip.min.js +1 -1
  357. package/lib/tooltip/style/style.css +87 -63
  358. package/lib/v-x-e-table/index.js +13 -44
  359. package/lib/v-x-e-table/index.min.js +1 -1
  360. package/lib/v-x-e-table/src/commands.js +0 -4
  361. package/lib/v-x-e-table/src/conf.js +31 -19
  362. package/lib/v-x-e-table/src/formats.js +0 -4
  363. package/lib/v-x-e-table/src/hooks.js +0 -3
  364. package/lib/v-x-e-table/src/interceptor.js +6 -18
  365. package/lib/v-x-e-table/src/interceptor.min.js +1 -1
  366. package/lib/v-x-e-table/src/menus.js +0 -4
  367. package/lib/v-x-e-table/src/renderer.js +66 -199
  368. package/lib/v-x-e-table/src/renderer.min.js +1 -1
  369. package/lib/v-x-e-table/src/setup.js +1 -6
  370. package/lib/v-x-e-table/src/store.js +3 -19
  371. package/lib/v-x-e-table/style/style.css +458 -226
  372. package/lib/v-x-e-table/style/style.min.css +1 -1
  373. package/lib/validator/index.js +1 -5
  374. package/lib/validator/index.min.js +1 -1
  375. package/lib/validator/src/hook.js +50 -116
  376. package/lib/validator/src/hook.min.js +1 -1
  377. package/lib/validator/style/style.css +1 -1
  378. package/lib/vxe-button/index.js +3 -10
  379. package/lib/vxe-button/index.min.js +1 -1
  380. package/lib/vxe-button/style/style.css +465 -341
  381. package/lib/vxe-button/style/style.min.css +1 -1
  382. package/lib/vxe-checkbox/index.js +3 -10
  383. package/lib/vxe-checkbox/index.min.js +1 -1
  384. package/lib/vxe-checkbox/style/style.css +156 -127
  385. package/lib/vxe-checkbox/style/style.min.css +1 -1
  386. package/lib/vxe-checkbox-group/index.js +3 -10
  387. package/lib/vxe-checkbox-group/index.min.js +1 -1
  388. package/lib/vxe-checkbox-group/style/style.css +1 -1
  389. package/lib/vxe-colgroup/index.js +3 -10
  390. package/lib/vxe-colgroup/index.min.js +1 -1
  391. package/lib/vxe-colgroup/style/style.css +1 -1
  392. package/lib/vxe-column/index.js +3 -10
  393. package/lib/vxe-column/index.min.js +1 -1
  394. package/lib/vxe-column/style/style.css +1 -1
  395. package/lib/vxe-form/index.js +3 -10
  396. package/lib/vxe-form/index.min.js +1 -1
  397. package/lib/vxe-form/style/style.css +201 -168
  398. package/lib/vxe-form/style/style.min.css +1 -1
  399. package/lib/vxe-form-gather/index.js +3 -10
  400. package/lib/vxe-form-gather/index.min.js +1 -1
  401. package/lib/vxe-form-gather/style/style.css +1 -1
  402. package/lib/vxe-form-item/index.js +3 -10
  403. package/lib/vxe-form-item/index.min.js +1 -1
  404. package/lib/vxe-form-item/style/style.css +1 -1
  405. package/lib/vxe-grid/index.js +3 -10
  406. package/lib/vxe-grid/index.min.js +1 -1
  407. package/lib/vxe-grid/style/style.css +61 -50
  408. package/lib/vxe-grid/style/style.min.css +1 -1
  409. package/lib/vxe-icon/index.js +3 -10
  410. package/lib/vxe-icon/index.min.js +1 -1
  411. package/lib/vxe-icon/style/style.css +406 -178
  412. package/lib/vxe-icon/style/style.min.css +1 -1
  413. package/lib/vxe-input/index.js +3 -10
  414. package/lib/vxe-input/index.min.js +1 -1
  415. package/lib/vxe-input/style/style.css +771 -595
  416. package/lib/vxe-input/style/style.min.css +1 -1
  417. package/lib/vxe-list/index.js +3 -10
  418. package/lib/vxe-list/index.min.js +1 -1
  419. package/lib/vxe-list/style/style.css +19 -14
  420. package/lib/vxe-loading/index.js +3 -10
  421. package/lib/vxe-loading/index.min.js +1 -1
  422. package/lib/vxe-loading/style/style.css +52 -48
  423. package/lib/vxe-loading/style/style.min.css +1 -1
  424. package/lib/vxe-modal/index.js +3 -10
  425. package/lib/vxe-modal/index.min.js +1 -1
  426. package/lib/vxe-modal/style/style.css +311 -247
  427. package/lib/vxe-modal/style/style.min.css +1 -1
  428. package/lib/vxe-module-edit/index.js +3 -10
  429. package/lib/vxe-module-edit/index.min.js +1 -1
  430. package/lib/vxe-module-edit/style/style.css +1 -1
  431. package/lib/vxe-module-export/index.js +3 -10
  432. package/lib/vxe-module-export/index.min.js +1 -1
  433. package/lib/vxe-module-export/style/style.css +136 -108
  434. package/lib/vxe-module-export/style/style.min.css +1 -1
  435. package/lib/vxe-module-filter/index.js +3 -10
  436. package/lib/vxe-module-filter/index.min.js +1 -1
  437. package/lib/vxe-module-filter/style/style.css +103 -82
  438. package/lib/vxe-module-filter/style/style.min.css +1 -1
  439. package/lib/vxe-module-keyboard/index.js +3 -10
  440. package/lib/vxe-module-keyboard/index.min.js +1 -1
  441. package/lib/vxe-module-keyboard/style/style.css +1 -1
  442. package/lib/vxe-module-menu/index.js +3 -10
  443. package/lib/vxe-module-menu/index.min.js +1 -1
  444. package/lib/vxe-module-menu/style/style.css +79 -59
  445. package/lib/vxe-module-menu/style/style.min.css +1 -1
  446. package/lib/vxe-module-validator/index.js +3 -10
  447. package/lib/vxe-module-validator/index.min.js +1 -1
  448. package/lib/vxe-module-validator/style/style.css +1 -1
  449. package/lib/vxe-optgroup/index.js +3 -10
  450. package/lib/vxe-optgroup/index.min.js +1 -1
  451. package/lib/vxe-optgroup/style/style.css +1 -1
  452. package/lib/vxe-option/index.js +3 -10
  453. package/lib/vxe-option/index.min.js +1 -1
  454. package/lib/vxe-option/style/style.css +1 -1
  455. package/lib/vxe-pager/index.js +3 -10
  456. package/lib/vxe-pager/index.min.js +1 -1
  457. package/lib/vxe-pager/style/style.css +307 -257
  458. package/lib/vxe-pager/style/style.min.css +1 -1
  459. package/lib/vxe-pulldown/index.js +3 -10
  460. package/lib/vxe-pulldown/index.min.js +1 -1
  461. package/lib/vxe-pulldown/style/style.css +42 -31
  462. package/lib/vxe-pulldown/style/style.min.css +1 -1
  463. package/lib/vxe-radio/index.js +3 -10
  464. package/lib/vxe-radio/index.min.js +1 -1
  465. package/lib/vxe-radio/style/style.css +184 -151
  466. package/lib/vxe-radio/style/style.min.css +1 -1
  467. package/lib/vxe-radio-button/index.js +3 -10
  468. package/lib/vxe-radio-button/index.min.js +1 -1
  469. package/lib/vxe-radio-button/style/style.css +1 -1
  470. package/lib/vxe-radio-group/index.js +3 -10
  471. package/lib/vxe-radio-group/index.min.js +1 -1
  472. package/lib/vxe-radio-group/style/style.css +1 -1
  473. package/lib/vxe-select/index.js +3 -10
  474. package/lib/vxe-select/index.min.js +1 -1
  475. package/lib/vxe-select/style/style.css +108 -79
  476. package/lib/vxe-select/style/style.min.css +1 -1
  477. package/lib/vxe-switch/index.js +3 -10
  478. package/lib/vxe-switch/index.min.js +1 -1
  479. package/lib/vxe-switch/style/style.css +87 -67
  480. package/lib/vxe-switch/style/style.min.css +1 -1
  481. package/lib/vxe-table/index.js +3 -10
  482. package/lib/vxe-table/index.min.js +1 -1
  483. package/lib/vxe-table/style/style.css +1025 -835
  484. package/lib/vxe-table/style/style.min.css +1 -1
  485. package/lib/vxe-textarea/index.js +3 -10
  486. package/lib/vxe-textarea/index.min.js +1 -1
  487. package/lib/vxe-textarea/style/style.css +57 -41
  488. package/lib/vxe-textarea/style/style.min.css +1 -1
  489. package/lib/vxe-toolbar/index.js +3 -10
  490. package/lib/vxe-toolbar/index.min.js +1 -1
  491. package/lib/vxe-toolbar/style/style.css +216 -174
  492. package/lib/vxe-toolbar/style/style.min.css +1 -1
  493. package/lib/vxe-tooltip/index.js +3 -10
  494. package/lib/vxe-tooltip/index.min.js +1 -1
  495. package/lib/vxe-tooltip/style/style.css +87 -63
  496. package/package.json +27 -33
  497. package/packages/export/src/hook.ts +1 -0
  498. package/packages/filter/src/hook.ts +1 -1
  499. package/packages/footer/src/footer.ts +3 -3
  500. package/packages/form/src/form.ts +5 -4
  501. package/packages/header/src/header.ts +13 -9
  502. package/packages/list/src/list.ts +8 -2
  503. package/packages/locale/lang/en-US.ts +0 -1
  504. package/packages/locale/lang/ja-JP.ts +0 -1
  505. package/packages/locale/lang/zh-CN.ts +0 -1
  506. package/packages/locale/lang/zh-TC.ts +0 -1
  507. package/packages/pulldown/src/pulldown.ts +11 -5
  508. package/packages/table/src/column.ts +2 -0
  509. package/packages/table/src/columnInfo.ts +1 -0
  510. package/packages/table/src/table.ts +117 -113
  511. package/packages/table/src/util.ts +1 -1
  512. package/styles/icon/iconfont.ttf +0 -0
  513. package/styles/icon/iconfont.woff +0 -0
  514. package/styles/icon/iconfont.woff2 +0 -0
  515. package/styles/icon.scss +78 -2
  516. package/styles/table.scss +1 -1
  517. package/styles/variable.scss +2 -2
  518. package/types/column.d.ts +6 -1
  519. package/types/list.d.ts +4 -4
  520. package/types/pulldown.d.ts +61 -61
  521. package/types/table.d.ts +11 -1
@@ -4,49 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _vue = require("vue");
9
-
10
8
  var _xeUtils = _interopRequireDefault(require("xe-utils"));
11
-
12
9
  var _utils = require("../../tools/utils");
13
-
14
10
  var _dom = require("../../tools/dom");
15
-
16
11
  var _log = require("../../tools/log");
17
-
18
12
  var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
19
-
20
13
  var _vXETable = require("../../v-x-e-table");
21
-
22
14
  var _props = _interopRequireDefault(require("../../table/src/props"));
23
-
24
15
  var _emits = _interopRequireDefault(require("../../table/src/emits"));
25
-
26
16
  var _size = require("../../hooks/size");
27
-
28
17
  var _event = require("../../tools/event");
29
-
30
18
  var _vn = require("../../tools/vn");
31
-
32
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
-
34
20
  var __assign = void 0 && (void 0).__assign || function () {
35
21
  __assign = Object.assign || function (t) {
36
22
  for (var s, i = 1, n = arguments.length; i < n; i++) {
37
23
  s = arguments[i];
38
-
39
- for (var p in s) {
40
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
- }
24
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
42
25
  }
43
-
44
26
  return t;
45
27
  };
46
-
47
28
  return __assign.apply(this, arguments);
48
29
  };
49
-
50
30
  var __spreadArray = void 0 && (void 0).__spreadArray || function (to, from, pack) {
51
31
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
52
32
  if (ar || !(i in from)) {
@@ -56,13 +36,10 @@ var __spreadArray = void 0 && (void 0).__spreadArray || function (to, from, pack
56
36
  }
57
37
  return to.concat(ar || Array.prototype.slice.call(from));
58
38
  };
59
-
60
39
  var tableComponentPropKeys = Object.keys(_props.default);
61
40
  var tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'isIndeterminateByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'openTooltip', 'focus', 'blur', 'connect'];
62
-
63
41
  var gridComponentEmits = __spreadArray(__spreadArray([], _emits.default, true), ['page-change', 'form-submit', 'form-submit-invalid', 'form-reset', 'form-collapse', 'form-toggle-collapse', 'toolbar-button-click', 'toolbar-tool-click', 'zoom'], false);
64
-
65
- var _default2 = (0, _vue.defineComponent)({
42
+ var _default = (0, _vue.defineComponent)({
66
43
  name: 'VxeGrid',
67
44
  props: __assign(__assign({}, _props.default), {
68
45
  columns: Array,
@@ -73,18 +50,16 @@ var _default2 = (0, _vue.defineComponent)({
73
50
  zoomConfig: Object,
74
51
  size: {
75
52
  type: String,
76
- default: function _default() {
53
+ default: function () {
77
54
  return _conf.default.grid.size || _conf.default.size;
78
55
  }
79
56
  }
80
57
  }),
81
58
  emits: gridComponentEmits,
82
- setup: function setup(props, context) {
59
+ setup: function (props, context) {
83
60
  var slots = context.slots,
84
- emit = context.emit;
85
-
61
+ emit = context.emit;
86
62
  var xID = _xeUtils.default.uniqueId();
87
-
88
63
  var instance = (0, _vue.getCurrentInstance)();
89
64
  var computeSize = (0, _size.useSize)(props);
90
65
  var reactData = (0, _vue.reactive)({
@@ -113,33 +88,27 @@ var _default2 = (0, _vue.defineComponent)({
113
88
  var refTopWrapper = (0, _vue.ref)();
114
89
  var refBottomWrapper = (0, _vue.ref)();
115
90
  var refPagerWrapper = (0, _vue.ref)();
116
-
117
- var extendTableMethods = function extendTableMethods(methodKeys) {
91
+ var extendTableMethods = function (methodKeys) {
118
92
  var funcs = {};
119
93
  methodKeys.forEach(function (name) {
120
94
  funcs[name] = function () {
121
95
  var args = [];
122
-
123
96
  for (var _i = 0; _i < arguments.length; _i++) {
124
97
  args[_i] = arguments[_i];
125
98
  }
126
-
127
99
  var $xetable = refTable.value;
128
100
  return $xetable && $xetable[name].apply($xetable, args);
129
101
  };
130
102
  });
131
103
  return funcs;
132
104
  };
133
-
134
105
  var gridExtendTableMethods = extendTableMethods(tableComponentMethodKeys);
135
106
  tableComponentMethodKeys.forEach(function (name) {
136
107
  gridExtendTableMethods[name] = function () {
137
108
  var args = [];
138
-
139
109
  for (var _i = 0; _i < arguments.length; _i++) {
140
110
  args[_i] = arguments[_i];
141
111
  }
142
-
143
112
  var $xetable = refTable.value;
144
113
  return $xetable && $xetable[name].apply($xetable, args);
145
114
  };
@@ -196,59 +165,51 @@ var _default2 = (0, _vue.defineComponent)({
196
165
  context: context,
197
166
  instance: instance,
198
167
  reactData: reactData,
199
- getRefMaps: function getRefMaps() {
168
+ getRefMaps: function () {
200
169
  return refMaps;
201
170
  },
202
- getComputeMaps: function getComputeMaps() {
171
+ getComputeMaps: function () {
203
172
  return computeMaps;
204
173
  }
205
174
  };
206
175
  var gridMethods = {};
207
-
208
- var handleRowClassName = function handleRowClassName(params) {
176
+ var handleRowClassName = function (params) {
209
177
  var pendingRecords = reactData.pendingRecords;
210
178
  var rowClassName = props.rowClassName;
211
179
  var clss = [];
212
-
213
180
  if (pendingRecords.some(function (item) {
214
181
  return item === params.row;
215
182
  })) {
216
183
  clss.push('row--pending');
217
184
  }
218
-
219
185
  clss.push(rowClassName ? _xeUtils.default.isFunction(rowClassName) ? rowClassName(params) : rowClassName : '');
220
186
  return clss;
221
187
  };
222
-
223
- var handleBeforeEditMethod = function handleBeforeEditMethod(params) {
188
+ var handleBeforeEditMethod = function (params) {
224
189
  var editConfig = props.editConfig;
225
190
  var pendingRecords = reactData.pendingRecords;
226
191
  var $xetable = refTable.value;
227
192
  var beforeEditMethod = editConfig ? editConfig.beforeEditMethod || editConfig.activeMethod : null;
228
-
229
193
  if ($xetable.findRowIndexOf(pendingRecords, params.row) === -1) {
230
194
  return !beforeEditMethod || beforeEditMethod(__assign(__assign({}, params), {
231
195
  $grid: $xegrid
232
196
  }));
233
197
  }
234
-
235
198
  return false;
236
199
  };
237
-
238
200
  var computeTableProps = (0, _vue.computed)(function () {
239
201
  var seqConfig = props.seqConfig,
240
- pagerConfig = props.pagerConfig,
241
- loading = props.loading,
242
- editConfig = props.editConfig,
243
- proxyConfig = props.proxyConfig;
202
+ pagerConfig = props.pagerConfig,
203
+ loading = props.loading,
204
+ editConfig = props.editConfig,
205
+ proxyConfig = props.proxyConfig;
244
206
  var isZMax = reactData.isZMax,
245
- tableLoading = reactData.tableLoading,
246
- tablePage = reactData.tablePage,
247
- tableData = reactData.tableData;
207
+ tableLoading = reactData.tableLoading,
208
+ tablePage = reactData.tablePage,
209
+ tableData = reactData.tableData;
248
210
  var tableExtendProps = computeTableExtendProps.value;
249
211
  var proxyOpts = computeProxyOpts.value;
250
212
  var tableProps = Object.assign({}, tableExtendProps);
251
-
252
213
  if (isZMax) {
253
214
  if (tableExtendProps.maxHeight) {
254
215
  tableProps.maxHeight = 'auto';
@@ -256,63 +217,52 @@ var _default2 = (0, _vue.defineComponent)({
256
217
  tableProps.height = 'auto';
257
218
  }
258
219
  }
259
-
260
220
  if (proxyConfig) {
261
221
  tableProps.loading = loading || tableLoading;
262
222
  tableProps.data = tableData;
263
223
  tableProps.rowClassName = handleRowClassName;
264
-
265
224
  if (proxyOpts.seq && (0, _utils.isEnableConf)(pagerConfig)) {
266
225
  tableProps.seqConfig = Object.assign({}, seqConfig, {
267
226
  startIndex: (tablePage.currentPage - 1) * tablePage.pageSize
268
227
  });
269
228
  }
270
229
  }
271
-
272
230
  if (editConfig) {
273
231
  tableProps.editConfig = Object.assign({}, editConfig, {
274
232
  beforeEditMethod: handleBeforeEditMethod
275
233
  });
276
234
  }
277
-
278
235
  return tableProps;
279
236
  });
280
-
281
- var initToolbar = function initToolbar() {
237
+ var initToolbar = function () {
282
238
  (0, _vue.nextTick)(function () {
283
239
  var $xetable = refTable.value;
284
240
  var $xetoolbar = refToolbar.value;
285
-
286
241
  if ($xetable && $xetoolbar) {
287
242
  $xetable.connect($xetoolbar);
288
243
  }
289
244
  });
290
245
  };
291
-
292
- var initPages = function initPages() {
246
+ var initPages = function () {
293
247
  var tablePage = reactData.tablePage;
294
248
  var pagerConfig = props.pagerConfig;
295
249
  var pagerOpts = computePagerOpts.value;
296
250
  var currentPage = pagerOpts.currentPage,
297
- pageSize = pagerOpts.pageSize;
298
-
251
+ pageSize = pagerOpts.pageSize;
299
252
  if (pagerConfig) {
300
253
  if (currentPage) {
301
254
  tablePage.currentPage = currentPage;
302
255
  }
303
-
304
256
  if (pageSize) {
305
257
  tablePage.pageSize = pageSize;
306
258
  }
307
259
  }
308
260
  };
309
-
310
- var triggerPendingEvent = function triggerPendingEvent(code) {
261
+ var triggerPendingEvent = function (code) {
311
262
  var pendingRecords = reactData.pendingRecords;
312
263
  var isMsg = computeIsMsg.value;
313
264
  var $xetable = refTable.value;
314
265
  var selectRecords = $xetable.getCheckboxRecords();
315
-
316
266
  if (selectRecords.length) {
317
267
  var plus_1 = [];
318
268
  var minus_1 = [];
@@ -325,7 +275,6 @@ var _default2 = (0, _vue.defineComponent)({
325
275
  plus_1.push(data);
326
276
  }
327
277
  });
328
-
329
278
  if (minus_1.length) {
330
279
  reactData.pendingRecords = pendingRecords.filter(function (item) {
331
280
  return $xetable.findRowIndexOf(minus_1, item) === -1;
@@ -333,7 +282,6 @@ var _default2 = (0, _vue.defineComponent)({
333
282
  } else if (plus_1.length) {
334
283
  reactData.pendingRecords = pendingRecords.concat(plus_1);
335
284
  }
336
-
337
285
  gridExtendTableMethods.clearCheckboxRow();
338
286
  } else {
339
287
  if (isMsg) {
@@ -343,7 +291,6 @@ var _default2 = (0, _vue.defineComponent)({
343
291
  (0, _log.errLog)('vxe.error.reqModule', ['Modal']);
344
292
  }
345
293
  }
346
-
347
294
  _vXETable.VXETable.modal.message({
348
295
  id: code,
349
296
  content: _conf.default.i18n('vxe.grid.selectOneRecord'),
@@ -352,24 +299,19 @@ var _default2 = (0, _vue.defineComponent)({
352
299
  }
353
300
  }
354
301
  };
355
-
356
- var getRespMsg = function getRespMsg(rest, defaultMsg) {
302
+ var getRespMsg = function (rest, defaultMsg) {
357
303
  var proxyOpts = computeProxyOpts.value;
358
304
  var _a = proxyOpts.props,
359
- proxyProps = _a === void 0 ? {} : _a;
305
+ proxyProps = _a === void 0 ? {} : _a;
360
306
  var msg;
361
-
362
307
  if (rest && proxyProps.message) {
363
308
  msg = _xeUtils.default.get(rest, proxyProps.message);
364
309
  }
365
-
366
310
  return msg || _conf.default.i18n(defaultMsg);
367
311
  };
368
-
369
- var handleDeleteRow = function handleDeleteRow(code, alertKey, callback) {
312
+ var handleDeleteRow = function (code, alertKey, callback) {
370
313
  var isMsg = computeIsMsg.value;
371
314
  var selectRecords = gridExtendTableMethods.getCheckboxRecords();
372
-
373
315
  if (isMsg) {
374
316
  if (selectRecords.length) {
375
317
  return _vXETable.VXETable.modal.confirm({
@@ -388,7 +330,6 @@ var _default2 = (0, _vue.defineComponent)({
388
330
  (0, _log.errLog)('vxe.error.reqModule', ['Modal']);
389
331
  }
390
332
  }
391
-
392
333
  _vXETable.VXETable.modal.message({
393
334
  id: "msg_".concat(code),
394
335
  content: _conf.default.i18n('vxe.grid.selectOneRecord'),
@@ -400,113 +341,90 @@ var _default2 = (0, _vue.defineComponent)({
400
341
  callback();
401
342
  }
402
343
  }
403
-
404
344
  return Promise.resolve();
405
345
  };
406
-
407
- var pageChangeEvent = function pageChangeEvent(params) {
346
+ var pageChangeEvent = function (params) {
408
347
  var proxyConfig = props.proxyConfig;
409
348
  var tablePage = reactData.tablePage;
410
349
  var currentPage = params.currentPage,
411
- pageSize = params.pageSize;
350
+ pageSize = params.pageSize;
412
351
  tablePage.currentPage = currentPage;
413
352
  tablePage.pageSize = pageSize;
414
353
  gridMethods.dispatchEvent('page-change', params);
415
-
416
354
  if (proxyConfig) {
417
355
  gridMethods.commitProxy('query');
418
356
  }
419
357
  };
420
-
421
- var sortChangeEvent = function sortChangeEvent(params) {
358
+ var sortChangeEvent = function (params) {
422
359
  var $xetable = refTable.value;
423
360
  var proxyConfig = props.proxyConfig;
424
361
  var computeSortOpts = $xetable.getComputeMaps().computeSortOpts;
425
- var sortOpts = computeSortOpts.value; // 如果是服务端排序
426
-
362
+ var sortOpts = computeSortOpts.value;
363
+ // 如果是服务端排序
427
364
  if (sortOpts.remote) {
428
365
  reactData.sortData = params.sortList;
429
-
430
366
  if (proxyConfig) {
431
367
  reactData.tablePage.currentPage = 1;
432
368
  gridMethods.commitProxy('query');
433
369
  }
434
370
  }
435
-
436
371
  gridMethods.dispatchEvent('sort-change', params);
437
372
  };
438
-
439
- var filterChangeEvent = function filterChangeEvent(params) {
373
+ var filterChangeEvent = function (params) {
440
374
  var $xetable = refTable.value;
441
375
  var proxyConfig = props.proxyConfig;
442
376
  var computeFilterOpts = $xetable.getComputeMaps().computeFilterOpts;
443
- var filterOpts = computeFilterOpts.value; // 如果是服务端过滤
444
-
377
+ var filterOpts = computeFilterOpts.value;
378
+ // 如果是服务端过滤
445
379
  if (filterOpts.remote) {
446
380
  reactData.filterData = params.filterList;
447
-
448
381
  if (proxyConfig) {
449
382
  reactData.tablePage.currentPage = 1;
450
383
  gridMethods.commitProxy('query');
451
384
  }
452
385
  }
453
-
454
386
  gridMethods.dispatchEvent('filter-change', params);
455
387
  };
456
-
457
- var submitFormEvent = function submitFormEvent(params) {
388
+ var submitFormEvent = function (params) {
458
389
  var proxyConfig = props.proxyConfig;
459
-
460
390
  if (proxyConfig) {
461
391
  gridMethods.commitProxy('reload');
462
392
  }
463
-
464
393
  gridMethods.dispatchEvent('form-submit', params);
465
394
  };
466
-
467
- var resetFormEvent = function resetFormEvent(params) {
395
+ var resetFormEvent = function (params) {
468
396
  var proxyConfig = props.proxyConfig;
469
-
470
397
  if (proxyConfig) {
471
398
  gridMethods.commitProxy('reload');
472
399
  }
473
-
474
400
  gridMethods.dispatchEvent('form-reset', params);
475
401
  };
476
-
477
- var submitInvalidEvent = function submitInvalidEvent(params) {
402
+ var submitInvalidEvent = function (params) {
478
403
  gridMethods.dispatchEvent('form-submit-invalid', params);
479
404
  };
480
-
481
- var collapseEvent = function collapseEvent(params) {
405
+ var collapseEvent = function (params) {
482
406
  (0, _vue.nextTick)(function () {
483
407
  return gridExtendTableMethods.recalculate(true);
484
408
  });
485
409
  gridMethods.dispatchEvent('form-toggle-collapse', params);
486
410
  gridMethods.dispatchEvent('form-collapse', params);
487
411
  };
488
-
489
- var handleZoom = function handleZoom(isMax) {
412
+ var handleZoom = function (isMax) {
490
413
  var isZMax = reactData.isZMax;
491
-
492
414
  if (isMax ? !isZMax : isZMax) {
493
415
  reactData.isZMax = !isZMax;
494
-
495
416
  if (reactData.tZindex < (0, _utils.getLastZIndex)()) {
496
417
  reactData.tZindex = (0, _utils.nextZIndex)();
497
418
  }
498
419
  }
499
-
500
420
  return (0, _vue.nextTick)().then(function () {
501
421
  return gridExtendTableMethods.recalculate(true);
502
422
  }).then(function () {
503
423
  return reactData.isZMax;
504
424
  });
505
425
  };
506
-
507
- var getFuncSlot = function getFuncSlot(optSlots, slotKey) {
426
+ var getFuncSlot = function (optSlots, slotKey) {
508
427
  var funcSlot = optSlots[slotKey];
509
-
510
428
  if (funcSlot) {
511
429
  if (_xeUtils.default.isString(funcSlot)) {
512
430
  if (slots[funcSlot]) {
@@ -520,25 +438,20 @@ var _default2 = (0, _vue.defineComponent)({
520
438
  return funcSlot;
521
439
  }
522
440
  }
523
-
524
441
  return null;
525
442
  };
526
443
  /**
527
444
  * 渲染表单
528
445
  */
529
-
530
-
531
- var renderForms = function renderForms() {
446
+ var renderForms = function () {
532
447
  var formConfig = props.formConfig,
533
- proxyConfig = props.proxyConfig;
448
+ proxyConfig = props.proxyConfig;
534
449
  var formData = reactData.formData;
535
450
  var proxyOpts = computeProxyOpts.value;
536
451
  var formOpts = computeFormOpts.value;
537
452
  var restVNs = [];
538
-
539
453
  if ((0, _utils.isEnableConf)(formConfig) || slots.form) {
540
454
  var slotVNs = [];
541
-
542
455
  if (slots.form) {
543
456
  slotVNs = slots.form({
544
457
  $grid: $xegrid
@@ -546,11 +459,9 @@ var _default2 = (0, _vue.defineComponent)({
546
459
  } else {
547
460
  if (formOpts.items) {
548
461
  var formSlots_1 = {};
549
-
550
462
  if (!formOpts.inited) {
551
463
  formOpts.inited = true;
552
464
  var beforeItem_1 = proxyOpts.beforeItem;
553
-
554
465
  if (proxyOpts && beforeItem_1) {
555
466
  formOpts.items.forEach(function (item) {
556
467
  beforeItem_1({
@@ -559,9 +470,8 @@ var _default2 = (0, _vue.defineComponent)({
559
470
  });
560
471
  });
561
472
  }
562
- } // 处理插槽
563
-
564
-
473
+ }
474
+ // 处理插槽
565
475
  formOpts.items.forEach(function (item) {
566
476
  _xeUtils.default.each(item.slots, function (func) {
567
477
  if (!_xeUtils.default.isFunction(func)) {
@@ -583,28 +493,22 @@ var _default2 = (0, _vue.defineComponent)({
583
493
  }), formSlots_1));
584
494
  }
585
495
  }
586
-
587
496
  restVNs.push((0, _vue.h)('div', {
588
497
  ref: refFormWrapper,
589
498
  class: 'vxe-grid--form-wrapper'
590
499
  }, slotVNs));
591
500
  }
592
-
593
501
  return restVNs;
594
502
  };
595
503
  /**
596
504
  * 渲染工具栏
597
505
  */
598
-
599
-
600
- var renderToolbars = function renderToolbars() {
506
+ var renderToolbars = function () {
601
507
  var toolbarConfig = props.toolbarConfig;
602
508
  var toolbarOpts = computeToolbarOpts.value;
603
509
  var restVNs = [];
604
-
605
510
  if ((0, _utils.isEnableConf)(toolbarConfig) || slots.toolbar) {
606
511
  var slotVNs = [];
607
-
608
512
  if (slots.toolbar) {
609
513
  slotVNs = slots.toolbar({
610
514
  $grid: $xegrid
@@ -614,39 +518,31 @@ var _default2 = (0, _vue.defineComponent)({
614
518
  var buttonsSlot = void 0;
615
519
  var toolsSlot = void 0;
616
520
  var toolbarSlots = {};
617
-
618
521
  if (toolbarOptSlots) {
619
522
  buttonsSlot = getFuncSlot(toolbarOptSlots, 'buttons');
620
523
  toolsSlot = getFuncSlot(toolbarOptSlots, 'tools');
621
-
622
524
  if (buttonsSlot) {
623
525
  toolbarSlots.buttons = buttonsSlot;
624
526
  }
625
-
626
527
  if (toolsSlot) {
627
528
  toolbarSlots.tools = toolsSlot;
628
529
  }
629
530
  }
630
-
631
531
  slotVNs.push((0, _vue.h)((0, _vue.resolveComponent)('vxe-toolbar'), __assign({
632
532
  ref: refToolbar
633
533
  }, toolbarOpts), toolbarSlots));
634
534
  }
635
-
636
535
  restVNs.push((0, _vue.h)('div', {
637
536
  ref: refToolbarWrapper,
638
537
  class: 'vxe-grid--toolbar-wrapper'
639
538
  }, slotVNs));
640
539
  }
641
-
642
540
  return restVNs;
643
541
  };
644
542
  /**
645
543
  * 渲染表格顶部区域
646
544
  */
647
-
648
-
649
- var renderTops = function renderTops() {
545
+ var renderTops = function () {
650
546
  if (slots.top) {
651
547
  return [(0, _vue.h)('div', {
652
548
  ref: refTopWrapper,
@@ -655,51 +551,40 @@ var _default2 = (0, _vue.defineComponent)({
655
551
  $grid: $xegrid
656
552
  }))];
657
553
  }
658
-
659
554
  return [];
660
555
  };
661
-
662
556
  var tableCompEvents = {};
663
-
664
557
  _emits.default.forEach(function (name) {
665
558
  var type = _xeUtils.default.camelCase("on-".concat(name));
666
-
667
559
  tableCompEvents[type] = function () {
668
560
  var args = [];
669
-
670
561
  for (var _i = 0; _i < arguments.length; _i++) {
671
562
  args[_i] = arguments[_i];
672
563
  }
673
-
674
564
  return emit.apply(void 0, __spreadArray([name], args, false));
675
565
  };
676
566
  });
677
567
  /**
678
568
  * 渲染表格
679
569
  */
680
-
681
-
682
- var renderTables = function renderTables() {
570
+ var renderTables = function () {
683
571
  var proxyConfig = props.proxyConfig;
684
572
  var tableProps = computeTableProps.value;
685
573
  var proxyOpts = computeProxyOpts.value;
686
574
  var tableOns = Object.assign({}, tableCompEvents);
687
575
  var emptySlot = slots.empty;
688
-
689
576
  if (proxyConfig) {
690
577
  if (proxyOpts.sort) {
691
578
  tableOns.onSortChange = sortChangeEvent;
692
579
  }
693
-
694
580
  if (proxyOpts.filter) {
695
581
  tableOns.onFilterChange = filterChangeEvent;
696
582
  }
697
583
  }
698
-
699
584
  return [(0, _vue.h)((0, _vue.resolveComponent)('vxe-table'), __assign(__assign({
700
585
  ref: refTable
701
586
  }, tableProps), tableOns), emptySlot ? {
702
- empty: function empty() {
587
+ empty: function () {
703
588
  return emptySlot({});
704
589
  }
705
590
  } : {})];
@@ -707,9 +592,7 @@ var _default2 = (0, _vue.defineComponent)({
707
592
  /**
708
593
  * 渲染表格底部区域
709
594
  */
710
-
711
-
712
- var renderBottoms = function renderBottoms() {
595
+ var renderBottoms = function () {
713
596
  if (slots.bottom) {
714
597
  return [(0, _vue.h)('div', {
715
598
  ref: refBottomWrapper,
@@ -718,22 +601,17 @@ var _default2 = (0, _vue.defineComponent)({
718
601
  $grid: $xegrid
719
602
  }))];
720
603
  }
721
-
722
604
  return [];
723
605
  };
724
606
  /**
725
607
  * 渲染分页
726
608
  */
727
-
728
-
729
- var renderPagers = function renderPagers() {
609
+ var renderPagers = function () {
730
610
  var pagerConfig = props.pagerConfig;
731
611
  var pagerOpts = computePagerOpts.value;
732
612
  var restVNs = [];
733
-
734
613
  if ((0, _utils.isEnableConf)(pagerConfig) || slots.pager) {
735
614
  var slotVNs = [];
736
-
737
615
  if (slots.pager) {
738
616
  slotVNs = slots.pager({
739
617
  $grid: $xegrid
@@ -743,56 +621,45 @@ var _default2 = (0, _vue.defineComponent)({
743
621
  var pagerSlots = {};
744
622
  var leftSlot = void 0;
745
623
  var rightSlot = void 0;
746
-
747
624
  if (pagerOptSlots) {
748
625
  leftSlot = getFuncSlot(pagerOptSlots, 'left');
749
626
  rightSlot = getFuncSlot(pagerOptSlots, 'right');
750
-
751
627
  if (leftSlot) {
752
628
  pagerSlots.left = leftSlot;
753
629
  }
754
-
755
630
  if (rightSlot) {
756
631
  pagerSlots.right = rightSlot;
757
632
  }
758
633
  }
759
-
760
634
  slotVNs.push((0, _vue.h)((0, _vue.resolveComponent)('vxe-pager'), __assign(__assign(__assign({
761
635
  ref: refPager
762
636
  }, pagerOpts), props.proxyConfig ? reactData.tablePage : {}), {
763
637
  onPageChange: pageChangeEvent
764
638
  }), pagerSlots));
765
639
  }
766
-
767
640
  restVNs.push((0, _vue.h)('div', {
768
641
  ref: refPagerWrapper,
769
642
  class: 'vxe-grid--pager-wrapper'
770
643
  }, slotVNs));
771
644
  }
772
-
773
645
  return restVNs;
774
646
  };
775
-
776
- var initProxy = function initProxy() {
647
+ var initProxy = function () {
777
648
  var proxyConfig = props.proxyConfig,
778
- formConfig = props.formConfig;
649
+ formConfig = props.formConfig;
779
650
  var proxyInited = reactData.proxyInited;
780
651
  var proxyOpts = computeProxyOpts.value;
781
652
  var formOpts = computeFormOpts.value;
782
-
783
653
  if (proxyConfig) {
784
654
  if ((0, _utils.isEnableConf)(formConfig) && proxyOpts.form && formOpts.items) {
785
655
  var formData_1 = {};
786
656
  formOpts.items.forEach(function (item) {
787
657
  var field = item.field,
788
- itemRender = item.itemRender;
789
-
658
+ itemRender = item.itemRender;
790
659
  if (field) {
791
660
  var itemValue = null;
792
-
793
661
  if (itemRender) {
794
662
  var defaultValue = itemRender.defaultValue;
795
-
796
663
  if (_xeUtils.default.isFunction(defaultValue)) {
797
664
  itemValue = defaultValue({
798
665
  item: item
@@ -801,16 +668,13 @@ var _default2 = (0, _vue.defineComponent)({
801
668
  itemValue = defaultValue;
802
669
  }
803
670
  }
804
-
805
671
  formData_1[field] = itemValue;
806
672
  }
807
673
  });
808
674
  reactData.formData = formData_1;
809
675
  }
810
-
811
676
  if (!proxyInited) {
812
677
  reactData.proxyInited = true;
813
-
814
678
  if (proxyOpts.autoLoad !== false) {
815
679
  (0, _vue.nextTick)(function () {
816
680
  return gridMethods.commitProxy('_init');
@@ -819,48 +683,43 @@ var _default2 = (0, _vue.defineComponent)({
819
683
  }
820
684
  }
821
685
  };
822
-
823
686
  gridMethods = {
824
- dispatchEvent: function dispatchEvent(type, params, evnt) {
687
+ dispatchEvent: function (type, params, evnt) {
825
688
  emit(type, Object.assign({
826
689
  $grid: $xegrid,
827
690
  $event: evnt
828
691
  }, params));
829
692
  },
830
-
831
693
  /**
832
694
  * 提交指令,支持 code 或 button
833
695
  * @param {String/Object} code 字符串或对象
834
696
  */
835
- commitProxy: function commitProxy(proxyTarget) {
697
+ commitProxy: function (proxyTarget) {
836
698
  var args = [];
837
-
838
699
  for (var _i = 1; _i < arguments.length; _i++) {
839
700
  args[_i - 1] = arguments[_i];
840
701
  }
841
-
842
702
  var toolbarConfig = props.toolbarConfig,
843
- pagerConfig = props.pagerConfig,
844
- editRules = props.editRules;
703
+ pagerConfig = props.pagerConfig,
704
+ editRules = props.editRules;
845
705
  var tablePage = reactData.tablePage,
846
- formData = reactData.formData;
706
+ formData = reactData.formData;
847
707
  var isMsg = computeIsMsg.value;
848
708
  var proxyOpts = computeProxyOpts.value;
849
709
  var toolbarOpts = computeToolbarOpts.value;
850
710
  var beforeQuery = proxyOpts.beforeQuery,
851
- afterQuery = proxyOpts.afterQuery,
852
- beforeDelete = proxyOpts.beforeDelete,
853
- afterDelete = proxyOpts.afterDelete,
854
- beforeSave = proxyOpts.beforeSave,
855
- afterSave = proxyOpts.afterSave,
856
- _a = proxyOpts.ajax,
857
- ajax = _a === void 0 ? {} : _a,
858
- _b = proxyOpts.props,
859
- proxyProps = _b === void 0 ? {} : _b;
711
+ afterQuery = proxyOpts.afterQuery,
712
+ beforeDelete = proxyOpts.beforeDelete,
713
+ afterDelete = proxyOpts.afterDelete,
714
+ beforeSave = proxyOpts.beforeSave,
715
+ afterSave = proxyOpts.afterSave,
716
+ _a = proxyOpts.ajax,
717
+ ajax = _a === void 0 ? {} : _a,
718
+ _b = proxyOpts.props,
719
+ proxyProps = _b === void 0 ? {} : _b;
860
720
  var $xetable = refTable.value;
861
721
  var button = null;
862
722
  var code = null;
863
-
864
723
  if (_xeUtils.default.isString(proxyTarget)) {
865
724
  var buttons = toolbarOpts.buttons;
866
725
  var matchObj = toolbarConfig && buttons ? _xeUtils.default.findTree(buttons, function (item) {
@@ -874,83 +733,67 @@ var _default2 = (0, _vue.defineComponent)({
874
733
  button = proxyTarget;
875
734
  code = button.code;
876
735
  }
877
-
878
736
  var btnParams = button ? button.params : null;
879
-
880
737
  switch (code) {
881
738
  case 'insert':
882
739
  $xetable.insert({});
883
740
  break;
884
-
885
741
  case 'insert_actived':
886
742
  $xetable.insert({}).then(function (_a) {
887
743
  var row = _a.row;
888
744
  return $xetable.setActiveRow(row);
889
745
  });
890
746
  break;
891
-
892
747
  case 'mark_cancel':
893
748
  triggerPendingEvent(code);
894
749
  break;
895
-
896
750
  case 'remove':
897
751
  return handleDeleteRow(code, 'vxe.grid.removeSelectRecord', function () {
898
752
  return $xetable.removeCheckboxRow();
899
753
  });
900
-
901
754
  case 'import':
902
755
  $xetable.importData(btnParams);
903
756
  break;
904
-
905
757
  case 'open_import':
906
758
  $xetable.openImport(btnParams);
907
759
  break;
908
-
909
760
  case 'export':
910
761
  $xetable.exportData(btnParams);
911
762
  break;
912
-
913
763
  case 'open_export':
914
764
  $xetable.openExport(btnParams);
915
765
  break;
916
-
917
766
  case 'reset_custom':
918
767
  $xetable.resetColumn(true);
919
768
  break;
920
-
921
769
  case '_init':
922
770
  case 'reload':
923
771
  case 'query':
924
772
  {
925
773
  var ajaxMethods = ajax.query;
926
-
927
774
  if (ajaxMethods) {
928
775
  var isInited = code === '_init';
929
776
  var isReload = code === 'reload';
930
777
  var sortList = [];
931
778
  var filterList = [];
932
779
  var pageParams = {};
933
-
934
780
  if (pagerConfig) {
935
781
  if (isInited || isReload) {
936
782
  tablePage.currentPage = 1;
937
783
  }
938
-
939
784
  if ((0, _utils.isEnableConf)(pagerConfig)) {
940
785
  pageParams = __assign({}, tablePage);
941
786
  }
942
787
  }
943
-
944
788
  if (isInited) {
945
789
  var computeSortOpts = $xetable.getComputeMaps().computeSortOpts;
946
790
  var sortOpts = computeSortOpts.value;
947
- var defaultSort = sortOpts.defaultSort; // 如果使用默认排序
948
-
791
+ var defaultSort = sortOpts.defaultSort;
792
+ // 如果使用默认排序
949
793
  if (defaultSort) {
950
794
  if (!_xeUtils.default.isArray(defaultSort)) {
951
795
  defaultSort = [defaultSort];
952
796
  }
953
-
954
797
  sortList = defaultSort.map(function (item) {
955
798
  return {
956
799
  field: item.field,
@@ -959,7 +802,6 @@ var _default2 = (0, _vue.defineComponent)({
959
802
  };
960
803
  });
961
804
  }
962
-
963
805
  filterList = $xetable.getCheckedFilters();
964
806
  } else {
965
807
  if (isReload) {
@@ -970,7 +812,6 @@ var _default2 = (0, _vue.defineComponent)({
970
812
  filterList = $xetable.getCheckedFilters();
971
813
  }
972
814
  }
973
-
974
815
  var params = {
975
816
  code: code,
976
817
  button: button,
@@ -990,15 +831,13 @@ var _default2 = (0, _vue.defineComponent)({
990
831
  return e;
991
832
  }).then(function (rest) {
992
833
  reactData.tableLoading = false;
993
-
994
834
  if (rest) {
995
835
  if ((0, _utils.isEnableConf)(pagerConfig)) {
996
836
  var total = _xeUtils.default.get(rest, proxyProps.total || 'page.total') || 0;
997
837
  tablePage.total = _xeUtils.default.toNumber(total);
998
- reactData.tableData = _xeUtils.default.get(rest, proxyProps.result || 'result') || []; // 检验当前页码,不能超出当前最大页数
999
-
838
+ reactData.tableData = _xeUtils.default.get(rest, proxyProps.result || 'result') || [];
839
+ // 检验当前页码,不能超出当前最大页数
1000
840
  var pageCount = Math.max(Math.ceil(total / tablePage.pageSize), 1);
1001
-
1002
841
  if (tablePage.currentPage > pageCount) {
1003
842
  tablePage.currentPage = pageCount;
1004
843
  }
@@ -1008,7 +847,6 @@ var _default2 = (0, _vue.defineComponent)({
1008
847
  } else {
1009
848
  reactData.tableData = [];
1010
849
  }
1011
-
1012
850
  if (afterQuery) {
1013
851
  afterQuery.apply(void 0, applyArgs_1);
1014
852
  }
@@ -1018,14 +856,11 @@ var _default2 = (0, _vue.defineComponent)({
1018
856
  (0, _log.errLog)('vxe.error.notFunc', ['proxy-config.ajax.query']);
1019
857
  }
1020
858
  }
1021
-
1022
859
  break;
1023
860
  }
1024
-
1025
861
  case 'delete':
1026
862
  {
1027
863
  var ajaxMethods_1 = ajax.delete;
1028
-
1029
864
  if (ajaxMethods_1) {
1030
865
  var selectRecords_1 = gridExtendTableMethods.getCheckboxRecords();
1031
866
  var removeRecords_1 = selectRecords_1.filter(function (row) {
@@ -1041,20 +876,17 @@ var _default2 = (0, _vue.defineComponent)({
1041
876
  body: body,
1042
877
  options: ajaxMethods_1
1043
878
  }].concat(args);
1044
-
1045
879
  if (selectRecords_1.length) {
1046
880
  return handleDeleteRow(code, 'vxe.grid.deleteSelectRecord', function () {
1047
881
  if (!removeRecords_1.length) {
1048
882
  return $xetable.remove(selectRecords_1);
1049
883
  }
1050
-
1051
884
  reactData.tableLoading = true;
1052
885
  return Promise.resolve((beforeDelete || ajaxMethods_1).apply(void 0, applyArgs_2)).then(function (rest) {
1053
886
  reactData.tableLoading = false;
1054
887
  reactData.pendingRecords = reactData.pendingRecords.filter(function (row) {
1055
888
  return $xetable.findRowIndexOf(removeRecords_1, row) === -1;
1056
889
  });
1057
-
1058
890
  if (isMsg) {
1059
891
  // 检测弹窗模块
1060
892
  if (process.env.NODE_ENV === 'development') {
@@ -1062,13 +894,11 @@ var _default2 = (0, _vue.defineComponent)({
1062
894
  (0, _log.errLog)('vxe.error.reqModule', ['Modal']);
1063
895
  }
1064
896
  }
1065
-
1066
897
  _vXETable.VXETable.modal.message({
1067
898
  content: getRespMsg(rest, 'vxe.grid.delSuccess'),
1068
899
  status: 'success'
1069
900
  });
1070
901
  }
1071
-
1072
902
  if (afterDelete) {
1073
903
  afterDelete.apply(void 0, applyArgs_2);
1074
904
  } else {
@@ -1076,14 +906,12 @@ var _default2 = (0, _vue.defineComponent)({
1076
906
  }
1077
907
  }).catch(function (rest) {
1078
908
  reactData.tableLoading = false;
1079
-
1080
909
  if (isMsg) {
1081
910
  if (process.env.NODE_ENV === 'development') {
1082
911
  if (!_vXETable.VXETable.modal.message) {
1083
912
  (0, _log.errLog)('vxe.error.reqModule', ['Modal']);
1084
913
  }
1085
914
  }
1086
-
1087
915
  _vXETable.VXETable.modal.message({
1088
916
  id: code,
1089
917
  content: getRespMsg(rest, 'vxe.grid.operError'),
@@ -1100,7 +928,6 @@ var _default2 = (0, _vue.defineComponent)({
1100
928
  (0, _log.errLog)('vxe.error.reqModule', ['Modal']);
1101
929
  }
1102
930
  }
1103
-
1104
931
  _vXETable.VXETable.modal.message({
1105
932
  id: code,
1106
933
  content: _conf.default.i18n('vxe.grid.selectOneRecord'),
@@ -1113,62 +940,53 @@ var _default2 = (0, _vue.defineComponent)({
1113
940
  (0, _log.errLog)('vxe.error.notFunc', ['proxy-config.ajax.delete']);
1114
941
  }
1115
942
  }
1116
-
1117
943
  break;
1118
944
  }
1119
-
1120
945
  case 'save':
1121
946
  {
1122
947
  var ajaxMethods_2 = ajax.save;
1123
-
1124
948
  if (ajaxMethods_2) {
1125
949
  var body_1 = Object.assign({
1126
950
  pendingRecords: reactData.pendingRecords
1127
951
  }, $xetable.getRecordset());
1128
952
  var insertRecords_1 = body_1.insertRecords,
1129
- removeRecords_2 = body_1.removeRecords,
1130
- updateRecords_1 = body_1.updateRecords,
1131
- pendingRecords_1 = body_1.pendingRecords;
953
+ removeRecords_2 = body_1.removeRecords,
954
+ updateRecords_1 = body_1.updateRecords,
955
+ pendingRecords_1 = body_1.pendingRecords;
1132
956
  var applyArgs_3 = [{
1133
957
  $grid: $xegrid,
1134
958
  code: code,
1135
959
  button: button,
1136
960
  body: body_1,
1137
961
  options: ajaxMethods_2
1138
- }].concat(args); // 排除掉新增且标记为删除的数据
1139
-
962
+ }].concat(args);
963
+ // 排除掉新增且标记为删除的数据
1140
964
  if (insertRecords_1.length) {
1141
965
  body_1.pendingRecords = pendingRecords_1.filter(function (row) {
1142
966
  return $xetable.findRowIndexOf(insertRecords_1, row) === -1;
1143
967
  });
1144
- } // 排除已标记为删除的数据
1145
-
1146
-
968
+ }
969
+ // 排除已标记为删除的数据
1147
970
  if (pendingRecords_1.length) {
1148
971
  body_1.insertRecords = insertRecords_1.filter(function (row) {
1149
972
  return $xetable.findRowIndexOf(pendingRecords_1, row) === -1;
1150
973
  });
1151
974
  }
1152
-
1153
975
  var restPromise = Promise.resolve();
1154
-
1155
976
  if (editRules) {
1156
977
  // 只校验新增和修改的数据
1157
978
  restPromise = $xetable.validate(body_1.insertRecords.concat(updateRecords_1));
1158
979
  }
1159
-
1160
980
  return restPromise.then(function (errMap) {
1161
981
  if (errMap) {
1162
982
  // 如果校验不通过
1163
983
  return;
1164
984
  }
1165
-
1166
985
  if (body_1.insertRecords.length || removeRecords_2.length || updateRecords_1.length || body_1.pendingRecords.length) {
1167
986
  reactData.tableLoading = true;
1168
987
  return Promise.resolve((beforeSave || ajaxMethods_2).apply(void 0, applyArgs_3)).then(function (rest) {
1169
988
  reactData.tableLoading = false;
1170
989
  reactData.pendingRecords = [];
1171
-
1172
990
  if (isMsg) {
1173
991
  // 检测弹窗模块
1174
992
  if (process.env.NODE_ENV === 'development') {
@@ -1176,13 +994,11 @@ var _default2 = (0, _vue.defineComponent)({
1176
994
  (0, _log.errLog)('vxe.error.reqModule', ['Modal']);
1177
995
  }
1178
996
  }
1179
-
1180
997
  _vXETable.VXETable.modal.message({
1181
998
  content: getRespMsg(rest, 'vxe.grid.saveSuccess'),
1182
999
  status: 'success'
1183
1000
  });
1184
1001
  }
1185
-
1186
1002
  if (afterSave) {
1187
1003
  afterSave.apply(void 0, applyArgs_3);
1188
1004
  } else {
@@ -1190,7 +1006,6 @@ var _default2 = (0, _vue.defineComponent)({
1190
1006
  }
1191
1007
  }).catch(function (rest) {
1192
1008
  reactData.tableLoading = false;
1193
-
1194
1009
  if (isMsg) {
1195
1010
  // 检测弹窗模块
1196
1011
  if (process.env.NODE_ENV === 'development') {
@@ -1198,7 +1013,6 @@ var _default2 = (0, _vue.defineComponent)({
1198
1013
  (0, _log.errLog)('vxe.error.reqModule', ['Modal']);
1199
1014
  }
1200
1015
  }
1201
-
1202
1016
  _vXETable.VXETable.modal.message({
1203
1017
  id: code,
1204
1018
  content: getRespMsg(rest, 'vxe.grid.operError'),
@@ -1214,7 +1028,6 @@ var _default2 = (0, _vue.defineComponent)({
1214
1028
  (0, _log.errLog)('vxe.error.reqModule', ['Modal']);
1215
1029
  }
1216
1030
  }
1217
-
1218
1031
  _vXETable.VXETable.modal.message({
1219
1032
  id: code,
1220
1033
  content: _conf.default.i18n('vxe.grid.dataUnchanged'),
@@ -1228,14 +1041,11 @@ var _default2 = (0, _vue.defineComponent)({
1228
1041
  (0, _log.errLog)('vxe.error.notFunc', ['proxy-config.ajax.save']);
1229
1042
  }
1230
1043
  }
1231
-
1232
1044
  break;
1233
1045
  }
1234
-
1235
1046
  default:
1236
1047
  {
1237
1048
  var btnMethod = _vXETable.VXETable.commands.get(code);
1238
-
1239
1049
  if (btnMethod) {
1240
1050
  btnMethod.apply(void 0, __spreadArray([{
1241
1051
  code: code,
@@ -1246,43 +1056,39 @@ var _default2 = (0, _vue.defineComponent)({
1246
1056
  }
1247
1057
  }
1248
1058
  }
1249
-
1250
1059
  return (0, _vue.nextTick)();
1251
1060
  },
1252
- zoom: function zoom() {
1061
+ zoom: function () {
1253
1062
  if (reactData.isZMax) {
1254
1063
  return gridMethods.revert();
1255
1064
  }
1256
-
1257
1065
  return gridMethods.maximize();
1258
1066
  },
1259
- isMaximized: function isMaximized() {
1067
+ isMaximized: function () {
1260
1068
  return reactData.isZMax;
1261
1069
  },
1262
- maximize: function maximize() {
1070
+ maximize: function () {
1263
1071
  return handleZoom(true);
1264
1072
  },
1265
- revert: function revert() {
1073
+ revert: function () {
1266
1074
  return handleZoom();
1267
1075
  },
1268
- getFormItems: function getFormItems(itemIndex) {
1076
+ getFormItems: function (itemIndex) {
1269
1077
  var formOpts = computeFormOpts.value;
1270
1078
  var formConfig = props.formConfig;
1271
1079
  var items = formOpts.items;
1272
1080
  var itemList = [];
1273
-
1274
1081
  _xeUtils.default.eachTree((0, _utils.isEnableConf)(formConfig) && items ? items : [], function (item) {
1275
1082
  itemList.push(item);
1276
1083
  }, {
1277
1084
  children: 'children'
1278
1085
  });
1279
-
1280
1086
  return _xeUtils.default.isUndefined(itemIndex) ? itemList : itemList[itemIndex];
1281
1087
  },
1282
- getPendingRecords: function getPendingRecords() {
1088
+ getPendingRecords: function () {
1283
1089
  return reactData.pendingRecords;
1284
1090
  },
1285
- getProxyInfo: function getProxyInfo() {
1091
+ getProxyInfo: function () {
1286
1092
  if (props.proxyConfig) {
1287
1093
  var sortData = reactData.sortData;
1288
1094
  return {
@@ -1295,15 +1101,13 @@ var _default2 = (0, _vue.defineComponent)({
1295
1101
  pendingRecords: reactData.pendingRecords
1296
1102
  };
1297
1103
  }
1298
-
1299
1104
  return null;
1300
1105
  }
1301
- }; // 检查插槽
1302
-
1106
+ };
1107
+ // 检查插槽
1303
1108
  if (process.env.NODE_ENV === 'development') {
1304
1109
  gridMethods.loadColumn = function (columns) {
1305
1110
  var $xetable = refTable.value;
1306
-
1307
1111
  _xeUtils.default.eachTree(columns, function (column) {
1308
1112
  if (column.slots) {
1309
1113
  _xeUtils.default.each(column.slots, function (func) {
@@ -1315,36 +1119,30 @@ var _default2 = (0, _vue.defineComponent)({
1315
1119
  });
1316
1120
  }
1317
1121
  });
1318
-
1319
1122
  return $xetable.loadColumn(columns);
1320
1123
  };
1321
-
1322
1124
  gridMethods.reloadColumn = function (columns) {
1323
1125
  gridExtendTableMethods.clearAll();
1324
1126
  return gridMethods.loadColumn(columns);
1325
1127
  };
1326
1128
  }
1327
-
1328
1129
  var gridPrivateMethods = {
1329
1130
  extendTableMethods: extendTableMethods,
1330
- callSlot: function callSlot(slotFunc, params) {
1131
+ callSlot: function (slotFunc, params) {
1331
1132
  if (slotFunc) {
1332
1133
  if (_xeUtils.default.isString(slotFunc)) {
1333
1134
  slotFunc = slots[slotFunc] || null;
1334
1135
  }
1335
-
1336
1136
  if (_xeUtils.default.isFunction(slotFunc)) {
1337
1137
  return (0, _vn.getSlotVNs)(slotFunc(params));
1338
1138
  }
1339
1139
  }
1340
-
1341
1140
  return [];
1342
1141
  },
1343
-
1344
1142
  /**
1345
1143
  * 获取需要排除的高度
1346
1144
  */
1347
- getExcludeHeight: function getExcludeHeight() {
1145
+ getExcludeHeight: function () {
1348
1146
  var height = props.height;
1349
1147
  var isZMax = reactData.isZMax;
1350
1148
  var el = refElem.value;
@@ -1356,23 +1154,21 @@ var _default2 = (0, _vue.defineComponent)({
1356
1154
  var parentPaddingSize = isZMax || height !== 'auto' ? 0 : (0, _dom.getPaddingTopBottomSize)(el.parentNode);
1357
1155
  return parentPaddingSize + (0, _dom.getPaddingTopBottomSize)(el) + (0, _dom.getOffsetHeight)(formWrapper) + (0, _dom.getOffsetHeight)(toolbarWrapper) + (0, _dom.getOffsetHeight)(topWrapper) + (0, _dom.getOffsetHeight)(bottomWrapper) + (0, _dom.getOffsetHeight)(pagerWrapper);
1358
1156
  },
1359
- getParentHeight: function getParentHeight() {
1157
+ getParentHeight: function () {
1360
1158
  var el = refElem.value;
1361
-
1362
1159
  if (el) {
1363
1160
  return (reactData.isZMax ? (0, _dom.getDomNode)().visibleHeight : _xeUtils.default.toNumber(getComputedStyle(el.parentNode).height)) - gridPrivateMethods.getExcludeHeight();
1364
1161
  }
1365
-
1366
1162
  return 0;
1367
1163
  },
1368
- triggerToolbarBtnEvent: function triggerToolbarBtnEvent(button, evnt) {
1164
+ triggerToolbarBtnEvent: function (button, evnt) {
1369
1165
  gridMethods.commitProxy(button, evnt);
1370
1166
  gridMethods.dispatchEvent('toolbar-button-click', {
1371
1167
  code: button.code,
1372
1168
  button: button
1373
1169
  }, evnt);
1374
1170
  },
1375
- triggerToolbarTolEvent: function triggerToolbarTolEvent(tool, evnt) {
1171
+ triggerToolbarTolEvent: function (tool, evnt) {
1376
1172
  gridMethods.commitProxy(tool, evnt);
1377
1173
  gridMethods.dispatchEvent('toolbar-tool-click', {
1378
1174
  code: tool.code,
@@ -1380,7 +1176,7 @@ var _default2 = (0, _vue.defineComponent)({
1380
1176
  $event: evnt
1381
1177
  });
1382
1178
  },
1383
- triggerZoomEvent: function triggerZoomEvent(evnt) {
1179
+ triggerZoomEvent: function (evnt) {
1384
1180
  gridMethods.zoom();
1385
1181
  gridMethods.dispatchEvent('zoom', {
1386
1182
  type: reactData.isZMax ? 'max' : 'revert'
@@ -1412,48 +1208,38 @@ var _default2 = (0, _vue.defineComponent)({
1412
1208
  }, function () {
1413
1209
  initProxy();
1414
1210
  });
1415
-
1416
- var handleGlobalKeydownEvent = function handleGlobalKeydownEvent(evnt) {
1211
+ var handleGlobalKeydownEvent = function (evnt) {
1417
1212
  var zoomOpts = computeZoomOpts.value;
1418
1213
  var isEsc = (0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.ESCAPE);
1419
-
1420
1214
  if (isEsc && reactData.isZMax && zoomOpts.escRestore !== false) {
1421
1215
  gridPrivateMethods.triggerZoomEvent(evnt);
1422
1216
  }
1423
1217
  };
1424
-
1425
1218
  _vXETable.VXETable.hooks.forEach(function (options) {
1426
1219
  var setupGrid = options.setupGrid;
1427
-
1428
1220
  if (setupGrid) {
1429
1221
  var hookRest = setupGrid($xegrid);
1430
-
1431
1222
  if (hookRest && _xeUtils.default.isObject(hookRest)) {
1432
1223
  Object.assign($xegrid, hookRest);
1433
1224
  }
1434
1225
  }
1435
1226
  });
1436
-
1437
1227
  initPages();
1438
1228
  (0, _vue.onMounted)(function () {
1439
1229
  (0, _vue.nextTick)(function () {
1440
1230
  var data = props.data,
1441
- columns = props.columns,
1442
- proxyConfig = props.proxyConfig;
1231
+ columns = props.columns,
1232
+ proxyConfig = props.proxyConfig;
1443
1233
  var proxyOpts = computeProxyOpts.value;
1444
1234
  var formOpts = computeFormOpts.value;
1445
-
1446
1235
  if (proxyConfig && (data || proxyOpts.form && formOpts.data)) {
1447
1236
  (0, _log.errLog)('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config']);
1448
1237
  }
1449
-
1450
1238
  if (columns && columns.length) {
1451
1239
  $xegrid.loadColumn(columns);
1452
1240
  }
1453
-
1454
1241
  initToolbar();
1455
1242
  });
1456
-
1457
1243
  _event.GlobalEvent.on($xegrid, 'keydown', handleGlobalKeydownEvent);
1458
1244
  });
1459
1245
  (0, _vue.onUnmounted)(function () {
@@ -1462,10 +1248,8 @@ var _default2 = (0, _vue.defineComponent)({
1462
1248
  (0, _vue.nextTick)(function () {
1463
1249
  initProxy();
1464
1250
  });
1465
-
1466
- var renderVN = function renderVN() {
1251
+ var renderVN = function () {
1467
1252
  var _a;
1468
-
1469
1253
  var vSize = computeSize.value;
1470
1254
  var styles = computeStyles.value;
1471
1255
  return (0, _vue.h)('div', {
@@ -1474,14 +1258,12 @@ var _default2 = (0, _vue.defineComponent)({
1474
1258
  style: styles
1475
1259
  }, renderForms().concat(renderToolbars(), renderTops(), renderTables(), renderBottoms(), renderPagers()));
1476
1260
  };
1477
-
1478
1261
  $xegrid.renderVN = renderVN;
1479
1262
  (0, _vue.provide)('$xegrid', $xegrid);
1480
1263
  return $xegrid;
1481
1264
  },
1482
- render: function render() {
1265
+ render: function () {
1483
1266
  return this.renderVN();
1484
1267
  }
1485
1268
  });
1486
-
1487
- exports.default = _default2;
1269
+ exports.default = _default;