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,1114 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.msgQueue = exports.default = exports.allActivedModals = void 0;
7
- var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
8
- var _size = _interopRequireDefault(require("../../mixins/size"));
9
- var _xeUtils = _interopRequireDefault(require("xe-utils"));
10
- var _utils = _interopRequireWildcard(require("../../tools/utils"));
11
- var _dom = _interopRequireDefault(require("../../tools/dom"));
12
- var _event = require("../../tools/event");
13
- var _log = require("../../tools/log");
14
- var _vn = require("../../tools/vn");
15
- var _index = _interopRequireDefault(require("../../loading/index"));
16
- 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); }
17
- 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; }
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
- 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); }
20
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
25
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
- 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; }
27
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
28
- 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); }
29
- var allActivedModals = exports.allActivedModals = [];
30
- var msgQueue = exports.msgQueue = [];
31
- var _default2 = exports.default = {
32
- name: 'VxeModal',
33
- mixins: [_size.default],
34
- props: {
35
- value: Boolean,
36
- id: String,
37
- type: {
38
- type: String,
39
- default: 'modal'
40
- },
41
- loading: {
42
- type: Boolean,
43
- default: null
44
- },
45
- status: String,
46
- iconStatus: String,
47
- className: String,
48
- top: {
49
- type: [Number, String],
50
- default: function _default() {
51
- return _conf.default.modal.top;
52
- }
53
- },
54
- position: [String, Object],
55
- title: String,
56
- duration: {
57
- type: [Number, String],
58
- default: function _default() {
59
- return _conf.default.modal.duration;
60
- }
61
- },
62
- // 请使用 content
63
- message: [String, Function],
64
- content: [String, Function],
65
- showCancelButton: {
66
- type: Boolean,
67
- default: null
68
- },
69
- cancelButtonText: {
70
- type: String,
71
- default: function _default() {
72
- return _conf.default.modal.cancelButtonText;
73
- }
74
- },
75
- showConfirmButton: {
76
- type: Boolean,
77
- default: function _default() {
78
- return _conf.default.modal.showConfirmButton;
79
- }
80
- },
81
- confirmButtonText: {
82
- type: String,
83
- default: function _default() {
84
- return _conf.default.modal.confirmButtonText;
85
- }
86
- },
87
- lockView: {
88
- type: Boolean,
89
- default: function _default() {
90
- return _conf.default.modal.lockView;
91
- }
92
- },
93
- lockScroll: Boolean,
94
- mask: {
95
- type: Boolean,
96
- default: function _default() {
97
- return _conf.default.modal.mask;
98
- }
99
- },
100
- maskClosable: {
101
- type: Boolean,
102
- default: function _default() {
103
- return _conf.default.modal.maskClosable;
104
- }
105
- },
106
- escClosable: {
107
- type: Boolean,
108
- default: function _default() {
109
- return _conf.default.modal.escClosable;
110
- }
111
- },
112
- resize: {
113
- type: Boolean,
114
- default: function _default() {
115
- return _conf.default.modal.resize;
116
- }
117
- },
118
- showHeader: {
119
- type: Boolean,
120
- default: function _default() {
121
- return _conf.default.modal.showHeader;
122
- }
123
- },
124
- showFooter: {
125
- type: Boolean,
126
- default: function _default() {
127
- return _conf.default.modal.showFooter;
128
- }
129
- },
130
- showZoom: {
131
- type: Boolean,
132
- default: null
133
- },
134
- showClose: {
135
- type: Boolean,
136
- default: function _default() {
137
- return _conf.default.modal.showClose;
138
- }
139
- },
140
- dblclickZoom: {
141
- type: Boolean,
142
- default: function _default() {
143
- return _conf.default.modal.dblclickZoom;
144
- }
145
- },
146
- width: [Number, String],
147
- height: [Number, String],
148
- minWidth: {
149
- type: [Number, String],
150
- default: function _default() {
151
- return _conf.default.modal.minWidth;
152
- }
153
- },
154
- minHeight: {
155
- type: [Number, String],
156
- default: function _default() {
157
- return _conf.default.modal.minHeight;
158
- }
159
- },
160
- zIndex: Number,
161
- marginSize: {
162
- type: [Number, String],
163
- default: function _default() {
164
- return _conf.default.modal.marginSize;
165
- }
166
- },
167
- fullscreen: Boolean,
168
- draggable: {
169
- type: Boolean,
170
- default: function _default() {
171
- return _conf.default.modal.draggable;
172
- }
173
- },
174
- remember: {
175
- type: Boolean,
176
- default: function _default() {
177
- return _conf.default.modal.remember;
178
- }
179
- },
180
- destroyOnClose: {
181
- type: Boolean,
182
- default: function _default() {
183
- return _conf.default.modal.destroyOnClose;
184
- }
185
- },
186
- showTitleOverflow: {
187
- type: Boolean,
188
- default: function _default() {
189
- return _conf.default.modal.showTitleOverflow;
190
- }
191
- },
192
- transfer: {
193
- type: Boolean,
194
- default: function _default() {
195
- return _conf.default.modal.transfer;
196
- }
197
- },
198
- storage: {
199
- type: Boolean,
200
- default: function _default() {
201
- return _conf.default.modal.storage;
202
- }
203
- },
204
- storageKey: {
205
- type: String,
206
- default: function _default() {
207
- return _conf.default.modal.storageKey;
208
- }
209
- },
210
- animat: {
211
- type: Boolean,
212
- default: function _default() {
213
- return _conf.default.modal.animat;
214
- }
215
- },
216
- size: {
217
- type: String,
218
- default: function _default() {
219
- return _conf.default.modal.size || _conf.default.size;
220
- }
221
- },
222
- beforeHideMethod: {
223
- type: Function,
224
- default: function _default() {
225
- return _conf.default.modal.beforeHideMethod;
226
- }
227
- },
228
- slots: Object,
229
- events: Object
230
- },
231
- data: function data() {
232
- return {
233
- initialized: false,
234
- visible: false,
235
- contentVisible: false,
236
- modalTop: 0,
237
- modalZindex: 0,
238
- revertLocat: null,
239
- firstOpen: true
240
- };
241
- },
242
- computed: {
243
- isMsg: function isMsg() {
244
- return this.type === 'message';
245
- }
246
- },
247
- watch: {
248
- width: function width() {
249
- this.recalculate();
250
- },
251
- height: function height() {
252
- this.recalculate();
253
- },
254
- value: function value(visible) {
255
- this[visible ? 'open' : 'close']('model');
256
- }
257
- },
258
- created: function created() {
259
- if (this.storage && !this.id) {
260
- (0, _log.errLog)('vxe.error.reqProp', ['modal.id']);
261
- }
262
- },
263
- mounted: function mounted() {
264
- var $listeners = this.$listeners,
265
- _this$events = this.events,
266
- events = _this$events === void 0 ? {} : _this$events;
267
- if (this.value) {
268
- this.open();
269
- }
270
- this.recalculate();
271
- if (this.escClosable) {
272
- _event.GlobalEvent.on(this, 'keydown', this.handleGlobalKeydownEvent);
273
- }
274
- // 触发 inserted 事件
275
- var type = 'inserted';
276
- var params = {
277
- type: type,
278
- $modal: this,
279
- $event: {
280
- type: type
281
- }
282
- };
283
- if ($listeners.inserted) {
284
- this.$emit('inserted', params);
285
- } else if (events.inserted) {
286
- events.inserted.call(this, params);
287
- }
288
- },
289
- beforeDestroy: function beforeDestroy() {
290
- var $el = this.$el;
291
- _event.GlobalEvent.off(this, 'keydown');
292
- this.removeMsgQueue();
293
- if ($el.parentNode === document.body) {
294
- $el.parentNode.removeChild($el);
295
- }
296
- },
297
- render: function render(h) {
298
- var _ref,
299
- _this = this;
300
- var _e = this._e,
301
- $scopedSlots = this.$scopedSlots,
302
- _this$slots = this.slots,
303
- slots = _this$slots === void 0 ? {} : _this$slots,
304
- initialized = this.initialized,
305
- vSize = this.vSize,
306
- className = this.className,
307
- type = this.type,
308
- resize = this.resize,
309
- showClose = this.showClose,
310
- showZoom = this.showZoom,
311
- animat = this.animat,
312
- draggable = this.draggable,
313
- loading = this.loading,
314
- status = this.status,
315
- iconStatus = this.iconStatus,
316
- showFooter = this.showFooter,
317
- revertLocat = this.revertLocat,
318
- modalTop = this.modalTop,
319
- dblclickZoom = this.dblclickZoom,
320
- contentVisible = this.contentVisible,
321
- visible = this.visible,
322
- title = this.title,
323
- lockScroll = this.lockScroll,
324
- lockView = this.lockView,
325
- mask = this.mask,
326
- isMsg = this.isMsg,
327
- showTitleOverflow = this.showTitleOverflow,
328
- destroyOnClose = this.destroyOnClose,
329
- showCancelButton = this.showCancelButton,
330
- showConfirmButton = this.showConfirmButton;
331
- var content = this.content || this.message;
332
- var defaultSlot = $scopedSlots.default || slots.default;
333
- var footerSlot = $scopedSlots.footer || slots.footer;
334
- var headerSlot = $scopedSlots.header || slots.header;
335
- var titleSlot = $scopedSlots.title || slots.title;
336
- var cornerSlot = $scopedSlots.corner || slots.corner;
337
- var headerOns = {};
338
- if (draggable) {
339
- headerOns.mousedown = this.mousedownEvent;
340
- }
341
- if (showZoom && dblclickZoom && type === 'modal') {
342
- headerOns.dblclick = this.toggleZoomEvent;
343
- }
344
- return h('div', {
345
- class: ['vxe-modal--wrapper', "type--".concat(type), className || '', (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "size--".concat(vSize), vSize), "status--".concat(status), status), 'is--animat', animat), 'lock--scroll', lockScroll), 'lock--view', lockView), 'is--resize', resize), 'is--mask', mask), 'is--maximize', revertLocat), 'is--visible', contentVisible), 'is--active', visible), _defineProperty(_ref, 'is--loading', loading))],
346
- style: {
347
- zIndex: this.modalZindex,
348
- top: modalTop ? "".concat(modalTop, "px") : null
349
- },
350
- on: {
351
- click: this.selfClickEvent
352
- }
353
- }, [h('div', {
354
- class: 'vxe-modal--box',
355
- on: {
356
- mousedown: this.boxMousedownEvent
357
- },
358
- ref: 'modalBox'
359
- }, [this.showHeader ? h('div', {
360
- class: ['vxe-modal--header', {
361
- 'is--draggable': draggable,
362
- 'is--ellipsis': !isMsg && showTitleOverflow
363
- }],
364
- on: headerOns
365
- }, headerSlot ? !initialized || destroyOnClose && !visible ? [] : (0, _vn.getSlotVNs)(headerSlot.call(this, {
366
- $modal: this
367
- }, h)) : [h('div', {
368
- class: 'vxe-modal--header-title'
369
- }, titleSlot ? (0, _vn.getSlotVNs)(titleSlot.call(this, {
370
- $modal: this
371
- }, h)) : title ? (0, _utils.getFuncText)(title) : _conf.default.i18n('vxe.alert.title')), h('div', {
372
- class: 'vxe-modal--header-right'
373
- }, [cornerSlot ? h('span', {
374
- class: 'vxe-modal--corner-wrapper'
375
- }, (0, _vn.getSlotVNs)(cornerSlot({
376
- $modal: this
377
- }))) : _e(), showZoom ? h('i', {
378
- class: ['vxe-modal--zoom-btn', 'trigger--btn', revertLocat ? _conf.default.icon.MODAL_ZOOM_OUT : _conf.default.icon.MODAL_ZOOM_IN],
379
- attrs: {
380
- title: _conf.default.i18n("vxe.modal.zoom".concat(revertLocat ? 'Out' : 'In'))
381
- },
382
- on: {
383
- click: this.toggleZoomEvent
384
- }
385
- }) : _e(), showClose ? h('i', {
386
- class: ['vxe-modal--close-btn', 'trigger--btn', _conf.default.icon.MODAL_CLOSE],
387
- attrs: {
388
- title: _conf.default.i18n('vxe.modal.close')
389
- },
390
- on: {
391
- click: this.closeEvent
392
- }
393
- }) : _e()])]) : null, h('div', {
394
- class: 'vxe-modal--body'
395
- }, [status ? h('div', {
396
- class: 'vxe-modal--status-wrapper'
397
- }, [h('i', {
398
- class: ['vxe-modal--status-icon', iconStatus || _conf.default.icon["MODAL_".concat(status).toLocaleUpperCase()]]
399
- })]) : null, h('div', {
400
- class: 'vxe-modal--content'
401
- }, defaultSlot ? !initialized || destroyOnClose && !visible ? [] : (0, _vn.getSlotVNs)(defaultSlot.call(this, {
402
- $modal: this
403
- }, h)) : (0, _utils.getFuncText)(content)),
404
- /**
405
- * 加载中
406
- */
407
- !isMsg ? h(_index.default, {
408
- class: 'vxe-modal--loading',
409
- props: {
410
- value: loading
411
- }
412
- }) : null]), showFooter ? h('div', {
413
- class: 'vxe-modal--footer'
414
- }, footerSlot ? !initialized || destroyOnClose && !visible ? [] : (0, _vn.getSlotVNs)(footerSlot.call(this, {
415
- $modal: this
416
- }, h)) : [_xeUtils.default.isBoolean(showCancelButton) ? showCancelButton : type === 'confirm' ? h('vxe-button', {
417
- key: 1,
418
- ref: 'cancelBtn',
419
- on: {
420
- click: this.cancelEvent
421
- }
422
- }, this.cancelButtonText || _conf.default.i18n('vxe.button.cancel')) : null, _xeUtils.default.isBoolean(showConfirmButton) ? showConfirmButton : type === 'confirm' || type === 'alert' ? h('vxe-button', {
423
- key: 2,
424
- ref: 'confirmBtn',
425
- props: {
426
- status: 'primary'
427
- },
428
- on: {
429
- click: this.confirmEvent
430
- }
431
- }, this.confirmButtonText || _conf.default.i18n('vxe.button.confirm')) : null]) : null, !isMsg && resize ? h('span', {
432
- class: 'vxe-modal--resize'
433
- }, ['wl', 'wr', 'swst', 'sest', 'st', 'swlb', 'selb', 'sb'].map(function (type) {
434
- return h('span', {
435
- class: "".concat(type, "-resize"),
436
- attrs: {
437
- type: type
438
- },
439
- on: {
440
- mousedown: _this.dragEvent
441
- }
442
- });
443
- })) : null])]);
444
- },
445
- methods: {
446
- recalculate: function recalculate() {
447
- var width = this.width,
448
- height = this.height;
449
- var modalBoxElem = this.getBox();
450
- modalBoxElem.style.width = width ? isNaN(width) ? width : "".concat(width, "px") : null;
451
- modalBoxElem.style.height = height ? isNaN(height) ? height : "".concat(height, "px") : null;
452
- return this.$nextTick();
453
- },
454
- selfClickEvent: function selfClickEvent(evnt) {
455
- if (this.maskClosable && evnt.target === this.$el) {
456
- var type = 'mask';
457
- this.close(type);
458
- }
459
- },
460
- updateZindex: function updateZindex() {
461
- var zIndex = this.zIndex,
462
- modalZindex = this.modalZindex;
463
- if (zIndex) {
464
- this.modalZindex = zIndex;
465
- } else if (modalZindex < _utils.default.getLastZIndex()) {
466
- this.modalZindex = _utils.default.nextZIndex();
467
- }
468
- },
469
- closeEvent: function closeEvent(evnt) {
470
- var _this$events2 = this.events,
471
- events = _this$events2 === void 0 ? {} : _this$events2;
472
- var type = 'close';
473
- var params = {
474
- type: type,
475
- $modal: this,
476
- $event: evnt
477
- };
478
- if (events[type]) {
479
- events[type].call(this, params);
480
- } else {
481
- this.$emit(type, params);
482
- }
483
- this.close(type);
484
- },
485
- confirmEvent: function confirmEvent(evnt) {
486
- var _this$events3 = this.events,
487
- events = _this$events3 === void 0 ? {} : _this$events3;
488
- var type = 'confirm';
489
- var params = {
490
- type: type,
491
- $modal: this,
492
- $event: evnt
493
- };
494
- if (events[type]) {
495
- events[type].call(this, params);
496
- } else {
497
- this.$emit(type, params);
498
- }
499
- this.close(type);
500
- },
501
- cancelEvent: function cancelEvent(evnt) {
502
- var _this$events4 = this.events,
503
- events = _this$events4 === void 0 ? {} : _this$events4;
504
- var type = 'cancel';
505
- var params = {
506
- type: type,
507
- $modal: this,
508
- $event: evnt
509
- };
510
- if (events[type]) {
511
- events[type].call(this, params);
512
- } else {
513
- this.$emit(type, params);
514
- }
515
- this.close(type);
516
- },
517
- open: function open() {
518
- var _this2 = this;
519
- var $refs = this.$refs,
520
- _this$events5 = this.events,
521
- events = _this$events5 === void 0 ? {} : _this$events5,
522
- initialized = this.initialized,
523
- duration = this.duration,
524
- visible = this.visible,
525
- isMsg = this.isMsg,
526
- remember = this.remember,
527
- showFooter = this.showFooter;
528
- if (!initialized) {
529
- this.initialized = true;
530
- if (this.transfer) {
531
- document.body.appendChild(this.$el);
532
- }
533
- }
534
- if (!visible) {
535
- if (!remember) {
536
- this.recalculate();
537
- }
538
- this.visible = true;
539
- this.contentVisible = false;
540
- this.updateZindex();
541
- allActivedModals.push(this);
542
- setTimeout(function () {
543
- _this2.contentVisible = true;
544
- _this2.$nextTick(function () {
545
- if (showFooter) {
546
- var operBtn = $refs.confirmBtn || $refs.cancelBtn;
547
- if (operBtn) {
548
- operBtn.focus();
549
- }
550
- }
551
- var type = '';
552
- var params = {
553
- type: type,
554
- $modal: _this2
555
- };
556
- if (events.show) {
557
- events.show.call(_this2, params);
558
- } else {
559
- _this2.$emit('input', true);
560
- _this2.$emit('show', params);
561
- }
562
- });
563
- }, 10);
564
- if (isMsg) {
565
- this.addMsgQueue();
566
- if (duration !== -1) {
567
- setTimeout(function () {
568
- return _this2.close('close');
569
- }, _xeUtils.default.toNumber(duration));
570
- }
571
- } else {
572
- this.$nextTick(function () {
573
- var firstOpen = _this2.firstOpen,
574
- fullscreen = _this2.fullscreen;
575
- if (!remember || firstOpen) {
576
- _this2.updatePosition().then(function () {
577
- setTimeout(function () {
578
- return _this2.updatePosition();
579
- }, 20);
580
- });
581
- }
582
- if (firstOpen) {
583
- _this2.firstOpen = false;
584
- if (_this2.hasPosStorage()) {
585
- _this2.restorePosStorage();
586
- } else if (fullscreen) {
587
- _this2.$nextTick(function () {
588
- return _this2.maximize();
589
- });
590
- }
591
- } else {
592
- if (fullscreen) {
593
- _this2.$nextTick(function () {
594
- return _this2.maximize();
595
- });
596
- }
597
- }
598
- });
599
- }
600
- }
601
- },
602
- addMsgQueue: function addMsgQueue() {
603
- if (msgQueue.indexOf(this) === -1) {
604
- msgQueue.push(this);
605
- }
606
- this.updateStyle();
607
- },
608
- removeMsgQueue: function removeMsgQueue() {
609
- var _this3 = this;
610
- if (msgQueue.indexOf(this) > -1) {
611
- _xeUtils.default.remove(msgQueue, function (comp) {
612
- return comp === _this3;
613
- });
614
- }
615
- this.updateStyle();
616
- },
617
- updateStyle: function updateStyle() {
618
- this.$nextTick(function () {
619
- var offsetTop = 0;
620
- msgQueue.forEach(function (comp) {
621
- offsetTop += _xeUtils.default.toNumber(comp.top);
622
- comp.modalTop = offsetTop;
623
- offsetTop += comp.$refs.modalBox.clientHeight;
624
- });
625
- });
626
- },
627
- updatePosition: function updatePosition() {
628
- var _this4 = this;
629
- return this.$nextTick().then(function () {
630
- var marginSize = _this4.marginSize,
631
- position = _this4.position;
632
- var modalBoxElem = _this4.getBox();
633
- var clientVisibleWidth = document.documentElement.clientWidth || document.body.clientWidth;
634
- var clientVisibleHeight = document.documentElement.clientHeight || document.body.clientHeight;
635
- var isPosCenter = position === 'center';
636
- var _ref2 = isPosCenter ? {
637
- top: position,
638
- left: position
639
- } : Object.assign({}, position),
640
- top = _ref2.top,
641
- left = _ref2.left;
642
- var topCenter = isPosCenter || top === 'center';
643
- var leftCenter = isPosCenter || left === 'center';
644
- var posTop = '';
645
- var posLeft = '';
646
- if (left && !leftCenter) {
647
- posLeft = isNaN(left) ? left : "".concat(left, "px");
648
- } else {
649
- posLeft = "".concat(Math.max(marginSize, clientVisibleWidth / 2 - modalBoxElem.offsetWidth / 2), "px");
650
- }
651
- if (top && !topCenter) {
652
- posTop = isNaN(top) ? top : "".concat(top, "px");
653
- } else {
654
- posTop = "".concat(Math.max(marginSize, clientVisibleHeight / 2 - modalBoxElem.offsetHeight / 2), "px");
655
- }
656
- modalBoxElem.style.top = posTop;
657
- modalBoxElem.style.left = posLeft;
658
- });
659
- },
660
- close: function close(type) {
661
- var _this5 = this;
662
- var _this$events6 = this.events,
663
- events = _this$events6 === void 0 ? {} : _this$events6,
664
- remember = this.remember,
665
- visible = this.visible,
666
- isMsg = this.isMsg,
667
- beforeHideMethod = this.beforeHideMethod;
668
- var params = {
669
- type: type,
670
- $modal: this
671
- };
672
- if (visible) {
673
- Promise.resolve(beforeHideMethod ? beforeHideMethod(params) : null).then(function (rest) {
674
- if (!_xeUtils.default.isError(rest)) {
675
- if (isMsg) {
676
- _this5.removeMsgQueue();
677
- }
678
- _this5.contentVisible = false;
679
- if (!remember) {
680
- _this5.revertLocat = null;
681
- }
682
- _xeUtils.default.remove(allActivedModals, function (item) {
683
- return item === _this5;
684
- });
685
- _this5.$emit('before-hide', params);
686
- setTimeout(function () {
687
- _this5.visible = false;
688
- if (events.hide) {
689
- events.hide.call(_this5, params);
690
- } else {
691
- _this5.$emit('input', false);
692
- _this5.$emit('hide', params);
693
- }
694
- }, 200);
695
- }
696
- }).catch(function (e) {
697
- return e;
698
- });
699
- }
700
- },
701
- handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
702
- var _this6 = this;
703
- var isEsc = evnt.keyCode === 27;
704
- if (isEsc) {
705
- var lastModal = _xeUtils.default.max(allActivedModals, function (item) {
706
- return item.modalZindex;
707
- });
708
- // 多个时,只关掉最上层的窗口
709
- if (lastModal) {
710
- setTimeout(function () {
711
- if (lastModal === _this6 && lastModal.escClosable) {
712
- _this6.close('exit');
713
- }
714
- }, 10);
715
- }
716
- }
717
- },
718
- getBox: function getBox() {
719
- return this.$refs.modalBox;
720
- },
721
- isMaximized: function isMaximized() {
722
- return !!this.revertLocat;
723
- },
724
- maximize: function maximize() {
725
- var _this7 = this;
726
- return this.$nextTick().then(function () {
727
- if (!_this7.revertLocat) {
728
- var modalBoxElem = _this7.getBox();
729
- _this7.revertLocat = {
730
- top: modalBoxElem.offsetTop,
731
- left: modalBoxElem.offsetLeft,
732
- width: modalBoxElem.offsetWidth + (modalBoxElem.style.width ? 0 : 1),
733
- height: modalBoxElem.offsetHeight + (modalBoxElem.style.height ? 0 : 1)
734
- };
735
- Object.assign(modalBoxElem.style, {
736
- top: '0',
737
- left: '0',
738
- width: '100%',
739
- height: '100%'
740
- });
741
- _this7.savePosStorage();
742
- }
743
- });
744
- },
745
- revert: function revert() {
746
- var _this8 = this;
747
- return this.$nextTick().then(function () {
748
- var revertLocat = _this8.revertLocat;
749
- if (revertLocat) {
750
- var modalBoxElem = _this8.getBox();
751
- _this8.revertLocat = null;
752
- Object.assign(modalBoxElem.style, {
753
- top: "".concat(revertLocat.top, "px"),
754
- left: "".concat(revertLocat.left, "px"),
755
- width: "".concat(revertLocat.width, "px"),
756
- height: "".concat(revertLocat.height, "px")
757
- });
758
- _this8.savePosStorage();
759
- }
760
- });
761
- },
762
- zoom: function zoom() {
763
- var _this9 = this;
764
- return this[this.revertLocat ? 'revert' : 'maximize']().then(function () {
765
- return _this9.isMaximized();
766
- });
767
- },
768
- toggleZoomEvent: function toggleZoomEvent(evnt) {
769
- var _this10 = this;
770
- var $listeners = this.$listeners,
771
- revertLocat = this.revertLocat,
772
- _this$events7 = this.events,
773
- events = _this$events7 === void 0 ? {} : _this$events7;
774
- var params = {
775
- type: revertLocat ? 'revert' : 'max',
776
- $modal: this,
777
- $event: evnt
778
- };
779
- return this.zoom().then(function () {
780
- if ($listeners.zoom) {
781
- _this10.$emit('zoom', params);
782
- } else if (events.zoom) {
783
- events.zoom.call(_this10, params);
784
- }
785
- });
786
- },
787
- getPosition: function getPosition() {
788
- if (!this.isMsg) {
789
- var modalBoxElem = this.getBox();
790
- if (modalBoxElem) {
791
- return {
792
- top: modalBoxElem.offsetTop,
793
- left: modalBoxElem.offsetLeft
794
- };
795
- }
796
- }
797
- return null;
798
- },
799
- setPosition: function setPosition(top, left) {
800
- if (!this.isMsg) {
801
- var modalBoxElem = this.getBox();
802
- if (_xeUtils.default.isNumber(top)) {
803
- modalBoxElem.style.top = "".concat(top, "px");
804
- }
805
- if (_xeUtils.default.isNumber(left)) {
806
- modalBoxElem.style.left = "".concat(left, "px");
807
- }
808
- }
809
- return this.$nextTick();
810
- },
811
- boxMousedownEvent: function boxMousedownEvent() {
812
- var modalZindex = this.modalZindex;
813
- if (allActivedModals.some(function (_vm) {
814
- return _vm.visible && _vm.modalZindex > modalZindex;
815
- })) {
816
- this.updateZindex();
817
- }
818
- },
819
- mousedownEvent: function mousedownEvent(evnt) {
820
- var _this11 = this;
821
- var remember = this.remember,
822
- storage = this.storage,
823
- marginSize = this.marginSize,
824
- revertLocat = this.revertLocat;
825
- var modalBoxElem = this.getBox();
826
- if (!revertLocat && evnt.button === 0 && !_dom.default.getEventTargetNode(evnt, modalBoxElem, 'trigger--btn').flag) {
827
- evnt.preventDefault();
828
- var domMousemove = document.onmousemove;
829
- var domMouseup = document.onmouseup;
830
- var disX = evnt.clientX - modalBoxElem.offsetLeft;
831
- var disY = evnt.clientY - modalBoxElem.offsetTop;
832
- var _DomTools$getDomNode = _dom.default.getDomNode(),
833
- visibleHeight = _DomTools$getDomNode.visibleHeight,
834
- visibleWidth = _DomTools$getDomNode.visibleWidth;
835
- document.onmousemove = function (evnt) {
836
- evnt.preventDefault();
837
- var offsetWidth = modalBoxElem.offsetWidth;
838
- var offsetHeight = modalBoxElem.offsetHeight;
839
- var minX = marginSize;
840
- var maxX = visibleWidth - offsetWidth - marginSize - 1;
841
- var minY = marginSize;
842
- var maxY = visibleHeight - offsetHeight - marginSize - 1;
843
- var left = evnt.clientX - disX;
844
- var top = evnt.clientY - disY;
845
- if (left > maxX) {
846
- left = maxX;
847
- }
848
- if (left < minX) {
849
- left = minX;
850
- }
851
- if (top > maxY) {
852
- top = maxY;
853
- }
854
- if (top < minY) {
855
- top = minY;
856
- }
857
- modalBoxElem.style.left = "".concat(left, "px");
858
- modalBoxElem.style.top = "".concat(top, "px");
859
- modalBoxElem.className = modalBoxElem.className.replace(/\s?is--drag/, '') + ' is--drag';
860
- _this11.$emit('move', {
861
- type: 'move',
862
- $event: evnt
863
- });
864
- };
865
- document.onmouseup = function () {
866
- document.onmousemove = domMousemove;
867
- document.onmouseup = domMouseup;
868
- if (remember && storage) {
869
- _this11.$nextTick(function () {
870
- _this11.savePosStorage();
871
- });
872
- }
873
- setTimeout(function () {
874
- modalBoxElem.className = modalBoxElem.className.replace(/\s?is--drag/, '');
875
- }, 50);
876
- };
877
- }
878
- },
879
- dragEvent: function dragEvent(evnt) {
880
- var _this12 = this;
881
- evnt.preventDefault();
882
- var $listeners = this.$listeners,
883
- marginSize = this.marginSize,
884
- _this$events8 = this.events,
885
- events = _this$events8 === void 0 ? {} : _this$events8,
886
- remember = this.remember,
887
- storage = this.storage;
888
- var _DomTools$getDomNode2 = _dom.default.getDomNode(),
889
- visibleHeight = _DomTools$getDomNode2.visibleHeight,
890
- visibleWidth = _DomTools$getDomNode2.visibleWidth;
891
- var type = evnt.target.getAttribute('type');
892
- var minWidth = _xeUtils.default.toNumber(this.minWidth);
893
- var minHeight = _xeUtils.default.toNumber(this.minHeight);
894
- var maxWidth = visibleWidth;
895
- var maxHeight = visibleHeight;
896
- var modalBoxElem = this.getBox();
897
- var domMousemove = document.onmousemove;
898
- var domMouseup = document.onmouseup;
899
- var clientWidth = modalBoxElem.clientWidth;
900
- var clientHeight = modalBoxElem.clientHeight;
901
- var disX = evnt.clientX;
902
- var disY = evnt.clientY;
903
- var offsetTop = modalBoxElem.offsetTop;
904
- var offsetLeft = modalBoxElem.offsetLeft;
905
- var params = {
906
- type: 'resize',
907
- $modal: this
908
- };
909
- document.onmousemove = function (evnt) {
910
- evnt.preventDefault();
911
- var dragLeft;
912
- var dragTop;
913
- var width;
914
- var height;
915
- switch (type) {
916
- case 'wl':
917
- dragLeft = disX - evnt.clientX;
918
- width = dragLeft + clientWidth;
919
- if (offsetLeft - dragLeft > marginSize) {
920
- if (width > minWidth) {
921
- modalBoxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
922
- modalBoxElem.style.left = "".concat(offsetLeft - dragLeft, "px");
923
- }
924
- }
925
- break;
926
- case 'swst':
927
- dragLeft = disX - evnt.clientX;
928
- dragTop = disY - evnt.clientY;
929
- width = dragLeft + clientWidth;
930
- height = dragTop + clientHeight;
931
- if (offsetLeft - dragLeft > marginSize) {
932
- if (width > minWidth) {
933
- modalBoxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
934
- modalBoxElem.style.left = "".concat(offsetLeft - dragLeft, "px");
935
- }
936
- }
937
- if (offsetTop - dragTop > marginSize) {
938
- if (height > minHeight) {
939
- modalBoxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
940
- modalBoxElem.style.top = "".concat(offsetTop - dragTop, "px");
941
- }
942
- }
943
- break;
944
- case 'swlb':
945
- dragLeft = disX - evnt.clientX;
946
- dragTop = evnt.clientY - disY;
947
- width = dragLeft + clientWidth;
948
- height = dragTop + clientHeight;
949
- if (offsetLeft - dragLeft > marginSize) {
950
- if (width > minWidth) {
951
- modalBoxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
952
- modalBoxElem.style.left = "".concat(offsetLeft - dragLeft, "px");
953
- }
954
- }
955
- if (offsetTop + height + marginSize < visibleHeight) {
956
- if (height > minHeight) {
957
- modalBoxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
958
- }
959
- }
960
- break;
961
- case 'st':
962
- dragTop = disY - evnt.clientY;
963
- height = clientHeight + dragTop;
964
- if (offsetTop - dragTop > marginSize) {
965
- if (height > minHeight) {
966
- modalBoxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
967
- modalBoxElem.style.top = "".concat(offsetTop - dragTop, "px");
968
- }
969
- }
970
- break;
971
- case 'wr':
972
- dragLeft = evnt.clientX - disX;
973
- width = dragLeft + clientWidth;
974
- if (offsetLeft + width + marginSize < visibleWidth) {
975
- if (width > minWidth) {
976
- modalBoxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
977
- }
978
- }
979
- break;
980
- case 'sest':
981
- dragLeft = evnt.clientX - disX;
982
- dragTop = disY - evnt.clientY;
983
- width = dragLeft + clientWidth;
984
- height = dragTop + clientHeight;
985
- if (offsetLeft + width + marginSize < visibleWidth) {
986
- if (width > minWidth) {
987
- modalBoxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
988
- }
989
- }
990
- if (offsetTop - dragTop > marginSize) {
991
- if (height > minHeight) {
992
- modalBoxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
993
- modalBoxElem.style.top = "".concat(offsetTop - dragTop, "px");
994
- }
995
- }
996
- break;
997
- case 'selb':
998
- dragLeft = evnt.clientX - disX;
999
- dragTop = evnt.clientY - disY;
1000
- width = dragLeft + clientWidth;
1001
- height = dragTop + clientHeight;
1002
- if (offsetLeft + width + marginSize < visibleWidth) {
1003
- if (width > minWidth) {
1004
- modalBoxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
1005
- }
1006
- }
1007
- if (offsetTop + height + marginSize < visibleHeight) {
1008
- if (height > minHeight) {
1009
- modalBoxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
1010
- }
1011
- }
1012
- break;
1013
- case 'sb':
1014
- dragTop = evnt.clientY - disY;
1015
- height = dragTop + clientHeight;
1016
- if (offsetTop + height + marginSize < visibleHeight) {
1017
- if (height > minHeight) {
1018
- modalBoxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
1019
- }
1020
- }
1021
- break;
1022
- }
1023
- modalBoxElem.className = modalBoxElem.className.replace(/\s?is--drag/, '') + ' is--drag';
1024
- if (remember && storage) {
1025
- _this12.savePosStorage();
1026
- }
1027
- if ($listeners.resize) {
1028
- _this12.$emit('resize', params);
1029
- } else if (events.resize) {
1030
- events.resize.call(_this12, params);
1031
- }
1032
- };
1033
- document.onmouseup = function () {
1034
- _this12.revertLocat = null;
1035
- document.onmousemove = domMousemove;
1036
- document.onmouseup = domMouseup;
1037
- setTimeout(function () {
1038
- modalBoxElem.className = modalBoxElem.className.replace(/\s?is--drag/, '');
1039
- }, 50);
1040
- };
1041
- },
1042
- getStorageMap: function getStorageMap(key) {
1043
- var version = _conf.default.version;
1044
- var rest = _xeUtils.default.toStringJSON(localStorage.getItem(key));
1045
- return rest && rest._v === version ? rest : {
1046
- _v: version
1047
- };
1048
- },
1049
- hasPosStorage: function hasPosStorage() {
1050
- var id = this.id,
1051
- remember = this.remember,
1052
- storage = this.storage,
1053
- storageKey = this.storageKey;
1054
- return !!(remember && storage && this.getStorageMap(storageKey)[id]);
1055
- },
1056
- restorePosStorage: function restorePosStorage() {
1057
- var id = this.id,
1058
- remember = this.remember,
1059
- storage = this.storage,
1060
- storageKey = this.storageKey;
1061
- if (remember && storage) {
1062
- var posStorage = this.getStorageMap(storageKey)[id];
1063
- if (posStorage) {
1064
- var modalBoxElem = this.getBox();
1065
- var _posStorage$split = posStorage.split(','),
1066
- _posStorage$split2 = _slicedToArray(_posStorage$split, 8),
1067
- left = _posStorage$split2[0],
1068
- top = _posStorage$split2[1],
1069
- width = _posStorage$split2[2],
1070
- height = _posStorage$split2[3],
1071
- zoomLeft = _posStorage$split2[4],
1072
- zoomTop = _posStorage$split2[5],
1073
- zoomWidth = _posStorage$split2[6],
1074
- zoomHeight = _posStorage$split2[7];
1075
- if (left) {
1076
- modalBoxElem.style.left = "".concat(left, "px");
1077
- }
1078
- if (top) {
1079
- modalBoxElem.style.top = "".concat(top, "px");
1080
- }
1081
- if (width) {
1082
- modalBoxElem.style.width = "".concat(width, "px");
1083
- }
1084
- if (height) {
1085
- modalBoxElem.style.height = "".concat(height, "px");
1086
- }
1087
- if (zoomLeft && zoomTop) {
1088
- this.revertLocat = {
1089
- left: zoomLeft,
1090
- top: zoomTop,
1091
- width: zoomWidth,
1092
- height: zoomHeight
1093
- };
1094
- }
1095
- }
1096
- }
1097
- },
1098
- savePosStorage: function savePosStorage() {
1099
- var id = this.id,
1100
- remember = this.remember,
1101
- storage = this.storage,
1102
- storageKey = this.storageKey,
1103
- revertLocat = this.revertLocat;
1104
- if (remember && storage) {
1105
- var modalBoxElem = this.getBox();
1106
- var posStorageMap = this.getStorageMap(storageKey);
1107
- posStorageMap[id] = [modalBoxElem.style.left, modalBoxElem.style.top, modalBoxElem.style.width, modalBoxElem.style.height].concat(revertLocat ? [revertLocat.left, revertLocat.top, revertLocat.width, revertLocat.height] : []).map(function (val) {
1108
- return val ? _xeUtils.default.toNumber(val) : '';
1109
- }).join(',');
1110
- localStorage.setItem(storageKey, _xeUtils.default.toJSONString(posStorageMap));
1111
- }
1112
- }
1113
- }
1114
- };