vxe-table 4.3.5 → 4.3.6-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/es/button/style.css +465 -341
  2. package/es/checkbox/style.css +156 -127
  3. package/es/checkbox-group/style.css +1 -1
  4. package/es/colgroup/style.css +1 -1
  5. package/es/column/style.css +1 -1
  6. package/es/edit/style.css +1 -1
  7. package/es/export/src/hook.js +1 -0
  8. package/es/export/style.css +136 -108
  9. package/es/filter/src/hook.js +1 -1
  10. package/es/filter/style.css +103 -82
  11. package/es/form/src/form.js +5 -4
  12. package/es/form/style.css +201 -168
  13. package/es/form-gather/style.css +1 -1
  14. package/es/form-item/style.css +1 -1
  15. package/es/grid/style.css +61 -50
  16. package/es/icon/style/iconfont.1669214286403.ttf +0 -0
  17. package/es/icon/style/iconfont.1669214286403.woff +0 -0
  18. package/es/icon/style/iconfont.1669214286403.woff2 +0 -0
  19. package/es/icon/style.css +372 -195
  20. package/es/iconfont.1669214286403.ttf +0 -0
  21. package/es/iconfont.1669214286403.woff +0 -0
  22. package/es/iconfont.1669214286403.woff2 +0 -0
  23. package/es/input/style.css +771 -595
  24. package/es/keyboard/style.css +1 -1
  25. package/es/list/src/list.js +7 -1
  26. package/es/list/style.css +19 -14
  27. package/es/loading/style.css +52 -48
  28. package/es/menu/style.css +79 -59
  29. package/es/modal/style.css +311 -247
  30. package/es/optgroup/style.css +1 -1
  31. package/es/option/style.css +1 -1
  32. package/es/pager/style.css +307 -257
  33. package/es/pulldown/src/pulldown.js +9 -3
  34. package/es/pulldown/style.css +42 -31
  35. package/es/radio/style.css +184 -151
  36. package/es/radio-button/style.css +1 -1
  37. package/es/radio-group/style.css +1 -1
  38. package/es/select/style.css +108 -79
  39. package/es/style.css +1 -1
  40. package/es/style.min.css +1 -1
  41. package/es/switch/style.css +87 -67
  42. package/es/table/src/column.js +2 -0
  43. package/es/table/src/columnInfo.js +1 -0
  44. package/es/table/src/table.js +16 -16
  45. package/es/table/style.css +1025 -835
  46. package/es/textarea/style.css +57 -41
  47. package/es/toolbar/style.css +216 -174
  48. package/es/tools/log.js +1 -1
  49. package/es/tooltip/style.css +87 -63
  50. package/es/v-x-e-table/index.js +1 -1
  51. package/es/v-x-e-table/style.css +424 -243
  52. package/es/validator/style.css +1 -1
  53. package/es/vxe-button/style.css +465 -341
  54. package/es/vxe-checkbox/style.css +156 -127
  55. package/es/vxe-checkbox-group/style.css +1 -1
  56. package/es/vxe-colgroup/style.css +1 -1
  57. package/es/vxe-column/style.css +1 -1
  58. package/es/vxe-form/style.css +201 -168
  59. package/es/vxe-form-gather/style.css +1 -1
  60. package/es/vxe-form-item/style.css +1 -1
  61. package/es/vxe-grid/style.css +61 -50
  62. package/es/vxe-icon/style.css +372 -195
  63. package/es/vxe-input/style.css +771 -595
  64. package/es/vxe-list/style.css +19 -14
  65. package/es/vxe-loading/style.css +52 -48
  66. package/es/vxe-modal/style.css +311 -247
  67. package/es/vxe-module-edit/style.css +1 -1
  68. package/es/vxe-module-export/style.css +136 -108
  69. package/es/vxe-module-filter/style.css +103 -82
  70. package/es/vxe-module-keyboard/style.css +1 -1
  71. package/es/vxe-module-menu/style.css +79 -59
  72. package/es/vxe-module-validator/style.css +1 -1
  73. package/es/vxe-optgroup/style.css +1 -1
  74. package/es/vxe-option/style.css +1 -1
  75. package/es/vxe-pager/style.css +307 -257
  76. package/es/vxe-pulldown/style.css +42 -31
  77. package/es/vxe-radio/style.css +184 -151
  78. package/es/vxe-radio-button/style.css +1 -1
  79. package/es/vxe-radio-group/style.css +1 -1
  80. package/es/vxe-select/style.css +108 -79
  81. package/es/vxe-switch/style.css +87 -67
  82. package/es/vxe-table/style.css +1025 -835
  83. package/es/vxe-textarea/style.css +57 -41
  84. package/es/vxe-toolbar/style.css +216 -174
  85. package/es/vxe-tooltip/style.css +87 -63
  86. package/lib/all.js +45 -115
  87. package/lib/all.min.js +1 -1
  88. package/lib/button/index.js +1 -7
  89. package/lib/button/index.min.js +1 -1
  90. package/lib/button/src/button.js +48 -113
  91. package/lib/button/src/button.min.js +1 -1
  92. package/lib/button/style/style.css +465 -341
  93. package/lib/button/style/style.min.css +1 -1
  94. package/lib/checkbox/index.js +1 -7
  95. package/lib/checkbox/index.min.js +1 -1
  96. package/lib/checkbox/src/checkbox.js +12 -32
  97. package/lib/checkbox/src/checkbox.min.js +1 -1
  98. package/lib/checkbox/src/group.js +13 -28
  99. package/lib/checkbox/src/group.min.js +1 -1
  100. package/lib/checkbox/style/style.css +156 -127
  101. package/lib/checkbox/style/style.min.css +1 -1
  102. package/lib/checkbox-group/index.js +1 -7
  103. package/lib/checkbox-group/index.min.js +1 -1
  104. package/lib/checkbox-group/style/style.css +1 -1
  105. package/lib/colgroup/index.js +5 -12
  106. package/lib/colgroup/index.min.js +1 -1
  107. package/lib/colgroup/style/style.css +1 -1
  108. package/lib/column/index.js +5 -12
  109. package/lib/column/index.min.js +1 -1
  110. package/lib/column/style/style.css +1 -1
  111. package/lib/dynamics/index.js +1 -5
  112. package/lib/dynamics/index.min.js +1 -1
  113. package/lib/edit/index.js +1 -5
  114. package/lib/edit/index.min.js +1 -1
  115. package/lib/edit/src/hook.js +102 -248
  116. package/lib/edit/src/hook.min.js +1 -1
  117. package/lib/edit/style/style.css +1 -1
  118. package/lib/export/index.js +4 -19
  119. package/lib/export/index.min.js +1 -1
  120. package/lib/export/src/export-panel.js +38 -77
  121. package/lib/export/src/export-panel.min.js +1 -1
  122. package/lib/export/src/hook.js +127 -380
  123. package/lib/export/src/hook.min.js +1 -1
  124. package/lib/export/src/import-panel.js +17 -39
  125. package/lib/export/src/import-panel.min.js +1 -1
  126. package/lib/export/src/util.js +10 -52
  127. package/lib/export/src/util.min.js +1 -1
  128. package/lib/export/style/style.css +136 -108
  129. package/lib/export/style/style.min.css +1 -1
  130. package/lib/filter/index.js +1 -10
  131. package/lib/filter/index.min.js +1 -1
  132. package/lib/filter/src/hook.js +31 -82
  133. package/lib/filter/src/hook.min.js +1 -1
  134. package/lib/filter/src/panel.js +25 -52
  135. package/lib/filter/src/panel.min.js +1 -1
  136. package/lib/filter/style/style.css +103 -82
  137. package/lib/filter/style/style.min.css +1 -1
  138. package/lib/footer/index.js +1 -7
  139. package/lib/footer/index.min.js +1 -1
  140. package/lib/footer/src/footer.js +51 -96
  141. package/lib/footer/src/footer.min.js +1 -1
  142. package/lib/form/index.js +1 -7
  143. package/lib/form/index.min.js +1 -1
  144. package/lib/form/src/form-config-item.js +27 -56
  145. package/lib/form/src/form-config-item.min.js +1 -1
  146. package/lib/form/src/form-gather.js +3 -12
  147. package/lib/form/src/form-gather.min.js +1 -1
  148. package/lib/form/src/form-item.js +23 -52
  149. package/lib/form/src/form-item.min.js +1 -1
  150. package/lib/form/src/form.js +78 -185
  151. package/lib/form/src/form.min.js +1 -1
  152. package/lib/form/src/itemInfo.js +1 -9
  153. package/lib/form/src/render.js +7 -26
  154. package/lib/form/src/render.min.js +1 -1
  155. package/lib/form/src/util.js +4 -28
  156. package/lib/form/src/util.min.js +1 -1
  157. package/lib/form/style/style.css +201 -168
  158. package/lib/form/style/style.min.css +1 -1
  159. package/lib/form-gather/index.js +1 -7
  160. package/lib/form-gather/index.min.js +1 -1
  161. package/lib/form-gather/style/style.css +1 -1
  162. package/lib/form-item/index.js +1 -7
  163. package/lib/form-item/index.min.js +1 -1
  164. package/lib/form-item/style/style.css +1 -1
  165. package/lib/grid/index.js +1 -7
  166. package/lib/grid/index.min.js +1 -1
  167. package/lib/grid/src/grid.js +97 -315
  168. package/lib/grid/src/grid.min.js +1 -1
  169. package/lib/grid/style/style.css +61 -50
  170. package/lib/grid/style/style.min.css +1 -1
  171. package/lib/header/index.js +1 -7
  172. package/lib/header/index.min.js +1 -1
  173. package/lib/header/src/header.js +47 -87
  174. package/lib/header/src/header.min.js +1 -1
  175. package/lib/header/src/util.js +3 -14
  176. package/lib/header/src/util.min.js +1 -1
  177. package/lib/hooks/size.js +0 -2
  178. package/lib/icon/index.js +1 -7
  179. package/lib/icon/index.min.js +1 -1
  180. package/lib/icon/src/icon.js +2 -7
  181. package/lib/icon/style/iconfont.1669214286403.ttf +0 -0
  182. package/lib/icon/style/iconfont.1669214286403.woff +0 -0
  183. package/lib/icon/style/iconfont.1669214286403.woff2 +0 -0
  184. package/lib/icon/style/style.css +372 -195
  185. package/lib/icon/style/style.min.css +719 -1
  186. package/lib/iconfont.1669214286403.ttf +0 -0
  187. package/lib/iconfont.1669214286403.woff +0 -0
  188. package/lib/iconfont.1669214286403.woff2 +0 -0
  189. package/lib/index.common.js +3 -10
  190. package/lib/index.common.min.js +1 -1
  191. package/lib/index.umd.js +14466 -23839
  192. package/lib/index.umd.min.js +1 -1
  193. package/lib/input/index.js +1 -7
  194. package/lib/input/index.min.js +1 -1
  195. package/lib/input/src/date.js +0 -10
  196. package/lib/input/src/date.min.js +1 -1
  197. package/lib/input/src/input.js +217 -553
  198. package/lib/input/src/input.min.js +1 -1
  199. package/lib/input/src/number.js +0 -5
  200. package/lib/input/style/style.css +771 -595
  201. package/lib/input/style/style.min.css +1 -1
  202. package/lib/keyboard/index.js +1 -5
  203. package/lib/keyboard/index.min.js +1 -1
  204. package/lib/keyboard/src/hook.js +40 -106
  205. package/lib/keyboard/src/hook.min.js +1 -1
  206. package/lib/keyboard/style/style.css +1 -1
  207. package/lib/list/index.js +1 -7
  208. package/lib/list/index.min.js +1 -1
  209. package/lib/list/src/list.js +39 -91
  210. package/lib/list/src/list.min.js +1 -1
  211. package/lib/list/style/style.css +19 -14
  212. package/lib/loading/index.js +1 -4
  213. package/lib/loading/index.min.js +1 -1
  214. package/lib/loading/src/loading.js +1 -6
  215. package/lib/loading/style/style.css +52 -48
  216. package/lib/loading/style/style.min.css +1 -1
  217. package/lib/locale/lang/zh-HK.js +0 -3
  218. package/lib/locale/lang/zh-MO.js +0 -3
  219. package/lib/locale/lang/zh-TW.js +0 -3
  220. package/lib/menu/index.js +1 -10
  221. package/lib/menu/index.min.js +1 -1
  222. package/lib/menu/src/hooks.js +45 -109
  223. package/lib/menu/src/hooks.min.js +1 -1
  224. package/lib/menu/src/panel.js +10 -19
  225. package/lib/menu/src/panel.min.js +1 -1
  226. package/lib/menu/style/style.css +79 -59
  227. package/lib/menu/style/style.min.css +1 -1
  228. package/lib/modal/index.js +5 -36
  229. package/lib/modal/index.min.js +1 -1
  230. package/lib/modal/src/modal.js +128 -315
  231. package/lib/modal/src/modal.min.js +1 -1
  232. package/lib/modal/style/style.css +311 -247
  233. package/lib/modal/style/style.min.css +1 -1
  234. package/lib/optgroup/index.js +1 -7
  235. package/lib/optgroup/index.min.js +1 -1
  236. package/lib/optgroup/style/style.css +1 -1
  237. package/lib/option/index.js +1 -7
  238. package/lib/option/index.min.js +1 -1
  239. package/lib/option/style/style.css +1 -1
  240. package/lib/pager/index.js +1 -7
  241. package/lib/pager/index.min.js +1 -1
  242. package/lib/pager/src/pager.js +74 -151
  243. package/lib/pager/src/pager.min.js +1 -1
  244. package/lib/pager/style/style.css +307 -257
  245. package/lib/pager/style/style.min.css +1 -1
  246. package/lib/pulldown/index.js +1 -7
  247. package/lib/pulldown/index.min.js +1 -1
  248. package/lib/pulldown/src/pulldown.js +46 -90
  249. package/lib/pulldown/src/pulldown.min.js +1 -1
  250. package/lib/pulldown/style/style.css +42 -31
  251. package/lib/pulldown/style/style.min.css +1 -1
  252. package/lib/radio/index.js +1 -7
  253. package/lib/radio/index.min.js +1 -1
  254. package/lib/radio/src/button.js +14 -32
  255. package/lib/radio/src/button.min.js +1 -1
  256. package/lib/radio/src/group.js +11 -22
  257. package/lib/radio/src/group.min.js +1 -1
  258. package/lib/radio/src/radio.js +15 -34
  259. package/lib/radio/src/radio.min.js +1 -1
  260. package/lib/radio/style/style.css +184 -151
  261. package/lib/radio/style/style.min.css +1 -1
  262. package/lib/radio-button/index.js +1 -7
  263. package/lib/radio-button/index.min.js +1 -1
  264. package/lib/radio-button/style/style.css +1 -1
  265. package/lib/radio-group/index.js +1 -7
  266. package/lib/radio-group/index.min.js +1 -1
  267. package/lib/radio-group/style/style.css +1 -1
  268. package/lib/select/index.js +1 -7
  269. package/lib/select/index.min.js +1 -1
  270. package/lib/select/src/optgroup.js +1 -5
  271. package/lib/select/src/option.js +1 -5
  272. package/lib/select/src/optionInfo.js +1 -9
  273. package/lib/select/src/select.js +103 -256
  274. package/lib/select/src/select.min.js +1 -1
  275. package/lib/select/src/util.js +0 -13
  276. package/lib/select/src/util.min.js +1 -1
  277. package/lib/select/style/style.css +108 -79
  278. package/lib/select/style/style.min.css +1 -1
  279. package/lib/style.css +1 -1
  280. package/lib/style.min.css +1 -1
  281. package/lib/switch/index.js +1 -7
  282. package/lib/switch/index.min.js +1 -1
  283. package/lib/switch/src/switch.js +16 -35
  284. package/lib/switch/src/switch.min.js +1 -1
  285. package/lib/switch/style/style.css +87 -67
  286. package/lib/switch/style/style.min.css +1 -1
  287. package/lib/table/index.js +1 -7
  288. package/lib/table/index.min.js +1 -1
  289. package/lib/table/src/body.js +143 -262
  290. package/lib/table/src/body.min.js +1 -1
  291. package/lib/table/src/cell.js +138 -259
  292. package/lib/table/src/cell.min.js +1 -1
  293. package/lib/table/src/column.js +4 -13
  294. package/lib/table/src/column.min.js +1 -1
  295. package/lib/table/src/columnInfo.js +6 -35
  296. package/lib/table/src/columnInfo.min.js +1 -1
  297. package/lib/table/src/group.js +2 -15
  298. package/lib/table/src/group.min.js +1 -1
  299. package/lib/table/src/props.js +25 -29
  300. package/lib/table/src/props.min.js +1 -1
  301. package/lib/table/src/table.js +650 -1593
  302. package/lib/table/src/table.min.js +1 -1
  303. package/lib/table/src/util.js +32 -102
  304. package/lib/table/src/util.min.js +1 -1
  305. package/lib/table/style/style.css +1025 -835
  306. package/lib/table/style/style.min.css +1 -1
  307. package/lib/textarea/index.js +1 -7
  308. package/lib/textarea/index.min.js +1 -1
  309. package/lib/textarea/src/textarea.js +31 -71
  310. package/lib/textarea/src/textarea.min.js +1 -1
  311. package/lib/textarea/style/style.css +57 -41
  312. package/lib/textarea/style/style.min.css +1 -1
  313. package/lib/toolbar/index.js +1 -7
  314. package/lib/toolbar/index.min.js +1 -1
  315. package/lib/toolbar/src/toolbar.js +60 -167
  316. package/lib/toolbar/src/toolbar.min.js +1 -1
  317. package/lib/toolbar/style/style.css +216 -174
  318. package/lib/toolbar/style/style.min.css +1 -1
  319. package/lib/tools/dom.js +6 -48
  320. package/lib/tools/dom.min.js +1 -1
  321. package/lib/tools/event.js +8 -20
  322. package/lib/tools/event.min.js +1 -1
  323. package/lib/tools/log.js +1 -6
  324. package/lib/tools/log.min.js +1 -1
  325. package/lib/tools/resize.js +3 -27
  326. package/lib/tools/utils.js +0 -16
  327. package/lib/tools/utils.min.js +1 -1
  328. package/lib/tools/vn.js +0 -5
  329. package/lib/tooltip/index.js +1 -8
  330. package/lib/tooltip/index.min.js +1 -1
  331. package/lib/tooltip/src/tooltip.js +47 -111
  332. package/lib/tooltip/src/tooltip.min.js +1 -1
  333. package/lib/tooltip/style/style.css +87 -63
  334. package/lib/v-x-e-table/index.js +13 -44
  335. package/lib/v-x-e-table/index.min.js +1 -1
  336. package/lib/v-x-e-table/src/commands.js +0 -4
  337. package/lib/v-x-e-table/src/conf.js +31 -19
  338. package/lib/v-x-e-table/src/formats.js +0 -4
  339. package/lib/v-x-e-table/src/hooks.js +0 -3
  340. package/lib/v-x-e-table/src/interceptor.js +6 -18
  341. package/lib/v-x-e-table/src/interceptor.min.js +1 -1
  342. package/lib/v-x-e-table/src/menus.js +0 -4
  343. package/lib/v-x-e-table/src/renderer.js +66 -199
  344. package/lib/v-x-e-table/src/renderer.min.js +1 -1
  345. package/lib/v-x-e-table/src/setup.js +1 -6
  346. package/lib/v-x-e-table/src/store.js +3 -19
  347. package/lib/v-x-e-table/style/style.css +424 -243
  348. package/lib/v-x-e-table/style/style.min.css +1 -1
  349. package/lib/validator/index.js +1 -5
  350. package/lib/validator/index.min.js +1 -1
  351. package/lib/validator/src/hook.js +50 -116
  352. package/lib/validator/src/hook.min.js +1 -1
  353. package/lib/validator/style/style.css +1 -1
  354. package/lib/vxe-button/index.js +3 -10
  355. package/lib/vxe-button/index.min.js +1 -1
  356. package/lib/vxe-button/style/style.css +465 -341
  357. package/lib/vxe-button/style/style.min.css +1 -1
  358. package/lib/vxe-checkbox/index.js +3 -10
  359. package/lib/vxe-checkbox/index.min.js +1 -1
  360. package/lib/vxe-checkbox/style/style.css +156 -127
  361. package/lib/vxe-checkbox/style/style.min.css +1 -1
  362. package/lib/vxe-checkbox-group/index.js +3 -10
  363. package/lib/vxe-checkbox-group/index.min.js +1 -1
  364. package/lib/vxe-checkbox-group/style/style.css +1 -1
  365. package/lib/vxe-colgroup/index.js +3 -10
  366. package/lib/vxe-colgroup/index.min.js +1 -1
  367. package/lib/vxe-colgroup/style/style.css +1 -1
  368. package/lib/vxe-column/index.js +3 -10
  369. package/lib/vxe-column/index.min.js +1 -1
  370. package/lib/vxe-column/style/style.css +1 -1
  371. package/lib/vxe-form/index.js +3 -10
  372. package/lib/vxe-form/index.min.js +1 -1
  373. package/lib/vxe-form/style/style.css +201 -168
  374. package/lib/vxe-form/style/style.min.css +1 -1
  375. package/lib/vxe-form-gather/index.js +3 -10
  376. package/lib/vxe-form-gather/index.min.js +1 -1
  377. package/lib/vxe-form-gather/style/style.css +1 -1
  378. package/lib/vxe-form-item/index.js +3 -10
  379. package/lib/vxe-form-item/index.min.js +1 -1
  380. package/lib/vxe-form-item/style/style.css +1 -1
  381. package/lib/vxe-grid/index.js +3 -10
  382. package/lib/vxe-grid/index.min.js +1 -1
  383. package/lib/vxe-grid/style/style.css +61 -50
  384. package/lib/vxe-grid/style/style.min.css +1 -1
  385. package/lib/vxe-icon/index.js +3 -10
  386. package/lib/vxe-icon/index.min.js +1 -1
  387. package/lib/vxe-icon/style/style.css +372 -195
  388. package/lib/vxe-icon/style/style.min.css +1 -1
  389. package/lib/vxe-input/index.js +3 -10
  390. package/lib/vxe-input/index.min.js +1 -1
  391. package/lib/vxe-input/style/style.css +771 -595
  392. package/lib/vxe-input/style/style.min.css +1 -1
  393. package/lib/vxe-list/index.js +3 -10
  394. package/lib/vxe-list/index.min.js +1 -1
  395. package/lib/vxe-list/style/style.css +19 -14
  396. package/lib/vxe-loading/index.js +3 -10
  397. package/lib/vxe-loading/index.min.js +1 -1
  398. package/lib/vxe-loading/style/style.css +52 -48
  399. package/lib/vxe-loading/style/style.min.css +1 -1
  400. package/lib/vxe-modal/index.js +3 -10
  401. package/lib/vxe-modal/index.min.js +1 -1
  402. package/lib/vxe-modal/style/style.css +311 -247
  403. package/lib/vxe-modal/style/style.min.css +1 -1
  404. package/lib/vxe-module-edit/index.js +3 -10
  405. package/lib/vxe-module-edit/index.min.js +1 -1
  406. package/lib/vxe-module-edit/style/style.css +1 -1
  407. package/lib/vxe-module-export/index.js +3 -10
  408. package/lib/vxe-module-export/index.min.js +1 -1
  409. package/lib/vxe-module-export/style/style.css +136 -108
  410. package/lib/vxe-module-export/style/style.min.css +1 -1
  411. package/lib/vxe-module-filter/index.js +3 -10
  412. package/lib/vxe-module-filter/index.min.js +1 -1
  413. package/lib/vxe-module-filter/style/style.css +103 -82
  414. package/lib/vxe-module-filter/style/style.min.css +1 -1
  415. package/lib/vxe-module-keyboard/index.js +3 -10
  416. package/lib/vxe-module-keyboard/index.min.js +1 -1
  417. package/lib/vxe-module-keyboard/style/style.css +1 -1
  418. package/lib/vxe-module-menu/index.js +3 -10
  419. package/lib/vxe-module-menu/index.min.js +1 -1
  420. package/lib/vxe-module-menu/style/style.css +79 -59
  421. package/lib/vxe-module-menu/style/style.min.css +1 -1
  422. package/lib/vxe-module-validator/index.js +3 -10
  423. package/lib/vxe-module-validator/index.min.js +1 -1
  424. package/lib/vxe-module-validator/style/style.css +1 -1
  425. package/lib/vxe-optgroup/index.js +3 -10
  426. package/lib/vxe-optgroup/index.min.js +1 -1
  427. package/lib/vxe-optgroup/style/style.css +1 -1
  428. package/lib/vxe-option/index.js +3 -10
  429. package/lib/vxe-option/index.min.js +1 -1
  430. package/lib/vxe-option/style/style.css +1 -1
  431. package/lib/vxe-pager/index.js +3 -10
  432. package/lib/vxe-pager/index.min.js +1 -1
  433. package/lib/vxe-pager/style/style.css +307 -257
  434. package/lib/vxe-pager/style/style.min.css +1 -1
  435. package/lib/vxe-pulldown/index.js +3 -10
  436. package/lib/vxe-pulldown/index.min.js +1 -1
  437. package/lib/vxe-pulldown/style/style.css +42 -31
  438. package/lib/vxe-pulldown/style/style.min.css +1 -1
  439. package/lib/vxe-radio/index.js +3 -10
  440. package/lib/vxe-radio/index.min.js +1 -1
  441. package/lib/vxe-radio/style/style.css +184 -151
  442. package/lib/vxe-radio/style/style.min.css +1 -1
  443. package/lib/vxe-radio-button/index.js +3 -10
  444. package/lib/vxe-radio-button/index.min.js +1 -1
  445. package/lib/vxe-radio-button/style/style.css +1 -1
  446. package/lib/vxe-radio-group/index.js +3 -10
  447. package/lib/vxe-radio-group/index.min.js +1 -1
  448. package/lib/vxe-radio-group/style/style.css +1 -1
  449. package/lib/vxe-select/index.js +3 -10
  450. package/lib/vxe-select/index.min.js +1 -1
  451. package/lib/vxe-select/style/style.css +108 -79
  452. package/lib/vxe-select/style/style.min.css +1 -1
  453. package/lib/vxe-switch/index.js +3 -10
  454. package/lib/vxe-switch/index.min.js +1 -1
  455. package/lib/vxe-switch/style/style.css +87 -67
  456. package/lib/vxe-switch/style/style.min.css +1 -1
  457. package/lib/vxe-table/index.js +3 -10
  458. package/lib/vxe-table/index.min.js +1 -1
  459. package/lib/vxe-table/style/style.css +1025 -835
  460. package/lib/vxe-table/style/style.min.css +1 -1
  461. package/lib/vxe-textarea/index.js +3 -10
  462. package/lib/vxe-textarea/index.min.js +1 -1
  463. package/lib/vxe-textarea/style/style.css +57 -41
  464. package/lib/vxe-textarea/style/style.min.css +1 -1
  465. package/lib/vxe-toolbar/index.js +3 -10
  466. package/lib/vxe-toolbar/index.min.js +1 -1
  467. package/lib/vxe-toolbar/style/style.css +216 -174
  468. package/lib/vxe-toolbar/style/style.min.css +1 -1
  469. package/lib/vxe-tooltip/index.js +3 -10
  470. package/lib/vxe-tooltip/index.min.js +1 -1
  471. package/lib/vxe-tooltip/style/style.css +87 -63
  472. package/package.json +27 -33
  473. package/packages/export/src/hook.ts +1 -0
  474. package/packages/filter/src/hook.ts +1 -1
  475. package/packages/form/src/form.ts +5 -4
  476. package/packages/list/src/list.ts +8 -2
  477. package/packages/pulldown/src/pulldown.ts +11 -5
  478. package/packages/table/src/column.ts +2 -0
  479. package/packages/table/src/columnInfo.ts +1 -0
  480. package/packages/table/src/table.ts +95 -87
  481. package/packages/table/src/util.ts +1 -1
  482. package/styles/icon/iconfont.ttf +0 -0
  483. package/styles/icon/iconfont.woff +0 -0
  484. package/styles/icon/iconfont.woff2 +0 -0
  485. package/styles/icon.scss +10 -2
  486. package/styles/table.scss +1 -1
  487. package/styles/variable.scss +2 -2
  488. package/types/column.d.ts +6 -1
  489. package/types/list.d.ts +4 -4
  490. package/types/pulldown.d.ts +61 -61
  491. package/types/table.d.ts +11 -1
@@ -26,9 +26,11 @@
26
26
  /*pulldown*/
27
27
  /*快捷菜单*/
28
28
  .vxe-table--context-menu-wrapper {
29
- display: none; }
30
- .vxe-table--context-menu-wrapper.is--visible {
31
- display: block; }
29
+ display: none;
30
+ }
31
+ .vxe-table--context-menu-wrapper.is--visible {
32
+ display: block;
33
+ }
32
34
 
33
35
  .vxe-table--context-menu-wrapper,
34
36
  .vxe-table--context-menu-clild-wrapper {
@@ -41,11 +43,11 @@
41
43
  padding: 0 1px;
42
44
  -webkit-user-select: none;
43
45
  -moz-user-select: none;
44
- -ms-user-select: none;
45
46
  user-select: none;
46
47
  color: #606266;
47
48
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
48
- background-color: #fff; }
49
+ background-color: #fff;
50
+ }
49
51
 
50
52
  .vxe-context-menu--link {
51
53
  display: block;
@@ -53,69 +55,87 @@
53
55
  width: 178px;
54
56
  line-height: 26px;
55
57
  color: #606266;
56
- cursor: pointer; }
57
- .vxe-context-menu--link .vxe-context-menu--link-prefix,
58
- .vxe-context-menu--link .vxe-context-menu--link-suffix {
59
- position: absolute;
60
- top: 5px;
61
- margin-right: 5px;
62
- font-size: 16px; }
63
- .vxe-context-menu--link .vxe-context-menu--link-prefix {
64
- left: 5px; }
65
- .vxe-context-menu--link .vxe-context-menu--link-suffix {
66
- right: 5px; }
67
- .vxe-context-menu--link .vxe-context-menu--link-suffix.suffix--haschild {
68
- top: 8px; }
69
- .vxe-context-menu--link .vxe-context-menu--link-suffix.suffix--haschild:before {
70
- position: absolute;
71
- content: "";
72
- border: 4px solid transparent;
73
- border-left-color: #727272; }
74
- .vxe-context-menu--link .vxe-context-menu--link-content {
75
- display: block;
76
- overflow: hidden;
77
- text-overflow: ellipsis;
78
- white-space: nowrap; }
58
+ cursor: pointer;
59
+ }
60
+ .vxe-context-menu--link .vxe-context-menu--link-prefix,
61
+ .vxe-context-menu--link .vxe-context-menu--link-suffix {
62
+ position: absolute;
63
+ top: 5px;
64
+ margin-right: 5px;
65
+ font-size: 16px;
66
+ }
67
+ .vxe-context-menu--link .vxe-context-menu--link-prefix {
68
+ left: 5px;
69
+ }
70
+ .vxe-context-menu--link .vxe-context-menu--link-suffix {
71
+ right: 5px;
72
+ }
73
+ .vxe-context-menu--link .vxe-context-menu--link-suffix.suffix--haschild {
74
+ top: 8px;
75
+ }
76
+ .vxe-context-menu--link .vxe-context-menu--link-suffix.suffix--haschild:before {
77
+ position: absolute;
78
+ content: "";
79
+ border: 4px solid transparent;
80
+ border-left-color: #727272;
81
+ }
82
+ .vxe-context-menu--link .vxe-context-menu--link-content {
83
+ display: block;
84
+ overflow: hidden;
85
+ text-overflow: ellipsis;
86
+ white-space: nowrap;
87
+ }
79
88
 
80
89
  .vxe-table--context-menu-clild-wrapper .vxe-context-menu--link {
81
- padding: 0 2em 0 2.5em; }
90
+ padding: 0 2em 0 2.5em;
91
+ }
82
92
 
83
93
  .vxe-context-menu--option-wrapper,
84
94
  .vxe-table--context-menu-clild-wrapper {
85
95
  margin: 0;
86
96
  padding: 0;
87
97
  list-style-type: none;
88
- border-bottom: 1px solid #E8EAED; }
89
- .vxe-context-menu--option-wrapper li,
90
- .vxe-table--context-menu-clild-wrapper li {
91
- position: relative;
92
- margin: 1px 0;
93
- border: 1px solid transparent; }
94
- .vxe-context-menu--option-wrapper li:last-child,
95
- .vxe-table--context-menu-clild-wrapper li:last-child {
96
- border: 0; }
97
- .vxe-context-menu--option-wrapper li.link--active,
98
- .vxe-table--context-menu-clild-wrapper li.link--active {
99
- background-color: #C5C5C5;
100
- border-color: #C5C5C5; }
101
- .vxe-context-menu--option-wrapper li.link--active > .vxe-context-menu--link,
102
- .vxe-table--context-menu-clild-wrapper li.link--active > .vxe-context-menu--link {
103
- color: #2B2B2B; }
104
- .vxe-context-menu--option-wrapper li.link--disabled > .vxe-context-menu--link,
105
- .vxe-table--context-menu-clild-wrapper li.link--disabled > .vxe-context-menu--link {
106
- color: #BFBFBF;
107
- cursor: no-drop; }
108
- .vxe-context-menu--option-wrapper li.link--disabled.link--active,
109
- .vxe-table--context-menu-clild-wrapper li.link--disabled.link--active {
110
- border-color: #C0C1C2;
111
- background-color: #EEEEEE; }
112
- .vxe-context-menu--option-wrapper li.link--disabled.link--active:hover,
113
- .vxe-table--context-menu-clild-wrapper li.link--disabled.link--active:hover {
114
- background-color: inherit; }
98
+ border-bottom: 1px solid #E8EAED;
99
+ }
100
+ .vxe-context-menu--option-wrapper li,
101
+ .vxe-table--context-menu-clild-wrapper li {
102
+ position: relative;
103
+ margin: 1px 0;
104
+ border: 1px solid transparent;
105
+ }
106
+ .vxe-context-menu--option-wrapper li:last-child,
107
+ .vxe-table--context-menu-clild-wrapper li:last-child {
108
+ border: 0;
109
+ }
110
+ .vxe-context-menu--option-wrapper li.link--active,
111
+ .vxe-table--context-menu-clild-wrapper li.link--active {
112
+ background-color: #C5C5C5;
113
+ border-color: #C5C5C5;
114
+ }
115
+ .vxe-context-menu--option-wrapper li.link--active > .vxe-context-menu--link,
116
+ .vxe-table--context-menu-clild-wrapper li.link--active > .vxe-context-menu--link {
117
+ color: #2B2B2B;
118
+ }
119
+ .vxe-context-menu--option-wrapper li.link--disabled > .vxe-context-menu--link,
120
+ .vxe-table--context-menu-clild-wrapper li.link--disabled > .vxe-context-menu--link {
121
+ color: #BFBFBF;
122
+ cursor: no-drop;
123
+ }
124
+ .vxe-context-menu--option-wrapper li.link--disabled.link--active,
125
+ .vxe-table--context-menu-clild-wrapper li.link--disabled.link--active {
126
+ border-color: #C0C1C2;
127
+ background-color: #EEEEEE;
128
+ }
129
+ .vxe-context-menu--option-wrapper li.link--disabled.link--active:hover,
130
+ .vxe-table--context-menu-clild-wrapper li.link--disabled.link--active:hover {
131
+ background-color: inherit;
132
+ }
115
133
 
116
134
  .vxe-table--context-menu-clild-wrapper {
117
135
  display: none;
118
136
  top: 0;
119
- left: 100%; }
120
- .vxe-table--context-menu-clild-wrapper.is--show {
121
- display: block; }
137
+ left: 100%;
138
+ }
139
+ .vxe-table--context-menu-clild-wrapper.is--show {
140
+ display: block;
141
+ }
@@ -1 +1 @@
1
- @charset "UTF-8";.vxe-table--context-menu-wrapper{display:none}.vxe-table--context-menu-wrapper.is--visible{display:block}.vxe-table--context-menu-clild-wrapper,.vxe-table--context-menu-wrapper{position:absolute;top:0;left:0;font-size:12px;border:1px solid #dadce0;box-shadow:3px 3px 4px -2px rgba(0,0,0,.6);padding:0 1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#606266;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;background-color:#fff}.vxe-context-menu--link{display:block;padding:0 2.5em;width:178px;line-height:26px;color:#606266;cursor:pointer}.vxe-context-menu--link .vxe-context-menu--link-prefix,.vxe-context-menu--link .vxe-context-menu--link-suffix{position:absolute;top:5px;margin-right:5px;font-size:16px}.vxe-context-menu--link .vxe-context-menu--link-prefix{left:5px}.vxe-context-menu--link .vxe-context-menu--link-suffix{right:5px}.vxe-context-menu--link .vxe-context-menu--link-suffix.suffix--haschild{top:8px}.vxe-context-menu--link .vxe-context-menu--link-suffix.suffix--haschild:before{position:absolute;content:"";border:4px solid transparent;border-left-color:#727272}.vxe-context-menu--link .vxe-context-menu--link-content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-table--context-menu-clild-wrapper .vxe-context-menu--link{padding:0 2em 0 2.5em}.vxe-context-menu--option-wrapper,.vxe-table--context-menu-clild-wrapper{margin:0;padding:0;list-style-type:none;border-bottom:1px solid #e8eaed}.vxe-context-menu--option-wrapper li,.vxe-table--context-menu-clild-wrapper li{position:relative;margin:1px 0;border:1px solid transparent}.vxe-context-menu--option-wrapper li:last-child,.vxe-table--context-menu-clild-wrapper li:last-child{border:0}.vxe-context-menu--option-wrapper li.link--active,.vxe-table--context-menu-clild-wrapper li.link--active{background-color:#c5c5c5;border-color:#c5c5c5}.vxe-context-menu--option-wrapper li.link--active>.vxe-context-menu--link,.vxe-table--context-menu-clild-wrapper li.link--active>.vxe-context-menu--link{color:#2b2b2b}.vxe-context-menu--option-wrapper li.link--disabled>.vxe-context-menu--link,.vxe-table--context-menu-clild-wrapper li.link--disabled>.vxe-context-menu--link{color:#bfbfbf;cursor:no-drop}.vxe-context-menu--option-wrapper li.link--disabled.link--active,.vxe-table--context-menu-clild-wrapper li.link--disabled.link--active{border-color:#c0c1c2;background-color:#eee}.vxe-context-menu--option-wrapper li.link--disabled.link--active:hover,.vxe-table--context-menu-clild-wrapper li.link--disabled.link--active:hover{background-color:inherit}.vxe-table--context-menu-clild-wrapper{display:none;top:0;left:100%}.vxe-table--context-menu-clild-wrapper.is--show{display:block}
1
+ @charset "UTF-8";.vxe-table--context-menu-wrapper{display:none}.vxe-table--context-menu-wrapper.is--visible{display:block}.vxe-table--context-menu-clild-wrapper,.vxe-table--context-menu-wrapper{position:absolute;top:0;left:0;font-size:12px;border:1px solid #dadce0;box-shadow:3px 3px 4px -2px rgba(0,0,0,.6);padding:0 1px;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#606266;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;background-color:#fff}.vxe-context-menu--link{display:block;padding:0 2.5em;width:178px;line-height:26px;color:#606266;cursor:pointer}.vxe-context-menu--link .vxe-context-menu--link-prefix,.vxe-context-menu--link .vxe-context-menu--link-suffix{position:absolute;top:5px;margin-right:5px;font-size:16px}.vxe-context-menu--link .vxe-context-menu--link-prefix{left:5px}.vxe-context-menu--link .vxe-context-menu--link-suffix{right:5px}.vxe-context-menu--link .vxe-context-menu--link-suffix.suffix--haschild{top:8px}.vxe-context-menu--link .vxe-context-menu--link-suffix.suffix--haschild:before{position:absolute;content:"";border:4px solid transparent;border-left-color:#727272}.vxe-context-menu--link .vxe-context-menu--link-content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-table--context-menu-clild-wrapper .vxe-context-menu--link{padding:0 2em 0 2.5em}.vxe-context-menu--option-wrapper,.vxe-table--context-menu-clild-wrapper{margin:0;padding:0;list-style-type:none;border-bottom:1px solid #e8eaed}.vxe-context-menu--option-wrapper li,.vxe-table--context-menu-clild-wrapper li{position:relative;margin:1px 0;border:1px solid transparent}.vxe-context-menu--option-wrapper li:last-child,.vxe-table--context-menu-clild-wrapper li:last-child{border:0}.vxe-context-menu--option-wrapper li.link--active,.vxe-table--context-menu-clild-wrapper li.link--active{background-color:#c5c5c5;border-color:#c5c5c5}.vxe-context-menu--option-wrapper li.link--active>.vxe-context-menu--link,.vxe-table--context-menu-clild-wrapper li.link--active>.vxe-context-menu--link{color:#2b2b2b}.vxe-context-menu--option-wrapper li.link--disabled>.vxe-context-menu--link,.vxe-table--context-menu-clild-wrapper li.link--disabled>.vxe-context-menu--link{color:#bfbfbf;cursor:no-drop}.vxe-context-menu--option-wrapper li.link--disabled.link--active,.vxe-table--context-menu-clild-wrapper li.link--disabled.link--active{border-color:#c0c1c2;background-color:#eee}.vxe-context-menu--option-wrapper li.link--disabled.link--active:hover,.vxe-table--context-menu-clild-wrapper li.link--disabled.link--active:hover{background-color:inherit}.vxe-table--context-menu-clild-wrapper{display:none;top:0;left:100%}.vxe-table--context-menu-clild-wrapper.is--show{display:block}
@@ -1,42 +1,26 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.modal = exports.default = exports.VxeModal = exports.Modal = void 0;
9
-
10
7
  var _xeUtils = _interopRequireDefault(require("xe-utils"));
11
-
12
8
  var _modal = _interopRequireWildcard(require("./src/modal"));
13
-
14
9
  var _vXETable = require("../v-x-e-table");
15
-
16
10
  var _dynamics = require("../dynamics");
17
-
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
-
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
-
11
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
-
24
14
  var __assign = void 0 && (void 0).__assign || function () {
25
15
  __assign = Object.assign || function (t) {
26
16
  for (var s, i = 1, n = arguments.length; i < n; i++) {
27
17
  s = arguments[i];
28
-
29
- for (var p in s) {
30
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
31
- }
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
32
19
  }
33
-
34
20
  return t;
35
21
  };
36
-
37
22
  return __assign.apply(this, arguments);
38
23
  };
39
-
40
24
  function openModal(options) {
41
25
  // 使用动态组件渲染动态弹框
42
26
  (0, _dynamics.checkDynamic)();
@@ -50,25 +34,21 @@ function openModal(options) {
50
34
  var modalOpts_1 = Object.assign(options, {
51
35
  key: _xeUtils.default.uniqueId(),
52
36
  modelValue: true,
53
- onHide: function onHide(params) {
37
+ onHide: function (params) {
54
38
  var modalList = _dynamics.dynamicStore.modals;
55
-
56
39
  if (_onHide_1) {
57
40
  _onHide_1(params);
58
41
  }
59
-
60
42
  _dynamics.dynamicStore.modals = modalList.filter(function (item) {
61
43
  return item.key !== modalOpts_1.key;
62
44
  });
63
45
  resolve(params.type);
64
46
  }
65
47
  });
66
-
67
48
  _dynamics.dynamicStore.modals.push(modalOpts_1);
68
49
  }
69
50
  });
70
51
  }
71
-
72
52
  function getModal(id) {
73
53
  return _xeUtils.default.find(_modal.allActivedModals, function ($modal) {
74
54
  return $modal.props.id === id;
@@ -79,8 +59,6 @@ function getModal(id) {
79
59
  * 如果传 id 则关闭指定的窗口
80
60
  * 如果不传则关闭所有窗口
81
61
  */
82
-
83
-
84
62
  function closeModal(id) {
85
63
  var modals = id ? [getModal(id)] : _modal.allActivedModals;
86
64
  var restPromises = [];
@@ -91,10 +69,8 @@ function closeModal(id) {
91
69
  });
92
70
  return Promise.all(restPromises);
93
71
  }
94
-
95
72
  function handleOpen(defOpts, content, title, options) {
96
73
  var opts;
97
-
98
74
  if (_xeUtils.default.isObject(content)) {
99
75
  opts = content;
100
76
  } else {
@@ -103,17 +79,14 @@ function handleOpen(defOpts, content, title, options) {
103
79
  title: title
104
80
  };
105
81
  }
106
-
107
82
  return openModal(__assign(__assign(__assign({}, defOpts), options), opts));
108
83
  }
109
-
110
84
  function openAlert(content, title, options) {
111
85
  return handleOpen({
112
86
  type: 'alert',
113
87
  showFooter: true
114
88
  }, content, title, options);
115
89
  }
116
-
117
90
  function openConfirm(content, title, options) {
118
91
  return handleOpen({
119
92
  type: 'confirm',
@@ -121,7 +94,6 @@ function openConfirm(content, title, options) {
121
94
  showFooter: true
122
95
  }, content, title, options);
123
96
  }
124
-
125
97
  function openMessage(content, options) {
126
98
  return handleOpen({
127
99
  type: 'message',
@@ -130,7 +102,6 @@ function openMessage(content, options) {
130
102
  showHeader: false
131
103
  }, content, '', options);
132
104
  }
133
-
134
105
  var ModalController = {
135
106
  get: getModal,
136
107
  close: closeModal,
@@ -142,7 +113,7 @@ var ModalController = {
142
113
  var modal = ModalController;
143
114
  exports.modal = modal;
144
115
  var VxeModal = Object.assign(_modal.default, {
145
- install: function install(app) {
116
+ install: function (app) {
146
117
  app.component(_modal.default.name, _modal.default);
147
118
  _vXETable.VXETable.modal = ModalController;
148
119
  }
@@ -150,8 +121,6 @@ var VxeModal = Object.assign(_modal.default, {
150
121
  exports.VxeModal = VxeModal;
151
122
  var Modal = VxeModal;
152
123
  exports.Modal = Modal;
153
-
154
124
  _dynamics.dynamicApp.component(_modal.default.name, _modal.default);
155
-
156
125
  var _default = VxeModal;
157
126
  exports.default = _default;
@@ -1 +1 @@
1
- "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.modal=exports.default=exports.VxeModal=exports.Modal=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_modal=_interopRequireWildcard(require("./src/modal")),_vXETable=require("../v-x-e-table"),_dynamics=require("../dynamics");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function(e){return e?o:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};t=_getRequireWildcardCache(t);if(t&&t.has(e))return t.get(e);var o,n,r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&((n=a?Object.getOwnPropertyDescriptor(e,o):null)&&(n.get||n.set)?Object.defineProperty(r,o,n):r[o]=e[o]);return r.default=e,t&&t.set(e,r),r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function openModal(t){return(0,_dynamics.checkDynamic)(),new Promise(function(o){var n,r;t&&t.id&&_modal.allActivedModals.some(function(e){return e.props.id===t.id})?o("exist"):(n=t.onHide,r=Object.assign(t,{key:_xeUtils.default.uniqueId(),modelValue:!0,onHide:function(e){var t=_dynamics.dynamicStore.modals;n&&n(e),_dynamics.dynamicStore.modals=t.filter(function(e){return e.key!==r.key}),o(e.type)}}),_dynamics.dynamicStore.modals.push(r))})}function getModal(t){return _xeUtils.default.find(_modal.allActivedModals,function(e){return e.props.id===t})}function closeModal(e){var e=e?[getModal(e)]:_modal.allActivedModals,t=[];return e.forEach(function(e){e&&t.push(e.close())}),Promise.all(t)}function handleOpen(e,t,o,n){o=_xeUtils.default.isObject(t)?t:{content:_xeUtils.default.toValueString(t),title:o};return openModal(__assign(__assign(__assign({},e),n),o))}function openAlert(e,t,o){return handleOpen({type:"alert",showFooter:!0},e,t,o)}function openConfirm(e,t,o){return handleOpen({type:"confirm",status:"question",showFooter:!0},e,t,o)}function openMessage(e,t){return handleOpen({type:"message",mask:!1,lockView:!1,showHeader:!1},e,"",t)}var ModalController={get:getModal,close:closeModal,open:openModal,alert:openAlert,confirm:openConfirm,message:openMessage},modal=ModalController;exports.modal=modal;var VxeModal=Object.assign(_modal.default,{install:function(e){e.component(_modal.default.name,_modal.default),_vXETable.VXETable.modal=ModalController}}),Modal=exports.VxeModal=VxeModal;exports.Modal=Modal,_dynamics.dynamicApp.component(_modal.default.name,_modal.default);var _default=VxeModal;exports.default=_default;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.modal=exports.default=exports.VxeModal=exports.Modal=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_modal=_interopRequireWildcard(require("./src/modal")),_vXETable=require("../v-x-e-table"),_dynamics=require("../dynamics");function _getRequireWildcardCache(e){var t,o;return"function"!=typeof WeakMap?null:(t=new WeakMap,o=new WeakMap,(_getRequireWildcardCache=function(e){return e?o:t})(e))}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};t=_getRequireWildcardCache(t);if(t&&t.has(e))return t.get(e);var o,n,a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&((n=r?Object.getOwnPropertyDescriptor(e,o):null)&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]);return a.default=e,t&&t.set(e,a),a}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function openModal(t){return(0,_dynamics.checkDynamic)(),new Promise(function(o){var n,a;t&&t.id&&_modal.allActivedModals.some(function(e){return e.props.id===t.id})?o("exist"):(n=t.onHide,a=Object.assign(t,{key:_xeUtils.default.uniqueId(),modelValue:!0,onHide:function(e){var t=_dynamics.dynamicStore.modals;n&&n(e),_dynamics.dynamicStore.modals=t.filter(function(e){return e.key!==a.key}),o(e.type)}}),_dynamics.dynamicStore.modals.push(a))})}function getModal(t){return _xeUtils.default.find(_modal.allActivedModals,function(e){return e.props.id===t})}function closeModal(e){var e=e?[getModal(e)]:_modal.allActivedModals,t=[];return e.forEach(function(e){e&&t.push(e.close())}),Promise.all(t)}function handleOpen(e,t,o,n){t=_xeUtils.default.isObject(t)?t:{content:_xeUtils.default.toValueString(t),title:o};return openModal(__assign(__assign(__assign({},e),n),t))}function openAlert(e,t,o){return handleOpen({type:"alert",showFooter:!0},e,t,o)}function openConfirm(e,t,o){return handleOpen({type:"confirm",status:"question",showFooter:!0},e,t,o)}function openMessage(e,t){return handleOpen({type:"message",mask:!1,lockView:!1,showHeader:!1},e,"",t)}var ModalController={get:getModal,close:closeModal,open:openModal,alert:openAlert,confirm:openConfirm,message:openMessage},modal=ModalController,VxeModal=(exports.modal=modal,Object.assign(_modal.default,{install:function(e){e.component(_modal.default.name,_modal.default),_vXETable.VXETable.modal=ModalController}})),Modal=exports.VxeModal=VxeModal,_default=(exports.Modal=Modal,_dynamics.dynamicApp.component(_modal.default.name,_modal.default),VxeModal);exports.default=_default;