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,36 +4,23 @@ 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 _size = require("../../hooks/size");
15
-
16
11
  var _dom = require("../../tools/dom");
17
-
18
12
  var _utils = require("../../tools/utils");
19
-
20
13
  var _event = require("../../tools/event");
21
-
22
14
  var _input = _interopRequireDefault(require("../../input/src/input"));
23
-
24
15
  var _vn = require("../../tools/vn");
25
-
26
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
17
  function isOptionVisible(option) {
29
18
  return option.visible !== false;
30
19
  }
31
-
32
20
  function getOptUniqueId() {
33
21
  return _xeUtils.default.uniqueId('opt_');
34
22
  }
35
-
36
- var _default2 = (0, _vue.defineComponent)({
23
+ var _default = (0, _vue.defineComponent)({
37
24
  name: 'VxeSelect',
38
25
  props: {
39
26
  modelValue: null,
@@ -44,7 +31,7 @@ var _default2 = (0, _vue.defineComponent)({
44
31
  multiple: Boolean,
45
32
  multiCharOverflow: {
46
33
  type: [Number, String],
47
- default: function _default() {
34
+ default: function () {
48
35
  return _conf.default.select.multiCharOverflow;
49
36
  }
50
37
  },
@@ -62,7 +49,7 @@ var _default2 = (0, _vue.defineComponent)({
62
49
  },
63
50
  size: {
64
51
  type: String,
65
- default: function _default() {
52
+ default: function () {
66
53
  return _conf.default.select.size || _conf.default.size;
67
54
  }
68
55
  },
@@ -74,7 +61,7 @@ var _default2 = (0, _vue.defineComponent)({
74
61
  // 已废弃,被 option-config.keyField 替换
75
62
  optionId: {
76
63
  type: String,
77
- default: function _default() {
64
+ default: function () {
78
65
  return _conf.default.select.optionId;
79
66
  }
80
67
  },
@@ -82,20 +69,18 @@ var _default2 = (0, _vue.defineComponent)({
82
69
  optionKey: Boolean,
83
70
  transfer: {
84
71
  type: Boolean,
85
- default: function _default() {
72
+ default: function () {
86
73
  return _conf.default.select.transfer;
87
74
  }
88
75
  }
89
76
  },
90
77
  emits: ['update:modelValue', 'change', 'clear'],
91
- setup: function setup(props, context) {
78
+ setup: function (props, context) {
92
79
  var slots = context.slots,
93
- emit = context.emit;
80
+ emit = context.emit;
94
81
  var $xeform = (0, _vue.inject)('$xeform', null);
95
82
  var $xeformiteminfo = (0, _vue.inject)('$xeformiteminfo', null);
96
-
97
83
  var xID = _xeUtils.default.uniqueId();
98
-
99
84
  var computeSize = (0, _size.useSize)(props);
100
85
  var reactData = (0, _vue.reactive)({
101
86
  inited: false,
@@ -129,7 +114,7 @@ var _default2 = (0, _vue.defineComponent)({
129
114
  props: props,
130
115
  context: context,
131
116
  reactData: reactData,
132
- getRefMaps: function getRefMaps() {
117
+ getRefMaps: function () {
133
118
  return refMaps;
134
119
  }
135
120
  };
@@ -158,13 +143,11 @@ var _default2 = (0, _vue.defineComponent)({
158
143
  });
159
144
  var computeIsMaximize = (0, _vue.computed)(function () {
160
145
  var modelValue = props.modelValue,
161
- multiple = props.multiple,
162
- max = props.max;
163
-
146
+ multiple = props.multiple,
147
+ max = props.max;
164
148
  if (multiple && max) {
165
149
  return (modelValue ? modelValue.length : 0) >= _xeUtils.default.toNumber(max);
166
150
  }
167
-
168
151
  return false;
169
152
  });
170
153
  var computeOptionOpts = (0, _vue.computed)(function () {
@@ -178,35 +161,28 @@ var _default2 = (0, _vue.defineComponent)({
178
161
  var computeMultiMaxCharNum = (0, _vue.computed)(function () {
179
162
  return _xeUtils.default.toNumber(props.multiCharOverflow);
180
163
  });
181
-
182
- var callSlot = function callSlot(slotFunc, params) {
164
+ var callSlot = function (slotFunc, params) {
183
165
  if (slotFunc) {
184
166
  if (_xeUtils.default.isString(slotFunc)) {
185
167
  slotFunc = slots[slotFunc] || null;
186
168
  }
187
-
188
169
  if (_xeUtils.default.isFunction(slotFunc)) {
189
170
  return (0, _vn.getSlotVNs)(slotFunc(params));
190
171
  }
191
172
  }
192
-
193
173
  return [];
194
174
  };
195
-
196
- var findOption = function findOption(optionValue) {
175
+ var findOption = function (optionValue) {
197
176
  var fullOptionList = reactData.fullOptionList,
198
- fullGroupList = reactData.fullGroupList;
177
+ fullGroupList = reactData.fullGroupList;
199
178
  var isGroup = computeIsGroup.value;
200
179
  var valueField = computeValueField.value;
201
-
202
180
  if (isGroup) {
203
181
  for (var gIndex = 0; gIndex < fullGroupList.length; gIndex++) {
204
182
  var group = fullGroupList[gIndex];
205
-
206
183
  if (group.options) {
207
184
  for (var index = 0; index < group.options.length; index++) {
208
185
  var option = group.options[index];
209
-
210
186
  if (optionValue === option[valueField]) {
211
187
  return option;
212
188
  }
@@ -214,13 +190,11 @@ var _default2 = (0, _vue.defineComponent)({
214
190
  }
215
191
  }
216
192
  }
217
-
218
193
  return fullOptionList.find(function (item) {
219
194
  return optionValue === item[valueField];
220
195
  });
221
196
  };
222
-
223
- var getRemoteSelectLabel = function getRemoteSelectLabel(value) {
197
+ var getRemoteSelectLabel = function (value) {
224
198
  var remoteValueList = reactData.remoteValueList;
225
199
  var labelField = computeLabelField.value;
226
200
  var remoteItem = remoteValueList.find(function (item) {
@@ -229,70 +203,56 @@ var _default2 = (0, _vue.defineComponent)({
229
203
  var item = remoteItem ? remoteItem.result : null;
230
204
  return _xeUtils.default.toValueString(item ? item[labelField] : value);
231
205
  };
232
-
233
- var getSelectLabel = function getSelectLabel(value) {
206
+ var getSelectLabel = function (value) {
234
207
  var labelField = computeLabelField.value;
235
208
  var item = findOption(value);
236
209
  return _xeUtils.default.toValueString(item ? item[labelField] : value);
237
210
  };
238
-
239
211
  var computeSelectLabel = (0, _vue.computed)(function () {
240
212
  var modelValue = props.modelValue,
241
- multiple = props.multiple,
242
- remote = props.remote;
213
+ multiple = props.multiple,
214
+ remote = props.remote;
243
215
  var multiMaxCharNum = computeMultiMaxCharNum.value;
244
-
245
216
  if (modelValue && multiple) {
246
217
  var vals = _xeUtils.default.isArray(modelValue) ? modelValue : [modelValue];
247
-
248
218
  if (remote) {
249
219
  return vals.map(function (val) {
250
220
  return getRemoteSelectLabel(val);
251
221
  }).join(', ');
252
222
  }
253
-
254
223
  return vals.map(function (val) {
255
224
  var label = getSelectLabel(val);
256
-
257
225
  if (multiMaxCharNum > 0 && label.length > multiMaxCharNum) {
258
226
  return "".concat(label.substring(0, multiMaxCharNum), "...");
259
227
  }
260
-
261
228
  return label;
262
229
  }).join(', ');
263
230
  }
264
-
265
231
  if (remote) {
266
232
  return getRemoteSelectLabel(modelValue);
267
233
  }
268
-
269
234
  return getSelectLabel(modelValue);
270
235
  });
271
-
272
- var getOptkey = function getOptkey() {
236
+ var getOptkey = function () {
273
237
  var optionOpts = computeOptionOpts.value;
274
238
  return optionOpts.keyField || props.optionId || '_X_OPTION_KEY';
275
239
  };
276
-
277
- var getOptid = function getOptid(option) {
240
+ var getOptid = function (option) {
278
241
  var optid = option[getOptkey()];
279
242
  return optid ? encodeURIComponent(optid) : '';
280
243
  };
281
244
  /**
282
245
  * 刷新选项,当选项被动态显示/隐藏时可能会用到
283
246
  */
284
-
285
-
286
- var refreshOption = function refreshOption() {
247
+ var refreshOption = function () {
287
248
  var filterable = props.filterable,
288
- filterMethod = props.filterMethod;
249
+ filterMethod = props.filterMethod;
289
250
  var fullOptionList = reactData.fullOptionList,
290
- fullGroupList = reactData.fullGroupList,
291
- searchValue = reactData.searchValue;
251
+ fullGroupList = reactData.fullGroupList,
252
+ searchValue = reactData.searchValue;
292
253
  var isGroup = computeIsGroup.value;
293
254
  var groupLabelField = computeGroupLabelField.value;
294
255
  var labelField = computeLabelField.value;
295
-
296
256
  if (isGroup) {
297
257
  if (filterable && filterMethod) {
298
258
  reactData.visibleGroupList = fullGroupList.filter(function (group) {
@@ -326,26 +286,21 @@ var _default2 = (0, _vue.defineComponent)({
326
286
  reactData.visibleOptionList = fullOptionList.filter(isOptionVisible);
327
287
  }
328
288
  }
329
-
330
289
  return (0, _vue.nextTick)();
331
290
  };
332
-
333
- var cacheItemMap = function cacheItemMap() {
291
+ var cacheItemMap = function () {
334
292
  var fullOptionList = reactData.fullOptionList,
335
- fullGroupList = reactData.fullGroupList;
293
+ fullGroupList = reactData.fullGroupList;
336
294
  var groupOptionsField = computeGroupOptionsField.value;
337
295
  var key = getOptkey();
338
-
339
- var handleOptis = function handleOptis(item) {
296
+ var handleOptis = function (item) {
340
297
  if (!getOptid(item)) {
341
298
  item[key] = getOptUniqueId();
342
299
  }
343
300
  };
344
-
345
301
  if (fullGroupList.length) {
346
302
  fullGroupList.forEach(function (group) {
347
303
  handleOptis(group);
348
-
349
304
  if (group[groupOptionsField]) {
350
305
  group[groupOptionsField].forEach(handleOptis);
351
306
  }
@@ -353,30 +308,24 @@ var _default2 = (0, _vue.defineComponent)({
353
308
  } else if (fullOptionList.length) {
354
309
  fullOptionList.forEach(handleOptis);
355
310
  }
356
-
357
311
  refreshOption();
358
312
  };
359
-
360
- var setCurrentOption = function setCurrentOption(option) {
313
+ var setCurrentOption = function (option) {
361
314
  var valueField = computeValueField.value;
362
-
363
315
  if (option) {
364
316
  reactData.currentOption = option;
365
317
  reactData.currentValue = option[valueField];
366
318
  }
367
319
  };
368
-
369
- var scrollToOption = function scrollToOption(option, isAlignBottom) {
320
+ var scrollToOption = function (option, isAlignBottom) {
370
321
  return (0, _vue.nextTick)().then(function () {
371
322
  if (option) {
372
323
  var optWrapperElem = refOptionWrapper.value;
373
324
  var panelElem = refOptionPanel.value;
374
325
  var optElem = panelElem.querySelector("[optid='".concat(getOptid(option), "']"));
375
-
376
326
  if (optWrapperElem && optElem) {
377
327
  var wrapperHeight = optWrapperElem.offsetHeight;
378
328
  var offsetPadding = 5;
379
-
380
329
  if (isAlignBottom) {
381
330
  if (optElem.offsetTop + optElem.offsetHeight - optWrapperElem.scrollTop > wrapperHeight) {
382
331
  optWrapperElem.scrollTop = optElem.offsetTop + optElem.offsetHeight - wrapperHeight;
@@ -390,21 +339,18 @@ var _default2 = (0, _vue.defineComponent)({
390
339
  }
391
340
  });
392
341
  };
393
-
394
- var updateZindex = function updateZindex() {
342
+ var updateZindex = function () {
395
343
  if (reactData.panelIndex < (0, _utils.getLastZIndex)()) {
396
344
  reactData.panelIndex = (0, _utils.nextZIndex)();
397
345
  }
398
346
  };
399
-
400
- var updatePlacement = function updatePlacement() {
347
+ var updatePlacement = function () {
401
348
  return (0, _vue.nextTick)().then(function () {
402
349
  var transfer = props.transfer,
403
- placement = props.placement;
350
+ placement = props.placement;
404
351
  var panelIndex = reactData.panelIndex;
405
352
  var el = refElem.value;
406
353
  var panelElem = refOptionPanel.value;
407
-
408
354
  if (panelElem && el) {
409
355
  var targetHeight = el.offsetHeight;
410
356
  var targetWidth = el.offsetWidth;
@@ -414,19 +360,15 @@ var _default2 = (0, _vue.defineComponent)({
414
360
  var panelStyle = {
415
361
  zIndex: panelIndex
416
362
  };
417
-
418
363
  var _a = (0, _dom.getAbsolutePos)(el),
419
- boundingTop = _a.boundingTop,
420
- boundingLeft = _a.boundingLeft,
421
- visibleHeight = _a.visibleHeight,
422
- visibleWidth = _a.visibleWidth;
423
-
364
+ boundingTop = _a.boundingTop,
365
+ boundingLeft = _a.boundingLeft,
366
+ visibleHeight = _a.visibleHeight,
367
+ visibleWidth = _a.visibleWidth;
424
368
  var panelPlacement = 'bottom';
425
-
426
369
  if (transfer) {
427
370
  var left = boundingLeft;
428
371
  var top_1 = boundingTop + targetHeight;
429
-
430
372
  if (placement === 'top') {
431
373
  panelPlacement = 'top';
432
374
  top_1 = boundingTop - panelHeight;
@@ -435,25 +377,21 @@ var _default2 = (0, _vue.defineComponent)({
435
377
  if (top_1 + panelHeight + marginSize > visibleHeight) {
436
378
  panelPlacement = 'top';
437
379
  top_1 = boundingTop - panelHeight;
438
- } // 如果上面不够放,则向下(优先)
439
-
440
-
380
+ }
381
+ // 如果上面不够放,则向下(优先)
441
382
  if (top_1 < marginSize) {
442
383
  panelPlacement = 'bottom';
443
384
  top_1 = boundingTop + targetHeight;
444
385
  }
445
- } // 如果溢出右边
446
-
447
-
386
+ }
387
+ // 如果溢出右边
448
388
  if (left + panelWidth + marginSize > visibleWidth) {
449
389
  left -= left + panelWidth + marginSize - visibleWidth;
450
- } // 如果溢出左边
451
-
452
-
390
+ }
391
+ // 如果溢出左边
453
392
  if (left < marginSize) {
454
393
  left = marginSize;
455
394
  }
456
-
457
395
  Object.assign(panelStyle, {
458
396
  left: "".concat(left, "px"),
459
397
  top: "".concat(top_1, "px"),
@@ -474,54 +412,43 @@ var _default2 = (0, _vue.defineComponent)({
474
412
  }
475
413
  }
476
414
  }
477
-
478
415
  reactData.panelStyle = panelStyle;
479
416
  reactData.panelPlacement = panelPlacement;
480
417
  return (0, _vue.nextTick)();
481
418
  }
482
419
  });
483
420
  };
484
-
485
421
  var hidePanelTimeout;
486
-
487
- var showOptionPanel = function showOptionPanel() {
422
+ var showOptionPanel = function () {
488
423
  var loading = props.loading,
489
- disabled = props.disabled,
490
- filterable = props.filterable;
491
-
424
+ disabled = props.disabled,
425
+ filterable = props.filterable;
492
426
  if (!loading && !disabled) {
493
427
  clearTimeout(hidePanelTimeout);
494
-
495
428
  if (!reactData.inited) {
496
429
  reactData.inited = true;
497
430
  }
498
-
499
431
  reactData.isActivated = true;
500
432
  reactData.animatVisible = true;
501
-
502
433
  if (filterable) {
503
434
  refreshOption();
504
435
  }
505
-
506
436
  setTimeout(function () {
507
437
  var modelValue = props.modelValue,
508
- multiple = props.multiple;
438
+ multiple = props.multiple;
509
439
  var currOption = findOption(multiple && modelValue ? modelValue[0] : modelValue);
510
440
  reactData.visiblePanel = true;
511
-
512
441
  if (currOption) {
513
442
  setCurrentOption(currOption);
514
443
  scrollToOption(currOption);
515
444
  }
516
-
517
445
  handleFocusSearch();
518
446
  }, 10);
519
447
  updateZindex();
520
448
  updatePlacement();
521
449
  }
522
450
  };
523
-
524
- var hideOptionPanel = function hideOptionPanel() {
451
+ var hideOptionPanel = function () {
525
452
  reactData.searchValue = '';
526
453
  reactData.searchLoading = false;
527
454
  reactData.visiblePanel = false;
@@ -529,41 +456,35 @@ var _default2 = (0, _vue.defineComponent)({
529
456
  reactData.animatVisible = false;
530
457
  }, 350);
531
458
  };
532
-
533
- var changeEvent = function changeEvent(evnt, selectValue) {
459
+ var changeEvent = function (evnt, selectValue) {
534
460
  if (selectValue !== props.modelValue) {
535
461
  emit('update:modelValue', selectValue);
536
462
  selectMethods.dispatchEvent('change', {
537
463
  value: selectValue
538
- }, evnt); // 自动更新校验状态
539
-
464
+ }, evnt);
465
+ // 自动更新校验状态
540
466
  if ($xeform && $xeformiteminfo) {
541
467
  $xeform.triggerItemEvent(evnt, $xeformiteminfo.itemConfig.field, selectValue);
542
468
  }
543
469
  }
544
470
  };
545
-
546
- var clearValueEvent = function clearValueEvent(evnt, selectValue) {
471
+ var clearValueEvent = function (evnt, selectValue) {
547
472
  reactData.remoteValueList = [];
548
473
  changeEvent(evnt, selectValue);
549
474
  selectMethods.dispatchEvent('clear', {
550
475
  value: selectValue
551
476
  }, evnt);
552
477
  };
553
-
554
- var clearEvent = function clearEvent(params, evnt) {
478
+ var clearEvent = function (params, evnt) {
555
479
  clearValueEvent(evnt, null);
556
480
  hideOptionPanel();
557
481
  };
558
-
559
- var changeOptionEvent = function changeOptionEvent(evnt, selectValue, option) {
482
+ var changeOptionEvent = function (evnt, selectValue, option) {
560
483
  var modelValue = props.modelValue,
561
- multiple = props.multiple;
484
+ multiple = props.multiple;
562
485
  var remoteValueList = reactData.remoteValueList;
563
-
564
486
  if (multiple) {
565
487
  var multipleValue = void 0;
566
-
567
488
  if (modelValue) {
568
489
  if (modelValue.indexOf(selectValue) === -1) {
569
490
  multipleValue = modelValue.concat([selectValue]);
@@ -575,11 +496,9 @@ var _default2 = (0, _vue.defineComponent)({
575
496
  } else {
576
497
  multipleValue = [selectValue];
577
498
  }
578
-
579
499
  var remoteItem = remoteValueList.find(function (item) {
580
500
  return item.key === selectValue;
581
501
  });
582
-
583
502
  if (remoteItem) {
584
503
  remoteItem.result = option;
585
504
  } else {
@@ -588,7 +507,6 @@ var _default2 = (0, _vue.defineComponent)({
588
507
  result: option
589
508
  });
590
509
  }
591
-
592
510
  changeEvent(evnt, multipleValue);
593
511
  } else {
594
512
  reactData.remoteValueList = [{
@@ -599,15 +517,12 @@ var _default2 = (0, _vue.defineComponent)({
599
517
  hideOptionPanel();
600
518
  }
601
519
  };
602
-
603
- var handleGlobalMousewheelEvent = function handleGlobalMousewheelEvent(evnt) {
520
+ var handleGlobalMousewheelEvent = function (evnt) {
604
521
  var disabled = props.disabled;
605
522
  var visiblePanel = reactData.visiblePanel;
606
-
607
523
  if (!disabled) {
608
524
  if (visiblePanel) {
609
525
  var panelElem = refOptionPanel.value;
610
-
611
526
  if ((0, _dom.getEventTargetNode)(evnt, panelElem).flag) {
612
527
  updatePlacement();
613
528
  } else {
@@ -616,25 +531,21 @@ var _default2 = (0, _vue.defineComponent)({
616
531
  }
617
532
  }
618
533
  };
619
-
620
- var handleGlobalMousedownEvent = function handleGlobalMousedownEvent(evnt) {
534
+ var handleGlobalMousedownEvent = function (evnt) {
621
535
  var disabled = props.disabled;
622
536
  var visiblePanel = reactData.visiblePanel;
623
-
624
537
  if (!disabled) {
625
538
  var el = refElem.value;
626
539
  var panelElem = refOptionPanel.value;
627
540
  reactData.isActivated = (0, _dom.getEventTargetNode)(evnt, el).flag || (0, _dom.getEventTargetNode)(evnt, panelElem).flag;
628
-
629
541
  if (visiblePanel && !reactData.isActivated) {
630
542
  hideOptionPanel();
631
543
  }
632
544
  }
633
545
  };
634
-
635
- var findOffsetOption = function findOffsetOption(optionValue, isUpArrow) {
546
+ var findOffsetOption = function (optionValue, isUpArrow) {
636
547
  var visibleOptionList = reactData.visibleOptionList,
637
- visibleGroupList = reactData.visibleGroupList;
548
+ visibleGroupList = reactData.visibleGroupList;
638
549
  var isGroup = computeIsGroup.value;
639
550
  var valueField = computeValueField.value;
640
551
  var groupOptionsField = computeGroupOptionsField.value;
@@ -642,27 +553,22 @@ var _default2 = (0, _vue.defineComponent)({
642
553
  var prevOption;
643
554
  var nextOption;
644
555
  var currOption;
645
-
646
556
  if (isGroup) {
647
557
  for (var gIndex = 0; gIndex < visibleGroupList.length; gIndex++) {
648
558
  var group = visibleGroupList[gIndex];
649
559
  var groupOptionList = group[groupOptionsField];
650
560
  var isGroupDisabled = group.disabled;
651
-
652
561
  if (groupOptionList) {
653
562
  for (var index = 0; index < groupOptionList.length; index++) {
654
563
  var option = groupOptionList[index];
655
564
  var isVisible = isOptionVisible(option);
656
565
  var isDisabled = isGroupDisabled || option.disabled;
657
-
658
566
  if (!firstOption && !isDisabled) {
659
567
  firstOption = option;
660
568
  }
661
-
662
569
  if (currOption) {
663
570
  if (isVisible && !isDisabled) {
664
571
  nextOption = option;
665
-
666
572
  if (!isUpArrow) {
667
573
  return {
668
574
  offsetOption: nextOption
@@ -670,10 +576,8 @@ var _default2 = (0, _vue.defineComponent)({
670
576
  }
671
577
  }
672
578
  }
673
-
674
579
  if (optionValue === option[valueField]) {
675
580
  currOption = option;
676
-
677
581
  if (isUpArrow) {
678
582
  return {
679
583
  offsetOption: prevOption
@@ -691,15 +595,12 @@ var _default2 = (0, _vue.defineComponent)({
691
595
  for (var index = 0; index < visibleOptionList.length; index++) {
692
596
  var option = visibleOptionList[index];
693
597
  var isDisabled = option.disabled;
694
-
695
598
  if (!firstOption && !isDisabled) {
696
599
  firstOption = option;
697
600
  }
698
-
699
601
  if (currOption) {
700
602
  if (!isDisabled) {
701
603
  nextOption = option;
702
-
703
604
  if (!isUpArrow) {
704
605
  return {
705
606
  offsetOption: nextOption
@@ -707,10 +608,8 @@ var _default2 = (0, _vue.defineComponent)({
707
608
  }
708
609
  }
709
610
  }
710
-
711
611
  if (optionValue === option[valueField]) {
712
612
  currOption = option;
713
-
714
613
  if (isUpArrow) {
715
614
  return {
716
615
  offsetOption: prevOption
@@ -723,19 +622,16 @@ var _default2 = (0, _vue.defineComponent)({
723
622
  }
724
623
  }
725
624
  }
726
-
727
625
  return {
728
626
  firstOption: firstOption
729
627
  };
730
628
  };
731
-
732
- var handleGlobalKeydownEvent = function handleGlobalKeydownEvent(evnt) {
629
+ var handleGlobalKeydownEvent = function (evnt) {
733
630
  var clearable = props.clearable,
734
- disabled = props.disabled;
631
+ disabled = props.disabled;
735
632
  var visiblePanel = reactData.visiblePanel,
736
- currentValue = reactData.currentValue,
737
- currentOption = reactData.currentOption;
738
-
633
+ currentValue = reactData.currentValue,
634
+ currentOption = reactData.currentOption;
739
635
  if (!disabled) {
740
636
  var isTab = (0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.TAB);
741
637
  var isEnter = (0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.ENTER);
@@ -744,11 +640,9 @@ var _default2 = (0, _vue.defineComponent)({
744
640
  var isDwArrow = (0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.ARROW_DOWN);
745
641
  var isDel = (0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.DELETE);
746
642
  var isSpacebar = (0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.SPACEBAR);
747
-
748
643
  if (isTab) {
749
644
  reactData.isActivated = false;
750
645
  }
751
-
752
646
  if (visiblePanel) {
753
647
  if (isEsc || isTab) {
754
648
  hideOptionPanel();
@@ -758,15 +652,12 @@ var _default2 = (0, _vue.defineComponent)({
758
652
  changeOptionEvent(evnt, currentValue, currentOption);
759
653
  } else if (isUpArrow || isDwArrow) {
760
654
  evnt.preventDefault();
761
-
762
655
  var _a = findOffsetOption(currentValue, isUpArrow),
763
- firstOption = _a.firstOption,
764
- offsetOption = _a.offsetOption;
765
-
656
+ firstOption = _a.firstOption,
657
+ offsetOption = _a.offsetOption;
766
658
  if (!offsetOption && !findOption(currentValue)) {
767
659
  offsetOption = firstOption;
768
660
  }
769
-
770
661
  setCurrentOption(offsetOption);
771
662
  scrollToOption(offsetOption, isDwArrow);
772
663
  } else if (isSpacebar) {
@@ -776,7 +667,6 @@ var _default2 = (0, _vue.defineComponent)({
776
667
  evnt.preventDefault();
777
668
  showOptionPanel();
778
669
  }
779
-
780
670
  if (reactData.isActivated) {
781
671
  if (isDel && clearable) {
782
672
  clearValueEvent(evnt, null);
@@ -784,56 +674,45 @@ var _default2 = (0, _vue.defineComponent)({
784
674
  }
785
675
  }
786
676
  };
787
-
788
- var handleGlobalBlurEvent = function handleGlobalBlurEvent() {
677
+ var handleGlobalBlurEvent = function () {
789
678
  hideOptionPanel();
790
679
  };
791
-
792
- var handleFocusSearch = function handleFocusSearch() {
680
+ var handleFocusSearch = function () {
793
681
  if (props.filterable) {
794
682
  (0, _vue.nextTick)(function () {
795
683
  var inpSearch = refInpSearch.value;
796
-
797
684
  if (inpSearch) {
798
685
  inpSearch.focus();
799
686
  }
800
687
  });
801
688
  }
802
689
  };
803
-
804
- var focusEvent = function focusEvent() {
690
+ var focusEvent = function () {
805
691
  if (!props.disabled) {
806
692
  reactData.isActivated = true;
807
693
  }
808
694
  };
809
-
810
- var blurEvent = function blurEvent() {
695
+ var blurEvent = function () {
811
696
  reactData.isActivated = false;
812
697
  };
813
-
814
- var modelSearchEvent = function modelSearchEvent(value) {
698
+ var modelSearchEvent = function (value) {
815
699
  reactData.searchValue = value;
816
700
  };
817
-
818
- var focusSearchEvent = function focusSearchEvent() {
701
+ var focusSearchEvent = function () {
819
702
  reactData.isActivated = true;
820
703
  };
821
-
822
- var keydownSearchEvent = function keydownSearchEvent(params) {
704
+ var keydownSearchEvent = function (params) {
823
705
  var $event = params.$event;
824
706
  var isEnter = (0, _event.hasEventKey)($event, _event.EVENT_KEYS.ENTER);
825
-
826
707
  if (isEnter) {
827
708
  $event.preventDefault();
828
709
  $event.stopPropagation();
829
710
  }
830
711
  };
831
-
832
712
  var triggerSearchEvent = _xeUtils.default.debounce(function () {
833
713
  var remote = props.remote,
834
- remoteMethod = props.remoteMethod;
714
+ remoteMethod = props.remoteMethod;
835
715
  var searchValue = reactData.searchValue;
836
-
837
716
  if (remote && remoteMethod) {
838
717
  reactData.searchLoading = true;
839
718
  Promise.resolve(remoteMethod({
@@ -852,40 +731,32 @@ var _default2 = (0, _vue.defineComponent)({
852
731
  }, 350, {
853
732
  trailing: true
854
733
  });
855
-
856
- var togglePanelEvent = function togglePanelEvent(params) {
734
+ var togglePanelEvent = function (params) {
857
735
  var $event = params.$event;
858
736
  $event.preventDefault();
859
-
860
737
  if (reactData.visiblePanel) {
861
738
  hideOptionPanel();
862
739
  } else {
863
740
  showOptionPanel();
864
741
  }
865
742
  };
866
-
867
- var checkOptionDisabled = function checkOptionDisabled(isSelected, option, group) {
743
+ var checkOptionDisabled = function (isSelected, option, group) {
868
744
  if (option.disabled) {
869
745
  return true;
870
746
  }
871
-
872
747
  if (group && group.disabled) {
873
748
  return true;
874
749
  }
875
-
876
750
  var isMaximize = computeIsMaximize.value;
877
-
878
751
  if (isMaximize && !isSelected) {
879
752
  return true;
880
753
  }
881
-
882
754
  return false;
883
755
  };
884
-
885
- var renderOption = function renderOption(list, group) {
756
+ var renderOption = function (list, group) {
886
757
  var optionKey = props.optionKey,
887
- modelValue = props.modelValue,
888
- multiple = props.multiple;
758
+ modelValue = props.modelValue,
759
+ multiple = props.multiple;
889
760
  var currentValue = reactData.currentValue;
890
761
  var optionOpts = computeOptionOpts.value;
891
762
  var labelField = computeLabelField.value;
@@ -894,7 +765,7 @@ var _default2 = (0, _vue.defineComponent)({
894
765
  var useKey = optionOpts.useKey;
895
766
  return list.map(function (option, cIndex) {
896
767
  var slots = option.slots,
897
- className = option.className;
768
+ className = option.className;
898
769
  var optionValue = option[valueField];
899
770
  var isSelected = multiple ? modelValue && modelValue.indexOf(optionValue) > -1 : modelValue === optionValue;
900
771
  var isVisible = !isGroup || isOptionVisible(option);
@@ -914,19 +785,18 @@ var _default2 = (0, _vue.defineComponent)({
914
785
  // attrs
915
786
  optid: optid,
916
787
  // event
917
- onMousedown: function onMousedown(evnt) {
788
+ onMousedown: function (evnt) {
918
789
  var isLeftBtn = evnt.button === 0;
919
-
920
790
  if (isLeftBtn) {
921
791
  evnt.stopPropagation();
922
792
  }
923
793
  },
924
- onClick: function onClick(evnt) {
794
+ onClick: function (evnt) {
925
795
  if (!isDisabled) {
926
796
  changeOptionEvent(evnt, optionValue, option);
927
797
  }
928
798
  },
929
- onMouseenter: function onMouseenter() {
799
+ onMouseenter: function () {
930
800
  if (!isDisabled) {
931
801
  setCurrentOption(option);
932
802
  }
@@ -937,8 +807,7 @@ var _default2 = (0, _vue.defineComponent)({
937
807
  }) : (0, _utils.formatText)((0, _utils.getFuncText)(option[labelField]))) : null;
938
808
  });
939
809
  };
940
-
941
- var renderOptgroup = function renderOptgroup() {
810
+ var renderOptgroup = function () {
942
811
  var optionKey = props.optionKey;
943
812
  var visibleGroupList = reactData.visibleGroupList;
944
813
  var optionOpts = computeOptionOpts.value;
@@ -947,7 +816,7 @@ var _default2 = (0, _vue.defineComponent)({
947
816
  var useKey = optionOpts.useKey;
948
817
  return visibleGroupList.map(function (group, gIndex) {
949
818
  var slots = group.slots,
950
- className = group.className;
819
+ className = group.className;
951
820
  var optid = getOptid(group);
952
821
  var isGroupDisabled = group.disabled;
953
822
  var defaultSlot = slots ? slots.default : null;
@@ -971,13 +840,11 @@ var _default2 = (0, _vue.defineComponent)({
971
840
  }, renderOption(group[groupOptionsField] || [], group))]);
972
841
  });
973
842
  };
974
-
975
- var renderOpts = function renderOpts() {
843
+ var renderOpts = function () {
976
844
  var visibleGroupList = reactData.visibleGroupList,
977
- visibleOptionList = reactData.visibleOptionList,
978
- searchLoading = reactData.searchLoading;
845
+ visibleOptionList = reactData.visibleOptionList,
846
+ searchLoading = reactData.searchLoading;
979
847
  var isGroup = computeIsGroup.value;
980
-
981
848
  if (searchLoading) {
982
849
  return [(0, _vue.h)('div', {
983
850
  class: 'vxe-select--search-loading'
@@ -987,7 +854,6 @@ var _default2 = (0, _vue.defineComponent)({
987
854
  class: 'vxe-select--search-text'
988
855
  }, _conf.default.i18n('vxe.select.loadingText'))])];
989
856
  }
990
-
991
857
  if (isGroup) {
992
858
  if (visibleGroupList.length) {
993
859
  return renderOptgroup();
@@ -997,53 +863,48 @@ var _default2 = (0, _vue.defineComponent)({
997
863
  return renderOption(visibleOptionList);
998
864
  }
999
865
  }
1000
-
1001
866
  return [(0, _vue.h)('div', {
1002
867
  class: 'vxe-select--empty-placeholder'
1003
868
  }, props.emptyText || _conf.default.i18n('vxe.select.emptyText'))];
1004
869
  };
1005
-
1006
870
  selectMethods = {
1007
- dispatchEvent: function dispatchEvent(type, params, evnt) {
871
+ dispatchEvent: function (type, params, evnt) {
1008
872
  emit(type, Object.assign({
1009
873
  $select: $xeselect,
1010
874
  $event: evnt
1011
875
  }, params));
1012
876
  },
1013
- isPanelVisible: function isPanelVisible() {
877
+ isPanelVisible: function () {
1014
878
  return reactData.visiblePanel;
1015
879
  },
1016
- togglePanel: function togglePanel() {
880
+ togglePanel: function () {
1017
881
  if (reactData.visiblePanel) {
1018
882
  hideOptionPanel();
1019
883
  } else {
1020
884
  showOptionPanel();
1021
885
  }
1022
-
1023
886
  return (0, _vue.nextTick)();
1024
887
  },
1025
- hidePanel: function hidePanel() {
888
+ hidePanel: function () {
1026
889
  if (reactData.visiblePanel) {
1027
890
  hideOptionPanel();
1028
891
  }
1029
-
1030
892
  return (0, _vue.nextTick)();
1031
893
  },
1032
- showPanel: function showPanel() {
894
+ showPanel: function () {
1033
895
  if (!reactData.visiblePanel) {
1034
896
  showOptionPanel();
1035
897
  }
1036
-
1037
898
  return (0, _vue.nextTick)();
1038
899
  },
1039
900
  refreshOption: refreshOption,
1040
- focus: function focus() {
901
+ focus: function () {
1041
902
  var $input = refInput.value;
1042
903
  reactData.isActivated = true;
1043
904
  $input.blur();
1044
905
  return (0, _vue.nextTick)();
1045
906
  },
1046
- blur: function blur() {
907
+ blur: function () {
1047
908
  var $input = refInput.value;
1048
909
  $input.blur();
1049
910
  reactData.isActivated = false;
@@ -1063,7 +924,6 @@ var _default2 = (0, _vue.defineComponent)({
1063
924
  reactData.fullGroupList = [];
1064
925
  reactData.fullOptionList = value || [];
1065
926
  }
1066
-
1067
927
  cacheItemMap();
1068
928
  });
1069
929
  (0, _vue.watch)(function () {
@@ -1083,46 +943,35 @@ var _default2 = (0, _vue.defineComponent)({
1083
943
  (0, _vue.onMounted)(function () {
1084
944
  (0, _vue.nextTick)(function () {
1085
945
  var options = props.options,
1086
- optionGroups = props.optionGroups;
1087
-
946
+ optionGroups = props.optionGroups;
1088
947
  if (optionGroups) {
1089
948
  reactData.fullGroupList = optionGroups;
1090
949
  } else if (options) {
1091
950
  reactData.fullOptionList = options;
1092
951
  }
1093
-
1094
952
  cacheItemMap();
1095
953
  });
1096
-
1097
954
  _event.GlobalEvent.on($xeselect, 'mousewheel', handleGlobalMousewheelEvent);
1098
-
1099
955
  _event.GlobalEvent.on($xeselect, 'mousedown', handleGlobalMousedownEvent);
1100
-
1101
956
  _event.GlobalEvent.on($xeselect, 'keydown', handleGlobalKeydownEvent);
1102
-
1103
957
  _event.GlobalEvent.on($xeselect, 'blur', handleGlobalBlurEvent);
1104
958
  });
1105
959
  (0, _vue.onUnmounted)(function () {
1106
960
  _event.GlobalEvent.off($xeselect, 'mousewheel');
1107
-
1108
961
  _event.GlobalEvent.off($xeselect, 'mousedown');
1109
-
1110
962
  _event.GlobalEvent.off($xeselect, 'keydown');
1111
-
1112
963
  _event.GlobalEvent.off($xeselect, 'blur');
1113
964
  });
1114
-
1115
- var renderVN = function renderVN() {
965
+ var renderVN = function () {
1116
966
  var _a, _b;
1117
-
1118
967
  var className = props.className,
1119
- transfer = props.transfer,
1120
- disabled = props.disabled,
1121
- loading = props.loading,
1122
- filterable = props.filterable;
968
+ transfer = props.transfer,
969
+ disabled = props.disabled,
970
+ loading = props.loading,
971
+ filterable = props.filterable;
1123
972
  var inited = reactData.inited,
1124
- isActivated = reactData.isActivated,
1125
- visiblePanel = reactData.visiblePanel;
973
+ isActivated = reactData.isActivated,
974
+ visiblePanel = reactData.visiblePanel;
1126
975
  var vSize = computeSize.value;
1127
976
  var selectLabel = computeSelectLabel.value;
1128
977
  var prefixSlot = slots.prefix;
@@ -1150,7 +999,7 @@ var _default2 = (0, _vue.defineComponent)({
1150
999
  onBlur: blurEvent,
1151
1000
  onSuffixClick: togglePanelEvent
1152
1001
  }, prefixSlot ? {
1153
- prefix: function prefix() {
1002
+ prefix: function () {
1154
1003
  return prefixSlot({});
1155
1004
  }
1156
1005
  } : {}), (0, _vue.h)(_vue.Teleport, {
@@ -1180,14 +1029,12 @@ var _default2 = (0, _vue.defineComponent)({
1180
1029
  class: 'vxe-select-option--wrapper'
1181
1030
  }, renderOpts())] : [])])]);
1182
1031
  };
1183
-
1184
1032
  $xeselect.renderVN = renderVN;
1185
1033
  (0, _vue.provide)('$xeselect', $xeselect);
1186
1034
  return $xeselect;
1187
1035
  },
1188
- render: function render() {
1036
+ render: function () {
1189
1037
  return this.renderVN();
1190
1038
  }
1191
1039
  });
1192
-
1193
- exports.default = _default2;
1040
+ exports.default = _default;