vxe-table 3.8.24 → 3.9.0-rc.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 (1081) hide show
  1. package/README.md +47 -77
  2. package/es/colgroup/index.js +17 -0
  3. package/es/column/index.js +17 -0
  4. package/es/components.js +33 -0
  5. package/es/grid/index.js +13 -0
  6. package/es/grid/src/grid.js +1100 -0
  7. package/es/grid/style.css +61 -0
  8. package/es/grid/style.min.css +1 -0
  9. package/es/iconfont.1725953896189.ttf +0 -0
  10. package/es/iconfont.1725953896189.woff +0 -0
  11. package/es/iconfont.1725953896189.woff2 +0 -0
  12. package/es/index.esm.js +3 -0
  13. package/es/locale/lang/en-US.d.ts +2 -0
  14. package/es/locale/lang/en-US.js +673 -0
  15. package/es/locale/lang/es-ES.d.ts +2 -0
  16. package/es/locale/lang/es-ES.js +673 -0
  17. package/es/locale/lang/hu-HU.js +671 -0
  18. package/es/locale/lang/ja-JP.d.ts +2 -0
  19. package/es/locale/lang/ja-JP.js +673 -0
  20. package/es/locale/lang/ko-KR.js +673 -0
  21. package/es/locale/lang/pt-BR.d.ts +2 -0
  22. package/es/locale/lang/pt-BR.js +673 -0
  23. package/es/locale/lang/ru-RU.js +673 -0
  24. package/es/locale/lang/vi-VN.js +673 -0
  25. package/es/locale/lang/zh-CN.d.ts +2 -0
  26. package/es/locale/lang/zh-CN.js +673 -0
  27. package/es/locale/lang/zh-HK.d.ts +2 -0
  28. package/es/locale/lang/zh-HK.js +2 -0
  29. package/es/locale/lang/zh-MO.d.ts +2 -0
  30. package/es/locale/lang/zh-MO.js +2 -0
  31. package/es/locale/lang/zh-TC.d.ts +2 -0
  32. package/es/locale/lang/zh-TC.js +673 -0
  33. package/es/locale/lang/zh-TW.d.ts +2 -0
  34. package/es/locale/lang/zh-TW.js +2 -0
  35. package/es/style.css +1 -0
  36. package/es/style.min.css +1 -0
  37. package/es/table/index.js +14 -0
  38. package/es/table/module/custom/mixin.js +87 -0
  39. package/es/table/module/custom/panel.js +974 -0
  40. package/es/table/module/edit/mixin.js +810 -0
  41. package/es/table/module/export/export-panel.js +448 -0
  42. package/es/table/module/export/import-panel.js +185 -0
  43. package/es/table/module/export/mixin.js +1463 -0
  44. package/es/table/module/export/util.js +20 -0
  45. package/es/table/module/filter/mixin.js +276 -0
  46. package/es/table/module/filter/panel.js +219 -0
  47. package/es/table/module/keyboard/mixin.js +376 -0
  48. package/es/table/module/menu/mixin.js +282 -0
  49. package/es/table/module/menu/panel.js +138 -0
  50. package/es/table/module/validator/mixin.js +487 -0
  51. package/es/table/render/index.js +796 -0
  52. package/es/table/src/body.js +771 -0
  53. package/es/table/src/cell.js +846 -0
  54. package/es/table/src/column.js +139 -0
  55. package/es/table/src/columnInfo.js +158 -0
  56. package/es/table/src/footer.js +279 -0
  57. package/es/table/src/group.js +11 -0
  58. package/es/table/src/header.js +302 -0
  59. package/es/table/src/methods.js +5640 -0
  60. package/es/table/src/props.js +170 -0
  61. package/es/table/src/table.js +1132 -0
  62. package/es/table/src/util.js +384 -0
  63. package/es/table/style.css +2805 -0
  64. package/es/table/style.min.css +1 -0
  65. package/es/toolbar/index.js +13 -0
  66. package/es/toolbar/src/toolbar.js +675 -0
  67. package/es/toolbar/style.css +91 -0
  68. package/es/toolbar/style.min.css +1 -0
  69. package/es/ui/index.js +377 -0
  70. package/es/ui/src/comp.js +1 -0
  71. package/es/ui/src/dom.js +141 -0
  72. package/es/ui/src/log.js +5 -0
  73. package/es/ui/src/utils.js +44 -0
  74. package/es/ui/src/vn.js +10 -0
  75. package/es/v-x-e-table/index.js +3 -0
  76. package/es/vxe-colgroup/index.js +3 -0
  77. package/es/vxe-column/index.js +3 -0
  78. package/es/vxe-grid/index.js +3 -0
  79. package/es/vxe-grid/style.css +61 -0
  80. package/es/vxe-grid/style.min.css +1 -0
  81. package/es/vxe-table/index.js +3 -0
  82. package/es/vxe-table/style.css +2805 -0
  83. package/es/vxe-table/style.min.css +1 -0
  84. package/es/vxe-toolbar/index.js +3 -0
  85. package/es/vxe-toolbar/style.css +91 -0
  86. package/es/vxe-toolbar/style.min.css +1 -0
  87. package/es/vxe-ui/index.js +3 -0
  88. package/es/vxe-v-x-e-table/index.js +3 -0
  89. package/helper/vetur/attributes.json +1 -1
  90. package/helper/vetur/tags.json +1 -1
  91. package/lib/colgroup/index.js +12 -7
  92. package/lib/colgroup/index.min.js +1 -1
  93. package/lib/colgroup/style/style.css +0 -26
  94. package/lib/column/index.js +12 -7
  95. package/lib/column/index.min.js +1 -1
  96. package/lib/column/style/style.css +0 -26
  97. package/lib/components.js +101 -0
  98. package/lib/components.min.js +1 -0
  99. package/lib/grid/index.js +9 -8
  100. package/lib/grid/index.min.js +1 -1
  101. package/lib/grid/src/grid.js +114 -121
  102. package/lib/grid/src/grid.min.js +1 -1
  103. package/lib/grid/style/style.css +6 -32
  104. package/lib/grid/style/style.min.css +1 -1
  105. package/lib/iconfont.1725953896189.ttf +0 -0
  106. package/lib/iconfont.1725953896189.woff +0 -0
  107. package/lib/iconfont.1725953896189.woff2 +0 -0
  108. package/lib/index.common.js +5 -5
  109. package/lib/index.umd.js +19896 -30313
  110. package/lib/index.umd.min.js +1 -1
  111. package/lib/locale/lang/en-US.d.ts +2 -8
  112. package/lib/locale/lang/en-US.js +11 -6
  113. package/lib/locale/lang/en-US.min.js +1 -1
  114. package/lib/locale/lang/en-US.umd.js +11 -6
  115. package/lib/locale/lang/es-ES.d.ts +2 -8
  116. package/lib/locale/lang/es-ES.js +11 -6
  117. package/lib/locale/lang/es-ES.min.js +1 -1
  118. package/lib/locale/lang/es-ES.umd.js +11 -6
  119. package/lib/locale/lang/hu-HU.js +677 -0
  120. package/lib/locale/lang/hu-HU.min.js +1 -0
  121. package/lib/locale/lang/ja-JP.d.ts +2 -8
  122. package/lib/locale/lang/ja-JP.js +11 -6
  123. package/lib/locale/lang/ja-JP.min.js +1 -1
  124. package/lib/locale/lang/ja-JP.umd.js +11 -6
  125. package/lib/locale/lang/ko-KR.js +679 -0
  126. package/lib/locale/lang/ko-KR.min.js +1 -0
  127. package/lib/locale/lang/pt-BR.d.ts +2 -8
  128. package/lib/locale/lang/pt-BR.js +11 -6
  129. package/lib/locale/lang/pt-BR.min.js +1 -1
  130. package/lib/locale/lang/pt-BR.umd.js +11 -6
  131. package/lib/locale/lang/ru-RU.js +679 -0
  132. package/lib/locale/lang/ru-RU.min.js +1 -0
  133. package/lib/locale/lang/vi-VN.js +679 -0
  134. package/lib/locale/lang/vi-VN.min.js +1 -0
  135. package/lib/locale/lang/zh-CN.d.ts +2 -8
  136. package/lib/locale/lang/zh-CN.js +11 -6
  137. package/lib/locale/lang/zh-CN.min.js +1 -1
  138. package/lib/locale/lang/zh-CN.umd.js +11 -6
  139. package/lib/locale/lang/zh-HK.d.ts +2 -8
  140. package/lib/locale/lang/zh-HK.js +1 -1
  141. package/lib/locale/lang/zh-HK.min.js +1 -1
  142. package/lib/locale/lang/zh-HK.umd.js +11 -6
  143. package/lib/locale/lang/zh-MO.d.ts +2 -8
  144. package/lib/locale/lang/zh-MO.js +1 -1
  145. package/lib/locale/lang/zh-MO.min.js +1 -1
  146. package/lib/locale/lang/zh-MO.umd.js +11 -6
  147. package/lib/locale/lang/zh-TC.d.ts +2 -8
  148. package/lib/locale/lang/zh-TC.js +11 -6
  149. package/lib/locale/lang/zh-TC.min.js +1 -1
  150. package/lib/locale/lang/zh-TC.umd.js +11 -6
  151. package/lib/locale/lang/zh-TW.d.ts +2 -8
  152. package/lib/locale/lang/zh-TW.js +1 -1
  153. package/lib/locale/lang/zh-TW.min.js +1 -1
  154. package/lib/locale/lang/zh-TW.umd.js +11 -6
  155. package/lib/style.css +1 -1
  156. package/lib/style.min.css +1 -1
  157. package/lib/table/index.js +10 -31
  158. package/lib/table/index.min.js +1 -1
  159. package/lib/table/module/custom/mixin.js +117 -0
  160. package/lib/table/module/custom/mixin.min.js +1 -0
  161. package/lib/table/module/custom/panel.js +910 -0
  162. package/lib/table/module/custom/panel.min.js +1 -0
  163. package/lib/table/module/edit/mixin.js +975 -0
  164. package/lib/table/module/edit/mixin.min.js +1 -0
  165. package/lib/table/module/export/export-panel.js +412 -0
  166. package/lib/table/module/export/export-panel.min.js +1 -0
  167. package/lib/table/module/export/import-panel.js +177 -0
  168. package/lib/table/module/export/import-panel.min.js +1 -0
  169. package/lib/table/module/export/mixin.js +1735 -0
  170. package/lib/table/module/export/mixin.min.js +1 -0
  171. package/lib/table/module/export/util.js +18 -0
  172. package/lib/table/module/export/util.min.js +1 -0
  173. package/lib/table/module/filter/mixin.js +329 -0
  174. package/lib/table/module/filter/mixin.min.js +1 -0
  175. package/lib/table/module/filter/panel.js +213 -0
  176. package/lib/table/module/filter/panel.min.js +1 -0
  177. package/lib/table/module/keyboard/mixin.js +410 -0
  178. package/lib/table/module/keyboard/mixin.min.js +1 -0
  179. package/lib/table/module/menu/mixin.js +329 -0
  180. package/lib/table/module/menu/mixin.min.js +1 -0
  181. package/lib/table/module/menu/panel.js +117 -0
  182. package/lib/table/module/menu/panel.min.js +1 -0
  183. package/lib/table/module/validator/mixin.js +550 -0
  184. package/lib/table/module/validator/mixin.min.js +1 -0
  185. package/lib/table/render/index.js +895 -0
  186. package/lib/table/render/index.min.js +1 -0
  187. package/lib/table/src/body.js +37 -44
  188. package/lib/table/src/body.min.js +1 -1
  189. package/lib/table/src/cell.js +74 -80
  190. package/lib/table/src/cell.min.js +1 -1
  191. package/lib/table/src/column.js +5 -5
  192. package/lib/table/src/column.min.js +1 -1
  193. package/lib/table/src/columnInfo.js +13 -21
  194. package/lib/table/src/columnInfo.min.js +1 -1
  195. package/lib/table/src/footer.js +14 -14
  196. package/lib/table/src/footer.min.js +1 -1
  197. package/lib/table/src/group.js +1 -1
  198. package/lib/table/src/group.min.js +1 -1
  199. package/lib/table/src/header.js +19 -23
  200. package/lib/table/src/header.min.js +1 -1
  201. package/lib/table/src/methods.js +600 -591
  202. package/lib/table/src/methods.min.js +1 -1
  203. package/lib/table/src/props.js +296 -0
  204. package/lib/table/src/props.min.js +1 -0
  205. package/lib/table/src/table.js +150 -419
  206. package/lib/table/src/table.min.js +1 -1
  207. package/lib/table/src/util.js +73 -23
  208. package/lib/table/src/util.min.js +1 -1
  209. package/lib/table/style/style.css +1715 -362
  210. package/lib/table/style/style.min.css +1 -1
  211. package/lib/toolbar/index.js +9 -6
  212. package/lib/toolbar/index.min.js +1 -1
  213. package/lib/toolbar/src/toolbar.js +579 -413
  214. package/lib/toolbar/src/toolbar.min.js +1 -1
  215. package/lib/toolbar/style/style.css +11 -37
  216. package/lib/toolbar/style/style.min.css +1 -1
  217. package/lib/ui/index.js +382 -16
  218. package/lib/ui/index.min.js +1 -1
  219. package/lib/ui/src/comp.js +9 -0
  220. package/lib/ui/src/comp.min.js +1 -0
  221. package/lib/ui/src/dom.js +184 -0
  222. package/lib/ui/src/dom.min.js +1 -0
  223. package/lib/ui/src/log.js +11 -0
  224. package/lib/ui/src/log.min.js +1 -0
  225. package/lib/ui/src/utils.js +63 -0
  226. package/lib/ui/src/utils.min.js +1 -0
  227. package/lib/ui/src/vn.js +18 -0
  228. package/lib/ui/src/vn.min.js +1 -0
  229. package/lib/v-x-e-table/index.js +10 -283
  230. package/lib/v-x-e-table/index.min.js +1 -1
  231. package/lib/v-x-e-table/style/style.css +0 -1630
  232. package/lib/v-x-e-table/style/style.min.css +0 -1
  233. package/lib/vxe-colgroup/index.min.js +1 -1
  234. package/lib/vxe-colgroup/style/style.css +0 -26
  235. package/lib/vxe-column/index.min.js +1 -1
  236. package/lib/vxe-column/style/style.css +0 -26
  237. package/lib/vxe-grid/index.min.js +1 -1
  238. package/lib/vxe-grid/style/style.css +6 -32
  239. package/lib/vxe-grid/style/style.min.css +1 -1
  240. package/lib/vxe-table/index.min.js +1 -1
  241. package/lib/vxe-table/style/style.css +1715 -362
  242. package/lib/vxe-table/style/style.min.css +1 -1
  243. package/lib/vxe-toolbar/index.min.js +1 -1
  244. package/lib/vxe-toolbar/style/style.css +11 -37
  245. package/lib/vxe-toolbar/style/style.min.css +1 -1
  246. package/lib/vxe-ui/index.js +23 -0
  247. package/lib/vxe-ui/index.min.js +1 -0
  248. package/lib/vxe-v-x-e-table/index.js +23 -0
  249. package/lib/vxe-v-x-e-table/index.min.js +1 -0
  250. package/lib/vxe-v-x-e-table/style/style.css +0 -0
  251. package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
  252. package/package.json +18 -25
  253. package/packages/colgroup/index.ts +22 -0
  254. package/packages/column/index.ts +22 -0
  255. package/packages/components.ts +43 -0
  256. package/packages/grid/index.ts +18 -0
  257. package/packages/grid/src/grid.ts +1129 -0
  258. package/packages/index.ts +4 -0
  259. package/packages/locale/lang/en-US.ts +675 -0
  260. package/packages/locale/lang/es-ES.ts +675 -0
  261. package/packages/locale/lang/hu-HU.ts +673 -0
  262. package/packages/locale/lang/ja-JP.ts +675 -0
  263. package/packages/locale/lang/ko-KR.ts +675 -0
  264. package/packages/locale/lang/pt-BR.ts +675 -0
  265. package/packages/locale/lang/ru-RU.ts +675 -0
  266. package/packages/locale/lang/vi-VN.ts +675 -0
  267. package/packages/locale/lang/zh-CN.ts +675 -0
  268. package/packages/locale/lang/zh-TC.ts +675 -0
  269. package/packages/table/index.ts +19 -0
  270. package/packages/table/module/custom/mixin.ts +87 -0
  271. package/packages/table/module/custom/panel.ts +984 -0
  272. package/packages/table/module/edit/mixin.ts +797 -0
  273. package/packages/table/module/export/export-panel.ts +452 -0
  274. package/packages/table/module/export/import-panel.ts +188 -0
  275. package/packages/table/module/export/mixin.ts +1504 -0
  276. package/packages/table/module/export/util.ts +24 -0
  277. package/packages/table/module/filter/mixin.ts +273 -0
  278. package/packages/table/module/filter/panel.ts +220 -0
  279. package/packages/table/module/keyboard/mixin.ts +355 -0
  280. package/packages/table/module/menu/mixin.ts +272 -0
  281. package/packages/table/module/menu/panel.ts +141 -0
  282. package/packages/table/module/validator/mixin.ts +475 -0
  283. package/packages/table/render/index.ts +863 -0
  284. package/packages/table/src/body.ts +842 -0
  285. package/packages/table/src/cell.ts +872 -0
  286. package/packages/table/src/column.ts +141 -0
  287. package/packages/table/src/columnInfo.ts +169 -0
  288. package/packages/table/src/footer.ts +300 -0
  289. package/packages/table/src/header.ts +304 -0
  290. package/packages/table/src/methods.ts +5559 -0
  291. package/packages/table/src/props.ts +173 -0
  292. package/packages/table/src/table.ts +1186 -0
  293. package/packages/table/src/util.ts +410 -0
  294. package/packages/toolbar/index.ts +18 -0
  295. package/packages/toolbar/src/toolbar.ts +733 -0
  296. package/packages/ui/index.ts +397 -0
  297. package/packages/ui/src/comp.ts +3 -0
  298. package/packages/ui/src/dom.ts +163 -0
  299. package/packages/ui/src/log.ts +8 -0
  300. package/packages/ui/src/utils.ts +54 -0
  301. package/packages/ui/src/vn.ts +14 -0
  302. package/packages/v-x-e-table/index.ts +4 -0
  303. package/styles/all.scss +6 -32
  304. package/styles/base.scss +16 -0
  305. package/styles/components/colgroup.scss +0 -0
  306. package/styles/components/column.scss +0 -0
  307. package/styles/components/grid.scss +62 -0
  308. package/styles/components/icon.scss +187 -0
  309. package/styles/components/old-icon.scss +717 -0
  310. package/styles/components/table-module/all.scss +7 -0
  311. package/styles/components/table-module/custom.scss +381 -0
  312. package/styles/components/table-module/edit.scss +0 -0
  313. package/styles/components/table-module/export.scss +127 -0
  314. package/styles/components/table-module/filter.scss +112 -0
  315. package/styles/components/table-module/keyboard.scss +0 -0
  316. package/styles/components/table-module/menu.scss +86 -0
  317. package/styles/components/table-module/validator.scss +0 -0
  318. package/styles/components/table.scss +1492 -0
  319. package/styles/components/toolbar.scss +102 -0
  320. package/styles/components/ui.scss +0 -0
  321. package/styles/components/v-x-e-table.scss +0 -0
  322. package/styles/cssvar.scss +3 -2
  323. package/styles/default.scss +2 -0
  324. package/styles/helpers/mixin.scss +16 -13
  325. package/styles/icon/iconfont.ttf +0 -0
  326. package/styles/icon/iconfont.woff +0 -0
  327. package/styles/icon/iconfont.woff2 +0 -0
  328. package/styles/modules.scss +6 -33
  329. package/styles/theme/base.scss +89 -0
  330. package/styles/theme/dark.scss +41 -0
  331. package/styles/theme/light.scss +39 -0
  332. package/styles/variable.scss +2 -275
  333. package/types/all.d.ts +45 -70
  334. package/types/index.d.ts +2 -7
  335. package/lib/all.js +0 -459
  336. package/lib/all.min.js +0 -1
  337. package/lib/button/index.d.ts +0 -4
  338. package/lib/button/index.js +0 -17
  339. package/lib/button/index.min.js +0 -1
  340. package/lib/button/src/button.js +0 -512
  341. package/lib/button/src/button.min.js +0 -1
  342. package/lib/button/src/group.js +0 -71
  343. package/lib/button/src/group.min.js +0 -1
  344. package/lib/button/style/style.css +0 -571
  345. package/lib/button/style/style.min.css +0 -1
  346. package/lib/button-group/index.d.ts +0 -4
  347. package/lib/button-group/index.js +0 -17
  348. package/lib/button-group/index.min.js +0 -1
  349. package/lib/button-group/style/style.css +0 -29
  350. package/lib/button-group/style/style.min.css +0 -1
  351. package/lib/checkbox/index.d.ts +0 -4
  352. package/lib/checkbox/index.js +0 -17
  353. package/lib/checkbox/index.min.js +0 -1
  354. package/lib/checkbox/src/checkbox.js +0 -138
  355. package/lib/checkbox/src/checkbox.min.js +0 -1
  356. package/lib/checkbox/src/group.js +0 -105
  357. package/lib/checkbox/src/group.min.js +0 -1
  358. package/lib/checkbox/style/index.js +0 -1
  359. package/lib/checkbox/style/style.css +0 -292
  360. package/lib/checkbox/style/style.min.css +0 -1
  361. package/lib/checkbox-group/index.d.ts +0 -4
  362. package/lib/checkbox-group/index.js +0 -17
  363. package/lib/checkbox-group/index.min.js +0 -1
  364. package/lib/checkbox-group/style/style.css +0 -26
  365. package/lib/colgroup/index.d.ts +0 -4
  366. package/lib/column/index.d.ts +0 -4
  367. package/lib/custom/index.d.ts +0 -4
  368. package/lib/custom/index.js +0 -21
  369. package/lib/custom/index.min.js +0 -1
  370. package/lib/custom/src/mixin.js +0 -117
  371. package/lib/custom/src/mixin.min.js +0 -1
  372. package/lib/custom/src/panel.js +0 -876
  373. package/lib/custom/src/panel.min.js +0 -1
  374. package/lib/custom/style/index.js +0 -1
  375. package/lib/custom/style/style.css +0 -629
  376. package/lib/custom/style/style.min.css +0 -1
  377. package/lib/edit/index.d.ts +0 -4
  378. package/lib/edit/index.js +0 -18
  379. package/lib/edit/index.min.js +0 -1
  380. package/lib/edit/src/mixin.js +0 -979
  381. package/lib/edit/src/mixin.min.js +0 -1
  382. package/lib/edit/style/index.js +0 -1
  383. package/lib/edit/style/style.css +0 -26
  384. package/lib/export/index.d.ts +0 -4
  385. package/lib/export/index.js +0 -59
  386. package/lib/export/index.min.js +0 -1
  387. package/lib/export/src/export-panel.js +0 -413
  388. package/lib/export/src/export-panel.min.js +0 -1
  389. package/lib/export/src/import-panel.js +0 -176
  390. package/lib/export/src/import-panel.min.js +0 -1
  391. package/lib/export/src/mixin.js +0 -1762
  392. package/lib/export/src/mixin.min.js +0 -1
  393. package/lib/export/style/index.js +0 -1
  394. package/lib/export/style/style.css +0 -219
  395. package/lib/export/style/style.min.css +0 -1
  396. package/lib/filter/index.d.ts +0 -4
  397. package/lib/filter/index.js +0 -21
  398. package/lib/filter/index.min.js +0 -1
  399. package/lib/filter/src/mixin.js +0 -328
  400. package/lib/filter/src/mixin.min.js +0 -1
  401. package/lib/filter/src/panel.js +0 -215
  402. package/lib/filter/src/panel.min.js +0 -1
  403. package/lib/filter/style/index.js +0 -1
  404. package/lib/filter/style/style.css +0 -166
  405. package/lib/filter/style/style.min.css +0 -1
  406. package/lib/form/index.d.ts +0 -4
  407. package/lib/form/index.js +0 -17
  408. package/lib/form/index.min.js +0 -1
  409. package/lib/form/src/form-config-item.js +0 -194
  410. package/lib/form/src/form-config-item.min.js +0 -1
  411. package/lib/form/src/form-gather.js +0 -36
  412. package/lib/form/src/form-gather.min.js +0 -1
  413. package/lib/form/src/form-item.js +0 -259
  414. package/lib/form/src/form-item.min.js +0 -1
  415. package/lib/form/src/form.js +0 -764
  416. package/lib/form/src/form.min.js +0 -1
  417. package/lib/form/src/render.js +0 -81
  418. package/lib/form/src/render.min.js +0 -1
  419. package/lib/form/src/util.js +0 -148
  420. package/lib/form/src/util.min.js +0 -1
  421. package/lib/form/style/index.js +0 -1
  422. package/lib/form/style/style.css +0 -444
  423. package/lib/form/style/style.min.css +0 -1
  424. package/lib/form-gather/index.d.ts +0 -4
  425. package/lib/form-gather/index.js +0 -17
  426. package/lib/form-gather/index.min.js +0 -1
  427. package/lib/form-gather/style/index.js +0 -1
  428. package/lib/form-gather/style/style.css +0 -26
  429. package/lib/form-item/index.d.ts +0 -4
  430. package/lib/form-item/index.js +0 -17
  431. package/lib/form-item/index.min.js +0 -1
  432. package/lib/form-item/style/index.js +0 -1
  433. package/lib/form-item/style/style.css +0 -26
  434. package/lib/grid/index.d.ts +0 -4
  435. package/lib/icon/index.d.ts +0 -4
  436. package/lib/icon/index.js +0 -17
  437. package/lib/icon/index.min.js +0 -1
  438. package/lib/icon/src/icon.js +0 -32
  439. package/lib/icon/src/icon.min.js +0 -1
  440. package/lib/icon/style/iconfont.1725243866550.ttf +0 -0
  441. package/lib/icon/style/iconfont.1725243866550.woff +0 -0
  442. package/lib/icon/style/iconfont.1725243866550.woff2 +0 -0
  443. package/lib/icon/style/index.js +0 -1
  444. package/lib/icon/style/style.css +0 -1550
  445. package/lib/icon/style/style.min.css +0 -1550
  446. package/lib/iconfont.1725243866550.ttf +0 -0
  447. package/lib/iconfont.1725243866550.woff +0 -0
  448. package/lib/iconfont.1725243866550.woff2 +0 -0
  449. package/lib/index.common.min.js +0 -1
  450. package/lib/index.css +0 -1
  451. package/lib/input/index.d.ts +0 -4
  452. package/lib/input/index.js +0 -17
  453. package/lib/input/index.min.js +0 -1
  454. package/lib/input/src/date.js +0 -44
  455. package/lib/input/src/date.min.js +0 -1
  456. package/lib/input/src/input.js +0 -2481
  457. package/lib/input/src/input.min.js +0 -1
  458. package/lib/input/src/number.js +0 -18
  459. package/lib/input/src/number.min.js +0 -1
  460. package/lib/input/style/index.js +0 -1
  461. package/lib/input/style/style.css +0 -1039
  462. package/lib/input/style/style.min.css +0 -1
  463. package/lib/keyboard/index.d.ts +0 -4
  464. package/lib/keyboard/index.js +0 -18
  465. package/lib/keyboard/index.min.js +0 -1
  466. package/lib/keyboard/src/mixin.js +0 -413
  467. package/lib/keyboard/src/mixin.min.js +0 -1
  468. package/lib/keyboard/style/index.js +0 -1
  469. package/lib/keyboard/style/style.css +0 -26
  470. package/lib/list/index.d.ts +0 -4
  471. package/lib/list/index.js +0 -17
  472. package/lib/list/index.min.js +0 -1
  473. package/lib/list/src/list.js +0 -356
  474. package/lib/list/src/list.min.js +0 -1
  475. package/lib/list/style/index.js +0 -1
  476. package/lib/list/style/style.css +0 -52
  477. package/lib/list/style/style.min.css +0 -1
  478. package/lib/loading/index.d.ts +0 -4
  479. package/lib/loading/index.js +0 -17
  480. package/lib/loading/index.min.js +0 -1
  481. package/lib/loading/src/loading.js +0 -46
  482. package/lib/loading/src/loading.min.js +0 -1
  483. package/lib/loading/style/index.js +0 -1
  484. package/lib/loading/style/style.css +0 -104
  485. package/lib/loading/style/style.min.css +0 -1
  486. package/lib/locale/lang/language.d.ts +0 -5
  487. package/lib/menu/index.d.ts +0 -4
  488. package/lib/menu/index.js +0 -21
  489. package/lib/menu/index.min.js +0 -1
  490. package/lib/menu/src/mixin.js +0 -331
  491. package/lib/menu/src/mixin.min.js +0 -1
  492. package/lib/menu/src/panel.js +0 -117
  493. package/lib/menu/src/panel.min.js +0 -1
  494. package/lib/menu/style/index.js +0 -1
  495. package/lib/menu/style/style.css +0 -126
  496. package/lib/menu/style/style.min.css +0 -1
  497. package/lib/mixins/size.js +0 -15
  498. package/lib/mixins/size.min.js +0 -1
  499. package/lib/modal/index.d.ts +0 -4
  500. package/lib/modal/index.js +0 -131
  501. package/lib/modal/index.min.js +0 -1
  502. package/lib/modal/src/modal.js +0 -1114
  503. package/lib/modal/src/modal.min.js +0 -1
  504. package/lib/modal/style/index.js +0 -1
  505. package/lib/modal/style/style.css +0 -354
  506. package/lib/modal/style/style.min.css +0 -1
  507. package/lib/optgroup/index.d.ts +0 -4
  508. package/lib/optgroup/index.js +0 -17
  509. package/lib/optgroup/index.min.js +0 -1
  510. package/lib/optgroup/style/index.js +0 -1
  511. package/lib/optgroup/style/style.css +0 -26
  512. package/lib/option/index.d.ts +0 -4
  513. package/lib/option/index.js +0 -17
  514. package/lib/option/index.min.js +0 -1
  515. package/lib/option/style/index.js +0 -1
  516. package/lib/option/style/style.css +0 -26
  517. package/lib/pager/index.d.ts +0 -4
  518. package/lib/pager/index.js +0 -17
  519. package/lib/pager/index.min.js +0 -1
  520. package/lib/pager/src/pager.js +0 -550
  521. package/lib/pager/src/pager.min.js +0 -1
  522. package/lib/pager/style/index.js +0 -1
  523. package/lib/pager/style/style.css +0 -329
  524. package/lib/pager/style/style.min.css +0 -1
  525. package/lib/pulldown/index.d.ts +0 -4
  526. package/lib/pulldown/index.js +0 -17
  527. package/lib/pulldown/index.min.js +0 -1
  528. package/lib/pulldown/src/pulldown.js +0 -316
  529. package/lib/pulldown/src/pulldown.min.js +0 -1
  530. package/lib/pulldown/style/index.js +0 -1
  531. package/lib/pulldown/style/style.css +0 -85
  532. package/lib/pulldown/style/style.min.css +0 -1
  533. package/lib/radio/index.d.ts +0 -4
  534. package/lib/radio/index.js +0 -17
  535. package/lib/radio/index.min.js +0 -1
  536. package/lib/radio/src/button.js +0 -128
  537. package/lib/radio/src/button.min.js +0 -1
  538. package/lib/radio/src/group.js +0 -97
  539. package/lib/radio/src/group.min.js +0 -1
  540. package/lib/radio/src/radio.js +0 -133
  541. package/lib/radio/src/radio.min.js +0 -1
  542. package/lib/radio/style/index.js +0 -1
  543. package/lib/radio/style/style.css +0 -328
  544. package/lib/radio/style/style.min.css +0 -1
  545. package/lib/radio-button/index.d.ts +0 -4
  546. package/lib/radio-button/index.js +0 -17
  547. package/lib/radio-button/index.min.js +0 -1
  548. package/lib/radio-button/style/index.js +0 -1
  549. package/lib/radio-button/style/style.css +0 -26
  550. package/lib/radio-group/index.d.ts +0 -4
  551. package/lib/radio-group/index.js +0 -17
  552. package/lib/radio-group/index.min.js +0 -1
  553. package/lib/radio-group/style/index.js +0 -1
  554. package/lib/radio-group/style/style.css +0 -26
  555. package/lib/select/index.d.ts +0 -4
  556. package/lib/select/index.js +0 -23
  557. package/lib/select/index.min.js +0 -1
  558. package/lib/select/src/optgroup.js +0 -57
  559. package/lib/select/src/optgroup.min.js +0 -1
  560. package/lib/select/src/option.js +0 -51
  561. package/lib/select/src/option.min.js +0 -1
  562. package/lib/select/src/select.js +0 -1068
  563. package/lib/select/src/select.min.js +0 -1
  564. package/lib/select/src/util.js +0 -74
  565. package/lib/select/src/util.min.js +0 -1
  566. package/lib/select/style/index.js +0 -1
  567. package/lib/select/style/style.css +0 -229
  568. package/lib/select/style/style.min.css +0 -1
  569. package/lib/switch/index.d.ts +0 -4
  570. package/lib/switch/index.js +0 -17
  571. package/lib/switch/index.min.js +0 -1
  572. package/lib/switch/src/switch.js +0 -161
  573. package/lib/switch/src/switch.min.js +0 -1
  574. package/lib/switch/style/index.js +0 -1
  575. package/lib/switch/style/style.css +0 -134
  576. package/lib/switch/style/style.min.css +0 -1
  577. package/lib/table/index.d.ts +0 -4
  578. package/lib/textarea/index.d.ts +0 -4
  579. package/lib/textarea/index.js +0 -17
  580. package/lib/textarea/index.min.js +0 -1
  581. package/lib/textarea/src/textarea.js +0 -282
  582. package/lib/textarea/src/textarea.min.js +0 -1
  583. package/lib/textarea/style/index.js +0 -1
  584. package/lib/textarea/style/style.css +0 -132
  585. package/lib/textarea/style/style.min.css +0 -1
  586. package/lib/toolbar/index.d.ts +0 -4
  587. package/lib/tools/dom.js +0 -196
  588. package/lib/tools/dom.min.js +0 -1
  589. package/lib/tools/event.js +0 -96
  590. package/lib/tools/event.min.js +0 -1
  591. package/lib/tools/log.js +0 -22
  592. package/lib/tools/log.min.js +0 -1
  593. package/lib/tools/resize.js +0 -103
  594. package/lib/tools/resize.min.js +0 -1
  595. package/lib/tools/utils.js +0 -116
  596. package/lib/tools/utils.min.js +0 -1
  597. package/lib/tools/vn.js +0 -14
  598. package/lib/tools/vn.min.js +0 -1
  599. package/lib/tooltip/index.d.ts +0 -4
  600. package/lib/tooltip/index.js +0 -18
  601. package/lib/tooltip/index.min.js +0 -1
  602. package/lib/tooltip/src/tooltip.js +0 -377
  603. package/lib/tooltip/src/tooltip.min.js +0 -1
  604. package/lib/tooltip/style/index.js +0 -1
  605. package/lib/tooltip/style/style.css +0 -130
  606. package/lib/tooltip/style/style.min.css +0 -1
  607. package/lib/ui/index.d.ts +0 -4
  608. package/lib/v-x-e-table/index.d.ts +0 -4
  609. package/lib/v-x-e-table/src/commands.js +0 -74
  610. package/lib/v-x-e-table/src/commands.min.js +0 -1
  611. package/lib/v-x-e-table/src/conf.js +0 -420
  612. package/lib/v-x-e-table/src/conf.min.js +0 -1
  613. package/lib/v-x-e-table/src/formats.js +0 -74
  614. package/lib/v-x-e-table/src/formats.min.js +0 -1
  615. package/lib/v-x-e-table/src/interceptor.js +0 -59
  616. package/lib/v-x-e-table/src/interceptor.min.js +0 -1
  617. package/lib/v-x-e-table/src/menus.js +0 -74
  618. package/lib/v-x-e-table/src/menus.min.js +0 -1
  619. package/lib/v-x-e-table/src/renderer.js +0 -1026
  620. package/lib/v-x-e-table/src/renderer.min.js +0 -1
  621. package/lib/v-x-e-table/src/store.js +0 -62
  622. package/lib/v-x-e-table/src/store.min.js +0 -1
  623. package/lib/v-x-e-table/src/theme.js +0 -25
  624. package/lib/v-x-e-table/src/theme.min.js +0 -1
  625. package/lib/v-x-e-table/src/validators.js +0 -14
  626. package/lib/v-x-e-table/src/validators.min.js +0 -1
  627. package/lib/validator/index.d.ts +0 -4
  628. package/lib/validator/index.js +0 -18
  629. package/lib/validator/index.min.js +0 -1
  630. package/lib/validator/src/mixin.js +0 -545
  631. package/lib/validator/src/mixin.min.js +0 -1
  632. package/lib/validator/style/index.js +0 -1
  633. package/lib/validator/style/style.css +0 -26
  634. package/lib/vxe-button/index.d.ts +0 -4
  635. package/lib/vxe-button/index.js +0 -23
  636. package/lib/vxe-button/index.min.js +0 -1
  637. package/lib/vxe-button/style/index.js +0 -1
  638. package/lib/vxe-button/style/style.css +0 -571
  639. package/lib/vxe-button/style/style.min.css +0 -1
  640. package/lib/vxe-button-group/index.d.ts +0 -4
  641. package/lib/vxe-button-group/index.js +0 -23
  642. package/lib/vxe-button-group/index.min.js +0 -1
  643. package/lib/vxe-button-group/style/index.js +0 -1
  644. package/lib/vxe-button-group/style/style.css +0 -29
  645. package/lib/vxe-button-group/style/style.min.css +0 -1
  646. package/lib/vxe-checkbox/index.d.ts +0 -4
  647. package/lib/vxe-checkbox/index.js +0 -23
  648. package/lib/vxe-checkbox/index.min.js +0 -1
  649. package/lib/vxe-checkbox/style/index.js +0 -1
  650. package/lib/vxe-checkbox/style/style.css +0 -292
  651. package/lib/vxe-checkbox/style/style.min.css +0 -1
  652. package/lib/vxe-checkbox-group/index.d.ts +0 -4
  653. package/lib/vxe-checkbox-group/index.js +0 -23
  654. package/lib/vxe-checkbox-group/index.min.js +0 -1
  655. package/lib/vxe-checkbox-group/style/index.js +0 -1
  656. package/lib/vxe-checkbox-group/style/style.css +0 -26
  657. package/lib/vxe-colgroup/index.d.ts +0 -4
  658. package/lib/vxe-column/index.d.ts +0 -4
  659. package/lib/vxe-form/index.d.ts +0 -4
  660. package/lib/vxe-form/index.js +0 -23
  661. package/lib/vxe-form/index.min.js +0 -1
  662. package/lib/vxe-form/style/index.js +0 -1
  663. package/lib/vxe-form/style/style.css +0 -444
  664. package/lib/vxe-form/style/style.min.css +0 -1
  665. package/lib/vxe-form-gather/index.d.ts +0 -4
  666. package/lib/vxe-form-gather/index.js +0 -23
  667. package/lib/vxe-form-gather/index.min.js +0 -1
  668. package/lib/vxe-form-gather/style/index.js +0 -1
  669. package/lib/vxe-form-gather/style/style.css +0 -26
  670. package/lib/vxe-form-item/index.d.ts +0 -4
  671. package/lib/vxe-form-item/index.js +0 -23
  672. package/lib/vxe-form-item/index.min.js +0 -1
  673. package/lib/vxe-form-item/style/index.js +0 -1
  674. package/lib/vxe-form-item/style/style.css +0 -26
  675. package/lib/vxe-grid/index.d.ts +0 -4
  676. package/lib/vxe-icon/index.d.ts +0 -4
  677. package/lib/vxe-icon/index.js +0 -23
  678. package/lib/vxe-icon/index.min.js +0 -1
  679. package/lib/vxe-icon/style/index.js +0 -1
  680. package/lib/vxe-icon/style/style.css +0 -1550
  681. package/lib/vxe-icon/style/style.min.css +0 -1
  682. package/lib/vxe-input/index.d.ts +0 -4
  683. package/lib/vxe-input/index.js +0 -23
  684. package/lib/vxe-input/index.min.js +0 -1
  685. package/lib/vxe-input/style/index.js +0 -1
  686. package/lib/vxe-input/style/style.css +0 -1039
  687. package/lib/vxe-input/style/style.min.css +0 -1
  688. package/lib/vxe-list/index.d.ts +0 -4
  689. package/lib/vxe-list/index.js +0 -23
  690. package/lib/vxe-list/index.min.js +0 -1
  691. package/lib/vxe-list/style/index.js +0 -1
  692. package/lib/vxe-list/style/style.css +0 -52
  693. package/lib/vxe-list/style/style.min.css +0 -1
  694. package/lib/vxe-loading/index.d.ts +0 -4
  695. package/lib/vxe-loading/index.js +0 -23
  696. package/lib/vxe-loading/index.min.js +0 -1
  697. package/lib/vxe-loading/style/index.js +0 -1
  698. package/lib/vxe-loading/style/style.css +0 -104
  699. package/lib/vxe-loading/style/style.min.css +0 -1
  700. package/lib/vxe-modal/index.d.ts +0 -4
  701. package/lib/vxe-modal/index.js +0 -23
  702. package/lib/vxe-modal/index.min.js +0 -1
  703. package/lib/vxe-modal/style/index.js +0 -1
  704. package/lib/vxe-modal/style/style.css +0 -354
  705. package/lib/vxe-modal/style/style.min.css +0 -1
  706. package/lib/vxe-optgroup/index.d.ts +0 -4
  707. package/lib/vxe-optgroup/index.js +0 -23
  708. package/lib/vxe-optgroup/index.min.js +0 -1
  709. package/lib/vxe-optgroup/style/index.js +0 -1
  710. package/lib/vxe-optgroup/style/style.css +0 -26
  711. package/lib/vxe-option/index.d.ts +0 -4
  712. package/lib/vxe-option/index.js +0 -23
  713. package/lib/vxe-option/index.min.js +0 -1
  714. package/lib/vxe-option/style/index.js +0 -1
  715. package/lib/vxe-option/style/style.css +0 -26
  716. package/lib/vxe-pager/index.d.ts +0 -4
  717. package/lib/vxe-pager/index.js +0 -23
  718. package/lib/vxe-pager/index.min.js +0 -1
  719. package/lib/vxe-pager/style/index.js +0 -1
  720. package/lib/vxe-pager/style/style.css +0 -329
  721. package/lib/vxe-pager/style/style.min.css +0 -1
  722. package/lib/vxe-pulldown/index.d.ts +0 -4
  723. package/lib/vxe-pulldown/index.js +0 -23
  724. package/lib/vxe-pulldown/index.min.js +0 -1
  725. package/lib/vxe-pulldown/style/index.js +0 -1
  726. package/lib/vxe-pulldown/style/style.css +0 -85
  727. package/lib/vxe-pulldown/style/style.min.css +0 -1
  728. package/lib/vxe-radio/index.d.ts +0 -4
  729. package/lib/vxe-radio/index.js +0 -23
  730. package/lib/vxe-radio/index.min.js +0 -1
  731. package/lib/vxe-radio/style/index.js +0 -1
  732. package/lib/vxe-radio/style/style.css +0 -328
  733. package/lib/vxe-radio/style/style.min.css +0 -1
  734. package/lib/vxe-radio-button/index.d.ts +0 -4
  735. package/lib/vxe-radio-button/index.js +0 -23
  736. package/lib/vxe-radio-button/index.min.js +0 -1
  737. package/lib/vxe-radio-button/style/index.js +0 -1
  738. package/lib/vxe-radio-button/style/style.css +0 -26
  739. package/lib/vxe-radio-group/index.d.ts +0 -4
  740. package/lib/vxe-radio-group/index.js +0 -23
  741. package/lib/vxe-radio-group/index.min.js +0 -1
  742. package/lib/vxe-radio-group/style/index.js +0 -1
  743. package/lib/vxe-radio-group/style/style.css +0 -26
  744. package/lib/vxe-select/index.d.ts +0 -4
  745. package/lib/vxe-select/index.js +0 -23
  746. package/lib/vxe-select/index.min.js +0 -1
  747. package/lib/vxe-select/style/index.js +0 -1
  748. package/lib/vxe-select/style/style.css +0 -229
  749. package/lib/vxe-select/style/style.min.css +0 -1
  750. package/lib/vxe-switch/index.d.ts +0 -4
  751. package/lib/vxe-switch/index.js +0 -23
  752. package/lib/vxe-switch/index.min.js +0 -1
  753. package/lib/vxe-switch/style/index.js +0 -1
  754. package/lib/vxe-switch/style/style.css +0 -134
  755. package/lib/vxe-switch/style/style.min.css +0 -1
  756. package/lib/vxe-table/index.d.ts +0 -4
  757. package/lib/vxe-table-custom-module/index.d.ts +0 -4
  758. package/lib/vxe-table-custom-module/index.js +0 -23
  759. package/lib/vxe-table-custom-module/index.min.js +0 -1
  760. package/lib/vxe-table-custom-module/style/index.js +0 -1
  761. package/lib/vxe-table-custom-module/style/style.css +0 -629
  762. package/lib/vxe-table-custom-module/style/style.min.css +0 -1
  763. package/lib/vxe-table-edit-module/index.d.ts +0 -4
  764. package/lib/vxe-table-edit-module/index.js +0 -23
  765. package/lib/vxe-table-edit-module/index.min.js +0 -1
  766. package/lib/vxe-table-edit-module/style/index.js +0 -1
  767. package/lib/vxe-table-edit-module/style/style.css +0 -26
  768. package/lib/vxe-table-export-module/index.d.ts +0 -4
  769. package/lib/vxe-table-export-module/index.js +0 -23
  770. package/lib/vxe-table-export-module/index.min.js +0 -1
  771. package/lib/vxe-table-export-module/style/index.js +0 -1
  772. package/lib/vxe-table-export-module/style/style.css +0 -219
  773. package/lib/vxe-table-export-module/style/style.min.css +0 -1
  774. package/lib/vxe-table-filter-module/index.d.ts +0 -4
  775. package/lib/vxe-table-filter-module/index.js +0 -23
  776. package/lib/vxe-table-filter-module/index.min.js +0 -1
  777. package/lib/vxe-table-filter-module/style/index.js +0 -1
  778. package/lib/vxe-table-filter-module/style/style.css +0 -166
  779. package/lib/vxe-table-filter-module/style/style.min.css +0 -1
  780. package/lib/vxe-table-keyboard-module/index.d.ts +0 -4
  781. package/lib/vxe-table-keyboard-module/index.js +0 -23
  782. package/lib/vxe-table-keyboard-module/index.min.js +0 -1
  783. package/lib/vxe-table-keyboard-module/style/index.js +0 -1
  784. package/lib/vxe-table-keyboard-module/style/style.css +0 -26
  785. package/lib/vxe-table-menu-module/index.d.ts +0 -4
  786. package/lib/vxe-table-menu-module/index.js +0 -23
  787. package/lib/vxe-table-menu-module/index.min.js +0 -1
  788. package/lib/vxe-table-menu-module/style/index.js +0 -1
  789. package/lib/vxe-table-menu-module/style/style.css +0 -126
  790. package/lib/vxe-table-menu-module/style/style.min.css +0 -1
  791. package/lib/vxe-table-validator-module/index.d.ts +0 -4
  792. package/lib/vxe-table-validator-module/index.js +0 -23
  793. package/lib/vxe-table-validator-module/index.min.js +0 -1
  794. package/lib/vxe-table-validator-module/style/index.js +0 -1
  795. package/lib/vxe-table-validator-module/style/style.css +0 -26
  796. package/lib/vxe-textarea/index.d.ts +0 -4
  797. package/lib/vxe-textarea/index.js +0 -23
  798. package/lib/vxe-textarea/index.min.js +0 -1
  799. package/lib/vxe-textarea/style/index.js +0 -1
  800. package/lib/vxe-textarea/style/style.css +0 -132
  801. package/lib/vxe-textarea/style/style.min.css +0 -1
  802. package/lib/vxe-toolbar/index.d.ts +0 -4
  803. package/lib/vxe-tooltip/index.d.ts +0 -4
  804. package/lib/vxe-tooltip/index.js +0 -23
  805. package/lib/vxe-tooltip/index.min.js +0 -1
  806. package/lib/vxe-tooltip/style/index.js +0 -1
  807. package/lib/vxe-tooltip/style/style.css +0 -130
  808. package/lib/vxe-tooltip/style/style.min.css +0 -1
  809. package/packages/all.js +0 -136
  810. package/packages/button/index.d.ts +0 -4
  811. package/packages/button/index.js +0 -13
  812. package/packages/button/src/button.js +0 -460
  813. package/packages/button/src/group.js +0 -41
  814. package/packages/button-group/index.d.ts +0 -4
  815. package/packages/button-group/index.js +0 -13
  816. package/packages/checkbox/index.d.ts +0 -4
  817. package/packages/checkbox/index.js +0 -13
  818. package/packages/checkbox/src/checkbox.js +0 -108
  819. package/packages/checkbox/src/group.js +0 -86
  820. package/packages/checkbox-group/index.d.ts +0 -4
  821. package/packages/checkbox-group/index.js +0 -13
  822. package/packages/colgroup/index.d.ts +0 -4
  823. package/packages/colgroup/index.js +0 -15
  824. package/packages/column/index.d.ts +0 -4
  825. package/packages/column/index.js +0 -15
  826. package/packages/custom/index.d.ts +0 -4
  827. package/packages/custom/index.js +0 -17
  828. package/packages/custom/src/mixin.js +0 -87
  829. package/packages/custom/src/panel.js +0 -930
  830. package/packages/edit/index.d.ts +0 -4
  831. package/packages/edit/index.js +0 -14
  832. package/packages/edit/src/mixin.js +0 -796
  833. package/packages/export/index.d.ts +0 -4
  834. package/packages/export/index.js +0 -42
  835. package/packages/export/src/export-panel.js +0 -444
  836. package/packages/export/src/import-panel.js +0 -184
  837. package/packages/export/src/mixin.js +0 -1529
  838. package/packages/filter/index.d.ts +0 -4
  839. package/packages/filter/index.js +0 -17
  840. package/packages/filter/src/mixin.js +0 -271
  841. package/packages/filter/src/panel.js +0 -210
  842. package/packages/form/index.d.ts +0 -4
  843. package/packages/form/index.js +0 -13
  844. package/packages/form/src/form-config-item.js +0 -182
  845. package/packages/form/src/form-gather.js +0 -21
  846. package/packages/form/src/form-item.js +0 -246
  847. package/packages/form/src/form.js +0 -621
  848. package/packages/form/src/render.js +0 -81
  849. package/packages/form/src/util.js +0 -117
  850. package/packages/form-gather/index.d.ts +0 -4
  851. package/packages/form-gather/index.js +0 -13
  852. package/packages/form-item/index.d.ts +0 -4
  853. package/packages/form-item/index.js +0 -13
  854. package/packages/grid/index.d.ts +0 -4
  855. package/packages/grid/index.js +0 -15
  856. package/packages/grid/src/grid.js +0 -1118
  857. package/packages/icon/index.d.ts +0 -4
  858. package/packages/icon/index.js +0 -13
  859. package/packages/icon/src/icon.js +0 -22
  860. package/packages/index.common.js +0 -4
  861. package/packages/input/index.d.ts +0 -4
  862. package/packages/input/index.js +0 -13
  863. package/packages/input/src/date.js +0 -38
  864. package/packages/input/src/input.js +0 -2171
  865. package/packages/input/src/number.js +0 -12
  866. package/packages/keyboard/index.d.ts +0 -4
  867. package/packages/keyboard/index.js +0 -14
  868. package/packages/keyboard/src/mixin.js +0 -355
  869. package/packages/list/index.d.ts +0 -4
  870. package/packages/list/index.js +0 -13
  871. package/packages/list/src/list.js +0 -294
  872. package/packages/loading/index.d.ts +0 -4
  873. package/packages/loading/index.js +0 -13
  874. package/packages/loading/src/loading.js +0 -45
  875. package/packages/locale/lang/en-US.d.ts +0 -8
  876. package/packages/locale/lang/en-US.js +0 -670
  877. package/packages/locale/lang/es-ES.d.ts +0 -8
  878. package/packages/locale/lang/es-ES.js +0 -670
  879. package/packages/locale/lang/ja-JP.d.ts +0 -8
  880. package/packages/locale/lang/ja-JP.js +0 -670
  881. package/packages/locale/lang/language.d.ts +0 -5
  882. package/packages/locale/lang/pt-BR.d.ts +0 -8
  883. package/packages/locale/lang/pt-BR.js +0 -670
  884. package/packages/locale/lang/zh-CN.d.ts +0 -8
  885. package/packages/locale/lang/zh-CN.js +0 -670
  886. package/packages/locale/lang/zh-HK.d.ts +0 -8
  887. package/packages/locale/lang/zh-MO.d.ts +0 -8
  888. package/packages/locale/lang/zh-TC.d.ts +0 -8
  889. package/packages/locale/lang/zh-TC.js +0 -670
  890. package/packages/locale/lang/zh-TW.d.ts +0 -8
  891. package/packages/menu/index.d.ts +0 -4
  892. package/packages/menu/index.js +0 -17
  893. package/packages/menu/src/mixin.js +0 -270
  894. package/packages/menu/src/panel.js +0 -130
  895. package/packages/mixins/size.js +0 -8
  896. package/packages/modal/index.d.ts +0 -4
  897. package/packages/modal/index.js +0 -116
  898. package/packages/modal/src/modal.js +0 -822
  899. package/packages/optgroup/index.d.ts +0 -4
  900. package/packages/optgroup/index.js +0 -13
  901. package/packages/option/index.d.ts +0 -4
  902. package/packages/option/index.js +0 -13
  903. package/packages/pager/index.d.ts +0 -4
  904. package/packages/pager/index.js +0 -13
  905. package/packages/pager/src/pager.js +0 -477
  906. package/packages/pulldown/index.d.ts +0 -4
  907. package/packages/pulldown/index.js +0 -13
  908. package/packages/pulldown/src/pulldown.js +0 -273
  909. package/packages/radio/index.d.ts +0 -4
  910. package/packages/radio/index.js +0 -13
  911. package/packages/radio/src/button.js +0 -102
  912. package/packages/radio/src/group.js +0 -76
  913. package/packages/radio/src/radio.js +0 -109
  914. package/packages/radio-button/index.d.ts +0 -4
  915. package/packages/radio-button/index.js +0 -13
  916. package/packages/radio-group/index.d.ts +0 -4
  917. package/packages/radio-group/index.js +0 -13
  918. package/packages/select/index.d.ts +0 -4
  919. package/packages/select/index.js +0 -19
  920. package/packages/select/src/optgroup.js +0 -48
  921. package/packages/select/src/option.js +0 -42
  922. package/packages/select/src/select.js +0 -921
  923. package/packages/select/src/util.js +0 -52
  924. package/packages/switch/index.d.ts +0 -4
  925. package/packages/switch/index.js +0 -13
  926. package/packages/switch/src/switch.js +0 -138
  927. package/packages/table/index.d.ts +0 -4
  928. package/packages/table/index.js +0 -35
  929. package/packages/table/src/body.js +0 -826
  930. package/packages/table/src/cell.js +0 -843
  931. package/packages/table/src/column.js +0 -141
  932. package/packages/table/src/columnInfo.js +0 -168
  933. package/packages/table/src/footer.js +0 -293
  934. package/packages/table/src/header.js +0 -295
  935. package/packages/table/src/methods.js +0 -5532
  936. package/packages/table/src/table.js +0 -1297
  937. package/packages/table/src/util.js +0 -364
  938. package/packages/textarea/index.d.ts +0 -4
  939. package/packages/textarea/index.js +0 -13
  940. package/packages/textarea/src/textarea.js +0 -224
  941. package/packages/toolbar/index.d.ts +0 -4
  942. package/packages/toolbar/index.js +0 -13
  943. package/packages/toolbar/src/toolbar.js +0 -467
  944. package/packages/tools/dom.js +0 -179
  945. package/packages/tools/event.js +0 -82
  946. package/packages/tools/log.js +0 -16
  947. package/packages/tools/resize.js +0 -76
  948. package/packages/tools/utils.js +0 -94
  949. package/packages/tools/vn.js +0 -8
  950. package/packages/tooltip/index.d.ts +0 -4
  951. package/packages/tooltip/index.js +0 -14
  952. package/packages/tooltip/src/tooltip.js +0 -301
  953. package/packages/ui/index.d.ts +0 -4
  954. package/packages/ui/index.js +0 -4
  955. package/packages/v-x-e-table/index.d.ts +0 -4
  956. package/packages/v-x-e-table/index.js +0 -201
  957. package/packages/v-x-e-table/src/commands.js +0 -55
  958. package/packages/v-x-e-table/src/conf.js +0 -420
  959. package/packages/v-x-e-table/src/formats.js +0 -55
  960. package/packages/v-x-e-table/src/interceptor.js +0 -53
  961. package/packages/v-x-e-table/src/menus.js +0 -55
  962. package/packages/v-x-e-table/src/renderer.js +0 -951
  963. package/packages/v-x-e-table/src/store.js +0 -44
  964. package/packages/v-x-e-table/src/theme.js +0 -19
  965. package/packages/v-x-e-table/src/validators.js +0 -7
  966. package/packages/validator/index.d.ts +0 -4
  967. package/packages/validator/index.js +0 -14
  968. package/packages/validator/src/mixin.js +0 -473
  969. package/styles/base/common.scss +0 -88
  970. package/styles/button-group.scss +0 -5
  971. package/styles/button.scss +0 -374
  972. package/styles/checkbox-group.scss +0 -1
  973. package/styles/checkbox.scss +0 -91
  974. package/styles/colgroup.scss +0 -1
  975. package/styles/column.scss +0 -1
  976. package/styles/css-variable.scss +0 -272
  977. package/styles/custom.scss +0 -386
  978. package/styles/edit.scss +0 -1
  979. package/styles/export.scss +0 -126
  980. package/styles/filter.scss +0 -113
  981. package/styles/footer.scss +0 -1
  982. package/styles/form-gather.scss +0 -1
  983. package/styles/form-item.scss +0 -1
  984. package/styles/form.scss +0 -366
  985. package/styles/grid.scss +0 -64
  986. package/styles/header.scss +0 -1
  987. package/styles/icon.scss +0 -972
  988. package/styles/input.scss +0 -917
  989. package/styles/keyboard.scss +0 -1
  990. package/styles/list.scss +0 -28
  991. package/styles/loading.scss +0 -87
  992. package/styles/menu.scss +0 -89
  993. package/styles/modal.scss +0 -387
  994. package/styles/old-icon.scss +0 -722
  995. package/styles/optgroup.scss +0 -1
  996. package/styles/option.scss +0 -1
  997. package/styles/pager.scss +0 -270
  998. package/styles/pulldown.scss +0 -58
  999. package/styles/radio-button.scss +0 -1
  1000. package/styles/radio-group.scss +0 -1
  1001. package/styles/radio.scss +0 -147
  1002. package/styles/select.scss +0 -228
  1003. package/styles/switch.scss +0 -125
  1004. package/styles/table.scss +0 -1477
  1005. package/styles/textarea.scss +0 -105
  1006. package/styles/toolbar.scss +0 -103
  1007. package/styles/tooltip.scss +0 -127
  1008. package/styles/v-x-e-table.scss +0 -3
  1009. package/styles/validator.scss +0 -1
  1010. package/styles/vxe-table.scss +0 -1
  1011. package/types/button-group.d.ts +0 -11
  1012. package/types/button.d.ts +0 -49
  1013. package/types/checkbox-group.d.ts +0 -17
  1014. package/types/checkbox.d.ts +0 -33
  1015. package/types/colgroup.d.ts +0 -155
  1016. package/types/column.d.ts +0 -489
  1017. package/types/component.d.ts +0 -29
  1018. package/types/form-gather.d.ts +0 -13
  1019. package/types/form-item.d.ts +0 -217
  1020. package/types/form.d.ts +0 -149
  1021. package/types/grid.d.ts +0 -169
  1022. package/types/icon.d.ts +0 -7
  1023. package/types/input.d.ts +0 -163
  1024. package/types/list.d.ts +0 -71
  1025. package/types/loading.d.ts +0 -10
  1026. package/types/modal.d.ts +0 -329
  1027. package/types/module/custom.d.ts +0 -11
  1028. package/types/module/edit.d.ts +0 -67
  1029. package/types/module/export.d.ts +0 -255
  1030. package/types/module/filter.d.ts +0 -133
  1031. package/types/module/index.d.ts +0 -7
  1032. package/types/module/keyboard.d.ts +0 -11
  1033. package/types/module/menu.d.ts +0 -85
  1034. package/types/module/validator.d.ts +0 -77
  1035. package/types/optgroup.d.ts +0 -20
  1036. package/types/option.d.ts +0 -24
  1037. package/types/pager.d.ts +0 -123
  1038. package/types/pulldown.d.ts +0 -44
  1039. package/types/radio-button.d.ts +0 -20
  1040. package/types/radio-group.d.ts +0 -16
  1041. package/types/radio.d.ts +0 -32
  1042. package/types/select.d.ts +0 -66
  1043. package/types/switch.d.ts +0 -22
  1044. package/types/table.d.ts +0 -1662
  1045. package/types/textarea.d.ts +0 -65
  1046. package/types/toolbar.d.ts +0 -191
  1047. package/types/tooltip.d.ts +0 -40
  1048. package/types/v-x-e-table/commands.d.ts +0 -29
  1049. package/types/v-x-e-table/formats.d.ts +0 -28
  1050. package/types/v-x-e-table/index.d.ts +0 -229
  1051. package/types/v-x-e-table/interceptor.d.ts +0 -46
  1052. package/types/v-x-e-table/menus.d.ts +0 -24
  1053. package/types/v-x-e-table/renderer.d.ts +0 -355
  1054. package/types/v-x-e-table/validators.d.ts +0 -30
  1055. /package/{lib/checkbox-group/style/style.min.css → es/colgroup/style.css} +0 -0
  1056. /package/{lib/edit/style → es/colgroup}/style.min.css +0 -0
  1057. /package/{lib/form-gather/style/style.min.css → es/column/style.css} +0 -0
  1058. /package/{lib/form-item/style → es/column}/style.min.css +0 -0
  1059. /package/{lib/keyboard/style/style.min.css → es/ui/style.css} +0 -0
  1060. /package/{lib/optgroup/style → es/ui}/style.min.css +0 -0
  1061. /package/{lib/option/style/style.min.css → es/v-x-e-table/style.css} +0 -0
  1062. /package/{lib/radio-button/style → es/v-x-e-table}/style.min.css +0 -0
  1063. /package/{lib/radio-group/style/style.min.css → es/vxe-colgroup/style.css} +0 -0
  1064. /package/{lib/validator/style → es/vxe-colgroup}/style.min.css +0 -0
  1065. /package/{lib/vxe-checkbox-group/style/style.min.css → es/vxe-column/style.css} +0 -0
  1066. /package/{lib/vxe-form-gather/style → es/vxe-column}/style.min.css +0 -0
  1067. /package/{lib/vxe-form-item/style/style.min.css → es/vxe-ui/style.css} +0 -0
  1068. /package/{lib/vxe-optgroup/style → es/vxe-ui}/style.min.css +0 -0
  1069. /package/{lib/vxe-option/style/style.min.css → es/vxe-v-x-e-table/style.css} +0 -0
  1070. /package/{lib/vxe-radio-button/style → es/vxe-v-x-e-table}/style.min.css +0 -0
  1071. /package/lib/{button-group → ui}/style/index.js +0 -0
  1072. /package/lib/{vxe-radio-group/style/style.min.css → ui/style/style.css} +0 -0
  1073. /package/lib/{vxe-table-edit-module → ui}/style/style.min.css +0 -0
  1074. /package/lib/{button → vxe-ui}/style/index.js +0 -0
  1075. /package/lib/{vxe-table-keyboard-module/style/style.min.css → vxe-ui/style/style.css} +0 -0
  1076. /package/lib/{vxe-table-validator-module → vxe-ui}/style/style.min.css +0 -0
  1077. /package/lib/{checkbox-group → vxe-v-x-e-table}/style/index.js +0 -0
  1078. /package/packages/locale/lang/{zh-HK.js → zh-HK.ts} +0 -0
  1079. /package/packages/locale/lang/{zh-MO.js → zh-MO.ts} +0 -0
  1080. /package/packages/locale/lang/{zh-TW.js → zh-TW.ts} +0 -0
  1081. /package/packages/table/src/{group.js → group.ts} +0 -0
@@ -1,1068 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- exports.renderOptgroup = renderOptgroup;
8
- exports.renderOption = renderOption;
9
- var _xeUtils = _interopRequireDefault(require("xe-utils"));
10
- var _input = _interopRequireDefault(require("../../input/src/input"));
11
- var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
12
- var _size = _interopRequireDefault(require("../../mixins/size"));
13
- var _utils = _interopRequireWildcard(require("../../tools/utils"));
14
- var _dom = _interopRequireDefault(require("../../tools/dom"));
15
- var _event = require("../../tools/event");
16
- var _vn = require("../../tools/vn");
17
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
21
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
24
- function isOptionVisible(option) {
25
- return option.visible !== false;
26
- }
27
- function getOptUniqueId() {
28
- return _xeUtils.default.uniqueId('opt_');
29
- }
30
- function getOptkey(_vm) {
31
- var optionOpts = _vm.optionOpts;
32
- return optionOpts.keyField || _vm.optionId || '_X_OPTION_KEY';
33
- }
34
- function getOptid(_vm, option) {
35
- var optid = option[getOptkey(_vm)];
36
- return optid ? encodeURIComponent(optid) : '';
37
- }
38
- function findOffsetOption(_vm, optionValue, isUpArrow) {
39
- var isGroup = _vm.isGroup,
40
- visibleOptionList = _vm.visibleOptionList,
41
- visibleGroupList = _vm.visibleGroupList,
42
- valueField = _vm.valueField,
43
- groupOptionsField = _vm.groupOptionsField;
44
- var firstOption;
45
- var prevOption;
46
- var nextOption;
47
- var currOption;
48
- if (isGroup) {
49
- for (var gIndex = 0; gIndex < visibleGroupList.length; gIndex++) {
50
- var group = visibleGroupList[gIndex];
51
- var groupOptionList = group[groupOptionsField];
52
- var isGroupDisabled = group.disabled;
53
- if (groupOptionList) {
54
- for (var index = 0; index < groupOptionList.length; index++) {
55
- var option = groupOptionList[index];
56
- var isVisible = isOptionVisible(option);
57
- var isDisabled = isGroupDisabled || option.disabled;
58
- if (!firstOption && !isDisabled) {
59
- firstOption = option;
60
- }
61
- if (currOption) {
62
- if (isVisible && !isDisabled) {
63
- nextOption = option;
64
- if (!isUpArrow) {
65
- return {
66
- offsetOption: nextOption
67
- };
68
- }
69
- }
70
- }
71
- if (optionValue === option[valueField]) {
72
- currOption = option;
73
- if (isUpArrow) {
74
- return {
75
- offsetOption: prevOption
76
- };
77
- }
78
- } else {
79
- if (isVisible && !isDisabled) {
80
- prevOption = option;
81
- }
82
- }
83
- }
84
- }
85
- }
86
- } else {
87
- for (var _index = 0; _index < visibleOptionList.length; _index++) {
88
- var _option = visibleOptionList[_index];
89
- var _isDisabled = _option.disabled;
90
- if (!firstOption && !_isDisabled) {
91
- firstOption = _option;
92
- }
93
- if (currOption) {
94
- if (!_isDisabled) {
95
- nextOption = _option;
96
- if (!isUpArrow) {
97
- return {
98
- offsetOption: nextOption
99
- };
100
- }
101
- }
102
- }
103
- if (optionValue === _option[valueField]) {
104
- currOption = _option;
105
- if (isUpArrow) {
106
- return {
107
- offsetOption: prevOption
108
- };
109
- }
110
- } else {
111
- if (!_isDisabled) {
112
- prevOption = _option;
113
- }
114
- }
115
- }
116
- }
117
- return {
118
- firstOption: firstOption
119
- };
120
- }
121
- function findOption(_vm, optionValue) {
122
- var isGroup = _vm.isGroup,
123
- fullOptionList = _vm.fullOptionList,
124
- fullGroupList = _vm.fullGroupList,
125
- valueField = _vm.valueField;
126
- if (isGroup) {
127
- for (var gIndex = 0; gIndex < fullGroupList.length; gIndex++) {
128
- var group = fullGroupList[gIndex];
129
- if (group.options) {
130
- for (var index = 0; index < group.options.length; index++) {
131
- var option = group.options[index];
132
- if (optionValue === option[valueField]) {
133
- return option;
134
- }
135
- }
136
- }
137
- }
138
- }
139
- return fullOptionList.find(function (item) {
140
- return optionValue === item[valueField];
141
- });
142
- }
143
- function getRemoteSelectLabel(_vm, value) {
144
- var remoteValueList = _vm.remoteValueList;
145
- var remoteItem = remoteValueList.find(function (item) {
146
- return value === item.key;
147
- });
148
- var item = remoteItem ? remoteItem.result : null;
149
- return _xeUtils.default.toValueString(item ? item[_vm.labelField] : value);
150
- }
151
- function getSelectLabel(_vm, value) {
152
- var item = findOption(_vm, value);
153
- return _xeUtils.default.toValueString(item ? item[_vm.labelField] : value);
154
- }
155
- function checkOptionDisabled(_vm, isSelected, option, group) {
156
- if (option.disabled) {
157
- return true;
158
- }
159
- if (group && group.disabled) {
160
- return true;
161
- }
162
- if (_vm.isMaximize && !isSelected) {
163
- return true;
164
- }
165
- return false;
166
- }
167
- function renderOption(h, _vm, list, group) {
168
- var $scopedSlots = _vm.$scopedSlots,
169
- isGroup = _vm.isGroup,
170
- labelField = _vm.labelField,
171
- valueField = _vm.valueField,
172
- optionKey = _vm.optionKey,
173
- value = _vm.value,
174
- multiple = _vm.multiple,
175
- currentValue = _vm.currentValue,
176
- optionOpts = _vm.optionOpts;
177
- var useKey = optionOpts.useKey;
178
- var optionSlot = $scopedSlots.option;
179
- return list.map(function (option, cIndex) {
180
- var slots = option.slots;
181
- var optionValue = option[valueField];
182
- var isSelected = multiple ? value && value.indexOf(optionValue) > -1 : value === optionValue;
183
- var isVisible = !isGroup || isOptionVisible(option);
184
- var isDisabled = checkOptionDisabled(_vm, isSelected, option, group);
185
- var optid = getOptid(_vm, option);
186
- var defaultSlot = slots ? slots.default : null;
187
- var optParams = {
188
- option: option,
189
- group: null,
190
- $select: _vm
191
- };
192
- return isVisible ? h('div', {
193
- key: useKey || optionKey ? optid : cIndex,
194
- class: ['vxe-select-option', option.className, {
195
- 'is--disabled': isDisabled,
196
- 'is--selected': isSelected,
197
- 'is--hover': currentValue === optionValue
198
- }],
199
- attrs: {
200
- optid: optid
201
- },
202
- on: {
203
- mousedown: _vm.mousedownOptionEvent,
204
- click: function click(evnt) {
205
- if (!isDisabled) {
206
- _vm.changeOptionEvent(evnt, optionValue, option);
207
- }
208
- },
209
- mouseenter: function mouseenter() {
210
- if (!isDisabled) {
211
- _vm.setCurrentOption(option);
212
- }
213
- }
214
- }
215
- }, optionSlot ? _vm.callSlot(optionSlot, optParams, h) : defaultSlot ? _vm.callSlot(defaultSlot, optParams, h) : _utils.default.formatText((0, _utils.getFuncText)(option[labelField]))) : null;
216
- });
217
- }
218
- function renderOptgroup(h, _vm) {
219
- var $scopedSlots = _vm.$scopedSlots,
220
- optionKey = _vm.optionKey,
221
- visibleGroupList = _vm.visibleGroupList,
222
- groupLabelField = _vm.groupLabelField,
223
- groupOptionsField = _vm.groupOptionsField,
224
- optionOpts = _vm.optionOpts;
225
- var useKey = optionOpts.useKey;
226
- var optionSlot = $scopedSlots.option;
227
- return visibleGroupList.map(function (group, gIndex) {
228
- var slots = group.slots;
229
- var optid = getOptid(_vm, group);
230
- var isGroupDisabled = group.disabled;
231
- var defaultSlot = slots ? slots.default : null;
232
- var optParams = {
233
- option: group,
234
- group: group,
235
- $select: _vm
236
- };
237
- return h('div', {
238
- key: useKey || optionKey ? optid : gIndex,
239
- class: ['vxe-optgroup', group.className, {
240
- 'is--disabled': isGroupDisabled
241
- }],
242
- attrs: {
243
- optid: optid
244
- }
245
- }, [h('div', {
246
- class: 'vxe-optgroup--title'
247
- }, optionSlot ? _vm.callSlot(optionSlot, optParams, h) : defaultSlot ? _vm.callSlot(defaultSlot, optParams, h) : (0, _utils.getFuncText)(group[groupLabelField])), h('div', {
248
- class: 'vxe-optgroup--wrapper'
249
- }, renderOption(h, _vm, group[groupOptionsField], group))]);
250
- });
251
- }
252
- function renderOpts(h, _vm) {
253
- var isGroup = _vm.isGroup,
254
- visibleGroupList = _vm.visibleGroupList,
255
- visibleOptionList = _vm.visibleOptionList,
256
- searchLoading = _vm.searchLoading;
257
- if (searchLoading) {
258
- return [h('div', {
259
- class: 'vxe-select--search-loading'
260
- }, [h('i', {
261
- class: ['vxe-select--search-icon', _conf.default.icon.SELECT_LOADED]
262
- }), h('span', {
263
- class: 'vxe-select--search-text'
264
- }, _conf.default.i18n('vxe.select.loadingText'))])];
265
- }
266
- if (isGroup) {
267
- if (visibleGroupList.length) {
268
- return renderOptgroup(h, _vm);
269
- }
270
- } else {
271
- if (visibleOptionList.length) {
272
- return renderOption(h, _vm, visibleOptionList);
273
- }
274
- }
275
- return [h('div', {
276
- class: 'vxe-select--empty-placeholder'
277
- }, _vm.emptyText || _conf.default.i18n('vxe.select.emptyText'))];
278
- }
279
- var _default2 = exports.default = {
280
- name: 'VxeSelect',
281
- mixins: [_size.default],
282
- props: {
283
- value: null,
284
- clearable: Boolean,
285
- placeholder: {
286
- type: String,
287
- default: function _default() {
288
- return _xeUtils.default.eqNull(_conf.default.select.placeholder) ? _conf.default.i18n('vxe.base.pleaseSelect') : _conf.default.select.placeholder;
289
- }
290
- },
291
- loading: Boolean,
292
- disabled: Boolean,
293
- multiple: Boolean,
294
- multiCharOverflow: {
295
- type: [Number, String],
296
- default: function _default() {
297
- return _conf.default.select.multiCharOverflow;
298
- }
299
- },
300
- prefixIcon: String,
301
- placement: String,
302
- options: Array,
303
- optionProps: Object,
304
- optionGroups: Array,
305
- optionGroupProps: Object,
306
- optionConfig: Object,
307
- className: [String, Function],
308
- popupClassName: [String, Function],
309
- max: [String, Number],
310
- size: {
311
- type: String,
312
- default: function _default() {
313
- return _conf.default.select.size || _conf.default.size;
314
- }
315
- },
316
- filterable: Boolean,
317
- filterMethod: Function,
318
- remote: Boolean,
319
- remoteMethod: Function,
320
- emptyText: String,
321
- // 已废弃,被 option-config.keyField 替换
322
- optionId: {
323
- type: String,
324
- default: function _default() {
325
- return _conf.default.select.optionId;
326
- }
327
- },
328
- // 已废弃,被 option-config.useKey 替换
329
- optionKey: Boolean,
330
- transfer: {
331
- type: Boolean,
332
- default: function _default() {
333
- return _conf.default.select.transfer;
334
- }
335
- }
336
- },
337
- components: {
338
- VxeInput: _input.default
339
- },
340
- inject: {
341
- $xeform: {
342
- default: null
343
- },
344
- $xeformiteminfo: {
345
- default: null
346
- }
347
- },
348
- provide: function provide() {
349
- return {
350
- $xeselect: this
351
- };
352
- },
353
- data: function data() {
354
- return {
355
- inited: false,
356
- collectOption: [],
357
- fullGroupList: [],
358
- fullOptionList: [],
359
- visibleGroupList: [],
360
- visibleOptionList: [],
361
- remoteValueList: [],
362
- panelIndex: 0,
363
- panelStyle: null,
364
- panelPlacement: null,
365
- currentOption: null,
366
- currentValue: null,
367
- visiblePanel: false,
368
- animatVisible: false,
369
- isActivated: false,
370
- searchValue: '',
371
- searchLoading: false
372
- };
373
- },
374
- computed: {
375
- propsOpts: function propsOpts() {
376
- return this.optionProps || {};
377
- },
378
- groupPropsOpts: function groupPropsOpts() {
379
- return this.optionGroupProps || {};
380
- },
381
- labelField: function labelField() {
382
- return this.propsOpts.label || 'label';
383
- },
384
- valueField: function valueField() {
385
- return this.propsOpts.value || 'value';
386
- },
387
- groupLabelField: function groupLabelField() {
388
- return this.groupPropsOpts.label || 'label';
389
- },
390
- groupOptionsField: function groupOptionsField() {
391
- return this.groupPropsOpts.options || 'options';
392
- },
393
- optionOpts: function optionOpts() {
394
- return Object.assign({}, _conf.default.select.optionConfig, this.optionConfig);
395
- },
396
- isGroup: function isGroup() {
397
- return this.fullGroupList.some(function (item) {
398
- return item.options && item.options.length;
399
- });
400
- },
401
- multiMaxCharNum: function multiMaxCharNum() {
402
- return _xeUtils.default.toNumber(this.multiCharOverflow);
403
- },
404
- selectLabel: function selectLabel() {
405
- var _this = this;
406
- var value = this.value,
407
- multiple = this.multiple,
408
- remote = this.remote,
409
- multiMaxCharNum = this.multiMaxCharNum;
410
- if (value && multiple) {
411
- var vals = _xeUtils.default.isArray(value) ? value : [value];
412
- if (remote) {
413
- return vals.map(function (val) {
414
- return getRemoteSelectLabel(_this, val);
415
- }).join(', ');
416
- }
417
- return vals.map(function (val) {
418
- var label = getSelectLabel(_this, val);
419
- if (multiMaxCharNum > 0 && label.length > multiMaxCharNum) {
420
- return "".concat(label.substring(0, multiMaxCharNum), "...");
421
- }
422
- return label;
423
- }).join(', ');
424
- }
425
- if (remote) {
426
- return getRemoteSelectLabel(this, value);
427
- }
428
- return getSelectLabel(this, value);
429
- },
430
- isMaximize: function isMaximize() {
431
- var value = this.value,
432
- multiple = this.multiple,
433
- max = this.max;
434
- if (multiple && max) {
435
- return (value ? value.length : 0) >= _xeUtils.default.toNumber(max);
436
- }
437
- return false;
438
- }
439
- },
440
- watch: {
441
- collectOption: function collectOption(value) {
442
- if (value.some(function (item) {
443
- return item.options && item.options.length;
444
- })) {
445
- this.fullOptionList = [];
446
- this.fullGroupList = value;
447
- } else {
448
- this.fullGroupList = [];
449
- this.fullOptionList = value;
450
- }
451
- this.cacheItemMap();
452
- },
453
- options: function options(value) {
454
- this.fullGroupList = [];
455
- this.fullOptionList = value;
456
- this.cacheItemMap();
457
- },
458
- optionGroups: function optionGroups(value) {
459
- this.fullOptionList = [];
460
- this.fullGroupList = value;
461
- this.cacheItemMap();
462
- }
463
- },
464
- created: function created() {
465
- var options = this.options,
466
- optionGroups = this.optionGroups;
467
- if (optionGroups) {
468
- this.fullGroupList = optionGroups;
469
- } else if (options) {
470
- this.fullOptionList = options;
471
- }
472
- this.cacheItemMap();
473
- _event.GlobalEvent.on(this, 'mousewheel', this.handleGlobalMousewheelEvent);
474
- _event.GlobalEvent.on(this, 'mousedown', this.handleGlobalMousedownEvent);
475
- _event.GlobalEvent.on(this, 'keydown', this.handleGlobalKeydownEvent);
476
- _event.GlobalEvent.on(this, 'blur', this.handleGlobalBlurEvent);
477
- },
478
- beforeDestroy: function beforeDestroy() {
479
- var panelElem = this.$refs.panel;
480
- if (panelElem && panelElem.parentNode) {
481
- panelElem.parentNode.removeChild(panelElem);
482
- }
483
- },
484
- destroyed: function destroyed() {
485
- _event.GlobalEvent.off(this, 'mousewheel');
486
- _event.GlobalEvent.off(this, 'mousedown');
487
- _event.GlobalEvent.off(this, 'keydown');
488
- _event.GlobalEvent.off(this, 'blur');
489
- },
490
- render: function render(h) {
491
- var _this2 = this;
492
- var _e = this._e,
493
- $scopedSlots = this.$scopedSlots,
494
- vSize = this.vSize,
495
- className = this.className,
496
- popupClassName = this.popupClassName,
497
- inited = this.inited,
498
- isActivated = this.isActivated,
499
- loading = this.loading,
500
- disabled = this.disabled,
501
- visiblePanel = this.visiblePanel,
502
- filterable = this.filterable;
503
- var defaultSlot = $scopedSlots.default;
504
- var prefixSlot = $scopedSlots.prefix;
505
- var headerSlot = $scopedSlots.header;
506
- var footerSlot = $scopedSlots.footer;
507
- return h('div', {
508
- class: ['vxe-select', className ? _xeUtils.default.isFunction(className) ? className({
509
- $select: this
510
- }) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--visivle', visiblePanel), 'is--disabled', disabled), 'is--filter', filterable), 'is--loading', loading), 'is--active', isActivated)]
511
- }, [h('div', {
512
- class: 'vxe-select-slots',
513
- ref: 'hideOption'
514
- }, defaultSlot ? defaultSlot.call(this, {}) : []), h('vxe-input', {
515
- ref: 'input',
516
- props: {
517
- clearable: this.clearable,
518
- placeholder: this.placeholder,
519
- readonly: true,
520
- disabled: disabled,
521
- type: 'text',
522
- prefixIcon: this.prefixIcon,
523
- suffixIcon: loading ? _conf.default.icon.SELECT_LOADED : visiblePanel ? _conf.default.icon.SELECT_OPEN : _conf.default.icon.SELECT_CLOSE,
524
- value: this.selectLabel
525
- },
526
- on: {
527
- clear: this.clearEvent,
528
- click: this.togglePanelEvent,
529
- focus: this.focusEvent,
530
- blur: this.blurEvent,
531
- 'suffix-click': this.togglePanelEvent
532
- },
533
- scopedSlots: prefixSlot ? {
534
- prefix: function prefix() {
535
- return prefixSlot.call(_this2, {});
536
- }
537
- } : {}
538
- }), h('div', {
539
- ref: 'panel',
540
- class: ['vxe-table--ignore-clear vxe-select--panel', popupClassName ? _xeUtils.default.isFunction(popupClassName) ? popupClassName({
541
- $select: this
542
- }) : popupClassName : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--transfer', this.transfer), 'animat--leave', !loading && this.animatVisible), 'animat--enter', !loading && visiblePanel)],
543
- attrs: {
544
- placement: this.panelPlacement
545
- },
546
- style: this.panelStyle
547
- }, inited ? [filterable ? h('div', {
548
- class: 'vxe-select--panel-search'
549
- }, [h('vxe-input', {
550
- ref: 'inpSearch',
551
- class: 'vxe-select-search--input',
552
- props: {
553
- value: this.searchValue,
554
- type: 'text',
555
- clearable: true,
556
- placeholder: _conf.default.i18n('vxe.select.search'),
557
- prefixIcon: _conf.default.icon.INPUT_SEARCH
558
- },
559
- on: {
560
- modelValue: this.modelSearchEvent,
561
- focus: this.focusSearchEvent,
562
- keydown: this.keydownSearchEvent,
563
- change: this.triggerSearchEvent,
564
- search: this.triggerSearchEvent
565
- }
566
- })]) : _e(), h('div', {
567
- class: 'vxe-select--panel-wrapper'
568
- }, [headerSlot ? h('div', {
569
- class: 'vxe-select--panel-header'
570
- }, headerSlot.call(this, {})) : _e(), h('div', {
571
- class: 'vxe-select--panel-body'
572
- }, [h('div', {
573
- ref: 'optWrapper',
574
- class: 'vxe-select-option--wrapper'
575
- }, renderOpts(h, this))]), footerSlot ? h('div', {
576
- class: 'vxe-select--panel-footer'
577
- }, footerSlot.call(this, {})) : _e()])] : [])]);
578
- },
579
- methods: {
580
- callSlot: function callSlot(slotFunc, params, h) {
581
- if (slotFunc) {
582
- var $scopedSlots = this.$scopedSlots;
583
- if (_xeUtils.default.isString(slotFunc)) {
584
- slotFunc = $scopedSlots[slotFunc] || null;
585
- }
586
- if (_xeUtils.default.isFunction(slotFunc)) {
587
- return (0, _vn.getSlotVNs)(slotFunc.call(this, params, h));
588
- }
589
- }
590
- return [];
591
- },
592
- cacheItemMap: function cacheItemMap() {
593
- var _this3 = this;
594
- var fullOptionList = this.fullOptionList,
595
- fullGroupList = this.fullGroupList,
596
- groupOptionsField = this.groupOptionsField;
597
- var optkey = getOptkey(this);
598
- var handleOptis = function handleOptis(item) {
599
- if (!getOptid(_this3, item)) {
600
- item[optkey] = getOptUniqueId();
601
- }
602
- };
603
- if (fullGroupList.length) {
604
- fullGroupList.forEach(function (group) {
605
- handleOptis(group);
606
- if (group[groupOptionsField]) {
607
- group[groupOptionsField].forEach(handleOptis);
608
- }
609
- });
610
- } else if (fullOptionList.length) {
611
- fullOptionList.forEach(handleOptis);
612
- }
613
- this.refreshOption();
614
- },
615
- /**
616
- * 刷新选项,当选项被搜索、动态显示/隐藏时可能会用到
617
- */
618
- refreshOption: function refreshOption() {
619
- var isGroup = this.isGroup,
620
- fullOptionList = this.fullOptionList,
621
- fullGroupList = this.fullGroupList,
622
- filterable = this.filterable,
623
- filterMethod = this.filterMethod,
624
- searchValue = this.searchValue,
625
- labelField = this.labelField,
626
- groupLabelField = this.groupLabelField;
627
- var searchStr = "".concat(searchValue || '').toLowerCase();
628
- if (isGroup) {
629
- if (filterable && filterMethod) {
630
- this.visibleGroupList = fullGroupList.filter(function (group) {
631
- return isOptionVisible(group) && filterMethod({
632
- group: group,
633
- option: null,
634
- searchValue: searchStr
635
- });
636
- });
637
- } else if (filterable) {
638
- this.visibleGroupList = fullGroupList.filter(function (group) {
639
- return isOptionVisible(group) && (!searchStr || "".concat(group[groupLabelField]).toLowerCase().indexOf(searchStr) > -1);
640
- });
641
- } else {
642
- this.visibleGroupList = fullGroupList.filter(isOptionVisible);
643
- }
644
- } else {
645
- if (filterable && filterMethod) {
646
- this.visibleOptionList = fullOptionList.filter(function (option) {
647
- return isOptionVisible(option) && filterMethod({
648
- group: null,
649
- option: option,
650
- searchValue: searchStr
651
- });
652
- });
653
- } else if (filterable) {
654
- this.visibleOptionList = fullOptionList.filter(function (option) {
655
- return isOptionVisible(option) && (!searchStr || "".concat(option[labelField]).toLowerCase().indexOf(searchStr) > -1);
656
- });
657
- } else {
658
- this.visibleOptionList = fullOptionList.filter(isOptionVisible);
659
- }
660
- }
661
- return this.$nextTick();
662
- },
663
- setCurrentOption: function setCurrentOption(option) {
664
- if (option) {
665
- this.currentOption = option;
666
- this.currentValue = option[this.valueField];
667
- }
668
- },
669
- scrollToOption: function scrollToOption(option, isAlignBottom) {
670
- var _this4 = this;
671
- return this.$nextTick().then(function () {
672
- if (option) {
673
- var $refs = _this4.$refs;
674
- var optWrapperElem = $refs.optWrapper;
675
- var optElem = $refs.panel.querySelector("[optid='".concat(getOptid(_this4, option), "']"));
676
- if (optWrapperElem && optElem) {
677
- var wrapperHeight = optWrapperElem.offsetHeight;
678
- var offsetPadding = 5;
679
- if (isAlignBottom) {
680
- if (optElem.offsetTop + optElem.offsetHeight - optWrapperElem.scrollTop > wrapperHeight) {
681
- optWrapperElem.scrollTop = optElem.offsetTop + optElem.offsetHeight - wrapperHeight;
682
- }
683
- } else {
684
- if (optElem.offsetTop + offsetPadding < optWrapperElem.scrollTop || optElem.offsetTop + offsetPadding > optWrapperElem.scrollTop + optWrapperElem.clientHeight) {
685
- optWrapperElem.scrollTop = optElem.offsetTop - offsetPadding;
686
- }
687
- }
688
- }
689
- }
690
- });
691
- },
692
- clearEvent: function clearEvent(params, evnt) {
693
- this.clearValueEvent(evnt, null);
694
- this.hideOptionPanel();
695
- },
696
- clearValueEvent: function clearValueEvent(evnt, selectValue) {
697
- this.remoteValueList = [];
698
- this.changeEvent(evnt, selectValue);
699
- this.$emit('clear', {
700
- value: selectValue,
701
- $event: evnt
702
- });
703
- },
704
- changeEvent: function changeEvent(evnt, selectValue) {
705
- if (selectValue !== this.value) {
706
- this.$emit('input', selectValue);
707
- this.$emit('change', {
708
- value: selectValue,
709
- $event: evnt
710
- });
711
- // 自动更新校验状态
712
- if (this.$xeform && this.$xeformiteminfo) {
713
- this.$xeform.triggerItemEvent(evnt, this.$xeformiteminfo.itemConfig.field, selectValue);
714
- }
715
- }
716
- },
717
- mousedownOptionEvent: function mousedownOptionEvent(evnt) {
718
- var isLeftBtn = evnt.button === 0;
719
- if (isLeftBtn) {
720
- evnt.stopPropagation();
721
- }
722
- },
723
- changeOptionEvent: function changeOptionEvent(evnt, selectValue, option) {
724
- var value = this.value,
725
- multiple = this.multiple,
726
- remoteValueList = this.remoteValueList;
727
- if (multiple) {
728
- var multipleValue;
729
- if (value) {
730
- if (value.indexOf(selectValue) === -1) {
731
- multipleValue = value.concat([selectValue]);
732
- } else {
733
- multipleValue = value.filter(function (val) {
734
- return val !== selectValue;
735
- });
736
- }
737
- } else {
738
- multipleValue = [selectValue];
739
- }
740
- var remoteItem = remoteValueList.find(function (item) {
741
- return item.key === selectValue;
742
- });
743
- if (remoteItem) {
744
- remoteItem.result = option;
745
- } else {
746
- remoteValueList.push({
747
- key: selectValue,
748
- result: option
749
- });
750
- }
751
- this.changeEvent(evnt, multipleValue);
752
- } else {
753
- this.remoteValueList = [{
754
- key: selectValue,
755
- result: option
756
- }];
757
- this.changeEvent(evnt, selectValue);
758
- this.hideOptionPanel();
759
- }
760
- },
761
- handleGlobalMousewheelEvent: function handleGlobalMousewheelEvent(evnt) {
762
- var $refs = this.$refs,
763
- disabled = this.disabled,
764
- visiblePanel = this.visiblePanel;
765
- if (!disabled) {
766
- if (visiblePanel) {
767
- if (_dom.default.getEventTargetNode(evnt, $refs.panel).flag) {
768
- this.updatePlacement();
769
- } else {
770
- this.hideOptionPanel();
771
- }
772
- }
773
- }
774
- },
775
- handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
776
- var $refs = this.$refs,
777
- $el = this.$el,
778
- disabled = this.disabled,
779
- visiblePanel = this.visiblePanel;
780
- if (!disabled) {
781
- this.isActivated = _dom.default.getEventTargetNode(evnt, $el).flag || _dom.default.getEventTargetNode(evnt, $refs.panel).flag;
782
- if (visiblePanel && !this.isActivated) {
783
- this.hideOptionPanel();
784
- }
785
- }
786
- },
787
- handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
788
- var visiblePanel = this.visiblePanel,
789
- currentValue = this.currentValue,
790
- currentOption = this.currentOption,
791
- clearable = this.clearable,
792
- disabled = this.disabled;
793
- if (!disabled) {
794
- var keyCode = evnt.keyCode;
795
- var isTab = keyCode === 9;
796
- var isEnter = keyCode === 13;
797
- var isEsc = keyCode === 27;
798
- var isUpArrow = keyCode === 38;
799
- var isDwArrow = keyCode === 40;
800
- var isDel = keyCode === 46;
801
- var isSpacebar = keyCode === 32;
802
- if (isTab) {
803
- this.isActivated = false;
804
- }
805
- if (visiblePanel) {
806
- if (isEsc || isTab) {
807
- this.hideOptionPanel();
808
- } else if (isEnter) {
809
- evnt.preventDefault();
810
- evnt.stopPropagation();
811
- this.changeOptionEvent(evnt, currentValue, currentOption);
812
- } else if (isUpArrow || isDwArrow) {
813
- evnt.preventDefault();
814
- var _findOffsetOption = findOffsetOption(this, currentValue, isUpArrow),
815
- firstOption = _findOffsetOption.firstOption,
816
- offsetOption = _findOffsetOption.offsetOption;
817
- if (!offsetOption && !findOption(this, currentValue)) {
818
- offsetOption = firstOption;
819
- }
820
- this.setCurrentOption(offsetOption);
821
- this.scrollToOption(offsetOption, isDwArrow);
822
- } else if (isSpacebar) {
823
- evnt.preventDefault();
824
- }
825
- } else if ((isUpArrow || isDwArrow || isEnter || isSpacebar) && this.isActivated) {
826
- evnt.preventDefault();
827
- this.showOptionPanel();
828
- }
829
- if (this.isActivated) {
830
- if (isDel && clearable) {
831
- this.clearValueEvent(evnt, null);
832
- }
833
- }
834
- }
835
- },
836
- handleGlobalBlurEvent: function handleGlobalBlurEvent() {
837
- this.hideOptionPanel();
838
- },
839
- updateZindex: function updateZindex() {
840
- if (this.panelIndex < _utils.default.getLastZIndex()) {
841
- this.panelIndex = _utils.default.nextZIndex();
842
- }
843
- },
844
- handleFocusSearch: function handleFocusSearch() {
845
- var _this5 = this;
846
- if (this.filterable) {
847
- this.$nextTick(function () {
848
- if (_this5.$refs.inpSearch) {
849
- _this5.$refs.inpSearch.focus();
850
- }
851
- });
852
- }
853
- },
854
- focusEvent: function focusEvent(evnt) {
855
- if (!this.disabled) {
856
- this.isActivated = true;
857
- }
858
- this.$emit('focus', {
859
- $event: evnt
860
- });
861
- },
862
- blurEvent: function blurEvent(evnt) {
863
- this.isActivated = false;
864
- this.$emit('blur', {
865
- $event: evnt
866
- });
867
- },
868
- modelSearchEvent: function modelSearchEvent(value) {
869
- this.searchValue = value;
870
- },
871
- focusSearchEvent: function focusSearchEvent() {
872
- this.isActivated = true;
873
- },
874
- keydownSearchEvent: function keydownSearchEvent(params) {
875
- var $event = params.$event;
876
- var isEnter = (0, _event.hasEventKey)($event, _event.EVENT_KEYS.ENTER);
877
- if (isEnter) {
878
- $event.preventDefault();
879
- $event.stopPropagation();
880
- }
881
- },
882
- triggerSearchEvent: _xeUtils.default.debounce(function () {
883
- var _this6 = this;
884
- var remote = this.remote,
885
- remoteMethod = this.remoteMethod,
886
- searchValue = this.searchValue;
887
- if (remote && remoteMethod) {
888
- this.searchLoading = true;
889
- Promise.resolve(remoteMethod({
890
- searchValue: searchValue
891
- })).then(function () {
892
- return _this6.$nextTick();
893
- }).catch(function () {
894
- return _this6.$nextTick();
895
- }).finally(function () {
896
- _this6.searchLoading = false;
897
- _this6.refreshOption();
898
- });
899
- } else {
900
- this.refreshOption();
901
- }
902
- }, 350, {
903
- trailing: true
904
- }),
905
- isPanelVisible: function isPanelVisible() {
906
- return this.visiblePanel;
907
- },
908
- togglePanel: function togglePanel() {
909
- if (this.visiblePanel) {
910
- this.hideOptionPanel();
911
- } else {
912
- this.showOptionPanel();
913
- }
914
- this.$nextTick();
915
- },
916
- hidePanel: function hidePanel() {
917
- if (this.visiblePanel) {
918
- this.hideOptionPanel();
919
- }
920
- this.$nextTick();
921
- },
922
- showPanel: function showPanel() {
923
- if (!this.visiblePanel) {
924
- this.showOptionPanel();
925
- }
926
- this.$nextTick();
927
- },
928
- togglePanelEvent: function togglePanelEvent(params) {
929
- var $event = params.$event;
930
- $event.preventDefault();
931
- if (this.visiblePanel) {
932
- this.hideOptionPanel();
933
- } else {
934
- this.showOptionPanel();
935
- }
936
- },
937
- showOptionPanel: function showOptionPanel() {
938
- var _this7 = this;
939
- var loading = this.loading,
940
- disabled = this.disabled,
941
- filterable = this.filterable;
942
- if (!loading && !disabled) {
943
- this.searchList = this.option;
944
- clearTimeout(this.hidePanelTimeout);
945
- if (!this.inited) {
946
- this.inited = true;
947
- if (this.transfer) {
948
- document.body.appendChild(this.$refs.panel);
949
- }
950
- }
951
- this.isActivated = true;
952
- this.animatVisible = true;
953
- if (filterable) {
954
- this.refreshOption();
955
- }
956
- setTimeout(function () {
957
- var value = _this7.value,
958
- multiple = _this7.multiple;
959
- var currOption = findOption(_this7, multiple && value ? value[0] : value);
960
- _this7.visiblePanel = true;
961
- if (currOption) {
962
- _this7.setCurrentOption(currOption);
963
- _this7.scrollToOption(currOption);
964
- }
965
- _this7.handleFocusSearch();
966
- }, 10);
967
- this.updateZindex();
968
- this.updatePlacement();
969
- }
970
- },
971
- hideOptionPanel: function hideOptionPanel() {
972
- var _this8 = this;
973
- this.searchValue = '';
974
- this.searchLoading = false;
975
- this.visiblePanel = false;
976
- this.hidePanelTimeout = setTimeout(function () {
977
- _this8.animatVisible = false;
978
- _this8.searchValue = '';
979
- }, 350);
980
- },
981
- updatePlacement: function updatePlacement() {
982
- var _this9 = this;
983
- return this.$nextTick().then(function () {
984
- var $refs = _this9.$refs,
985
- transfer = _this9.transfer,
986
- placement = _this9.placement,
987
- panelIndex = _this9.panelIndex;
988
- var targetElem = $refs.input.$el;
989
- var panelElem = $refs.panel;
990
- if (panelElem && targetElem) {
991
- var targetHeight = targetElem.offsetHeight;
992
- var targetWidth = targetElem.offsetWidth;
993
- var panelHeight = panelElem.offsetHeight;
994
- var panelWidth = panelElem.offsetWidth;
995
- var marginSize = 5;
996
- var panelStyle = {
997
- zIndex: panelIndex
998
- };
999
- var _DomTools$getAbsolute = _dom.default.getAbsolutePos(targetElem),
1000
- boundingTop = _DomTools$getAbsolute.boundingTop,
1001
- boundingLeft = _DomTools$getAbsolute.boundingLeft,
1002
- visibleHeight = _DomTools$getAbsolute.visibleHeight,
1003
- visibleWidth = _DomTools$getAbsolute.visibleWidth;
1004
- var panelPlacement = 'bottom';
1005
- if (transfer) {
1006
- var left = boundingLeft;
1007
- var top = boundingTop + targetHeight;
1008
- if (placement === 'top') {
1009
- panelPlacement = 'top';
1010
- top = boundingTop - panelHeight;
1011
- } else if (!placement) {
1012
- // 如果下面不够放,则向上
1013
- if (top + panelHeight + marginSize > visibleHeight) {
1014
- panelPlacement = 'top';
1015
- top = boundingTop - panelHeight;
1016
- }
1017
- // 如果上面不够放,则向下(优先)
1018
- if (top < marginSize) {
1019
- panelPlacement = 'bottom';
1020
- top = boundingTop + targetHeight;
1021
- }
1022
- }
1023
- // 如果溢出右边
1024
- if (left + panelWidth + marginSize > visibleWidth) {
1025
- left -= left + panelWidth + marginSize - visibleWidth;
1026
- }
1027
- // 如果溢出左边
1028
- if (left < marginSize) {
1029
- left = marginSize;
1030
- }
1031
- Object.assign(panelStyle, {
1032
- left: "".concat(left, "px"),
1033
- top: "".concat(top, "px"),
1034
- minWidth: "".concat(targetWidth, "px")
1035
- });
1036
- } else {
1037
- if (placement === 'top') {
1038
- panelPlacement = 'top';
1039
- panelStyle.bottom = "".concat(targetHeight, "px");
1040
- } else if (!placement) {
1041
- // 如果下面不够放,则向上
1042
- if (boundingTop + targetHeight + panelHeight > visibleHeight) {
1043
- // 如果上面不够放,则向下(优先)
1044
- if (boundingTop - targetHeight - panelHeight > marginSize) {
1045
- panelPlacement = 'top';
1046
- panelStyle.bottom = "".concat(targetHeight, "px");
1047
- }
1048
- }
1049
- }
1050
- }
1051
- _this9.panelStyle = panelStyle;
1052
- _this9.panelPlacement = panelPlacement;
1053
- return _this9.$nextTick();
1054
- }
1055
- });
1056
- },
1057
- focus: function focus() {
1058
- this.isActivated = true;
1059
- this.$refs.input.focus();
1060
- return this.$nextTick();
1061
- },
1062
- blur: function blur() {
1063
- this.hideOptionPanel();
1064
- this.$refs.input.blur();
1065
- return this.$nextTick();
1066
- }
1067
- }
1068
- };