@wlydfe/pro-ui 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (679) hide show
  1. package/README.md +79 -0
  2. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  3. package/es/component.d.ts +3 -0
  4. package/es/component.mjs +49 -0
  5. package/es/components/breadcrumb/index.d.ts +14102 -0
  6. package/es/components/breadcrumb/index.mjs +5 -0
  7. package/es/components/breadcrumb/src/index.vue.d.ts +14110 -0
  8. package/es/components/breadcrumb/src/index.vue.mjs +6 -0
  9. package/es/components/breadcrumb/src/index.vue2.mjs +101 -0
  10. package/es/components/breadcrumb/style/css.d.ts +3 -0
  11. package/es/components/breadcrumb/style/css.mjs +3 -0
  12. package/es/components/breadcrumb/style/index.d.ts +3 -0
  13. package/es/components/breadcrumb/style/index.mjs +3 -0
  14. package/es/components/check-card/index.d.ts +272 -0
  15. package/es/components/check-card/index.mjs +5 -0
  16. package/es/components/check-card/src/index.vue.d.ts +293 -0
  17. package/es/components/check-card/src/index.vue.mjs +6 -0
  18. package/es/components/check-card/src/index.vue2.mjs +166 -0
  19. package/es/components/check-card/style/css.d.ts +2 -0
  20. package/es/components/check-card/style/css.mjs +2 -0
  21. package/es/components/check-card/style/index.d.ts +2 -0
  22. package/es/components/check-card/style/index.mjs +2 -0
  23. package/es/components/check-card-group/index.d.ts +344 -0
  24. package/es/components/check-card-group/index.mjs +5 -0
  25. package/es/components/check-card-group/src/index.vue.d.ts +369 -0
  26. package/es/components/check-card-group/src/index.vue.mjs +6 -0
  27. package/es/components/check-card-group/src/index.vue2.mjs +142 -0
  28. package/es/components/check-card-group/style/css.d.ts +2 -0
  29. package/es/components/check-card-group/style/css.mjs +2 -0
  30. package/es/components/check-card-group/style/index.d.ts +2 -0
  31. package/es/components/check-card-group/style/index.mjs +2 -0
  32. package/es/components/date-picker/index.d.ts +2739 -0
  33. package/es/components/date-picker/index.mjs +5 -0
  34. package/es/components/date-picker/src/index.vue.d.ts +2757 -0
  35. package/es/components/date-picker/src/index.vue.mjs +6 -0
  36. package/es/components/date-picker/src/index.vue2.mjs +140 -0
  37. package/es/components/date-picker/style/css.d.ts +2 -0
  38. package/es/components/date-picker/style/css.mjs +2 -0
  39. package/es/components/date-picker/style/index.d.ts +2 -0
  40. package/es/components/date-picker/style/index.mjs +2 -0
  41. package/es/components/descriptions/index.d.ts +9802 -0
  42. package/es/components/descriptions/index.mjs +5 -0
  43. package/es/components/descriptions/src/index.vue.d.ts +9814 -0
  44. package/es/components/descriptions/src/index.vue.mjs +6 -0
  45. package/es/components/descriptions/src/index.vue2.mjs +133 -0
  46. package/es/components/descriptions/style/css.d.ts +3 -0
  47. package/es/components/descriptions/style/css.mjs +3 -0
  48. package/es/components/descriptions/style/index.d.ts +3 -0
  49. package/es/components/descriptions/style/index.mjs +3 -0
  50. package/es/components/dialog/index.d.ts +1056 -0
  51. package/es/components/dialog/index.mjs +5 -0
  52. package/es/components/dialog/src/index.vue.d.ts +1071 -0
  53. package/es/components/dialog/src/index.vue.mjs +6 -0
  54. package/es/components/dialog/src/index.vue2.mjs +120 -0
  55. package/es/components/dialog/style/css.d.ts +3 -0
  56. package/es/components/dialog/style/css.mjs +3 -0
  57. package/es/components/dialog/style/index.d.ts +3 -0
  58. package/es/components/dialog/style/index.mjs +3 -0
  59. package/es/components/dialog-form/index.d.ts +8990 -0
  60. package/es/components/dialog-form/index.mjs +5 -0
  61. package/es/components/dialog-form/src/index.vue.d.ts +9009 -0
  62. package/es/components/dialog-form/src/index.vue.mjs +6 -0
  63. package/es/components/dialog-form/src/index.vue2.mjs +170 -0
  64. package/es/components/dialog-form/style/css.d.ts +3 -0
  65. package/es/components/dialog-form/style/css.mjs +3 -0
  66. package/es/components/dialog-form/style/index.d.ts +3 -0
  67. package/es/components/dialog-form/style/index.mjs +3 -0
  68. package/es/components/display-item/index.d.ts +9114 -0
  69. package/es/components/display-item/index.mjs +5 -0
  70. package/es/components/display-item/src/index.vue.d.ts +9127 -0
  71. package/es/components/display-item/src/index.vue.mjs +6 -0
  72. package/es/components/display-item/src/index.vue2.mjs +524 -0
  73. package/es/components/display-item/style/css.d.ts +6 -0
  74. package/es/components/display-item/style/css.mjs +6 -0
  75. package/es/components/display-item/style/index.d.ts +6 -0
  76. package/es/components/display-item/style/index.mjs +6 -0
  77. package/es/components/drawer-form/index.d.ts +9643 -0
  78. package/es/components/drawer-form/index.mjs +5 -0
  79. package/es/components/drawer-form/src/index.vue.d.ts +9666 -0
  80. package/es/components/drawer-form/src/index.vue.mjs +6 -0
  81. package/es/components/drawer-form/src/index.vue2.mjs +169 -0
  82. package/es/components/drawer-form/style/css.d.ts +3 -0
  83. package/es/components/drawer-form/style/css.mjs +3 -0
  84. package/es/components/drawer-form/style/index.d.ts +3 -0
  85. package/es/components/drawer-form/style/index.mjs +3 -0
  86. package/es/components/form/index.d.ts +7860 -0
  87. package/es/components/form/index.mjs +5 -0
  88. package/es/components/form/src/form-content.vue.d.ts +6452 -0
  89. package/es/components/form/src/form-content.vue.mjs +6 -0
  90. package/es/components/form/src/form-content.vue2.mjs +138 -0
  91. package/es/components/form/src/index.vue.d.ts +7900 -0
  92. package/es/components/form/src/index.vue.mjs +6 -0
  93. package/es/components/form/src/index.vue2.mjs +320 -0
  94. package/es/components/form/style/css.d.ts +7 -0
  95. package/es/components/form/style/css.mjs +7 -0
  96. package/es/components/form/style/index.d.ts +7 -0
  97. package/es/components/form/style/index.mjs +7 -0
  98. package/es/components/form-item/index.d.ts +5951 -0
  99. package/es/components/form-item/index.mjs +5 -0
  100. package/es/components/form-item/src/index.vue.d.ts +5976 -0
  101. package/es/components/form-item/src/index.vue.mjs +6 -0
  102. package/es/components/form-item/src/index.vue2.mjs +951 -0
  103. package/es/components/form-item/style/css.d.ts +24 -0
  104. package/es/components/form-item/style/css.mjs +24 -0
  105. package/es/components/form-item/style/index.d.ts +24 -0
  106. package/es/components/form-item/style/index.mjs +24 -0
  107. package/es/components/header/index.d.ts +1142 -0
  108. package/es/components/header/index.mjs +5 -0
  109. package/es/components/header/src/index.vue.d.ts +1174 -0
  110. package/es/components/header/src/index.vue.mjs +6 -0
  111. package/es/components/header/src/index.vue2.mjs +210 -0
  112. package/es/components/header/style/css.d.ts +6 -0
  113. package/es/components/header/style/css.mjs +6 -0
  114. package/es/components/header/style/index.d.ts +6 -0
  115. package/es/components/header/style/index.mjs +6 -0
  116. package/es/components/index.d.ts +22 -0
  117. package/es/components/index.mjs +22 -0
  118. package/es/components/input-tag/index.d.ts +893 -0
  119. package/es/components/input-tag/index.mjs +5 -0
  120. package/es/components/input-tag/src/index.vue.d.ts +917 -0
  121. package/es/components/input-tag/src/index.vue.mjs +6 -0
  122. package/es/components/input-tag/src/index.vue2.mjs +136 -0
  123. package/es/components/input-tag/style/css.d.ts +3 -0
  124. package/es/components/input-tag/style/css.mjs +3 -0
  125. package/es/components/input-tag/style/index.d.ts +3 -0
  126. package/es/components/input-tag/style/index.mjs +3 -0
  127. package/es/components/layout/index.d.ts +10618 -0
  128. package/es/components/layout/index.mjs +5 -0
  129. package/es/components/layout/src/index.vue.d.ts +10643 -0
  130. package/es/components/layout/src/index.vue.mjs +6 -0
  131. package/es/components/layout/src/index.vue2.mjs +169 -0
  132. package/es/components/layout/style/css.d.ts +8 -0
  133. package/es/components/layout/style/css.mjs +8 -0
  134. package/es/components/layout/style/index.d.ts +8 -0
  135. package/es/components/layout/style/index.mjs +8 -0
  136. package/es/components/page/index.d.ts +219 -0
  137. package/es/components/page/index.mjs +5 -0
  138. package/es/components/page/src/index.vue.d.ts +291 -0
  139. package/es/components/page/src/index.vue.mjs +6 -0
  140. package/es/components/page/src/index.vue2.mjs +275 -0
  141. package/es/components/page/style/css.d.ts +4 -0
  142. package/es/components/page/style/css.mjs +4 -0
  143. package/es/components/page/style/index.d.ts +4 -0
  144. package/es/components/page/style/index.mjs +4 -0
  145. package/es/components/pagination/index.d.ts +446 -0
  146. package/es/components/pagination/index.mjs +5 -0
  147. package/es/components/pagination/src/index.vue.d.ts +458 -0
  148. package/es/components/pagination/src/index.vue.mjs +6 -0
  149. package/es/components/pagination/src/index.vue2.mjs +77 -0
  150. package/es/components/pagination/style/css.d.ts +2 -0
  151. package/es/components/pagination/style/css.mjs +2 -0
  152. package/es/components/pagination/style/index.d.ts +2 -0
  153. package/es/components/pagination/style/index.mjs +2 -0
  154. package/es/components/popover/index.d.ts +1125 -0
  155. package/es/components/popover/index.mjs +5 -0
  156. package/es/components/popover/src/index.vue.d.ts +1135 -0
  157. package/es/components/popover/src/index.vue.mjs +6 -0
  158. package/es/components/popover/src/index.vue2.mjs +97 -0
  159. package/es/components/popover/style/css.d.ts +3 -0
  160. package/es/components/popover/style/css.mjs +3 -0
  161. package/es/components/popover/style/index.d.ts +3 -0
  162. package/es/components/popover/style/index.mjs +3 -0
  163. package/es/components/radio/index.d.ts +1593 -0
  164. package/es/components/radio/index.mjs +5 -0
  165. package/es/components/radio/src/index.vue.d.ts +1608 -0
  166. package/es/components/radio/src/index.vue.mjs +6 -0
  167. package/es/components/radio/src/index.vue2.mjs +202 -0
  168. package/es/components/radio/style/css.d.ts +3 -0
  169. package/es/components/radio/style/css.mjs +3 -0
  170. package/es/components/radio/style/index.d.ts +3 -0
  171. package/es/components/radio/style/index.mjs +3 -0
  172. package/es/components/render/index.d.ts +71 -0
  173. package/es/components/render/index.mjs +5 -0
  174. package/es/components/render/src/index.vue.d.ts +86 -0
  175. package/es/components/render/src/index.vue.mjs +6 -0
  176. package/es/components/render/src/index.vue2.mjs +73 -0
  177. package/es/components/search/index.d.ts +8778 -0
  178. package/es/components/search/index.mjs +5 -0
  179. package/es/components/search/src/index.vue.d.ts +8807 -0
  180. package/es/components/search/src/index.vue.mjs +6 -0
  181. package/es/components/search/src/index.vue2.mjs +216 -0
  182. package/es/components/search/style/css.d.ts +3 -0
  183. package/es/components/search/style/css.mjs +3 -0
  184. package/es/components/search/style/index.d.ts +3 -0
  185. package/es/components/search/style/index.mjs +3 -0
  186. package/es/components/sidebar/index.d.ts +3009 -0
  187. package/es/components/sidebar/index.mjs +7 -0
  188. package/es/components/sidebar/src/index.vue.d.ts +2557 -0
  189. package/es/components/sidebar/src/index.vue.mjs +6 -0
  190. package/es/components/sidebar/src/index.vue2.mjs +175 -0
  191. package/es/components/sidebar/src/sidebar-item.vue.d.ts +513 -0
  192. package/es/components/sidebar/src/sidebar-item.vue.mjs +6 -0
  193. package/es/components/sidebar/src/sidebar-item.vue2.mjs +270 -0
  194. package/es/components/sidebar/style/css.d.ts +6 -0
  195. package/es/components/sidebar/style/css.mjs +6 -0
  196. package/es/components/sidebar/style/index.d.ts +6 -0
  197. package/es/components/sidebar/style/index.mjs +6 -0
  198. package/es/components/steps-form/index.d.ts +8350 -0
  199. package/es/components/steps-form/index.mjs +5 -0
  200. package/es/components/steps-form/src/index.vue.d.ts +8370 -0
  201. package/es/components/steps-form/src/index.vue.mjs +6 -0
  202. package/es/components/steps-form/src/index.vue2.mjs +124 -0
  203. package/es/components/steps-form/style/css.d.ts +4 -0
  204. package/es/components/steps-form/style/css.mjs +4 -0
  205. package/es/components/steps-form/style/index.d.ts +4 -0
  206. package/es/components/steps-form/style/index.mjs +4 -0
  207. package/es/components/table/index.d.ts +6 -0
  208. package/es/components/table/index.mjs +6 -0
  209. package/es/components/table/src/index.vue.mjs +6 -0
  210. package/es/components/table/src/index.vue2.mjs +338 -0
  211. package/es/components/table/src/table-action-bar.vue.mjs +6 -0
  212. package/es/components/table/src/table-action-bar.vue2.mjs +217 -0
  213. package/es/components/table/src/table-column-drag-sort.vue.mjs +6 -0
  214. package/es/components/table/src/table-column-drag-sort.vue2.mjs +74 -0
  215. package/es/components/table/src/table-column-index.vue.mjs +6 -0
  216. package/es/components/table/src/table-column-index.vue2.mjs +91 -0
  217. package/es/components/table/src/table-column.vue.mjs +6 -0
  218. package/es/components/table/src/table-column.vue2.mjs +161 -0
  219. package/es/components/table/src/table-title-bar.vue.d.ts +3594 -0
  220. package/es/components/table/src/table-title-bar.vue.mjs +6 -0
  221. package/es/components/table/src/table-title-bar.vue2.mjs +435 -0
  222. package/es/components/table/src/type.d.ts +208 -0
  223. package/es/components/table/src/type.mjs +1 -0
  224. package/es/components/table/style/css.d.ts +13 -0
  225. package/es/components/table/style/css.mjs +13 -0
  226. package/es/components/table/style/index.d.ts +13 -0
  227. package/es/components/table/style/index.mjs +13 -0
  228. package/es/components/utils/format.d.ts +9 -0
  229. package/es/components/utils/format.mjs +10 -0
  230. package/es/components/utils/index.d.ts +92 -0
  231. package/es/components/utils/index.mjs +111 -0
  232. package/es/components/utils/is.d.ts +98 -0
  233. package/es/components/utils/is.mjs +29 -0
  234. package/es/constants/form.d.ts +20 -0
  235. package/es/constants/form.mjs +13 -0
  236. package/es/constants/index.d.ts +2 -0
  237. package/es/constants/index.mjs +2 -0
  238. package/es/constants/page.d.ts +9 -0
  239. package/es/constants/page.mjs +7 -0
  240. package/es/defaults.d.ts +4 -0
  241. package/es/defaults.mjs +7 -0
  242. package/es/directive.d.ts +3 -0
  243. package/es/directive.mjs +8 -0
  244. package/es/directives/click/hook/useClickControl.d.ts +11 -0
  245. package/es/directives/click/hook/useClickControl.mjs +75 -0
  246. package/es/directives/click/index.d.ts +3 -0
  247. package/es/directives/click/index.mjs +51 -0
  248. package/es/directives/click/type/index.d.ts +16 -0
  249. package/es/directives/click/type/index.mjs +17 -0
  250. package/es/directives/index.d.ts +1 -0
  251. package/es/directives/index.mjs +1 -0
  252. package/es/hooks/index.d.ts +3 -0
  253. package/es/hooks/index.mjs +3 -0
  254. package/es/hooks/useGetOptions.d.ts +6 -0
  255. package/es/hooks/useGetOptions.mjs +62 -0
  256. package/es/hooks/useLocale.d.ts +18 -0
  257. package/es/hooks/useLocale.mjs +28 -0
  258. package/es/hooks/useTable.d.ts +20 -0
  259. package/es/hooks/useTable.mjs +21 -0
  260. package/es/index.css +21 -0
  261. package/es/index.d.ts +9 -0
  262. package/es/index.mjs +39 -0
  263. package/es/locale/index.d.ts +9 -0
  264. package/es/locale/index.mjs +2 -0
  265. package/es/locale/lang/en.d.ts +66 -0
  266. package/es/locale/lang/en.mjs +67 -0
  267. package/es/locale/lang/zh-cn.d.ts +66 -0
  268. package/es/locale/lang/zh-cn.mjs +67 -0
  269. package/es/make-installer.d.ts +4 -0
  270. package/es/make-installer.mjs +11 -0
  271. package/es/theme-chalk/src/breadcrumb.scss.mjs +3 -0
  272. package/es/theme-chalk/src/check-card-group.scss.mjs +3 -0
  273. package/es/theme-chalk/src/check-card.scss.mjs +3 -0
  274. package/es/theme-chalk/src/date-picker.scss.mjs +3 -0
  275. package/es/theme-chalk/src/descriptions.scss.mjs +3 -0
  276. package/es/theme-chalk/src/dialog-form.scss.mjs +3 -0
  277. package/es/theme-chalk/src/dialog.scss.mjs +3 -0
  278. package/es/theme-chalk/src/display-item.scss.mjs +3 -0
  279. package/es/theme-chalk/src/drawer-form.scss.mjs +3 -0
  280. package/es/theme-chalk/src/form-item.scss.mjs +3 -0
  281. package/es/theme-chalk/src/form.scss.mjs +3 -0
  282. package/es/theme-chalk/src/header.scss.mjs +3 -0
  283. package/es/theme-chalk/src/input-tag.scss.mjs +3 -0
  284. package/es/theme-chalk/src/layout.scss.mjs +3 -0
  285. package/es/theme-chalk/src/page.scss.mjs +3 -0
  286. package/es/theme-chalk/src/pagination.scss.mjs +3 -0
  287. package/es/theme-chalk/src/popover.scss.mjs +3 -0
  288. package/es/theme-chalk/src/radio.scss.mjs +3 -0
  289. package/es/theme-chalk/src/search.scss.mjs +3 -0
  290. package/es/theme-chalk/src/sidebar.scss.mjs +3 -0
  291. package/es/theme-chalk/src/steps-form.scss.mjs +3 -0
  292. package/es/theme-chalk/src/table.scss.mjs +3 -0
  293. package/es/types/form.d.ts +234 -0
  294. package/es/types/form.mjs +1 -0
  295. package/es/types/global.d.ts +29 -0
  296. package/es/types/global.mjs +1 -0
  297. package/es/types/index.d.ts +5 -0
  298. package/es/types/index.mjs +5 -0
  299. package/es/types/layout.d.ts +43 -0
  300. package/es/types/layout.mjs +1 -0
  301. package/es/types/plus.d.ts +217 -0
  302. package/es/types/plus.mjs +1 -0
  303. package/es/types/table.d.ts +36 -0
  304. package/es/types/table.mjs +1 -0
  305. package/es/version.d.ts +1 -0
  306. package/es/version.mjs +3 -0
  307. package/global.d.ts +29 -0
  308. package/index.css +1 -0
  309. package/index.d.ts +2 -0
  310. package/index.js +12352 -0
  311. package/index.min.js +7 -0
  312. package/index.min.mjs +7 -0
  313. package/index.mjs +12306 -0
  314. package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
  315. package/lib/component.d.ts +3 -0
  316. package/lib/component.js +53 -0
  317. package/lib/components/breadcrumb/index.d.ts +14102 -0
  318. package/lib/components/breadcrumb/index.js +7 -0
  319. package/lib/components/breadcrumb/src/index.vue.d.ts +14110 -0
  320. package/lib/components/breadcrumb/src/index.vue.js +10 -0
  321. package/lib/components/breadcrumb/src/index.vue2.js +105 -0
  322. package/lib/components/breadcrumb/style/css.d.ts +3 -0
  323. package/lib/components/breadcrumb/style/css.js +6 -0
  324. package/lib/components/breadcrumb/style/index.d.ts +3 -0
  325. package/lib/components/breadcrumb/style/index.js +6 -0
  326. package/lib/components/check-card/index.d.ts +272 -0
  327. package/lib/components/check-card/index.js +7 -0
  328. package/lib/components/check-card/src/index.vue.d.ts +293 -0
  329. package/lib/components/check-card/src/index.vue.js +10 -0
  330. package/lib/components/check-card/src/index.vue2.js +170 -0
  331. package/lib/components/check-card/style/css.d.ts +2 -0
  332. package/lib/components/check-card/style/css.js +5 -0
  333. package/lib/components/check-card/style/index.d.ts +2 -0
  334. package/lib/components/check-card/style/index.js +5 -0
  335. package/lib/components/check-card-group/index.d.ts +344 -0
  336. package/lib/components/check-card-group/index.js +7 -0
  337. package/lib/components/check-card-group/src/index.vue.d.ts +369 -0
  338. package/lib/components/check-card-group/src/index.vue.js +10 -0
  339. package/lib/components/check-card-group/src/index.vue2.js +146 -0
  340. package/lib/components/check-card-group/style/css.d.ts +2 -0
  341. package/lib/components/check-card-group/style/css.js +5 -0
  342. package/lib/components/check-card-group/style/index.d.ts +2 -0
  343. package/lib/components/check-card-group/style/index.js +5 -0
  344. package/lib/components/date-picker/index.d.ts +2739 -0
  345. package/lib/components/date-picker/index.js +7 -0
  346. package/lib/components/date-picker/src/index.vue.d.ts +2757 -0
  347. package/lib/components/date-picker/src/index.vue.js +10 -0
  348. package/lib/components/date-picker/src/index.vue2.js +144 -0
  349. package/lib/components/date-picker/style/css.d.ts +2 -0
  350. package/lib/components/date-picker/style/css.js +5 -0
  351. package/lib/components/date-picker/style/index.d.ts +2 -0
  352. package/lib/components/date-picker/style/index.js +5 -0
  353. package/lib/components/descriptions/index.d.ts +9802 -0
  354. package/lib/components/descriptions/index.js +7 -0
  355. package/lib/components/descriptions/src/index.vue.d.ts +9814 -0
  356. package/lib/components/descriptions/src/index.vue.js +10 -0
  357. package/lib/components/descriptions/src/index.vue2.js +137 -0
  358. package/lib/components/descriptions/style/css.d.ts +3 -0
  359. package/lib/components/descriptions/style/css.js +6 -0
  360. package/lib/components/descriptions/style/index.d.ts +3 -0
  361. package/lib/components/descriptions/style/index.js +6 -0
  362. package/lib/components/dialog/index.d.ts +1056 -0
  363. package/lib/components/dialog/index.js +7 -0
  364. package/lib/components/dialog/src/index.vue.d.ts +1071 -0
  365. package/lib/components/dialog/src/index.vue.js +10 -0
  366. package/lib/components/dialog/src/index.vue2.js +124 -0
  367. package/lib/components/dialog/style/css.d.ts +3 -0
  368. package/lib/components/dialog/style/css.js +6 -0
  369. package/lib/components/dialog/style/index.d.ts +3 -0
  370. package/lib/components/dialog/style/index.js +6 -0
  371. package/lib/components/dialog-form/index.d.ts +8990 -0
  372. package/lib/components/dialog-form/index.js +7 -0
  373. package/lib/components/dialog-form/src/index.vue.d.ts +9009 -0
  374. package/lib/components/dialog-form/src/index.vue.js +10 -0
  375. package/lib/components/dialog-form/src/index.vue2.js +174 -0
  376. package/lib/components/dialog-form/style/css.d.ts +3 -0
  377. package/lib/components/dialog-form/style/css.js +6 -0
  378. package/lib/components/dialog-form/style/index.d.ts +3 -0
  379. package/lib/components/dialog-form/style/index.js +6 -0
  380. package/lib/components/display-item/index.d.ts +9114 -0
  381. package/lib/components/display-item/index.js +7 -0
  382. package/lib/components/display-item/src/index.vue.d.ts +9127 -0
  383. package/lib/components/display-item/src/index.vue.js +10 -0
  384. package/lib/components/display-item/src/index.vue2.js +528 -0
  385. package/lib/components/display-item/style/css.d.ts +6 -0
  386. package/lib/components/display-item/style/css.js +9 -0
  387. package/lib/components/display-item/style/index.d.ts +6 -0
  388. package/lib/components/display-item/style/index.js +9 -0
  389. package/lib/components/drawer-form/index.d.ts +9643 -0
  390. package/lib/components/drawer-form/index.js +7 -0
  391. package/lib/components/drawer-form/src/index.vue.d.ts +9666 -0
  392. package/lib/components/drawer-form/src/index.vue.js +10 -0
  393. package/lib/components/drawer-form/src/index.vue2.js +173 -0
  394. package/lib/components/drawer-form/style/css.d.ts +3 -0
  395. package/lib/components/drawer-form/style/css.js +6 -0
  396. package/lib/components/drawer-form/style/index.d.ts +3 -0
  397. package/lib/components/drawer-form/style/index.js +6 -0
  398. package/lib/components/form/index.d.ts +7860 -0
  399. package/lib/components/form/index.js +7 -0
  400. package/lib/components/form/src/form-content.vue.d.ts +6452 -0
  401. package/lib/components/form/src/form-content.vue.js +10 -0
  402. package/lib/components/form/src/form-content.vue2.js +142 -0
  403. package/lib/components/form/src/index.vue.d.ts +7900 -0
  404. package/lib/components/form/src/index.vue.js +10 -0
  405. package/lib/components/form/src/index.vue2.js +324 -0
  406. package/lib/components/form/style/css.d.ts +7 -0
  407. package/lib/components/form/style/css.js +10 -0
  408. package/lib/components/form/style/index.d.ts +7 -0
  409. package/lib/components/form/style/index.js +10 -0
  410. package/lib/components/form-item/index.d.ts +5951 -0
  411. package/lib/components/form-item/index.js +7 -0
  412. package/lib/components/form-item/src/index.vue.d.ts +5976 -0
  413. package/lib/components/form-item/src/index.vue.js +10 -0
  414. package/lib/components/form-item/src/index.vue2.js +955 -0
  415. package/lib/components/form-item/style/css.d.ts +24 -0
  416. package/lib/components/form-item/style/css.js +27 -0
  417. package/lib/components/form-item/style/index.d.ts +24 -0
  418. package/lib/components/form-item/style/index.js +27 -0
  419. package/lib/components/header/index.d.ts +1142 -0
  420. package/lib/components/header/index.js +7 -0
  421. package/lib/components/header/src/index.vue.d.ts +1174 -0
  422. package/lib/components/header/src/index.vue.js +10 -0
  423. package/lib/components/header/src/index.vue2.js +214 -0
  424. package/lib/components/header/style/css.d.ts +6 -0
  425. package/lib/components/header/style/css.js +9 -0
  426. package/lib/components/header/style/index.d.ts +6 -0
  427. package/lib/components/header/style/index.js +9 -0
  428. package/lib/components/index.d.ts +22 -0
  429. package/lib/components/index.js +50 -0
  430. package/lib/components/input-tag/index.d.ts +893 -0
  431. package/lib/components/input-tag/index.js +7 -0
  432. package/lib/components/input-tag/src/index.vue.d.ts +917 -0
  433. package/lib/components/input-tag/src/index.vue.js +10 -0
  434. package/lib/components/input-tag/src/index.vue2.js +140 -0
  435. package/lib/components/input-tag/style/css.d.ts +3 -0
  436. package/lib/components/input-tag/style/css.js +6 -0
  437. package/lib/components/input-tag/style/index.d.ts +3 -0
  438. package/lib/components/input-tag/style/index.js +6 -0
  439. package/lib/components/layout/index.d.ts +10618 -0
  440. package/lib/components/layout/index.js +7 -0
  441. package/lib/components/layout/src/index.vue.d.ts +10643 -0
  442. package/lib/components/layout/src/index.vue.js +10 -0
  443. package/lib/components/layout/src/index.vue2.js +173 -0
  444. package/lib/components/layout/style/css.d.ts +8 -0
  445. package/lib/components/layout/style/css.js +11 -0
  446. package/lib/components/layout/style/index.d.ts +8 -0
  447. package/lib/components/layout/style/index.js +11 -0
  448. package/lib/components/page/index.d.ts +219 -0
  449. package/lib/components/page/index.js +7 -0
  450. package/lib/components/page/src/index.vue.d.ts +291 -0
  451. package/lib/components/page/src/index.vue.js +10 -0
  452. package/lib/components/page/src/index.vue2.js +279 -0
  453. package/lib/components/page/style/css.d.ts +4 -0
  454. package/lib/components/page/style/css.js +7 -0
  455. package/lib/components/page/style/index.d.ts +4 -0
  456. package/lib/components/page/style/index.js +7 -0
  457. package/lib/components/pagination/index.d.ts +446 -0
  458. package/lib/components/pagination/index.js +7 -0
  459. package/lib/components/pagination/src/index.vue.d.ts +458 -0
  460. package/lib/components/pagination/src/index.vue.js +10 -0
  461. package/lib/components/pagination/src/index.vue2.js +81 -0
  462. package/lib/components/pagination/style/css.d.ts +2 -0
  463. package/lib/components/pagination/style/css.js +5 -0
  464. package/lib/components/pagination/style/index.d.ts +2 -0
  465. package/lib/components/pagination/style/index.js +5 -0
  466. package/lib/components/popover/index.d.ts +1125 -0
  467. package/lib/components/popover/index.js +7 -0
  468. package/lib/components/popover/src/index.vue.d.ts +1135 -0
  469. package/lib/components/popover/src/index.vue.js +10 -0
  470. package/lib/components/popover/src/index.vue2.js +101 -0
  471. package/lib/components/popover/style/css.d.ts +3 -0
  472. package/lib/components/popover/style/css.js +6 -0
  473. package/lib/components/popover/style/index.d.ts +3 -0
  474. package/lib/components/popover/style/index.js +6 -0
  475. package/lib/components/radio/index.d.ts +1593 -0
  476. package/lib/components/radio/index.js +7 -0
  477. package/lib/components/radio/src/index.vue.d.ts +1608 -0
  478. package/lib/components/radio/src/index.vue.js +10 -0
  479. package/lib/components/radio/src/index.vue2.js +206 -0
  480. package/lib/components/radio/style/css.d.ts +3 -0
  481. package/lib/components/radio/style/css.js +6 -0
  482. package/lib/components/radio/style/index.d.ts +3 -0
  483. package/lib/components/radio/style/index.js +6 -0
  484. package/lib/components/render/index.d.ts +71 -0
  485. package/lib/components/render/index.js +7 -0
  486. package/lib/components/render/src/index.vue.d.ts +86 -0
  487. package/lib/components/render/src/index.vue.js +10 -0
  488. package/lib/components/render/src/index.vue2.js +77 -0
  489. package/lib/components/search/index.d.ts +8778 -0
  490. package/lib/components/search/index.js +7 -0
  491. package/lib/components/search/src/index.vue.d.ts +8807 -0
  492. package/lib/components/search/src/index.vue.js +10 -0
  493. package/lib/components/search/src/index.vue2.js +220 -0
  494. package/lib/components/search/style/css.d.ts +3 -0
  495. package/lib/components/search/style/css.js +6 -0
  496. package/lib/components/search/style/index.d.ts +3 -0
  497. package/lib/components/search/style/index.js +6 -0
  498. package/lib/components/sidebar/index.d.ts +3009 -0
  499. package/lib/components/sidebar/index.js +10 -0
  500. package/lib/components/sidebar/src/index.vue.d.ts +2557 -0
  501. package/lib/components/sidebar/src/index.vue.js +10 -0
  502. package/lib/components/sidebar/src/index.vue2.js +179 -0
  503. package/lib/components/sidebar/src/sidebar-item.vue.d.ts +513 -0
  504. package/lib/components/sidebar/src/sidebar-item.vue.js +10 -0
  505. package/lib/components/sidebar/src/sidebar-item.vue2.js +274 -0
  506. package/lib/components/sidebar/style/css.d.ts +6 -0
  507. package/lib/components/sidebar/style/css.js +9 -0
  508. package/lib/components/sidebar/style/index.d.ts +6 -0
  509. package/lib/components/sidebar/style/index.js +9 -0
  510. package/lib/components/steps-form/index.d.ts +8350 -0
  511. package/lib/components/steps-form/index.js +7 -0
  512. package/lib/components/steps-form/src/index.vue.d.ts +8370 -0
  513. package/lib/components/steps-form/src/index.vue.js +10 -0
  514. package/lib/components/steps-form/src/index.vue2.js +128 -0
  515. package/lib/components/steps-form/style/css.d.ts +4 -0
  516. package/lib/components/steps-form/style/css.js +7 -0
  517. package/lib/components/steps-form/style/index.d.ts +4 -0
  518. package/lib/components/steps-form/style/index.js +7 -0
  519. package/lib/components/table/index.d.ts +6 -0
  520. package/lib/components/table/index.js +8 -0
  521. package/lib/components/table/src/index.vue.js +10 -0
  522. package/lib/components/table/src/index.vue2.js +342 -0
  523. package/lib/components/table/src/table-action-bar.vue.js +10 -0
  524. package/lib/components/table/src/table-action-bar.vue2.js +221 -0
  525. package/lib/components/table/src/table-column-drag-sort.vue.js +10 -0
  526. package/lib/components/table/src/table-column-drag-sort.vue2.js +78 -0
  527. package/lib/components/table/src/table-column-index.vue.js +10 -0
  528. package/lib/components/table/src/table-column-index.vue2.js +95 -0
  529. package/lib/components/table/src/table-column.vue.js +10 -0
  530. package/lib/components/table/src/table-column.vue2.js +165 -0
  531. package/lib/components/table/src/table-title-bar.vue.d.ts +3594 -0
  532. package/lib/components/table/src/table-title-bar.vue.js +10 -0
  533. package/lib/components/table/src/table-title-bar.vue2.js +439 -0
  534. package/lib/components/table/src/type.d.ts +208 -0
  535. package/lib/components/table/src/type.js +2 -0
  536. package/lib/components/table/style/css.d.ts +13 -0
  537. package/lib/components/table/style/css.js +16 -0
  538. package/lib/components/table/style/index.d.ts +13 -0
  539. package/lib/components/table/style/index.js +16 -0
  540. package/lib/components/utils/format.d.ts +9 -0
  541. package/lib/components/utils/format.js +13 -0
  542. package/lib/components/utils/index.d.ts +92 -0
  543. package/lib/components/utils/index.js +147 -0
  544. package/lib/components/utils/is.d.ts +98 -0
  545. package/lib/components/utils/is.js +47 -0
  546. package/lib/constants/form.d.ts +20 -0
  547. package/lib/constants/form.js +19 -0
  548. package/lib/constants/index.d.ts +2 -0
  549. package/lib/constants/index.js +14 -0
  550. package/lib/constants/page.d.ts +9 -0
  551. package/lib/constants/page.js +10 -0
  552. package/lib/defaults.d.ts +4 -0
  553. package/lib/defaults.js +11 -0
  554. package/lib/directive.d.ts +3 -0
  555. package/lib/directive.js +12 -0
  556. package/lib/directives/click/hook/useClickControl.d.ts +11 -0
  557. package/lib/directives/click/hook/useClickControl.js +77 -0
  558. package/lib/directives/click/index.d.ts +3 -0
  559. package/lib/directives/click/index.js +55 -0
  560. package/lib/directives/click/type/index.d.ts +16 -0
  561. package/lib/directives/click/type/index.js +19 -0
  562. package/lib/directives/index.d.ts +1 -0
  563. package/lib/directives/index.js +7 -0
  564. package/lib/hooks/index.d.ts +3 -0
  565. package/lib/hooks/index.js +14 -0
  566. package/lib/hooks/useGetOptions.d.ts +6 -0
  567. package/lib/hooks/useGetOptions.js +64 -0
  568. package/lib/hooks/useLocale.d.ts +18 -0
  569. package/lib/hooks/useLocale.js +33 -0
  570. package/lib/hooks/useTable.d.ts +20 -0
  571. package/lib/hooks/useTable.js +23 -0
  572. package/lib/index.css +22 -0
  573. package/lib/index.d.ts +9 -0
  574. package/lib/index.js +82 -0
  575. package/lib/locale/index.d.ts +9 -0
  576. package/lib/locale/index.js +9 -0
  577. package/lib/locale/lang/en.d.ts +66 -0
  578. package/lib/locale/lang/en.js +71 -0
  579. package/lib/locale/lang/zh-cn.d.ts +66 -0
  580. package/lib/locale/lang/zh-cn.js +71 -0
  581. package/lib/make-installer.d.ts +4 -0
  582. package/lib/make-installer.js +13 -0
  583. package/lib/theme-chalk/src/breadcrumb.scss.js +7 -0
  584. package/lib/theme-chalk/src/check-card-group.scss.js +7 -0
  585. package/lib/theme-chalk/src/check-card.scss.js +7 -0
  586. package/lib/theme-chalk/src/date-picker.scss.js +7 -0
  587. package/lib/theme-chalk/src/descriptions.scss.js +7 -0
  588. package/lib/theme-chalk/src/dialog-form.scss.js +7 -0
  589. package/lib/theme-chalk/src/dialog.scss.js +7 -0
  590. package/lib/theme-chalk/src/display-item.scss.js +7 -0
  591. package/lib/theme-chalk/src/drawer-form.scss.js +7 -0
  592. package/lib/theme-chalk/src/form-item.scss.js +7 -0
  593. package/lib/theme-chalk/src/form.scss.js +7 -0
  594. package/lib/theme-chalk/src/header.scss.js +7 -0
  595. package/lib/theme-chalk/src/input-tag.scss.js +7 -0
  596. package/lib/theme-chalk/src/layout.scss.js +7 -0
  597. package/lib/theme-chalk/src/page.scss.js +7 -0
  598. package/lib/theme-chalk/src/pagination.scss.js +7 -0
  599. package/lib/theme-chalk/src/popover.scss.js +7 -0
  600. package/lib/theme-chalk/src/radio.scss.js +7 -0
  601. package/lib/theme-chalk/src/search.scss.js +7 -0
  602. package/lib/theme-chalk/src/sidebar.scss.js +7 -0
  603. package/lib/theme-chalk/src/steps-form.scss.js +7 -0
  604. package/lib/theme-chalk/src/table.scss.js +7 -0
  605. package/lib/types/form.d.ts +234 -0
  606. package/lib/types/form.js +2 -0
  607. package/lib/types/global.d.ts +29 -0
  608. package/lib/types/global.js +2 -0
  609. package/lib/types/index.d.ts +5 -0
  610. package/lib/types/index.js +8 -0
  611. package/lib/types/layout.d.ts +43 -0
  612. package/lib/types/layout.js +2 -0
  613. package/lib/types/plus.d.ts +217 -0
  614. package/lib/types/plus.js +2 -0
  615. package/lib/types/table.d.ts +36 -0
  616. package/lib/types/table.js +2 -0
  617. package/lib/version.d.ts +1 -0
  618. package/lib/version.js +5 -0
  619. package/locale/en.d.ts +66 -0
  620. package/locale/en.js +77 -0
  621. package/locale/en.min.js +1 -0
  622. package/locale/en.min.mjs +1 -0
  623. package/locale/en.mjs +69 -0
  624. package/locale/zh-cn.d.ts +66 -0
  625. package/locale/zh-cn.js +77 -0
  626. package/locale/zh-cn.min.js +1 -0
  627. package/locale/zh-cn.min.mjs +1 -0
  628. package/locale/zh-cn.mjs +69 -0
  629. package/package.json +103 -0
  630. package/theme-chalk/index.css +1 -0
  631. package/theme-chalk/plus-breadcrumb.css +1 -0
  632. package/theme-chalk/plus-check-card-group.css +1 -0
  633. package/theme-chalk/plus-check-card.css +1 -0
  634. package/theme-chalk/plus-date-picker.css +1 -0
  635. package/theme-chalk/plus-descriptions.css +1 -0
  636. package/theme-chalk/plus-dialog-form.css +0 -0
  637. package/theme-chalk/plus-dialog.css +1 -0
  638. package/theme-chalk/plus-display-item.css +1 -0
  639. package/theme-chalk/plus-drawer-form.css +0 -0
  640. package/theme-chalk/plus-form-item.css +1 -0
  641. package/theme-chalk/plus-form.css +1 -0
  642. package/theme-chalk/plus-header.css +1 -0
  643. package/theme-chalk/plus-input-tag.css +1 -0
  644. package/theme-chalk/plus-layout.css +1 -0
  645. package/theme-chalk/plus-page.css +1 -0
  646. package/theme-chalk/plus-pagination.css +1 -0
  647. package/theme-chalk/plus-popover.css +0 -0
  648. package/theme-chalk/plus-radio.css +0 -0
  649. package/theme-chalk/plus-search.css +1 -0
  650. package/theme-chalk/plus-sidebar.css +1 -0
  651. package/theme-chalk/plus-steps-form.css +1 -0
  652. package/theme-chalk/plus-table.css +1 -0
  653. package/theme-chalk/src/breadcrumb.scss +5 -0
  654. package/theme-chalk/src/check-card-group.scss +12 -0
  655. package/theme-chalk/src/check-card.scss +81 -0
  656. package/theme-chalk/src/date-picker.scss +75 -0
  657. package/theme-chalk/src/descriptions.scss +11 -0
  658. package/theme-chalk/src/dialog-form.scss +1 -0
  659. package/theme-chalk/src/dialog.scss +8 -0
  660. package/theme-chalk/src/display-item.scss +70 -0
  661. package/theme-chalk/src/drawer-form.scss +0 -0
  662. package/theme-chalk/src/form-item.scss +23 -0
  663. package/theme-chalk/src/form.scss +36 -0
  664. package/theme-chalk/src/header.scss +61 -0
  665. package/theme-chalk/src/index.scss +22 -0
  666. package/theme-chalk/src/input-tag.scss +74 -0
  667. package/theme-chalk/src/layout.scss +24 -0
  668. package/theme-chalk/src/mixins/config.scss +8 -0
  669. package/theme-chalk/src/mixins/function.scss +73 -0
  670. package/theme-chalk/src/mixins/mixins.scss +79 -0
  671. package/theme-chalk/src/page.scss +7 -0
  672. package/theme-chalk/src/pagination.scss +8 -0
  673. package/theme-chalk/src/popover.scss +1 -0
  674. package/theme-chalk/src/radio.scss +1 -0
  675. package/theme-chalk/src/search.scss +28 -0
  676. package/theme-chalk/src/sidebar.scss +79 -0
  677. package/theme-chalk/src/steps-form.scss +18 -0
  678. package/theme-chalk/src/table.scss +145 -0
  679. package/theme-chalk/src/var/index.scss +4 -0
@@ -0,0 +1,13 @@
1
+ import 'element-plus/es/components/table/style/index';
2
+ import 'element-plus/es/components/table-column/style/index';
3
+ import 'element-plus/es/components/button/style/index';
4
+ import 'element-plus/es/components/link/style/index';
5
+ import 'element-plus/es/components/tooltip/style/index';
6
+ import 'element-plus/es/components/message-box/style/index';
7
+ import 'element-plus/es/components/dropdown/style/index';
8
+ import 'element-plus/es/components/dropdown-menu/style/index';
9
+ import 'element-plus/es/components/dropdown-item/style/index';
10
+ import '@wlydfe/pro-ui-components/display-item/style/index';
11
+ import '@wlydfe/pro-ui-components/popover/style/index';
12
+ import '@wlydfe/pro-ui-components/pagination/style/index';
13
+ import '@wlydfe/pro-ui-theme-chalk/src/table.scss';
@@ -0,0 +1,13 @@
1
+ import 'element-plus/es/components/table/style/index.mjs';
2
+ import 'element-plus/es/components/table-column/style/index.mjs';
3
+ import 'element-plus/es/components/button/style/index.mjs';
4
+ import 'element-plus/es/components/link/style/index.mjs';
5
+ import 'element-plus/es/components/tooltip/style/index.mjs';
6
+ import 'element-plus/es/components/message-box/style/index.mjs';
7
+ import 'element-plus/es/components/dropdown/style/index.mjs';
8
+ import 'element-plus/es/components/dropdown-menu/style/index.mjs';
9
+ import 'element-plus/es/components/dropdown-item/style/index.mjs';
10
+ import '../../display-item/style/index.mjs';
11
+ import '../../popover/style/index.mjs';
12
+ import '../../pagination/style/index.mjs';
13
+ import '../../../theme-chalk/src/table.scss.mjs';
@@ -0,0 +1,9 @@
1
+ import { dayjs } from 'element-plus';
2
+ /**
3
+ *
4
+ * @param {string | number | Date | Dayjs | null | undefined} date
5
+ * @param format 默认 YYYY-MM-DD HH:mm:ss
6
+ * @returns YYYY-MM-DD HH:mm:ss
7
+ */
8
+ export declare function formatDate(date?: dayjs.ConfigType, format?: string): string;
9
+ export declare function formatMoney(val: string | number, format?: string, decimal?: number): string;
@@ -0,0 +1,10 @@
1
+ import { dayjs } from 'element-plus';
2
+
3
+ function formatDate(date, format = "YYYY-MM-DD HH:mm:ss") {
4
+ return dayjs(date || /* @__PURE__ */ new Date()).format(format);
5
+ }
6
+ function formatMoney(val, format = "\uFFE5", decimal = 2) {
7
+ return `${format}${Number(val).toFixed(decimal)}`;
8
+ }
9
+
10
+ export { formatDate, formatMoney };
@@ -0,0 +1,92 @@
1
+ import type { FieldValueType, RecordType, PlusColumn } from '@wlydfe/pro-ui-types';
2
+ import type { SetupContext } from 'vue';
3
+ export * from './format';
4
+ export * from './is';
5
+ /**
6
+ * 获取table key
7
+ * @param item
8
+ * @returns
9
+ */
10
+ export declare const getTableKey: (item: PlusColumn, hasEditable?: boolean) => string;
11
+ /**
12
+ * 获取tooltip
13
+ * @param tooltip
14
+ * @returns
15
+ */
16
+ export declare const getTooltip: (tooltip: PlusColumn['tooltip']) => RecordType | undefined;
17
+ /**
18
+ * 获取自定义的props 支持对象 函数 和 Promise
19
+ * @param props
20
+ * @param value
21
+ * @param row
22
+ * @returns
23
+ */
24
+ export declare const getCustomProps: (props: RecordType | ((...arg: any) => RecordType | Promise<RecordType>) | undefined, value: FieldValueType | undefined, row: RecordType, index: number, type: 'formItemProps' | 'fieldProps') => Promise<any>;
25
+ /**
26
+ * 处理slots
27
+ */
28
+ export declare const handleSlots: (slots: PlusColumn['slots'], value: FieldValueType | undefined, params: RecordType) => RecordType;
29
+ /**
30
+ * 处理slot名称
31
+ */
32
+ export declare const getSlotName: (type: string, prop?: string | number) => string;
33
+ /**
34
+ * 处理form-item中的slot名称
35
+ */
36
+ export declare const getFieldSlotName: (prop?: string | number) => string;
37
+ /**
38
+ * 处理form-item中的label slot名称
39
+ */
40
+ export declare const getLabelSlotName: (prop?: string | number) => string;
41
+ /**
42
+ * 处理form-item中的 extra slot名称
43
+ */
44
+ export declare const getExtraSlotName: (prop?: string | number) => string;
45
+ /**
46
+ * 处理table中的 header slot名称
47
+ */
48
+ export declare const getTableHeaderSlotName: (prop?: string | number) => string;
49
+ /**
50
+ * 处理table中的 cell slot名称
51
+ */
52
+ export declare const getTableCellSlotName: (prop?: string | number) => string;
53
+ /**
54
+ * 处理el-descriptions-item 的 slot名称
55
+ */
56
+ export declare const getDescSlotName: (prop?: string | number) => string;
57
+ /**
58
+ * 处理el-descriptions-item label的 slot名称
59
+ */
60
+ export declare const getDescLabelSlotName: (prop?: string | number) => string;
61
+ /**
62
+ * 过滤slots
63
+ * @param slots
64
+ * @param name
65
+ * @returns
66
+ */
67
+ export declare const filterSlots: (slots: RecordType, name: string) => SetupContext['slots'];
68
+ /**
69
+ * 获取值 支持 x.y.z
70
+ * @param target
71
+ * @param key
72
+ * @returns
73
+ */
74
+ export declare const getValue: (target: RecordType, key: string) => any;
75
+ /**
76
+ * 设置值 支持 x.y.z
77
+ * @param target
78
+ * @param key
79
+ * @returns
80
+ */
81
+ export declare const setValue: (target: RecordType, key: string, value: any) => RecordType;
82
+ /**
83
+ * 版本比较
84
+ * @param version1
85
+ * @param version2
86
+ * @returns
87
+ */
88
+ export declare const compareVersion: (version1: string, version2: string) => 1 | -1 | 0;
89
+ /**
90
+ * element-plus版本号是否小于'2.6.0'
91
+ */
92
+ export declare const versionIsLessThan260: boolean;
@@ -0,0 +1,111 @@
1
+ import { version } from 'element-plus';
2
+ import { get, set } from 'lodash-es';
3
+ import { isRef } from 'vue';
4
+ import { isString, isPlainObject, toRawType, isFunction, isPromise, isEmptyObject } from './is.mjs';
5
+ export { isArray, isBoolean, isDate, isMap, isObject, isRegExp, isSet, isSymbol, isUrl, objectToString, toTypeString } from './is.mjs';
6
+ export { formatDate, formatMoney } from './format.mjs';
7
+
8
+ const getTableKey = (item, hasEditable = false) => hasEditable ? item.label + item.prop + item.editable : item.label + item.prop;
9
+ const getTooltip = (tooltip) => {
10
+ if (isString(tooltip)) {
11
+ return { content: tooltip };
12
+ }
13
+ if (isPlainObject(tooltip)) {
14
+ return tooltip;
15
+ }
16
+ };
17
+ const throwError = (data, type) => {
18
+ if (!isPlainObject(data)) {
19
+ throw new Error(`${type} expected Object but got ${toRawType(data)}`);
20
+ }
21
+ };
22
+ const getCustomProps = async (props, value, row, index, type) => {
23
+ try {
24
+ let data = {};
25
+ const params = { row, index };
26
+ if (!props) {
27
+ data = {};
28
+ } else if (isRef(props)) {
29
+ data = props.value;
30
+ } else if (isPlainObject(props)) {
31
+ data = { ...props };
32
+ } else if (isFunction(props)) {
33
+ data = await props(value, params);
34
+ } else if (isPromise(props)) {
35
+ data = await props;
36
+ } else {
37
+ data = props;
38
+ }
39
+ throwError(data, type);
40
+ return data;
41
+ } catch (error) {
42
+ return Promise.reject(error);
43
+ }
44
+ };
45
+ const handleSlots = (slots, value, params) => {
46
+ if (!slots || !isPlainObject(slots) || isEmptyObject(slots)) {
47
+ return {};
48
+ }
49
+ const slotsRes = {};
50
+ if (slots && !isEmptyObject(slots)) {
51
+ Object.keys(slots).forEach((key) => {
52
+ const temp = (...arg) => {
53
+ return () => slots[key](...arg);
54
+ };
55
+ slotsRes[key] = temp(value, params);
56
+ });
57
+ }
58
+ return slotsRes;
59
+ };
60
+ const getSlotName = (type, prop) => {
61
+ return prop ? `plus-${type}-${prop}` : `plus-${type}`;
62
+ };
63
+ const getFieldSlotName = (prop) => {
64
+ return `${getSlotName("field", prop)}`;
65
+ };
66
+ const getLabelSlotName = (prop) => {
67
+ return `${getSlotName("label", prop)}`;
68
+ };
69
+ const getExtraSlotName = (prop) => {
70
+ return `${getSlotName("extra", prop)}`;
71
+ };
72
+ const getTableHeaderSlotName = (prop) => {
73
+ return `${getSlotName("header", prop)}`;
74
+ };
75
+ const getTableCellSlotName = (prop) => {
76
+ return `${getSlotName("cell", prop)}`;
77
+ };
78
+ const getDescSlotName = (prop) => {
79
+ return `${getSlotName("desc", prop)}`;
80
+ };
81
+ const getDescLabelSlotName = (prop) => {
82
+ return `${getSlotName("desc-label", prop)}`;
83
+ };
84
+ const filterSlots = (slots, name) => {
85
+ const data = {};
86
+ Object.keys(slots || {}).forEach((key) => {
87
+ if (key.startsWith(name)) {
88
+ data[key] = slots[key];
89
+ }
90
+ });
91
+ return data;
92
+ };
93
+ const getValue = (target, key) => {
94
+ return get(target, key);
95
+ };
96
+ const setValue = (target, key, value) => {
97
+ return set(target, key, value);
98
+ };
99
+ const compareVersion = (version1, version2) => {
100
+ const arr1 = version1.split(".").map((item) => Number(item));
101
+ const arr2 = version2.split(".").map((item) => Number(item));
102
+ const length = Math.max(arr1.length, arr2.length);
103
+ for (let i = 0; i < length; i++) {
104
+ if ((arr1[i] || 0) > (arr2[i] || 0)) return 1;
105
+ if ((arr1[i] || 0) < (arr2[i] || 0)) return -1;
106
+ }
107
+ return 0;
108
+ };
109
+ const versionIsLessThan260 = compareVersion(version, "2.6.0") < 0;
110
+
111
+ export { compareVersion, filterSlots, getCustomProps, getDescLabelSlotName, getDescSlotName, getExtraSlotName, getFieldSlotName, getLabelSlotName, getSlotName, getTableCellSlotName, getTableHeaderSlotName, getTableKey, getTooltip, getValue, handleSlots, isEmptyObject, isFunction, isPlainObject, isPromise, isString, setValue, toRawType, versionIsLessThan260 };
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Object.prototype.toString 别名
3
+ */
4
+ export declare const objectToString: () => string;
5
+ /**
6
+ * 获取类型
7
+ * @param value
8
+ * @returns
9
+ */
10
+ export declare const toTypeString: (value: any) => string;
11
+ /**
12
+ * 拿到类型字符串
13
+ * @param value
14
+ * @returns
15
+ */
16
+ export declare const toRawType: (value: any) => string;
17
+ /**
18
+ * 判断是否是数组
19
+ */
20
+ export declare const isArray: (arg: any) => arg is any[];
21
+ /**
22
+ * 判断是否是Map
23
+ * @param val
24
+ * @returns
25
+ */
26
+ export declare const isMap: (val: any) => boolean;
27
+ /**
28
+ * 判断是否是Set
29
+ * @param val
30
+ * @returns
31
+ */
32
+ export declare const isSet: (val: any) => boolean;
33
+ /**
34
+ * 判断是否是Date
35
+ * @param val
36
+ * @returns
37
+ */
38
+ export declare const isDate: (val: any) => boolean;
39
+ /**
40
+ * 判断是否是Reg
41
+ * @param val
42
+ * @returns
43
+ */
44
+ export declare const isRegExp: (val: any) => boolean;
45
+ /**
46
+ * 判断是否是函数
47
+ * @param val
48
+ * @returns
49
+ */
50
+ export declare const isFunction: (val: any) => boolean;
51
+ /**
52
+ * 判断是否是字符串
53
+ * @param val
54
+ * @returns
55
+ */
56
+ export declare const isString: (val: any) => boolean;
57
+ /**
58
+ * 判断是否是Symbol
59
+ * @param val
60
+ * @returns
61
+ */
62
+ export declare const isSymbol: (val: any) => boolean;
63
+ /**
64
+ * 判断是否是boolean
65
+ * @param val
66
+ * @returns
67
+ */
68
+ export declare const isBoolean: (val: any) => boolean;
69
+ /**
70
+ * 判断是否是object
71
+ * @param val
72
+ * @returns
73
+ */
74
+ export declare const isObject: (val: any) => boolean;
75
+ /**
76
+ * 判断是否是Promise
77
+ * @param val
78
+ * @returns
79
+ */
80
+ export declare const isPromise: (val: any) => boolean;
81
+ /**
82
+ * 判断是否是 纯对象 object
83
+ * @param val
84
+ * @returns
85
+ */
86
+ export declare const isPlainObject: (val: any) => boolean;
87
+ /**
88
+ * 是否是空对象
89
+ * @param val
90
+ * @returns
91
+ */
92
+ export declare const isEmptyObject: (val: any) => boolean;
93
+ /**
94
+ * 是否是链接
95
+ * @param url
96
+ * @returns
97
+ */
98
+ export declare function isUrl(url: string): boolean;
@@ -0,0 +1,29 @@
1
+ const objectToString = Object.prototype.toString;
2
+ const toTypeString = (value) => objectToString.call(value);
3
+ const toRawType = (value) => {
4
+ return toTypeString(value).slice(8, -1);
5
+ };
6
+ const isArray = Array.isArray;
7
+ const isMap = (val) => toTypeString(val) === "[object Map]";
8
+ const isSet = (val) => toTypeString(val) === "[object Set]";
9
+ const isDate = (val) => toTypeString(val) === "[object Date]";
10
+ const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
11
+ const isFunction = (val) => typeof val === "function";
12
+ const isString = (val) => typeof val === "string";
13
+ const isSymbol = (val) => typeof val === "symbol";
14
+ const isBoolean = (val) => typeof val === "boolean";
15
+ const isObject = (val) => val !== null && typeof val === "object";
16
+ const isPromise = (val) => {
17
+ return isObject(val) && isFunction(val.then) && isFunction(val.catch);
18
+ };
19
+ const isPlainObject = (val) => toTypeString(val) === "[object Object]";
20
+ const isEmptyObject = (val) => isPlainObject(val) && Object.keys(val).length === 0;
21
+ function isUrl(url) {
22
+ const regex = new RegExp(
23
+ "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$",
24
+ "i"
25
+ );
26
+ return regex.test(url);
27
+ }
28
+
29
+ export { isArray, isBoolean, isDate, isEmptyObject, isFunction, isMap, isObject, isPlainObject, isPromise, isRegExp, isSet, isString, isSymbol, isUrl, objectToString, toRawType, toTypeString };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * 表格里表单的provide(inject) key
3
+ */
4
+ export declare const TableFormRefInjectionKey: unique symbol;
5
+ /**
6
+ * 表单ElDatePicker 组件 值是数组的type列表
7
+ */
8
+ export declare const DatePickerValueIsArrayList: string[];
9
+ /**
10
+ * 表单组件值是数字类型的valueType列表
11
+ */
12
+ export declare const ValueIsNumberList: string[];
13
+ /**
14
+ * 表单组件值是数字类型的valueType列表
15
+ */
16
+ export declare const ValueIsBooleanList: string[];
17
+ /**
18
+ * 表单组件值是数组的valueType列表
19
+ */
20
+ export declare const ValueIsArrayList: string[];
@@ -0,0 +1,13 @@
1
+ const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
2
+ const DatePickerValueIsArrayList = [
3
+ "datetimerange",
4
+ "daterange",
5
+ "monthrange",
6
+ "years",
7
+ "dates"
8
+ ];
9
+ const ValueIsNumberList = ["rate", "input-number", "slider"];
10
+ const ValueIsBooleanList = ["switch"];
11
+ const ValueIsArrayList = ["checkbox", "cascader", "plus-date-picker", "plus-input-tag"];
12
+
13
+ export { DatePickerValueIsArrayList, TableFormRefInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList };
@@ -0,0 +1,2 @@
1
+ export * from './page';
2
+ export * from './form';
@@ -0,0 +1,2 @@
1
+ export { DefaultPageInfo, DefaultPageSizeList } from './page.mjs';
2
+ export { DatePickerValueIsArrayList, TableFormRefInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList } from './form.mjs';
@@ -0,0 +1,9 @@
1
+ import type { PageInfo } from '@wlydfe/pro-ui-types';
2
+ /**
3
+ *默认的分页列表
4
+ */
5
+ export declare const DefaultPageSizeList: number[];
6
+ /**
7
+ * 默认的分页参数
8
+ */
9
+ export declare const DefaultPageInfo: PageInfo;
@@ -0,0 +1,7 @@
1
+ const DefaultPageSizeList = [10, 20, 30, 40, 50, 100, 200, 300, 400, 500];
2
+ const DefaultPageInfo = {
3
+ page: 1,
4
+ pageSize: 10
5
+ };
6
+
7
+ export { DefaultPageInfo, DefaultPageSizeList };
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ install: (app: import("vue").App<any>) => void;
3
+ };
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { makeInstaller } from './make-installer.mjs';
2
+ import plugins from './component.mjs';
3
+ import directives from './directive.mjs';
4
+
5
+ const installer = makeInstaller([...plugins], directives);
6
+
7
+ export { installer as default };
@@ -0,0 +1,3 @@
1
+ import type { Directive } from 'vue';
2
+ declare const directives: Record<string, Directive>;
3
+ export default directives;
@@ -0,0 +1,8 @@
1
+ import './directives/index.mjs';
2
+ import click from './directives/click/index.mjs';
3
+
4
+ const directives = {
5
+ click: click
6
+ };
7
+
8
+ export { directives as default };
@@ -0,0 +1,11 @@
1
+ import type { ClickMode } from '../type';
2
+ interface ClickControlOptions {
3
+ delay?: number;
4
+ mode?: ClickMode;
5
+ }
6
+ export declare function useClickControl(): {
7
+ executeHandler: <T extends (...args: any[]) => any>(handler: T, options?: ClickControlOptions) => Promise<void>;
8
+ isProcessing: import("vue").Ref<boolean, boolean>;
9
+ cleanup: () => void;
10
+ };
11
+ export {};
@@ -0,0 +1,75 @@
1
+ import { ref } from 'vue';
2
+ import { CLICK_CONST } from '../type/index.mjs';
3
+
4
+ function useClickControl() {
5
+ const isProcessing = ref(false);
6
+ const lastInvokeTime = ref(0);
7
+ let timer;
8
+ function isPromise(value) {
9
+ return value !== null && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
10
+ }
11
+ const executeHandler = async (handler, options = {}) => {
12
+ const now = Date.now();
13
+ const { delay = CLICK_CONST.DEFAULT.DELAY, mode = CLICK_CONST.DEFAULT.MODE } = options;
14
+ if (isProcessing.value) {
15
+ return;
16
+ }
17
+ if (!lastInvokeTime.value) {
18
+ lastInvokeTime.value = now;
19
+ const result = handler();
20
+ if (isPromise(result)) {
21
+ try {
22
+ isProcessing.value = true;
23
+ await result;
24
+ } finally {
25
+ isProcessing.value = false;
26
+ }
27
+ }
28
+ return;
29
+ }
30
+ if (mode === "throttle") {
31
+ if (now - lastInvokeTime.value >= delay) {
32
+ lastInvokeTime.value = now;
33
+ const result = handler();
34
+ if (isPromise(result)) {
35
+ try {
36
+ isProcessing.value = true;
37
+ await result;
38
+ } finally {
39
+ isProcessing.value = false;
40
+ }
41
+ }
42
+ }
43
+ } else {
44
+ if (timer) {
45
+ clearTimeout(timer);
46
+ }
47
+ timer = setTimeout(async () => {
48
+ lastInvokeTime.value = Date.now();
49
+ const result = handler();
50
+ if (isPromise(result)) {
51
+ try {
52
+ isProcessing.value = true;
53
+ await result;
54
+ } finally {
55
+ isProcessing.value = false;
56
+ }
57
+ }
58
+ }, delay);
59
+ }
60
+ };
61
+ const cleanup = () => {
62
+ if (timer) {
63
+ clearTimeout(timer);
64
+ }
65
+ isProcessing.value = false;
66
+ lastInvokeTime.value = 0;
67
+ };
68
+ return {
69
+ executeHandler,
70
+ isProcessing,
71
+ cleanup
72
+ };
73
+ }
74
+
75
+ export { useClickControl };
@@ -0,0 +1,3 @@
1
+ import type { Directive } from 'vue';
2
+ declare const click: Directive;
3
+ export default click;
@@ -0,0 +1,51 @@
1
+ import { watch } from 'vue';
2
+ import { useClickControl } from './hook/useClickControl.mjs';
3
+ import { CLICK_CONST } from './type/index.mjs';
4
+
5
+ const click = {
6
+ mounted(el, binding) {
7
+ const handler = binding.value;
8
+ if (!handler) {
9
+ console.warn(CLICK_CONST.ERROR_MESSAGE.NO_HANDLER);
10
+ return;
11
+ }
12
+ const delay = Object.keys(binding.modifiers).find((key) => /^\d+$/.test(key));
13
+ const mode = binding.modifiers[CLICK_CONST.MODIFIERS.DEBOUNCE] ? CLICK_CONST.MODIFIERS.DEBOUNCE : CLICK_CONST.MODIFIERS.THROTTLE;
14
+ el._clickControl = useClickControl();
15
+ el._clickHandler = (event) => {
16
+ var _a;
17
+ (_a = el._clickControl) == null ? void 0 : _a.executeHandler(() => handler(event), {
18
+ delay: delay ? parseInt(delay) : void 0,
19
+ mode
20
+ });
21
+ };
22
+ el.addEventListener("click", el._clickHandler);
23
+ const unwatch = watch(
24
+ () => {
25
+ var _a;
26
+ return (_a = el._clickControl) == null ? void 0 : _a.isProcessing.value;
27
+ },
28
+ (isProcessing) => {
29
+ if (isProcessing) {
30
+ el.classList.add("is-clicking");
31
+ } else {
32
+ el.classList.remove("is-clicking");
33
+ }
34
+ }
35
+ );
36
+ el._unwatchLoading = unwatch;
37
+ },
38
+ unmounted(el) {
39
+ if (el._clickHandler) {
40
+ el.removeEventListener("click", el._clickHandler);
41
+ }
42
+ if (el._clickControl) {
43
+ el._clickControl.cleanup();
44
+ }
45
+ if (el._unwatchLoading) {
46
+ el._unwatchLoading();
47
+ }
48
+ }
49
+ };
50
+
51
+ export { click as default };
@@ -0,0 +1,16 @@
1
+ export declare const CLICK_CONST: {
2
+ readonly MODIFIERS: {
3
+ readonly DEBOUNCE: "debounce";
4
+ readonly THROTTLE: "throttle";
5
+ };
6
+ readonly DEFAULT: {
7
+ readonly DELAY: 300;
8
+ readonly MODE: "throttle";
9
+ };
10
+ readonly ERROR_MESSAGE: {
11
+ readonly NO_HANDLER: "[v-click] handler is required";
12
+ readonly INVALID_HANDLER: "[v-click] handler must be a function";
13
+ readonly INVALID_DELAY: "[v-click] delay must be a positive number";
14
+ };
15
+ };
16
+ export type ClickMode = (typeof CLICK_CONST.MODIFIERS)[keyof typeof CLICK_CONST.MODIFIERS];
@@ -0,0 +1,17 @@
1
+ const CLICK_CONST = {
2
+ MODIFIERS: {
3
+ DEBOUNCE: "debounce",
4
+ THROTTLE: "throttle"
5
+ },
6
+ DEFAULT: {
7
+ DELAY: 300,
8
+ MODE: "throttle"
9
+ },
10
+ ERROR_MESSAGE: {
11
+ NO_HANDLER: "[v-click] handler is required",
12
+ INVALID_HANDLER: "[v-click] handler must be a function",
13
+ INVALID_DELAY: "[v-click] delay must be a positive number"
14
+ }
15
+ };
16
+
17
+ export { CLICK_CONST };
@@ -0,0 +1 @@
1
+ export { default as Click } from './click';
@@ -0,0 +1 @@
1
+ export { default as Click } from './click/index.mjs';
@@ -0,0 +1,3 @@
1
+ export * from './useGetOptions';
2
+ export * from './useLocale';
3
+ export * from './useTable';
@@ -0,0 +1,3 @@
1
+ export { useGetOptions } from './useGetOptions.mjs';
2
+ export { buildLocaleContext, buildTranslator, translate, useLocale } from './useLocale.mjs';
3
+ export { useTable } from './useTable.mjs';