@smallwei/avue 3.9.0 → 3.9.2

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 (638) hide show
  1. package/dist/avue.js +936 -113
  2. package/dist/avue.js.map +1 -1
  3. package/dist/avue.min.js +2 -2
  4. package/es/_virtual/_commonjs-dynamic-modules.mjs +1 -1
  5. package/es/_virtual/_commonjsHelpers.mjs +1 -1
  6. package/es/_virtual/axios.mjs +1 -1
  7. package/es/_virtual/axios2.mjs +1 -1
  8. package/es/_virtual/countUp.min.mjs +23 -3
  9. package/es/_virtual/countUp.min2.mjs +1 -1
  10. package/es/_virtual/dayjs.min.mjs +1 -1
  11. package/es/_virtual/dayjs.min2.mjs +1 -1
  12. package/es/index.mjs +2 -2
  13. package/es/locale/browser/en.mjs +2 -1
  14. package/es/locale/browser/zh-cn.mjs +2 -1
  15. package/es/locale/browser/zh.mjs +2 -1
  16. package/es/node_modules/.pnpm/countup.js@1.9.3/node_modules/countup.js/dist/countUp.min.mjs +1 -1
  17. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +1 -1
  18. package/es/node_modules/axios/dist/axios.mjs +1 -1
  19. package/es/packages/core/common/event.mjs +1 -1
  20. package/es/packages/core/common/init.mjs +10 -1
  21. package/es/packages/core/common/props.mjs +1 -1
  22. package/es/packages/core/components/dialog-form/index.mjs +1 -1
  23. package/es/packages/core/components/dialog-form/index2.mjs +1 -1
  24. package/es/packages/core/components/dialog-form/index3.mjs +1 -1
  25. package/es/packages/core/components/dialog-form/index4.mjs +1 -1
  26. package/es/packages/core/components/form/custom.mjs +1 -1
  27. package/es/packages/core/components/form/index.mjs +1 -1
  28. package/es/packages/core/components/form/index2.mjs +1 -1
  29. package/es/packages/core/components/form/index3.mjs +1 -1
  30. package/es/packages/core/components/icon/index.mjs +1 -1
  31. package/es/packages/core/components/icon/index2.mjs +1 -1
  32. package/es/packages/core/components/icon/index3.mjs +1 -1
  33. package/es/packages/core/components/image-preview/index.mjs +1 -1
  34. package/es/packages/core/components/image-preview/index2.mjs +1 -1
  35. package/es/packages/core/components/image-preview/index3.mjs +1 -1
  36. package/es/packages/core/components/image-preview/index4.mjs +1 -1
  37. package/es/packages/core/directive/contextmenu.mjs +1 -1
  38. package/es/packages/core/directive/permission.mjs +1 -1
  39. package/es/packages/data/box/index.mjs +1 -1
  40. package/es/packages/data/box/index2.mjs +1 -1
  41. package/es/packages/data/box/index3.mjs +1 -1
  42. package/es/packages/data/card/index.mjs +1 -1
  43. package/es/packages/data/card/index2.mjs +1 -1
  44. package/es/packages/data/card/index3.mjs +1 -1
  45. package/es/packages/data/cardText/index.mjs +1 -1
  46. package/es/packages/data/cardText/index2.mjs +1 -1
  47. package/es/packages/data/cardText/index3.mjs +1 -1
  48. package/es/packages/data/countdown/index.mjs +1 -1
  49. package/es/packages/data/countdown/index2.mjs +1 -1
  50. package/es/packages/data/countdown/index3.mjs +1 -1
  51. package/es/packages/data/dashboard/index.mjs +1 -1
  52. package/es/packages/data/dashboard/index2.mjs +1 -1
  53. package/es/packages/data/dashboard/index3.mjs +1 -1
  54. package/es/packages/data/display/index.mjs +1 -1
  55. package/es/packages/data/display/index2.mjs +1 -1
  56. package/es/packages/data/display/index3.mjs +1 -1
  57. package/es/packages/data/icons/index.mjs +1 -1
  58. package/es/packages/data/icons/index2.mjs +1 -1
  59. package/es/packages/data/icons/index3.mjs +1 -1
  60. package/es/packages/data/imgText/index.mjs +1 -1
  61. package/es/packages/data/imgText/index2.mjs +1 -1
  62. package/es/packages/data/imgText/index3.mjs +1 -1
  63. package/es/packages/data/list/index.mjs +1 -1
  64. package/es/packages/data/list/index2.mjs +1 -1
  65. package/es/packages/data/list/index3.mjs +1 -1
  66. package/es/packages/data/notice/index.mjs +1 -1
  67. package/es/packages/data/notice/index2.mjs +1 -1
  68. package/es/packages/data/notice/index3.mjs +1 -1
  69. package/es/packages/data/operaText/index.mjs +1 -1
  70. package/es/packages/data/operaText/index2.mjs +1 -1
  71. package/es/packages/data/operaText/index3.mjs +1 -1
  72. package/es/packages/data/panel/index.mjs +1 -1
  73. package/es/packages/data/panel/index2.mjs +1 -1
  74. package/es/packages/data/panel/index3.mjs +1 -1
  75. package/es/packages/data/pay/index.mjs +1 -1
  76. package/es/packages/data/pay/index2.mjs +1 -1
  77. package/es/packages/data/pay/index3.mjs +1 -1
  78. package/es/packages/data/price/index.mjs +1 -1
  79. package/es/packages/data/price/index2.mjs +1 -1
  80. package/es/packages/data/price/index3.mjs +1 -1
  81. package/es/packages/data/product/index.mjs +1 -1
  82. package/es/packages/data/product/index2.mjs +1 -1
  83. package/es/packages/data/product/index3.mjs +1 -1
  84. package/es/packages/data/profile/index.mjs +1 -1
  85. package/es/packages/data/profile/index2.mjs +1 -1
  86. package/es/packages/data/profile/index3.mjs +1 -1
  87. package/es/packages/data/progress/index.mjs +1 -1
  88. package/es/packages/data/progress/index2.mjs +1 -1
  89. package/es/packages/data/progress/index3.mjs +1 -1
  90. package/es/packages/data/rank/index.mjs +1 -1
  91. package/es/packages/data/rank/index2.mjs +1 -1
  92. package/es/packages/data/rank/index3.mjs +1 -1
  93. package/es/packages/data/rotate/index.mjs +1 -1
  94. package/es/packages/data/rotate/index2.mjs +1 -1
  95. package/es/packages/data/rotate/index3.mjs +1 -1
  96. package/es/packages/data/statistic/index.mjs +1 -1
  97. package/es/packages/data/statistic/index2.mjs +1 -1
  98. package/es/packages/data/statistic/index3.mjs +1 -1
  99. package/es/packages/data/tabs/index.mjs +1 -1
  100. package/es/packages/data/tabs/index2.mjs +1 -1
  101. package/es/packages/data/tabs/index3.mjs +1 -1
  102. package/es/packages/data/task/index.mjs +1 -1
  103. package/es/packages/data/task/index2.mjs +1 -1
  104. package/es/packages/data/task/index3.mjs +1 -1
  105. package/es/packages/data/weather/index.mjs +1 -1
  106. package/es/packages/data/weather/index2.mjs +1 -1
  107. package/es/packages/data/weather/index3.mjs +1 -1
  108. package/es/packages/element-plus/array/index.mjs +1 -1
  109. package/es/packages/element-plus/array/index2.mjs +1 -1
  110. package/es/packages/element-plus/array/index3.mjs +1 -1
  111. package/es/packages/element-plus/article/index.mjs +1 -1
  112. package/es/packages/element-plus/article/index2.mjs +1 -1
  113. package/es/packages/element-plus/article/index3.mjs +1 -1
  114. package/es/packages/element-plus/card/index.mjs +1 -1
  115. package/es/packages/element-plus/card/index2.mjs +1 -1
  116. package/es/packages/element-plus/card/index3.mjs +1 -1
  117. package/es/packages/element-plus/cascader/index.mjs +1 -1
  118. package/es/packages/element-plus/cascader/index2.mjs +11 -1
  119. package/es/packages/element-plus/cascader/index3.mjs +6 -2
  120. package/es/packages/element-plus/chat/index.mjs +1 -1
  121. package/es/packages/element-plus/chat/index2.mjs +1 -1
  122. package/es/packages/element-plus/chat/index3.mjs +1 -1
  123. package/es/packages/element-plus/checkbox/index.mjs +1 -1
  124. package/es/packages/element-plus/checkbox/index2.mjs +1 -1
  125. package/es/packages/element-plus/checkbox/index3.mjs +1 -1
  126. package/es/packages/element-plus/comment/index.mjs +1 -1
  127. package/es/packages/element-plus/comment/index2.mjs +1 -1
  128. package/es/packages/element-plus/comment/index3.mjs +1 -1
  129. package/es/packages/element-plus/count-up/index.mjs +1 -1
  130. package/es/packages/element-plus/count-up/index2.mjs +4 -3
  131. package/es/packages/element-plus/count-up/index3.mjs +1 -1
  132. package/es/packages/element-plus/crud/column/column-default.mjs +1 -1
  133. package/es/packages/element-plus/crud/column/column-default2.mjs +1 -1
  134. package/es/packages/element-plus/crud/column/column-default3.mjs +1 -1
  135. package/es/packages/element-plus/crud/column/column-dynamic.mjs +1 -1
  136. package/es/packages/element-plus/crud/column/column-dynamic2.mjs +1 -1
  137. package/es/packages/element-plus/crud/column/column-dynamic3.mjs +1 -1
  138. package/es/packages/element-plus/crud/column/column-menu.mjs +1 -1
  139. package/es/packages/element-plus/crud/column/column-menu2.mjs +1 -1
  140. package/es/packages/element-plus/crud/column/column-menu3.mjs +1 -1
  141. package/es/packages/element-plus/crud/column/column-slot.mjs +1 -1
  142. package/es/packages/element-plus/crud/column/column-slot2.mjs +1 -1
  143. package/es/packages/element-plus/crud/column/column-slot3.mjs +1 -1
  144. package/es/packages/element-plus/crud/column/column.mjs +1 -1
  145. package/es/packages/element-plus/crud/column/column2.mjs +1 -1
  146. package/es/packages/element-plus/crud/column/column3.mjs +1 -1
  147. package/es/packages/element-plus/crud/column/menu.mjs +1 -1
  148. package/es/packages/element-plus/crud/column/menu2.mjs +1 -1
  149. package/es/packages/element-plus/crud/column/menu3.mjs +1 -1
  150. package/es/packages/element-plus/crud/config.mjs +1 -1
  151. package/es/packages/element-plus/crud/dialog/dialog-column.mjs +1 -1
  152. package/es/packages/element-plus/crud/dialog/dialog-column2.mjs +2 -1
  153. package/es/packages/element-plus/crud/dialog/dialog-column3.mjs +25 -6
  154. package/es/packages/element-plus/crud/dialog/dialog-excel.mjs +1 -1
  155. package/es/packages/element-plus/crud/dialog/dialog-excel2.mjs +1 -1
  156. package/es/packages/element-plus/crud/dialog/dialog-excel3.mjs +1 -1
  157. package/es/packages/element-plus/crud/dialog/dialog-filter.mjs +1 -1
  158. package/es/packages/element-plus/crud/dialog/dialog-filter2.mjs +1 -1
  159. package/es/packages/element-plus/crud/dialog/dialog-filter3.mjs +1 -1
  160. package/es/packages/element-plus/crud/dialog/dialog-form.mjs +1 -1
  161. package/es/packages/element-plus/crud/dialog/dialog-form2.mjs +1 -1
  162. package/es/packages/element-plus/crud/dialog/dialog-form3.mjs +1 -1
  163. package/es/packages/element-plus/crud/grid/index.mjs +1 -1
  164. package/es/packages/element-plus/crud/grid/index2.mjs +1 -1
  165. package/es/packages/element-plus/crud/grid/index3.mjs +1 -1
  166. package/es/packages/element-plus/crud/grid/item.mjs +1 -1
  167. package/es/packages/element-plus/crud/grid/item2.mjs +1 -1
  168. package/es/packages/element-plus/crud/grid/item3.mjs +1 -1
  169. package/es/packages/element-plus/crud/index.mjs +1 -1
  170. package/es/packages/element-plus/crud/index2.mjs +83 -19
  171. package/es/packages/element-plus/crud/index3.mjs +2 -2
  172. package/es/packages/element-plus/crud/menu/header-menu.mjs +1 -1
  173. package/es/packages/element-plus/crud/menu/header-menu2.mjs +1 -1
  174. package/es/packages/element-plus/crud/menu/header-menu3.mjs +1 -1
  175. package/es/packages/element-plus/crud/menu/header-search.mjs +1 -1
  176. package/es/packages/element-plus/crud/menu/header-search2.mjs +1 -1
  177. package/es/packages/element-plus/crud/menu/header-search3.mjs +1 -1
  178. package/es/packages/element-plus/crud/menu/table-page.mjs +1 -1
  179. package/es/packages/element-plus/crud/menu/table-page2.mjs +1 -1
  180. package/es/packages/element-plus/crud/menu/table-page3.mjs +1 -1
  181. package/es/packages/element-plus/date/index.mjs +1 -1
  182. package/es/packages/element-plus/date/index2.mjs +5 -1
  183. package/es/packages/element-plus/date/index3.mjs +3 -2
  184. package/es/packages/element-plus/draggable/index.mjs +1 -1
  185. package/es/packages/element-plus/draggable/index2.mjs +1 -1
  186. package/es/packages/element-plus/draggable/index3.mjs +1 -1
  187. package/es/packages/element-plus/dynamic/index.mjs +1 -1
  188. package/es/packages/element-plus/dynamic/index2.mjs +1 -1
  189. package/es/packages/element-plus/dynamic/index3.mjs +1 -1
  190. package/es/packages/element-plus/flow/index.mjs +1 -1
  191. package/es/packages/element-plus/flow/index2.mjs +1 -1
  192. package/es/packages/element-plus/flow/index3.mjs +1 -1
  193. package/es/packages/element-plus/flow/node.mjs +1 -1
  194. package/es/packages/element-plus/flow/node2.mjs +1 -1
  195. package/es/packages/element-plus/flow/node3.mjs +1 -1
  196. package/es/packages/element-plus/form/config.mjs +1 -1
  197. package/es/packages/element-plus/form/index.mjs +1 -1
  198. package/es/packages/element-plus/form/index2.mjs +1 -1
  199. package/es/packages/element-plus/form/index3.mjs +1 -1
  200. package/es/packages/element-plus/form/menu.mjs +1 -1
  201. package/es/packages/element-plus/form/menu2.mjs +1 -1
  202. package/es/packages/element-plus/form/menu3.mjs +1 -1
  203. package/es/packages/element-plus/group/index.mjs +1 -1
  204. package/es/packages/element-plus/group/index2.mjs +1 -1
  205. package/es/packages/element-plus/group/index3.mjs +1 -1
  206. package/es/packages/element-plus/input/index.mjs +1 -1
  207. package/es/packages/element-plus/input/index2.mjs +1 -1
  208. package/es/packages/element-plus/input/index3.mjs +1 -1
  209. package/es/packages/element-plus/input-color/index.mjs +1 -1
  210. package/es/packages/element-plus/input-color/index2.mjs +1 -1
  211. package/es/packages/element-plus/input-color/index3.mjs +1 -1
  212. package/es/packages/element-plus/input-cron/index.mjs +1 -1
  213. package/es/packages/element-plus/input-cron/index2.mjs +1 -1
  214. package/es/packages/element-plus/input-cron/index3.mjs +1 -1
  215. package/es/packages/element-plus/input-icon/index.mjs +1 -1
  216. package/es/packages/element-plus/input-icon/index2.mjs +1 -1
  217. package/es/packages/element-plus/input-icon/index3.mjs +1 -1
  218. package/es/packages/element-plus/input-map/index.mjs +1 -1
  219. package/es/packages/element-plus/input-map/index2.mjs +1 -1
  220. package/es/packages/element-plus/input-map/index3.mjs +1 -1
  221. package/es/packages/element-plus/input-number/index.mjs +1 -1
  222. package/es/packages/element-plus/input-number/index2.mjs +1 -1
  223. package/es/packages/element-plus/input-number/index3.mjs +1 -1
  224. package/es/packages/element-plus/input-table/index.mjs +1 -1
  225. package/es/packages/element-plus/input-table/index2.mjs +1 -1
  226. package/es/packages/element-plus/input-table/index3.mjs +1 -1
  227. package/es/packages/element-plus/input-tag/index.mjs +1 -1
  228. package/es/packages/element-plus/input-tag/index2.mjs +1 -1
  229. package/es/packages/element-plus/input-tag/index3.mjs +1 -1
  230. package/es/packages/element-plus/input-tree/index.mjs +1 -1
  231. package/es/packages/element-plus/input-tree/index2.mjs +1 -1
  232. package/es/packages/element-plus/input-tree/index3.mjs +1 -1
  233. package/es/packages/element-plus/license/index.mjs +1 -1
  234. package/es/packages/element-plus/license/index2.mjs +1 -1
  235. package/es/packages/element-plus/license/index3.mjs +1 -1
  236. package/es/packages/element-plus/login/index.mjs +1 -1
  237. package/es/packages/element-plus/login/index2.mjs +1 -1
  238. package/es/packages/element-plus/login/index3.mjs +1 -1
  239. package/es/packages/element-plus/mention/index.mjs +1 -1
  240. package/es/packages/element-plus/mention/index2.mjs +1 -1
  241. package/es/packages/element-plus/mention/index3.mjs +1 -1
  242. package/es/packages/element-plus/radio/index.mjs +1 -1
  243. package/es/packages/element-plus/radio/index2.mjs +1 -1
  244. package/es/packages/element-plus/radio/index3.mjs +1 -1
  245. package/es/packages/element-plus/rate/index.mjs +1 -1
  246. package/es/packages/element-plus/rate/index2.mjs +1 -1
  247. package/es/packages/element-plus/rate/index3.mjs +1 -1
  248. package/es/packages/element-plus/search/index.mjs +1 -1
  249. package/es/packages/element-plus/search/index2.mjs +1 -1
  250. package/es/packages/element-plus/search/index3.mjs +1 -1
  251. package/es/packages/element-plus/select/index.mjs +1 -1
  252. package/es/packages/element-plus/select/index2.mjs +13 -1
  253. package/es/packages/element-plus/select/index3.mjs +3 -2
  254. package/es/packages/element-plus/sign/index.mjs +1 -1
  255. package/es/packages/element-plus/sign/index2.mjs +1 -1
  256. package/es/packages/element-plus/sign/index3.mjs +1 -1
  257. package/es/packages/element-plus/slider/index.mjs +1 -1
  258. package/es/packages/element-plus/slider/index2.mjs +1 -1
  259. package/es/packages/element-plus/slider/index3.mjs +1 -1
  260. package/es/packages/element-plus/switch/index.mjs +1 -1
  261. package/es/packages/element-plus/switch/index2.mjs +1 -1
  262. package/es/packages/element-plus/switch/index3.mjs +1 -1
  263. package/es/packages/element-plus/tabs/index.mjs +1 -1
  264. package/es/packages/element-plus/tabs/index2.mjs +1 -1
  265. package/es/packages/element-plus/tabs/index3.mjs +1 -1
  266. package/es/packages/element-plus/text-ellipsis/index.mjs +1 -1
  267. package/es/packages/element-plus/text-ellipsis/index2.mjs +1 -1
  268. package/es/packages/element-plus/text-ellipsis/index3.mjs +1 -1
  269. package/es/packages/element-plus/time/index.mjs +1 -1
  270. package/es/packages/element-plus/time/index2.mjs +1 -1
  271. package/es/packages/element-plus/time/index3.mjs +1 -1
  272. package/es/packages/element-plus/title/index.mjs +1 -1
  273. package/es/packages/element-plus/title/index2.mjs +1 -1
  274. package/es/packages/element-plus/title/index3.mjs +1 -1
  275. package/es/packages/element-plus/tree/index.mjs +1 -1
  276. package/es/packages/element-plus/tree/index2.mjs +1 -1
  277. package/es/packages/element-plus/tree/index3.mjs +1 -1
  278. package/es/packages/element-plus/upload/index.mjs +1 -1
  279. package/es/packages/element-plus/upload/index2.mjs +1 -1
  280. package/es/packages/element-plus/upload/index3.mjs +1 -1
  281. package/es/packages/element-plus/verify/index.mjs +1 -1
  282. package/es/packages/element-plus/verify/index2.mjs +1 -1
  283. package/es/packages/element-plus/verify/index3.mjs +1 -1
  284. package/es/packages/element-plus/video/index.mjs +1 -1
  285. package/es/packages/element-plus/video/index2.mjs +1 -1
  286. package/es/packages/element-plus/video/index3.mjs +1 -1
  287. package/es/src/core/column-state.mjs +102 -0
  288. package/es/src/core/create.mjs +1 -1
  289. package/es/src/core/dataformat.mjs +1 -1
  290. package/es/src/core/detail.mjs +1 -1
  291. package/es/src/core/dic.mjs +1 -1
  292. package/es/src/core/locale.mjs +1 -1
  293. package/es/src/core/option.mjs +209 -0
  294. package/es/src/core/packages.mjs +1 -1
  295. package/es/src/core/slot.mjs +1 -1
  296. package/es/src/global/variable.mjs +1 -1
  297. package/es/src/icon.mjs +1 -1
  298. package/es/src/index.mjs +137 -3
  299. package/es/src/locale/index.mjs +1 -1
  300. package/es/src/locale/lang/en.mjs +3 -2
  301. package/es/src/locale/lang/zh-cn.mjs +3 -2
  302. package/es/src/locale/lang/zh.mjs +3 -2
  303. package/es/src/plugin/ali/index.mjs +1 -1
  304. package/es/src/plugin/clipboard/index.mjs +1 -1
  305. package/es/src/plugin/export/_blob.mjs +1 -1
  306. package/es/src/plugin/export/_export2Excel.mjs +16 -3
  307. package/es/src/plugin/export/index.mjs +10 -9
  308. package/es/src/plugin/logs/index.mjs +1 -1
  309. package/es/src/plugin/print/index.mjs +1 -1
  310. package/es/src/plugin/qiniu/index.mjs +1 -1
  311. package/es/src/plugin/screenshot/index.mjs +1 -1
  312. package/es/src/plugin/video/index.mjs +1 -1
  313. package/es/src/plugin/watermark/index.mjs +1 -1
  314. package/es/src/plugin/watermark/watermark.mjs +1 -1
  315. package/es/src/ui/data/index.mjs +2 -2
  316. package/es/src/ui/element-plus/index.mjs +2 -2
  317. package/es/src/ui/index.mjs +1 -1
  318. package/es/src/utils/bem.mjs +1 -1
  319. package/es/src/utils/mock.mjs +1 -1
  320. package/es/src/utils/util.mjs +1 -1
  321. package/es/src/utils/validate.mjs +1 -1
  322. package/es/src/version.mjs +2 -2
  323. package/lib/_virtual/_commonjsHelpers.js +1 -1
  324. package/lib/_virtual/dayjs.min.js +1 -1
  325. package/lib/_virtual/dayjs.min2.js +1 -1
  326. package/lib/avue.js +1 -1
  327. package/lib/avue.min.js +1 -1
  328. package/lib/index.js +11 -11
  329. package/lib/locale/browser/en.js +2 -1
  330. package/lib/locale/browser/zh-cn.js +2 -1
  331. package/lib/locale/browser/zh.js +2 -1
  332. package/lib/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +1 -1
  333. package/lib/packages/core/common/event.js +1 -1
  334. package/lib/packages/core/common/init.js +10 -1
  335. package/lib/packages/core/common/props.js +1 -1
  336. package/lib/packages/core/components/dialog-form/index.js +1 -1
  337. package/lib/packages/core/components/dialog-form/index2.js +1 -1
  338. package/lib/packages/core/components/dialog-form/index3.js +1 -1
  339. package/lib/packages/core/components/dialog-form/index4.js +1 -1
  340. package/lib/packages/core/components/form/custom.js +1 -1
  341. package/lib/packages/core/components/form/index.js +1 -1
  342. package/lib/packages/core/components/form/index2.js +1 -1
  343. package/lib/packages/core/components/form/index3.js +1 -1
  344. package/lib/packages/core/components/icon/index.js +1 -1
  345. package/lib/packages/core/components/icon/index2.js +1 -1
  346. package/lib/packages/core/components/icon/index3.js +1 -1
  347. package/lib/packages/core/components/image-preview/index.js +1 -1
  348. package/lib/packages/core/components/image-preview/index2.js +1 -1
  349. package/lib/packages/core/components/image-preview/index3.js +1 -1
  350. package/lib/packages/core/components/image-preview/index4.js +1 -1
  351. package/lib/packages/core/directive/contextmenu.js +1 -1
  352. package/lib/packages/core/directive/permission.js +1 -1
  353. package/lib/packages/data/box/index.js +1 -1
  354. package/lib/packages/data/box/index2.js +1 -1
  355. package/lib/packages/data/box/index3.js +1 -1
  356. package/lib/packages/data/card/index.js +1 -1
  357. package/lib/packages/data/card/index2.js +1 -1
  358. package/lib/packages/data/card/index3.js +1 -1
  359. package/lib/packages/data/cardText/index.js +1 -1
  360. package/lib/packages/data/cardText/index2.js +1 -1
  361. package/lib/packages/data/cardText/index3.js +1 -1
  362. package/lib/packages/data/countdown/index.js +1 -1
  363. package/lib/packages/data/countdown/index2.js +1 -1
  364. package/lib/packages/data/countdown/index3.js +1 -1
  365. package/lib/packages/data/dashboard/index.js +1 -1
  366. package/lib/packages/data/dashboard/index2.js +1 -1
  367. package/lib/packages/data/dashboard/index3.js +1 -1
  368. package/lib/packages/data/display/index.js +1 -1
  369. package/lib/packages/data/display/index2.js +1 -1
  370. package/lib/packages/data/display/index3.js +1 -1
  371. package/lib/packages/data/icons/index.js +1 -1
  372. package/lib/packages/data/icons/index2.js +1 -1
  373. package/lib/packages/data/icons/index3.js +1 -1
  374. package/lib/packages/data/imgText/index.js +1 -1
  375. package/lib/packages/data/imgText/index2.js +1 -1
  376. package/lib/packages/data/imgText/index3.js +1 -1
  377. package/lib/packages/data/list/index.js +1 -1
  378. package/lib/packages/data/list/index2.js +1 -1
  379. package/lib/packages/data/list/index3.js +1 -1
  380. package/lib/packages/data/notice/index.js +1 -1
  381. package/lib/packages/data/notice/index2.js +1 -1
  382. package/lib/packages/data/notice/index3.js +1 -1
  383. package/lib/packages/data/operaText/index.js +1 -1
  384. package/lib/packages/data/operaText/index2.js +1 -1
  385. package/lib/packages/data/operaText/index3.js +1 -1
  386. package/lib/packages/data/panel/index.js +1 -1
  387. package/lib/packages/data/panel/index2.js +1 -1
  388. package/lib/packages/data/panel/index3.js +1 -1
  389. package/lib/packages/data/pay/index.js +1 -1
  390. package/lib/packages/data/pay/index2.js +1 -1
  391. package/lib/packages/data/pay/index3.js +1 -1
  392. package/lib/packages/data/price/index.js +1 -1
  393. package/lib/packages/data/price/index2.js +1 -1
  394. package/lib/packages/data/price/index3.js +1 -1
  395. package/lib/packages/data/product/index.js +1 -1
  396. package/lib/packages/data/product/index2.js +1 -1
  397. package/lib/packages/data/product/index3.js +1 -1
  398. package/lib/packages/data/profile/index.js +1 -1
  399. package/lib/packages/data/profile/index2.js +1 -1
  400. package/lib/packages/data/profile/index3.js +1 -1
  401. package/lib/packages/data/progress/index.js +1 -1
  402. package/lib/packages/data/progress/index2.js +1 -1
  403. package/lib/packages/data/progress/index3.js +1 -1
  404. package/lib/packages/data/rank/index.js +1 -1
  405. package/lib/packages/data/rank/index2.js +1 -1
  406. package/lib/packages/data/rank/index3.js +1 -1
  407. package/lib/packages/data/rotate/index.js +1 -1
  408. package/lib/packages/data/rotate/index2.js +1 -1
  409. package/lib/packages/data/rotate/index3.js +1 -1
  410. package/lib/packages/data/statistic/index.js +1 -1
  411. package/lib/packages/data/statistic/index2.js +1 -1
  412. package/lib/packages/data/statistic/index3.js +1 -1
  413. package/lib/packages/data/tabs/index.js +1 -1
  414. package/lib/packages/data/tabs/index2.js +1 -1
  415. package/lib/packages/data/tabs/index3.js +1 -1
  416. package/lib/packages/data/task/index.js +1 -1
  417. package/lib/packages/data/task/index2.js +1 -1
  418. package/lib/packages/data/task/index3.js +1 -1
  419. package/lib/packages/data/weather/index.js +1 -1
  420. package/lib/packages/data/weather/index2.js +1 -1
  421. package/lib/packages/data/weather/index3.js +1 -1
  422. package/lib/packages/element-plus/array/index.js +1 -1
  423. package/lib/packages/element-plus/array/index2.js +1 -1
  424. package/lib/packages/element-plus/array/index3.js +1 -1
  425. package/lib/packages/element-plus/article/index.js +1 -1
  426. package/lib/packages/element-plus/article/index2.js +1 -1
  427. package/lib/packages/element-plus/article/index3.js +1 -1
  428. package/lib/packages/element-plus/card/index.js +1 -1
  429. package/lib/packages/element-plus/card/index2.js +1 -1
  430. package/lib/packages/element-plus/card/index3.js +1 -1
  431. package/lib/packages/element-plus/cascader/index.js +1 -1
  432. package/lib/packages/element-plus/cascader/index2.js +11 -1
  433. package/lib/packages/element-plus/cascader/index3.js +6 -2
  434. package/lib/packages/element-plus/chat/index.js +1 -1
  435. package/lib/packages/element-plus/chat/index2.js +1 -1
  436. package/lib/packages/element-plus/chat/index3.js +1 -1
  437. package/lib/packages/element-plus/checkbox/index.js +1 -1
  438. package/lib/packages/element-plus/checkbox/index2.js +1 -1
  439. package/lib/packages/element-plus/checkbox/index3.js +1 -1
  440. package/lib/packages/element-plus/comment/index.js +1 -1
  441. package/lib/packages/element-plus/comment/index2.js +1 -1
  442. package/lib/packages/element-plus/comment/index3.js +1 -1
  443. package/lib/packages/element-plus/count-up/index.js +1 -1
  444. package/lib/packages/element-plus/count-up/index2.js +5 -8
  445. package/lib/packages/element-plus/count-up/index3.js +1 -1
  446. package/lib/packages/element-plus/crud/column/column-default.js +1 -1
  447. package/lib/packages/element-plus/crud/column/column-default2.js +1 -1
  448. package/lib/packages/element-plus/crud/column/column-default3.js +1 -1
  449. package/lib/packages/element-plus/crud/column/column-dynamic.js +1 -1
  450. package/lib/packages/element-plus/crud/column/column-dynamic2.js +1 -1
  451. package/lib/packages/element-plus/crud/column/column-dynamic3.js +1 -1
  452. package/lib/packages/element-plus/crud/column/column-menu.js +1 -1
  453. package/lib/packages/element-plus/crud/column/column-menu2.js +1 -1
  454. package/lib/packages/element-plus/crud/column/column-menu3.js +1 -1
  455. package/lib/packages/element-plus/crud/column/column-slot.js +1 -1
  456. package/lib/packages/element-plus/crud/column/column-slot2.js +1 -1
  457. package/lib/packages/element-plus/crud/column/column-slot3.js +1 -1
  458. package/lib/packages/element-plus/crud/column/column.js +1 -1
  459. package/lib/packages/element-plus/crud/column/column2.js +1 -1
  460. package/lib/packages/element-plus/crud/column/column3.js +1 -1
  461. package/lib/packages/element-plus/crud/column/menu.js +1 -1
  462. package/lib/packages/element-plus/crud/column/menu2.js +1 -1
  463. package/lib/packages/element-plus/crud/column/menu3.js +1 -1
  464. package/lib/packages/element-plus/crud/config.js +1 -1
  465. package/lib/packages/element-plus/crud/dialog/dialog-column.js +1 -1
  466. package/lib/packages/element-plus/crud/dialog/dialog-column2.js +2 -1
  467. package/lib/packages/element-plus/crud/dialog/dialog-column3.js +24 -5
  468. package/lib/packages/element-plus/crud/dialog/dialog-excel.js +1 -1
  469. package/lib/packages/element-plus/crud/dialog/dialog-excel2.js +1 -1
  470. package/lib/packages/element-plus/crud/dialog/dialog-excel3.js +1 -1
  471. package/lib/packages/element-plus/crud/dialog/dialog-filter.js +1 -1
  472. package/lib/packages/element-plus/crud/dialog/dialog-filter2.js +1 -1
  473. package/lib/packages/element-plus/crud/dialog/dialog-filter3.js +1 -1
  474. package/lib/packages/element-plus/crud/dialog/dialog-form.js +1 -1
  475. package/lib/packages/element-plus/crud/dialog/dialog-form2.js +1 -1
  476. package/lib/packages/element-plus/crud/dialog/dialog-form3.js +1 -1
  477. package/lib/packages/element-plus/crud/grid/index.js +1 -1
  478. package/lib/packages/element-plus/crud/grid/index2.js +1 -1
  479. package/lib/packages/element-plus/crud/grid/index3.js +1 -1
  480. package/lib/packages/element-plus/crud/grid/item.js +1 -1
  481. package/lib/packages/element-plus/crud/grid/item2.js +1 -1
  482. package/lib/packages/element-plus/crud/grid/item3.js +1 -1
  483. package/lib/packages/element-plus/crud/index.js +1 -1
  484. package/lib/packages/element-plus/crud/index2.js +83 -19
  485. package/lib/packages/element-plus/crud/index3.js +2 -2
  486. package/lib/packages/element-plus/crud/menu/header-menu.js +1 -1
  487. package/lib/packages/element-plus/crud/menu/header-menu2.js +1 -1
  488. package/lib/packages/element-plus/crud/menu/header-menu3.js +1 -1
  489. package/lib/packages/element-plus/crud/menu/header-search.js +1 -1
  490. package/lib/packages/element-plus/crud/menu/header-search2.js +1 -1
  491. package/lib/packages/element-plus/crud/menu/header-search3.js +1 -1
  492. package/lib/packages/element-plus/crud/menu/table-page.js +1 -1
  493. package/lib/packages/element-plus/crud/menu/table-page2.js +1 -1
  494. package/lib/packages/element-plus/crud/menu/table-page3.js +1 -1
  495. package/lib/packages/element-plus/date/index.js +1 -1
  496. package/lib/packages/element-plus/date/index2.js +5 -1
  497. package/lib/packages/element-plus/date/index3.js +3 -2
  498. package/lib/packages/element-plus/draggable/index.js +1 -1
  499. package/lib/packages/element-plus/draggable/index2.js +1 -1
  500. package/lib/packages/element-plus/draggable/index3.js +1 -1
  501. package/lib/packages/element-plus/dynamic/index.js +1 -1
  502. package/lib/packages/element-plus/dynamic/index2.js +1 -1
  503. package/lib/packages/element-plus/dynamic/index3.js +1 -1
  504. package/lib/packages/element-plus/flow/index.js +1 -1
  505. package/lib/packages/element-plus/flow/index2.js +1 -1
  506. package/lib/packages/element-plus/flow/index3.js +1 -1
  507. package/lib/packages/element-plus/flow/node.js +1 -1
  508. package/lib/packages/element-plus/flow/node2.js +1 -1
  509. package/lib/packages/element-plus/flow/node3.js +1 -1
  510. package/lib/packages/element-plus/form/config.js +1 -1
  511. package/lib/packages/element-plus/form/index.js +1 -1
  512. package/lib/packages/element-plus/form/index2.js +1 -1
  513. package/lib/packages/element-plus/form/index3.js +1 -1
  514. package/lib/packages/element-plus/form/menu.js +1 -1
  515. package/lib/packages/element-plus/form/menu2.js +1 -1
  516. package/lib/packages/element-plus/form/menu3.js +1 -1
  517. package/lib/packages/element-plus/group/index.js +1 -1
  518. package/lib/packages/element-plus/group/index2.js +1 -1
  519. package/lib/packages/element-plus/group/index3.js +1 -1
  520. package/lib/packages/element-plus/input/index.js +1 -1
  521. package/lib/packages/element-plus/input/index2.js +1 -1
  522. package/lib/packages/element-plus/input/index3.js +1 -1
  523. package/lib/packages/element-plus/input-color/index.js +1 -1
  524. package/lib/packages/element-plus/input-color/index2.js +1 -1
  525. package/lib/packages/element-plus/input-color/index3.js +1 -1
  526. package/lib/packages/element-plus/input-cron/index.js +1 -1
  527. package/lib/packages/element-plus/input-cron/index2.js +1 -1
  528. package/lib/packages/element-plus/input-cron/index3.js +1 -1
  529. package/lib/packages/element-plus/input-icon/index.js +1 -1
  530. package/lib/packages/element-plus/input-icon/index2.js +1 -1
  531. package/lib/packages/element-plus/input-icon/index3.js +1 -1
  532. package/lib/packages/element-plus/input-map/index.js +1 -1
  533. package/lib/packages/element-plus/input-map/index2.js +1 -1
  534. package/lib/packages/element-plus/input-map/index3.js +1 -1
  535. package/lib/packages/element-plus/input-number/index.js +1 -1
  536. package/lib/packages/element-plus/input-number/index2.js +1 -1
  537. package/lib/packages/element-plus/input-number/index3.js +1 -1
  538. package/lib/packages/element-plus/input-table/index.js +1 -1
  539. package/lib/packages/element-plus/input-table/index2.js +1 -1
  540. package/lib/packages/element-plus/input-table/index3.js +1 -1
  541. package/lib/packages/element-plus/input-tag/index.js +1 -1
  542. package/lib/packages/element-plus/input-tag/index2.js +1 -1
  543. package/lib/packages/element-plus/input-tag/index3.js +1 -1
  544. package/lib/packages/element-plus/input-tree/index.js +1 -1
  545. package/lib/packages/element-plus/input-tree/index2.js +1 -1
  546. package/lib/packages/element-plus/input-tree/index3.js +1 -1
  547. package/lib/packages/element-plus/license/index.js +1 -1
  548. package/lib/packages/element-plus/license/index2.js +1 -1
  549. package/lib/packages/element-plus/license/index3.js +1 -1
  550. package/lib/packages/element-plus/login/index.js +1 -1
  551. package/lib/packages/element-plus/login/index2.js +1 -1
  552. package/lib/packages/element-plus/login/index3.js +1 -1
  553. package/lib/packages/element-plus/mention/index.js +1 -1
  554. package/lib/packages/element-plus/mention/index2.js +1 -1
  555. package/lib/packages/element-plus/mention/index3.js +1 -1
  556. package/lib/packages/element-plus/radio/index.js +1 -1
  557. package/lib/packages/element-plus/radio/index2.js +1 -1
  558. package/lib/packages/element-plus/radio/index3.js +1 -1
  559. package/lib/packages/element-plus/rate/index.js +1 -1
  560. package/lib/packages/element-plus/rate/index2.js +1 -1
  561. package/lib/packages/element-plus/rate/index3.js +1 -1
  562. package/lib/packages/element-plus/search/index.js +1 -1
  563. package/lib/packages/element-plus/search/index2.js +1 -1
  564. package/lib/packages/element-plus/search/index3.js +1 -1
  565. package/lib/packages/element-plus/select/index.js +1 -1
  566. package/lib/packages/element-plus/select/index2.js +13 -1
  567. package/lib/packages/element-plus/select/index3.js +3 -2
  568. package/lib/packages/element-plus/sign/index.js +1 -1
  569. package/lib/packages/element-plus/sign/index2.js +1 -1
  570. package/lib/packages/element-plus/sign/index3.js +1 -1
  571. package/lib/packages/element-plus/slider/index.js +1 -1
  572. package/lib/packages/element-plus/slider/index2.js +1 -1
  573. package/lib/packages/element-plus/slider/index3.js +1 -1
  574. package/lib/packages/element-plus/switch/index.js +1 -1
  575. package/lib/packages/element-plus/switch/index2.js +1 -1
  576. package/lib/packages/element-plus/switch/index3.js +1 -1
  577. package/lib/packages/element-plus/tabs/index.js +1 -1
  578. package/lib/packages/element-plus/tabs/index2.js +1 -1
  579. package/lib/packages/element-plus/tabs/index3.js +1 -1
  580. package/lib/packages/element-plus/text-ellipsis/index.js +1 -1
  581. package/lib/packages/element-plus/text-ellipsis/index2.js +1 -1
  582. package/lib/packages/element-plus/text-ellipsis/index3.js +1 -1
  583. package/lib/packages/element-plus/time/index.js +1 -1
  584. package/lib/packages/element-plus/time/index2.js +1 -1
  585. package/lib/packages/element-plus/time/index3.js +1 -1
  586. package/lib/packages/element-plus/title/index.js +1 -1
  587. package/lib/packages/element-plus/title/index2.js +1 -1
  588. package/lib/packages/element-plus/title/index3.js +1 -1
  589. package/lib/packages/element-plus/tree/index.js +1 -1
  590. package/lib/packages/element-plus/tree/index2.js +1 -1
  591. package/lib/packages/element-plus/tree/index3.js +1 -1
  592. package/lib/packages/element-plus/upload/index.js +1 -1
  593. package/lib/packages/element-plus/upload/index2.js +1 -1
  594. package/lib/packages/element-plus/upload/index3.js +1 -1
  595. package/lib/packages/element-plus/verify/index.js +1 -1
  596. package/lib/packages/element-plus/verify/index2.js +1 -1
  597. package/lib/packages/element-plus/verify/index3.js +1 -1
  598. package/lib/packages/element-plus/video/index.js +1 -1
  599. package/lib/packages/element-plus/video/index2.js +1 -1
  600. package/lib/packages/element-plus/video/index3.js +1 -1
  601. package/lib/src/core/column-state.js +109 -0
  602. package/lib/src/core/create.js +1 -1
  603. package/lib/src/core/dataformat.js +1 -1
  604. package/lib/src/core/detail.js +1 -1
  605. package/lib/src/core/dic.js +1 -1
  606. package/lib/src/core/locale.js +1 -1
  607. package/lib/src/core/option.js +212 -0
  608. package/lib/src/core/packages.js +1 -1
  609. package/lib/src/core/slot.js +1 -1
  610. package/lib/src/global/variable.js +1 -1
  611. package/lib/src/icon.js +1 -1
  612. package/lib/src/index.js +229 -6
  613. package/lib/src/locale/index.js +1 -1
  614. package/lib/src/locale/lang/en.js +3 -2
  615. package/lib/src/locale/lang/zh-cn.js +3 -2
  616. package/lib/src/locale/lang/zh.js +3 -2
  617. package/lib/src/plugin/ali/index.js +1 -1
  618. package/lib/src/plugin/clipboard/index.js +1 -1
  619. package/lib/src/plugin/export/_blob.js +1 -1
  620. package/lib/src/plugin/export/_export2Excel.js +16 -3
  621. package/lib/src/plugin/export/index.js +10 -9
  622. package/lib/src/plugin/logs/index.js +1 -1
  623. package/lib/src/plugin/print/index.js +1 -1
  624. package/lib/src/plugin/qiniu/index.js +1 -1
  625. package/lib/src/plugin/screenshot/index.js +1 -1
  626. package/lib/src/plugin/video/index.js +1 -1
  627. package/lib/src/plugin/watermark/index.js +1 -1
  628. package/lib/src/plugin/watermark/watermark.js +1 -1
  629. package/lib/src/ui/data/index.js +68 -45
  630. package/lib/src/ui/element-plus/index.js +127 -85
  631. package/lib/src/ui/index.js +1 -1
  632. package/lib/src/utils/bem.js +1 -1
  633. package/lib/src/utils/mock.js +1 -1
  634. package/lib/src/utils/util.js +1 -1
  635. package/lib/src/utils/validate.js +1 -1
  636. package/lib/src/version.js +2 -2
  637. package/package.json +1 -1
  638. package/types/index.d.ts +97 -0
package/dist/avue.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Avue.js v3.9.0 | (c) 2017-2026 Smallwei | Released under the MIT License. */
1
+ /*! Avue.js v3.9.2 | (c) 2017-2026 Smallwei | Released under the MIT License. */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vue'), require('element-plus'), require('axios'), require('@element-plus/icons-vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['vue', 'element-plus', 'axios', '@element-plus/icons-vue'], factory) :
@@ -22,24 +22,39 @@
22
22
  return Object.freeze(n);
23
23
  }
24
24
 
25
+ function _mergeNamespaces(n, m) {
26
+ m.forEach(function (e) {
27
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
28
+ if (k !== 'default' && !(k in n)) {
29
+ var d = Object.getOwnPropertyDescriptor(e, k);
30
+ Object.defineProperty(n, k, d.get ? d : {
31
+ enumerable: true,
32
+ get: function () { return e[k]; }
33
+ });
34
+ }
35
+ });
36
+ });
37
+ return Object.freeze(n);
38
+ }
39
+
25
40
  var Icons__namespace = /*#__PURE__*/_interopNamespaceDefault(Icons);
26
41
 
27
- function _typeof(o) {
42
+ function _typeof$1(o) {
28
43
  "@babel/helpers - typeof";
29
44
 
30
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
45
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
31
46
  return typeof o;
32
47
  } : function (o) {
33
48
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
34
- }, _typeof(o);
49
+ }, _typeof$1(o);
35
50
  }
36
51
 
37
52
  function toPrimitive(t, r) {
38
- if ("object" != _typeof(t) || !t) return t;
53
+ if ("object" != _typeof$1(t) || !t) return t;
39
54
  var e = t[Symbol.toPrimitive];
40
55
  if (void 0 !== e) {
41
56
  var i = e.call(t, r);
42
- if ("object" != _typeof(i)) return i;
57
+ if ("object" != _typeof$1(i)) return i;
43
58
  throw new TypeError("@@toPrimitive must return a primitive value.");
44
59
  }
45
60
  return ("string" === r ? String : Number)(t);
@@ -47,7 +62,7 @@
47
62
 
48
63
  function toPropertyKey(t) {
49
64
  var i = toPrimitive(t, "string");
50
- return "symbol" == _typeof(i) ? i : i + "";
65
+ return "symbol" == _typeof$1(i) ? i : i + "";
51
66
  }
52
67
 
53
68
  function _defineProperty$1(e, r, t) {
@@ -59,33 +74,401 @@
59
74
  }) : e[r] = t, e;
60
75
  }
61
76
 
77
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
78
+ try {
79
+ var i = n[a](c),
80
+ u = i.value;
81
+ } catch (n) {
82
+ return void e(n);
83
+ }
84
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
85
+ }
86
+ function _asyncToGenerator(n) {
87
+ return function () {
88
+ var t = this,
89
+ e = arguments;
90
+ return new Promise(function (r, o) {
91
+ var a = n.apply(t, e);
92
+ function _next(n) {
93
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
94
+ }
95
+ function _throw(n) {
96
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
97
+ }
98
+ _next(void 0);
99
+ });
100
+ };
101
+ }
102
+
62
103
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
63
104
 
64
105
  function getDefaultExportFromCjs (x) {
65
106
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
66
107
  }
67
108
 
68
- function commonjsRequire(path) {
69
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
109
+ var regeneratorRuntime$1 = {exports: {}};
110
+
111
+ var _typeof = {exports: {}};
112
+
113
+ var hasRequired_typeof;
114
+
115
+ function require_typeof () {
116
+ if (hasRequired_typeof) return _typeof.exports;
117
+ hasRequired_typeof = 1;
118
+ (function (module) {
119
+ function _typeof(o) {
120
+ "@babel/helpers - typeof";
121
+
122
+ return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
123
+ return typeof o;
124
+ } : function (o) {
125
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
126
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
127
+ }
128
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
129
+ } (_typeof));
130
+ return _typeof.exports;
131
+ }
132
+
133
+ var hasRequiredRegeneratorRuntime;
134
+
135
+ function requireRegeneratorRuntime () {
136
+ if (hasRequiredRegeneratorRuntime) return regeneratorRuntime$1.exports;
137
+ hasRequiredRegeneratorRuntime = 1;
138
+ (function (module) {
139
+ var _typeof = require_typeof()["default"];
140
+ function _regeneratorRuntime() {
141
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
142
+ return e;
143
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
144
+ var t,
145
+ e = {},
146
+ r = Object.prototype,
147
+ n = r.hasOwnProperty,
148
+ o = Object.defineProperty || function (t, e, r) {
149
+ t[e] = r.value;
150
+ },
151
+ i = "function" == typeof Symbol ? Symbol : {},
152
+ a = i.iterator || "@@iterator",
153
+ c = i.asyncIterator || "@@asyncIterator",
154
+ u = i.toStringTag || "@@toStringTag";
155
+ function define(t, e, r) {
156
+ return Object.defineProperty(t, e, {
157
+ value: r,
158
+ enumerable: true,
159
+ configurable: true,
160
+ writable: true
161
+ }), t[e];
162
+ }
163
+ try {
164
+ define({}, "");
165
+ } catch (t) {
166
+ define = function define(t, e, r) {
167
+ return t[e] = r;
168
+ };
169
+ }
170
+ function wrap(t, e, r, n) {
171
+ var i = e && e.prototype instanceof Generator ? e : Generator,
172
+ a = Object.create(i.prototype),
173
+ c = new Context(n || []);
174
+ return o(a, "_invoke", {
175
+ value: makeInvokeMethod(t, r, c)
176
+ }), a;
177
+ }
178
+ function tryCatch(t, e, r) {
179
+ try {
180
+ return {
181
+ type: "normal",
182
+ arg: t.call(e, r)
183
+ };
184
+ } catch (t) {
185
+ return {
186
+ type: "throw",
187
+ arg: t
188
+ };
189
+ }
190
+ }
191
+ e.wrap = wrap;
192
+ var h = "suspendedStart",
193
+ l = "suspendedYield",
194
+ f = "executing",
195
+ s = "completed",
196
+ y = {};
197
+ function Generator() {}
198
+ function GeneratorFunction() {}
199
+ function GeneratorFunctionPrototype() {}
200
+ var p = {};
201
+ define(p, a, function () {
202
+ return this;
203
+ });
204
+ var d = Object.getPrototypeOf,
205
+ v = d && d(d(values([])));
206
+ v && v !== r && n.call(v, a) && (p = v);
207
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
208
+ function defineIteratorMethods(t) {
209
+ ["next", "throw", "return"].forEach(function (e) {
210
+ define(t, e, function (t) {
211
+ return this._invoke(e, t);
212
+ });
213
+ });
214
+ }
215
+ function AsyncIterator(t, e) {
216
+ function invoke(r, o, i, a) {
217
+ var c = tryCatch(t[r], t, o);
218
+ if ("throw" !== c.type) {
219
+ var u = c.arg,
220
+ h = u.value;
221
+ return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
222
+ invoke("next", t, i, a);
223
+ }, function (t) {
224
+ invoke("throw", t, i, a);
225
+ }) : e.resolve(h).then(function (t) {
226
+ u.value = t, i(u);
227
+ }, function (t) {
228
+ return invoke("throw", t, i, a);
229
+ });
230
+ }
231
+ a(c.arg);
232
+ }
233
+ var r;
234
+ o(this, "_invoke", {
235
+ value: function value(t, n) {
236
+ function callInvokeWithMethodAndArg() {
237
+ return new e(function (e, r) {
238
+ invoke(t, n, e, r);
239
+ });
240
+ }
241
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
242
+ }
243
+ });
244
+ }
245
+ function makeInvokeMethod(e, r, n) {
246
+ var o = h;
247
+ return function (i, a) {
248
+ if (o === f) throw Error("Generator is already running");
249
+ if (o === s) {
250
+ if ("throw" === i) throw a;
251
+ return {
252
+ value: t,
253
+ done: true
254
+ };
255
+ }
256
+ for (n.method = i, n.arg = a;;) {
257
+ var c = n.delegate;
258
+ if (c) {
259
+ var u = maybeInvokeDelegate(c, n);
260
+ if (u) {
261
+ if (u === y) continue;
262
+ return u;
263
+ }
264
+ }
265
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
266
+ if (o === h) throw o = s, n.arg;
267
+ n.dispatchException(n.arg);
268
+ } else "return" === n.method && n.abrupt("return", n.arg);
269
+ o = f;
270
+ var p = tryCatch(e, r, n);
271
+ if ("normal" === p.type) {
272
+ if (o = n.done ? s : l, p.arg === y) continue;
273
+ return {
274
+ value: p.arg,
275
+ done: n.done
276
+ };
277
+ }
278
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
279
+ }
280
+ };
281
+ }
282
+ function maybeInvokeDelegate(e, r) {
283
+ var n = r.method,
284
+ o = e.iterator[n];
285
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
286
+ var i = tryCatch(o, e.iterator, r.arg);
287
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
288
+ var a = i.arg;
289
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
290
+ }
291
+ function pushTryEntry(t) {
292
+ var e = {
293
+ tryLoc: t[0]
294
+ };
295
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
296
+ }
297
+ function resetTryEntry(t) {
298
+ var e = t.completion || {};
299
+ e.type = "normal", delete e.arg, t.completion = e;
300
+ }
301
+ function Context(t) {
302
+ this.tryEntries = [{
303
+ tryLoc: "root"
304
+ }], t.forEach(pushTryEntry, this), this.reset(true);
305
+ }
306
+ function values(e) {
307
+ if (e || "" === e) {
308
+ var r = e[a];
309
+ if (r) return r.call(e);
310
+ if ("function" == typeof e.next) return e;
311
+ if (!isNaN(e.length)) {
312
+ var o = -1,
313
+ i = function next() {
314
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
315
+ return next.value = t, next.done = true, next;
316
+ };
317
+ return i.next = i;
318
+ }
319
+ }
320
+ throw new TypeError(_typeof(e) + " is not iterable");
321
+ }
322
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
323
+ value: GeneratorFunctionPrototype,
324
+ configurable: true
325
+ }), o(GeneratorFunctionPrototype, "constructor", {
326
+ value: GeneratorFunction,
327
+ configurable: true
328
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
329
+ var e = "function" == typeof t && t.constructor;
330
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
331
+ }, e.mark = function (t) {
332
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
333
+ }, e.awrap = function (t) {
334
+ return {
335
+ __await: t
336
+ };
337
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
338
+ return this;
339
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
340
+ void 0 === i && (i = Promise);
341
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
342
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
343
+ return t.done ? t.value : a.next();
344
+ });
345
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
346
+ return this;
347
+ }), define(g, "toString", function () {
348
+ return "[object Generator]";
349
+ }), e.keys = function (t) {
350
+ var e = Object(t),
351
+ r = [];
352
+ for (var n in e) r.push(n);
353
+ return r.reverse(), function next() {
354
+ for (; r.length;) {
355
+ var t = r.pop();
356
+ if (t in e) return next.value = t, next.done = false, next;
357
+ }
358
+ return next.done = true, next;
359
+ };
360
+ }, e.values = values, Context.prototype = {
361
+ constructor: Context,
362
+ reset: function reset(e) {
363
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
364
+ },
365
+ stop: function stop() {
366
+ this.done = true;
367
+ var t = this.tryEntries[0].completion;
368
+ if ("throw" === t.type) throw t.arg;
369
+ return this.rval;
370
+ },
371
+ dispatchException: function dispatchException(e) {
372
+ if (this.done) throw e;
373
+ var r = this;
374
+ function handle(n, o) {
375
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
376
+ }
377
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
378
+ var i = this.tryEntries[o],
379
+ a = i.completion;
380
+ if ("root" === i.tryLoc) return handle("end");
381
+ if (i.tryLoc <= this.prev) {
382
+ var c = n.call(i, "catchLoc"),
383
+ u = n.call(i, "finallyLoc");
384
+ if (c && u) {
385
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
386
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
387
+ } else if (c) {
388
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
389
+ } else {
390
+ if (!u) throw Error("try statement without catch or finally");
391
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
392
+ }
393
+ }
394
+ }
395
+ },
396
+ abrupt: function abrupt(t, e) {
397
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
398
+ var o = this.tryEntries[r];
399
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
400
+ var i = o;
401
+ break;
402
+ }
403
+ }
404
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
405
+ var a = i ? i.completion : {};
406
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
407
+ },
408
+ complete: function complete(t, e) {
409
+ if ("throw" === t.type) throw t.arg;
410
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
411
+ },
412
+ finish: function finish(t) {
413
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
414
+ var r = this.tryEntries[e];
415
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
416
+ }
417
+ },
418
+ "catch": function _catch(t) {
419
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
420
+ var r = this.tryEntries[e];
421
+ if (r.tryLoc === t) {
422
+ var n = r.completion;
423
+ if ("throw" === n.type) {
424
+ var o = n.arg;
425
+ resetTryEntry(r);
426
+ }
427
+ return o;
428
+ }
429
+ }
430
+ throw Error("illegal catch attempt");
431
+ },
432
+ delegateYield: function delegateYield(e, r, n) {
433
+ return this.delegate = {
434
+ iterator: values(e),
435
+ resultName: r,
436
+ nextLoc: n
437
+ }, "next" === this.method && (this.arg = t), y;
438
+ }
439
+ }, e;
440
+ }
441
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
442
+ } (regeneratorRuntime$1));
443
+ return regeneratorRuntime$1.exports;
70
444
  }
71
445
 
72
- var countUp_min$1 = {exports: {}};
446
+ var regenerator;
447
+ var hasRequiredRegenerator;
73
448
 
74
- var countUp_min = countUp_min$1.exports;
449
+ function requireRegenerator () {
450
+ if (hasRequiredRegenerator) return regenerator;
451
+ hasRequiredRegenerator = 1;
452
+ // TODO(Babel 8): Remove this file.
75
453
 
76
- var hasRequiredCountUp_min;
454
+ var runtime = requireRegeneratorRuntime()();
455
+ regenerator = runtime;
77
456
 
78
- function requireCountUp_min () {
79
- if (hasRequiredCountUp_min) return countUp_min$1.exports;
80
- hasRequiredCountUp_min = 1;
81
- (function (module, exports$1) {
82
- !function(a,n){module.exports=n(commonjsRequire,exports$1,module);}(countUp_min,function(a,n,t){var e=function(a,n,t,e,i,r){function o(a){var n,t,e,i,r,o,s=a<0;if(a=Math.abs(a).toFixed(l.decimals),a+="",n=a.split("."),t=n[0],e=n.length>1?l.options.decimal+n[1]:"",l.options.useGrouping){for(i="",r=0,o=t.length;r<o;++r)0!==r&&r%3===0&&(i=l.options.separator+i),i=t[o-r-1]+i;t=i;}return l.options.numerals.length&&(t=t.replace(/[0-9]/g,function(a){return l.options.numerals[+a]}),e=e.replace(/[0-9]/g,function(a){return l.options.numerals[+a]})),(s?"-":"")+l.options.prefix+t+e+l.options.suffix}function s(a,n,t,e){return t*(-Math.pow(2,-10*a/e)+1)*1024/1023+n}function u(a){return "number"==typeof a&&!isNaN(a)}var l=this;if(l.version=function(){return "1.9.3"},l.options={useEasing:true,useGrouping:true,separator:",",decimal:".",easingFn:s,formattingFn:o,prefix:"",suffix:"",numerals:[]},r&&"object"==typeof r)for(var m in l.options)r.hasOwnProperty(m)&&null!==r[m]&&(l.options[m]=r[m]);""===l.options.separator?l.options.useGrouping=false:l.options.separator=""+l.options.separator;for(var d=0,c=["webkit","moz","ms","o"],f=0;f<c.length&&!window.requestAnimationFrame;++f)window.requestAnimationFrame=window[c[f]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[c[f]+"CancelAnimationFrame"]||window[c[f]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(a,n){var t=(new Date).getTime(),e=Math.max(0,16-(t-d)),i=window.setTimeout(function(){a(t+e);},e);return d=t+e,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a);}),l.initialize=function(){return !!l.initialized||(l.error="",l.d="string"==typeof a?document.getElementById(a):a,l.d?(l.startVal=Number(n),l.endVal=Number(t),u(l.startVal)&&u(l.endVal)?(l.decimals=Math.max(0,e||0),l.dec=Math.pow(10,l.decimals),l.duration=1e3*Number(i)||2e3,l.countDown=l.startVal>l.endVal,l.frameVal=l.startVal,l.initialized=true,true):(l.error="[CountUp] startVal ("+n+") or endVal ("+t+") is not a number",false)):(l.error="[CountUp] target is null or undefined",false))},l.printValue=function(a){var n=l.options.formattingFn(a);"INPUT"===l.d.tagName?this.d.value=n:"text"===l.d.tagName||"tspan"===l.d.tagName?this.d.textContent=n:this.d.innerHTML=n;},l.count=function(a){l.startTime||(l.startTime=a),l.timestamp=a;var n=a-l.startTime;l.remaining=l.duration-n,l.options.useEasing?l.countDown?l.frameVal=l.startVal-l.options.easingFn(n,0,l.startVal-l.endVal,l.duration):l.frameVal=l.options.easingFn(n,l.startVal,l.endVal-l.startVal,l.duration):l.countDown?l.frameVal=l.startVal-(l.startVal-l.endVal)*(n/l.duration):l.frameVal=l.startVal+(l.endVal-l.startVal)*(n/l.duration),l.countDown?l.frameVal=l.frameVal<l.endVal?l.endVal:l.frameVal:l.frameVal=l.frameVal>l.endVal?l.endVal:l.frameVal,l.frameVal=Math.round(l.frameVal*l.dec)/l.dec,l.printValue(l.frameVal),n<l.duration?l.rAF=requestAnimationFrame(l.count):l.callback&&l.callback();},l.start=function(a){l.initialize()&&(l.callback=a,l.rAF=requestAnimationFrame(l.count));},l.pauseResume=function(){l.paused?(l.paused=false,delete l.startTime,l.duration=l.remaining,l.startVal=l.frameVal,requestAnimationFrame(l.count)):(l.paused=true,cancelAnimationFrame(l.rAF));},l.reset=function(){l.paused=false,delete l.startTime,l.initialized=false,l.initialize()&&(cancelAnimationFrame(l.rAF),l.printValue(l.startVal));},l.update=function(a){if(l.initialize()){if(a=Number(a),!u(a))return void(l.error="[CountUp] update() - new endVal is not a number: "+a);l.error="",a!==l.frameVal&&(cancelAnimationFrame(l.rAF),l.paused=false,delete l.startTime,l.startVal=l.frameVal,l.endVal=a,l.countDown=l.startVal>l.endVal,l.rAF=requestAnimationFrame(l.count));}},l.initialize()&&l.printValue(l.startVal);};return e});
83
- } (countUp_min$1, countUp_min$1.exports));
84
- return countUp_min$1.exports;
457
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
458
+ try {
459
+ regeneratorRuntime = runtime;
460
+ } catch (accidentalStrictMode) {
461
+ if (typeof globalThis === "object") {
462
+ globalThis.regeneratorRuntime = runtime;
463
+ } else {
464
+ Function("r", "regeneratorRuntime = r")(runtime);
465
+ }
466
+ }
467
+ return regenerator;
85
468
  }
86
469
 
87
- var countUp_minExports = requireCountUp_min();
88
- var CountUp = /*@__PURE__*/getDefaultExportFromCjs(countUp_minExports);
470
+ var regeneratorExports = requireRegenerator();
471
+ var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regeneratorExports);
89
472
 
90
473
  var ELEMENT = '__';
91
474
  var MODS = '--';
@@ -230,10 +613,33 @@
230
613
  },
231
614
  methods: {
232
615
  init: function init() {
233
- if (!this.c) {
234
- this.c = new CountUp(this.$el, this.start, this.end, this.decimals, this.duration, this.options);
235
- this.c.start();
236
- }
616
+ var _this = this;
617
+ return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
618
+ var _yield$import, CountUp;
619
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
620
+ while (1) switch (_context.prev = _context.next) {
621
+ case 0:
622
+ if (!(_this.c || typeof window === 'undefined')) {
623
+ _context.next = 2;
624
+ break;
625
+ }
626
+ return _context.abrupt("return");
627
+ case 2:
628
+ _context.next = 4;
629
+ return Promise.resolve().then(function () { return countUp_min$1; });
630
+ case 4:
631
+ _yield$import = _context.sent;
632
+ CountUp = _yield$import["default"];
633
+ if (!_this.c) {
634
+ _this.c = new CountUp(_this.$el, _this.start, _this.end, _this.decimals, _this.duration, _this.options);
635
+ _this.c.start();
636
+ }
637
+ case 7:
638
+ case "end":
639
+ return _context.stop();
640
+ }
641
+ }, _callee);
642
+ }))();
237
643
  },
238
644
  pauseResume: function pauseResume() {
239
645
  if (this.c && this.c.pauseResume) {
@@ -753,7 +1159,8 @@
753
1159
  filters: 'Filter',
754
1160
  sortable: 'Sort',
755
1161
  index: 'Index',
756
- width: 'Width'
1162
+ width: 'Width',
1163
+ reset: 'Reset Columns'
757
1164
  },
758
1165
  emptyText: 'No Data',
759
1166
  tipStartTitle: 'Selected',
@@ -1036,7 +1443,8 @@
1036
1443
  filters: '过滤',
1037
1444
  sortable: '排序',
1038
1445
  index: '顺序',
1039
- width: '宽度'
1446
+ width: '宽度',
1447
+ reset: '重置列设置'
1040
1448
  },
1041
1449
  emptyText: '暂无数据',
1042
1450
  tipStartTitle: '当前表格已选择',
@@ -1319,7 +1727,8 @@
1319
1727
  filters: '筛选',
1320
1728
  sortable: '排序',
1321
1729
  index: '序号',
1322
- width: '宽度'
1730
+ width: '宽度',
1731
+ reset: '重置列设置'
1323
1732
  },
1324
1733
  emptyText: '暂无数据',
1325
1734
  tipStartTitle: '已选择',
@@ -4687,10 +5096,10 @@
4687
5096
  args[_key - 1] = arguments[_key];
4688
5097
  }
4689
5098
  var formatArgs = args;
4690
- if (args.length === 1 && _typeof(args[0]) === 'object') {
5099
+ if (args.length === 1 && _typeof$1(args[0]) === 'object') {
4691
5100
  formatArgs = args[0];
4692
5101
  }
4693
- if (!formatArgs || _typeof(formatArgs) !== 'object') {
5102
+ if (!formatArgs || _typeof$1(formatArgs) !== 'object') {
4694
5103
  formatArgs = {};
4695
5104
  }
4696
5105
  return string.replace(RE_NARGS, function (match, _prefix, key, index) {
@@ -6682,7 +7091,7 @@
6682
7091
  });
6683
7092
  };
6684
7093
  function downFile(url, saveName) {
6685
- if (_typeof(url) === 'object' && url instanceof Blob) {
7094
+ if (_typeof$1(url) === 'object' && url instanceof Blob) {
6686
7095
  url = URL.createObjectURL(url);
6687
7096
  }
6688
7097
  var aLink = document.createElement('a');
@@ -6997,8 +7406,8 @@
6997
7406
  return !validatenull(val) ? val : dafult;
6998
7407
  };
6999
7408
 
7000
- function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7001
- function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7409
+ function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7410
+ function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7002
7411
  var key = 'key';
7003
7412
  function getDataType() {
7004
7413
  var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -7136,7 +7545,7 @@
7136
7545
  columnData[prop] = getDataType(dic, ele.props, ele.dataType);
7137
7546
  }
7138
7547
  });
7139
- var result = _objectSpread$b(_objectSpread$b({}, optionData), columnData);
7548
+ var result = _objectSpread$d(_objectSpread$d({}, optionData), columnData);
7140
7549
  Object.keys(result).forEach(function (ele) {
7141
7550
  safe.DIC[ele] = result[ele];
7142
7551
  });
@@ -7252,8 +7661,180 @@
7252
7661
  }
7253
7662
  };
7254
7663
 
7255
- function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7256
- function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7664
+ function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7665
+ function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7666
+ var warned = new Set();
7667
+ var KNOWN_TYPES = new Set(['', 'input', 'textarea', 'password', 'phone', 'currency', 'bankCard', 'idCard', 'email', 'code', 'plate', 'ip', 'mac', 'uscc', 'number', 'switch', 'upload', 'img', 'array', 'url', 'dynamic', 'slider', 'rate', 'input-tag', 'tag', 'mention', 'input-table', 'input-tree', 'input-icon', 'input-map', 'input-color', 'input-number', 'input-cron', 'cron', 'title'].concat(_toConsumableArray(DATE_LIST), _toConsumableArray(SELECT_LIST)));
7668
+ var isObject = function isObject(value) {
7669
+ return value && Object.prototype.toString.call(value) === '[object Object]';
7670
+ };
7671
+ var normalizeColumn = function normalizeColumn(column, path, warnings) {
7672
+ if (Array.isArray(column)) {
7673
+ return column.map(function (item, index) {
7674
+ return {
7675
+ item: item,
7676
+ path: "".concat(path, "[").concat(index, "]")
7677
+ };
7678
+ });
7679
+ }
7680
+ if (isObject(column)) {
7681
+ return Object.keys(column).map(function (prop) {
7682
+ return {
7683
+ item: _objectSpread$c(_objectSpread$c({}, column[prop]), {}, {
7684
+ prop: column[prop].prop || prop
7685
+ }),
7686
+ path: "".concat(path, ".").concat(prop)
7687
+ };
7688
+ });
7689
+ }
7690
+ warnings.push({
7691
+ path: path,
7692
+ message: 'column 应为数组或对象格式'
7693
+ });
7694
+ return [];
7695
+ };
7696
+ var validSpan = function validSpan(value) {
7697
+ return value === undefined || Number(value) >= 1 && Number(value) <= 24;
7698
+ };
7699
+ var _visitColumns = function visitColumns(column, path, warnings, propMap) {
7700
+ normalizeColumn(column, path, warnings).forEach(function (_ref) {
7701
+ var item = _ref.item,
7702
+ itemPath = _ref.path;
7703
+ if (!isObject(item)) {
7704
+ warnings.push({
7705
+ path: itemPath,
7706
+ message: '字段配置应为对象'
7707
+ });
7708
+ return;
7709
+ }
7710
+ if (!item.prop) {
7711
+ warnings.push({
7712
+ path: itemPath,
7713
+ message: '缺少 prop,字段无法稳定绑定表单值或表格列'
7714
+ });
7715
+ } else if (propMap[item.prop]) {
7716
+ warnings.push({
7717
+ path: itemPath,
7718
+ message: "prop \"".concat(item.prop, "\" \u91CD\u590D\uFF0C\u5DF2\u5728 ").concat(propMap[item.prop], " \u51FA\u73B0")
7719
+ });
7720
+ } else {
7721
+ propMap[item.prop] = itemPath;
7722
+ }
7723
+ if (!item.label && item.type !== 'title') {
7724
+ warnings.push({
7725
+ path: itemPath,
7726
+ message: '建议补充 label,避免表头或表单标签为空'
7727
+ });
7728
+ }
7729
+ if (!validSpan(item.span)) {
7730
+ warnings.push({
7731
+ path: "".concat(itemPath, ".span"),
7732
+ message: 'span 应在 1 到 24 之间'
7733
+ });
7734
+ }
7735
+ if (!validSpan(item.searchSpan)) {
7736
+ warnings.push({
7737
+ path: "".concat(itemPath, ".searchSpan"),
7738
+ message: 'searchSpan 应在 1 到 24 之间'
7739
+ });
7740
+ }
7741
+ if (item.type && !KNOWN_TYPES.has(item.type)) {
7742
+ warnings.push({
7743
+ path: "".concat(itemPath, ".type"),
7744
+ message: "\u672A\u77E5\u5B57\u6BB5\u7C7B\u578B \"".concat(item.type, "\"\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u81EA\u5B9A\u4E49\u7EC4\u4EF6")
7745
+ });
7746
+ }
7747
+ if (item.dicData !== undefined && !Array.isArray(item.dicData)) {
7748
+ warnings.push({
7749
+ path: "".concat(itemPath, ".dicData"),
7750
+ message: 'dicData 应为数组'
7751
+ });
7752
+ }
7753
+ if (item.rules !== undefined && !Array.isArray(item.rules)) {
7754
+ warnings.push({
7755
+ path: "".concat(itemPath, ".rules"),
7756
+ message: 'rules 应为数组'
7757
+ });
7758
+ }
7759
+ if (item.props !== undefined && !isObject(item.props)) {
7760
+ warnings.push({
7761
+ path: "".concat(itemPath, ".props"),
7762
+ message: 'props 应为对象'
7763
+ });
7764
+ }
7765
+ if (item.cascader !== undefined && !Array.isArray(item.cascader)) {
7766
+ warnings.push({
7767
+ path: "".concat(itemPath, ".cascader"),
7768
+ message: 'cascader 应为 prop 数组'
7769
+ });
7770
+ }
7771
+ if (item.children && item.children.column) {
7772
+ _visitColumns(item.children.column, "".concat(itemPath, ".children.column"), warnings, propMap);
7773
+ }
7774
+ });
7775
+ };
7776
+ var validateOption = function validateOption() {
7777
+ var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7778
+ var component = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'component';
7779
+ var warnings = [];
7780
+ if (!isObject(option)) {
7781
+ return [{
7782
+ path: component,
7783
+ message: 'option 应为对象'
7784
+ }];
7785
+ }
7786
+ if (!validSpan(option.span)) {
7787
+ warnings.push({
7788
+ path: "".concat(component, ".span"),
7789
+ message: 'span 应在 1 到 24 之间'
7790
+ });
7791
+ }
7792
+ if (!validSpan(option.searchSpan)) {
7793
+ warnings.push({
7794
+ path: "".concat(component, ".searchSpan"),
7795
+ message: 'searchSpan 应在 1 到 24 之间'
7796
+ });
7797
+ }
7798
+ var propMap = {};
7799
+ if (option.column) {
7800
+ _visitColumns(option.column, "".concat(component, ".column"), warnings, propMap);
7801
+ } else if (['crud', 'form', 'search'].includes(component)) {
7802
+ warnings.push({
7803
+ path: "".concat(component, ".column"),
7804
+ message: '缺少 column 配置'
7805
+ });
7806
+ }
7807
+ if (Array.isArray(option.group)) {
7808
+ option.group.forEach(function (group, index) {
7809
+ if (!isObject(group)) {
7810
+ warnings.push({
7811
+ path: "".concat(component, ".group[").concat(index, "]"),
7812
+ message: '分组配置应为对象'
7813
+ });
7814
+ return;
7815
+ }
7816
+ if (group.column) {
7817
+ _visitColumns(group.column, "".concat(component, ".group[").concat(index, "].column"), warnings, propMap);
7818
+ }
7819
+ });
7820
+ }
7821
+ return warnings;
7822
+ };
7823
+ var warnOption = function warnOption() {
7824
+ var warnings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
7825
+ var component = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'component';
7826
+ warnings.forEach(function (warning) {
7827
+ var key = "".concat(component, ":").concat(warning.path, ":").concat(warning.message);
7828
+ if (warned.has(key)) return;
7829
+ warned.add(key);
7830
+ if (typeof console !== 'undefined' && console.warn) {
7831
+ console.warn("[Avue option warn][".concat(component, "] ").concat(warning.path, ": ").concat(warning.message));
7832
+ }
7833
+ });
7834
+ };
7835
+
7836
+ function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7837
+ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7257
7838
  function init (name) {
7258
7839
  return {
7259
7840
  mixins: [slot],
@@ -7306,7 +7887,7 @@
7306
7887
  return document.body.clientWidth <= 768;
7307
7888
  },
7308
7889
  resultOption: function resultOption() {
7309
- return _objectSpread$a(_objectSpread$a({}, this.tableOption), {
7890
+ return _objectSpread$b(_objectSpread$b({}, this.tableOption), {
7310
7891
  column: this.propOption || []
7311
7892
  });
7312
7893
  },
@@ -7324,8 +7905,15 @@
7324
7905
  methods: {
7325
7906
  init: function init(type) {
7326
7907
  var globOption = this.deepClone(this.$AVUE["".concat(name, "Option")]);
7327
- var option = _objectSpread$a(_objectSpread$a({}, globOption), this.option);
7908
+ var option = _objectSpread$b(_objectSpread$b({}, globOption), this.option);
7328
7909
  this.tableOption = option;
7910
+ var componentName = name || (this.$options.name || '').replace(/^avue-/, '') || 'component';
7911
+ if (this.$AVUE.optionValidate !== false && option.optionValidate !== false) {
7912
+ warnOption(validateOption(option, componentName), componentName);
7913
+ }
7914
+ if (name === 'crud' && typeof this.restoreColumnState === 'function') {
7915
+ this.restoreColumnState();
7916
+ }
7329
7917
  this.handleLocalDic();
7330
7918
  if (type !== false) this.handleLoadDic();
7331
7919
  },
@@ -8564,6 +9152,7 @@
8564
9152
  } else if (prop === 'filters') {
8565
9153
  this.crud.refreshTable();
8566
9154
  }
9155
+ this.crud.saveColumnState(prop);
8567
9156
  },
8568
9157
  rowDrop: function rowDrop() {
8569
9158
  var _this2 = this;
@@ -8581,6 +9170,7 @@
8581
9170
  var _component_el_table_column = vue.resolveComponent("el-table-column");
8582
9171
  var _component_el_checkbox = vue.resolveComponent("el-checkbox");
8583
9172
  var _component_el_table = vue.resolveComponent("el-table");
9173
+ var _component_el_button = vue.resolveComponent("el-button");
8584
9174
  var _component_el_drawer = vue.resolveComponent("el-drawer");
8585
9175
  return _ctx.columnBox ? (vue.openBlock(), vue.createBlock(_component_el_drawer, {
8586
9176
  key: 0,
@@ -8590,10 +9180,10 @@
8590
9180
  title: _ctx.t('crud.showTitle'),
8591
9181
  size: _ctx.crud.isMobile ? '100%' : '40%',
8592
9182
  modelValue: _ctx.columnBox,
8593
- "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
9183
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
8594
9184
  return _ctx.columnBox = $event;
8595
9185
  })
8596
- }, {
9186
+ }, vue.createSlots({
8597
9187
  "default": vue.withCtx(function () {
8598
9188
  return [vue.createVNode(_component_el_table, {
8599
9189
  data: _ctx.data,
@@ -8639,8 +9229,24 @@
8639
9229
  _: 1 /* STABLE */
8640
9230
  }, 8 /* PROPS */, ["data", "size"])];
8641
9231
  }),
8642
- _: 1 /* STABLE */
8643
- }, 8 /* PROPS */, ["append-to-body", "class", "title", "size", "modelValue"])) : vue.createCommentVNode("v-if", true);
9232
+ _: 2 /* DYNAMIC */
9233
+ }, [_ctx.crud.columnStateEnabled ? {
9234
+ name: "footer",
9235
+ fn: vue.withCtx(function () {
9236
+ return [vue.createVNode(_component_el_button, {
9237
+ size: _ctx.crud.size,
9238
+ onClick: _cache[0] || (_cache[0] = function ($event) {
9239
+ return _ctx.crud.resetColumnState();
9240
+ })
9241
+ }, {
9242
+ "default": vue.withCtx(function () {
9243
+ return [vue.createTextVNode(vue.toDisplayString(_ctx.t('crud.column.reset')), 1 /* TEXT */)];
9244
+ }),
9245
+ _: 1 /* STABLE */
9246
+ }, 8 /* PROPS */, ["size"])];
9247
+ }),
9248
+ key: "0"
9249
+ } : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["append-to-body", "class", "title", "size", "modelValue"])) : vue.createCommentVNode("v-if", true);
8644
9250
  }
8645
9251
 
8646
9252
  script$1d.render = render$1d;
@@ -9649,8 +10255,8 @@
9649
10255
  }
9650
10256
  };
9651
10257
 
9652
- function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9653
- function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10258
+ function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10259
+ function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9654
10260
  var script$19 = {
9655
10261
  name: 'form-temp',
9656
10262
  mixins: [slot],
@@ -9748,7 +10354,7 @@
9748
10354
  },
9749
10355
  getPlaceholder: getPlaceholder,
9750
10356
  getBind: function getBind(column) {
9751
- var params = _objectSpread$9(_objectSpread$9(_objectSpread$9({}, column), this.params), this.$uploadFun(column));
10357
+ var params = _objectSpread$a(_objectSpread$a(_objectSpread$a({}, column), this.params), this.$uploadFun(column));
9752
10358
  ['value', 'className'].forEach(function (ele) {
9753
10359
  delete params[ele];
9754
10360
  });
@@ -10942,12 +11548,104 @@
10942
11548
  script$13.render = render$13;
10943
11549
  script$13.__file = "packages/element-plus/crud/column/column-default.vue";
10944
11550
 
11551
+ function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11552
+ function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11553
+ var STORAGE_PREFIX = 'AVUE_COLUMN_STATE:';
11554
+ var STATE_KEYS = ['hide', 'fixed', 'filters', 'sortable', 'width'];
11555
+ var getStorage = function getStorage() {
11556
+ var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'localStorage';
11557
+ if (typeof window === 'undefined') return null;
11558
+ var storage = type === 'sessionStorage' ? window.sessionStorage : window.localStorage;
11559
+ return storage || null;
11560
+ };
11561
+ var normalizeColumns = function normalizeColumns() {
11562
+ var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
11563
+ if (Array.isArray(columns)) return columns;
11564
+ return Object.keys(columns).map(function (prop) {
11565
+ return _objectSpread$9(_objectSpread$9({}, columns[prop]), {}, {
11566
+ prop: columns[prop].prop || prop
11567
+ });
11568
+ });
11569
+ };
11570
+ var getColumnStateStorageKey = function getColumnStateStorageKey(key) {
11571
+ return "".concat(STORAGE_PREFIX).concat(key);
11572
+ };
11573
+ var createColumnState = function createColumnState() {
11574
+ var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
11575
+ return {
11576
+ version: 1,
11577
+ columns: normalizeColumns(columns).filter(function (column) {
11578
+ return column && column.prop;
11579
+ }).map(function (column, index) {
11580
+ var item = {
11581
+ prop: column.prop,
11582
+ order: index
11583
+ };
11584
+ STATE_KEYS.forEach(function (key) {
11585
+ if (column[key] !== undefined) item[key] = column[key];
11586
+ });
11587
+ return item;
11588
+ })
11589
+ };
11590
+ };
11591
+ var applyColumnState = function applyColumnState() {
11592
+ var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
11593
+ var state = arguments.length > 1 ? arguments[1] : undefined;
11594
+ var columnList = normalizeColumns(columns);
11595
+ if (!state || !Array.isArray(state.columns)) return columnList;
11596
+ var stateMap = state.columns.reduce(function (map, item) {
11597
+ if (item && item.prop) map[item.prop] = item;
11598
+ return map;
11599
+ }, {});
11600
+ columnList.forEach(function (column) {
11601
+ var item = stateMap[column.prop];
11602
+ if (!item) return;
11603
+ STATE_KEYS.forEach(function (key) {
11604
+ if (item[key] !== undefined) column[key] = item[key];
11605
+ });
11606
+ });
11607
+ columnList.sort(function (a, b) {
11608
+ var _a, _b;
11609
+ var aOrder = (_a = stateMap[a.prop]) === null || _a === void 0 ? void 0 : _a.order;
11610
+ var bOrder = (_b = stateMap[b.prop]) === null || _b === void 0 ? void 0 : _b.order;
11611
+ if (aOrder === undefined && bOrder === undefined) return 0;
11612
+ if (aOrder === undefined) return 1;
11613
+ if (bOrder === undefined) return -1;
11614
+ return aOrder - bOrder;
11615
+ });
11616
+ return columnList;
11617
+ };
11618
+ var loadColumnState = function loadColumnState(key, storageType) {
11619
+ var storage = getStorage(storageType);
11620
+ if (!storage || !key) return null;
11621
+ try {
11622
+ var value = storage.getItem(getColumnStateStorageKey(key));
11623
+ return value ? JSON.parse(value) : null;
11624
+ } catch (error) {
11625
+ return null;
11626
+ }
11627
+ };
11628
+ var saveColumnState = function saveColumnState(key, state, storageType) {
11629
+ var storage = getStorage(storageType);
11630
+ if (!storage || !key) return;
11631
+ try {
11632
+ storage.setItem(getColumnStateStorageKey(key), JSON.stringify(state));
11633
+ } catch (error) {}
11634
+ };
11635
+ var removeColumnState = function removeColumnState(key, storageType) {
11636
+ var storage = getStorage(storageType);
11637
+ if (!storage || !key) return;
11638
+ try {
11639
+ storage.removeItem(getColumnStateStorageKey(key));
11640
+ } catch (error) {}
11641
+ };
11642
+
10945
11643
  function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10946
11644
  function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10947
11645
  var script$12 = create({
10948
11646
  name: "crud",
10949
11647
  mixins: [init("crud"), locale],
10950
- emits: ["update:modelValue", "tree-load", "selection-clear", "header-dragend", "expand-change", "current-row-change", "refresh-change", "selection-change", "select", "select-all", "sortable-change", "column-sortable-change", "filter", "filter-change", "sort-change", "row-dblclick", "row-click", "cell-mouse-enter", "cell-mouse-leave", "cell-click", "header-click", "tab-click", "enter", "error", "date-change", "grid-status-change", "update:search", "update:page", "search-icon-change", "search-change", "search-reset", "on-load", "current-change", "size-change", "row-contextmenu", "header-contextmenu", "cell-dblclick", "row-del", "row-save", "row-update", "change", "scroll"],
11648
+ emits: ["update:modelValue", "tree-load", "selection-clear", "header-dragend", "expand-change", "current-row-change", "refresh-change", "selection-change", "select", "select-all", "sortable-change", "column-sortable-change", "filter", "filter-change", "sort-change", "row-dblclick", "row-click", "cell-mouse-enter", "cell-mouse-leave", "cell-click", "header-click", "tab-click", "enter", "error", "date-change", "grid-status-change", "update:search", "update:page", "search-icon-change", "search-change", "search-reset", "on-load", "current-change", "size-change", "row-contextmenu", "header-contextmenu", "cell-dblclick", "row-del", "row-save", "row-update", "change", "scroll", "column-state-change", "column-state-reset"],
10951
11649
  directives: {
10952
11650
  permission: permission
10953
11651
  },
@@ -10998,14 +11696,14 @@
10998
11696
  btnDisabledList: {},
10999
11697
  btnDisabled: false,
11000
11698
  "default": {},
11001
- gridShow: false
11699
+ gridShow: false,
11700
+ columnStateSource: null
11002
11701
  };
11003
11702
  },
11004
11703
  mounted: function mounted() {
11005
11704
  this.dataInit();
11006
11705
  this.getTableHeight();
11007
11706
  this.initFun();
11008
- this.initVirtualizeFun();
11009
11707
  },
11010
11708
  computed: {
11011
11709
  columnVirtualizeOption: function columnVirtualizeOption() {
@@ -11123,6 +11821,15 @@
11123
11821
  columnOption: function columnOption() {
11124
11822
  return getColumn(this.tableOption.column);
11125
11823
  },
11824
+ columnStateKey: function columnStateKey() {
11825
+ return this.tableOption.columnStateKey || this.tableOption.columnPersistKey || this.tableOption.tableId;
11826
+ },
11827
+ columnStateStorage: function columnStateStorage() {
11828
+ return this.tableOption.columnStateStorage || "localStorage";
11829
+ },
11830
+ columnStateEnabled: function columnStateEnabled() {
11831
+ return this.validData(this.tableOption.columnState, true) !== false && !this.validatenull(this.columnStateKey);
11832
+ },
11126
11833
  sumColumnList: function sumColumnList() {
11127
11834
  return this.tableOption.sumColumnList || [];
11128
11835
  },
@@ -11226,12 +11933,8 @@
11226
11933
  }
11227
11934
  },
11228
11935
  methods: {
11229
- initVirtualizeFun: function initVirtualizeFun() {
11230
- if (!this.virtualize) return;
11231
- this.initTableMethods(["scrollTo", "scrollToTop", "scrollToLeft", "scrollRow"]);
11232
- },
11233
11936
  initFun: function initFun() {
11234
- this.initTableMethods(["scrollTo", "setScrollTop", "setScrollLeft", "columns", "doLayout", "updateKeyChildren", "toggleAllSelection", "toggleRowSelection", "toggleRowExpansion", "setCurrentRow", "clearFilter", "clearSort"]);
11937
+ this.initTableMethods(["scrollTo", "setScrollTop", "setScrollLeft", "columns", "doLayout", "updateKeyChildren", "getHalfSelectionRows", "toggleAllSelection", "toggleRowSelection", "toggleRowExpansion", "setCurrentRow", "clearFilter", "clearSort"]);
11235
11938
  },
11236
11939
  initTableMethods: function initTableMethods(methods) {
11237
11940
  var _this2 = this;
@@ -11244,6 +11947,47 @@
11244
11947
  };
11245
11948
  });
11246
11949
  },
11950
+ restoreColumnState: function restoreColumnState() {
11951
+ if (!this.columnStateEnabled) return;
11952
+ this.columnStateSource = this.deepClone(this.tableOption.column);
11953
+ var loader = this.tableOption.columnStateLoad;
11954
+ var state = typeof loader === "function" ? loader(this.columnStateKey, this.tableOption) : loadColumnState(this.columnStateKey, this.columnStateStorage);
11955
+ if (!state) return;
11956
+ this.tableOption.column = applyColumnState(this.tableOption.column, state);
11957
+ },
11958
+ saveColumnState: function saveColumnState$1() {
11959
+ var reason = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "change";
11960
+ if (!this.columnStateEnabled) return;
11961
+ if (this.validData(this.tableOption.columnStateAutoSave, true) === false) {
11962
+ return;
11963
+ }
11964
+ var state = createColumnState(this.columnOption);
11965
+ var saver = this.tableOption.columnStateSave;
11966
+ if (typeof saver === "function") {
11967
+ saver(state, this.columnStateKey, reason, this.tableOption);
11968
+ } else {
11969
+ saveColumnState(this.columnStateKey, state, this.columnStateStorage);
11970
+ }
11971
+ this.$emit("column-state-change", state, reason);
11972
+ },
11973
+ resetColumnState: function resetColumnState(callback) {
11974
+ var _this3 = this;
11975
+ if (!this.columnStateEnabled) return;
11976
+ var remover = this.tableOption.columnStateRemove;
11977
+ if (typeof remover === "function") {
11978
+ remover(this.columnStateKey, this.tableOption);
11979
+ } else {
11980
+ removeColumnState(this.columnStateKey, this.columnStateStorage);
11981
+ }
11982
+ if (this.columnStateSource) {
11983
+ this.tableOption.column = this.deepClone(this.columnStateSource);
11984
+ }
11985
+ this.refreshTable(function () {
11986
+ _this3.doLayout();
11987
+ callback && callback();
11988
+ _this3.$emit("column-state-reset", _this3.columnStateKey);
11989
+ });
11990
+ },
11247
11991
  handleGridShow: function handleGridShow() {
11248
11992
  this.gridShow = !this.gridShow;
11249
11993
  this.$emit("grid-status-change", this.gridShow);
@@ -11266,13 +12010,13 @@
11266
12010
  }
11267
12011
  },
11268
12012
  getTableHeight: function getTableHeight() {
11269
- var _this3 = this;
12013
+ var _this4 = this;
11270
12014
  this.$nextTick(function () {
11271
- if (_this3.isAutoHeight) {
12015
+ if (_this4.isAutoHeight) {
11272
12016
  var clientHeight = document.documentElement.clientHeight;
11273
- var calcHeight = _this3.calcHeight || 0;
11274
- var tableRef = _this3.$refs.table;
11275
- var tablePageRef = _this3.$refs.tablePage;
12017
+ var calcHeight = _this4.calcHeight || 0;
12018
+ var tableRef = _this4.$refs.table;
12019
+ var tablePageRef = _this4.$refs.tablePage;
11276
12020
  var tableHeight = clientHeight - calcHeight;
11277
12021
  if (tableRef) {
11278
12022
  var height = tableRef.$el.offsetTop || 0;
@@ -11282,11 +12026,11 @@
11282
12026
  var _height = tablePageRef.$el.offsetHeight || 0;
11283
12027
  tableHeight -= _height;
11284
12028
  }
11285
- _this3.tableHeight = tableHeight;
12029
+ _this4.tableHeight = tableHeight;
11286
12030
  } else {
11287
- _this3.tableHeight = _this3.tableOption.height;
12031
+ _this4.tableHeight = _this4.tableOption.height;
11288
12032
  }
11289
- _this3.doLayout();
12033
+ _this4.doLayout();
11290
12034
  });
11291
12035
  },
11292
12036
  refreshTable: function refreshTable(callback) {
@@ -11319,12 +12063,12 @@
11319
12063
  this.$refs.table.clearSelection();
11320
12064
  },
11321
12065
  dataInit: function dataInit() {
11322
- var _this4 = this;
12066
+ var _this5 = this;
11323
12067
  this.list = this.data;
11324
12068
  //初始化序列的参数
11325
12069
  this.list.forEach(function (ele, index) {
11326
- if (ele.$cellEdit && !_this4.cascaderFormList[index]) {
11327
- _this4.cascaderFormList[index] = _this4.deepClone(ele);
12070
+ if (ele.$cellEdit && !_this5.cascaderFormList[index]) {
12071
+ _this5.cascaderFormList[index] = _this5.deepClone(ele);
11328
12072
  }
11329
12073
  ele.$cellEdit = ele.$cellEdit || false;
11330
12074
  ele.$index = index;
@@ -11332,6 +12076,11 @@
11332
12076
  },
11333
12077
  //拖动表头事件
11334
12078
  headerDragend: function headerDragend(newWidth, oldWidth, column, event) {
12079
+ var prop = column.property || column.prop;
12080
+ if (prop && this.objectOption[prop]) {
12081
+ this.objectOption[prop].width = newWidth;
12082
+ this.saveColumnState("width");
12083
+ }
11335
12084
  this.$emit("header-dragend", newWidth, oldWidth, column, event);
11336
12085
  },
11337
12086
  headerSort: function headerSort(oldIndex, newIndex) {
@@ -11350,6 +12099,12 @@
11350
12099
  var targetRow = allColumns.splice(realOldIndex, 1)[0];
11351
12100
  allColumns.splice(realNewIndex, 0, targetRow);
11352
12101
  this.doLayout();
12102
+ this.saveColumnState("sort");
12103
+ this.$emit("column-sortable-change", {
12104
+ oldIndex: oldIndex,
12105
+ newIndex: newIndex,
12106
+ column: targetRow
12107
+ });
11353
12108
  },
11354
12109
  scroll: function scroll(params) {
11355
12110
  this.$emit("scroll", params);
@@ -11368,10 +12123,10 @@
11368
12123
  },
11369
12124
  // 选中实例
11370
12125
  toggleSelection: function toggleSelection(rows, checked) {
11371
- var _this5 = this;
12126
+ var _this6 = this;
11372
12127
  if (rows) {
11373
12128
  rows.forEach(function (row) {
11374
- _this5.$refs.table.toggleRowSelection(row, checked);
12129
+ _this6.$refs.table.toggleRowSelection(row, checked);
11375
12130
  });
11376
12131
  } else {
11377
12132
  this.$refs.table.clearSelection();
@@ -11468,27 +12223,27 @@
11468
12223
  }
11469
12224
  },
11470
12225
  rowCellUpdate: function rowCellUpdate(row, index) {
11471
- var _this6 = this;
12226
+ var _this7 = this;
11472
12227
  var done = function done(newRow) {
11473
12228
  row = newRow || row;
11474
- _this6.btnDisabledList[index] = false;
11475
- _this6.btnDisabled = false;
12229
+ _this7.btnDisabledList[index] = false;
12230
+ _this7.btnDisabled = false;
11476
12231
  row.$cellEdit = false;
11477
- _this6.list[index] = row;
11478
- _this6.cascaderIndexList.splice(_this6.cascaderIndexList.indexOf(index), 1);
11479
- delete _this6.cascaderFormList[index];
12232
+ _this7.list[index] = row;
12233
+ _this7.cascaderIndexList.splice(_this7.cascaderIndexList.indexOf(index), 1);
12234
+ delete _this7.cascaderFormList[index];
11480
12235
  };
11481
12236
  var loading = function loading() {
11482
- _this6.btnDisabledList[index] = false;
11483
- _this6.btnDisabled = false;
12237
+ _this7.btnDisabledList[index] = false;
12238
+ _this7.btnDisabled = false;
11484
12239
  };
11485
12240
  this.validateCellField(index).then(function () {
11486
- _this6.btnDisabledList[index] = true;
11487
- _this6.btnDisabled = true;
11488
- if (_this6.validatenull(row[_this6.rowKey])) {
11489
- _this6.$emit("row-save", row, done, loading);
12241
+ _this7.btnDisabledList[index] = true;
12242
+ _this7.btnDisabled = true;
12243
+ if (_this7.validatenull(row[_this7.rowKey])) {
12244
+ _this7.$emit("row-save", row, done, loading);
11490
12245
  } else {
11491
- _this6.$emit("row-update", row, index, done, loading);
12246
+ _this7.$emit("row-update", row, index, done, loading);
11492
12247
  }
11493
12248
  });
11494
12249
  },
@@ -11502,17 +12257,17 @@
11502
12257
  },
11503
12258
  // 对部分表单字段进行校验
11504
12259
  validateCellForm: function validateCellForm(cb) {
11505
- var _this7 = this;
12260
+ var _this8 = this;
11506
12261
  return new Promise(function (resolve) {
11507
- _this7.$refs.cellForm.validate(function (valid, msg) {
12262
+ _this8.$refs.cellForm.validate(function (valid, msg) {
11508
12263
  resolve(msg);
11509
12264
  });
11510
12265
  });
11511
12266
  },
11512
12267
  validateCellField: function validateCellField(index) {
11513
- var _this8 = this;
12268
+ var _this9 = this;
11514
12269
  return new Promise(function (resolve, reject) {
11515
- _this8.$refs.cellForm.validate(function (valid) {
12270
+ _this9.$refs.cellForm.validate(function (valid) {
11516
12271
  var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11517
12272
  var result = true;
11518
12273
  var list = [];
@@ -11523,7 +12278,7 @@
11523
12278
  list.push(ele);
11524
12279
  }
11525
12280
  });
11526
- if (!_this8.validatenull(list)) _this8.$refs.cellForm.clearValidate(list);
12281
+ if (!_this9.validatenull(list)) _this9.$refs.cellForm.clearValidate(list);
11527
12282
  if (result) resolve();
11528
12283
  });
11529
12284
  });
@@ -11574,11 +12329,11 @@
11574
12329
  },
11575
12330
  // 删除
11576
12331
  rowDel: function rowDel(row, index) {
11577
- var _this9 = this;
12332
+ var _this10 = this;
11578
12333
  this.$emit("row-del", row, index, function () {
11579
- var _this9$findData = _this9.findData(row[_this9.rowKey]),
11580
- parentList = _this9$findData.parentList,
11581
- index = _this9$findData.index;
12334
+ var _this10$findData = _this10.findData(row[_this10.rowKey]),
12335
+ parentList = _this10$findData.parentList,
12336
+ index = _this10$findData.index;
11582
12337
  if (parentList) parentList.splice(index, 1);
11583
12338
  });
11584
12339
  },
@@ -11588,7 +12343,7 @@
11588
12343
  },
11589
12344
  //合集统计逻辑
11590
12345
  tableSummaryMethod: function tableSummaryMethod(param) {
11591
- var _this10 = this;
12346
+ var _this11 = this;
11592
12347
  var sumsList = {};
11593
12348
  var sums = [];
11594
12349
  var columns = param.columns,
@@ -11602,7 +12357,7 @@
11602
12357
  this.sumsList = sumsList;
11603
12358
  } else {
11604
12359
  columns.forEach(function (column, index) {
11605
- var currItem = _this10.sumColumnList.find(function (item) {
12360
+ var currItem = _this11.sumColumnList.find(function (item) {
11606
12361
  return item.name === column.property;
11607
12362
  });
11608
12363
  if (currItem) {
@@ -11675,11 +12430,11 @@
11675
12430
  });
11676
12431
  },
11677
12432
  findData: function findData(id) {
11678
- var _this11 = this;
12433
+ var _this12 = this;
11679
12434
  var result = {};
11680
12435
  var _callback = function callback(parentList, parent) {
11681
12436
  parentList.forEach(function (ele, index) {
11682
- if (ele[_this11.rowKey] == id) {
12437
+ if (ele[_this12.rowKey] == id) {
11683
12438
  result = {
11684
12439
  item: ele,
11685
12440
  index: index,
@@ -11687,8 +12442,8 @@
11687
12442
  parent: parent
11688
12443
  };
11689
12444
  }
11690
- if (ele[_this11.childrenKey]) {
11691
- _callback(ele[_this11.childrenKey], ele);
12445
+ if (ele[_this12.childrenKey]) {
12446
+ _callback(ele[_this12.childrenKey], ele);
11692
12447
  }
11693
12448
  });
11694
12449
  };
@@ -12285,7 +13040,7 @@
12285
13040
  var textObj = {
12286
13041
  date: date || dayjs().format('YYYY-MM-DD HH:mm:ss'),
12287
13042
  text: function () {
12288
- if (_typeof(text) != 'object') {
13043
+ if (_typeof$1(text) != 'object') {
12289
13044
  return {
12290
13045
  text: text
12291
13046
  };
@@ -13095,7 +13850,7 @@
13095
13850
  function create() {
13096
13851
  Object.keys(column).forEach(function (index) {
13097
13852
  var ele = column[index];
13098
- var isObject = _typeof(ele.mock) === 'object';
13853
+ var isObject = _typeof$1(ele.mock) === 'object';
13099
13854
  var params = isObject ? ele.mock || {} : {};
13100
13855
  params.dic = dicData[ele.prop] || [];
13101
13856
  params.props = ele.props || {};
@@ -14530,6 +15285,10 @@
14530
15285
  "default": true
14531
15286
  },
14532
15287
  unlinkPanels: Boolean,
15288
+ singlePanel: {
15289
+ type: Boolean,
15290
+ "default": undefined
15291
+ },
14533
15292
  value: {},
14534
15293
  startPlaceholder: String,
14535
15294
  endPlaceholder: String,
@@ -14567,6 +15326,7 @@
14567
15326
  "cell-class-name": _ctx.cellClassName,
14568
15327
  editable: _ctx.editable,
14569
15328
  "unlink-panels": _ctx.unlinkPanels,
15329
+ "single-panel": _ctx.singlePanel,
14570
15330
  "default-value": _ctx.defaultValue,
14571
15331
  "default-time": _ctx.defaultTime,
14572
15332
  "range-separator": _ctx.rangeSeparator,
@@ -14596,7 +15356,7 @@
14596
15356
  }) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$u, vue.toDisplayString(cell.renderText || cell.text), 1 /* TEXT */))])];
14597
15357
  }),
14598
15358
  _: 3 /* FORWARDED */
14599
- }, 8 /* PROPS */, ["type", "modelValue", "popper-class", "size", "cell-class-name", "editable", "unlink-panels", "default-value", "default-time", "range-separator", "start-placeholder", "end-placeholder", "format", "clearable", "shortcuts", "disabled-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "value-format", "placeholder", "prefix-icon", "show-now", "onBlur", "onFocus", "onClick", "readonly", "disabled"])], 2 /* CLASS */);
15359
+ }, 8 /* PROPS */, ["type", "modelValue", "popper-class", "size", "cell-class-name", "editable", "unlink-panels", "single-panel", "default-value", "default-time", "range-separator", "start-placeholder", "end-placeholder", "format", "clearable", "shortcuts", "disabled-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "value-format", "placeholder", "prefix-icon", "show-now", "onBlur", "onFocus", "onClick", "readonly", "disabled"])], 2 /* CLASS */);
14600
15360
  }
14601
15361
 
14602
15362
  script$X.render = render$X;
@@ -17421,6 +18181,7 @@
17421
18181
  var script$O = create({
17422
18182
  name: "select",
17423
18183
  mixins: [props(), event(), locale],
18184
+ emits: ["update:modelValue", "click", "focus", "blur", "change", "end-reached"],
17424
18185
  data: function data() {
17425
18186
  return {
17426
18187
  checked: false,
@@ -17458,6 +18219,7 @@
17458
18219
  "default": false
17459
18220
  },
17460
18221
  removeTag: Function,
18222
+ endReached: Function,
17461
18223
  collapseTags: Boolean,
17462
18224
  collapseTagsTooltip: Boolean,
17463
18225
  maxCollapseTags: Number,
@@ -17570,6 +18332,19 @@
17570
18332
  if (this.removeTag && typeof this.removeTag === 'function') {
17571
18333
  this.removeTag(tagValue);
17572
18334
  }
18335
+ },
18336
+ handleEndReached: function handleEndReached() {
18337
+ if (this.endReached && typeof this.endReached === "function") {
18338
+ this.endReached({
18339
+ value: this.modelValue,
18340
+ column: this.column,
18341
+ dic: this.dic
18342
+ });
18343
+ }
18344
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18345
+ args[_key] = arguments[_key];
18346
+ }
18347
+ this.$emit.apply(this, ["end-reached"].concat(args));
17573
18348
  }
17574
18349
  }
17575
18350
  });
@@ -17609,6 +18384,7 @@
17609
18384
  onBlur: _ctx.handleBlur,
17610
18385
  onClick: _ctx.handleClick,
17611
18386
  onRemoveTag: _ctx.handleremoveTag,
18387
+ onEndReached: _ctx.handleEndReached,
17612
18388
  "multiple-limit": _ctx.limit,
17613
18389
  "allow-create": _ctx.allowCreate,
17614
18390
  "default-first-option": _ctx.defaultFirstOption,
@@ -17708,7 +18484,7 @@
17708
18484
  }), 128 /* KEYED_FRAGMENT */))], 64 /* STABLE_FRAGMENT */))], 64 /* STABLE_FRAGMENT */))];
17709
18485
  }),
17710
18486
  _: 3 /* FORWARDED */
17711
- }, 40 /* PROPS, NEED_HYDRATION */, ["class", "modelValue", "size", "options", "props", "loading", "loading-text", "value-on-clear", "multiple", "filterable", "remote", "readonly", "no-match-text", "no-data-text", "remote-method", "popper-class", "popper-append-to-body", "collapse-tags", "collapse-tags-tooltip", "max-collapse-tags", "clearable", "placeholder", "onFocus", "onBlur", "onClick", "onRemoveTag", "multiple-limit", "allow-create", "default-first-option", "disabled"]);
18487
+ }, 40 /* PROPS, NEED_HYDRATION */, ["class", "modelValue", "size", "options", "props", "loading", "loading-text", "value-on-clear", "multiple", "filterable", "remote", "readonly", "no-match-text", "no-data-text", "remote-method", "popper-class", "popper-append-to-body", "collapse-tags", "collapse-tags-tooltip", "max-collapse-tags", "clearable", "placeholder", "onFocus", "onBlur", "onClick", "onRemoveTag", "onEndReached", "multiple-limit", "allow-create", "default-first-option", "disabled"]);
17712
18488
  }
17713
18489
 
17714
18490
  script$O.render = render$O;
@@ -17723,6 +18499,16 @@
17723
18499
  type: String,
17724
18500
  "default": "light"
17725
18501
  },
18502
+ virtualScroll: {
18503
+ type: Boolean,
18504
+ "default": undefined
18505
+ },
18506
+ fitInputWidth: {
18507
+ type: Boolean,
18508
+ "default": undefined
18509
+ },
18510
+ height: Number,
18511
+ itemSize: Number,
17726
18512
  showCheckedStrategy: String,
17727
18513
  checkStrictly: {
17728
18514
  type: Boolean,
@@ -17831,6 +18617,10 @@
17831
18617
  props: _ctx.allProps,
17832
18618
  size: _ctx.size,
17833
18619
  effect: _ctx.effect,
18620
+ "virtual-scroll": _ctx.virtualScroll,
18621
+ "fit-input-width": _ctx.fitInputWidth,
18622
+ height: _ctx.height,
18623
+ "item-size": _ctx.itemSize,
17834
18624
  clearable: _ctx.clearableVal,
17835
18625
  "show-all-levels": _ctx.showAllLevels,
17836
18626
  filterable: _ctx.filterable,
@@ -17854,7 +18644,7 @@
17854
18644
  }) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$B, vue.toDisplayString(data[_ctx.labelKey]), 1 /* TEXT */))];
17855
18645
  }),
17856
18646
  _: 3 /* FORWARDED */
17857
- }, 8 /* PROPS */, ["options", "class", "onClick", "onChange", "modelValue", "placeholder", "props", "size", "effect", "clearable", "show-all-levels", "filterable", "popper-class", "separator", "disabled", "show-checked-strategy", "collapse-tags", "collapse-tags-tooltip", "max-collapse-tags", "onFocus", "onBlur"]);
18647
+ }, 8 /* PROPS */, ["options", "class", "onClick", "onChange", "modelValue", "placeholder", "props", "size", "effect", "virtual-scroll", "fit-input-width", "height", "item-size", "clearable", "show-all-levels", "filterable", "popper-class", "separator", "disabled", "show-checked-strategy", "collapse-tags", "collapse-tags-tooltip", "max-collapse-tags", "onFocus", "onBlur"]);
17858
18648
  }
17859
18649
 
17860
18650
  script$N.render = render$N;
@@ -20541,7 +21331,7 @@
20541
21331
  },
20542
21332
  isObject: function isObject() {
20543
21333
  var obj = this.text[0];
20544
- return _typeof(obj) === "object" || this.dataType == "object" || this.isJson;
21334
+ return _typeof$1(obj) === "object" || this.dataType == "object" || this.isJson;
20545
21335
  },
20546
21336
  acceptList: function acceptList() {
20547
21337
  if (Array.isArray(this.accept)) {
@@ -26108,7 +26898,7 @@
26108
26898
  function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26109
26899
  var components = _objectSpread$2(_objectSpread$2({}, elementComponents), dataComponents);
26110
26900
 
26111
- var version = '3.9.0';
26901
+ var version = '3.9.2';
26112
26902
 
26113
26903
  var contextmenu = (function () {
26114
26904
  var dialogDom;
@@ -26209,7 +26999,9 @@
26209
26999
  };
26210
27000
  })();
26211
27001
 
26212
- var XLSX = window.XLSX;
27002
+ var getXLSX = function getXLSX() {
27003
+ return typeof window === 'undefined' ? undefined : window.XLSX;
27004
+ };
26213
27005
  var $Export = {
26214
27006
  buildHeader: function buildHeader(revealList) {
26215
27007
  var _this = this;
@@ -26332,7 +27124,7 @@
26332
27124
  }
26333
27125
  return merges;
26334
27126
  },
26335
- aoa_to_sheet: function aoa_to_sheet(data, headerRows) {
27127
+ aoa_to_sheet: function aoa_to_sheet(data, headerRows, xlsx) {
26336
27128
  var ws = {};
26337
27129
  var range = {
26338
27130
  s: {
@@ -26419,7 +27211,7 @@
26419
27211
  }
26420
27212
  };
26421
27213
  }
26422
- var cell_ref = XLSX.utils.encode_cell({
27214
+ var cell_ref = xlsx.utils.encode_cell({
26423
27215
  c: C,
26424
27216
  r: R
26425
27217
  });
@@ -26434,7 +27226,7 @@
26434
27226
  }
26435
27227
  }
26436
27228
  if (range.s.c < 10000000) {
26437
- ws['!ref'] = XLSX.utils.encode_range(range);
27229
+ ws['!ref'] = xlsx.utils.encode_range(range);
26438
27230
  }
26439
27231
  return ws;
26440
27232
  },
@@ -26448,7 +27240,8 @@
26448
27240
  },
26449
27241
  excel: function excel(params) {
26450
27242
  var _this2 = this;
26451
- if (!window.XLSX) {
27243
+ var xlsx = getXLSX();
27244
+ if (!xlsx) {
26452
27245
  packages.logs('xlsx');
26453
27246
  return;
26454
27247
  }
@@ -26479,7 +27272,7 @@
26479
27272
  var headerRows = _params.header.length;
26480
27273
  (_params$header = _params.header).push.apply(_params$header, _toConsumableArray(_params.data).concat([[]]));
26481
27274
  var merges = _this2.doMerges(_params.header);
26482
- var ws = _this2.aoa_to_sheet(_params.header, headerRows);
27275
+ var ws = _this2.aoa_to_sheet(_params.header, headerRows, xlsx);
26483
27276
  ws['!merges'] = merges;
26484
27277
  ws['!freeze'] = {
26485
27278
  xSplit: '1',
@@ -26502,7 +27295,7 @@
26502
27295
  type: 'binary',
26503
27296
  cellStyles: true
26504
27297
  };
26505
- var wbout = XLSX.write(workbook, wopts);
27298
+ var wbout = xlsx.write(workbook, wopts);
26506
27299
  var blob = new Blob([_this2.s2ab(wbout)], {
26507
27300
  type: 'application/octet-stream'
26508
27301
  });
@@ -26511,7 +27304,7 @@
26511
27304
  });
26512
27305
  },
26513
27306
  xlsx: function xlsx(file) {
26514
- if (!window.saveAs || !window.XLSX) {
27307
+ if (typeof window === 'undefined' || !window.saveAs || !window.XLSX) {
26515
27308
  packages.logs('file-saver');
26516
27309
  packages.logs('xlsx');
26517
27310
  return;
@@ -26759,10 +27552,10 @@
26759
27552
  isInBody: function isInBody(node) {
26760
27553
  return node === document.body ? false : document.body.contains(node);
26761
27554
  },
26762
- isDOM: (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) === 'object' ? function (obj) {
27555
+ isDOM: (typeof HTMLElement === "undefined" ? "undefined" : _typeof$1(HTMLElement)) === 'object' ? function (obj) {
26763
27556
  return obj instanceof HTMLElement;
26764
27557
  } : function (obj) {
26765
- return obj && _typeof(obj) === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';
27558
+ return obj && _typeof$1(obj) === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';
26766
27559
  }
26767
27560
  };
26768
27561
 
@@ -27293,7 +28086,9 @@
27293
28086
  downFile: downFile,
27294
28087
  loadScript: loadScript,
27295
28088
  findObject: findObject,
27296
- randomId: randomId
28089
+ randomId: randomId,
28090
+ validateOption: validateOption,
28091
+ warnOption: warnOption
27297
28092
  };
27298
28093
  var directive = {
27299
28094
  contextmenu: contextmenu
@@ -27308,6 +28103,7 @@
27308
28103
  formOption: (_d = opts.formOption) !== null && _d !== void 0 ? _d : {},
27309
28104
  crudOption: (_e = opts.crudOption) !== null && _e !== void 0 ? _e : {},
27310
28105
  appendToBody: validData(opts.appendToBody, true),
28106
+ optionValidate: validData(opts.optionValidate, true),
27311
28107
  canvas: _objectSpread({
27312
28108
  text: "avuejs.com",
27313
28109
  fontFamily: "microsoft yahei",
@@ -27359,7 +28155,7 @@
27359
28155
  var ctx = safe !== null && safe !== void 0 ? safe : this;
27360
28156
  var result = {};
27361
28157
  UPLOAD_HOOK_KEYS.forEach(function (key) {
27362
- if (column && column.type === "upload" && !column[key]) {
28158
+ if (!column || column.type === "upload" && !column[key]) {
27363
28159
  result[key] = ctx[key];
27364
28160
  }
27365
28161
  });
@@ -27373,6 +28169,33 @@
27373
28169
  install: install
27374
28170
  }, components), plugins);
27375
28171
 
28172
+ function commonjsRequire(path) {
28173
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
28174
+ }
28175
+
28176
+ var countUp_min$3 = {exports: {}};
28177
+
28178
+ var countUp_min$2 = countUp_min$3.exports;
28179
+
28180
+ var hasRequiredCountUp_min;
28181
+
28182
+ function requireCountUp_min () {
28183
+ if (hasRequiredCountUp_min) return countUp_min$3.exports;
28184
+ hasRequiredCountUp_min = 1;
28185
+ (function (module, exports$1) {
28186
+ !function(a,n){module.exports=n(commonjsRequire,exports$1,module);}(countUp_min$2,function(a,n,t){var e=function(a,n,t,e,i,r){function o(a){var n,t,e,i,r,o,s=a<0;if(a=Math.abs(a).toFixed(l.decimals),a+="",n=a.split("."),t=n[0],e=n.length>1?l.options.decimal+n[1]:"",l.options.useGrouping){for(i="",r=0,o=t.length;r<o;++r)0!==r&&r%3===0&&(i=l.options.separator+i),i=t[o-r-1]+i;t=i;}return l.options.numerals.length&&(t=t.replace(/[0-9]/g,function(a){return l.options.numerals[+a]}),e=e.replace(/[0-9]/g,function(a){return l.options.numerals[+a]})),(s?"-":"")+l.options.prefix+t+e+l.options.suffix}function s(a,n,t,e){return t*(-Math.pow(2,-10*a/e)+1)*1024/1023+n}function u(a){return "number"==typeof a&&!isNaN(a)}var l=this;if(l.version=function(){return "1.9.3"},l.options={useEasing:true,useGrouping:true,separator:",",decimal:".",easingFn:s,formattingFn:o,prefix:"",suffix:"",numerals:[]},r&&"object"==typeof r)for(var m in l.options)r.hasOwnProperty(m)&&null!==r[m]&&(l.options[m]=r[m]);""===l.options.separator?l.options.useGrouping=false:l.options.separator=""+l.options.separator;for(var d=0,c=["webkit","moz","ms","o"],f=0;f<c.length&&!window.requestAnimationFrame;++f)window.requestAnimationFrame=window[c[f]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[c[f]+"CancelAnimationFrame"]||window[c[f]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(a,n){var t=(new Date).getTime(),e=Math.max(0,16-(t-d)),i=window.setTimeout(function(){a(t+e);},e);return d=t+e,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a);}),l.initialize=function(){return !!l.initialized||(l.error="",l.d="string"==typeof a?document.getElementById(a):a,l.d?(l.startVal=Number(n),l.endVal=Number(t),u(l.startVal)&&u(l.endVal)?(l.decimals=Math.max(0,e||0),l.dec=Math.pow(10,l.decimals),l.duration=1e3*Number(i)||2e3,l.countDown=l.startVal>l.endVal,l.frameVal=l.startVal,l.initialized=true,true):(l.error="[CountUp] startVal ("+n+") or endVal ("+t+") is not a number",false)):(l.error="[CountUp] target is null or undefined",false))},l.printValue=function(a){var n=l.options.formattingFn(a);"INPUT"===l.d.tagName?this.d.value=n:"text"===l.d.tagName||"tspan"===l.d.tagName?this.d.textContent=n:this.d.innerHTML=n;},l.count=function(a){l.startTime||(l.startTime=a),l.timestamp=a;var n=a-l.startTime;l.remaining=l.duration-n,l.options.useEasing?l.countDown?l.frameVal=l.startVal-l.options.easingFn(n,0,l.startVal-l.endVal,l.duration):l.frameVal=l.options.easingFn(n,l.startVal,l.endVal-l.startVal,l.duration):l.countDown?l.frameVal=l.startVal-(l.startVal-l.endVal)*(n/l.duration):l.frameVal=l.startVal+(l.endVal-l.startVal)*(n/l.duration),l.countDown?l.frameVal=l.frameVal<l.endVal?l.endVal:l.frameVal:l.frameVal=l.frameVal>l.endVal?l.endVal:l.frameVal,l.frameVal=Math.round(l.frameVal*l.dec)/l.dec,l.printValue(l.frameVal),n<l.duration?l.rAF=requestAnimationFrame(l.count):l.callback&&l.callback();},l.start=function(a){l.initialize()&&(l.callback=a,l.rAF=requestAnimationFrame(l.count));},l.pauseResume=function(){l.paused?(l.paused=false,delete l.startTime,l.duration=l.remaining,l.startVal=l.frameVal,requestAnimationFrame(l.count)):(l.paused=true,cancelAnimationFrame(l.rAF));},l.reset=function(){l.paused=false,delete l.startTime,l.initialized=false,l.initialize()&&(cancelAnimationFrame(l.rAF),l.printValue(l.startVal));},l.update=function(a){if(l.initialize()){if(a=Number(a),!u(a))return void(l.error="[CountUp] update() - new endVal is not a number: "+a);l.error="",a!==l.frameVal&&(cancelAnimationFrame(l.rAF),l.paused=false,delete l.startTime,l.startVal=l.frameVal,l.endVal=a,l.countDown=l.startVal>l.endVal,l.rAF=requestAnimationFrame(l.count));}},l.initialize()&&l.printValue(l.startVal);};return e});
28187
+ } (countUp_min$3, countUp_min$3.exports));
28188
+ return countUp_min$3.exports;
28189
+ }
28190
+
28191
+ var countUp_minExports = requireCountUp_min();
28192
+ var countUp_min = /*@__PURE__*/getDefaultExportFromCjs(countUp_minExports);
28193
+
28194
+ var countUp_min$1 = /*#__PURE__*/_mergeNamespaces({
28195
+ __proto__: null,
28196
+ default: countUp_min
28197
+ }, [countUp_minExports]);
28198
+
27376
28199
  return Avue;
27377
28200
 
27378
28201
  }));