fast-element-plus 1.0.19 → 1.0.21

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 (417) hide show
  1. package/dist/index.full.js +27739 -28663
  2. package/dist/index.full.js.map +1 -1
  3. package/dist/index.full.min.js +11042 -2
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +11033 -2
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +27730 -28661
  8. package/dist/index.full.mjs.map +1 -1
  9. package/dist/styles/index.css +3 -3
  10. package/es/_virtual/_rolldown/runtime.mjs +1 -0
  11. package/es/component.mjs +2 -2
  12. package/es/component.mjs.map +1 -1
  13. package/es/components/avatar/index.mjs +2 -2
  14. package/es/components/avatar/index.mjs.map +1 -1
  15. package/es/components/avatar/src/avatar.d.ts +10 -10
  16. package/es/components/avatar/src/avatar.mjs +2 -2
  17. package/es/components/avatar/src/avatar.mjs.map +1 -1
  18. package/es/components/button/index.mjs +2 -2
  19. package/es/components/button/index.mjs.map +1 -1
  20. package/es/components/button/src/button.d.ts +21 -17
  21. package/es/components/button/src/button.mjs +2 -2
  22. package/es/components/button/src/button.mjs.map +1 -1
  23. package/es/components/carNumber/index.mjs +2 -2
  24. package/es/components/carNumber/index.mjs.map +1 -1
  25. package/es/components/carNumber/src/carNumber.d.ts +36 -33
  26. package/es/components/carNumber/src/carNumber.mjs +2 -2
  27. package/es/components/carNumber/src/carNumber.mjs.map +1 -1
  28. package/es/components/carNumber/src/common.mjs +2 -2
  29. package/es/components/carNumber/src/common.mjs.map +1 -1
  30. package/es/components/contextMenu/index.mjs +2 -2
  31. package/es/components/contextMenu/index.mjs.map +1 -1
  32. package/es/components/contextMenu/src/contextMenu.mjs +2 -2
  33. package/es/components/contextMenu/src/contextMenu.mjs.map +1 -1
  34. package/es/components/contextMenu/src/contextMenu.type.mjs +0 -2
  35. package/es/components/dialog/index.mjs +2 -2
  36. package/es/components/dialog/index.mjs.map +1 -1
  37. package/es/components/dialog/src/dialog.d.ts +11 -11
  38. package/es/components/dialog/src/dialog.mjs +2 -2
  39. package/es/components/dialog/src/dialog.mjs.map +1 -1
  40. package/es/components/drawer/index.mjs +2 -2
  41. package/es/components/drawer/index.mjs.map +1 -1
  42. package/es/components/drawer/src/drawer.d.ts +10 -18
  43. package/es/components/drawer/src/drawer.mjs +2 -2
  44. package/es/components/drawer/src/drawer.mjs.map +1 -1
  45. package/es/components/form/index.mjs +2 -2
  46. package/es/components/form/index.mjs.map +1 -1
  47. package/es/components/form/src/form.d.ts +15 -15
  48. package/es/components/form/src/form.mjs +2 -2
  49. package/es/components/form/src/form.mjs.map +1 -1
  50. package/es/components/form/src/formItem.d.ts +14 -14
  51. package/es/components/form/src/formItem.mjs +2 -2
  52. package/es/components/form/src/formItem.mjs.map +1 -1
  53. package/es/components/form/utils/form.mjs +2 -2
  54. package/es/components/form/utils/form.mjs.map +1 -1
  55. package/es/components/formItemTip/index.mjs +2 -2
  56. package/es/components/formItemTip/index.mjs.map +1 -1
  57. package/es/components/formItemTip/src/formItemTip.mjs +2 -2
  58. package/es/components/formItemTip/src/formItemTip.mjs.map +1 -1
  59. package/es/components/icon/index.mjs +2 -2
  60. package/es/components/icon/index.mjs.map +1 -1
  61. package/es/components/icon/src/icon.mjs +2 -2
  62. package/es/components/icon/src/icon.mjs.map +1 -1
  63. package/es/components/iconSelector/index.mjs +2 -2
  64. package/es/components/iconSelector/index.mjs.map +1 -1
  65. package/es/components/iconSelector/src/iconSelector.mjs +2 -2
  66. package/es/components/iconSelector/src/iconSelector.mjs.map +1 -1
  67. package/es/components/image/index.mjs +2 -2
  68. package/es/components/image/index.mjs.map +1 -1
  69. package/es/components/image/src/image.d.ts +13 -13
  70. package/es/components/image/src/image.mjs +2 -2
  71. package/es/components/image/src/image.mjs.map +1 -1
  72. package/es/components/index.mjs +2 -2
  73. package/es/components/index.mjs.map +1 -1
  74. package/es/components/inputDialogPage/index.mjs +2 -2
  75. package/es/components/inputDialogPage/index.mjs.map +1 -1
  76. package/es/components/inputDialogPage/src/inputDialogPage.mjs +2 -2
  77. package/es/components/inputDialogPage/src/inputDialogPage.mjs.map +1 -1
  78. package/es/components/layoutGrid/index.mjs +2 -2
  79. package/es/components/layoutGrid/index.mjs.map +1 -1
  80. package/es/components/layoutGrid/src/layoutGrid.mjs +2 -2
  81. package/es/components/layoutGrid/src/layoutGrid.mjs.map +1 -1
  82. package/es/components/layoutGrid/src/layoutGrid.type.mjs +0 -2
  83. package/es/components/layoutGrid/src/layoutGridItem.mjs +2 -2
  84. package/es/components/layoutGrid/src/layoutGridItem.mjs.map +1 -1
  85. package/es/components/select/index.mjs +2 -2
  86. package/es/components/select/index.mjs.map +1 -1
  87. package/es/components/select/src/select.d.ts +21 -21
  88. package/es/components/select/src/select.mjs +2 -2
  89. package/es/components/select/src/select.mjs.map +1 -1
  90. package/es/components/select/src/select.type.mjs +0 -2
  91. package/es/components/select/src/selectOption.mjs +2 -2
  92. package/es/components/select/src/selectOption.mjs.map +1 -1
  93. package/es/components/selectPage/index.mjs +2 -2
  94. package/es/components/selectPage/index.mjs.map +1 -1
  95. package/es/components/selectPage/src/selectPage.d.ts +27 -27
  96. package/es/components/selectPage/src/selectPage.mjs +2 -2
  97. package/es/components/selectPage/src/selectPage.mjs.map +1 -1
  98. package/es/components/selectV2/index.mjs +2 -2
  99. package/es/components/selectV2/index.mjs.map +1 -1
  100. package/es/components/selectV2/src/selectV2.d.ts +19 -19
  101. package/es/components/selectV2/src/selectV2.mjs +2 -2
  102. package/es/components/selectV2/src/selectV2.mjs.map +1 -1
  103. package/es/components/table/images/artwork.mjs +2 -0
  104. package/es/components/table/images/artwork.mjs.map +1 -0
  105. package/es/components/table/images/notImage.mjs +2 -0
  106. package/es/components/table/images/notImage.mjs.map +1 -0
  107. package/es/components/table/index.mjs +2 -2
  108. package/es/components/table/index.mjs.map +1 -1
  109. package/es/components/table/src/page.type.mjs +2 -2
  110. package/es/components/table/src/page.type.mjs.map +1 -1
  111. package/es/components/table/src/table.d.ts +20 -4
  112. package/es/components/table/src/table.mjs +2 -2
  113. package/es/components/table/src/table.mjs.map +1 -1
  114. package/es/components/table/src/table.state.mjs +0 -2
  115. package/es/components/table/src/table.type.d.ts +1 -1
  116. package/es/components/table/src/table.type.mjs +2 -2
  117. package/es/components/table/src/table.type.mjs.map +1 -1
  118. package/es/components/table/src/tableColumn.mjs +2 -2
  119. package/es/components/table/src/tableColumn.mjs.map +1 -1
  120. package/es/components/table/src/tableColumnSettingDialog.mjs +2 -2
  121. package/es/components/table/src/tableColumnSettingDialog.mjs.map +1 -1
  122. package/es/components/table/src/tablePagination.mjs +2 -2
  123. package/es/components/table/src/tablePagination.mjs.map +1 -1
  124. package/es/components/table/src/tableSearchForm.mjs +2 -2
  125. package/es/components/table/src/tableSearchForm.mjs.map +1 -1
  126. package/es/components/table/src/tableSearchFormItem.mjs +2 -2
  127. package/es/components/table/src/tableSearchFormItem.mjs.map +1 -1
  128. package/es/components/table/src/useTable.mjs +2 -2
  129. package/es/components/table/src/useTable.mjs.map +1 -1
  130. package/es/components/table/utils/table.mjs +2 -2
  131. package/es/components/table/utils/table.mjs.map +1 -1
  132. package/es/components/tree/index.mjs +2 -2
  133. package/es/components/tree/index.mjs.map +1 -1
  134. package/es/components/tree/src/tree.d.ts +40 -40
  135. package/es/components/tree/src/tree.mjs +2 -2
  136. package/es/components/tree/src/tree.mjs.map +1 -1
  137. package/es/components/tree/src/tree.props.mjs +2 -2
  138. package/es/components/tree/src/tree.props.mjs.map +1 -1
  139. package/es/components/tree/src/tree.type.mjs +0 -2
  140. package/es/components/treeSelect/index.mjs +2 -2
  141. package/es/components/treeSelect/index.mjs.map +1 -1
  142. package/es/components/treeSelect/src/treeSelect.d.ts +60 -60
  143. package/es/components/treeSelect/src/treeSelect.mjs +2 -2
  144. package/es/components/treeSelect/src/treeSelect.mjs.map +1 -1
  145. package/es/components/upload/index.mjs +2 -2
  146. package/es/components/upload/index.mjs.map +1 -1
  147. package/es/components/upload/src/upload.d.ts +73 -73
  148. package/es/components/upload/src/upload.mjs +2 -2
  149. package/es/components/upload/src/upload.mjs.map +1 -1
  150. package/es/components/upload/src/useUpload.mjs +2 -2
  151. package/es/components/upload/src/useUpload.mjs.map +1 -1
  152. package/es/components/upload/utils/upload.mjs +2 -2
  153. package/es/components/upload/utils/upload.mjs.map +1 -1
  154. package/es/components/uploadImage/index.mjs +2 -2
  155. package/es/components/uploadImage/index.mjs.map +1 -1
  156. package/es/components/uploadImage/src/uploadImage.d.ts +69 -69
  157. package/es/components/uploadImage/src/uploadImage.mjs +2 -2
  158. package/es/components/uploadImage/src/uploadImage.mjs.map +1 -1
  159. package/es/components/uploadImages/index.mjs +2 -2
  160. package/es/components/uploadImages/index.mjs.map +1 -1
  161. package/es/components/uploadImages/src/uploadImages.d.ts +70 -70
  162. package/es/components/uploadImages/src/uploadImages.mjs +2 -2
  163. package/es/components/uploadImages/src/uploadImages.mjs.map +1 -1
  164. package/es/constants/index.mjs +1 -2
  165. package/es/constants/mime.mjs +2 -2
  166. package/es/constants/mime.mjs.map +1 -1
  167. package/es/constants/regex.mjs +2 -2
  168. package/es/constants/regex.mjs.map +1 -1
  169. package/es/directive.mjs +2 -2
  170. package/es/directive.mjs.map +1 -1
  171. package/es/directives/click-copy/index.mjs +2 -2
  172. package/es/directives/click-copy/index.mjs.map +1 -1
  173. package/es/directives/click-debounce/index.mjs +2 -2
  174. package/es/directives/click-debounce/index.mjs.map +1 -1
  175. package/es/directives/click-draggable/index.mjs +2 -2
  176. package/es/directives/click-draggable/index.mjs.map +1 -1
  177. package/es/directives/click-icon-copy/index.mjs +2 -2
  178. package/es/directives/click-icon-copy/index.mjs.map +1 -1
  179. package/es/directives/click-longpress/index.mjs +2 -2
  180. package/es/directives/click-longpress/index.mjs.map +1 -1
  181. package/es/directives/click-throttle/index.mjs +2 -2
  182. package/es/directives/click-throttle/index.mjs.map +1 -1
  183. package/es/directives/index.mjs +1 -2
  184. package/es/element-plus.mjs +2 -2
  185. package/es/element-plus.mjs.map +1 -1
  186. package/es/hooks/index.mjs +1 -2
  187. package/es/hooks/use-loading/index.mjs +2 -2
  188. package/es/hooks/use-loading/index.mjs.map +1 -1
  189. package/es/hooks/use-overlay/index.mjs +2 -2
  190. package/es/hooks/use-overlay/index.mjs.map +1 -1
  191. package/es/hooks/use-screenFull/index.mjs +2 -2
  192. package/es/hooks/use-screenFull/index.mjs.map +1 -1
  193. package/es/index.mjs +2 -2
  194. package/es/index.mjs.map +1 -1
  195. package/es/make-installer.mjs +2 -2
  196. package/es/make-installer.mjs.map +1 -1
  197. package/es/version.d.ts +1 -1
  198. package/es/version.mjs +2 -2
  199. package/es/version.mjs.map +1 -1
  200. package/lib/_virtual/_rolldown/runtime.js +1 -0
  201. package/lib/component.js +2 -2
  202. package/lib/component.js.map +1 -1
  203. package/lib/components/avatar/index.js +2 -2
  204. package/lib/components/avatar/index.js.map +1 -1
  205. package/lib/components/avatar/src/avatar.d.ts +10 -10
  206. package/lib/components/avatar/src/avatar.js +2 -2
  207. package/lib/components/avatar/src/avatar.js.map +1 -1
  208. package/lib/components/button/index.js +2 -2
  209. package/lib/components/button/index.js.map +1 -1
  210. package/lib/components/button/src/button.d.ts +21 -17
  211. package/lib/components/button/src/button.js +2 -2
  212. package/lib/components/button/src/button.js.map +1 -1
  213. package/lib/components/carNumber/index.js +2 -2
  214. package/lib/components/carNumber/index.js.map +1 -1
  215. package/lib/components/carNumber/src/carNumber.d.ts +36 -33
  216. package/lib/components/carNumber/src/carNumber.js +2 -2
  217. package/lib/components/carNumber/src/carNumber.js.map +1 -1
  218. package/lib/components/carNumber/src/common.js +2 -2
  219. package/lib/components/carNumber/src/common.js.map +1 -1
  220. package/lib/components/contextMenu/index.js +2 -2
  221. package/lib/components/contextMenu/index.js.map +1 -1
  222. package/lib/components/contextMenu/src/contextMenu.js +2 -2
  223. package/lib/components/contextMenu/src/contextMenu.js.map +1 -1
  224. package/lib/components/contextMenu/src/contextMenu.type.js +0 -2
  225. package/lib/components/dialog/index.js +2 -2
  226. package/lib/components/dialog/index.js.map +1 -1
  227. package/lib/components/dialog/src/dialog.d.ts +11 -11
  228. package/lib/components/dialog/src/dialog.js +2 -2
  229. package/lib/components/dialog/src/dialog.js.map +1 -1
  230. package/lib/components/drawer/index.js +2 -2
  231. package/lib/components/drawer/index.js.map +1 -1
  232. package/lib/components/drawer/src/drawer.d.ts +10 -18
  233. package/lib/components/drawer/src/drawer.js +2 -2
  234. package/lib/components/drawer/src/drawer.js.map +1 -1
  235. package/lib/components/form/index.js +2 -2
  236. package/lib/components/form/index.js.map +1 -1
  237. package/lib/components/form/src/form.d.ts +15 -15
  238. package/lib/components/form/src/form.js +2 -2
  239. package/lib/components/form/src/form.js.map +1 -1
  240. package/lib/components/form/src/formItem.d.ts +14 -14
  241. package/lib/components/form/src/formItem.js +2 -2
  242. package/lib/components/form/src/formItem.js.map +1 -1
  243. package/lib/components/form/utils/form.js +2 -2
  244. package/lib/components/form/utils/form.js.map +1 -1
  245. package/lib/components/formItemTip/index.js +2 -2
  246. package/lib/components/formItemTip/index.js.map +1 -1
  247. package/lib/components/formItemTip/src/formItemTip.js +2 -2
  248. package/lib/components/formItemTip/src/formItemTip.js.map +1 -1
  249. package/lib/components/icon/index.js +2 -2
  250. package/lib/components/icon/index.js.map +1 -1
  251. package/lib/components/icon/src/icon.js +2 -2
  252. package/lib/components/icon/src/icon.js.map +1 -1
  253. package/lib/components/iconSelector/index.js +2 -2
  254. package/lib/components/iconSelector/index.js.map +1 -1
  255. package/lib/components/iconSelector/src/iconSelector.js +2 -2
  256. package/lib/components/iconSelector/src/iconSelector.js.map +1 -1
  257. package/lib/components/image/index.js +2 -2
  258. package/lib/components/image/index.js.map +1 -1
  259. package/lib/components/image/src/image.d.ts +13 -13
  260. package/lib/components/image/src/image.js +2 -2
  261. package/lib/components/image/src/image.js.map +1 -1
  262. package/lib/components/index.js +2 -2
  263. package/lib/components/index.js.map +1 -1
  264. package/lib/components/inputDialogPage/index.js +2 -2
  265. package/lib/components/inputDialogPage/index.js.map +1 -1
  266. package/lib/components/inputDialogPage/src/inputDialogPage.js +2 -2
  267. package/lib/components/inputDialogPage/src/inputDialogPage.js.map +1 -1
  268. package/lib/components/layoutGrid/index.js +2 -2
  269. package/lib/components/layoutGrid/index.js.map +1 -1
  270. package/lib/components/layoutGrid/src/layoutGrid.js +2 -2
  271. package/lib/components/layoutGrid/src/layoutGrid.js.map +1 -1
  272. package/lib/components/layoutGrid/src/layoutGrid.type.js +0 -2
  273. package/lib/components/layoutGrid/src/layoutGridItem.js +2 -2
  274. package/lib/components/layoutGrid/src/layoutGridItem.js.map +1 -1
  275. package/lib/components/select/index.js +2 -2
  276. package/lib/components/select/index.js.map +1 -1
  277. package/lib/components/select/src/select.d.ts +21 -21
  278. package/lib/components/select/src/select.js +2 -2
  279. package/lib/components/select/src/select.js.map +1 -1
  280. package/lib/components/select/src/select.type.js +0 -2
  281. package/lib/components/select/src/selectOption.js +2 -2
  282. package/lib/components/select/src/selectOption.js.map +1 -1
  283. package/lib/components/selectPage/index.js +2 -2
  284. package/lib/components/selectPage/index.js.map +1 -1
  285. package/lib/components/selectPage/src/selectPage.d.ts +27 -27
  286. package/lib/components/selectPage/src/selectPage.js +2 -2
  287. package/lib/components/selectPage/src/selectPage.js.map +1 -1
  288. package/lib/components/selectV2/index.js +2 -2
  289. package/lib/components/selectV2/index.js.map +1 -1
  290. package/lib/components/selectV2/src/selectV2.d.ts +19 -19
  291. package/lib/components/selectV2/src/selectV2.js +2 -2
  292. package/lib/components/selectV2/src/selectV2.js.map +1 -1
  293. package/lib/components/table/images/artwork.js +2 -0
  294. package/lib/components/table/images/artwork.js.map +1 -0
  295. package/lib/components/table/images/notImage.js +2 -0
  296. package/lib/components/table/images/notImage.js.map +1 -0
  297. package/lib/components/table/index.js +2 -2
  298. package/lib/components/table/index.js.map +1 -1
  299. package/lib/components/table/src/page.type.js +2 -2
  300. package/lib/components/table/src/page.type.js.map +1 -1
  301. package/lib/components/table/src/table.d.ts +20 -4
  302. package/lib/components/table/src/table.js +2 -2
  303. package/lib/components/table/src/table.js.map +1 -1
  304. package/lib/components/table/src/table.state.js +0 -2
  305. package/lib/components/table/src/table.type.d.ts +1 -1
  306. package/lib/components/table/src/table.type.js +2 -2
  307. package/lib/components/table/src/table.type.js.map +1 -1
  308. package/lib/components/table/src/tableColumn.js +2 -2
  309. package/lib/components/table/src/tableColumn.js.map +1 -1
  310. package/lib/components/table/src/tableColumnSettingDialog.js +2 -2
  311. package/lib/components/table/src/tableColumnSettingDialog.js.map +1 -1
  312. package/lib/components/table/src/tablePagination.js +2 -2
  313. package/lib/components/table/src/tablePagination.js.map +1 -1
  314. package/lib/components/table/src/tableSearchForm.js +2 -2
  315. package/lib/components/table/src/tableSearchForm.js.map +1 -1
  316. package/lib/components/table/src/tableSearchFormItem.js +2 -2
  317. package/lib/components/table/src/tableSearchFormItem.js.map +1 -1
  318. package/lib/components/table/src/useTable.js +2 -2
  319. package/lib/components/table/src/useTable.js.map +1 -1
  320. package/lib/components/table/utils/table.js +2 -2
  321. package/lib/components/table/utils/table.js.map +1 -1
  322. package/lib/components/tree/index.js +2 -2
  323. package/lib/components/tree/index.js.map +1 -1
  324. package/lib/components/tree/src/tree.d.ts +40 -40
  325. package/lib/components/tree/src/tree.js +2 -2
  326. package/lib/components/tree/src/tree.js.map +1 -1
  327. package/lib/components/tree/src/tree.props.js +2 -2
  328. package/lib/components/tree/src/tree.props.js.map +1 -1
  329. package/lib/components/tree/src/tree.type.js +0 -2
  330. package/lib/components/treeSelect/index.js +2 -2
  331. package/lib/components/treeSelect/index.js.map +1 -1
  332. package/lib/components/treeSelect/src/treeSelect.d.ts +60 -60
  333. package/lib/components/treeSelect/src/treeSelect.js +2 -2
  334. package/lib/components/treeSelect/src/treeSelect.js.map +1 -1
  335. package/lib/components/upload/index.js +2 -2
  336. package/lib/components/upload/index.js.map +1 -1
  337. package/lib/components/upload/src/upload.d.ts +73 -73
  338. package/lib/components/upload/src/upload.js +2 -2
  339. package/lib/components/upload/src/upload.js.map +1 -1
  340. package/lib/components/upload/src/useUpload.js +2 -2
  341. package/lib/components/upload/src/useUpload.js.map +1 -1
  342. package/lib/components/upload/utils/upload.js +2 -2
  343. package/lib/components/upload/utils/upload.js.map +1 -1
  344. package/lib/components/uploadImage/index.js +2 -2
  345. package/lib/components/uploadImage/index.js.map +1 -1
  346. package/lib/components/uploadImage/src/uploadImage.d.ts +69 -69
  347. package/lib/components/uploadImage/src/uploadImage.js +2 -2
  348. package/lib/components/uploadImage/src/uploadImage.js.map +1 -1
  349. package/lib/components/uploadImages/index.js +2 -2
  350. package/lib/components/uploadImages/index.js.map +1 -1
  351. package/lib/components/uploadImages/src/uploadImages.d.ts +70 -70
  352. package/lib/components/uploadImages/src/uploadImages.js +2 -2
  353. package/lib/components/uploadImages/src/uploadImages.js.map +1 -1
  354. package/lib/constants/index.js +1 -2
  355. package/lib/constants/mime.js +2 -2
  356. package/lib/constants/mime.js.map +1 -1
  357. package/lib/constants/regex.js +2 -2
  358. package/lib/constants/regex.js.map +1 -1
  359. package/lib/directive.js +2 -2
  360. package/lib/directive.js.map +1 -1
  361. package/lib/directives/click-copy/index.js +2 -2
  362. package/lib/directives/click-copy/index.js.map +1 -1
  363. package/lib/directives/click-debounce/index.js +2 -2
  364. package/lib/directives/click-debounce/index.js.map +1 -1
  365. package/lib/directives/click-draggable/index.js +2 -2
  366. package/lib/directives/click-draggable/index.js.map +1 -1
  367. package/lib/directives/click-icon-copy/index.js +2 -2
  368. package/lib/directives/click-icon-copy/index.js.map +1 -1
  369. package/lib/directives/click-longpress/index.js +2 -2
  370. package/lib/directives/click-longpress/index.js.map +1 -1
  371. package/lib/directives/click-throttle/index.js +2 -2
  372. package/lib/directives/click-throttle/index.js.map +1 -1
  373. package/lib/directives/index.js +1 -2
  374. package/lib/element-plus.js +2 -2
  375. package/lib/element-plus.js.map +1 -1
  376. package/lib/hooks/index.js +1 -2
  377. package/lib/hooks/use-loading/index.js +2 -2
  378. package/lib/hooks/use-loading/index.js.map +1 -1
  379. package/lib/hooks/use-overlay/index.js +2 -2
  380. package/lib/hooks/use-overlay/index.js.map +1 -1
  381. package/lib/hooks/use-screenFull/index.js +2 -2
  382. package/lib/hooks/use-screenFull/index.js.map +1 -1
  383. package/lib/index.js +2 -2
  384. package/lib/index.js.map +1 -1
  385. package/lib/make-installer.js +2 -2
  386. package/lib/make-installer.js.map +1 -1
  387. package/lib/version.d.ts +1 -1
  388. package/lib/version.js +2 -2
  389. package/lib/version.js.map +1 -1
  390. package/package.json +7 -7
  391. package/styles/components/carNumber.scss +1 -1
  392. package/styles/components/dialog.scss +1 -1
  393. package/styles/components/drawer.scss +1 -1
  394. package/es/components/contextMenu/src/contextMenu.type.mjs.map +0 -1
  395. package/es/components/layoutGrid/src/layoutGrid.type.mjs.map +0 -1
  396. package/es/components/select/src/select.type.mjs.map +0 -1
  397. package/es/components/table/images/artwork.png.mjs +0 -2
  398. package/es/components/table/images/artwork.png.mjs.map +0 -1
  399. package/es/components/table/images/notImage.png.mjs +0 -2
  400. package/es/components/table/images/notImage.png.mjs.map +0 -1
  401. package/es/components/table/src/table.state.mjs.map +0 -1
  402. package/es/components/tree/src/tree.type.mjs.map +0 -1
  403. package/es/constants/index.mjs.map +0 -1
  404. package/es/directives/index.mjs.map +0 -1
  405. package/es/hooks/index.mjs.map +0 -1
  406. package/lib/components/contextMenu/src/contextMenu.type.js.map +0 -1
  407. package/lib/components/layoutGrid/src/layoutGrid.type.js.map +0 -1
  408. package/lib/components/select/src/select.type.js.map +0 -1
  409. package/lib/components/table/images/artwork.png.js +0 -2
  410. package/lib/components/table/images/artwork.png.js.map +0 -1
  411. package/lib/components/table/images/notImage.png.js +0 -2
  412. package/lib/components/table/images/notImage.png.js.map +0 -1
  413. package/lib/components/table/src/table.state.js.map +0 -1
  414. package/lib/components/tree/src/tree.type.js.map +0 -1
  415. package/lib/constants/index.js.map +0 -1
  416. package/lib/directives/index.js.map +0 -1
  417. package/lib/hooks/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"mime.mjs","sources":["../../../packages/constants/mime.ts"],"sourcesContent":["/**\n * @description MIME 类型\n */\nexport const FaMimeType = {\n\t/**\n\t * PDF\n\t */\n\tPDF: \"application/pdf\",\n\t/**\n\t * 文本文件\n\t */\n\tText: \"text/plain\",\n\t/**\n\t * Word 和 DOCX(Word 2007 及以后版本)\n\t */\n\tWord: \"application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n\t/**\n\t * Excel 和 CSV\n\t */\n\tExcel: \"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv\",\n\t/**\n\t * PowerPoint 和 PPTX(PowerPoint 2007 及以后版本)\n\t */\n\tPowerpoint: \"application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n\t/**\n\t * 压缩文件\n\t */\n\tZIP: \"application/zip,application/x-zip-compressed\",\n\t/**\n\t * 图片\n\t */\n\tImage: \"image/jpeg,image/png,image/gif\",\n\t/**\n\t * 视频\n\t */\n\tVideo: \"video/mp4,video/mpeg,video/quicktime\",\n\t/**\n\t * 音频\n\t */\n\tAudio: \"audio/mpeg,audio/wav\",\n\t/**\n\t * HTML\n\t */\n\tHtml: \"text/html\",\n\t/**\n\t * CSS\n\t */\n\tCss: \"text/css\",\n\t/**\n\t * JavaScript\n\t */\n\tJavaScript: \"application/javascript,text/javascript\",\n\t/**\n\t * JSON\n\t */\n\tJson: \"application/json\",\n\t/**\n\t * XML\n\t */\n\tXML: \"application/xml,text/xml\",\n};\n"],"names":["FaMimeType","PDF","Text","Word","Excel","Powerpoint","ZIP","Image","Video","Audio","Html","Css","JavaScript","Json","XML"],"mappings":"AAGO,MAAMA,EAAa,CAIzBC,IAAK,kBAILC,KAAM,aAINC,KAAM,6FAINC,MAAO,sGAIPC,WAAY,0GAIZC,IAAK,+CAILC,MAAO,iCAIPC,MAAO,uCAIPC,MAAO,uBAIPC,KAAM,YAINC,IAAK,WAILC,WAAY,yCAIZC,KAAM,mBAINC,IAAK"}
1
+ {"version":3,"file":"mime.mjs","names":[],"sources":["../../../packages/constants/mime.ts"],"sourcesContent":["/**\n * @description MIME 类型\n */\nexport const FaMimeType = {\n\t/**\n\t * PDF\n\t */\n\tPDF: \"application/pdf\",\n\t/**\n\t * 文本文件\n\t */\n\tText: \"text/plain\",\n\t/**\n\t * Word 和 DOCX(Word 2007 及以后版本)\n\t */\n\tWord: \"application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n\t/**\n\t * Excel 和 CSV\n\t */\n\tExcel: \"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv\",\n\t/**\n\t * PowerPoint 和 PPTX(PowerPoint 2007 及以后版本)\n\t */\n\tPowerpoint: \"application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n\t/**\n\t * 压缩文件\n\t */\n\tZIP: \"application/zip,application/x-zip-compressed\",\n\t/**\n\t * 图片\n\t */\n\tImage: \"image/jpeg,image/png,image/gif\",\n\t/**\n\t * 视频\n\t */\n\tVideo: \"video/mp4,video/mpeg,video/quicktime\",\n\t/**\n\t * 音频\n\t */\n\tAudio: \"audio/mpeg,audio/wav\",\n\t/**\n\t * HTML\n\t */\n\tHtml: \"text/html\",\n\t/**\n\t * CSS\n\t */\n\tCss: \"text/css\",\n\t/**\n\t * JavaScript\n\t */\n\tJavaScript: \"application/javascript,text/javascript\",\n\t/**\n\t * JSON\n\t */\n\tJson: \"application/json\",\n\t/**\n\t * XML\n\t */\n\tXML: \"application/xml,text/xml\",\n};\n"],"mappings":"AAGA,IAAa,EAAa,CAIzB,IAAK,kBAIL,KAAM,aAIN,KAAM,6FAIN,MAAO,sGAIP,WAAY,0GAIZ,IAAK,+CAIL,MAAO,iCAIP,MAAO,uCAIP,MAAO,uBAIP,KAAM,YAIN,IAAK,WAIL,WAAY,yCAIZ,KAAM,mBAIN,IAAK"}
@@ -1,2 +1,2 @@
1
- const d={UUID:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Mobile:/^(?:(?:\+|00)86)?1\d{10}$/,Phone:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,Email:/^[\w-]+@([a-zA-Z0-9]+\.)+(com|cn|net|org)$/,IdCard:/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9X]$)|(^[1-9]\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}[0-9X]$)/i,External:/^(https?:|mailto:|tel:|ftp:)/,Url:/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d?)(\.(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:\d+)*(\/($|[\w.,?'\\+&%$#=~-]+))*$/,CarNumber:/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/,NewEnergyCarNumber:/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z]((\d{5}[DF]$)|([A-E][A-HJ-NP-Z0-9]\d{3}[0-9挂学警港澳]$)|([FGHJK][A-HJ-NP-Z0-9]\d{3}[0-9挂学警港澳]$))/,PostCode:/^[1-9]\d{5}$/,Ipv4:/^([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])$/,Passport:/^[EG]\d{8}$/i,HKMacauPass:/^[HM]\d{8}$/i,Account:/^[a-z][a-z\d]{5,19}$/i,Password:/^[A-Z0-9]{6,18}$/i,StrongPassword:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])[\s\S]{8,20}$/,Chinese:/^[\u4E00-\u9FA5]+$/,English:/^[a-z]+$/i};export{d as RegExps};
2
- //# sourceMappingURL=regex.mjs.map
1
+ var d={UUID:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Mobile:/^(?:(?:\+|00)86)?1\d{10}$/,Phone:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,Email:/^[\w-]+@([a-zA-Z0-9]+\.)+(com|cn|net|org)$/,IdCard:/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9X]$)|(^[1-9]\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}[0-9X]$)/i,External:/^(https?:|mailto:|tel:|ftp:)/,Url:/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d?)(\.(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:\d+)*(\/($|[\w.,?'\\+&%$#=~-]+))*$/,CarNumber:/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/,NewEnergyCarNumber:/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z]((\d{5}[DF]$)|([A-E][A-HJ-NP-Z0-9]\d{3}[0-9挂学警港澳]$)|([FGHJK][A-HJ-NP-Z0-9]\d{3}[0-9挂学警港澳]$))/,PostCode:/^[1-9]\d{5}$/,Ipv4:/^([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])$/,Passport:/^[EG]\d{8}$/i,HKMacauPass:/^[HM]\d{8}$/i,Account:/^[a-z][a-z\d]{5,19}$/i,Password:/^[A-Z0-9]{6,18}$/i,StrongPassword:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])[\s\S]{8,20}$/,Chinese:/^[\u4E00-\u9FA5]+$/,English:/^[a-z]+$/i};export{d as RegExps};
2
+ //# sourceMappingURL=regex.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"regex.mjs","sources":["../../../packages/constants/regex.ts"],"sourcesContent":["/**\n * @description 正则表达式\n */\nexport const RegExps = {\n\t/**\n\t * UUID\n\t */\n\tUUID: /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,\n\t/**\n\t * 手机号\n\t */\n\tMobile: /^(?:(?:\\+|00)86)?1\\d{10}$/,\n\t/**\n\t * 电话\n\t */\n\tPhone: /^(?:(?:\\d{3}-)?\\d{8}|(?:\\d{4}-)?\\d{7,8})(?:-\\d+)?$/,\n\t/**\n\t * 邮箱\n\t */\n\tEmail: /^[\\w-]+@([a-zA-Z0-9]+\\.)+(com|cn|net|org)$/,\n\t/**\n\t * 身份证\n\t */\n\tIdCard: /(^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9X]$)|(^[1-9]\\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{2}[0-9X]$)/i,\n\t/**\n\t * 外部链接\n\t * 匹配http、https、mailto、tel和ftp开头的链接\n\t */\n\tExternal: /^(https?:|mailto:|tel:|ftp:)/,\n\t/**\n\t * Url\n\t */\n\tUrl: /^(https?|ftp):\\/\\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d?)(\\.(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]?\\d)){3}|([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+\\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:\\d+)*(\\/($|[\\w.,?'\\\\+&%$#=~-]+))*$/,\n\t/**\n\t * 车牌号\n\t */\n\tCarNumber: /^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/,\n\t/**\n\t * 新能源车牌号\n\t */\n\tNewEnergyCarNumber:\n\t\t/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z]((\\d{5}[DF]$)|([A-E][A-HJ-NP-Z0-9]\\d{3}[0-9挂学警港澳]$)|([FGHJK][A-HJ-NP-Z0-9]\\d{3}[0-9挂学警港澳]$))/,\n\t/**\n\t * 邮政编码\n\t */\n\tPostCode: /^[1-9]\\d{5}$/,\n\t/**\n\t * ipv4\n\t */\n\tIpv4: /^([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])$/,\n\t/**\n\t * 护照\n\t */\n\tPassport: /^[EG]\\d{8}$/i,\n\t/**\n\t * 港澳通行证\n\t */\n\tHKMacauPass: /^[HM]\\d{8}$/i,\n\t/**\n\t * 账号(6-20位字母或数字,必须以字母开头,不能全为数字)\n\t */\n\tAccount: /^[a-z][a-z\\d]{5,19}$/i,\n\t/**\n\t * 弱密码(只包含字母和数字,长度为6到18位)\n\t */\n\tPassword: /^[A-Z0-9]{6,18}$/i,\n\t/**\n\t * 强密码(8到20位,包含大小写字母、数字及特殊字符)\n\t */\n\tStrongPassword: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\W_])[\\s\\S]{8,20}$/,\n\t/**\n\t * 中文字符\n\t */\n\tChinese: /^[\\u4E00-\\u9FA5]+$/,\n\t/**\n\t * 英文字符\n\t */\n\tEnglish: /^[a-z]+$/i,\n};\n"],"names":["RegExps","UUID","Mobile","Phone","Email","IdCard","External","Url","CarNumber","NewEnergyCarNumber","PostCode","Ipv4","Passport","HKMacauPass","Account","Password","StrongPassword","Chinese","English"],"mappings":"AAGO,MAAMA,EAAU,CAItBC,KAAM,kEAINC,OAAQ,4BAIRC,MAAO,qDAIPC,MAAO,6CAIPC,OAAQ,0KAKRC,SAAU,+BAIVC,IAAK,gSAILC,UAAW,qFAIXC,mBACC,4IAIDC,SAAU,eAIVC,KAAM,uIAINC,SAAU,eAIVC,YAAa,eAIbC,QAAS,wBAITC,SAAU,oBAIVC,eAAgB,0DAIhBC,QAAS,qBAITC,QAAS"}
1
+ {"version":3,"file":"regex.mjs","names":[],"sources":["../../../packages/constants/regex.ts"],"sourcesContent":["/**\n * @description 正则表达式\n */\nexport const RegExps = {\n\t/**\n\t * UUID\n\t */\n\tUUID: /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,\n\t/**\n\t * 手机号\n\t */\n\tMobile: /^(?:(?:\\+|00)86)?1\\d{10}$/,\n\t/**\n\t * 电话\n\t */\n\tPhone: /^(?:(?:\\d{3}-)?\\d{8}|(?:\\d{4}-)?\\d{7,8})(?:-\\d+)?$/,\n\t/**\n\t * 邮箱\n\t */\n\tEmail: /^[\\w-]+@([a-zA-Z0-9]+\\.)+(com|cn|net|org)$/,\n\t/**\n\t * 身份证\n\t */\n\tIdCard: /(^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9X]$)|(^[1-9]\\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{2}[0-9X]$)/i,\n\t/**\n\t * 外部链接\n\t * 匹配http、https、mailto、tel和ftp开头的链接\n\t */\n\tExternal: /^(https?:|mailto:|tel:|ftp:)/,\n\t/**\n\t * Url\n\t */\n\tUrl: /^(https?|ftp):\\/\\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d?)(\\.(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]?\\d)){3}|([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+\\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:\\d+)*(\\/($|[\\w.,?'\\\\+&%$#=~-]+))*$/,\n\t/**\n\t * 车牌号\n\t */\n\tCarNumber: /^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/,\n\t/**\n\t * 新能源车牌号\n\t */\n\tNewEnergyCarNumber:\n\t\t/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z]((\\d{5}[DF]$)|([A-E][A-HJ-NP-Z0-9]\\d{3}[0-9挂学警港澳]$)|([FGHJK][A-HJ-NP-Z0-9]\\d{3}[0-9挂学警港澳]$))/,\n\t/**\n\t * 邮政编码\n\t */\n\tPostCode: /^[1-9]\\d{5}$/,\n\t/**\n\t * ipv4\n\t */\n\tIpv4: /^([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])$/,\n\t/**\n\t * 护照\n\t */\n\tPassport: /^[EG]\\d{8}$/i,\n\t/**\n\t * 港澳通行证\n\t */\n\tHKMacauPass: /^[HM]\\d{8}$/i,\n\t/**\n\t * 账号(6-20位字母或数字,必须以字母开头,不能全为数字)\n\t */\n\tAccount: /^[a-z][a-z\\d]{5,19}$/i,\n\t/**\n\t * 弱密码(只包含字母和数字,长度为6到18位)\n\t */\n\tPassword: /^[A-Z0-9]{6,18}$/i,\n\t/**\n\t * 强密码(8到20位,包含大小写字母、数字及特殊字符)\n\t */\n\tStrongPassword: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\W_])[\\s\\S]{8,20}$/,\n\t/**\n\t * 中文字符\n\t */\n\tChinese: /^[\\u4E00-\\u9FA5]+$/,\n\t/**\n\t * 英文字符\n\t */\n\tEnglish: /^[a-z]+$/i,\n};\n"],"mappings":"AAGA,IAAa,EAAU,CAItB,KAAM,kEAIN,OAAQ,4BAIR,MAAO,qDAIP,MAAO,6CAIP,OAAQ,0KAKR,SAAU,+BAIV,IAAK,gSAIL,UAAW,qFAIX,mBACC,4IAID,SAAU,eAIV,KAAM,uIAIN,SAAU,eAIV,YAAa,eAIb,QAAS,wBAIT,SAAU,oBAIV,eAAgB,0DAIhB,QAAS,qBAIT,QAAS"}
package/es/directive.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{vCopy as i}from"./directives/click-copy/index.mjs";import{vDebounce as e}from"./directives/click-debounce/index.mjs";import{vDraggable as c}from"./directives/click-draggable/index.mjs";import{vIconCopy as r}from"./directives/click-icon-copy/index.mjs";import{vLongpress as o}from"./directives/click-longpress/index.mjs";import{vThrottle as m}from"./directives/click-throttle/index.mjs";const t=[i,e,c,r,o,m];export{t as default};
2
- //# sourceMappingURL=directive.mjs.map
1
+ import i from"./directives/click-copy/index.mjs";import e from"./directives/click-debounce/index.mjs";import r from"./directives/click-draggable/index.mjs";import c from"./directives/click-icon-copy/index.mjs";import o from"./directives/click-longpress/index.mjs";import m from"./directives/click-throttle/index.mjs";var t=[i,e,r,c,o,m];export{t as default};
2
+ //# sourceMappingURL=directive.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"directive.mjs","sources":["../../packages/directive.ts"],"sourcesContent":["import { vCopy } from \"@fast-element-plus/directives/click-copy\";\nimport { vDebounce } from \"@fast-element-plus/directives/click-debounce\";\nimport { vDraggable } from \"@fast-element-plus/directives/click-draggable\";\nimport { vIconCopy } from \"@fast-element-plus/directives/click-icon-copy\";\nimport { vLongpress } from \"@fast-element-plus/directives/click-longpress\";\nimport { vThrottle } from \"@fast-element-plus/directives/click-throttle\";\n\nexport default [vCopy, vDebounce, vDraggable, vIconCopy, vLongpress, vThrottle];\n"],"names":["FastElementPlusDirectives","vCopy","vDebounce","vDraggable","vIconCopy","vLongpress","vThrottle"],"mappings":"yYAOA,MAAAA,EAAe,CAACC,EAAOC,EAAWC,EAAYC,EAAWC,EAAYC"}
1
+ {"version":3,"file":"directive.mjs","names":[],"sources":["../../packages/directive.ts"],"sourcesContent":["import { vCopy } from \"@fast-element-plus/directives/click-copy\";\nimport { vDebounce } from \"@fast-element-plus/directives/click-debounce\";\nimport { vDraggable } from \"@fast-element-plus/directives/click-draggable\";\nimport { vIconCopy } from \"@fast-element-plus/directives/click-icon-copy\";\nimport { vLongpress } from \"@fast-element-plus/directives/click-longpress\";\nimport { vThrottle } from \"@fast-element-plus/directives/click-throttle\";\n\nexport default [vCopy, vDebounce, vDraggable, vIconCopy, vLongpress, vThrottle];\n"],"mappings":"6TAOA,IAAA,EAAe,CAAC,EAAO,EAAW,EAAY,EAAW,EAAY"}
@@ -1,2 +1,2 @@
1
- import{ElMessage as e}from"element-plus";import{stringUtil as t,withInstallDirective as a}from"@fast-china/utils";const c=a({mounted(a,c){a.copyData=c.value,a.__handleClick__=async()=>{if(a.copyData)try{await t.copy(String(a.copyData)),e({type:"success",message:"复制成功"})}catch(c){throw e({type:"error",message:"复制失败"}),c}},a.addEventListener("click",a.__handleClick__)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.removeEventListener("click",e.__handleClick__)}},"copy");export{c as default,c as vCopy};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{stringUtil as e,withInstallDirective as a}from"@fast-china/utils";import{ElMessage as t}from"element-plus";var c=a({mounted(a,c){a.copyData=c.value,a.__handleClick__=async()=>{if(a.copyData)try{await e.copy(String(a.copyData)),t({type:"success",message:"复制成功"})}catch(c){throw t({type:"error",message:"复制失败"}),c}},a.addEventListener("click",a.__handleClick__)},updated(e,a){e.copyData=a.value},beforeUnmount(e){e.removeEventListener("click",e.__handleClick__)}},"copy");export{c as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/directives/click-copy/index.ts"],"sourcesContent":["/**\n * v-copy\n * 复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\nimport { ElMessage } from \"element-plus\";\nimport { stringUtil, withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\ninterface CopyElement extends HTMLElement {\n\tcopyData: string | number;\n\t__handleClick__: () => void;\n}\n\nconst CopyDirective: Directive = {\n\tmounted(el: CopyElement, binding: DirectiveBinding<string | number>) {\n\t\tel.copyData = binding.value;\n\n\t\tel.__handleClick__ = async (): Promise<void> => {\n\t\t\tif (!el.copyData) return;\n\t\t\ttry {\n\t\t\t\tawait stringUtil.copy(String(el.copyData));\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"success\",\n\t\t\t\t\tmessage: \"复制成功\",\n\t\t\t\t});\n\t\t\t} catch (error) {\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\tmessage: \"复制失败\",\n\t\t\t\t});\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t};\n\t\tel.addEventListener(\"click\", el.__handleClick__);\n\t},\n\tupdated(el: CopyElement, binding: DirectiveBinding) {\n\t\tel.copyData = binding.value;\n\t},\n\tbeforeUnmount(el: CopyElement) {\n\t\tel.removeEventListener(\"click\", el.__handleClick__);\n\t},\n};\n\nexport const vCopy = withInstallDirective(CopyDirective, \"copy\");\nexport default vCopy;\n"],"names":["vCopy","withInstallDirective","mounted","el","binding","copyData","value","__handleClick__","async","stringUtil","copy","String","ElMessage","type","message","error","addEventListener","updated","beforeUnmount","removeEventListener"],"mappings":"kHAcA,MA8BaA,EAAQC,EA9BY,CAChC,OAAAC,CAAQC,EAAiBC,GACxBD,EAAGE,SAAWD,EAAQE,MAEtBH,EAAGI,gBAAkBC,UACpB,GAAKL,EAAGE,SACR,UACOI,EAAWC,KAAKC,OAAOR,EAAGE,WAChCO,EAAU,CACTC,KAAM,UACNC,QAAS,QAEX,OAASC,GAKR,MAJAH,EAAU,CACTC,KAAM,QACNC,QAAS,SAEJC,CACP,GAEDZ,EAAGa,iBAAiB,QAASb,EAAGI,gBACjC,EACA,OAAAU,CAAQd,EAAiBC,GACxBD,EAAGE,SAAWD,EAAQE,KACvB,EACA,aAAAY,CAAcf,GACbA,EAAGgB,oBAAoB,QAAShB,EAAGI,gBACpC,GAGwD"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/directives/click-copy/index.ts"],"sourcesContent":["/**\n * v-copy\n * 复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\nimport { ElMessage } from \"element-plus\";\nimport { stringUtil, withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\ninterface CopyElement extends HTMLElement {\n\tcopyData: string | number;\n\t__handleClick__: () => void;\n}\n\nconst CopyDirective: Directive = {\n\tmounted(el: CopyElement, binding: DirectiveBinding<string | number>) {\n\t\tel.copyData = binding.value;\n\n\t\tel.__handleClick__ = async (): Promise<void> => {\n\t\t\tif (!el.copyData) return;\n\t\t\ttry {\n\t\t\t\tawait stringUtil.copy(String(el.copyData));\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"success\",\n\t\t\t\t\tmessage: \"复制成功\",\n\t\t\t\t});\n\t\t\t} catch (error) {\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\tmessage: \"复制失败\",\n\t\t\t\t});\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t};\n\t\tel.addEventListener(\"click\", el.__handleClick__);\n\t},\n\tupdated(el: CopyElement, binding: DirectiveBinding) {\n\t\tel.copyData = binding.value;\n\t},\n\tbeforeUnmount(el: CopyElement) {\n\t\tel.removeEventListener(\"click\", el.__handleClick__);\n\t},\n};\n\nexport const vCopy = withInstallDirective(CopyDirective, \"copy\");\nexport default vCopy;\n"],"mappings":"kHAcA,IA8Ba,EAAQ,EA9BY,CAChC,OAAA,CAAQ,EAAiB,GACxB,EAAG,SAAW,EAAQ,MAEtB,EAAG,gBAAkB,UACpB,GAAK,EAAG,SACR,UACO,EAAW,KAAK,OAAO,EAAG,WAChC,EAAU,CACT,KAAM,UACN,QAAS,eAEF,GAKR,MAJA,EAAU,CACT,KAAM,QACN,QAAS,SAEJ,IAGR,EAAG,iBAAiB,QAAS,EAAG,kBAEjC,OAAA,CAAQ,EAAiB,GACxB,EAAG,SAAW,EAAQ,OAEvB,aAAA,CAAc,GACb,EAAG,oBAAoB,QAAS,EAAG,mBAIoB"}
@@ -1,2 +1,2 @@
1
- import{withInstallDirective as _}from"@fast-china/utils";const e=_({created(_,e,o){_.__debounce_originClick__=o.props.onClick,o.props.onClick=()=>{_.__debounce_timer__&&clearInterval(_.__debounce_timer__),_.__debounce_timer__=setTimeout(()=>{_.__debounce_originClick__()},500)}}},"debounce");export{e as default,e as vDebounce};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{withInstallDirective as _}from"@fast-china/utils";var e=_({created(_,e,o){_.__debounce_originClick__=o.props.onClick,o.props.onClick=()=>{_.__debounce_timer__&&clearInterval(_.__debounce_timer__),_.__debounce_timer__=setTimeout(()=>{_.__debounce_originClick__()},500)}}},"debounce");export{e as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/directives/click-debounce/index.ts"],"sourcesContent":["/**\n * v-debounce\n * 按钮防抖指令\n */\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding, VNode } from \"vue\";\n\ninterface DebounceElement extends HTMLElement {\n\t__debounce_timer__: NodeJS.Timeout;\n\t__debounce_originClick__: () => any;\n}\n\ninterface DebounceVNode extends VNode {\n\tprops: {\n\t\t/** @description 点击事件 */\n\t\tonClick?: (...args) => any;\n\t\t[key: string]: any;\n\t};\n}\n\nconst DebounceDirective: Directive = {\n\tcreated(el: DebounceElement, binding: DirectiveBinding, vNode: DebounceVNode) {\n\t\t// 记录原来的点击事件方法\n\t\tel.__debounce_originClick__ = vNode.props.onClick;\n\n\t\t// 替换原来的点击事件\n\t\tvNode.props.onClick = (): void => {\n\t\t\tif (el.__debounce_timer__) {\n\t\t\t\tclearInterval(el.__debounce_timer__);\n\t\t\t}\n\t\t\t// 防抖处理\n\t\t\tel.__debounce_timer__ = setTimeout(() => {\n\t\t\t\tel.__debounce_originClick__();\n\t\t\t}, 500);\n\t\t};\n\t},\n};\n\nexport const vDebounce = withInstallDirective(DebounceDirective, \"debounce\");\nexport default vDebounce;\n"],"names":["vDebounce","withInstallDirective","created","el","binding","vNode","__debounce_originClick__","props","onClick","__debounce_timer__","clearInterval","setTimeout"],"mappings":"yDAoBA,MAkBaA,EAAYC,EAlBY,CACpC,OAAAC,CAAQC,EAAqBC,EAA2BC,GAEvDF,EAAGG,yBAA2BD,EAAME,MAAMC,QAG1CH,EAAME,MAAMC,QAAU,KACjBL,EAAGM,oBACNC,cAAcP,EAAGM,oBAGlBN,EAAGM,mBAAqBE,WAAW,KAClCR,EAAGG,4BACD,KAEL,GAGgE"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/directives/click-debounce/index.ts"],"sourcesContent":["/**\n * v-debounce\n * 按钮防抖指令\n */\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding, VNode } from \"vue\";\n\ninterface DebounceElement extends HTMLElement {\n\t__debounce_timer__: NodeJS.Timeout;\n\t__debounce_originClick__: () => any;\n}\n\ninterface DebounceVNode extends VNode {\n\tprops: {\n\t\t/** @description 点击事件 */\n\t\tonClick?: (...args) => any;\n\t\t[key: string]: any;\n\t};\n}\n\nconst DebounceDirective: Directive = {\n\tcreated(el: DebounceElement, binding: DirectiveBinding, vNode: DebounceVNode) {\n\t\t// 记录原来的点击事件方法\n\t\tel.__debounce_originClick__ = vNode.props.onClick;\n\n\t\t// 替换原来的点击事件\n\t\tvNode.props.onClick = (): void => {\n\t\t\tif (el.__debounce_timer__) {\n\t\t\t\tclearInterval(el.__debounce_timer__);\n\t\t\t}\n\t\t\t// 防抖处理\n\t\t\tel.__debounce_timer__ = setTimeout(() => {\n\t\t\t\tel.__debounce_originClick__();\n\t\t\t}, 500);\n\t\t};\n\t},\n};\n\nexport const vDebounce = withInstallDirective(DebounceDirective, \"debounce\");\nexport default vDebounce;\n"],"mappings":"yDAoBA,IAkBa,EAAY,EAlBY,CACpC,OAAA,CAAQ,EAAqB,EAA2B,GAEvD,EAAG,yBAA2B,EAAM,MAAM,QAG1C,EAAM,MAAM,QAAA,KACP,EAAG,oBACN,cAAc,EAAG,oBAGlB,EAAG,mBAAqB,WAAA,KACvB,EAAG,4BACD,QAK2D"}
@@ -1,2 +1,2 @@
1
- import{withInstallDirective as e}from"@fast-china/utils";const o=e({mounted(e){e.style.cursor="move",e.style.position="absolute",e.onmousedown=o=>{const t=o.pageX-e.offsetLeft,s=o.pageY-e.offsetTop;document.onmousemove=o=>{let n=o.pageX-t,f=o.pageY-s;const u=e.parentNode.offsetWidth-e.offsetWidth,m=e.parentNode.offsetHeight-e.offsetHeight;n<0?n=0:n>u&&(n=u),f<0?f=0:f>m&&(f=m),e.style.left=`${n}px`,e.style.top=`${f}px`},document.onmouseup=()=>{document.onmousemove=document.onmouseup=null}}}},"draggable");export{o as default,o as vDraggable};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{withInstallDirective as e}from"@fast-china/utils";var o=e({mounted(e){e.style.cursor="move",e.style.position="absolute",e.onmousedown=o=>{const t=o.pageX-e.offsetLeft,s=o.pageY-e.offsetTop;document.onmousemove=o=>{let n=o.pageX-t,f=o.pageY-s;const u=e.parentNode.offsetWidth-e.offsetWidth,m=e.parentNode.offsetHeight-e.offsetHeight;n<0?n=0:n>u&&(n=u),f<0?f=0:f>m&&(f=m),e.style.left=`${n}px`,e.style.top=`${f}px`},document.onmouseup=()=>{document.onmousemove=document.onmouseup=null}}}},"draggable");export{o as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/directives/click-draggable/index.ts"],"sourcesContent":["/*\n\t需求:实现一个拖拽指令,可在父元素区域任意拖拽元素。\n\n\t思路:\n\t\t1、设置需要拖拽的元素为absolute,其父元素为relative。\n\t\t2、鼠标按下(onmousedown)时记录目标元素当前的 left 和 top 值。\n\t\t3、鼠标移动(onmousemove)时计算每次移动的横向距离和纵向距离的变化值,并改变元素的 left 和 top 值\n\t\t4、鼠标松开(onmouseup)时完成一次拖拽\n\n\t使用:在 Dom 上加上 v-draggable 即可\n\t<div class=\"dialog-model\" v-draggable></div>\n*/\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive } from \"vue\";\n\ninterface DraggableElement extends HTMLElement {\n\tparentNode: any;\n}\n\nconst DraggableDirective: Directive = {\n\tmounted(el: DraggableElement) {\n\t\tel.style.cursor = \"move\";\n\t\tel.style.position = \"absolute\";\n\t\tel.onmousedown = (e): void => {\n\t\t\tconst disX = e.pageX - el.offsetLeft;\n\t\t\tconst disY = e.pageY - el.offsetTop;\n\t\t\tdocument.onmousemove = (e): void => {\n\t\t\t\tlet x = e.pageX - disX;\n\t\t\t\tlet y = e.pageY - disY;\n\t\t\t\tconst maxX = el.parentNode.offsetWidth - el.offsetWidth;\n\t\t\t\tconst maxY = el.parentNode.offsetHeight - el.offsetHeight;\n\t\t\t\tif (x < 0) {\n\t\t\t\t\tx = 0;\n\t\t\t\t} else if (x > maxX) {\n\t\t\t\t\tx = maxX;\n\t\t\t\t}\n\n\t\t\t\tif (y < 0) {\n\t\t\t\t\ty = 0;\n\t\t\t\t} else if (y > maxY) {\n\t\t\t\t\ty = maxY;\n\t\t\t\t}\n\t\t\t\tel.style.left = `${x}px`;\n\t\t\t\tel.style.top = `${y}px`;\n\t\t\t};\n\t\t\tdocument.onmouseup = (): void => {\n\t\t\t\tdocument.onmousemove = document.onmouseup = null;\n\t\t\t};\n\t\t};\n\t},\n};\n\nexport const vDraggable = withInstallDirective(DraggableDirective, \"draggable\");\nexport default vDraggable;\n"],"names":["vDraggable","withInstallDirective","mounted","el","style","cursor","position","onmousedown","e","disX","pageX","offsetLeft","disY","pageY","offsetTop","document","onmousemove","x","y","maxX","parentNode","offsetWidth","maxY","offsetHeight","left","top","onmouseup"],"mappings":"yDAmBA,MAiCaA,EAAaC,EAjCY,CACrC,OAAAC,CAAQC,GACPA,EAAGC,MAAMC,OAAS,OAClBF,EAAGC,MAAME,SAAW,WACpBH,EAAGI,YAAeC,IACjB,MAAMC,EAAOD,EAAEE,MAAQP,EAAGQ,WACpBC,EAAOJ,EAAEK,MAAQV,EAAGW,UAC1BC,SAASC,YAAeR,IACvB,IAAIS,EAAIT,EAAEE,MAAQD,EACdS,EAAIV,EAAEK,MAAQD,EAClB,MAAMO,EAAOhB,EAAGiB,WAAWC,YAAclB,EAAGkB,YACtCC,EAAOnB,EAAGiB,WAAWG,aAAepB,EAAGoB,aACzCN,EAAI,EACPA,EAAI,EACMA,EAAIE,IACdF,EAAIE,GAGDD,EAAI,EACPA,EAAI,EACMA,EAAII,IACdJ,EAAII,GAELnB,EAAGC,MAAMoB,KAAO,GAAGP,MACnBd,EAAGC,MAAMqB,IAAM,GAAGP,OAEnBH,SAASW,UAAY,KACpBX,SAASC,YAAcD,SAASW,UAAY,MAG/C,GAGkE"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/directives/click-draggable/index.ts"],"sourcesContent":["/*\n\t需求:实现一个拖拽指令,可在父元素区域任意拖拽元素。\n\n\t思路:\n\t\t1、设置需要拖拽的元素为absolute,其父元素为relative。\n\t\t2、鼠标按下(onmousedown)时记录目标元素当前的 left 和 top 值。\n\t\t3、鼠标移动(onmousemove)时计算每次移动的横向距离和纵向距离的变化值,并改变元素的 left 和 top 值\n\t\t4、鼠标松开(onmouseup)时完成一次拖拽\n\n\t使用:在 Dom 上加上 v-draggable 即可\n\t<div class=\"dialog-model\" v-draggable></div>\n*/\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive } from \"vue\";\n\ninterface DraggableElement extends HTMLElement {\n\tparentNode: any;\n}\n\nconst DraggableDirective: Directive = {\n\tmounted(el: DraggableElement) {\n\t\tel.style.cursor = \"move\";\n\t\tel.style.position = \"absolute\";\n\t\tel.onmousedown = (e): void => {\n\t\t\tconst disX = e.pageX - el.offsetLeft;\n\t\t\tconst disY = e.pageY - el.offsetTop;\n\t\t\tdocument.onmousemove = (e): void => {\n\t\t\t\tlet x = e.pageX - disX;\n\t\t\t\tlet y = e.pageY - disY;\n\t\t\t\tconst maxX = el.parentNode.offsetWidth - el.offsetWidth;\n\t\t\t\tconst maxY = el.parentNode.offsetHeight - el.offsetHeight;\n\t\t\t\tif (x < 0) {\n\t\t\t\t\tx = 0;\n\t\t\t\t} else if (x > maxX) {\n\t\t\t\t\tx = maxX;\n\t\t\t\t}\n\n\t\t\t\tif (y < 0) {\n\t\t\t\t\ty = 0;\n\t\t\t\t} else if (y > maxY) {\n\t\t\t\t\ty = maxY;\n\t\t\t\t}\n\t\t\t\tel.style.left = `${x}px`;\n\t\t\t\tel.style.top = `${y}px`;\n\t\t\t};\n\t\t\tdocument.onmouseup = (): void => {\n\t\t\t\tdocument.onmousemove = document.onmouseup = null;\n\t\t\t};\n\t\t};\n\t},\n};\n\nexport const vDraggable = withInstallDirective(DraggableDirective, \"draggable\");\nexport default vDraggable;\n"],"mappings":"yDAmBA,IAiCa,EAAa,EAjCY,CACrC,OAAA,CAAQ,GACP,EAAG,MAAM,OAAS,OAClB,EAAG,MAAM,SAAW,WACpB,EAAG,YAAe,IACjB,MAAM,EAAO,EAAE,MAAQ,EAAG,WACpB,EAAO,EAAE,MAAQ,EAAG,UAC1B,SAAS,YAAe,IACvB,IAAI,EAAI,EAAE,MAAQ,EACd,EAAI,EAAE,MAAQ,EAClB,MAAM,EAAO,EAAG,WAAW,YAAc,EAAG,YACtC,EAAO,EAAG,WAAW,aAAe,EAAG,aACzC,EAAI,EACP,EAAI,EACM,EAAI,IACd,EAAI,GAGD,EAAI,EACP,EAAI,EACM,EAAI,IACd,EAAI,GAEL,EAAG,MAAM,KAAO,GAAG,MACnB,EAAG,MAAM,IAAM,GAAG,OAEnB,SAAS,UAAA,KACR,SAAS,YAAc,SAAS,UAAY,SAMmB"}
@@ -1,2 +1,2 @@
1
- import{h as e,render as t}from"vue";import{ElMessage as o,ElIcon as n}from"element-plus";import{CopyDocument as a}from"@element-plus/icons-vue";import{stringUtil as r,withInstallDirective as c}from"@fast-china/utils";const i=c({mounted(c,i){if(c.copyData=i.value,!c.copyData)return;const m=e(n,{class:"fa__copy-icon",title:"复制",onClick:async()=>{try{await r.copy(String(c.copyData)),o({type:"success",message:"复制成功"})}catch(e){throw o({type:"error",message:"复制失败"}),e}}},{default:()=>e(a)}),l=document.createElement("div");t(m,l),c.__iconElement__=l.firstChild,c.parentElement.insertBefore(l.firstChild,c)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.__iconElement__&&e.parentElement.removeChild(e.__iconElement__)}},"iconCopy");export{i as default,i as vIconCopy};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{stringUtil as e,withInstallDirective as t}from"@fast-china/utils";import{h as o,render as a}from"vue";import{ElIcon as n,ElMessage as r}from"element-plus";import{CopyDocument as i}from"@element-plus/icons-vue";var c=t({mounted(t,c){if(t.copyData=c.value,!t.copyData)return;const m=o(n,{class:"fa__copy-icon",title:"复制",onClick:async()=>{try{await e.copy(String(t.copyData)),r({type:"success",message:"复制成功"})}catch(o){throw r({type:"error",message:"复制失败"}),o}}},{default:()=>o(i)}),l=document.createElement("div");a(m,l),t.__iconElement__=l.firstChild,t.parentElement.insertBefore(l.firstChild,t)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.__iconElement__&&e.parentElement.removeChild(e.__iconElement__)}},"iconCopy");export{c as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/directives/click-icon-copy/index.ts"],"sourcesContent":["/**\n * v-iconCopy\n * 左侧插入复制图标,复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\nimport { type Directive, type DirectiveBinding, h, render } from \"vue\";\nimport { ElIcon, ElMessage } from \"element-plus\";\nimport { CopyDocument } from \"@element-plus/icons-vue\";\nimport { stringUtil, withInstallDirective } from \"@fast-china/utils\";\n\ninterface IconCopyElement extends HTMLElement {\n\tcopyData: string | number;\n\t__iconElement__: Node;\n}\n\nconst IconCopyDirective: Directive = {\n\tmounted(el: IconCopyElement, binding: DirectiveBinding<string | number>) {\n\t\tel.copyData = binding.value;\n\n\t\tif (!el.copyData) return;\n\n\t\tconst handleCopyClick = async (): Promise<void> => {\n\t\t\ttry {\n\t\t\t\tawait stringUtil.copy(String(el.copyData));\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"success\",\n\t\t\t\t\tmessage: \"复制成功\",\n\t\t\t\t});\n\t\t\t} catch (error) {\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\tmessage: \"复制失败\",\n\t\t\t\t});\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t};\n\n\t\t// 创建 ELIcon 组件\n\t\tconst iconEl = h(\n\t\t\tElIcon,\n\t\t\t{\n\t\t\t\tclass: \"fa__copy-icon\",\n\t\t\t\ttitle: \"复制\",\n\t\t\t\tonClick: handleCopyClick,\n\t\t\t},\n\t\t\t{\n\t\t\t\tdefault: () => h(CopyDocument),\n\t\t\t}\n\t\t);\n\n\t\tconst tempDiv = document.createElement(\"div\");\n\t\trender(iconEl, tempDiv);\n\n\t\tel.__iconElement__ = tempDiv.firstChild;\n\t\tel.parentElement.insertBefore(tempDiv.firstChild, el);\n\t},\n\tupdated(el: IconCopyElement, binding: DirectiveBinding) {\n\t\tel.copyData = binding.value;\n\t},\n\tbeforeUnmount(el: IconCopyElement) {\n\t\tif (el.__iconElement__) {\n\t\t\tel.parentElement.removeChild(el.__iconElement__);\n\t\t}\n\t},\n};\n\nexport const vIconCopy = withInstallDirective(IconCopyDirective, \"iconCopy\");\nexport default vIconCopy;\n"],"names":["vIconCopy","withInstallDirective","mounted","el","binding","copyData","value","iconEl","h","ElIcon","class","title","onClick","async","stringUtil","copy","String","ElMessage","type","message","error","default","CopyDocument","tempDiv","document","createElement","render","__iconElement__","firstChild","parentElement","insertBefore","updated","beforeUnmount","removeChild"],"mappings":"yNAeA,MAmDaA,EAAYC,EAnDY,CACpC,OAAAC,CAAQC,EAAqBC,GAG5B,GAFAD,EAAGE,SAAWD,EAAQE,OAEjBH,EAAGE,SAAU,OAElB,MAiBME,EAASC,EACdC,EACA,CACCC,MAAO,gBACPC,MAAO,KACPC,QAtBsBC,UACvB,UACOC,EAAWC,KAAKC,OAAOb,EAAGE,WAChCY,EAAU,CACTC,KAAM,UACNC,QAAS,QAEX,OAASC,GAKR,MAJAH,EAAU,CACTC,KAAM,QACNC,QAAS,SAEJC,CACP,IAWA,CACCC,QAAS,IAAMb,EAAEc,KAIbC,EAAUC,SAASC,cAAc,OACvCC,EAAOnB,EAAQgB,GAEfpB,EAAGwB,gBAAkBJ,EAAQK,WAC7BzB,EAAG0B,cAAcC,aAAaP,EAAQK,WAAYzB,EACnD,EACA,OAAA4B,CAAQ5B,EAAqBC,GAC5BD,EAAGE,SAAWD,EAAQE,KACvB,EACA,aAAA0B,CAAc7B,GACTA,EAAGwB,iBACNxB,EAAG0B,cAAcI,YAAY9B,EAAGwB,gBAElC,GAGgE"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/directives/click-icon-copy/index.ts"],"sourcesContent":["/**\n * v-iconCopy\n * 左侧插入复制图标,复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\nimport { type Directive, type DirectiveBinding, h, render } from \"vue\";\nimport { ElIcon, ElMessage } from \"element-plus\";\nimport { CopyDocument } from \"@element-plus/icons-vue\";\nimport { stringUtil, withInstallDirective } from \"@fast-china/utils\";\n\ninterface IconCopyElement extends HTMLElement {\n\tcopyData: string | number;\n\t__iconElement__: Node;\n}\n\nconst IconCopyDirective: Directive = {\n\tmounted(el: IconCopyElement, binding: DirectiveBinding<string | number>) {\n\t\tel.copyData = binding.value;\n\n\t\tif (!el.copyData) return;\n\n\t\tconst handleCopyClick = async (): Promise<void> => {\n\t\t\ttry {\n\t\t\t\tawait stringUtil.copy(String(el.copyData));\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"success\",\n\t\t\t\t\tmessage: \"复制成功\",\n\t\t\t\t});\n\t\t\t} catch (error) {\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\tmessage: \"复制失败\",\n\t\t\t\t});\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t};\n\n\t\t// 创建 ELIcon 组件\n\t\tconst iconEl = h(\n\t\t\tElIcon,\n\t\t\t{\n\t\t\t\tclass: \"fa__copy-icon\",\n\t\t\t\ttitle: \"复制\",\n\t\t\t\tonClick: handleCopyClick,\n\t\t\t},\n\t\t\t{\n\t\t\t\tdefault: () => h(CopyDocument),\n\t\t\t}\n\t\t);\n\n\t\tconst tempDiv = document.createElement(\"div\");\n\t\trender(iconEl, tempDiv);\n\n\t\tel.__iconElement__ = tempDiv.firstChild;\n\t\tel.parentElement.insertBefore(tempDiv.firstChild, el);\n\t},\n\tupdated(el: IconCopyElement, binding: DirectiveBinding) {\n\t\tel.copyData = binding.value;\n\t},\n\tbeforeUnmount(el: IconCopyElement) {\n\t\tif (el.__iconElement__) {\n\t\t\tel.parentElement.removeChild(el.__iconElement__);\n\t\t}\n\t},\n};\n\nexport const vIconCopy = withInstallDirective(IconCopyDirective, \"iconCopy\");\nexport default vIconCopy;\n"],"mappings":"yNAeA,IAmDa,EAAY,EAnDY,CACpC,OAAA,CAAQ,EAAqB,GAG5B,GAFA,EAAG,SAAW,EAAQ,OAEjB,EAAG,SAAU,OAElB,MAiBM,EAAS,EACd,EACA,CACC,MAAO,gBACP,MAAO,KACP,QAtBsB,UACvB,UACO,EAAW,KAAK,OAAO,EAAG,WAChC,EAAU,CACT,KAAM,UACN,QAAS,eAEF,GAKR,MAJA,EAAU,CACT,KAAM,QACN,QAAS,SAEJ,KAYP,CACC,QAAA,IAAe,EAAE,KAIb,EAAU,SAAS,cAAc,OACvC,EAAO,EAAQ,GAEf,EAAG,gBAAkB,EAAQ,WAC7B,EAAG,cAAc,aAAa,EAAQ,WAAY,IAEnD,OAAA,CAAQ,EAAqB,GAC5B,EAAG,SAAW,EAAQ,OAEvB,aAAA,CAAc,GACT,EAAG,iBACN,EAAG,cAAc,YAAY,EAAG,mBAK8B"}
@@ -1,2 +1,2 @@
1
- import{withInstallDirective as t}from"@fast-china/utils";const e=t({mounted(t,e){if("function"!=typeof e.value)throw"callback must be a function";let n=null;const o=t=>{t.button&&"click"===t.type&&0!==t.button||null===n&&(n=setTimeout(()=>{(t=>{e.value(t)})(t)},1e3))},u=()=>{null!==n&&(clearTimeout(n),n=null)};t.addEventListener("mousedown",o),t.addEventListener("touchstart",o),t.addEventListener("click",u),t.addEventListener("mouseout",u),t.addEventListener("touchend",u),t.addEventListener("touchcancel",u)}},"longpress");export{e as default,e as vLongpress};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{withInstallDirective as t}from"@fast-china/utils";var e=t({mounted(t,e){if("function"!=typeof e.value)throw"callback must be a function";let n=null;const u=t=>{t.button&&"click"===t.type&&0!==t.button||null===n&&(n=setTimeout(()=>{(t=>{e.value(t)})(t)},1e3))},o=()=>{null!==n&&(clearTimeout(n),n=null)};t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),t.addEventListener("click",o),t.addEventListener("mouseout",o),t.addEventListener("touchend",o),t.addEventListener("touchcancel",o)}},"longpress");export{e as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/directives/click-longpress/index.ts"],"sourcesContent":["/**\n * v-longpress\n * 长按指令,长按时触发事件\n */\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\nconst LongpressDirective: Directive = {\n\tmounted(el: HTMLElement, binding: DirectiveBinding<(event: MouseEvent | TouchEvent) => void>) {\n\t\tif (typeof binding.value !== \"function\") {\n\t\t\tthrow \"callback must be a function\";\n\t\t}\n\n\t\t// 运行函数\n\t\tconst handler = (e: MouseEvent | TouchEvent): void => {\n\t\t\tbinding.value(e);\n\t\t};\n\n\t\t// 定义变量\n\t\tlet pressTimer: any = null;\n\t\t// 创建计时器( 2秒后执行函数 )\n\t\tconst start = (e: any): void => {\n\t\t\tif (e.button) {\n\t\t\t\tif (e.type === \"click\" && e.button !== 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pressTimer === null) {\n\t\t\t\tpressTimer = setTimeout(() => {\n\t\t\t\t\thandler(e);\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t};\n\t\t// 取消计时器\n\t\tconst cancel = (): void => {\n\t\t\tif (pressTimer !== null) {\n\t\t\t\tclearTimeout(pressTimer);\n\t\t\t\tpressTimer = null;\n\t\t\t}\n\t\t};\n\t\t// 添加事件监听器\n\t\tel.addEventListener(\"mousedown\", start);\n\t\tel.addEventListener(\"touchstart\", start);\n\t\t// 取消计时器\n\t\tel.addEventListener(\"click\", cancel);\n\t\tel.addEventListener(\"mouseout\", cancel);\n\t\tel.addEventListener(\"touchend\", cancel);\n\t\tel.addEventListener(\"touchcancel\", cancel);\n\t},\n};\n\nexport const vLongpress = withInstallDirective(LongpressDirective, \"longpress\");\nexport default vLongpress;\n"],"names":["vLongpress","withInstallDirective","mounted","el","binding","value","pressTimer","start","e","button","type","setTimeout","handler","cancel","clearTimeout","addEventListener"],"mappings":"yDAOA,MA4CaA,EAAaC,EA5CY,CACrC,OAAAC,CAAQC,EAAiBC,GACxB,GAA6B,mBAAlBA,EAAQC,MAClB,KAAM,8BASP,IAAIC,EAAkB,KAEtB,MAAMC,EAASC,IACVA,EAAEC,QACU,UAAXD,EAAEE,MAAiC,IAAbF,EAAEC,QAIV,OAAfH,IACHA,EAAaK,WAAW,KAdV,CAACH,IAChBJ,EAAQC,MAAMG,IAcZI,CAAQJ,IACN,OAICK,EAAS,KACK,OAAfP,IACHQ,aAAaR,GACbA,EAAa,OAIfH,EAAGY,iBAAiB,YAAaR,GACjCJ,EAAGY,iBAAiB,aAAcR,GAElCJ,EAAGY,iBAAiB,QAASF,GAC7BV,EAAGY,iBAAiB,WAAYF,GAChCV,EAAGY,iBAAiB,WAAYF,GAChCV,EAAGY,iBAAiB,cAAeF,EACpC,GAGkE"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/directives/click-longpress/index.ts"],"sourcesContent":["/**\n * v-longpress\n * 长按指令,长按时触发事件\n */\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\nconst LongpressDirective: Directive = {\n\tmounted(el: HTMLElement, binding: DirectiveBinding<(event: MouseEvent | TouchEvent) => void>) {\n\t\tif (typeof binding.value !== \"function\") {\n\t\t\tthrow \"callback must be a function\";\n\t\t}\n\n\t\t// 运行函数\n\t\tconst handler = (e: MouseEvent | TouchEvent): void => {\n\t\t\tbinding.value(e);\n\t\t};\n\n\t\t// 定义变量\n\t\tlet pressTimer: any = null;\n\t\t// 创建计时器( 2秒后执行函数 )\n\t\tconst start = (e: any): void => {\n\t\t\tif (e.button) {\n\t\t\t\tif (e.type === \"click\" && e.button !== 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pressTimer === null) {\n\t\t\t\tpressTimer = setTimeout(() => {\n\t\t\t\t\thandler(e);\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t};\n\t\t// 取消计时器\n\t\tconst cancel = (): void => {\n\t\t\tif (pressTimer !== null) {\n\t\t\t\tclearTimeout(pressTimer);\n\t\t\t\tpressTimer = null;\n\t\t\t}\n\t\t};\n\t\t// 添加事件监听器\n\t\tel.addEventListener(\"mousedown\", start);\n\t\tel.addEventListener(\"touchstart\", start);\n\t\t// 取消计时器\n\t\tel.addEventListener(\"click\", cancel);\n\t\tel.addEventListener(\"mouseout\", cancel);\n\t\tel.addEventListener(\"touchend\", cancel);\n\t\tel.addEventListener(\"touchcancel\", cancel);\n\t},\n};\n\nexport const vLongpress = withInstallDirective(LongpressDirective, \"longpress\");\nexport default vLongpress;\n"],"mappings":"yDAOA,IA4Ca,EAAa,EA5CY,CACrC,OAAA,CAAQ,EAAiB,GACxB,GAA6B,mBAAlB,EAAQ,MAClB,KAAM,8BASP,IAAI,EAAkB,KAEtB,MAAM,EAAS,IACV,EAAE,QACU,UAAX,EAAE,MAAiC,IAAb,EAAE,QAIV,OAAf,IACH,EAAa,WAAA,KAdT,CAAW,IAChB,EAAQ,MAAM,IAcZ,CAAQ,IACN,OAIC,EAAA,KACc,OAAf,IACH,aAAa,GACb,EAAa,OAIf,EAAG,iBAAiB,YAAa,GACjC,EAAG,iBAAiB,aAAc,GAElC,EAAG,iBAAiB,QAAS,GAC7B,EAAG,iBAAiB,WAAY,GAChC,EAAG,iBAAiB,WAAY,GAChC,EAAG,iBAAiB,cAAe,KAI8B"}
@@ -1,2 +1,2 @@
1
- import{withInstallDirective as e}from"@fast-china/utils";const t=e({mounted(e,t){if("function"!=typeof t.value)throw"callback must be a function";let l=null;e.__handleClick__=()=>{l&&clearTimeout(l),e.disabled||(e.disabled=!0,t.value(),l=setTimeout(()=>{e.disabled=!1},1e3))},e.addEventListener("click",e.__handleClick__)},beforeUnmount(e){e.removeEventListener("click",e.__handleClick__)}},"throttle");export{t as default,t as vThrottle};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{withInstallDirective as e}from"@fast-china/utils";var t=e({mounted(e,t){if("function"!=typeof t.value)throw"callback must be a function";let l=null;e.__handleClick__=()=>{l&&clearTimeout(l),e.disabled||(e.disabled=!0,t.value(),l=setTimeout(()=>{e.disabled=!1},1e3))},e.addEventListener("click",e.__handleClick__)},beforeUnmount(e){e.removeEventListener("click",e.__handleClick__)}},"throttle");export{t as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/directives/click-throttle/index.ts"],"sourcesContent":["/*\n 需求:防止按钮在短时间内被多次点击,使用节流函数限制规定时间内只能点击一次。\n\n 思路:\n 1、第一次点击,立即调用方法并禁用按钮,等延迟结束再次激活按钮\n 2、将需要触发的方法绑定在指令上\n\n 使用:给 Dom 加上 v-throttle 及回调函数即可\n <button v-throttle=\"debounceClick\">节流提交</button>\n*/\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\ninterface ThrottleElement extends HTMLElement {\n\t__handleClick__: () => any;\n\tdisabled: boolean;\n}\n\nconst ThrottleDirective: Directive = {\n\tmounted(el: ThrottleElement, binding: DirectiveBinding<(...args: any[]) => void>) {\n\t\tif (typeof binding.value !== \"function\") {\n\t\t\tthrow \"callback must be a function\";\n\t\t}\n\t\tlet timer: NodeJS.Timeout | null = null;\n\t\tel.__handleClick__ = (): void => {\n\t\t\tif (timer) {\n\t\t\t\tclearTimeout(timer);\n\t\t\t}\n\t\t\tif (!el.disabled) {\n\t\t\t\tel.disabled = true;\n\t\t\t\tbinding.value();\n\t\t\t\ttimer = setTimeout(() => {\n\t\t\t\t\tel.disabled = false;\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t};\n\t\tel.addEventListener(\"click\", el.__handleClick__);\n\t},\n\tbeforeUnmount(el: ThrottleElement) {\n\t\tel.removeEventListener(\"click\", el.__handleClick__);\n\t},\n};\n\nexport const vThrottle = withInstallDirective(ThrottleDirective, \"throttle\");\nexport default vThrottle;\n"],"names":["vThrottle","withInstallDirective","mounted","el","binding","value","timer","__handleClick__","clearTimeout","disabled","setTimeout","addEventListener","beforeUnmount","removeEventListener"],"mappings":"yDAkBA,MAyBaA,EAAYC,EAzBY,CACpC,OAAAC,CAAQC,EAAqBC,GAC5B,GAA6B,mBAAlBA,EAAQC,MAClB,KAAM,8BAEP,IAAIC,EAA+B,KACnCH,EAAGI,gBAAkB,KAChBD,GACHE,aAAaF,GAETH,EAAGM,WACPN,EAAGM,UAAW,EACdL,EAAQC,QACRC,EAAQI,WAAW,KAClBP,EAAGM,UAAW,GACZ,OAGLN,EAAGQ,iBAAiB,QAASR,EAAGI,gBACjC,EACA,aAAAK,CAAcT,GACbA,EAAGU,oBAAoB,QAASV,EAAGI,gBACpC,GAGgE"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/directives/click-throttle/index.ts"],"sourcesContent":["/*\n 需求:防止按钮在短时间内被多次点击,使用节流函数限制规定时间内只能点击一次。\n\n 思路:\n 1、第一次点击,立即调用方法并禁用按钮,等延迟结束再次激活按钮\n 2、将需要触发的方法绑定在指令上\n\n 使用:给 Dom 加上 v-throttle 及回调函数即可\n <button v-throttle=\"debounceClick\">节流提交</button>\n*/\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\ninterface ThrottleElement extends HTMLElement {\n\t__handleClick__: () => any;\n\tdisabled: boolean;\n}\n\nconst ThrottleDirective: Directive = {\n\tmounted(el: ThrottleElement, binding: DirectiveBinding<(...args: any[]) => void>) {\n\t\tif (typeof binding.value !== \"function\") {\n\t\t\tthrow \"callback must be a function\";\n\t\t}\n\t\tlet timer: NodeJS.Timeout | null = null;\n\t\tel.__handleClick__ = (): void => {\n\t\t\tif (timer) {\n\t\t\t\tclearTimeout(timer);\n\t\t\t}\n\t\t\tif (!el.disabled) {\n\t\t\t\tel.disabled = true;\n\t\t\t\tbinding.value();\n\t\t\t\ttimer = setTimeout(() => {\n\t\t\t\t\tel.disabled = false;\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t};\n\t\tel.addEventListener(\"click\", el.__handleClick__);\n\t},\n\tbeforeUnmount(el: ThrottleElement) {\n\t\tel.removeEventListener(\"click\", el.__handleClick__);\n\t},\n};\n\nexport const vThrottle = withInstallDirective(ThrottleDirective, \"throttle\");\nexport default vThrottle;\n"],"mappings":"yDAkBA,IAyBa,EAAY,EAzBY,CACpC,OAAA,CAAQ,EAAqB,GAC5B,GAA6B,mBAAlB,EAAQ,MAClB,KAAM,8BAEP,IAAI,EAA+B,KACnC,EAAG,gBAAA,KACE,GACH,aAAa,GAET,EAAG,WACP,EAAG,UAAW,EACd,EAAQ,QACR,EAAQ,WAAA,KACP,EAAG,UAAW,GACZ,OAGL,EAAG,iBAAiB,QAAS,EAAG,kBAEjC,aAAA,CAAc,GACb,EAAG,oBAAoB,QAAS,EAAG,mBAI4B"}
@@ -1,2 +1 @@
1
- import{vCopy as i}from"./click-copy/index.mjs";import{vDebounce as o}from"./click-debounce/index.mjs";import{vDraggable as m}from"./click-draggable/index.mjs";import{vIconCopy as c}from"./click-icon-copy/index.mjs";import{vLongpress as r}from"./click-longpress/index.mjs";import{vThrottle as e}from"./click-throttle/index.mjs";export{i as vCopy,o as vDebounce,m as vDraggable,c as vIconCopy,r as vLongpress,e as vThrottle};
2
- //# sourceMappingURL=index.mjs.map
1
+ import i from"./click-copy/index.mjs";import m from"./click-debounce/index.mjs";import o from"./click-draggable/index.mjs";import c from"./click-icon-copy/index.mjs";import r from"./click-longpress/index.mjs";import e from"./click-throttle/index.mjs";
@@ -1,2 +1,2 @@
1
- import e,{ElDialog as t,ElForm as o,ElInput as l,ElInputNumber as n,ElSelect as a,ElTable as s,ElTree as r,ElTreeSelect as p,ElMessageBox as c}from"element-plus";import*as i from"@element-plus/icons-vue";import"./hooks/index.mjs";import{execFunction as u,consoleError as f}from"@fast-china/utils";import{isNil as d,isString as g}from"lodash-unified";import{useOverlay as B}from"./hooks/use-overlay/index.mjs";t.props={...t.props,draggable:{type:Boolean,default:!0}},o.props={...o.props,labelWidth:{type:[String,Number],default:"auto"},labelSuffix:{type:String,default:":"},scrollToError:{type:Boolean,default:!0}},l.props={...l.props,showWordLimit:{type:Boolean,default:!0}},n.props={...n.props,controls:{type:Boolean,default:!1}},a.props={...a.props,loadingText:{type:String,default:"加载中..."},noMatchText:{type:String,default:"暂无匹配的数据"},noDataText:{type:String,default:"暂无数据"},collapseTags:{type:Boolean,default:!0},collapseTagsTooltip:{type:Boolean,default:!0}},s.props={...s.props,border:{type:Boolean,default:!0},highlightCurrentRow:{type:Boolean,default:!0},rowKey:{type:[String,Function],default:"id"}},r.props={...r.props,defaultExpandAll:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!0},highlightCurrent:{type:Boolean,default:!0}},p.props={...p.props,loadingText:{type:String,default:"加载中..."},noMatchText:{type:String,default:"暂无匹配的数据"},noDataText:{type:String,default:"暂无数据"},collapseTags:{type:Boolean,default:!0},collapseTagsTooltip:{type:Boolean,default:!0},defaultExpandAll:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!0},highlightCurrent:{type:Boolean,default:!0},expandOnClickNode:Boolean};const h=(e,t,o,l)=>{if(o=o??{},o?.title||(o.title="温馨提示"),d(o?.draggable)&&(o.draggable=!0),o?.cancelButtonText||(o.cancelButtonText="取消"),o?.confirmButtonText||(o.confirmButtonText="确定"),d(o?.closeOnClickModal)&&(o.closeOnClickModal=!1),d(o?.closeOnPressEscape)&&(o.closeOnPressEscape=!1),!d(o?.beforeClose)){const e=o.beforeClose,t=o?.confirmButtonText,l=o?.showCancelButton;o.beforeClose=(o,n,a)=>{if("confirm"===o){B.show(0),n.confirmButtonLoading=!0,n.showCancelButton=!1,n.confirmButtonText="加载中...";const s=()=>{n.confirmButtonLoading=!1,n.showCancelButton=l,n.confirmButtonText=t,B.hide()},r=()=>{s(),a()};u(e,o,n,r).then(()=>{r()}).catch(e=>{throw f("MessageBox",e),s(),e})}else a()}}switch(e){case"alert":break;case"confirm":d(o?.showCancelButton)&&(o.showCancelButton=!0);break;case"prompt":null==o?.showCancelButton&&(o.showCancelButton=!0)}return c(Object.assign({message:t},o,{boxType:e}))},m={closeOnPressEscape:!1,closeOnClickModal:!1},y={showCancelButton:!0},x={showCancelButton:!0,showInput:!0};c.alert=(e,t,o,l)=>g(t)?h("alert",e,Object.assign({title:t,...m},o)):h("alert",e,Object.assign(t,m,o)),c.prompt=(e,t,o,l)=>g(t)?h("prompt",e,Object.assign({title:t,...x},o)):h("prompt",e,Object.assign(t,x,o)),c.confirm=(e,t,o,l)=>g(t)?h("confirm",e,Object.assign({title:t,...y},o)):h("confirm",e,Object.assign(t,y,o));const b=t=>{for(const[e,o]of Object.entries(i))t.component(`el-icon-${e}`,o);t.use(e)};export{b as installElementPlus};
2
- //# sourceMappingURL=element-plus.mjs.map
1
+ import{useOverlay as e}from"./hooks/use-overlay/index.mjs";import"./hooks/index.mjs";import{consoleError as t,execFunction as o}from"@fast-china/utils";import l,{ElDialog as n,ElForm as a,ElInput as s,ElInputNumber as r,ElMessageBox as p,ElSelect as i,ElTable as c,ElTree as u,ElTreeSelect as f}from"element-plus";import*as d from"@element-plus/icons-vue";import{isNil as g,isString as B}from"lodash-unified";n.props={...n.props,draggable:{type:Boolean,default:!0}},a.props={...a.props,labelWidth:{type:[String,Number],default:"auto"},labelSuffix:{type:String,default:":"},scrollToError:{type:Boolean,default:!0}},s.props={...s.props,showWordLimit:{type:Boolean,default:!0}},r.props={...r.props,controls:{type:Boolean,default:!1}},i.props={...i.props,loadingText:{type:String,default:"加载中..."},noMatchText:{type:String,default:"暂无匹配的数据"},noDataText:{type:String,default:"暂无数据"},collapseTags:{type:Boolean,default:!0},collapseTagsTooltip:{type:Boolean,default:!0}},c.props={...c.props,border:{type:Boolean,default:!0},highlightCurrentRow:{type:Boolean,default:!0},rowKey:{type:[String,Function],default:"id"}},u.props={...u.props,defaultExpandAll:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!0},highlightCurrent:{type:Boolean,default:!0}},f.props={...f.props,loadingText:{type:String,default:"加载中..."},noMatchText:{type:String,default:"暂无匹配的数据"},noDataText:{type:String,default:"暂无数据"},collapseTags:{type:Boolean,default:!0},collapseTagsTooltip:{type:Boolean,default:!0},defaultExpandAll:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!0},highlightCurrent:{type:Boolean,default:!0},expandOnClickNode:Boolean};var h=(l,n,a,s)=>{if(a=a??{},a?.title||(a.title="温馨提示"),g(a?.draggable)&&(a.draggable=!0),a?.cancelButtonText||(a.cancelButtonText="取消"),a?.confirmButtonText||(a.confirmButtonText="确定"),g(a?.closeOnClickModal)&&(a.closeOnClickModal=!1),g(a?.closeOnPressEscape)&&(a.closeOnPressEscape=!1),!g(a?.beforeClose)){const l=a.beforeClose,n=a?.confirmButtonText,s=a?.showCancelButton;a.beforeClose=(a,r,p)=>{if("confirm"===a){e.show(0),r.confirmButtonLoading=!0,r.showCancelButton=!1,r.confirmButtonText="加载中...";const i=()=>{r.confirmButtonLoading=!1,r.showCancelButton=s,r.confirmButtonText=n,e.hide()},c=()=>{i(),p()};o(l,a,r,c).then(()=>{c()}).catch(e=>{throw t("MessageBox",e),i(),e})}else p()}}switch(l){case"alert":break;case"confirm":g(a?.showCancelButton)&&(a.showCancelButton=!0);break;case"prompt":null==a?.showCancelButton&&(a.showCancelButton=!0)}return p(Object.assign({message:n},a,{boxType:l}))},m={closeOnPressEscape:!1,closeOnClickModal:!1},y={showCancelButton:!0},x={showCancelButton:!0,showInput:!0};p.alert=(e,t,o,l)=>B(t)?h("alert",e,Object.assign({title:t,...m},o)):h("alert",e,Object.assign(t,m,o)),p.prompt=(e,t,o,l)=>B(t)?h("prompt",e,Object.assign({title:t,...x},o)):h("prompt",e,Object.assign(t,x,o)),p.confirm=(e,t,o,l)=>B(t)?h("confirm",e,Object.assign({title:t,...y},o)):h("confirm",e,Object.assign(t,y,o));var b=e=>{for(const[t,o]of Object.entries(d))e.component(`el-icon-${t}`,o);e.use(l)};export{b as installElementPlus};
2
+ //# sourceMappingURL=element-plus.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"element-plus.mjs","sources":["../../packages/element-plus.ts"],"sourcesContent":["/** Element Plus 组件全局配置 */\n\nimport ElementPlus, { ElDialog, ElForm, ElInput, ElInputNumber, ElMessageBox, ElSelect, ElTable, ElTree, ElTreeSelect } from \"element-plus\";\nimport * as ElementPlusIconsVue from \"@element-plus/icons-vue\";\nimport { useOverlay } from \"@fast-element-plus/hooks\";\nimport { consoleError, execFunction } from \"@fast-china/utils\";\nimport { isNil, isString } from \"lodash-unified\";\nimport type { Action, ElMessageBoxOptions, MessageBoxData, MessageBoxState, TableProps } from \"element-plus\";\nimport type { App, AppContext, PropType } from \"vue\";\n\nElDialog.props = {\n\t...ElDialog.props,\n\t/**\n\t * 默认拖拽\n\t * @description enable dragging feature for Dialog\n\t */\n\tdraggable: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElForm.props = {\n\t...ElForm.props,\n\t/** @description Width of label, e.g. `'50px'`. All its direct child form items will inherit this value. `auto` is supported. */\n\tlabelWidth: {\n\t\ttype: [String, Number],\n\t\tdefault: \"auto\",\n\t},\n\t/** @description Suffix of the label. */\n\tlabelSuffix: {\n\t\ttype: String,\n\t\tdefault: \":\",\n\t},\n\t/** @description When validation fails, scroll to the first error form entry. */\n\tscrollToError: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElInput.props = {\n\t...ElInput.props,\n\t/**\n\t * 默认显示统计字数\n\t * @description word count\n\t */\n\tshowWordLimit: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElInputNumber.props = {\n\t...ElInputNumber.props,\n\t/**\n\t * 默认不使用控制按钮\n\t * @description whether to enable the control buttons\n\t */\n\tcontrols: {\n\t\ttype: Boolean,\n\t\tdefault: false,\n\t},\n};\n\nElSelect.props = {\n\t...ElSelect.props,\n\t/** @description displayed text while loading data from server, default is 'Loading' */\n\tloadingText: {\n\t\ttype: String,\n\t\tdefault: \"加载中...\",\n\t},\n\t/** @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data' */\n\tnoMatchText: {\n\t\ttype: String,\n\t\tdefault: \"暂无匹配的数据\",\n\t},\n\t/** @description displayed text when there is no options, you can also use slot `empty`, default is 'No data' */\n\tnoDataText: {\n\t\ttype: String,\n\t\tdefault: \"暂无数据\",\n\t},\n\t/**\n\t * 默认按文字形式展示\n\t * @description whether to collapse tags to a text when multiple selecting\n\t */\n\tcollapseTags: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认显示所有选中的标签\n\t * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true\n\t */\n\tcollapseTagsTooltip: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElTable.props = {\n\t...ElTable.props,\n\t/**\n\t * 默认显示边框\n\t * @description whether Table has vertical border\n\t */\n\tborder: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮当前行\n\t * @description whether current row is highlighted\n\t */\n\thighlightCurrentRow: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认行Key为 \"id\"\n\t * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n\t */\n\trowKey: {\n\t\ttype: [String, Function] as PropType<TableProps<any>[\"rowKey\"]>,\n\t\tdefault: \"id\",\n\t},\n};\n\nElTree.props = {\n\t...ElTree.props,\n\t/**\n\t * 默认展开所有节点\n\t * @description 是否默认展开所有节点\n\t */\n\tdefaultExpandAll: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击时选中节点\n\t * @description 是否在点击节点的时候选中节点\n\t */\n\tcheckOnClickNode: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮选中节点\n\t * @description 是否高亮当前选中节点\n\t */\n\thighlightCurrent: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElTreeSelect.props = {\n\t...ElTreeSelect.props,\n\t/** @description displayed text while loading data from server, default is 'Loading' */\n\tloadingText: {\n\t\ttype: String,\n\t\tdefault: \"加载中...\",\n\t},\n\t/** @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data' */\n\tnoMatchText: {\n\t\ttype: String,\n\t\tdefault: \"暂无匹配的数据\",\n\t},\n\t/** @description displayed text when there is no options, you can also use slot `empty`, default is 'No data' */\n\tnoDataText: {\n\t\ttype: String,\n\t\tdefault: \"暂无数据\",\n\t},\n\t/**\n\t * 默认按文字形式展示\n\t * @description whether to collapse tags to a text when multiple selecting\n\t */\n\tcollapseTags: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认显示所有选中的标签\n\t * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true\n\t */\n\tcollapseTagsTooltip: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认展开所有节点\n\t * @description 是否默认展开所有节点\n\t */\n\tdefaultExpandAll: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击时选中节点\n\t * @description 是否在点击节点的时候选中节点\n\t */\n\tcheckOnClickNode: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮选中节点\n\t * @description 是否高亮当前选中节点\n\t */\n\thighlightCurrent: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击节点不展开或收缩节点\n\t * @description 是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。\n\t */\n\texpandOnClickNode: Boolean,\n};\n\n// ElMessageBox 默认配置\nconst elMessageBox = (\n\ttype: \"alert\" | \"confirm\" | \"prompt\",\n\tmessage: ElMessageBoxOptions[\"message\"],\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> => {\n\toptions = options ?? {};\n\tif (!options?.title) {\n\t\t// 默认提示\n\t\toptions.title = \"温馨提示\";\n\t}\n\tif (isNil(options?.draggable)) {\n\t\t// 默认拖拽\n\t\toptions.draggable = true;\n\t}\n\tif (!options?.cancelButtonText) {\n\t\t// 默认 取消按钮的文本内容\n\t\toptions.cancelButtonText = \"取消\";\n\t}\n\tif (!options?.confirmButtonText) {\n\t\t// 默认 确定按钮的文本内容\n\t\toptions.confirmButtonText = \"确定\";\n\t}\n\tif (isNil(options?.closeOnClickModal)) {\n\t\t// 默认 是否可通过点击遮罩层关闭 MessageBox\n\t\toptions.closeOnClickModal = false;\n\t}\n\tif (isNil(options?.closeOnPressEscape)) {\n\t\t// 默认 是否可通过按下 ESC 键关闭 MessageBox\n\t\toptions.closeOnPressEscape = false;\n\t}\n\n\t// 关闭之前的判断逻辑\n\tif (!isNil(options?.beforeClose)) {\n\t\tconst localBeforeClose = options.beforeClose;\n\t\tconst localConfirmButtonText = options?.confirmButtonText;\n\t\tconst localShowCancelButton = options?.showCancelButton;\n\t\toptions.beforeClose = (action: Action, instance: MessageBoxState, done: () => void): void => {\n\t\t\tif (action === \"confirm\") {\n\t\t\t\tuseOverlay.show(0);\n\t\t\t\tinstance.confirmButtonLoading = true;\n\t\t\t\tinstance.showCancelButton = false;\n\t\t\t\tinstance.confirmButtonText = \"加载中...\";\n\n\t\t\t\tconst cancelLoading = (): void => {\n\t\t\t\t\tinstance.confirmButtonLoading = false;\n\t\t\t\t\tinstance.showCancelButton = localShowCancelButton;\n\t\t\t\t\tinstance.confirmButtonText = localConfirmButtonText;\n\t\t\t\t\tuseOverlay.hide();\n\t\t\t\t};\n\n\t\t\t\tconst newDone = (): void => {\n\t\t\t\t\tcancelLoading();\n\t\t\t\t\tdone();\n\t\t\t\t};\n\n\t\t\t\texecFunction(localBeforeClose, action, instance, newDone)\n\t\t\t\t\t.then(() => {\n\t\t\t\t\t\tnewDone();\n\t\t\t\t\t})\n\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\tconsoleError(\"MessageBox\", error);\n\t\t\t\t\t\tcancelLoading();\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tdone();\n\t\t\t}\n\t\t};\n\t}\n\n\t// 根据类型有一些判断\n\tswitch (type) {\n\t\tcase \"alert\":\n\t\t\tbreak;\n\t\tcase \"confirm\":\n\t\t\tif (isNil(options?.showCancelButton)) {\n\t\t\t\toptions.showCancelButton = true;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"prompt\":\n\t\t\tif (options?.showCancelButton == undefined) {\n\t\t\t\toptions.showCancelButton = true;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\n\treturn ElMessageBox(\n\t\tObject.assign(\n\t\t\t{\n\t\t\t\tmessage,\n\t\t\t},\n\t\t\toptions,\n\t\t\t{\n\t\t\t\tboxType: type,\n\t\t\t}\n\t\t)\n\t);\n};\n\ntype MESSAGE_BOX_TYPE = \"alert\" | \"confirm\" | \"prompt\";\nconst MESSAGE_BOX_DEFAULT_OPTS: Record<MESSAGE_BOX_TYPE, Partial<ElMessageBoxOptions>> = {\n\talert: { closeOnPressEscape: false, closeOnClickModal: false },\n\tconfirm: { showCancelButton: true },\n\tprompt: { showCancelButton: true, showInput: true },\n};\n\nElMessageBox.alert = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"alert\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"alert\"] }, options), appContext)\n\t\t: elMessageBox(\"alert\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"alert\"], options), options as AppContext);\n\nElMessageBox.prompt = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"prompt\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"prompt\"] }, options), appContext)\n\t\t: elMessageBox(\"prompt\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"prompt\"], options), options as AppContext);\n\nElMessageBox.confirm = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: AppContext | ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"confirm\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"confirm\"] }, options), appContext)\n\t\t: elMessageBox(\"confirm\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"confirm\"], options), options as AppContext);\n\nexport const installElementPlus = (app: App): void => {\n\t/** 注册所有 Element Plus Icon */\n\tfor (const [key, component] of Object.entries(ElementPlusIconsVue)) {\n\t\t// 这里是给 FaIcon 使用的\n\t\tapp.component(`el-icon-${key}`, component);\n\t}\n\n\t/** Element Plus 组件完整引入 */\n\tapp.use(ElementPlus);\n};\n"],"names":["ElDialog","props","draggable","type","Boolean","default","ElForm","labelWidth","String","Number","labelSuffix","scrollToError","ElInput","showWordLimit","ElInputNumber","controls","ElSelect","loadingText","noMatchText","noDataText","collapseTags","collapseTagsTooltip","ElTable","border","highlightCurrentRow","rowKey","Function","ElTree","defaultExpandAll","checkOnClickNode","highlightCurrent","ElTreeSelect","expandOnClickNode","elMessageBox","message","options","appContext","title","isNil","cancelButtonText","confirmButtonText","closeOnClickModal","closeOnPressEscape","beforeClose","localBeforeClose","localConfirmButtonText","localShowCancelButton","showCancelButton","action","instance","done","useOverlay","show","confirmButtonLoading","cancelLoading","hide","newDone","execFunction","then","catch","error","consoleError","ElMessageBox","Object","assign","boxType","MESSAGE_BOX_DEFAULT_OPTS","showInput","alert","titleOrOptions","isString","prompt","confirm","installElementPlus","app","key","component","entries","ElementPlusIconsVue","use","ElementPlus"],"mappings":"yZAUAA,EAASC,MAAQ,IACbD,EAASC,MAKZC,UAAW,CACVC,KAAMC,QACNC,SAAS,IAIXC,EAAOL,MAAQ,IACXK,EAAOL,MAEVM,WAAY,CACXJ,KAAM,CAACK,OAAQC,QACfJ,QAAS,QAGVK,YAAa,CACZP,KAAMK,OACNH,QAAS,KAGVM,cAAe,CACdR,KAAMC,QACNC,SAAS,IAIXO,EAAQX,MAAQ,IACZW,EAAQX,MAKXY,cAAe,CACdV,KAAMC,QACNC,SAAS,IAIXS,EAAcb,MAAQ,IAClBa,EAAcb,MAKjBc,SAAU,CACTZ,KAAMC,QACNC,SAAS,IAIXW,EAASf,MAAQ,IACbe,EAASf,MAEZgB,YAAa,CACZd,KAAMK,OACNH,QAAS,UAGVa,YAAa,CACZf,KAAMK,OACNH,QAAS,WAGVc,WAAY,CACXhB,KAAMK,OACNH,QAAS,QAMVe,aAAc,CACbjB,KAAMC,QACNC,SAAS,GAMVgB,oBAAqB,CACpBlB,KAAMC,QACNC,SAAS,IAIXiB,EAAQrB,MAAQ,IACZqB,EAAQrB,MAKXsB,OAAQ,CACPpB,KAAMC,QACNC,SAAS,GAMVmB,oBAAqB,CACpBrB,KAAMC,QACNC,SAAS,GAMVoB,OAAQ,CACPtB,KAAM,CAACK,OAAQkB,UACfrB,QAAS,OAIXsB,EAAO1B,MAAQ,IACX0B,EAAO1B,MAKV2B,iBAAkB,CACjBzB,KAAMC,QACNC,SAAS,GAMVwB,iBAAkB,CACjB1B,KAAMC,QACNC,SAAS,GAMVyB,iBAAkB,CACjB3B,KAAMC,QACNC,SAAS,IAIX0B,EAAa9B,MAAQ,IACjB8B,EAAa9B,MAEhBgB,YAAa,CACZd,KAAMK,OACNH,QAAS,UAGVa,YAAa,CACZf,KAAMK,OACNH,QAAS,WAGVc,WAAY,CACXhB,KAAMK,OACNH,QAAS,QAMVe,aAAc,CACbjB,KAAMC,QACNC,SAAS,GAMVgB,oBAAqB,CACpBlB,KAAMC,QACNC,SAAS,GAMVuB,iBAAkB,CACjBzB,KAAMC,QACNC,SAAS,GAMVwB,iBAAkB,CACjB1B,KAAMC,QACNC,SAAS,GAMVyB,iBAAkB,CACjB3B,KAAMC,QACNC,SAAS,GAMV2B,kBAAmB5B,SAIpB,MAAM6B,EAAe,CACpB9B,EACA+B,EACAC,EACAC,KA6BA,GA3BAD,EAAUA,GAAW,CAAA,EAChBA,GAASE,QAEbF,EAAQE,MAAQ,QAEbC,EAAMH,GAASjC,aAElBiC,EAAQjC,WAAY,GAEhBiC,GAASI,mBAEbJ,EAAQI,iBAAmB,MAEvBJ,GAASK,oBAEbL,EAAQK,kBAAoB,MAEzBF,EAAMH,GAASM,qBAElBN,EAAQM,mBAAoB,GAEzBH,EAAMH,GAASO,sBAElBP,EAAQO,oBAAqB,IAIzBJ,EAAMH,GAASQ,aAAc,CACjC,MAAMC,EAAmBT,EAAQQ,YAC3BE,EAAyBV,GAASK,kBAClCM,EAAwBX,GAASY,iBACvCZ,EAAQQ,YAAc,CAACK,EAAgBC,EAA2BC,KACjE,GAAe,YAAXF,EAAsB,CACzBG,EAAWC,KAAK,GAChBH,EAASI,sBAAuB,EAChCJ,EAASF,kBAAmB,EAC5BE,EAAST,kBAAoB,SAE7B,MAAMc,EAAgB,KACrBL,EAASI,sBAAuB,EAChCJ,EAASF,iBAAmBD,EAC5BG,EAAST,kBAAoBK,EAC7BM,EAAWI,QAGNC,EAAU,KACfF,IACAJ,KAGDO,EAAab,EAAkBI,EAAQC,EAAUO,GAC/CE,KAAK,KACLF,MAEAG,MAAOC,IAGP,MAFAC,EAAa,aAAcD,GAC3BN,IACMM,GAET,MACCV,IAGH,CAGA,OAAQ/C,GACP,IAAK,QACJ,MACD,IAAK,UACAmC,EAAMH,GAASY,oBAClBZ,EAAQY,kBAAmB,GAE5B,MACD,IAAK,SAC6B,MAA7BZ,GAASY,mBACZZ,EAAQY,kBAAmB,GAK9B,OAAOe,EACNC,OAAOC,OACN,CACC9B,WAEDC,EACA,CACC8B,QAAS9D,MAOP+D,EACE,CAAExB,oBAAoB,EAAOD,mBAAmB,GADlDyB,EAEI,CAAEnB,kBAAkB,GAFxBmB,EAGG,CAAEnB,kBAAkB,EAAMoB,WAAW,GAG9CL,EAAaM,MAAQ,CACpBlC,EACAmC,EACAlC,EACAC,IAEAkC,EAASD,GACNpC,EAAa,QAASC,EAAS6B,OAAOC,OAAO,CAAE3B,MAAOgC,KAAmBH,GAAqC/B,IAC9GF,EAAa,QAASC,EAAS6B,OAAOC,OAAOK,EAAgBH,EAAmC/B,IAEpG2B,EAAaS,OAAS,CACrBrC,EACAmC,EACAlC,EACAC,IAEAkC,EAASD,GACNpC,EAAa,SAAUC,EAAS6B,OAAOC,OAAO,CAAE3B,MAAOgC,KAAmBH,GAAsC/B,IAChHF,EAAa,SAAUC,EAAS6B,OAAOC,OAAOK,EAAgBH,EAAoC/B,IAEtG2B,EAAaU,QAAU,CACtBtC,EACAmC,EACAlC,EACAC,IAEAkC,EAASD,GACNpC,EAAa,UAAWC,EAAS6B,OAAOC,OAAO,CAAE3B,MAAOgC,KAAmBH,GAAuC/B,IAClHF,EAAa,UAAWC,EAAS6B,OAAOC,OAAOK,EAAgBH,EAAqC/B,IAEjG,MAAMsC,EAAsBC,IAElC,IAAA,MAAYC,EAAKC,KAAcb,OAAOc,QAAQC,GAE7CJ,EAAIE,UAAU,WAAWD,IAAOC,GAIjCF,EAAIK,IAAIC"}
1
+ {"version":3,"file":"element-plus.mjs","names":[],"sources":["../../packages/element-plus.ts"],"sourcesContent":["/** Element Plus 组件全局配置 */\n\nimport ElementPlus, { ElDialog, ElForm, ElInput, ElInputNumber, ElMessageBox, ElSelect, ElTable, ElTree, ElTreeSelect } from \"element-plus\";\nimport * as ElementPlusIconsVue from \"@element-plus/icons-vue\";\nimport { useOverlay } from \"@fast-element-plus/hooks\";\nimport { consoleError, execFunction } from \"@fast-china/utils\";\nimport { isNil, isString } from \"lodash-unified\";\nimport type { Action, ElMessageBoxOptions, MessageBoxData, MessageBoxState, TableProps } from \"element-plus\";\nimport type { App, AppContext, PropType } from \"vue\";\n\nElDialog.props = {\n\t...ElDialog.props,\n\t/**\n\t * 默认拖拽\n\t * @description enable dragging feature for Dialog\n\t */\n\tdraggable: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElForm.props = {\n\t...ElForm.props,\n\t/** @description Width of label, e.g. `'50px'`. All its direct child form items will inherit this value. `auto` is supported. */\n\tlabelWidth: {\n\t\ttype: [String, Number],\n\t\tdefault: \"auto\",\n\t},\n\t/** @description Suffix of the label. */\n\tlabelSuffix: {\n\t\ttype: String,\n\t\tdefault: \":\",\n\t},\n\t/** @description When validation fails, scroll to the first error form entry. */\n\tscrollToError: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElInput.props = {\n\t...ElInput.props,\n\t/**\n\t * 默认显示统计字数\n\t * @description word count\n\t */\n\tshowWordLimit: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElInputNumber.props = {\n\t...ElInputNumber.props,\n\t/**\n\t * 默认不使用控制按钮\n\t * @description whether to enable the control buttons\n\t */\n\tcontrols: {\n\t\ttype: Boolean,\n\t\tdefault: false,\n\t},\n};\n\nElSelect.props = {\n\t...ElSelect.props,\n\t/** @description displayed text while loading data from server, default is 'Loading' */\n\tloadingText: {\n\t\ttype: String,\n\t\tdefault: \"加载中...\",\n\t},\n\t/** @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data' */\n\tnoMatchText: {\n\t\ttype: String,\n\t\tdefault: \"暂无匹配的数据\",\n\t},\n\t/** @description displayed text when there is no options, you can also use slot `empty`, default is 'No data' */\n\tnoDataText: {\n\t\ttype: String,\n\t\tdefault: \"暂无数据\",\n\t},\n\t/**\n\t * 默认按文字形式展示\n\t * @description whether to collapse tags to a text when multiple selecting\n\t */\n\tcollapseTags: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认显示所有选中的标签\n\t * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true\n\t */\n\tcollapseTagsTooltip: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElTable.props = {\n\t...ElTable.props,\n\t/**\n\t * 默认显示边框\n\t * @description whether Table has vertical border\n\t */\n\tborder: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮当前行\n\t * @description whether current row is highlighted\n\t */\n\thighlightCurrentRow: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认行Key为 \"id\"\n\t * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n\t */\n\trowKey: {\n\t\ttype: [String, Function] as PropType<TableProps<any>[\"rowKey\"]>,\n\t\tdefault: \"id\",\n\t},\n};\n\nElTree.props = {\n\t...ElTree.props,\n\t/**\n\t * 默认展开所有节点\n\t * @description 是否默认展开所有节点\n\t */\n\tdefaultExpandAll: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击时选中节点\n\t * @description 是否在点击节点的时候选中节点\n\t */\n\tcheckOnClickNode: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮选中节点\n\t * @description 是否高亮当前选中节点\n\t */\n\thighlightCurrent: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElTreeSelect.props = {\n\t...ElTreeSelect.props,\n\t/** @description displayed text while loading data from server, default is 'Loading' */\n\tloadingText: {\n\t\ttype: String,\n\t\tdefault: \"加载中...\",\n\t},\n\t/** @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data' */\n\tnoMatchText: {\n\t\ttype: String,\n\t\tdefault: \"暂无匹配的数据\",\n\t},\n\t/** @description displayed text when there is no options, you can also use slot `empty`, default is 'No data' */\n\tnoDataText: {\n\t\ttype: String,\n\t\tdefault: \"暂无数据\",\n\t},\n\t/**\n\t * 默认按文字形式展示\n\t * @description whether to collapse tags to a text when multiple selecting\n\t */\n\tcollapseTags: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认显示所有选中的标签\n\t * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true\n\t */\n\tcollapseTagsTooltip: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认展开所有节点\n\t * @description 是否默认展开所有节点\n\t */\n\tdefaultExpandAll: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击时选中节点\n\t * @description 是否在点击节点的时候选中节点\n\t */\n\tcheckOnClickNode: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮选中节点\n\t * @description 是否高亮当前选中节点\n\t */\n\thighlightCurrent: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击节点不展开或收缩节点\n\t * @description 是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。\n\t */\n\texpandOnClickNode: Boolean,\n};\n\n// ElMessageBox 默认配置\nconst elMessageBox = (\n\ttype: \"alert\" | \"confirm\" | \"prompt\",\n\tmessage: ElMessageBoxOptions[\"message\"],\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> => {\n\toptions = options ?? {};\n\tif (!options?.title) {\n\t\t// 默认提示\n\t\toptions.title = \"温馨提示\";\n\t}\n\tif (isNil(options?.draggable)) {\n\t\t// 默认拖拽\n\t\toptions.draggable = true;\n\t}\n\tif (!options?.cancelButtonText) {\n\t\t// 默认 取消按钮的文本内容\n\t\toptions.cancelButtonText = \"取消\";\n\t}\n\tif (!options?.confirmButtonText) {\n\t\t// 默认 确定按钮的文本内容\n\t\toptions.confirmButtonText = \"确定\";\n\t}\n\tif (isNil(options?.closeOnClickModal)) {\n\t\t// 默认 是否可通过点击遮罩层关闭 MessageBox\n\t\toptions.closeOnClickModal = false;\n\t}\n\tif (isNil(options?.closeOnPressEscape)) {\n\t\t// 默认 是否可通过按下 ESC 键关闭 MessageBox\n\t\toptions.closeOnPressEscape = false;\n\t}\n\n\t// 关闭之前的判断逻辑\n\tif (!isNil(options?.beforeClose)) {\n\t\tconst localBeforeClose = options.beforeClose;\n\t\tconst localConfirmButtonText = options?.confirmButtonText;\n\t\tconst localShowCancelButton = options?.showCancelButton;\n\t\toptions.beforeClose = (action: Action, instance: MessageBoxState, done: () => void): void => {\n\t\t\tif (action === \"confirm\") {\n\t\t\t\tuseOverlay.show(0);\n\t\t\t\tinstance.confirmButtonLoading = true;\n\t\t\t\tinstance.showCancelButton = false;\n\t\t\t\tinstance.confirmButtonText = \"加载中...\";\n\n\t\t\t\tconst cancelLoading = (): void => {\n\t\t\t\t\tinstance.confirmButtonLoading = false;\n\t\t\t\t\tinstance.showCancelButton = localShowCancelButton;\n\t\t\t\t\tinstance.confirmButtonText = localConfirmButtonText;\n\t\t\t\t\tuseOverlay.hide();\n\t\t\t\t};\n\n\t\t\t\tconst newDone = (): void => {\n\t\t\t\t\tcancelLoading();\n\t\t\t\t\tdone();\n\t\t\t\t};\n\n\t\t\t\texecFunction(localBeforeClose, action, instance, newDone)\n\t\t\t\t\t.then(() => {\n\t\t\t\t\t\tnewDone();\n\t\t\t\t\t})\n\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\tconsoleError(\"MessageBox\", error);\n\t\t\t\t\t\tcancelLoading();\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tdone();\n\t\t\t}\n\t\t};\n\t}\n\n\t// 根据类型有一些判断\n\tswitch (type) {\n\t\tcase \"alert\":\n\t\t\tbreak;\n\t\tcase \"confirm\":\n\t\t\tif (isNil(options?.showCancelButton)) {\n\t\t\t\toptions.showCancelButton = true;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"prompt\":\n\t\t\tif (options?.showCancelButton == undefined) {\n\t\t\t\toptions.showCancelButton = true;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\n\treturn ElMessageBox(\n\t\tObject.assign(\n\t\t\t{\n\t\t\t\tmessage,\n\t\t\t},\n\t\t\toptions,\n\t\t\t{\n\t\t\t\tboxType: type,\n\t\t\t}\n\t\t)\n\t);\n};\n\ntype MESSAGE_BOX_TYPE = \"alert\" | \"confirm\" | \"prompt\";\nconst MESSAGE_BOX_DEFAULT_OPTS: Record<MESSAGE_BOX_TYPE, Partial<ElMessageBoxOptions>> = {\n\talert: { closeOnPressEscape: false, closeOnClickModal: false },\n\tconfirm: { showCancelButton: true },\n\tprompt: { showCancelButton: true, showInput: true },\n};\n\nElMessageBox.alert = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"alert\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"alert\"] }, options), appContext)\n\t\t: elMessageBox(\"alert\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"alert\"], options), options as AppContext);\n\nElMessageBox.prompt = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"prompt\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"prompt\"] }, options), appContext)\n\t\t: elMessageBox(\"prompt\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"prompt\"], options), options as AppContext);\n\nElMessageBox.confirm = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: AppContext | ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"confirm\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"confirm\"] }, options), appContext)\n\t\t: elMessageBox(\"confirm\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"confirm\"], options), options as AppContext);\n\nexport const installElementPlus = (app: App): void => {\n\t/** 注册所有 Element Plus Icon */\n\tfor (const [key, component] of Object.entries(ElementPlusIconsVue)) {\n\t\t// 这里是给 FaIcon 使用的\n\t\tapp.component(`el-icon-${key}`, component);\n\t}\n\n\t/** Element Plus 组件完整引入 */\n\tapp.use(ElementPlus);\n};\n"],"mappings":"yZAUA,EAAS,MAAQ,IACb,EAAS,MAKZ,UAAW,CACV,KAAM,QACN,SAAS,IAIX,EAAO,MAAQ,IACX,EAAO,MAEV,WAAY,CACX,KAAM,CAAC,OAAQ,QACf,QAAS,QAGV,YAAa,CACZ,KAAM,OACN,QAAS,KAGV,cAAe,CACd,KAAM,QACN,SAAS,IAIX,EAAQ,MAAQ,IACZ,EAAQ,MAKX,cAAe,CACd,KAAM,QACN,SAAS,IAIX,EAAc,MAAQ,IAClB,EAAc,MAKjB,SAAU,CACT,KAAM,QACN,SAAS,IAIX,EAAS,MAAQ,IACb,EAAS,MAEZ,YAAa,CACZ,KAAM,OACN,QAAS,UAGV,YAAa,CACZ,KAAM,OACN,QAAS,WAGV,WAAY,CACX,KAAM,OACN,QAAS,QAMV,aAAc,CACb,KAAM,QACN,SAAS,GAMV,oBAAqB,CACpB,KAAM,QACN,SAAS,IAIX,EAAQ,MAAQ,IACZ,EAAQ,MAKX,OAAQ,CACP,KAAM,QACN,SAAS,GAMV,oBAAqB,CACpB,KAAM,QACN,SAAS,GAMV,OAAQ,CACP,KAAM,CAAC,OAAQ,UACf,QAAS,OAIX,EAAO,MAAQ,IACX,EAAO,MAKV,iBAAkB,CACjB,KAAM,QACN,SAAS,GAMV,iBAAkB,CACjB,KAAM,QACN,SAAS,GAMV,iBAAkB,CACjB,KAAM,QACN,SAAS,IAIX,EAAa,MAAQ,IACjB,EAAa,MAEhB,YAAa,CACZ,KAAM,OACN,QAAS,UAGV,YAAa,CACZ,KAAM,OACN,QAAS,WAGV,WAAY,CACX,KAAM,OACN,QAAS,QAMV,aAAc,CACb,KAAM,QACN,SAAS,GAMV,oBAAqB,CACpB,KAAM,QACN,SAAS,GAMV,iBAAkB,CACjB,KAAM,QACN,SAAS,GAMV,iBAAkB,CACjB,KAAM,QACN,SAAS,GAMV,iBAAkB,CACjB,KAAM,QACN,SAAS,GAMV,kBAAmB,SAIpB,IAAM,EAAA,CACL,EACA,EACA,EACA,KA6BA,GA3BA,EAAU,GAAW,CAAA,EAChB,GAAS,QAEb,EAAQ,MAAQ,QAEb,EAAM,GAAS,aAElB,EAAQ,WAAY,GAEhB,GAAS,mBAEb,EAAQ,iBAAmB,MAEvB,GAAS,oBAEb,EAAQ,kBAAoB,MAEzB,EAAM,GAAS,qBAElB,EAAQ,mBAAoB,GAEzB,EAAM,GAAS,sBAElB,EAAQ,oBAAqB,IAIzB,EAAM,GAAS,aAAc,CACjC,MAAM,EAAmB,EAAQ,YAC3B,EAAyB,GAAS,kBAClC,EAAwB,GAAS,iBACvC,EAAQ,YAAA,CAAe,EAAgB,EAA2B,KACjE,GAAe,YAAX,EAAsB,CACzB,EAAW,KAAK,GAChB,EAAS,sBAAuB,EAChC,EAAS,kBAAmB,EAC5B,EAAS,kBAAoB,SAE7B,MAAM,EAAA,KACL,EAAS,sBAAuB,EAChC,EAAS,iBAAmB,EAC5B,EAAS,kBAAoB,EAC7B,EAAW,QAGN,EAAA,KACL,IACA,KAGD,EAAa,EAAkB,EAAQ,EAAU,GAC/C,KAAA,KACA,MAEA,MAAO,IAGP,MAFA,EAAa,aAAc,GAC3B,IACM,SAGR,KAMH,OAAQ,GACP,IAAK,QACJ,MACD,IAAK,UACA,EAAM,GAAS,oBAClB,EAAQ,kBAAmB,GAE5B,MACD,IAAK,SAC6B,MAA7B,GAAS,mBACZ,EAAQ,kBAAmB,GAK9B,OAAO,EACN,OAAO,OACN,CACC,WAED,EACA,CACC,QAAS,MAOP,EACE,CAAE,oBAAoB,EAAO,mBAAmB,GADlD,EAEI,CAAE,kBAAkB,GAFxB,EAGG,CAAE,kBAAkB,EAAM,WAAW,GAG9C,EAAa,MAAA,CACZ,EACA,EACA,EACA,IAEA,EAAS,GACN,EAAa,QAAS,EAAS,OAAO,OAAO,CAAE,MAAO,KAAmB,GAAqC,IAC9G,EAAa,QAAS,EAAS,OAAO,OAAO,EAAgB,EAAmC,IAEpG,EAAa,OAAA,CACZ,EACA,EACA,EACA,IAEA,EAAS,GACN,EAAa,SAAU,EAAS,OAAO,OAAO,CAAE,MAAO,KAAmB,GAAsC,IAChH,EAAa,SAAU,EAAS,OAAO,OAAO,EAAgB,EAAoC,IAEtG,EAAa,QAAA,CACZ,EACA,EACA,EACA,IAEA,EAAS,GACN,EAAa,UAAW,EAAS,OAAO,OAAO,CAAE,MAAO,KAAmB,GAAuC,IAClH,EAAa,UAAW,EAAS,OAAO,OAAO,EAAgB,EAAqC,IAExG,IAAa,EAAsB,IAElC,IAAK,MAAO,EAAK,KAAc,OAAO,QAAQ,GAE7C,EAAI,UAAU,WAAW,IAAO,GAIjC,EAAI,IAAI"}
@@ -1,2 +1 @@
1
- import{useLoading as e}from"./use-loading/index.mjs";import{useOverlay as m}from"./use-overlay/index.mjs";import{useScreenFull as o}from"./use-screenFull/index.mjs";export{e as useLoading,m as useOverlay,o as useScreenFull};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{useLoading as e}from"./use-loading/index.mjs";import{useOverlay as m}from"./use-overlay/index.mjs";import{useScreenFull as o}from"./use-screenFull/index.mjs";
@@ -1,2 +1,2 @@
1
- import{nextTick as o}from"vue";const n={show:()=>{if(!window.loading){const o=document.body,n=document.createElement("div");n.className="__fa-loading",n.innerHTML='\n<div class="__fa-loading__box">\n\t<div class="__fa-loading__box-warp">\n\t\t\t<div class="__fa-loading__box-warp__item"></div>\n\t</div>\n</div>\n',o.insertBefore(n,o.childNodes[0]),window.loading=!0}},hide:()=>{window.loading&&o(()=>{setTimeout(()=>{const o=document.querySelector(".__fa-loading__box");o&&o.parentNode?.removeChild(o),window.loading=!1},500)})}};export{n as useLoading};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{nextTick as o}from"vue";var d={show:()=>{if(!window.loading){const o=document.body,d=document.createElement("div");d.className="__fa-loading",d.innerHTML='\n<div class="__fa-loading__box">\n\t<div class="__fa-loading__box-warp">\n\t\t\t<div class="__fa-loading__box-warp__item"></div>\n\t</div>\n</div>\n',o.insertBefore(d,o.childNodes[0]),window.loading=!0}},hide:()=>{window.loading&&o(()=>{setTimeout(()=>{const o=document.querySelector(".__fa-loading__box");o&&o.parentNode?.removeChild(o),window.loading=!1},500)})}};export{d as useLoading};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/hooks/use-loading/index.ts"],"sourcesContent":["import { nextTick } from \"vue\";\n\nexport const useLoading = {\n\tshow: (): void => {\n\t\t// 判断是否存在加载效果\n\t\tif (!window.loading) {\n\t\t\tconst bodyEl: Element = document.body;\n\t\t\tconst div = document.createElement(\"div\");\n\t\t\tdiv.className = \"__fa-loading\";\n\t\t\tdiv.innerHTML = `\n<div class=\"__fa-loading__box\">\n\t<div class=\"__fa-loading__box-warp\">\n\t\t\t<div class=\"__fa-loading__box-warp__item\"></div>\n\t</div>\n</div>\n`;\n\t\t\tbodyEl.insertBefore(div, bodyEl.childNodes[0]);\n\t\t\twindow.loading = true;\n\t\t}\n\t},\n\thide: (): void => {\n\t\t// 判断是否存在加载效果\n\t\tif (window.loading) {\n\t\t\tnextTick(() => {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tconst loadingEl = document.querySelector(\".__fa-loading__box\");\n\t\t\t\t\tloadingEl && loadingEl.parentNode?.removeChild(loadingEl);\n\t\t\t\t\twindow.loading = false;\n\t\t\t\t}, 500);\n\t\t\t});\n\t\t}\n\t},\n};\n"],"names":["useLoading","show","window","loading","bodyEl","document","body","div","createElement","className","innerHTML","insertBefore","childNodes","hide","nextTick","setTimeout","loadingEl","querySelector","parentNode","removeChild"],"mappings":"+BAEO,MAAMA,EAAa,CACzBC,KAAM,KAEL,IAAKC,OAAOC,QAAS,CACpB,MAAMC,EAAkBC,SAASC,KAC3BC,EAAMF,SAASG,cAAc,OACnCD,EAAIE,UAAY,eAChBF,EAAIG,UAAY,wJAOhBN,EAAOO,aAAaJ,EAAKH,EAAOQ,WAAW,IAC3CV,OAAOC,SAAU,CAClB,GAEDU,KAAM,KAEDX,OAAOC,SACVW,EAAS,KACRC,WAAW,KACV,MAAMC,EAAYX,SAASY,cAAc,sBACzCD,GAAaA,EAAUE,YAAYC,YAAYH,GAC/Cd,OAAOC,SAAU,GACf"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/hooks/use-loading/index.ts"],"sourcesContent":["import { nextTick } from \"vue\";\n\nexport const useLoading = {\n\tshow: (): void => {\n\t\t// 判断是否存在加载效果\n\t\tif (!window.loading) {\n\t\t\tconst bodyEl: Element = document.body;\n\t\t\tconst div = document.createElement(\"div\");\n\t\t\tdiv.className = \"__fa-loading\";\n\t\t\tdiv.innerHTML = `\n<div class=\"__fa-loading__box\">\n\t<div class=\"__fa-loading__box-warp\">\n\t\t\t<div class=\"__fa-loading__box-warp__item\"></div>\n\t</div>\n</div>\n`;\n\t\t\tbodyEl.insertBefore(div, bodyEl.childNodes[0]);\n\t\t\twindow.loading = true;\n\t\t}\n\t},\n\thide: (): void => {\n\t\t// 判断是否存在加载效果\n\t\tif (window.loading) {\n\t\t\tnextTick(() => {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tconst loadingEl = document.querySelector(\".__fa-loading__box\");\n\t\t\t\t\tloadingEl && loadingEl.parentNode?.removeChild(loadingEl);\n\t\t\t\t\twindow.loading = false;\n\t\t\t\t}, 500);\n\t\t\t});\n\t\t}\n\t},\n};\n"],"mappings":"+BAEA,IAAa,EAAa,CACzB,KAAA,KAEC,IAAK,OAAO,QAAS,CACpB,MAAM,EAAkB,SAAS,KAC3B,EAAM,SAAS,cAAc,OACnC,EAAI,UAAY,eAChB,EAAI,UAAY,wJAOhB,EAAO,aAAa,EAAK,EAAO,WAAW,IAC3C,OAAO,SAAU,IAGnB,KAAA,KAEK,OAAO,SACV,EAAA,KACC,WAAA,KACC,MAAM,EAAY,SAAS,cAAc,sBACzC,GAAa,EAAU,YAAY,YAAY,GAC/C,OAAO,SAAU,GACf"}
@@ -1,2 +1,2 @@
1
- import{nextTick as e}from"vue";const o={show:(e=0)=>{if(!window.overlay){const o=document.body,r=document.createElement("div");r.className="__fa-overlay",r.style.backgroundColor=`rgba(0, 0, 0, ${e})`,o.insertBefore(r,o.childNodes[0]),window.overlay=!0}},hide:()=>{window.overlay&&e(()=>{const e=document.querySelector(".__fa-overlay");e&&e.parentNode?.removeChild(e),window.overlay=!1})}};export{o as useOverlay};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{nextTick as e}from"vue";var o={show:(e=0)=>{if(!window.overlay){const o=document.body,r=document.createElement("div");r.className="__fa-overlay",r.style.backgroundColor=`rgba(0, 0, 0, ${e})`,o.insertBefore(r,o.childNodes[0]),window.overlay=!0}},hide:()=>{window.overlay&&e(()=>{const e=document.querySelector(".__fa-overlay");e&&e.parentNode?.removeChild(e),window.overlay=!1})}};export{o as useOverlay};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/hooks/use-overlay/index.ts"],"sourcesContent":["import { nextTick } from \"vue\";\n\nexport const useOverlay = {\n\tshow: (transparent = 0): void => {\n\t\t// 判断是否存在遮罩层\n\t\tif (!window.overlay) {\n\t\t\tconst bodyEl: Element = document.body;\n\t\t\tconst div = document.createElement(\"div\");\n\t\t\tdiv.className = \"__fa-overlay\";\n\t\t\tdiv.style.backgroundColor = `rgba(0, 0, 0, ${transparent})`;\n\t\t\tbodyEl.insertBefore(div, bodyEl.childNodes[0]);\n\t\t\twindow.overlay = true;\n\t\t}\n\t},\n\thide: (): void => {\n\t\t// 判断是否存在遮罩层\n\t\tif (window.overlay) {\n\t\t\tnextTick(() => {\n\t\t\t\tconst loadingEl = document.querySelector(\".__fa-overlay\");\n\t\t\t\tloadingEl && loadingEl.parentNode?.removeChild(loadingEl);\n\t\t\t\twindow.overlay = false;\n\t\t\t});\n\t\t}\n\t},\n};\n"],"names":["useOverlay","show","transparent","window","overlay","bodyEl","document","body","div","createElement","className","style","backgroundColor","insertBefore","childNodes","hide","nextTick","loadingEl","querySelector","parentNode","removeChild"],"mappings":"+BAEO,MAAMA,EAAa,CACzBC,KAAM,CAACC,EAAc,KAEpB,IAAKC,OAAOC,QAAS,CACpB,MAAMC,EAAkBC,SAASC,KAC3BC,EAAMF,SAASG,cAAc,OACnCD,EAAIE,UAAY,eAChBF,EAAIG,MAAMC,gBAAkB,iBAAiBV,KAC7CG,EAAOQ,aAAaL,EAAKH,EAAOS,WAAW,IAC3CX,OAAOC,SAAU,CAClB,GAEDW,KAAM,KAEDZ,OAAOC,SACVY,EAAS,KACR,MAAMC,EAAYX,SAASY,cAAc,iBACzCD,GAAaA,EAAUE,YAAYC,YAAYH,GAC/Cd,OAAOC,SAAU"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/hooks/use-overlay/index.ts"],"sourcesContent":["import { nextTick } from \"vue\";\n\nexport const useOverlay = {\n\tshow: (transparent = 0): void => {\n\t\t// 判断是否存在遮罩层\n\t\tif (!window.overlay) {\n\t\t\tconst bodyEl: Element = document.body;\n\t\t\tconst div = document.createElement(\"div\");\n\t\t\tdiv.className = \"__fa-overlay\";\n\t\t\tdiv.style.backgroundColor = `rgba(0, 0, 0, ${transparent})`;\n\t\t\tbodyEl.insertBefore(div, bodyEl.childNodes[0]);\n\t\t\twindow.overlay = true;\n\t\t}\n\t},\n\thide: (): void => {\n\t\t// 判断是否存在遮罩层\n\t\tif (window.overlay) {\n\t\t\tnextTick(() => {\n\t\t\t\tconst loadingEl = document.querySelector(\".__fa-overlay\");\n\t\t\t\tloadingEl && loadingEl.parentNode?.removeChild(loadingEl);\n\t\t\t\twindow.overlay = false;\n\t\t\t});\n\t\t}\n\t},\n};\n"],"mappings":"+BAEA,IAAa,EAAa,CACzB,KAAA,CAAO,EAAc,KAEpB,IAAK,OAAO,QAAS,CACpB,MAAM,EAAkB,SAAS,KAC3B,EAAM,SAAS,cAAc,OACnC,EAAI,UAAY,eAChB,EAAI,MAAM,gBAAkB,iBAAiB,KAC7C,EAAO,aAAa,EAAK,EAAO,WAAW,IAC3C,OAAO,SAAU,IAGnB,KAAA,KAEK,OAAO,SACV,EAAA,KACC,MAAM,EAAY,SAAS,cAAc,iBACzC,GAAa,EAAU,YAAY,YAAY,GAC/C,OAAO,SAAU"}
@@ -1,2 +1,2 @@
1
- import{ref as e}from"vue";import{ElMessage as l}from"element-plus";import n from"screenfull";const i=e(!1),r={isFullscreen:()=>i.value,init:()=>{n.isEnabled&&n.onchange(()=>{i.value=n.isFullscreen})},toggle:()=>{n.isEnabled?n.toggle():l.warning("当前您的浏览器不支持全屏 ❌")},full:()=>{n.isEnabled?n.isFullscreen||n.request():l.warning("当前您的浏览器不支持全屏 ❌")},exit:()=>{n.isEnabled?n.isFullscreen&&n.exit():l.warning("当前您的浏览器不支持全屏 ❌")}};export{r as useScreenFull};
2
- //# sourceMappingURL=index.mjs.map
1
+ import{ref as e}from"vue";import{ElMessage as l}from"element-plus";import n from"screenfull";var i=e(!1),r={isFullscreen:()=>i.value,init:()=>{n.isEnabled&&n.onchange(()=>{i.value=n.isFullscreen})},toggle:()=>{n.isEnabled?n.toggle():l.warning("当前您的浏览器不支持全屏 ❌")},full:()=>{n.isEnabled?n.isFullscreen||n.request():l.warning("当前您的浏览器不支持全屏 ❌")},exit:()=>{n.isEnabled?n.isFullscreen&&n.exit():l.warning("当前您的浏览器不支持全屏 ❌")}};export{r as useScreenFull};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../packages/hooks/use-screenFull/index.ts"],"sourcesContent":["import { ref } from \"vue\";\nimport { ElMessage } from \"element-plus\";\nimport screenfull from \"screenfull\";\n\nconst isFullscreen = ref(false);\n\nexport const useScreenFull = {\n\tisFullscreen: (): boolean => isFullscreen.value,\n\tinit: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\treturn;\n\t\t}\n\t\tscreenfull.onchange(() => {\n\t\t\tisFullscreen.value = screenfull.isFullscreen;\n\t\t});\n\t},\n\ttoggle: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tscreenfull.toggle();\n\t},\n\tfull: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tif (screenfull.isFullscreen) {\n\t\t\treturn;\n\t\t}\n\t\t// const htmlEl = document.querySelector(\"html\");\n\t\t// screenfull.request(htmlEl);\n\t\tscreenfull.request();\n\t},\n\texit: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tif (screenfull.isFullscreen) {\n\t\t\tscreenfull.exit();\n\t\t}\n\t},\n};\n"],"names":["isFullscreen","ref","useScreenFull","value","init","screenfull","isEnabled","onchange","toggle","ElMessage","warning","full","request","exit"],"mappings":"6FAIA,MAAMA,EAAeC,GAAI,GAEZC,EAAgB,CAC5BF,aAAc,IAAeA,EAAaG,MAC1CC,KAAM,KACAC,EAAWC,WAGhBD,EAAWE,SAAS,KACnBP,EAAaG,MAAQE,EAAWL,gBAGlCQ,OAAQ,KACFH,EAAWC,UAIhBD,EAAWG,SAHVC,EAAUC,QAAQ,mBAKpBC,KAAM,KACAN,EAAWC,UAIZD,EAAWL,cAKfK,EAAWO,UARVH,EAAUC,QAAQ,mBAUpBG,KAAM,KACAR,EAAWC,UAIZD,EAAWL,cACdK,EAAWQ,OAJXJ,EAAUC,QAAQ"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/hooks/use-screenFull/index.ts"],"sourcesContent":["import { ref } from \"vue\";\nimport { ElMessage } from \"element-plus\";\nimport screenfull from \"screenfull\";\n\nconst isFullscreen = ref(false);\n\nexport const useScreenFull = {\n\tisFullscreen: (): boolean => isFullscreen.value,\n\tinit: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\treturn;\n\t\t}\n\t\tscreenfull.onchange(() => {\n\t\t\tisFullscreen.value = screenfull.isFullscreen;\n\t\t});\n\t},\n\ttoggle: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tscreenfull.toggle();\n\t},\n\tfull: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tif (screenfull.isFullscreen) {\n\t\t\treturn;\n\t\t}\n\t\t// const htmlEl = document.querySelector(\"html\");\n\t\t// screenfull.request(htmlEl);\n\t\tscreenfull.request();\n\t},\n\texit: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tif (screenfull.isFullscreen) {\n\t\t\tscreenfull.exit();\n\t\t}\n\t},\n};\n"],"mappings":"6FAIA,IAAM,EAAe,GAAI,GAEZ,EAAgB,CAC5B,aAAA,IAA6B,EAAa,MAC1C,KAAA,KACM,EAAW,WAGhB,EAAW,SAAA,KACV,EAAa,MAAQ,EAAW,gBAGlC,OAAA,KACM,EAAW,UAIhB,EAAW,SAHV,EAAU,QAAQ,mBAKpB,KAAA,KACM,EAAW,UAIZ,EAAW,cAKf,EAAW,UARV,EAAU,QAAQ,mBAUpB,KAAA,KACM,EAAW,UAIZ,EAAW,cACd,EAAW,OAJX,EAAU,QAAQ"}
package/es/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{makeInstaller as o}from"./make-installer.mjs";import{INSTALLED_KEY as m}from"./make-installer.mjs";import*as e from"./components/index.mjs";import"./constants/index.mjs";import"./directives/index.mjs";import"./hooks/index.mjs";import{Decimal as r}from"decimal.js";import{FaAvatar as t}from"./components/avatar/index.mjs";import{FaButton as s}from"./components/button/index.mjs";import{faButtonEmits as n,faButtonProps as i}from"./components/button/src/button.mjs";import{CarNumberArea as p,CarNumberDigit as c,CarNumberLetter as f}from"./components/carNumber/src/common.mjs";import{FaCarNumber as l}from"./components/carNumber/index.mjs";import{FaContextMenu as a}from"./components/contextMenu/index.mjs";import{FaDialog as j}from"./components/dialog/index.mjs";import{faDialogEmits as d,faDialogProps as x}from"./components/dialog/src/dialog.mjs";import{FaDrawer as u}from"./components/drawer/index.mjs";import{formUtil as g}from"./components/form/utils/form.mjs";import{FaForm as b,FaFormItem as k}from"./components/form/index.mjs";import{faFormProps as v}from"./components/form/src/form.mjs";import{faFormItemProps as I}from"./components/form/src/formItem.mjs";import{FaFormItemTip as P}from"./components/formItemTip/index.mjs";import{faFormItemTipProps as y}from"./components/formItemTip/src/formItemTip.mjs";import{FaIcon as h}from"./components/icon/index.mjs";import{FaIconSelector as S}from"./components/iconSelector/index.mjs";import{FaImage as D}from"./components/image/index.mjs";import{faImageProps as T}from"./components/image/src/image.mjs";import{FaInputDialogPage as V}from"./components/inputDialogPage/index.mjs";import{faInputDialogPageEmits as F,faInputDialogPageProps as N}from"./components/inputDialogPage/src/inputDialogPage.mjs";import{FaLayoutGrid as w,FaLayoutGridItem as C}from"./components/layoutGrid/index.mjs";import{FaSelect as E,FaSelectOption as G}from"./components/select/index.mjs";import{SelectProps as M,faSelectProps as q}from"./components/select/src/select.mjs";import{FaSelectPage as z}from"./components/selectPage/index.mjs";import{faSelectPageEmits as A,faSelectPageProps as B}from"./components/selectPage/src/selectPage.mjs";import{FaSelectV2 as H}from"./components/selectV2/index.mjs";import{SelectV2Props as J,faSelectV2Props as K}from"./components/selectV2/src/selectV2.mjs";import{PagedSearchTypeEnum as L}from"./components/table/src/page.type.mjs";import{getTableDefaultSlots as O}from"./components/table/src/table.type.mjs";import{tableUtil as Q}from"./components/table/utils/table.mjs";import{FaTable as R,FaTableColumn as U}from"./components/table/index.mjs";import{faTableEmits as W,faTableProps as X,tableProps as Y}from"./components/table/src/table.mjs";import{tableColumnProps as Z}from"./components/table/src/tableColumn.mjs";import{FaTree as $}from"./components/tree/index.mjs";import{faTreeEmits as _,faTreeProps as oo}from"./components/tree/src/tree.mjs";import{FaTreeSelect as mo}from"./components/treeSelect/index.mjs";import{faTreeSelectEmits as eo,faTreeSelectProps as ro}from"./components/treeSelect/src/treeSelect.mjs";import{FaUpload as to}from"./components/upload/index.mjs";import{faUploadEmits as so,faUploadProps as no}from"./components/upload/src/upload.mjs";import{FaUploadImage as io}from"./components/uploadImage/index.mjs";import{faUploadImageEmits as po,faUploadImageProps as co}from"./components/uploadImage/src/uploadImage.mjs";import{FaUploadImages as fo}from"./components/uploadImages/index.mjs";import{FaMimeType as lo}from"./constants/mime.mjs";import{RegExps as ao}from"./constants/regex.mjs";import{vCopy as jo}from"./directives/click-copy/index.mjs";import{vDebounce as xo}from"./directives/click-debounce/index.mjs";import{vDraggable as uo}from"./directives/click-draggable/index.mjs";import{vIconCopy as go}from"./directives/click-icon-copy/index.mjs";import{vLongpress as bo}from"./directives/click-longpress/index.mjs";import{vThrottle as ko}from"./directives/click-throttle/index.mjs";import{useLoading as vo}from"./hooks/use-loading/index.mjs";import{useOverlay as Io}from"./hooks/use-overlay/index.mjs";import{useScreenFull as Po}from"./hooks/use-screenFull/index.mjs";const yo=o(),ho=yo.install,So=yo.version;export{p as CarNumberArea,c as CarNumberDigit,f as CarNumberLetter,r as Decimal,t as FaAvatar,s as FaButton,l as FaCarNumber,a as FaContextMenu,j as FaDialog,u as FaDrawer,b as FaForm,k as FaFormItem,P as FaFormItemTip,h as FaIcon,S as FaIconSelector,D as FaImage,V as FaInputDialogPage,w as FaLayoutGrid,C as FaLayoutGridItem,lo as FaMimeType,E as FaSelect,G as FaSelectOption,z as FaSelectPage,H as FaSelectV2,R as FaTable,U as FaTableColumn,$ as FaTree,mo as FaTreeSelect,to as FaUpload,io as FaUploadImage,fo as FaUploadImages,e as FastElementPlus,m as INSTALLED_KEY,L as PagedSearchTypeEnum,ao as RegExps,M as SelectProps,J as SelectV2Props,yo as default,n as faButtonEmits,i as faButtonProps,d as faDialogEmits,x as faDialogProps,I as faFormItemProps,y as faFormItemTipProps,v as faFormProps,T as faImageProps,F as faInputDialogPageEmits,N as faInputDialogPageProps,A as faSelectPageEmits,B as faSelectPageProps,q as faSelectProps,K as faSelectV2Props,W as faTableEmits,X as faTableProps,_ as faTreeEmits,oo as faTreeProps,eo as faTreeSelectEmits,ro as faTreeSelectProps,so as faUploadEmits,po as faUploadImageEmits,co as faUploadImageProps,no as faUploadProps,g as formUtil,O as getTableDefaultSlots,ho as install,Z as tableColumnProps,Y as tableProps,Q as tableUtil,vo as useLoading,Io as useOverlay,Po as useScreenFull,jo as vCopy,xo as vDebounce,uo as vDraggable,go as vIconCopy,bo as vLongpress,ko as vThrottle,So as version};
2
- //# sourceMappingURL=index.mjs.map
1
+ import o from"./components/avatar/index.mjs";import{useLoading as m}from"./hooks/use-loading/index.mjs";import{useOverlay as e}from"./hooks/use-overlay/index.mjs";import{useScreenFull as r}from"./hooks/use-screenFull/index.mjs";import"./hooks/index.mjs";import{faButtonEmits as t,faButtonProps as s}from"./components/button/src/button.mjs";import n from"./components/button/index.mjs";import{FaMimeType as i}from"./constants/mime.mjs";import{RegExps as p}from"./constants/regex.mjs";import"./constants/index.mjs";import{CarNumberArea as c,CarNumberDigit as f,CarNumberLetter as l}from"./components/carNumber/src/common.mjs";import a from"./components/carNumber/index.mjs";import j from"./components/icon/index.mjs";import d from"./components/contextMenu/index.mjs";import{faDialogEmits as x,faDialogProps as u}from"./components/dialog/src/dialog.mjs";import g from"./components/dialog/index.mjs";import b from"./components/drawer/index.mjs";import k,{FaLayoutGridItem as v}from"./components/layoutGrid/index.mjs";import{formUtil as I}from"./components/form/utils/form.mjs";import{faFormProps as P}from"./components/form/src/form.mjs";import{faFormItemTipProps as y}from"./components/formItemTip/src/formItemTip.mjs";import h from"./components/formItemTip/index.mjs";import{faFormItemProps as S}from"./components/form/src/formItem.mjs";import D,{FaFormItem as T}from"./components/form/index.mjs";import V from"./components/iconSelector/index.mjs";import{faImageProps as F}from"./components/image/src/image.mjs";import N from"./components/image/index.mjs";import{getTableDefaultSlots as w}from"./components/table/src/table.type.mjs";import{tableUtil as C}from"./components/table/utils/table.mjs";import{tableColumnProps as E}from"./components/table/src/tableColumn.mjs";import{faTableEmits as G,faTableProps as M,tableProps as q}from"./components/table/src/table.mjs";import{PagedSearchTypeEnum as z}from"./components/table/src/page.type.mjs";import A,{FaTableColumn as B}from"./components/table/index.mjs";import{faInputDialogPageEmits as H,faInputDialogPageProps as J}from"./components/inputDialogPage/src/inputDialogPage.mjs";import K from"./components/inputDialogPage/index.mjs";import{SelectProps as L,faSelectProps as O}from"./components/select/src/select.mjs";import Q,{FaSelectOption as R}from"./components/select/index.mjs";import{faSelectPageEmits as U,faSelectPageProps as W}from"./components/selectPage/src/selectPage.mjs";import X from"./components/selectPage/index.mjs";import{SelectV2Props as Y,faSelectV2Props as Z}from"./components/selectV2/src/selectV2.mjs";import $ from"./components/selectV2/index.mjs";import{faTreeEmits as _,faTreeProps as oo}from"./components/tree/src/tree.mjs";import mo from"./components/tree/index.mjs";import{faTreeSelectEmits as eo,faTreeSelectProps as ro}from"./components/treeSelect/src/treeSelect.mjs";import to from"./components/treeSelect/index.mjs";import{faUploadEmits as so,faUploadProps as no}from"./components/upload/src/upload.mjs";import io from"./components/upload/index.mjs";import{faUploadImageEmits as po,faUploadImageProps as co}from"./components/uploadImage/src/uploadImage.mjs";import fo from"./components/uploadImage/index.mjs";import lo from"./components/uploadImages/index.mjs";import ao from"./directives/click-copy/index.mjs";import jo from"./directives/click-debounce/index.mjs";import xo from"./directives/click-draggable/index.mjs";import uo from"./directives/click-icon-copy/index.mjs";import go from"./directives/click-longpress/index.mjs";import bo from"./directives/click-throttle/index.mjs";import{INSTALLED_KEY as ko,makeInstaller as vo}from"./make-installer.mjs";import{components_exports as Io}from"./components/index.mjs";import"./directives/index.mjs";import{Decimal as Po}from"decimal.js";var yo=vo(),ho=yo.install,So=yo.version;export{c as CarNumberArea,f as CarNumberDigit,l as CarNumberLetter,Po as Decimal,o as FaAvatar,n as FaButton,a as FaCarNumber,d as FaContextMenu,g as FaDialog,b as FaDrawer,D as FaForm,T as FaFormItem,h as FaFormItemTip,j as FaIcon,V as FaIconSelector,N as FaImage,K as FaInputDialogPage,k as FaLayoutGrid,v as FaLayoutGridItem,i as FaMimeType,Q as FaSelect,R as FaSelectOption,X as FaSelectPage,$ as FaSelectV2,A as FaTable,B as FaTableColumn,mo as FaTree,to as FaTreeSelect,io as FaUpload,fo as FaUploadImage,lo as FaUploadImages,Io as FastElementPlus,ko as INSTALLED_KEY,z as PagedSearchTypeEnum,p as RegExps,L as SelectProps,Y as SelectV2Props,yo as default,t as faButtonEmits,s as faButtonProps,x as faDialogEmits,u as faDialogProps,S as faFormItemProps,y as faFormItemTipProps,P as faFormProps,F as faImageProps,H as faInputDialogPageEmits,J as faInputDialogPageProps,U as faSelectPageEmits,W as faSelectPageProps,O as faSelectProps,Z as faSelectV2Props,G as faTableEmits,M as faTableProps,_ as faTreeEmits,oo as faTreeProps,eo as faTreeSelectEmits,ro as faTreeSelectProps,so as faUploadEmits,po as faUploadImageEmits,co as faUploadImageProps,no as faUploadProps,I as formUtil,w as getTableDefaultSlots,ho as install,E as tableColumnProps,q as tableProps,C as tableUtil,m as useLoading,e as useOverlay,r as useScreenFull,ao as vCopy,jo as vDebounce,xo as vDraggable,uo as vIconCopy,go as vLongpress,bo as vThrottle,So as version};
2
+ //# sourceMappingURL=index.mjs.map
package/es/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../packages/index.ts"],"sourcesContent":["import { makeInstaller } from \"./make-installer\";\n\nexport { INSTALLED_KEY } from \"./make-installer\";\nexport * as FastElementPlus from \"@fast-element-plus/components\";\n\nexport * from \"@fast-element-plus/components\";\nexport * from \"@fast-element-plus/constants\";\nexport * from \"@fast-element-plus/directives\";\nexport * from \"@fast-element-plus/hooks\";\n\nexport { Decimal } from \"decimal.js\";\n\nconst installer = makeInstaller();\n\nexport const install = installer.install;\nexport const version = installer.version;\nexport default installer;\n"],"names":["installer","makeInstaller","install","version"],"mappings":"skIAYA,MAAMA,GAAYC,IAELC,GAAUF,GAAUE,QACpBC,GAAUH,GAAUG"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../packages/index.ts"],"sourcesContent":["import { makeInstaller } from \"./make-installer\";\n\nexport { INSTALLED_KEY } from \"./make-installer\";\nexport * as FastElementPlus from \"@fast-element-plus/components\";\n\nexport * from \"@fast-element-plus/components\";\nexport * from \"@fast-element-plus/constants\";\nexport * from \"@fast-element-plus/directives\";\nexport * from \"@fast-element-plus/hooks\";\n\nexport { Decimal } from \"decimal.js\";\n\nconst installer = makeInstaller();\n\nexport const install = installer.install;\nexport const version = installer.version;\nexport default installer;\n"],"mappings":"0rHAYA,IAAM,GAAY,KAEL,GAAU,GAAU,QACpB,GAAU,GAAU"}
@@ -1,2 +1,2 @@
1
- import*as o from"@fast-element-plus/icons-vue";import e from"./component.mjs";import m from"./directive.mjs";import{installElementPlus as r}from"./element-plus.mjs";import{version as s}from"./version.mjs";const t=/* @__PURE__ */Symbol("INSTALLED_KEY"),i=()=>({version:s,install:s=>{if(!s[t]){s[t]=!0,r(s);for(const[e,m]of Object.entries(o))s.component(`fa-icon-${e}`,m);e.forEach(o=>s.use(o)),m.forEach(o=>s.use(o))}}});export{t as INSTALLED_KEY,i as makeInstaller};
2
- //# sourceMappingURL=make-installer.mjs.map
1
+ import o from"./component.mjs";import e from"./directive.mjs";import{installElementPlus as m}from"./element-plus.mjs";import{version as r}from"./version.mjs";import*as s from"@fast-element-plus/icons-vue";var t=Symbol("INSTALLED_KEY"),i=()=>({version:r,install:r=>{if(!r[t]){r[t]=!0,m(r);for(const[o,e]of Object.entries(s))r.component(`fa-icon-${o}`,e);o.forEach(o=>r.use(o)),e.forEach(o=>r.use(o))}}});export{t as INSTALLED_KEY,i as makeInstaller};
2
+ //# sourceMappingURL=make-installer.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"make-installer.mjs","sources":["../../packages/make-installer.ts"],"sourcesContent":["import * as FastElementPlusIconsVue from \"@fast-element-plus/icons-vue\";\nimport FastElementPlusComponents from \"./component\";\nimport FastElementPlusDirectives from \"./directive\";\nimport { installElementPlus } from \"./element-plus\";\nimport { version } from \"./version\";\nimport type { App } from \"vue\";\n\nexport const INSTALLED_KEY = Symbol(\"INSTALLED_KEY\");\n\nexport const makeInstaller = (): {\n\tversion: string;\n\tinstall: (app: App) => void;\n} => {\n\tconst install = (app: App): void => {\n\t\tif (app[INSTALLED_KEY]) return;\n\n\t\tapp[INSTALLED_KEY] = true;\n\n\t\tinstallElementPlus(app);\n\n\t\t/** 注册所有 Fast Element Plus Icon */\n\t\tfor (const [key, component] of Object.entries(FastElementPlusIconsVue)) {\n\t\t\t// 这里是给 FaIcon 使用的\n\t\t\tapp.component(`fa-icon-${key}`, component);\n\t\t}\n\n\t\tFastElementPlusComponents.forEach((c) => app.use(c));\n\n\t\tFastElementPlusDirectives.forEach((d) => app.use(d));\n\t};\n\n\treturn {\n\t\tversion,\n\t\tinstall,\n\t};\n};\n"],"names":["INSTALLED_KEY","makeInstaller","version","install","app","installElementPlus","key","component","Object","entries","FastElementPlusIconsVue","FastElementPlusComponents","forEach","c","use","FastElementPlusDirectives","d"],"mappings":"6MAOO,MAAMA,wBAAuB,iBAEvBC,EAAgB,KAsBrB,CACNC,UACAC,QApBgBC,IAChB,IAAIA,EAAIJ,GAAR,CAEAI,EAAIJ,IAAiB,EAErBK,EAAmBD,GAGnB,IAAA,MAAYE,EAAKC,KAAcC,OAAOC,QAAQC,GAE7CN,EAAIG,UAAU,WAAWD,IAAOC,GAGjCI,EAA0BC,QAASC,GAAMT,EAAIU,IAAID,IAEjDE,EAA0BH,QAASI,GAAMZ,EAAIU,IAAIE,GAdzB"}
1
+ {"version":3,"file":"make-installer.mjs","names":[],"sources":["../../packages/make-installer.ts"],"sourcesContent":["import * as FastElementPlusIconsVue from \"@fast-element-plus/icons-vue\";\nimport FastElementPlusComponents from \"./component\";\nimport FastElementPlusDirectives from \"./directive\";\nimport { installElementPlus } from \"./element-plus\";\nimport { version } from \"./version\";\nimport type { App } from \"vue\";\n\nexport const INSTALLED_KEY = Symbol(\"INSTALLED_KEY\");\n\nexport const makeInstaller = (): {\n\tversion: string;\n\tinstall: (app: App) => void;\n} => {\n\tconst install = (app: App): void => {\n\t\tif (app[INSTALLED_KEY]) return;\n\n\t\tapp[INSTALLED_KEY] = true;\n\n\t\tinstallElementPlus(app);\n\n\t\t/** 注册所有 Fast Element Plus Icon */\n\t\tfor (const [key, component] of Object.entries(FastElementPlusIconsVue)) {\n\t\t\t// 这里是给 FaIcon 使用的\n\t\t\tapp.component(`fa-icon-${key}`, component);\n\t\t}\n\n\t\tFastElementPlusComponents.forEach((c) => app.use(c));\n\n\t\tFastElementPlusDirectives.forEach((d) => app.use(d));\n\t};\n\n\treturn {\n\t\tversion,\n\t\tinstall,\n\t};\n};\n"],"mappings":"6MAOA,IAAa,EAAgB,OAAO,iBAEvB,EAAA,KAsBL,CACN,UACA,QApBgB,IAChB,IAAI,EAAI,GAAR,CAEA,EAAI,IAAiB,EAErB,EAAmB,GAGnB,IAAK,MAAO,EAAK,KAAc,OAAO,QAAQ,GAE7C,EAAI,UAAU,WAAW,IAAO,GAGjC,EAA0B,QAAS,GAAM,EAAI,IAAI,IAEjD,EAA0B,QAAS,GAAM,EAAI,IAAI,GAdzB"}
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.0.19";
1
+ export declare const version = "1.0.21";
package/es/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- const o="1.0.19";export{o as version};
2
- //# sourceMappingURL=version.mjs.map
1
+ var r="1.0.21";export{r as version};
2
+ //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../packages/version.ts"],"sourcesContent":["export const version = \"1.0.19\";\n"],"names":["version"],"mappings":"AAAO,MAAMA,EAAU"}
1
+ {"version":3,"file":"version.mjs","names":[],"sources":["../../packages/version.ts"],"sourcesContent":["export const version = \"1.0.21\";\n"],"mappings":"AAAA,IAAa,EAAU"}
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty;exports.__exportAll=(e,r)=>{let o={};for(var l in e)t(o,l,{get:e[l],enumerable:!0});return r||t(o,Symbol.toStringTag,{value:"Module"}),o},exports.__toESM=(a,u,b)=>(b=null!=a?e(l(a)):{},((e,l,a,u)=>{if(l&&"object"==typeof l||"function"==typeof l)for(var b,p=o(l),c=0,O=p.length;c<O;c++)b=p[c],n.call(e,b)||b===a||t(e,b,{get:(e=>l[e]).bind(null,b),enumerable:!(u=r(l,b))||u.enumerable});return e})(!u&&a&&a.__esModule?b:t(b,"default",{value:a,enumerable:!0}),a));
package/lib/component.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/avatar/index.js"),n=require("./components/button/index.js"),o=require("./components/carNumber/index.js"),r=require("./components/contextMenu/index.js"),t=require("./components/dialog/index.js"),a=require("./components/drawer/index.js"),i=require("./components/form/index.js"),s=require("./components/formItemTip/index.js"),u=require("./components/icon/index.js"),c=require("./components/iconSelector/index.js"),m=require("./components/image/index.js"),d=require("./components/inputDialogPage/index.js"),p=require("./components/layoutGrid/index.js"),l=require("./components/select/index.js"),F=require("./components/selectPage/index.js"),x=require("./components/selectV2/index.js"),j=require("./components/table/index.js"),q=require("./components/tree/index.js"),g=require("./components/treeSelect/index.js"),I=require("./components/upload/index.js"),S=require("./components/uploadImage/index.js"),b=require("./components/uploadImages/index.js"),T=[e.FaAvatar,n.FaButton,o.FaCarNumber,r.FaContextMenu,t.FaDialog,a.FaDrawer,i.FaForm,i.FaFormItem,s.FaFormItemTip,u.FaIcon,c.FaIconSelector,m.FaImage,d.FaInputDialogPage,p.FaLayoutGrid,p.FaLayoutGridItem,l.FaSelect,l.FaSelectOption,F.FaSelectPage,x.FaSelectV2,j.FaTable,j.FaTableColumn,q.FaTree,g.FaTreeSelect,I.FaUpload,S.FaUploadImage,b.FaUploadImages];exports.default=T;
2
- //# sourceMappingURL=component.js.map
1
+ const e=require("./components/avatar/index.js"),n=require("./components/button/index.js"),t=require("./components/carNumber/index.js"),o=require("./components/icon/index.js"),r=require("./components/contextMenu/index.js"),u=require("./components/dialog/index.js"),i=require("./components/drawer/index.js"),d=require("./components/layoutGrid/index.js"),s=require("./components/formItemTip/index.js"),a=require("./components/form/index.js"),l=require("./components/iconSelector/index.js"),c=require("./components/image/index.js"),m=require("./components/table/index.js"),p=require("./components/inputDialogPage/index.js"),f=require("./components/select/index.js"),x=require("./components/selectPage/index.js"),j=require("./components/selectV2/index.js"),q=require("./components/tree/index.js"),g=require("./components/treeSelect/index.js"),F=require("./components/upload/index.js"),I=require("./components/uploadImage/index.js"),b=require("./components/uploadImages/index.js");var S=[e.default,n.default,t.default,r.default,u.default,i.default,a.default,a.FaFormItem,s.default,o.default,l.default,c.default,p.default,d.default,d.FaLayoutGridItem,f.default,f.FaSelectOption,x.default,j.default,m.default,m.FaTableColumn,q.default,g.default,F.default,I.default,b.default];exports.default=S;
2
+ //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../packages/component.ts"],"sourcesContent":["import { FaAvatar } from \"@fast-element-plus/components/avatar\";\nimport { FaButton } from \"@fast-element-plus/components/button\";\nimport { FaCarNumber } from \"@fast-element-plus/components/carNumber\";\nimport { FaContextMenu } from \"@fast-element-plus/components/contextMenu\";\nimport { FaDialog } from \"@fast-element-plus/components/dialog\";\nimport { FaDrawer } from \"@fast-element-plus/components/drawer\";\nimport { FaForm, FaFormItem } from \"@fast-element-plus/components/form\";\nimport { FaFormItemTip } from \"@fast-element-plus/components/formItemTip\";\nimport { FaIcon } from \"@fast-element-plus/components/icon\";\nimport { FaIconSelector } from \"@fast-element-plus/components/iconSelector\";\nimport { FaImage } from \"@fast-element-plus/components/image\";\nimport { FaInputDialogPage } from \"@fast-element-plus/components/inputDialogPage\";\nimport { FaLayoutGrid, FaLayoutGridItem } from \"@fast-element-plus/components/layoutGrid\";\nimport { FaSelect, FaSelectOption } from \"@fast-element-plus/components/select\";\nimport { FaSelectPage } from \"@fast-element-plus/components/selectPage\";\nimport { FaSelectV2 } from \"@fast-element-plus/components/selectV2\";\nimport { FaTable, FaTableColumn } from \"@fast-element-plus/components/table\";\nimport { FaTree } from \"@fast-element-plus/components/tree\";\nimport { FaTreeSelect } from \"@fast-element-plus/components/treeSelect\";\nimport { FaUpload } from \"@fast-element-plus/components/upload\";\nimport { FaUploadImage } from \"@fast-element-plus/components/uploadImage\";\nimport { FaUploadImages } from \"@fast-element-plus/components/uploadImages\";\nimport type { Plugin } from \"vue\";\n\nexport default [\n\tFaAvatar,\n\tFaButton,\n\tFaCarNumber,\n\tFaContextMenu,\n\tFaDialog,\n\tFaDrawer,\n\tFaForm,\n\tFaFormItem,\n\tFaFormItemTip,\n\tFaIcon,\n\tFaIconSelector,\n\tFaImage,\n\tFaInputDialogPage,\n\tFaLayoutGrid,\n\tFaLayoutGridItem,\n\tFaSelect,\n\tFaSelectOption,\n\tFaSelectPage,\n\tFaSelectV2,\n\tFaTable,\n\tFaTableColumn,\n\tFaTree,\n\tFaTreeSelect,\n\tFaUpload,\n\tFaUploadImage,\n\tFaUploadImages,\n] as Plugin[];\n"],"names":["FastElementPlusComponents","FaAvatar","FaButton","FaCarNumber","FaContextMenu","FaDialog","FaDrawer","FaForm","FaFormItem","FaFormItemTip","FaIcon","FaIconSelector","FaImage","FaInputDialogPage","FaLayoutGrid","FaLayoutGridItem","FaSelect","FaSelectOption","FaSelectPage","FaSelectV2","FaTable","FaTableColumn","FaTree","FaTreeSelect","FaUpload","FaUploadImage","FaUploadImages"],"mappings":"2jCAwBAA,EAAe,CACdC,EAAAA,SACAC,EAAAA,SACAC,EAAAA,YACAC,EAAAA,cACAC,EAAAA,SACAC,EAAAA,SACAC,EAAAA,OACAC,EAAAA,WACAC,EAAAA,cACAC,EAAAA,OACAC,EAAAA,eACAC,EAAAA,QACAC,EAAAA,kBACAC,EAAAA,aACAC,EAAAA,iBACAC,EAAAA,SACAC,EAAAA,eACAC,EAAAA,aACAC,EAAAA,WACAC,EAAAA,QACAC,EAAAA,cACAC,EAAAA,OACAC,EAAAA,aACAC,EAAAA,SACAC,EAAAA,cACAC,EAAAA"}
1
+ {"version":3,"file":"component.js","names":[],"sources":["../../packages/component.ts"],"sourcesContent":["import { FaAvatar } from \"@fast-element-plus/components/avatar\";\nimport { FaButton } from \"@fast-element-plus/components/button\";\nimport { FaCarNumber } from \"@fast-element-plus/components/carNumber\";\nimport { FaContextMenu } from \"@fast-element-plus/components/contextMenu\";\nimport { FaDialog } from \"@fast-element-plus/components/dialog\";\nimport { FaDrawer } from \"@fast-element-plus/components/drawer\";\nimport { FaForm, FaFormItem } from \"@fast-element-plus/components/form\";\nimport { FaFormItemTip } from \"@fast-element-plus/components/formItemTip\";\nimport { FaIcon } from \"@fast-element-plus/components/icon\";\nimport { FaIconSelector } from \"@fast-element-plus/components/iconSelector\";\nimport { FaImage } from \"@fast-element-plus/components/image\";\nimport { FaInputDialogPage } from \"@fast-element-plus/components/inputDialogPage\";\nimport { FaLayoutGrid, FaLayoutGridItem } from \"@fast-element-plus/components/layoutGrid\";\nimport { FaSelect, FaSelectOption } from \"@fast-element-plus/components/select\";\nimport { FaSelectPage } from \"@fast-element-plus/components/selectPage\";\nimport { FaSelectV2 } from \"@fast-element-plus/components/selectV2\";\nimport { FaTable, FaTableColumn } from \"@fast-element-plus/components/table\";\nimport { FaTree } from \"@fast-element-plus/components/tree\";\nimport { FaTreeSelect } from \"@fast-element-plus/components/treeSelect\";\nimport { FaUpload } from \"@fast-element-plus/components/upload\";\nimport { FaUploadImage } from \"@fast-element-plus/components/uploadImage\";\nimport { FaUploadImages } from \"@fast-element-plus/components/uploadImages\";\nimport type { Plugin } from \"vue\";\n\nexport default [\n\tFaAvatar,\n\tFaButton,\n\tFaCarNumber,\n\tFaContextMenu,\n\tFaDialog,\n\tFaDrawer,\n\tFaForm,\n\tFaFormItem,\n\tFaFormItemTip,\n\tFaIcon,\n\tFaIconSelector,\n\tFaImage,\n\tFaInputDialogPage,\n\tFaLayoutGrid,\n\tFaLayoutGridItem,\n\tFaSelect,\n\tFaSelectOption,\n\tFaSelectPage,\n\tFaSelectV2,\n\tFaTable,\n\tFaTableColumn,\n\tFaTree,\n\tFaTreeSelect,\n\tFaUpload,\n\tFaUploadImage,\n\tFaUploadImages,\n] as Plugin[];\n"],"mappings":"+8BAwBA,IAAA,EAAe,CACd,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,WACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,iBACA,EAAA,QACA,EAAA,eACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,cACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA,QACA,EAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@fast-china/utils"),t=require("./src/avatar.js"),a=e.withInstall(t.default);exports.FaAvatar=a,exports.default=a;
2
- //# sourceMappingURL=index.js.map
1
+ require("../../_virtual/_rolldown/runtime.js");const r=require("./src/avatar.js");var t=(0,require("@fast-china/utils").withInstall)(r.default);exports.default=t;
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../packages/components/avatar/index.ts"],"sourcesContent":["import { withInstall } from \"@fast-china/utils\";\nimport Avatar from \"./src/avatar\";\nimport type { faAvatarEmits, faAvatarProps } from \"./src/avatar\";\nimport type { ExtractPropTypes } from \"vue\";\n\nexport const FaAvatar = withInstall(Avatar);\nexport default FaAvatar;\n\nexport { faAvatarProps as faAvatarProps, faAvatarEmits as faAvatarEmits };\n\nexport type FaAvatarInstance = InstanceType<typeof Avatar>;\n\nexport type FaAvatarProps = ExtractPropTypes<typeof faAvatarProps>;\n\nexport type FaAvatarEmits = typeof faAvatarEmits;\n"],"names":["FaAvatar","withInstall","Avatar"],"mappings":"8KAKaA,EAAWC,EAAAA,YAAYC,EAAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../packages/components/avatar/index.ts"],"sourcesContent":["import { withInstall } from \"@fast-china/utils\";\nimport Avatar from \"./src/avatar\";\nimport type { faAvatarEmits, faAvatarProps } from \"./src/avatar\";\nimport type { ExtractPropTypes } from \"vue\";\n\nexport const FaAvatar = withInstall(Avatar);\nexport default FaAvatar;\n\nexport { faAvatarProps as faAvatarProps, faAvatarEmits as faAvatarEmits };\n\nexport type FaAvatarInstance = InstanceType<typeof Avatar>;\n\nexport type FaAvatarProps = ExtractPropTypes<typeof faAvatarProps>;\n\nexport type FaAvatarEmits = typeof faAvatarEmits;\n"],"mappings":"kFAKA,IAAa,GAAA,+BAAA,aAAuB,EAAA"}