@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,55 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const vue = require('vue');
6
+ const useClickControl = require('./hook/useClickControl.js');
7
+ const index = require('./type/index.js');
8
+
9
+ const click = {
10
+ mounted(el, binding) {
11
+ const handler = binding.value;
12
+ if (!handler) {
13
+ console.warn(index.CLICK_CONST.ERROR_MESSAGE.NO_HANDLER);
14
+ return;
15
+ }
16
+ const delay = Object.keys(binding.modifiers).find((key) => /^\d+$/.test(key));
17
+ const mode = binding.modifiers[index.CLICK_CONST.MODIFIERS.DEBOUNCE] ? index.CLICK_CONST.MODIFIERS.DEBOUNCE : index.CLICK_CONST.MODIFIERS.THROTTLE;
18
+ el._clickControl = useClickControl.useClickControl();
19
+ el._clickHandler = (event) => {
20
+ var _a;
21
+ (_a = el._clickControl) == null ? void 0 : _a.executeHandler(() => handler(event), {
22
+ delay: delay ? parseInt(delay) : void 0,
23
+ mode
24
+ });
25
+ };
26
+ el.addEventListener("click", el._clickHandler);
27
+ const unwatch = vue.watch(
28
+ () => {
29
+ var _a;
30
+ return (_a = el._clickControl) == null ? void 0 : _a.isProcessing.value;
31
+ },
32
+ (isProcessing) => {
33
+ if (isProcessing) {
34
+ el.classList.add("is-clicking");
35
+ } else {
36
+ el.classList.remove("is-clicking");
37
+ }
38
+ }
39
+ );
40
+ el._unwatchLoading = unwatch;
41
+ },
42
+ unmounted(el) {
43
+ if (el._clickHandler) {
44
+ el.removeEventListener("click", el._clickHandler);
45
+ }
46
+ if (el._clickControl) {
47
+ el._clickControl.cleanup();
48
+ }
49
+ if (el._unwatchLoading) {
50
+ el._unwatchLoading();
51
+ }
52
+ }
53
+ };
54
+
55
+ exports.default = click;
@@ -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,19 @@
1
+ 'use strict';
2
+
3
+ const CLICK_CONST = {
4
+ MODIFIERS: {
5
+ DEBOUNCE: "debounce",
6
+ THROTTLE: "throttle"
7
+ },
8
+ DEFAULT: {
9
+ DELAY: 300,
10
+ MODE: "throttle"
11
+ },
12
+ ERROR_MESSAGE: {
13
+ NO_HANDLER: "[v-click] handler is required",
14
+ INVALID_HANDLER: "[v-click] handler must be a function",
15
+ INVALID_DELAY: "[v-click] delay must be a positive number"
16
+ }
17
+ };
18
+
19
+ exports.CLICK_CONST = CLICK_CONST;
@@ -0,0 +1 @@
1
+ export { default as Click } from './click';
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ const index = require('./click/index.js');
4
+
5
+
6
+
7
+ exports.Click = index.default;
@@ -0,0 +1,3 @@
1
+ export * from './useGetOptions';
2
+ export * from './useLocale';
3
+ export * from './useTable';
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ const useGetOptions = require('./useGetOptions.js');
4
+ const useLocale = require('./useLocale.js');
5
+ const useTable = require('./useTable.js');
6
+
7
+
8
+
9
+ exports.useGetOptions = useGetOptions.useGetOptions;
10
+ exports.buildLocaleContext = useLocale.buildLocaleContext;
11
+ exports.buildTranslator = useLocale.buildTranslator;
12
+ exports.translate = useLocale.translate;
13
+ exports.useLocale = useLocale.useLocale;
14
+ exports.useTable = useTable.useTable;
@@ -0,0 +1,6 @@
1
+ import type { Ref } from 'vue';
2
+ import type { OptionsRow, PlusColumn } from '@wlydfe/pro-ui-types';
3
+ export declare const useGetOptions: (props: PlusColumn) => {
4
+ customOptions: Ref<OptionsRow[]>;
5
+ customOptionsIsReady: Ref<boolean>;
6
+ };
@@ -0,0 +1,64 @@
1
+ 'use strict';
2
+
3
+ const vue = require('vue');
4
+ require('../components/utils/index.js');
5
+ const is = require('../components/utils/is.js');
6
+
7
+ const throwError = (data) => {
8
+ if (!is.isArray(data)) {
9
+ console.error("Uncaught TypeError: ", `options expected Array but got ${is.toRawType(data)}`);
10
+ }
11
+ };
12
+ const useGetOptions = (props) => {
13
+ const options = vue.ref([]);
14
+ const optionsIsReady = vue.ref(false);
15
+ if (!props.options) {
16
+ options.value = [];
17
+ optionsIsReady.value = true;
18
+ } else if (vue.isRef(props.options)) {
19
+ vue.watch(
20
+ props.options,
21
+ (val) => {
22
+ options.value = val;
23
+ optionsIsReady.value = true;
24
+ },
25
+ {
26
+ immediate: true
27
+ }
28
+ );
29
+ } else if (is.isArray(props.options)) {
30
+ options.value = [...props.options];
31
+ optionsIsReady.value = true;
32
+ } else if (is.isFunction(props.options)) {
33
+ const getValue = props.options;
34
+ const result = getValue(props);
35
+ if (is.isPromise(result)) {
36
+ ;
37
+ result.then((res) => {
38
+ options.value = res;
39
+ optionsIsReady.value = true;
40
+ throwError(options.value);
41
+ }).catch((err) => {
42
+ throw err;
43
+ });
44
+ } else {
45
+ options.value = result;
46
+ optionsIsReady.value = true;
47
+ }
48
+ } else if (is.isPromise(props.options)) {
49
+ const getValue = props.options;
50
+ getValue.then((res) => {
51
+ options.value = res;
52
+ optionsIsReady.value = true;
53
+ throwError(options.value);
54
+ }).catch((err) => {
55
+ throw err;
56
+ });
57
+ } else {
58
+ optionsIsReady.value = true;
59
+ throwError(props.options);
60
+ }
61
+ return { customOptions: options, customOptionsIsReady: optionsIsReady };
62
+ };
63
+
64
+ exports.useGetOptions = useGetOptions;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * fork = require( https://github.com/element-plus/element-plus/blob/dev/packages/hooks/use-locale/index.ts)
3
+ */
4
+ import type { Ref } from 'vue';
5
+ import type { Language } from '@wlydfe/pro-ui-locale';
6
+ type MaybeRef<T> = T | Ref<T>;
7
+ export type TranslatorOption = Record<string, string | number>;
8
+ export type Translator = (path: string, option?: TranslatorOption) => string;
9
+ export type LocaleContext = {
10
+ locale: Ref<Language>;
11
+ lang: Ref<string>;
12
+ t: Translator;
13
+ };
14
+ export declare const buildTranslator: (locale: MaybeRef<Language>) => Translator;
15
+ export declare const translate: (path: string, option: undefined | TranslatorOption, locale: Language) => string;
16
+ export declare const buildLocaleContext: (locale: MaybeRef<Language>) => LocaleContext;
17
+ export declare const useLocale: (localeOverrides?: Ref<Language | undefined>) => LocaleContext;
18
+ export {};
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ const vue = require('vue');
4
+ const lodashEs = require('lodash-es');
5
+ const elementPlus = require('element-plus');
6
+ const en = require('../locale/lang/en.js');
7
+
8
+ const buildTranslator = (locale) => (path, option) => translate(path, option, vue.unref(locale));
9
+ const translate = (path, option, locale) => lodashEs.get(locale, path, path).replace(
10
+ /\{(\w+)\}/g,
11
+ (_, key) => {
12
+ var _a;
13
+ return `${(_a = option == null ? void 0 : option[key]) != null ? _a : `{${key}}`}`;
14
+ }
15
+ );
16
+ const buildLocaleContext = (locale) => {
17
+ const lang = vue.computed(() => vue.unref(locale).name);
18
+ const localeRef = vue.isRef(locale) ? locale : vue.ref(locale);
19
+ return {
20
+ lang,
21
+ locale: localeRef,
22
+ t: buildTranslator(locale)
23
+ };
24
+ };
25
+ const useLocale = (localeOverrides) => {
26
+ const locale = localeOverrides || vue.inject(elementPlus.localeContextKey, vue.ref());
27
+ return buildLocaleContext(vue.computed(() => locale.value || en.default));
28
+ };
29
+
30
+ exports.buildLocaleContext = buildLocaleContext;
31
+ exports.buildTranslator = buildTranslator;
32
+ exports.translate = translate;
33
+ exports.useLocale = useLocale;
@@ -0,0 +1,20 @@
1
+ import type { Ref } from 'vue';
2
+ import type { ActionBarButtonsRow } from '@wlydfe/pro-ui-components/table';
3
+ import type { PageInfo } from '@wlydfe/pro-ui-types';
4
+ /**
5
+ * 初始化表格基本数据
6
+ *
7
+ */
8
+ export declare function useTable<T extends Record<string, any>[] = any>(_pageInfo?: PageInfo | Ref<PageInfo>): {
9
+ tableData: [T] extends [Ref<any, any>] ? import("@vue/shared").IfAny<T, Ref<T, T>, T> : Ref<import("vue").UnwrapRef<T>, T | import("vue").UnwrapRef<T>>;
10
+ pageInfo: Ref<{
11
+ page: number;
12
+ pageSize: number;
13
+ }, PageInfo | {
14
+ page: number;
15
+ pageSize: number;
16
+ }>;
17
+ total: Ref<number, number>;
18
+ loadingStatus: Ref<boolean, boolean>;
19
+ buttons: import("vue").ShallowRef<ActionBarButtonsRow[], ActionBarButtonsRow[]>;
20
+ };
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ const vue = require('vue');
4
+ require('../constants/index.js');
5
+ const page = require('../constants/page.js');
6
+
7
+ function useTable(_pageInfo) {
8
+ const defaultPageInfo = vue.unref(_pageInfo) || page.DefaultPageInfo;
9
+ const tableData = vue.ref([]);
10
+ const pageInfo = vue.ref({ ...defaultPageInfo });
11
+ const total = vue.ref(0);
12
+ const loadingStatus = vue.ref(false);
13
+ const buttons = vue.shallowRef([]);
14
+ return {
15
+ tableData,
16
+ pageInfo,
17
+ total,
18
+ loadingStatus,
19
+ buttons
20
+ };
21
+ }
22
+
23
+ exports.useTable = useTable;
package/lib/index.css ADDED
@@ -0,0 +1,22 @@
1
+
2
+ .plus-display-item__image{cursor:pointer;-o-object-fit:cover;object-fit:cover;overflow:hidden;width:30px}.plus-display-item__icon__copy{color:var(--el-color-primary);cursor:pointer;outline:none;text-decoration:none;-webkit-transition:color .3s;transition:color .3s;-webkit-margin-start:4px;margin-inline-start:4px;vertical-align:sub}.plus-display-item__pre{background-color:var(--el-color-primary-light-9);border-radius:3px;font-size:85%;line-height:1.45;overflow:auto;padding:0;width:unset}.plus-display-item__badge .plus-display-item__badge__dot{border-radius:50%;display:inline-block;height:6px;position:relative;top:-1px;vertical-align:middle;width:6px}.plus-display-item__badge .plus-display-item__badge__dot--primary{background-color:var(--el-color-primary)}.plus-display-item__badge .plus-display-item__badge__dot--success{background-color:var(--el-color-success)}.plus-display-item__badge .plus-display-item__badge__dot--info{background-color:var(--el-color-info)}.plus-display-item__badge .plus-display-item__badge__dot--warning{background-color:var(--el-color-warning)}.plus-display-item__badge .plus-display-item__badge__dot--danger{background-color:var(--el-color-danger)}.plus-display-item__form .plus-form-item{margin-bottom:0}.plus-display-item__link{max-width:100%}.plus-display-item__link .el-link__inner{display:inline-block;width:100%}
3
+ .plus-check-card{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding-block:16px;padding-inline:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-check-card--large{width:440px}.plus-check-card--default{width:320px}.plus-check-card--small{width:200px}.plus-check-card--checked{background-color:rgba(var(--el-color-primary-rgb),.1);border-color:var(--el-color-primary);position:relative}.plus-check-card--checked:after{border:10px solid var(--el-color-primary);height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;-webkit-border-after:10px solid transparent;border-block-end:10px solid transparent;-webkit-border-start:10px solid transparent;border-inline-start:10px solid transparent;border-start-end-radius:6px;content:""}.plus-check-card--disabled{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);cursor:not-allowed}.plus-check-card--disabled:after{border-right-color:var(--el-color-info-light-5);border-top-color:var(--el-color-info-light-5)}.plus-check-card .plus-check-card__avatar-wrapper{-webkit-padding-end:8px;padding-inline-end:8px}.plus-check-card .plus-check-card__right-content{overflow:hidden;width:100%}.plus-check-card .plus-check-card__title{width:100%;-webkit-margin-after:4px;color:var(--el-text-color-primary);margin-block-end:4px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.plus-check-card .plus-check-card__title,.plus-check-card .plus-check-card__title-left,.plus-check-card .plus-check-card__title-right{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-check-card .plus-check-card__title-right{vertical-align:middle}.plus-check-card .plus-check-card__description{color:var(--el-text-color-regular);width:100%;word-break:break-all}
4
+ .plus-date-picker{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-date-picker:hover{border-color:var(--el-border-color-hover)}.plus-date-picker.is-focus{border-color:var(--el-color-primary)}.plus-date-picker .plus-date-picker__middle{color:var(--el-text-color-placeholder)}.plus-date-picker .plus-date-picker__start{font-size:14px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.plus-date-picker .plus-date-picker__start .el-input__wrapper{border:none;-webkit-box-shadow:none;box-shadow:none}.plus-date-picker .el-input__wrapper{width:100%}.plus-date-picker .el-input__wrapper.is-focus,.plus-date-picker .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}.plus-date-picker .plus-date-picker__end{font-size:14px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.plus-date-picker .plus-date-picker__end .el-input__wrapper{border:none;-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-date-picker{border-color:var(--el-color-danger)}.el-form-item.is-error .plus-date-picker .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-date-picker .el-input__wrapper.is-focus{-webkit-box-shadow:none!important;box-shadow:none!important}.el-form-item.is-error .plus-date-picker .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}
5
+ .plus-description .plus-description__name{max-width:200px;word-wrap:break-word}.plus-description .plus-description__label{min-width:80px}
6
+
7
+ .plus-form.no-has-label+.el-form-item__label{padding:0;width:0}.plus-form .plus-form__row{width:100%}.plus-form .plus-form__footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.plus-form .plus-form__group__item{margin-bottom:20px}.plus-form .plus-form__group__item .plus-form__group__item__icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-form .plus-form__group__item .plus-form__group__item__icon .el-icon{margin-right:5px}.plus-form .plus-form-item-extra{color:var(--el-text-color-placeholder);font-size:var(--el-font-size-base);margin-bottom:18px}
8
+ .plus-check-card-group{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
9
+ .plus-breadcrumb{margin-bottom:8px}
10
+
11
+ :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid var(--el-border-color)}.plus-header.is-fixed{left:0;position:fixed;top:0;width:100%}.plus-header .plus-header__left{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-header .plus-header__left .plus-header__logo{height:28px}.plus-header .plus-header__left .plus-header__title{color:var(--el-text-color-regular);font-size:18px;font-weight:600;margin:0 0 0 12px;padding:0}.plus-header .plus-header__placeholder{-webkit-box-flex:1;-webkit-flex:1 1 0%;-ms-flex:1 1 0%;flex:1 1 0%}.plus-header .plus-header__right,.plus-header .plus-header__right .plus-header__dropdown-area{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-header .plus-header__right .plus-header__dropdown-area{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-header .plus-header__right .plus-header__avatar{border-radius:50%;height:24px;margin-right:4px;width:24px}.plus-header-placeholder{height:var(--plus-header-height);width:100%}
12
+ .plus-pagination{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:16px 0}
13
+
14
+ .plus-dialog .plus-dialog-footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}
15
+ .plus-form-item{width:100%}.plus-form-item .plus-form-item__label{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-form-item .plus-form-item__label .plus-table-column__label__icon{margin-left:2px}.plus-form-item .plus-form-item-field,.plus-form-item .plus-form-item-field.el-date-editor{width:100%}
16
+ .plus-search.el-form--inline .el-form-item{margin-right:0}.plus-search .plus-search__button__wrapper{-webkit-box-flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:auto;-ms-flex:auto;flex:auto;max-width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.plus-search .plus-search__button__wrapper.el-form-item{margin-right:10px}.plus-search .plus-search__button__wrapper .el-form-item__content{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none}
17
+ :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-layout{height:100vh;overflow:hidden}.plus-layout.el-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.plus-layout .el-main{padding-right:10px}.plus-layout .el-main,.plus-layout .plus-sidebar{height:calc(100vh - var(--plus-header-height))}
18
+ .plus-page .plus-page__table_wrapper{margin-top:20px}
19
+ .plus-steps-form .el-steps{margin-bottom:20px}.plus-steps-form-vertical{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.plus-steps-form-vertical .el-steps--vertical{margin-right:20px}.plus-steps-form-vertical .plus-form{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}
20
+ .plus-input-tag{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);-webkit-box-sizing:border-box;box-sizing:border-box;padding:1px 2px}.plus-input-tag:hover{border-color:var(--el-border-color-hover)}.plus-input-tag.is-focus{border-color:var(--el-color-primary)}.plus-input-tag .plus-input-tag__tag{margin-bottom:1px;margin-right:4px;margin-top:1px}.plus-input-tag .plus-input-tag__input{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1;min-width:85px;padding:0}.plus-input-tag .plus-input-tag__input .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 4px}.plus-input-tag .plus-input-tag__input .el-input__inner{height:24px;line-height:24px}.plus-input-tag .el-input.is-disabled .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-input-tag{border-color:var(--el-color-danger)}.el-form-item.is-error .plus-input-tag .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-input-tag .el-input__wrapper.is-focus{-webkit-box-shadow:none!important;box-shadow:none!important}.el-form-item.is-error .plus-input-tag .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}
21
+ :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-sidebar{height:100%}.plus-sidebar.is-vertical{min-height:400px}.plus-sidebar.is-vertical:not(.el-menu--collapse){-webkit-flex-shrink:0;width:var(--plus-sidebar-width);-ms-flex-negative:0;flex-shrink:0}.plus-sidebar.is-vertical.el-menu--collapse .plus-sidebar__item-title{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.plus-sidebar.is-vertical.el-menu--collapse .el-sub-menu__icon-arrow{display:none}.plus-sidebar.is-vertical .el-scrollbar{height:calc(100% - var(--plus-sidebar-collapse-height))}.plus-sidebar.is-vertical .plus-sidebar__collapse{background-color:var(--el-menu-bg-color);bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--plus-sidebar-collapse-height);left:0;position:absolute;width:calc(var(--plus-sidebar-width) - 1px);-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding)*2 - 1px)}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-active{background-color:var(--el-menu-bg-color)}.plus-sidebar.is-vertical .plus-sidebar__collapse [class*=-icon]{cursor:pointer;font-size:20px;margin-top:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-sidebar.is-horizontal,.plus-sidebar.is-horizontal .el-scrollbar,.plus-sidebar.is-horizontal .el-scrollbar__wrap{width:100%}.plus-sidebar.is-horizontal .el-scrollbar__view{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:100%;width:100%}.plus-sidebar .plus-sidebar__item-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
22
+ .plus-table .plus-table-column .plus-table-column__header .plus-table-column__header__icon{margin-left:2px;margin-top:-2px;vertical-align:middle}.plus-table .plus-table-action-bar.el-table-fixed-column--right{background-color:var(--el-bg-color)}.plus-table .plus-table-action-bar .cell{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-table .plus-table-action-bar .plus-table-action-bar__dropdown__link{cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-table .plus-table-action-bar .plus-table-action-bar__more-text{margin-right:2px}.plus-table .plus-table-action-bar .plus-table-action-bar__column__link{margin-right:10px}.plus-table .plus-table-action-bar .plus-table-action-bar__dropdown{cursor:pointer;margin-left:12px;vertical-align:baseline}.plus-table .plus-table-action-bar .el-link+.el-link{margin-left:12px}.plus-table .plus-table-action-bar .el-icon{cursor:pointer}.plus-table .plus-table-action-bar .el-icon+.el-icon{margin-left:12px}.plus-table .plus-table-column-drag-sort .plus-table-column-drag-icon{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:move;font-size:18px;padding:4px}.plus-table .plus-table-column-index .plus-table-index-column{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;height:20px;white-space:nowrap;width:20px;word-break:keep-all}.plus-table .plus-table-column-index .cell .plus-table-column-index__content,.plus-table .plus-table-column-index .plus-table-index-column{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.plus-table .plus-table-column-index .cell .plus-table-column-index__content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.plus-table .plus-table-title-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:10px}.plus-table .el-popper{max-width:200px}.plus-table-title-bar__toolbar__density{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-table-title-bar__toolbar__density .el-button{margin-top:10px;width:80px}.plus-table-title-bar__toolbar__density .el-button+.el-button{margin-left:0}.plus-table-title-bar__toolbar__icon{color:var(--el-text-color-regular);cursor:pointer;margin-left:10px;vertical-align:middle}.plus-table-title-bar__toolbar__checkbox__item{margin-left:6px}.plus-table-checkbox-item{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-left:20px}.plus-table-checkbox-handle{cursor:move;font-size:18px}.plus-table-ghost-class{background-color:#fff;border:1px dashed var(--el-color-primary);padding:0 5px}
package/lib/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import installer from './defaults';
2
+ export * from '@wlydfe/pro-ui-components';
3
+ export * from '@wlydfe/pro-ui-hooks';
4
+ export * from '@wlydfe/pro-ui-types';
5
+ export * from '@wlydfe/pro-ui-constants';
6
+ export * from '@wlydfe/pro-ui-directives';
7
+ export { version } from './version';
8
+ export declare const install: (app: import("vue").App<any>) => void;
9
+ export default installer;
package/lib/index.js ADDED
@@ -0,0 +1,82 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const defaults = require('./defaults.js');
6
+ require('./components/index.js');
7
+ require('./hooks/index.js');
8
+ require('./types/index.js');
9
+ require('./constants/index.js');
10
+ require('./directives/index.js');
11
+ const version = require('./version.js');
12
+ const index = require('./components/dialog/index.js');
13
+ const index$1 = require('./components/pagination/index.js');
14
+ const index$2 = require('./components/table/index.js');
15
+ const index$3 = require('./components/radio/index.js');
16
+ const index$4 = require('./components/date-picker/index.js');
17
+ const index$5 = require('./components/descriptions/index.js');
18
+ const index$6 = require('./components/display-item/index.js');
19
+ const index$7 = require('./components/form/index.js');
20
+ const index$8 = require('./components/form-item/index.js');
21
+ const index$9 = require('./components/search/index.js');
22
+ const index$a = require('./components/dialog-form/index.js');
23
+ const index$b = require('./components/drawer-form/index.js');
24
+ const index$c = require('./components/page/index.js');
25
+ const index$d = require('./components/popover/index.js');
26
+ const index$e = require('./components/steps-form/index.js');
27
+ const index$f = require('./components/input-tag/index.js');
28
+ const index$g = require('./components/breadcrumb/index.js');
29
+ const index$h = require('./components/sidebar/index.js');
30
+ const index$i = require('./components/header/index.js');
31
+ const index$j = require('./components/layout/index.js');
32
+ const index$k = require('./components/check-card/index.js');
33
+ const index$l = require('./components/check-card-group/index.js');
34
+ const useGetOptions = require('./hooks/useGetOptions.js');
35
+ const useLocale = require('./hooks/useLocale.js');
36
+ const useTable = require('./hooks/useTable.js');
37
+ const page = require('./constants/page.js');
38
+ const form = require('./constants/form.js');
39
+ const index$m = require('./directives/click/index.js');
40
+
41
+ const install = defaults.default.install;
42
+
43
+ exports.default = defaults.default;
44
+ exports.version = version.version;
45
+ exports.PlusDialog = index.PlusDialog;
46
+ exports.PlusPagination = index$1.PlusPagination;
47
+ exports.PlusTable = index$2.PlusTable;
48
+ exports.PlusRadio = index$3.PlusRadio;
49
+ exports.PlusDatePicker = index$4.PlusDatePicker;
50
+ exports.PlusDescriptions = index$5.PlusDescriptions;
51
+ exports.PlusDisplayItem = index$6.PlusDisplayItem;
52
+ exports.PlusForm = index$7.PlusForm;
53
+ exports.PlusFormItem = index$8.PlusFormItem;
54
+ exports.PlusSearch = index$9.PlusSearch;
55
+ exports.PlusDialogForm = index$a.PlusDialogForm;
56
+ exports.PlusDrawerForm = index$b.PlusDrawerForm;
57
+ exports.PlusPage = index$c.PlusPage;
58
+ exports.PlusPopover = index$d.PlusPopover;
59
+ exports.PlusStepsForm = index$e.PlusStepsForm;
60
+ exports.PlusInputTag = index$f.PlusInputTag;
61
+ exports.PlusBreadcrumb = index$g.PlusBreadcrumb;
62
+ exports.PlusSidebar = index$h.PlusSidebar;
63
+ exports.PlusSidebarItem = index$h.PlusSidebarItem;
64
+ exports.PlusHeader = index$i.PlusHeader;
65
+ exports.PlusLayout = index$j.PlusLayout;
66
+ exports.PlusCheckCard = index$k.PlusCheckCard;
67
+ exports.PlusCheckCardGroup = index$l.PlusCheckCardGroup;
68
+ exports.useGetOptions = useGetOptions.useGetOptions;
69
+ exports.buildLocaleContext = useLocale.buildLocaleContext;
70
+ exports.buildTranslator = useLocale.buildTranslator;
71
+ exports.translate = useLocale.translate;
72
+ exports.useLocale = useLocale.useLocale;
73
+ exports.useTable = useTable.useTable;
74
+ exports.DefaultPageInfo = page.DefaultPageInfo;
75
+ exports.DefaultPageSizeList = page.DefaultPageSizeList;
76
+ exports.DatePickerValueIsArrayList = form.DatePickerValueIsArrayList;
77
+ exports.TableFormRefInjectionKey = form.TableFormRefInjectionKey;
78
+ exports.ValueIsArrayList = form.ValueIsArrayList;
79
+ exports.ValueIsBooleanList = form.ValueIsBooleanList;
80
+ exports.ValueIsNumberList = form.ValueIsNumberList;
81
+ exports.Click = index$m.default;
82
+ exports.install = install;
@@ -0,0 +1,9 @@
1
+ export { default as en } from './lang/en';
2
+ export { default as zhCn } from './lang/zh-cn';
3
+ export type Translate = {
4
+ [key: string]: string | string[] | Translate;
5
+ };
6
+ export type Language = {
7
+ name: string;
8
+ plus: Translate;
9
+ };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const en = require('./lang/en.js');
4
+ const zhCn = require('./lang/zh-cn.js');
5
+
6
+
7
+
8
+ exports.en = en.default;
9
+ exports.zhCn = zhCn.default;
@@ -0,0 +1,66 @@
1
+ declare const _default: {
2
+ name: string;
3
+ plus: {
4
+ dialog: {
5
+ confirmText: string;
6
+ cancelText: string;
7
+ title: string;
8
+ };
9
+ datepicker: {
10
+ startPlaceholder: string;
11
+ endPlaceholder: string;
12
+ };
13
+ dialogForm: {
14
+ title: string;
15
+ };
16
+ drawerForm: {
17
+ title: string;
18
+ };
19
+ form: {
20
+ submitText: string;
21
+ resetText: string;
22
+ errorTip: string;
23
+ };
24
+ field: {
25
+ pleaseEnter: string;
26
+ pleaseSelect: string;
27
+ };
28
+ popover: {
29
+ confirmText: string;
30
+ cancelText: string;
31
+ };
32
+ search: {
33
+ searchText: string;
34
+ resetText: string;
35
+ expand: string;
36
+ retract: string;
37
+ };
38
+ table: {
39
+ title: string;
40
+ density: string;
41
+ refresh: string;
42
+ columnSettings: string;
43
+ selectAll: string;
44
+ default: string;
45
+ loose: string;
46
+ compact: string;
47
+ action: string;
48
+ more: string;
49
+ confirmToPerformThisOperation: string;
50
+ prompt: string;
51
+ sort: string;
52
+ };
53
+ stepsForm: {
54
+ nextText: string;
55
+ preText: string;
56
+ submitText: string;
57
+ };
58
+ inputTag: {
59
+ placeholder: string;
60
+ };
61
+ header: {
62
+ logout: string;
63
+ };
64
+ };
65
+ };
66
+ export default _default;
@@ -0,0 +1,71 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const English = {
6
+ name: "en",
7
+ plus: {
8
+ dialog: {
9
+ confirmText: "Yes",
10
+ cancelText: "No",
11
+ title: "Dialog"
12
+ },
13
+ datepicker: {
14
+ startPlaceholder: "Please select start time",
15
+ endPlaceholder: "Please select end time"
16
+ },
17
+ dialogForm: {
18
+ title: "Dialog form"
19
+ },
20
+ drawerForm: {
21
+ title: "Drawer form"
22
+ },
23
+ form: {
24
+ submitText: "Submit",
25
+ resetText: "Reset",
26
+ errorTip: "Please complete the form and submit again!"
27
+ },
28
+ field: {
29
+ pleaseEnter: "Please enter",
30
+ pleaseSelect: "Please select"
31
+ },
32
+ popover: {
33
+ confirmText: "Yes",
34
+ cancelText: "No"
35
+ },
36
+ search: {
37
+ searchText: "Search",
38
+ resetText: "Reset",
39
+ expand: "Expand",
40
+ retract: "Retract"
41
+ },
42
+ table: {
43
+ title: "Table",
44
+ density: "Density",
45
+ refresh: "Refresh",
46
+ columnSettings: "Column settings",
47
+ selectAll: "Select all",
48
+ default: "Default",
49
+ loose: "Loose",
50
+ compact: "Compact",
51
+ action: "Action",
52
+ more: "More",
53
+ confirmToPerformThisOperation: "Confirm to perform this operation?",
54
+ prompt: "Prompt",
55
+ sort: "Sort"
56
+ },
57
+ stepsForm: {
58
+ nextText: "Next step",
59
+ preText: "Previous step",
60
+ submitText: "Submit"
61
+ },
62
+ inputTag: {
63
+ placeholder: "Please enter keywords and press enter or space key"
64
+ },
65
+ header: {
66
+ logout: "logout"
67
+ }
68
+ }
69
+ };
70
+
71
+ exports.default = English;
@@ -0,0 +1,66 @@
1
+ declare const _default: {
2
+ name: string;
3
+ plus: {
4
+ dialog: {
5
+ confirmText: string;
6
+ cancelText: string;
7
+ title: string;
8
+ };
9
+ datepicker: {
10
+ startPlaceholder: string;
11
+ endPlaceholder: string;
12
+ };
13
+ dialogForm: {
14
+ title: string;
15
+ };
16
+ drawerForm: {
17
+ title: string;
18
+ };
19
+ form: {
20
+ submitText: string;
21
+ resetText: string;
22
+ errorTip: string;
23
+ };
24
+ field: {
25
+ pleaseEnter: string;
26
+ pleaseSelect: string;
27
+ };
28
+ popover: {
29
+ confirmText: string;
30
+ cancelText: string;
31
+ };
32
+ search: {
33
+ searchText: string;
34
+ resetText: string;
35
+ expand: string;
36
+ retract: string;
37
+ };
38
+ table: {
39
+ title: string;
40
+ density: string;
41
+ refresh: string;
42
+ columnSettings: string;
43
+ selectAll: string;
44
+ default: string;
45
+ loose: string;
46
+ compact: string;
47
+ action: string;
48
+ more: string;
49
+ confirmToPerformThisOperation: string;
50
+ prompt: string;
51
+ sort: string;
52
+ };
53
+ stepsForm: {
54
+ nextText: string;
55
+ preText: string;
56
+ submitText: string;
57
+ };
58
+ inputTag: {
59
+ placeholder: string;
60
+ };
61
+ header: {
62
+ logout: string;
63
+ };
64
+ };
65
+ };
66
+ export default _default;