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
@@ -22,4 +22,4 @@
22
22
  /*form*/
23
23
  /*select*/
24
24
  /*switch*/
25
- /*pulldown*/
25
+ /*pulldown*/
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.VxeOption = exports.Option = void 0;
7
-
8
7
  var _option = _interopRequireDefault(require("../select/src/option"));
9
-
10
8
  var _dynamics = require("../dynamics");
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  var VxeOption = Object.assign(_option.default, {
15
- install: function install(app) {
11
+ install: function (app) {
16
12
  app.component(_option.default.name, _option.default);
17
13
  }
18
14
  });
19
15
  exports.VxeOption = VxeOption;
20
16
  var Option = VxeOption;
21
17
  exports.Option = Option;
22
-
23
18
  _dynamics.dynamicApp.component(_option.default.name, _option.default);
24
-
25
19
  var _default = VxeOption;
26
20
  exports.default = _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeOption=exports.Option=void 0;var _option=_interopRequireDefault(require("../select/src/option")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxeOption=Object.assign(_option.default,{install:function(e){e.component(_option.default.name,_option.default)}}),Option=exports.VxeOption=VxeOption;exports.Option=Option,_dynamics.dynamicApp.component(_option.default.name,_option.default);var _default=VxeOption;exports.default=_default;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeOption=exports.Option=void 0;var _option=_interopRequireDefault(require("../select/src/option")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxeOption=Object.assign(_option.default,{install:function(e){e.component(_option.default.name,_option.default)}}),Option=exports.VxeOption=VxeOption,_default=(exports.Option=Option,_dynamics.dynamicApp.component(_option.default.name,_option.default),VxeOption);exports.default=_default;
@@ -22,4 +22,4 @@
22
22
  /*form*/
23
23
  /*select*/
24
24
  /*switch*/
25
- /*pulldown*/
25
+ /*pulldown*/
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.VxePager = exports.Pager = void 0;
7
-
8
7
  var _pager = _interopRequireDefault(require("./src/pager"));
9
-
10
8
  var _dynamics = require("../dynamics");
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  var VxePager = Object.assign(_pager.default, {
15
- install: function install(app) {
11
+ install: function (app) {
16
12
  app.component(_pager.default.name, _pager.default);
17
13
  }
18
14
  });
19
15
  exports.VxePager = VxePager;
20
16
  var Pager = VxePager;
21
17
  exports.Pager = Pager;
22
-
23
18
  _dynamics.dynamicApp.component(_pager.default.name, _pager.default);
24
-
25
19
  var _default = VxePager;
26
20
  exports.default = _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxePager=exports.Pager=void 0;var _pager=_interopRequireDefault(require("./src/pager")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxePager=Object.assign(_pager.default,{install:function(e){e.component(_pager.default.name,_pager.default)}}),Pager=exports.VxePager=VxePager;exports.Pager=Pager,_dynamics.dynamicApp.component(_pager.default.name,_pager.default);var _default=VxePager;exports.default=_default;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxePager=exports.Pager=void 0;var _pager=_interopRequireDefault(require("./src/pager")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxePager=Object.assign(_pager.default,{install:function(e){e.component(_pager.default.name,_pager.default)}}),Pager=exports.VxePager=VxePager,_default=(exports.Pager=Pager,_dynamics.dynamicApp.component(_pager.default.name,_pager.default),VxePager);exports.default=_default;
@@ -4,48 +4,35 @@ 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 _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
13
-
14
10
  var _event = require("../../tools/event");
15
-
16
11
  var _size = require("../../hooks/size");
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  var __assign = void 0 && (void 0).__assign || function () {
21
14
  __assign = Object.assign || function (t) {
22
15
  for (var s, i = 1, n = arguments.length; i < n; i++) {
23
16
  s = arguments[i];
24
-
25
- for (var p in s) {
26
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
27
- }
17
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
28
18
  }
29
-
30
19
  return t;
31
20
  };
32
-
33
21
  return __assign.apply(this, arguments);
34
22
  };
35
-
36
- var _default2 = (0, _vue.defineComponent)({
23
+ var _default = (0, _vue.defineComponent)({
37
24
  name: 'VxePager',
38
25
  props: {
39
26
  size: {
40
27
  type: String,
41
- default: function _default() {
28
+ default: function () {
42
29
  return _conf.default.pager.size || _conf.default.size;
43
30
  }
44
31
  },
45
32
  // 自定义布局
46
33
  layouts: {
47
34
  type: Array,
48
- default: function _default() {
35
+ default: function () {
49
36
  return _conf.default.pager.layouts || ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total'];
50
37
  }
51
38
  },
@@ -59,7 +46,7 @@ var _default2 = (0, _vue.defineComponent)({
59
46
  // 每页大小
60
47
  pageSize: {
61
48
  type: Number,
62
- default: function _default() {
49
+ default: function () {
63
50
  return _conf.default.pager.pageSize || 10;
64
51
  }
65
52
  },
@@ -71,55 +58,55 @@ var _default2 = (0, _vue.defineComponent)({
71
58
  // 显示页码按钮的数量
72
59
  pagerCount: {
73
60
  type: Number,
74
- default: function _default() {
61
+ default: function () {
75
62
  return _conf.default.pager.pagerCount || 7;
76
63
  }
77
64
  },
78
65
  // 每页大小选项列表
79
66
  pageSizes: {
80
67
  type: Array,
81
- default: function _default() {
68
+ default: function () {
82
69
  return _conf.default.pager.pageSizes || [10, 15, 20, 50, 100];
83
70
  }
84
71
  },
85
72
  // 列对其方式
86
73
  align: {
87
74
  type: String,
88
- default: function _default() {
75
+ default: function () {
89
76
  return _conf.default.pager.align;
90
77
  }
91
78
  },
92
79
  // 带边框
93
80
  border: {
94
81
  type: Boolean,
95
- default: function _default() {
82
+ default: function () {
96
83
  return _conf.default.pager.border;
97
84
  }
98
85
  },
99
86
  // 带背景颜色
100
87
  background: {
101
88
  type: Boolean,
102
- default: function _default() {
89
+ default: function () {
103
90
  return _conf.default.pager.background;
104
91
  }
105
92
  },
106
93
  // 配套的样式
107
94
  perfect: {
108
95
  type: Boolean,
109
- default: function _default() {
96
+ default: function () {
110
97
  return _conf.default.pager.perfect;
111
98
  }
112
99
  },
113
100
  // 当只有一页时隐藏
114
101
  autoHidden: {
115
102
  type: Boolean,
116
- default: function _default() {
103
+ default: function () {
117
104
  return _conf.default.pager.autoHidden;
118
105
  }
119
106
  },
120
107
  transfer: {
121
108
  type: Boolean,
122
- default: function _default() {
109
+ default: function () {
123
110
  return _conf.default.pager.transfer;
124
111
  }
125
112
  },
@@ -132,12 +119,10 @@ var _default2 = (0, _vue.defineComponent)({
132
119
  iconJumpMore: String
133
120
  },
134
121
  emits: ['update:pageSize', 'update:currentPage', 'page-change'],
135
- setup: function setup(props, context) {
122
+ setup: function (props, context) {
136
123
  var slots = context.slots,
137
- emit = context.emit;
138
-
124
+ emit = context.emit;
139
125
  var xID = _xeUtils.default.uniqueId();
140
-
141
126
  var computeSize = (0, _size.useSize)(props);
142
127
  var $xegrid = (0, _vue.inject)('$xegrid', null);
143
128
  var reactData = (0, _vue.reactive)({
@@ -151,24 +136,20 @@ var _default2 = (0, _vue.defineComponent)({
151
136
  xID: xID,
152
137
  props: props,
153
138
  context: context,
154
- getRefMaps: function getRefMaps() {
139
+ getRefMaps: function () {
155
140
  return refMaps;
156
141
  }
157
142
  };
158
143
  var pagerMethods = {};
159
144
  var pagerPrivateMethods = {};
160
-
161
- var getPageCount = function getPageCount(total, size) {
145
+ var getPageCount = function (total, size) {
162
146
  return Math.max(Math.ceil(total / size), 1);
163
147
  };
164
-
165
148
  var computePageCount = (0, _vue.computed)(function () {
166
149
  return getPageCount(props.total, props.pageSize);
167
150
  });
168
-
169
- var jumpPageEvent = function jumpPageEvent(evnt, currentPage) {
151
+ var jumpPageEvent = function (evnt, currentPage) {
170
152
  emit('update:currentPage', currentPage);
171
-
172
153
  if (evnt && currentPage !== props.currentPage) {
173
154
  pagerMethods.dispatchEvent('page-change', {
174
155
  type: 'current',
@@ -177,10 +158,8 @@ var _default2 = (0, _vue.defineComponent)({
177
158
  }, evnt);
178
159
  }
179
160
  };
180
-
181
- var changeCurrentPage = function changeCurrentPage(currentPage, evnt) {
161
+ var changeCurrentPage = function (currentPage, evnt) {
182
162
  emit('update:currentPage', currentPage);
183
-
184
163
  if (evnt && currentPage !== props.currentPage) {
185
164
  pagerMethods.dispatchEvent('page-change', {
186
165
  type: 'current',
@@ -189,28 +168,22 @@ var _default2 = (0, _vue.defineComponent)({
189
168
  }, evnt);
190
169
  }
191
170
  };
192
-
193
- var triggerJumpEvent = function triggerJumpEvent(evnt) {
171
+ var triggerJumpEvent = function (evnt) {
194
172
  var inputElem = evnt.target;
195
-
196
173
  var inpValue = _xeUtils.default.toNumber(inputElem.value);
197
-
198
174
  var pageCount = computePageCount.value;
199
175
  var current = inpValue <= 0 ? 1 : inpValue >= pageCount ? pageCount : inpValue;
200
176
  inputElem.value = _xeUtils.default.toValueString(current);
201
177
  changeCurrentPage(current, evnt);
202
178
  };
203
-
204
179
  var computeNumList = (0, _vue.computed)(function () {
205
180
  var pagerCount = props.pagerCount;
206
181
  var pageCount = computePageCount.value;
207
182
  var len = pageCount > pagerCount ? pagerCount - 2 : pagerCount;
208
183
  var rest = [];
209
-
210
184
  for (var index = 0; index < len; index++) {
211
185
  rest.push(index);
212
186
  }
213
-
214
187
  return rest;
215
188
  });
216
189
  var computeOffsetNumber = (0, _vue.computed)(function () {
@@ -224,48 +197,38 @@ var _default2 = (0, _vue.defineComponent)({
224
197
  label: "".concat(_conf.default.i18n('vxe.pager.pagesize', [item]))
225
198
  };
226
199
  }
227
-
228
200
  return __assign({
229
201
  value: '',
230
202
  label: ''
231
203
  }, item);
232
204
  });
233
205
  });
234
-
235
- var handlePrevPage = function handlePrevPage(evnt) {
206
+ var handlePrevPage = function (evnt) {
236
207
  var currentPage = props.currentPage;
237
208
  var pageCount = computePageCount.value;
238
-
239
209
  if (currentPage > 1) {
240
210
  changeCurrentPage(Math.min(pageCount, Math.max(currentPage - 1, 1)), evnt);
241
211
  }
242
212
  };
243
-
244
- var handleNextPage = function handleNextPage(evnt) {
213
+ var handleNextPage = function (evnt) {
245
214
  var currentPage = props.currentPage;
246
215
  var pageCount = computePageCount.value;
247
-
248
216
  if (currentPage < pageCount) {
249
217
  changeCurrentPage(Math.min(pageCount, currentPage + 1), evnt);
250
218
  }
251
219
  };
252
-
253
- var handlePrevJump = function handlePrevJump(evnt) {
220
+ var handlePrevJump = function (evnt) {
254
221
  var numList = computeNumList.value;
255
222
  changeCurrentPage(Math.max(props.currentPage - numList.length, 1), evnt);
256
223
  };
257
-
258
- var handleNextJump = function handleNextJump(evnt) {
224
+ var handleNextJump = function (evnt) {
259
225
  var pageCount = computePageCount.value;
260
226
  var numList = computeNumList.value;
261
227
  changeCurrentPage(Math.min(props.currentPage + numList.length, pageCount), evnt);
262
228
  };
263
-
264
- var pageSizeEvent = function pageSizeEvent(params) {
229
+ var pageSizeEvent = function (params) {
265
230
  var value = params.value;
266
-
267
231
  var pageSize = _xeUtils.default.toNumber(value);
268
-
269
232
  emit('update:pageSize', pageSize);
270
233
  pagerMethods.dispatchEvent('page-change', {
271
234
  type: 'size',
@@ -273,13 +236,11 @@ var _default2 = (0, _vue.defineComponent)({
273
236
  currentPage: Math.min(props.currentPage, getPageCount(props.total, pageSize))
274
237
  });
275
238
  };
276
-
277
- var jumpInputEvent = function jumpInputEvent(evnt) {
239
+ var jumpInputEvent = function (evnt) {
278
240
  var inputElem = evnt.target;
279
241
  reactData.inpCurrPage = inputElem.value;
280
242
  };
281
-
282
- var jumpKeydownEvent = function jumpKeydownEvent(evnt) {
243
+ var jumpKeydownEvent = function (evnt) {
283
244
  if ((0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.ENTER)) {
284
245
  triggerJumpEvent(evnt);
285
246
  } else if ((0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.ARROW_UP)) {
@@ -289,10 +250,9 @@ var _default2 = (0, _vue.defineComponent)({
289
250
  evnt.preventDefault();
290
251
  handlePrevPage(evnt);
291
252
  }
292
- }; // 上一页
293
-
294
-
295
- var renderPrevPage = function renderPrevPage() {
253
+ };
254
+ // 上一页
255
+ var renderPrevPage = function () {
296
256
  return (0, _vue.h)('button', {
297
257
  class: ['vxe-pager--prev-btn', {
298
258
  'is--disabled': props.currentPage <= 1
@@ -303,10 +263,9 @@ var _default2 = (0, _vue.defineComponent)({
303
263
  }, [(0, _vue.h)('i', {
304
264
  class: ['vxe-pager--btn-icon', props.iconPrevPage || _conf.default.icon.PAGER_PREV_PAGE]
305
265
  })]);
306
- }; // 向上翻页
307
-
308
-
309
- var renderPrevJump = function renderPrevJump(tagName) {
266
+ };
267
+ // 向上翻页
268
+ var renderPrevJump = function (tagName) {
310
269
  return (0, _vue.h)(tagName || 'button', {
311
270
  class: ['vxe-pager--jump-prev', {
312
271
  'is--fixed': !tagName,
@@ -320,10 +279,9 @@ var _default2 = (0, _vue.defineComponent)({
320
279
  }) : null, (0, _vue.h)('i', {
321
280
  class: ['vxe-pager--jump-icon', props.iconJumpPrev || _conf.default.icon.PAGER_JUMP_PREV]
322
281
  })]);
323
- }; // 向下翻页
324
-
325
-
326
- var renderNextJump = function renderNextJump(tagName) {
282
+ };
283
+ // 向下翻页
284
+ var renderNextJump = function (tagName) {
327
285
  var pageCount = computePageCount.value;
328
286
  return (0, _vue.h)(tagName || 'button', {
329
287
  class: ['vxe-pager--jump-next', {
@@ -338,10 +296,9 @@ var _default2 = (0, _vue.defineComponent)({
338
296
  }) : null, (0, _vue.h)('i', {
339
297
  class: ['vxe-pager--jump-icon', props.iconJumpNext || _conf.default.icon.PAGER_JUMP_NEXT]
340
298
  })]);
341
- }; // 下一页
342
-
343
-
344
- var renderNextPage = function renderNextPage() {
299
+ };
300
+ // 下一页
301
+ var renderNextPage = function () {
345
302
  var pageCount = computePageCount.value;
346
303
  return (0, _vue.h)('button', {
347
304
  class: ['vxe-pager--next-btn', {
@@ -353,12 +310,11 @@ var _default2 = (0, _vue.defineComponent)({
353
310
  }, [(0, _vue.h)('i', {
354
311
  class: ['vxe-pager--btn-icon', props.iconNextPage || _conf.default.icon.PAGER_NEXT_PAGE]
355
312
  })]);
356
- }; // 页数
357
-
358
-
359
- var renderNumber = function renderNumber(showJump) {
313
+ };
314
+ // 页数
315
+ var renderNumber = function (showJump) {
360
316
  var currentPage = props.currentPage,
361
- pagerCount = props.pagerCount;
317
+ pagerCount = props.pagerCount;
362
318
  var nums = [];
363
319
  var pageCount = computePageCount.value;
364
320
  var numList = computeNumList.value;
@@ -367,7 +323,6 @@ var _default2 = (0, _vue.defineComponent)({
367
323
  var isLt = isOv && currentPage > offsetNumber + 1;
368
324
  var isGt = isOv && currentPage < pageCount - offsetNumber;
369
325
  var startNumber = 1;
370
-
371
326
  if (isOv) {
372
327
  if (currentPage >= pageCount - offsetNumber) {
373
328
  startNumber = Math.max(pageCount - numList.length + 1, 1);
@@ -375,20 +330,17 @@ var _default2 = (0, _vue.defineComponent)({
375
330
  startNumber = Math.max(currentPage - offsetNumber, 1);
376
331
  }
377
332
  }
378
-
379
333
  if (showJump && isLt) {
380
334
  nums.push((0, _vue.h)('button', {
381
335
  class: 'vxe-pager--num-btn',
382
336
  type: 'button',
383
- onClick: function onClick(evnt) {
337
+ onClick: function (evnt) {
384
338
  return jumpPageEvent(evnt, 1);
385
339
  }
386
340
  }, 1), renderPrevJump('span'));
387
341
  }
388
-
389
342
  numList.forEach(function (item, index) {
390
343
  var number = startNumber + index;
391
-
392
344
  if (number <= pageCount) {
393
345
  nums.push((0, _vue.h)('button', {
394
346
  key: number,
@@ -396,35 +348,31 @@ var _default2 = (0, _vue.defineComponent)({
396
348
  'is--active': currentPage === number
397
349
  }],
398
350
  type: 'button',
399
- onClick: function onClick(evnt) {
351
+ onClick: function (evnt) {
400
352
  return jumpPageEvent(evnt, number);
401
353
  }
402
354
  }, number));
403
355
  }
404
356
  });
405
-
406
357
  if (showJump && isGt) {
407
358
  nums.push(renderNextJump('button'), (0, _vue.h)('button', {
408
359
  class: 'vxe-pager--num-btn',
409
360
  type: 'button',
410
- onClick: function onClick(evnt) {
361
+ onClick: function (evnt) {
411
362
  return jumpPageEvent(evnt, pageCount);
412
363
  }
413
364
  }, pageCount));
414
365
  }
415
-
416
366
  return (0, _vue.h)('span', {
417
367
  class: 'vxe-pager--btn-wrapper'
418
368
  }, nums);
419
- }; // jumpNumber
420
-
421
-
422
- var renderJumpNumber = function renderJumpNumber() {
369
+ };
370
+ // jumpNumber
371
+ var renderJumpNumber = function () {
423
372
  return renderNumber(true);
424
- }; // sizes
425
-
426
-
427
- var renderSizes = function renderSizes() {
373
+ };
374
+ // sizes
375
+ var renderSizes = function () {
428
376
  var sizeList = computeSizeList.value;
429
377
  return (0, _vue.h)((0, _vue.resolveComponent)('vxe-select'), {
430
378
  class: 'vxe-pager--sizes',
@@ -434,10 +382,9 @@ var _default2 = (0, _vue.defineComponent)({
434
382
  options: sizeList,
435
383
  onChange: pageSizeEvent
436
384
  });
437
- }; // Jump
438
-
439
-
440
- var renderJump = function renderJump(isFull) {
385
+ };
386
+ // Jump
387
+ var renderJump = function (isFull) {
441
388
  return (0, _vue.h)('span', {
442
389
  class: 'vxe-pager--jump'
443
390
  }, [isFull ? (0, _vue.h)('span', {
@@ -453,50 +400,46 @@ var _default2 = (0, _vue.defineComponent)({
453
400
  }), isFull ? (0, _vue.h)('span', {
454
401
  class: 'vxe-pager--classifier-text'
455
402
  }, _conf.default.i18n('vxe.pager.pageClassifier')) : null]);
456
- }; // FullJump
457
-
458
-
459
- var renderFullJump = function renderFullJump() {
403
+ };
404
+ // FullJump
405
+ var renderFullJump = function () {
460
406
  return renderJump(true);
461
- }; // PageCount
462
-
463
-
464
- var renderPageCount = function renderPageCount() {
407
+ };
408
+ // PageCount
409
+ var renderPageCount = function () {
465
410
  var pageCount = computePageCount.value;
466
411
  return (0, _vue.h)('span', {
467
412
  class: 'vxe-pager--count'
468
413
  }, [(0, _vue.h)('span', {
469
414
  class: 'vxe-pager--separator'
470
415
  }), (0, _vue.h)('span', pageCount)]);
471
- }; // total
472
-
473
-
474
- var renderTotal = function renderTotal() {
416
+ };
417
+ // total
418
+ var renderTotal = function () {
475
419
  return (0, _vue.h)('span', {
476
420
  class: 'vxe-pager--total'
477
421
  }, _conf.default.i18n('vxe.pager.total', [props.total]));
478
422
  };
479
-
480
423
  pagerMethods = {
481
- dispatchEvent: function dispatchEvent(type, params, evnt) {
424
+ dispatchEvent: function (type, params, evnt) {
482
425
  emit(type, Object.assign({
483
426
  $pager: $xepager,
484
427
  $event: evnt
485
428
  }, params));
486
429
  },
487
- prevPage: function prevPage() {
430
+ prevPage: function () {
488
431
  handlePrevPage();
489
432
  return (0, _vue.nextTick)();
490
433
  },
491
- nextPage: function nextPage() {
434
+ nextPage: function () {
492
435
  handleNextPage();
493
436
  return (0, _vue.nextTick)();
494
437
  },
495
- prevJump: function prevJump() {
438
+ prevJump: function () {
496
439
  handlePrevJump();
497
440
  return (0, _vue.nextTick)();
498
441
  },
499
- nextJump: function nextJump() {
442
+ nextJump: function () {
500
443
  handleNextJump();
501
444
  return (0, _vue.nextTick)();
502
445
  }
@@ -513,17 +456,14 @@ var _default2 = (0, _vue.defineComponent)({
513
456
  }, function (value) {
514
457
  reactData.inpCurrPage = value;
515
458
  });
516
-
517
- var renderVN = function renderVN() {
459
+ var renderVN = function () {
518
460
  var _a;
519
-
520
461
  var align = props.align,
521
- layouts = props.layouts,
522
- className = props.className;
462
+ layouts = props.layouts,
463
+ className = props.className;
523
464
  var childNodes = [];
524
465
  var vSize = computeSize.value;
525
466
  var pageCount = computePageCount.value;
526
-
527
467
  if (slots.left) {
528
468
  childNodes.push((0, _vue.h)('span', {
529
469
  class: 'vxe-pager--left-wrapper'
@@ -531,61 +471,47 @@ var _default2 = (0, _vue.defineComponent)({
531
471
  $grid: $xegrid
532
472
  })));
533
473
  }
534
-
535
474
  layouts.forEach(function (name) {
536
475
  var renderFn;
537
-
538
476
  switch (name) {
539
477
  case 'PrevPage':
540
478
  renderFn = renderPrevPage;
541
479
  break;
542
-
543
480
  case 'PrevJump':
544
481
  renderFn = renderPrevJump;
545
482
  break;
546
-
547
483
  case 'Number':
548
484
  renderFn = renderNumber;
549
485
  break;
550
-
551
486
  case 'JumpNumber':
552
487
  renderFn = renderJumpNumber;
553
488
  break;
554
-
555
489
  case 'NextJump':
556
490
  renderFn = renderNextJump;
557
491
  break;
558
-
559
492
  case 'NextPage':
560
493
  renderFn = renderNextPage;
561
494
  break;
562
-
563
495
  case 'Sizes':
564
496
  renderFn = renderSizes;
565
497
  break;
566
-
567
498
  case 'FullJump':
568
499
  renderFn = renderFullJump;
569
500
  break;
570
-
571
501
  case 'Jump':
572
502
  renderFn = renderJump;
573
503
  break;
574
-
575
504
  case 'PageCount':
576
505
  renderFn = renderPageCount;
577
506
  break;
578
-
579
507
  case 'Total':
580
508
  renderFn = renderTotal;
581
509
  break;
582
510
  }
583
-
584
511
  if (renderFn) {
585
512
  childNodes.push(renderFn());
586
513
  }
587
514
  });
588
-
589
515
  if (slots.right) {
590
516
  childNodes.push((0, _vue.h)('span', {
591
517
  class: 'vxe-pager--right-wrapper'
@@ -593,7 +519,6 @@ var _default2 = (0, _vue.defineComponent)({
593
519
  $grid: $xegrid
594
520
  })));
595
521
  }
596
-
597
522
  return (0, _vue.h)('div', {
598
523
  ref: refElem,
599
524
  class: ['vxe-pager', className ? _xeUtils.default.isFunction(className) ? className({
@@ -603,13 +528,11 @@ var _default2 = (0, _vue.defineComponent)({
603
528
  class: 'vxe-pager--wrapper'
604
529
  }, childNodes)]);
605
530
  };
606
-
607
531
  $xepager.renderVN = renderVN;
608
532
  return $xepager;
609
533
  },
610
- render: function render() {
534
+ render: function () {
611
535
  return this.renderVN();
612
536
  }
613
537
  });
614
-
615
- exports.default = _default2;
538
+ exports.default = _default;