vxe-table 3.8.23 → 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 +18867 -29242
  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 +38 -44
  188. package/lib/table/src/body.min.js +1 -1
  189. package/lib/table/src/cell.js +83 -87
  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 +608 -599
  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 -361
  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 -277
  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 -361
  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 -865
  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 -973
  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.1724894779531.ttf +0 -0
  441. package/lib/icon/style/iconfont.1724894779531.woff +0 -0
  442. package/lib/icon/style/iconfont.1724894779531.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.1724894779531.ttf +0 -0
  447. package/lib/iconfont.1724894779531.woff +0 -0
  448. package/lib/iconfont.1724894779531.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 -131
  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 -361
  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 -131
  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 -919
  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 -790
  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 -842
  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 -285
  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 -196
  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 -1476
  1005. package/styles/textarea.scss +0 -104
  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 -433
  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,921 +0,0 @@
1
- import XEUtils from 'xe-utils'
2
- import VxeInput from '../../input/src/input'
3
- import GlobalConfig from '../../v-x-e-table/src/conf'
4
- import vSize from '../../mixins/size'
5
- import UtilTools, { getFuncText } from '../../tools/utils'
6
- import DomTools from '../../tools/dom'
7
- import { GlobalEvent, hasEventKey, EVENT_KEYS } from '../../tools/event'
8
- import { getSlotVNs } from '../../tools/vn'
9
-
10
- function isOptionVisible (option) {
11
- return option.visible !== false
12
- }
13
-
14
- function getOptUniqueId () {
15
- return XEUtils.uniqueId('opt_')
16
- }
17
-
18
- function getOptkey (_vm) {
19
- const { optionOpts } = _vm
20
- return optionOpts.keyField || _vm.optionId || '_X_OPTION_KEY'
21
- }
22
-
23
- function getOptid (_vm, option) {
24
- const optid = option[getOptkey(_vm)]
25
- return optid ? encodeURIComponent(optid) : ''
26
- }
27
-
28
- function findOffsetOption (_vm, optionValue, isUpArrow) {
29
- const { isGroup, visibleOptionList, visibleGroupList, valueField, groupOptionsField } = _vm
30
- let firstOption
31
- let prevOption
32
- let nextOption
33
- let currOption
34
- if (isGroup) {
35
- for (let gIndex = 0; gIndex < visibleGroupList.length; gIndex++) {
36
- const group = visibleGroupList[gIndex]
37
- const groupOptionList = group[groupOptionsField]
38
- const isGroupDisabled = group.disabled
39
- if (groupOptionList) {
40
- for (let index = 0; index < groupOptionList.length; index++) {
41
- const option = groupOptionList[index]
42
- const isVisible = isOptionVisible(option)
43
- const isDisabled = isGroupDisabled || option.disabled
44
- if (!firstOption && !isDisabled) {
45
- firstOption = option
46
- }
47
- if (currOption) {
48
- if (isVisible && !isDisabled) {
49
- nextOption = option
50
- if (!isUpArrow) {
51
- return { offsetOption: nextOption }
52
- }
53
- }
54
- }
55
- if (optionValue === option[valueField]) {
56
- currOption = option
57
- if (isUpArrow) {
58
- return { offsetOption: prevOption }
59
- }
60
- } else {
61
- if (isVisible && !isDisabled) {
62
- prevOption = option
63
- }
64
- }
65
- }
66
- }
67
- }
68
- } else {
69
- for (let index = 0; index < visibleOptionList.length; index++) {
70
- const option = visibleOptionList[index]
71
- const isDisabled = option.disabled
72
- if (!firstOption && !isDisabled) {
73
- firstOption = option
74
- }
75
- if (currOption) {
76
- if (!isDisabled) {
77
- nextOption = option
78
- if (!isUpArrow) {
79
- return { offsetOption: nextOption }
80
- }
81
- }
82
- }
83
- if (optionValue === option[valueField]) {
84
- currOption = option
85
- if (isUpArrow) {
86
- return { offsetOption: prevOption }
87
- }
88
- } else {
89
- if (!isDisabled) {
90
- prevOption = option
91
- }
92
- }
93
- }
94
- }
95
- return { firstOption }
96
- }
97
-
98
- function findOption (_vm, optionValue) {
99
- const { isGroup, fullOptionList, fullGroupList, valueField } = _vm
100
- if (isGroup) {
101
- for (let gIndex = 0; gIndex < fullGroupList.length; gIndex++) {
102
- const group = fullGroupList[gIndex]
103
- if (group.options) {
104
- for (let index = 0; index < group.options.length; index++) {
105
- const option = group.options[index]
106
- if (optionValue === option[valueField]) {
107
- return option
108
- }
109
- }
110
- }
111
- }
112
- }
113
- return fullOptionList.find(item => optionValue === item[valueField])
114
- }
115
-
116
- function getRemoteSelectLabel (_vm, value) {
117
- const { remoteValueList } = _vm
118
- const remoteItem = remoteValueList.find(item => value === item.key)
119
- const item = remoteItem ? remoteItem.result : null
120
- return XEUtils.toValueString(item ? item[_vm.labelField] : value)
121
- }
122
-
123
- function getSelectLabel (_vm, value) {
124
- const item = findOption(_vm, value)
125
- return XEUtils.toValueString(item ? item[_vm.labelField] : value)
126
- }
127
-
128
- function checkOptionDisabled (_vm, isSelected, option, group) {
129
- if (option.disabled) {
130
- return true
131
- }
132
- if (group && group.disabled) {
133
- return true
134
- }
135
- if (_vm.isMaximize && !isSelected) {
136
- return true
137
- }
138
- return false
139
- }
140
-
141
- export function renderOption (h, _vm, list, group) {
142
- const { $scopedSlots, isGroup, labelField, valueField, optionKey, value, multiple, currentValue, optionOpts } = _vm
143
- const { useKey } = optionOpts
144
- const optionSlot = $scopedSlots.option
145
- return list.map((option, cIndex) => {
146
- const { slots } = option
147
- const optionValue = option[valueField]
148
- const isSelected = multiple ? (value && value.indexOf(optionValue) > -1) : value === optionValue
149
- const isVisible = !isGroup || isOptionVisible(option)
150
- const isDisabled = checkOptionDisabled(_vm, isSelected, option, group)
151
- const optid = getOptid(_vm, option)
152
- const defaultSlot = slots ? slots.default : null
153
- const optParams = { option, group: null, $select: _vm }
154
- return isVisible ? h('div', {
155
- key: useKey || optionKey ? optid : cIndex,
156
- class: ['vxe-select-option', option.className, {
157
- 'is--disabled': isDisabled,
158
- 'is--selected': isSelected,
159
- 'is--hover': currentValue === optionValue
160
- }],
161
- attrs: {
162
- optid
163
- },
164
- on: {
165
- mousedown: _vm.mousedownOptionEvent,
166
- click: (evnt) => {
167
- if (!isDisabled) {
168
- _vm.changeOptionEvent(evnt, optionValue, option)
169
- }
170
- },
171
- mouseenter: () => {
172
- if (!isDisabled) {
173
- _vm.setCurrentOption(option)
174
- }
175
- }
176
- }
177
- }, optionSlot ? _vm.callSlot(optionSlot, optParams, h) : (defaultSlot ? _vm.callSlot(defaultSlot, optParams, h) : UtilTools.formatText(getFuncText(option[labelField])))) : null
178
- })
179
- }
180
-
181
- export function renderOptgroup (h, _vm) {
182
- const { $scopedSlots, optionKey, visibleGroupList, groupLabelField, groupOptionsField, optionOpts } = _vm
183
- const { useKey } = optionOpts
184
- const optionSlot = $scopedSlots.option
185
- return visibleGroupList.map((group, gIndex) => {
186
- const { slots } = group
187
- const optid = getOptid(_vm, group)
188
- const isGroupDisabled = group.disabled
189
- const defaultSlot = slots ? slots.default : null
190
- const optParams = { option: group, group, $select: _vm }
191
- return h('div', {
192
- key: useKey || optionKey ? optid : gIndex,
193
- class: ['vxe-optgroup', group.className, {
194
- 'is--disabled': isGroupDisabled
195
- }],
196
- attrs: {
197
- optid
198
- }
199
- }, [
200
- h('div', {
201
- class: 'vxe-optgroup--title'
202
- }, optionSlot ? _vm.callSlot(optionSlot, optParams, h) : (defaultSlot ? _vm.callSlot(defaultSlot, optParams, h) : getFuncText(group[groupLabelField]))),
203
- h('div', {
204
- class: 'vxe-optgroup--wrapper'
205
- }, renderOption(h, _vm, group[groupOptionsField], group))
206
- ])
207
- })
208
- }
209
-
210
- function renderOpts (h, _vm) {
211
- const { isGroup, visibleGroupList, visibleOptionList, searchLoading } = _vm
212
- if (searchLoading) {
213
- return [
214
- h('div', {
215
- class: 'vxe-select--search-loading'
216
- }, [
217
- h('i', {
218
- class: ['vxe-select--search-icon', GlobalConfig.icon.SELECT_LOADED]
219
- }),
220
- h('span', {
221
- class: 'vxe-select--search-text'
222
- }, GlobalConfig.i18n('vxe.select.loadingText'))
223
- ])
224
- ]
225
- }
226
- if (isGroup) {
227
- if (visibleGroupList.length) {
228
- return renderOptgroup(h, _vm)
229
- }
230
- } else {
231
- if (visibleOptionList.length) {
232
- return renderOption(h, _vm, visibleOptionList)
233
- }
234
- }
235
- return [
236
- h('div', {
237
- class: 'vxe-select--empty-placeholder'
238
- }, _vm.emptyText || GlobalConfig.i18n('vxe.select.emptyText'))
239
- ]
240
- }
241
-
242
- export default {
243
- name: 'VxeSelect',
244
- mixins: [vSize],
245
- props: {
246
- value: null,
247
- clearable: Boolean,
248
- placeholder: {
249
- type: String,
250
- default: () => XEUtils.eqNull(GlobalConfig.select.placeholder) ? GlobalConfig.i18n('vxe.base.pleaseSelect') : GlobalConfig.select.placeholder
251
- },
252
- loading: Boolean,
253
- disabled: Boolean,
254
- multiple: Boolean,
255
- multiCharOverflow: { type: [Number, String], default: () => GlobalConfig.select.multiCharOverflow },
256
- prefixIcon: String,
257
- placement: String,
258
- options: Array,
259
- optionProps: Object,
260
- optionGroups: Array,
261
- optionGroupProps: Object,
262
- optionConfig: Object,
263
- className: [String, Function],
264
- popupClassName: [String, Function],
265
- max: [String, Number],
266
- size: { type: String, default: () => GlobalConfig.select.size || GlobalConfig.size },
267
- filterable: Boolean,
268
- filterMethod: Function,
269
- remote: Boolean,
270
- remoteMethod: Function,
271
- emptyText: String,
272
- // 已废弃,被 option-config.keyField 替换
273
- optionId: { type: String, default: () => GlobalConfig.select.optionId },
274
- // 已废弃,被 option-config.useKey 替换
275
- optionKey: Boolean,
276
- transfer: { type: Boolean, default: () => GlobalConfig.select.transfer }
277
- },
278
- components: {
279
- VxeInput
280
- },
281
- inject: {
282
- $xeform: {
283
- default: null
284
- },
285
- $xeformiteminfo: {
286
- default: null
287
- }
288
- },
289
- provide () {
290
- return {
291
- $xeselect: this
292
- }
293
- },
294
- data () {
295
- return {
296
- inited: false,
297
- collectOption: [],
298
- fullGroupList: [],
299
- fullOptionList: [],
300
- visibleGroupList: [],
301
- visibleOptionList: [],
302
- remoteValueList: [],
303
- panelIndex: 0,
304
- panelStyle: null,
305
- panelPlacement: null,
306
- currentOption: null,
307
- currentValue: null,
308
- visiblePanel: false,
309
- animatVisible: false,
310
- isActivated: false,
311
- searchValue: '',
312
- searchLoading: false
313
- }
314
- },
315
- computed: {
316
- propsOpts () {
317
- return this.optionProps || {}
318
- },
319
- groupPropsOpts () {
320
- return this.optionGroupProps || {}
321
- },
322
- labelField () {
323
- return this.propsOpts.label || 'label'
324
- },
325
- valueField () {
326
- return this.propsOpts.value || 'value'
327
- },
328
- groupLabelField () {
329
- return this.groupPropsOpts.label || 'label'
330
- },
331
- groupOptionsField () {
332
- return this.groupPropsOpts.options || 'options'
333
- },
334
- optionOpts () {
335
- return Object.assign({}, GlobalConfig.select.optionConfig, this.optionConfig)
336
- },
337
- isGroup () {
338
- return this.fullGroupList.some(item => item.options && item.options.length)
339
- },
340
- multiMaxCharNum () {
341
- return XEUtils.toNumber(this.multiCharOverflow)
342
- },
343
- selectLabel () {
344
- const { value, multiple, remote, multiMaxCharNum } = this
345
- if (value && multiple) {
346
- const vals = (XEUtils.isArray(value) ? value : [value])
347
- if (remote) {
348
- return vals.map(val => getRemoteSelectLabel(this, val)).join(', ')
349
- }
350
- return vals.map(val => {
351
- const label = getSelectLabel(this, val)
352
- if (multiMaxCharNum > 0 && label.length > multiMaxCharNum) {
353
- return `${label.substring(0, multiMaxCharNum)}...`
354
- }
355
- return label
356
- }).join(', ')
357
- }
358
- if (remote) {
359
- return getRemoteSelectLabel(this, value)
360
- }
361
- return getSelectLabel(this, value)
362
- },
363
- isMaximize () {
364
- const { value, multiple, max } = this
365
- if (multiple && max) {
366
- return (value ? value.length : 0) >= XEUtils.toNumber(max)
367
- }
368
- return false
369
- }
370
- },
371
- watch: {
372
- collectOption (value) {
373
- if (value.some(item => item.options && item.options.length)) {
374
- this.fullOptionList = []
375
- this.fullGroupList = value
376
- } else {
377
- this.fullGroupList = []
378
- this.fullOptionList = value
379
- }
380
- this.cacheItemMap()
381
- },
382
- options (value) {
383
- this.fullGroupList = []
384
- this.fullOptionList = value
385
- this.cacheItemMap()
386
- },
387
- optionGroups (value) {
388
- this.fullOptionList = []
389
- this.fullGroupList = value
390
- this.cacheItemMap()
391
- }
392
- },
393
- created () {
394
- const { options, optionGroups } = this
395
- if (optionGroups) {
396
- this.fullGroupList = optionGroups
397
- } else if (options) {
398
- this.fullOptionList = options
399
- }
400
- this.cacheItemMap()
401
- GlobalEvent.on(this, 'mousewheel', this.handleGlobalMousewheelEvent)
402
- GlobalEvent.on(this, 'mousedown', this.handleGlobalMousedownEvent)
403
- GlobalEvent.on(this, 'keydown', this.handleGlobalKeydownEvent)
404
- GlobalEvent.on(this, 'blur', this.handleGlobalBlurEvent)
405
- },
406
- beforeDestroy () {
407
- const panelElem = this.$refs.panel
408
- if (panelElem && panelElem.parentNode) {
409
- panelElem.parentNode.removeChild(panelElem)
410
- }
411
- },
412
- destroyed () {
413
- GlobalEvent.off(this, 'mousewheel')
414
- GlobalEvent.off(this, 'mousedown')
415
- GlobalEvent.off(this, 'keydown')
416
- GlobalEvent.off(this, 'blur')
417
- },
418
- render (h) {
419
- const { _e, $scopedSlots, vSize, className, popupClassName, inited, isActivated, loading, disabled, visiblePanel, filterable } = this
420
- const defaultSlot = $scopedSlots.default
421
- const prefixSlot = $scopedSlots.prefix
422
- const headerSlot = $scopedSlots.header
423
- const footerSlot = $scopedSlots.footer
424
- return h('div', {
425
- class: ['vxe-select', className ? (XEUtils.isFunction(className) ? className({ $select: this }) : className) : '', {
426
- [`size--${vSize}`]: vSize,
427
- 'is--visivle': visiblePanel,
428
- 'is--disabled': disabled,
429
- 'is--filter': filterable,
430
- 'is--loading': loading,
431
- 'is--active': isActivated
432
- }]
433
- }, [
434
- h('div', {
435
- class: 'vxe-select-slots',
436
- ref: 'hideOption'
437
- }, defaultSlot ? defaultSlot.call(this, {}) : []),
438
- h('vxe-input', {
439
- ref: 'input',
440
- props: {
441
- clearable: this.clearable,
442
- placeholder: this.placeholder,
443
- readonly: true,
444
- disabled,
445
- type: 'text',
446
- prefixIcon: this.prefixIcon,
447
- suffixIcon: loading ? GlobalConfig.icon.SELECT_LOADED : (visiblePanel ? GlobalConfig.icon.SELECT_OPEN : GlobalConfig.icon.SELECT_CLOSE),
448
- value: this.selectLabel
449
- },
450
- on: {
451
- clear: this.clearEvent,
452
- click: this.togglePanelEvent,
453
- focus: this.focusEvent,
454
- blur: this.blurEvent,
455
- 'suffix-click': this.togglePanelEvent
456
- },
457
- scopedSlots: prefixSlot ? {
458
- prefix: () => prefixSlot.call(this, {})
459
- } : {}
460
- }),
461
- h('div', {
462
- ref: 'panel',
463
- class: ['vxe-table--ignore-clear vxe-select--panel', popupClassName ? (XEUtils.isFunction(popupClassName) ? popupClassName({ $select: this }) : popupClassName) : '', {
464
- [`size--${vSize}`]: vSize,
465
- 'is--transfer': this.transfer,
466
- 'animat--leave': !loading && this.animatVisible,
467
- 'animat--enter': !loading && visiblePanel
468
- }],
469
- attrs: {
470
- placement: this.panelPlacement
471
- },
472
- style: this.panelStyle
473
- }, inited ? [
474
- filterable ? h('div', {
475
- class: 'vxe-select--panel-search'
476
- }, [
477
- h('vxe-input', {
478
- ref: 'inpSearch',
479
- class: 'vxe-select-search--input',
480
- props: {
481
- value: this.searchValue,
482
- type: 'text',
483
- clearable: true,
484
- placeholder: GlobalConfig.i18n('vxe.select.search'),
485
- prefixIcon: GlobalConfig.icon.INPUT_SEARCH
486
- },
487
- on: {
488
- modelValue: this.modelSearchEvent,
489
- focus: this.focusSearchEvent,
490
- keydown: this.keydownSearchEvent,
491
- change: this.triggerSearchEvent,
492
- search: this.triggerSearchEvent
493
- }
494
- })
495
- ]) : _e(),
496
- h('div', {
497
- class: 'vxe-select--panel-wrapper'
498
- }, [
499
- headerSlot ? h('div', {
500
- class: 'vxe-select--panel-header'
501
- }, headerSlot.call(this, {})) : _e(),
502
- h('div', {
503
- class: 'vxe-select--panel-body'
504
- }, [
505
- h('div', {
506
- ref: 'optWrapper',
507
- class: 'vxe-select-option--wrapper'
508
- }, renderOpts(h, this))
509
- ]),
510
- footerSlot ? h('div', {
511
- class: 'vxe-select--panel-footer'
512
- }, footerSlot.call(this, {})) : _e()
513
- ])
514
- ] : [])
515
- ])
516
- },
517
- methods: {
518
- callSlot (slotFunc, params, h) {
519
- if (slotFunc) {
520
- const { $scopedSlots } = this
521
- if (XEUtils.isString(slotFunc)) {
522
- slotFunc = $scopedSlots[slotFunc] || null
523
- }
524
- if (XEUtils.isFunction(slotFunc)) {
525
- return getSlotVNs(slotFunc.call(this, params, h))
526
- }
527
- }
528
- return []
529
- },
530
- cacheItemMap () {
531
- const { fullOptionList, fullGroupList, groupOptionsField } = this
532
- const optkey = getOptkey(this)
533
- const handleOptis = (item) => {
534
- if (!getOptid(this, item)) {
535
- item[optkey] = getOptUniqueId()
536
- }
537
- }
538
- if (fullGroupList.length) {
539
- fullGroupList.forEach(group => {
540
- handleOptis(group)
541
- if (group[groupOptionsField]) {
542
- group[groupOptionsField].forEach(handleOptis)
543
- }
544
- })
545
- } else if (fullOptionList.length) {
546
- fullOptionList.forEach(handleOptis)
547
- }
548
- this.refreshOption()
549
- },
550
- /**
551
- * 刷新选项,当选项被搜索、动态显示/隐藏时可能会用到
552
- */
553
- refreshOption () {
554
- const { isGroup, fullOptionList, fullGroupList, filterable, filterMethod, searchValue, labelField, groupLabelField } = this
555
- const searchStr = `${searchValue || ''}`.toLowerCase()
556
- if (isGroup) {
557
- if (filterable && filterMethod) {
558
- this.visibleGroupList = fullGroupList.filter(group => isOptionVisible(group) && filterMethod({ group, option: null, searchValue: searchStr }))
559
- } else if (filterable) {
560
- this.visibleGroupList = fullGroupList.filter(group => isOptionVisible(group) && (!searchStr || `${group[groupLabelField]}`.toLowerCase().indexOf(searchStr) > -1))
561
- } else {
562
- this.visibleGroupList = fullGroupList.filter(isOptionVisible)
563
- }
564
- } else {
565
- if (filterable && filterMethod) {
566
- this.visibleOptionList = fullOptionList.filter(option => isOptionVisible(option) && filterMethod({ group: null, option, searchValue: searchStr }))
567
- } else if (filterable) {
568
- this.visibleOptionList = fullOptionList.filter(option => isOptionVisible(option) && (!searchStr || `${option[labelField]}`.toLowerCase().indexOf(searchStr) > -1))
569
- } else {
570
- this.visibleOptionList = fullOptionList.filter(isOptionVisible)
571
- }
572
- }
573
- return this.$nextTick()
574
- },
575
- setCurrentOption (option) {
576
- if (option) {
577
- this.currentOption = option
578
- this.currentValue = option[this.valueField]
579
- }
580
- },
581
- scrollToOption (option, isAlignBottom) {
582
- return this.$nextTick().then(() => {
583
- if (option) {
584
- const { $refs } = this
585
- const optWrapperElem = $refs.optWrapper
586
- const optElem = $refs.panel.querySelector(`[optid='${getOptid(this, option)}']`)
587
- if (optWrapperElem && optElem) {
588
- const wrapperHeight = optWrapperElem.offsetHeight
589
- const offsetPadding = 5
590
- if (isAlignBottom) {
591
- if (optElem.offsetTop + optElem.offsetHeight - optWrapperElem.scrollTop > wrapperHeight) {
592
- optWrapperElem.scrollTop = optElem.offsetTop + optElem.offsetHeight - wrapperHeight
593
- }
594
- } else {
595
- if (optElem.offsetTop + offsetPadding < optWrapperElem.scrollTop || optElem.offsetTop + offsetPadding > optWrapperElem.scrollTop + optWrapperElem.clientHeight) {
596
- optWrapperElem.scrollTop = optElem.offsetTop - offsetPadding
597
- }
598
- }
599
- }
600
- }
601
- })
602
- },
603
- clearEvent (params, evnt) {
604
- this.clearValueEvent(evnt, null)
605
- this.hideOptionPanel()
606
- },
607
- clearValueEvent (evnt, selectValue) {
608
- this.remoteValueList = []
609
- this.changeEvent(evnt, selectValue)
610
- this.$emit('clear', { value: selectValue, $event: evnt })
611
- },
612
- changeEvent (evnt, selectValue) {
613
- if (selectValue !== this.value) {
614
- this.$emit('input', selectValue)
615
- this.$emit('change', { value: selectValue, $event: evnt })
616
- // 自动更新校验状态
617
- if (this.$xeform && this.$xeformiteminfo) {
618
- this.$xeform.triggerItemEvent(evnt, this.$xeformiteminfo.itemConfig.field, selectValue)
619
- }
620
- }
621
- },
622
- mousedownOptionEvent (evnt) {
623
- const isLeftBtn = evnt.button === 0
624
- if (isLeftBtn) {
625
- evnt.stopPropagation()
626
- }
627
- },
628
- changeOptionEvent (evnt, selectValue, option) {
629
- const { value, multiple, remoteValueList } = this
630
- if (multiple) {
631
- let multipleValue
632
- if (value) {
633
- if (value.indexOf(selectValue) === -1) {
634
- multipleValue = value.concat([selectValue])
635
- } else {
636
- multipleValue = value.filter(val => val !== selectValue)
637
- }
638
- } else {
639
- multipleValue = [selectValue]
640
- }
641
- const remoteItem = remoteValueList.find(item => item.key === selectValue)
642
- if (remoteItem) {
643
- remoteItem.result = option
644
- } else {
645
- remoteValueList.push({ key: selectValue, result: option })
646
- }
647
- this.changeEvent(evnt, multipleValue)
648
- } else {
649
- this.remoteValueList = [{ key: selectValue, result: option }]
650
- this.changeEvent(evnt, selectValue)
651
- this.hideOptionPanel()
652
- }
653
- },
654
- handleGlobalMousewheelEvent (evnt) {
655
- const { $refs, disabled, visiblePanel } = this
656
- if (!disabled) {
657
- if (visiblePanel) {
658
- if (DomTools.getEventTargetNode(evnt, $refs.panel).flag) {
659
- this.updatePlacement()
660
- } else {
661
- this.hideOptionPanel()
662
- }
663
- }
664
- }
665
- },
666
- handleGlobalMousedownEvent (evnt) {
667
- const { $refs, $el, disabled, visiblePanel } = this
668
- if (!disabled) {
669
- this.isActivated = DomTools.getEventTargetNode(evnt, $el).flag || DomTools.getEventTargetNode(evnt, $refs.panel).flag
670
- if (visiblePanel && !this.isActivated) {
671
- this.hideOptionPanel()
672
- }
673
- }
674
- },
675
- handleGlobalKeydownEvent (evnt) {
676
- const { visiblePanel, currentValue, currentOption, clearable, disabled } = this
677
- if (!disabled) {
678
- const keyCode = evnt.keyCode
679
- const isTab = keyCode === 9
680
- const isEnter = keyCode === 13
681
- const isEsc = keyCode === 27
682
- const isUpArrow = keyCode === 38
683
- const isDwArrow = keyCode === 40
684
- const isDel = keyCode === 46
685
- const isSpacebar = keyCode === 32
686
- if (isTab) {
687
- this.isActivated = false
688
- }
689
- if (visiblePanel) {
690
- if (isEsc || isTab) {
691
- this.hideOptionPanel()
692
- } else if (isEnter) {
693
- evnt.preventDefault()
694
- evnt.stopPropagation()
695
- this.changeOptionEvent(evnt, currentValue, currentOption)
696
- } else if (isUpArrow || isDwArrow) {
697
- evnt.preventDefault()
698
- let { firstOption, offsetOption } = findOffsetOption(this, currentValue, isUpArrow)
699
- if (!offsetOption && !findOption(this, currentValue)) {
700
- offsetOption = firstOption
701
- }
702
- this.setCurrentOption(offsetOption)
703
- this.scrollToOption(offsetOption, isDwArrow)
704
- } else if (isSpacebar) {
705
- evnt.preventDefault()
706
- }
707
- } else if ((isUpArrow || isDwArrow || isEnter || isSpacebar) && this.isActivated) {
708
- evnt.preventDefault()
709
- this.showOptionPanel()
710
- }
711
- if (this.isActivated) {
712
- if (isDel && clearable) {
713
- this.clearValueEvent(evnt, null)
714
- }
715
- }
716
- }
717
- },
718
- handleGlobalBlurEvent () {
719
- this.hideOptionPanel()
720
- },
721
- updateZindex () {
722
- if (this.panelIndex < UtilTools.getLastZIndex()) {
723
- this.panelIndex = UtilTools.nextZIndex()
724
- }
725
- },
726
- handleFocusSearch () {
727
- if (this.filterable) {
728
- this.$nextTick(() => {
729
- if (this.$refs.inpSearch) {
730
- this.$refs.inpSearch.focus()
731
- }
732
- })
733
- }
734
- },
735
- focusEvent (evnt) {
736
- if (!this.disabled) {
737
- this.isActivated = true
738
- }
739
- this.$emit('focus', { $event: evnt })
740
- },
741
- blurEvent (evnt) {
742
- this.isActivated = false
743
- this.$emit('blur', { $event: evnt })
744
- },
745
- modelSearchEvent (value) {
746
- this.searchValue = value
747
- },
748
- focusSearchEvent () {
749
- this.isActivated = true
750
- },
751
- keydownSearchEvent (params) {
752
- const { $event } = params
753
- const isEnter = hasEventKey($event, EVENT_KEYS.ENTER)
754
- if (isEnter) {
755
- $event.preventDefault()
756
- $event.stopPropagation()
757
- }
758
- },
759
- triggerSearchEvent: XEUtils.debounce(function () {
760
- const { remote, remoteMethod, searchValue } = this
761
- if (remote && remoteMethod) {
762
- this.searchLoading = true
763
- Promise.resolve(remoteMethod({ searchValue })).then(() => this.$nextTick()).catch(() => this.$nextTick()).finally(() => {
764
- this.searchLoading = false
765
- this.refreshOption()
766
- })
767
- } else {
768
- this.refreshOption()
769
- }
770
- }, 350, { trailing: true }),
771
- isPanelVisible () {
772
- return this.visiblePanel
773
- },
774
- togglePanel () {
775
- if (this.visiblePanel) {
776
- this.hideOptionPanel()
777
- } else {
778
- this.showOptionPanel()
779
- }
780
- this.$nextTick()
781
- },
782
- hidePanel () {
783
- if (this.visiblePanel) {
784
- this.hideOptionPanel()
785
- }
786
- this.$nextTick()
787
- },
788
- showPanel () {
789
- if (!this.visiblePanel) {
790
- this.showOptionPanel()
791
- }
792
- this.$nextTick()
793
- },
794
- togglePanelEvent (params) {
795
- const { $event } = params
796
- $event.preventDefault()
797
- if (this.visiblePanel) {
798
- this.hideOptionPanel()
799
- } else {
800
- this.showOptionPanel()
801
- }
802
- },
803
- showOptionPanel () {
804
- const { loading, disabled, filterable } = this
805
- if (!loading && !disabled) {
806
- this.searchList = this.option
807
- clearTimeout(this.hidePanelTimeout)
808
- if (!this.inited) {
809
- this.inited = true
810
- if (this.transfer) {
811
- document.body.appendChild(this.$refs.panel)
812
- }
813
- }
814
- this.isActivated = true
815
- this.animatVisible = true
816
- if (filterable) {
817
- this.refreshOption()
818
- }
819
- setTimeout(() => {
820
- const { value, multiple } = this
821
- const currOption = findOption(this, multiple && value ? value[0] : value)
822
- this.visiblePanel = true
823
- if (currOption) {
824
- this.setCurrentOption(currOption)
825
- this.scrollToOption(currOption)
826
- }
827
- this.handleFocusSearch()
828
- }, 10)
829
- this.updateZindex()
830
- this.updatePlacement()
831
- }
832
- },
833
- hideOptionPanel () {
834
- this.searchValue = ''
835
- this.searchLoading = false
836
- this.visiblePanel = false
837
- this.hidePanelTimeout = setTimeout(() => {
838
- this.animatVisible = false
839
- this.searchValue = ''
840
- }, 350)
841
- },
842
- updatePlacement () {
843
- return this.$nextTick().then(() => {
844
- const { $refs, transfer, placement, panelIndex } = this
845
- const targetElem = $refs.input.$el
846
- const panelElem = $refs.panel
847
- if (panelElem && targetElem) {
848
- const targetHeight = targetElem.offsetHeight
849
- const targetWidth = targetElem.offsetWidth
850
- const panelHeight = panelElem.offsetHeight
851
- const panelWidth = panelElem.offsetWidth
852
- const marginSize = 5
853
- const panelStyle = {
854
- zIndex: panelIndex
855
- }
856
- const { boundingTop, boundingLeft, visibleHeight, visibleWidth } = DomTools.getAbsolutePos(targetElem)
857
- let panelPlacement = 'bottom'
858
- if (transfer) {
859
- let left = boundingLeft
860
- let top = boundingTop + targetHeight
861
- if (placement === 'top') {
862
- panelPlacement = 'top'
863
- top = boundingTop - panelHeight
864
- } else if (!placement) {
865
- // 如果下面不够放,则向上
866
- if (top + panelHeight + marginSize > visibleHeight) {
867
- panelPlacement = 'top'
868
- top = boundingTop - panelHeight
869
- }
870
- // 如果上面不够放,则向下(优先)
871
- if (top < marginSize) {
872
- panelPlacement = 'bottom'
873
- top = boundingTop + targetHeight
874
- }
875
- }
876
- // 如果溢出右边
877
- if (left + panelWidth + marginSize > visibleWidth) {
878
- left -= left + panelWidth + marginSize - visibleWidth
879
- }
880
- // 如果溢出左边
881
- if (left < marginSize) {
882
- left = marginSize
883
- }
884
- Object.assign(panelStyle, {
885
- left: `${left}px`,
886
- top: `${top}px`,
887
- minWidth: `${targetWidth}px`
888
- })
889
- } else {
890
- if (placement === 'top') {
891
- panelPlacement = 'top'
892
- panelStyle.bottom = `${targetHeight}px`
893
- } else if (!placement) {
894
- // 如果下面不够放,则向上
895
- if (boundingTop + targetHeight + panelHeight > visibleHeight) {
896
- // 如果上面不够放,则向下(优先)
897
- if (boundingTop - targetHeight - panelHeight > marginSize) {
898
- panelPlacement = 'top'
899
- panelStyle.bottom = `${targetHeight}px`
900
- }
901
- }
902
- }
903
- }
904
- this.panelStyle = panelStyle
905
- this.panelPlacement = panelPlacement
906
- return this.$nextTick()
907
- }
908
- })
909
- },
910
- focus () {
911
- this.isActivated = true
912
- this.$refs.input.focus()
913
- return this.$nextTick()
914
- },
915
- blur () {
916
- this.hideOptionPanel()
917
- this.$refs.input.blur()
918
- return this.$nextTick()
919
- }
920
- }
921
- }