@vrojs/element-plus 0.0.2 → 0.0.3

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 (359) hide show
  1. package/dist/index.d.ts +16 -0
  2. package/dist/index.js +88 -0
  3. package/dist/locale/index.d.ts +3 -0
  4. package/dist/locale/index.js +7 -0
  5. package/dist/locale/lang/zh-cn.d.ts +47 -0
  6. package/dist/locale/lang/zh-cn.js +49 -0
  7. package/dist/locale/types.d.ts +7 -0
  8. package/dist/locale/types.js +1 -0
  9. package/dist/locale/useLocale.d.ts +53 -0
  10. package/dist/locale/useLocale.js +24 -0
  11. package/dist/style/css.js +4 -0
  12. package/dist/style/deps.js +26 -0
  13. package/dist/style/index.css +1 -0
  14. package/dist/style/index.d.ts +0 -0
  15. package/dist/style/index.js +30 -0
  16. package/dist/utils/datePickerValueFormat.d.ts +1 -0
  17. package/dist/utils/datePickerValueFormat.js +9 -0
  18. package/dist/utils/index.d.ts +2 -0
  19. package/dist/utils/index.js +6 -0
  20. package/dist/vro-el-checkbox-group/index.d.ts +122 -0
  21. package/dist/vro-el-checkbox-group/index.js +9 -0
  22. package/dist/vro-el-checkbox-group/style/css.d.ts +0 -0
  23. package/dist/vro-el-checkbox-group/style/css.js +3 -0
  24. package/dist/vro-el-checkbox-group/style/deps.d.ts +0 -0
  25. package/dist/vro-el-checkbox-group/style/deps.js +2 -0
  26. package/dist/vro-el-checkbox-group/style/index.d.ts +0 -0
  27. package/dist/vro-el-checkbox-group/style/index.js +5 -0
  28. package/dist/vro-el-checkbox-group/types.d.ts +50 -0
  29. package/dist/vro-el-checkbox-group/types.js +16 -0
  30. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +115 -0
  31. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +34 -0
  32. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue2.js +4 -0
  33. package/dist/vro-el-config-provider/index.d.ts +46 -0
  34. package/dist/vro-el-config-provider/index.js +9 -0
  35. package/dist/vro-el-config-provider/style/css.d.ts +0 -0
  36. package/dist/vro-el-config-provider/style/css.js +3 -0
  37. package/dist/vro-el-config-provider/style/deps.d.ts +0 -0
  38. package/dist/vro-el-config-provider/style/deps.js +1 -0
  39. package/dist/vro-el-config-provider/style/index.d.ts +0 -0
  40. package/dist/vro-el-config-provider/style/index.js +3 -0
  41. package/dist/vro-el-config-provider/types.d.ts +14 -0
  42. package/dist/vro-el-config-provider/types.js +13 -0
  43. package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +29 -0
  44. package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +17 -0
  45. package/dist/vro-el-config-provider/vro-el-config-provider.vue2.js +4 -0
  46. package/dist/vro-el-file-upload/index.d.ts +44 -0
  47. package/dist/vro-el-file-upload/index.js +12 -0
  48. package/dist/vro-el-file-upload/style/css.d.ts +0 -0
  49. package/dist/vro-el-file-upload/style/css.js +4 -0
  50. package/dist/vro-el-file-upload/style/deps.d.ts +0 -0
  51. package/dist/vro-el-file-upload/style/deps.js +2 -0
  52. package/dist/vro-el-file-upload/style/index.css +1 -0
  53. package/dist/vro-el-file-upload/style/index.d.ts +0 -0
  54. package/dist/vro-el-file-upload/style/index.js +6 -0
  55. package/dist/vro-el-file-upload/types.d.ts +39 -0
  56. package/dist/vro-el-file-upload/types.js +35 -0
  57. package/dist/vro-el-file-upload/utils.d.ts +2 -0
  58. package/dist/vro-el-file-upload/utils.js +6 -0
  59. package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +36 -0
  60. package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +86 -0
  61. package/dist/vro-el-file-upload/vro-el-file-upload.vue2.js +4 -0
  62. package/dist/vro-el-icon/index.d.ts +82 -0
  63. package/dist/vro-el-icon/index.js +9 -0
  64. package/dist/vro-el-icon/style/css.d.ts +0 -0
  65. package/dist/vro-el-icon/style/css.js +3 -0
  66. package/dist/vro-el-icon/style/deps.d.ts +0 -0
  67. package/dist/vro-el-icon/style/deps.js +1 -0
  68. package/dist/vro-el-icon/style/index.d.ts +0 -0
  69. package/dist/vro-el-icon/style/index.js +4 -0
  70. package/dist/vro-el-icon/types.d.ts +20 -0
  71. package/dist/vro-el-icon/types.js +11 -0
  72. package/dist/vro-el-icon/vro-el-icon.vue.d.ts +53 -0
  73. package/dist/vro-el-icon/vro-el-icon.vue.js +33 -0
  74. package/dist/vro-el-icon/vro-el-icon.vue2.js +4 -0
  75. package/dist/vro-el-image-upload/index.d.ts +50 -0
  76. package/dist/vro-el-image-upload/index.js +12 -0
  77. package/dist/vro-el-image-upload/style/css.d.ts +0 -0
  78. package/dist/vro-el-image-upload/style/css.js +4 -0
  79. package/dist/vro-el-image-upload/style/deps.d.ts +0 -0
  80. package/dist/vro-el-image-upload/style/deps.js +4 -0
  81. package/dist/vro-el-image-upload/style/index.css +1 -0
  82. package/dist/vro-el-image-upload/style/index.d.ts +0 -0
  83. package/dist/vro-el-image-upload/style/index.js +8 -0
  84. package/dist/vro-el-image-upload/types.d.ts +38 -0
  85. package/dist/vro-el-image-upload/types.js +25 -0
  86. package/dist/vro-el-image-upload/utils.d.ts +2 -0
  87. package/dist/vro-el-image-upload/utils.js +6 -0
  88. package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +42 -0
  89. package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +126 -0
  90. package/dist/vro-el-image-upload/vro-el-image-upload.vue2.js +4 -0
  91. package/dist/vro-el-radio-group/index.d.ts +79 -0
  92. package/dist/vro-el-radio-group/index.js +9 -0
  93. package/dist/vro-el-radio-group/style/css.d.ts +0 -0
  94. package/dist/vro-el-radio-group/style/css.js +3 -0
  95. package/dist/vro-el-radio-group/style/deps.d.ts +0 -0
  96. package/dist/vro-el-radio-group/style/deps.js +2 -0
  97. package/dist/vro-el-radio-group/style/index.d.ts +0 -0
  98. package/dist/vro-el-radio-group/style/index.js +5 -0
  99. package/dist/vro-el-radio-group/types.d.ts +38 -0
  100. package/dist/vro-el-radio-group/types.js +25 -0
  101. package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +72 -0
  102. package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +34 -0
  103. package/dist/vro-el-radio-group/vro-el-radio-group.vue2.js +4 -0
  104. package/dist/vro-el-schema-filter/index.d.ts +596 -0
  105. package/dist/vro-el-schema-filter/index.js +9 -0
  106. package/dist/vro-el-schema-filter/style/css.d.ts +0 -0
  107. package/dist/vro-el-schema-filter/style/css.js +16 -0
  108. package/dist/vro-el-schema-filter/style/deps.d.ts +0 -0
  109. package/dist/vro-el-schema-filter/style/deps.js +22 -0
  110. package/dist/vro-el-schema-filter/style/index.css +1 -0
  111. package/dist/vro-el-schema-filter/style/index.d.ts +0 -0
  112. package/dist/vro-el-schema-filter/style/index.js +38 -0
  113. package/dist/vro-el-schema-filter/types.d.ts +41 -0
  114. package/dist/vro-el-schema-filter/types.js +26 -0
  115. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +983 -0
  116. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +71 -0
  117. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue2.js +4 -0
  118. package/dist/vro-el-schema-form/defineVroElSchemaFormCreateField.d.ts +2 -0
  119. package/dist/vro-el-schema-form/defineVroElSchemaFormCreateField.js +9 -0
  120. package/dist/vro-el-schema-form/defineVroElSchemaFormFieldTrigger.d.ts +9 -0
  121. package/dist/vro-el-schema-form/defineVroElSchemaFormFieldTrigger.js +6 -0
  122. package/dist/vro-el-schema-form/index.d.ts +563 -0
  123. package/dist/vro-el-schema-form/index.js +17 -0
  124. package/dist/vro-el-schema-form/style/css.d.ts +0 -0
  125. package/dist/vro-el-schema-form/style/css.js +14 -0
  126. package/dist/vro-el-schema-form/style/deps.d.ts +0 -0
  127. package/dist/vro-el-schema-form/style/deps.js +22 -0
  128. package/dist/vro-el-schema-form/style/index.css +1 -0
  129. package/dist/vro-el-schema-form/style/index.d.ts +0 -0
  130. package/dist/vro-el-schema-form/style/index.js +36 -0
  131. package/dist/vro-el-schema-form/types.d.ts +114 -0
  132. package/dist/vro-el-schema-form/types.js +42 -0
  133. package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +908 -0
  134. package/dist/vro-el-schema-form/useVroElSchemaForm.js +31 -0
  135. package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +391 -0
  136. package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +120 -0
  137. package/dist/vro-el-schema-form/vro-el-schema-form.vue2.js +4 -0
  138. package/dist/vro-el-schema-form/vroElSchemaFormFieldManager.d.ts +2 -0
  139. package/dist/vro-el-schema-form/vroElSchemaFormFieldManager.js +32 -0
  140. package/dist/vro-el-schema-form-dialog/function-call.d.ts +3 -0
  141. package/dist/vro-el-schema-form-dialog/function-call.js +17 -0
  142. package/dist/vro-el-schema-form-dialog/index.d.ts +2182 -0
  143. package/dist/vro-el-schema-form-dialog/index.js +18 -0
  144. package/dist/vro-el-schema-form-dialog/injection.d.ts +9 -0
  145. package/dist/vro-el-schema-form-dialog/injection.js +9 -0
  146. package/dist/vro-el-schema-form-dialog/style/css.d.ts +0 -0
  147. package/dist/vro-el-schema-form-dialog/style/css.js +18 -0
  148. package/dist/vro-el-schema-form-dialog/style/deps.d.ts +0 -0
  149. package/dist/vro-el-schema-form-dialog/style/deps.js +24 -0
  150. package/dist/vro-el-schema-form-dialog/style/index.css +1 -0
  151. package/dist/vro-el-schema-form-dialog/style/index.d.ts +0 -0
  152. package/dist/vro-el-schema-form-dialog/style/index.js +42 -0
  153. package/dist/vro-el-schema-form-dialog/types.d.ts +79 -0
  154. package/dist/vro-el-schema-form-dialog/types.js +59 -0
  155. package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.d.ts +14 -0
  156. package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.js +18 -0
  157. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +1794 -0
  158. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +135 -0
  159. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue2.js +4 -0
  160. package/dist/vro-el-select/index.d.ts +259 -0
  161. package/dist/vro-el-select/index.js +9 -0
  162. package/dist/vro-el-select/style/css.d.ts +0 -0
  163. package/dist/vro-el-select/style/css.js +3 -0
  164. package/dist/vro-el-select/style/deps.d.ts +0 -0
  165. package/dist/vro-el-select/style/deps.js +2 -0
  166. package/dist/vro-el-select/style/index.d.ts +0 -0
  167. package/dist/vro-el-select/style/index.js +5 -0
  168. package/dist/vro-el-select/types.d.ts +105 -0
  169. package/dist/vro-el-select/types.js +16 -0
  170. package/dist/vro-el-select/vro-el-select.vue.d.ts +252 -0
  171. package/dist/vro-el-select/vro-el-select.vue.js +30 -0
  172. package/dist/vro-el-select/vro-el-select.vue2.js +4 -0
  173. package/dist/vro-el-skeleton/index.d.ts +154 -0
  174. package/dist/vro-el-skeleton/index.js +9 -0
  175. package/dist/vro-el-skeleton/style/css.d.ts +0 -0
  176. package/dist/vro-el-skeleton/style/css.js +5 -0
  177. package/dist/vro-el-skeleton/style/deps.d.ts +0 -0
  178. package/dist/vro-el-skeleton/style/deps.js +3 -0
  179. package/dist/vro-el-skeleton/style/index.css +1 -0
  180. package/dist/vro-el-skeleton/style/index.d.ts +0 -0
  181. package/dist/vro-el-skeleton/style/index.js +8 -0
  182. package/dist/vro-el-skeleton/types.d.ts +72 -0
  183. package/{src/vro-el-skeleton/types.ts → dist/vro-el-skeleton/types.js} +15 -29
  184. package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +95 -0
  185. package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +85 -0
  186. package/dist/vro-el-skeleton/vro-el-skeleton.vue2.js +4 -0
  187. package/dist/vro-el-tags/index.d.ts +223 -0
  188. package/dist/vro-el-tags/index.js +9 -0
  189. package/dist/vro-el-tags/style/css.d.ts +0 -0
  190. package/dist/vro-el-tags/style/css.js +3 -0
  191. package/dist/vro-el-tags/style/deps.d.ts +0 -0
  192. package/dist/vro-el-tags/style/deps.js +3 -0
  193. package/dist/vro-el-tags/style/index.d.ts +0 -0
  194. package/dist/vro-el-tags/style/index.js +6 -0
  195. package/dist/vro-el-tags/types.d.ts +18 -0
  196. package/dist/vro-el-tags/types.js +19 -0
  197. package/dist/vro-el-tags/vro-el-tags.vue.d.ts +217 -0
  198. package/dist/vro-el-tags/vro-el-tags.vue.js +62 -0
  199. package/dist/vro-el-tags/vro-el-tags.vue2.js +4 -0
  200. package/dist/vro-el-tree/index.d.ts +86 -0
  201. package/dist/vro-el-tree/index.js +9 -0
  202. package/dist/vro-el-tree/style/css.d.ts +0 -0
  203. package/dist/vro-el-tree/style/css.js +4 -0
  204. package/dist/vro-el-tree/style/deps.d.ts +0 -0
  205. package/dist/vro-el-tree/style/deps.js +1 -0
  206. package/dist/vro-el-tree/style/index.css +1 -0
  207. package/dist/vro-el-tree/style/index.d.ts +0 -0
  208. package/dist/vro-el-tree/style/index.js +5 -0
  209. package/dist/vro-el-tree/types.d.ts +32 -0
  210. package/dist/vro-el-tree/types.js +26 -0
  211. package/dist/vro-el-tree/vro-el-tree.vue.d.ts +52 -0
  212. package/dist/vro-el-tree/vro-el-tree.vue.js +56 -0
  213. package/dist/vro-el-tree/vro-el-tree.vue2.js +4 -0
  214. package/dist/vro-el-with-config/index.d.ts +32 -0
  215. package/dist/vro-el-with-config/index.js +9 -0
  216. package/dist/vro-el-with-config/style/css.d.ts +0 -0
  217. package/dist/vro-el-with-config/style/css.js +4 -0
  218. package/dist/vro-el-with-config/style/deps.d.ts +0 -0
  219. package/dist/vro-el-with-config/style/deps.js +1 -0
  220. package/dist/vro-el-with-config/style/index.d.ts +0 -0
  221. package/dist/vro-el-with-config/style/index.js +5 -0
  222. package/dist/vro-el-with-config/types.d.ts +15 -0
  223. package/dist/vro-el-with-config/types.js +14 -0
  224. package/dist/vro-el-with-config/vro-el-with-config.vue.d.ts +25 -0
  225. package/dist/vro-el-with-config/vro-el-with-config.vue.js +32 -0
  226. package/dist/vro-el-with-config/vro-el-with-config.vue2.js +4 -0
  227. package/package.json +18 -12
  228. package/src/index.ts +0 -18
  229. package/src/locale/index.ts +0 -3
  230. package/src/locale/lang/zh-cn.ts +0 -46
  231. package/src/locale/types.ts +0 -8
  232. package/src/locale/useLocale.ts +0 -42
  233. package/src/style/base.scss +0 -2
  234. package/src/style/css.ts +0 -2
  235. package/src/style/deps.ts +0 -14
  236. package/src/style/index.scss +0 -17
  237. package/src/style/index.ts +0 -2
  238. package/src/utils/datePickerValueFormat.ts +0 -6
  239. package/src/utils/index.ts +0 -2
  240. package/src/vro-el-checkbox-group/README.md +0 -83
  241. package/src/vro-el-checkbox-group/index.ts +0 -16
  242. package/src/vro-el-checkbox-group/style/css.ts +0 -2
  243. package/src/vro-el-checkbox-group/style/deps.ts +0 -2
  244. package/src/vro-el-checkbox-group/style/index.scss +0 -1
  245. package/src/vro-el-checkbox-group/style/index.ts +0 -2
  246. package/src/vro-el-checkbox-group/types.ts +0 -18
  247. package/src/vro-el-checkbox-group/vro-el-checkbox-group.vue +0 -33
  248. package/src/vro-el-config-provider/README.md +0 -65
  249. package/src/vro-el-config-provider/index.ts +0 -16
  250. package/src/vro-el-config-provider/style/css.ts +0 -2
  251. package/src/vro-el-config-provider/style/index.ts +0 -2
  252. package/src/vro-el-config-provider/types.ts +0 -18
  253. package/src/vro-el-config-provider/vro-el-config-provider.vue +0 -19
  254. package/src/vro-el-file-upload/README.md +0 -89
  255. package/src/vro-el-file-upload/index.ts +0 -17
  256. package/src/vro-el-file-upload/style/css.ts +0 -2
  257. package/src/vro-el-file-upload/style/deps.ts +0 -2
  258. package/src/vro-el-file-upload/style/index.scss +0 -30
  259. package/src/vro-el-file-upload/style/index.ts +0 -2
  260. package/src/vro-el-file-upload/types.ts +0 -50
  261. package/src/vro-el-file-upload/utils.ts +0 -7
  262. package/src/vro-el-file-upload/vro-el-file-upload.vue +0 -95
  263. package/src/vro-el-icon/README.md +0 -68
  264. package/src/vro-el-icon/index.ts +0 -16
  265. package/src/vro-el-icon/style/css.ts +0 -2
  266. package/src/vro-el-icon/style/deps.ts +0 -1
  267. package/src/vro-el-icon/style/index.scss +0 -1
  268. package/src/vro-el-icon/style/index.ts +0 -2
  269. package/src/vro-el-icon/types.ts +0 -12
  270. package/src/vro-el-icon/vro-el-icon.vue +0 -28
  271. package/src/vro-el-image-upload/README.md +0 -99
  272. package/src/vro-el-image-upload/index.ts +0 -17
  273. package/src/vro-el-image-upload/style/css.ts +0 -2
  274. package/src/vro-el-image-upload/style/deps.ts +0 -4
  275. package/src/vro-el-image-upload/style/index.scss +0 -55
  276. package/src/vro-el-image-upload/style/index.ts +0 -2
  277. package/src/vro-el-image-upload/types.ts +0 -42
  278. package/src/vro-el-image-upload/utils.ts +0 -7
  279. package/src/vro-el-image-upload/vro-el-image-upload.vue +0 -134
  280. package/src/vro-el-radio-group/README.md +0 -83
  281. package/src/vro-el-radio-group/index.ts +0 -16
  282. package/src/vro-el-radio-group/style/css.ts +0 -2
  283. package/src/vro-el-radio-group/style/deps.ts +0 -2
  284. package/src/vro-el-radio-group/style/index.scss +0 -1
  285. package/src/vro-el-radio-group/style/index.ts +0 -2
  286. package/src/vro-el-radio-group/types.ts +0 -29
  287. package/src/vro-el-radio-group/vro-el-radio-group.vue +0 -34
  288. package/src/vro-el-schema-filter/README.md +0 -146
  289. package/src/vro-el-schema-filter/index.ts +0 -16
  290. package/src/vro-el-schema-filter/style/css.ts +0 -3
  291. package/src/vro-el-schema-filter/style/deps.ts +0 -4
  292. package/src/vro-el-schema-filter/style/index.scss +0 -20
  293. package/src/vro-el-schema-filter/style/index.ts +0 -2
  294. package/src/vro-el-schema-filter/types.ts +0 -31
  295. package/src/vro-el-schema-filter/vro-el-schema-filter.vue +0 -64
  296. package/src/vro-el-schema-form/README.md +0 -207
  297. package/src/vro-el-schema-form/defineVroElSchemaFormCreateField.ts +0 -12
  298. package/src/vro-el-schema-form/defineVroElSchemaFormFieldTrigger.ts +0 -9
  299. package/src/vro-el-schema-form/index.ts +0 -20
  300. package/src/vro-el-schema-form/style/css.ts +0 -9
  301. package/src/vro-el-schema-form/style/deps.ts +0 -20
  302. package/src/vro-el-schema-form/style/index.scss +0 -4
  303. package/src/vro-el-schema-form/style/index.ts +0 -2
  304. package/src/vro-el-schema-form/types.ts +0 -171
  305. package/src/vro-el-schema-form/useVroElSchemaForm.ts +0 -48
  306. package/src/vro-el-schema-form/vro-el-schema-form.vue +0 -177
  307. package/src/vro-el-schema-form/vroElSchemaFormFieldManager.ts +0 -59
  308. package/src/vro-el-schema-form-dialog/README.md +0 -173
  309. package/src/vro-el-schema-form-dialog/function-call.ts +0 -20
  310. package/src/vro-el-schema-form-dialog/index.ts +0 -22
  311. package/src/vro-el-schema-form-dialog/injection.ts +0 -10
  312. package/src/vro-el-schema-form-dialog/style/css.ts +0 -4
  313. package/src/vro-el-schema-form-dialog/style/deps.ts +0 -4
  314. package/src/vro-el-schema-form-dialog/style/index.scss +0 -4
  315. package/src/vro-el-schema-form-dialog/style/index.ts +0 -2
  316. package/src/vro-el-schema-form-dialog/types.ts +0 -73
  317. package/src/vro-el-schema-form-dialog/useVroElSchemaFormDialog.ts +0 -52
  318. package/src/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue +0 -142
  319. package/src/vro-el-select/README.md +0 -83
  320. package/src/vro-el-select/index.ts +0 -16
  321. package/src/vro-el-select/style/css.ts +0 -2
  322. package/src/vro-el-select/style/deps.ts +0 -2
  323. package/src/vro-el-select/style/index.scss +0 -1
  324. package/src/vro-el-select/style/index.ts +0 -2
  325. package/src/vro-el-select/types.ts +0 -18
  326. package/src/vro-el-select/vro-el-select.vue +0 -33
  327. package/src/vro-el-skeleton/README.md +0 -128
  328. package/src/vro-el-skeleton/index.ts +0 -16
  329. package/src/vro-el-skeleton/style/css.ts +0 -3
  330. package/src/vro-el-skeleton/style/deps.ts +0 -3
  331. package/src/vro-el-skeleton/style/index.scss +0 -24
  332. package/src/vro-el-skeleton/style/index.ts +0 -2
  333. package/src/vro-el-skeleton/vro-el-skeleton.vue +0 -73
  334. package/src/vro-el-tags/README.md +0 -73
  335. package/src/vro-el-tags/index.ts +0 -16
  336. package/src/vro-el-tags/style/css.ts +0 -2
  337. package/src/vro-el-tags/style/deps.ts +0 -3
  338. package/src/vro-el-tags/style/index.scss +0 -1
  339. package/src/vro-el-tags/style/index.ts +0 -2
  340. package/src/vro-el-tags/types.ts +0 -21
  341. package/src/vro-el-tags/vro-el-tags.vue +0 -69
  342. package/src/vro-el-tree/README.md +0 -85
  343. package/src/vro-el-tree/index.ts +0 -16
  344. package/src/vro-el-tree/style/css.ts +0 -2
  345. package/src/vro-el-tree/style/deps.ts +0 -1
  346. package/src/vro-el-tree/style/index.scss +0 -3
  347. package/src/vro-el-tree/style/index.ts +0 -2
  348. package/src/vro-el-tree/types.ts +0 -38
  349. package/src/vro-el-tree/vro-el-tree.vue +0 -78
  350. package/src/vro-el-with-config/README.md +0 -75
  351. package/src/vro-el-with-config/index.ts +0 -16
  352. package/src/vro-el-with-config/style/css.ts +0 -3
  353. package/src/vro-el-with-config/style/deps.ts +0 -2
  354. package/src/vro-el-with-config/style/index.ts +0 -2
  355. package/src/vro-el-with-config/types.ts +0 -18
  356. package/src/vro-el-with-config/vro-el-with-config.vue +0 -48
  357. /package/{src/vro-el-config-provider/style/deps.ts → dist/style/base.css} +0 -0
  358. /package/{src/vro-el-config-provider/style/index.scss → dist/style/css.d.ts} +0 -0
  359. /package/{src/vro-el-with-config/style/index.scss → dist/style/deps.d.ts} +0 -0
@@ -0,0 +1,15 @@
1
+ import { ConfigProviderProps } from 'element-plus';
2
+ import { Component, ExtractPropTypes, PropType } from 'vue';
3
+ import { VroElConfigProviderProps } from '../vro-el-config-provider';
4
+ export declare const vroElWithConfigProps: {
5
+ elConfigProps: {
6
+ type: PropType<Partial<ConfigProviderProps>>;
7
+ default: () => {};
8
+ };
9
+ vroConfigProps: {
10
+ type: PropType<Partial<VroElConfigProviderProps>>;
11
+ default: () => {};
12
+ };
13
+ is: PropType<string | Component>;
14
+ };
15
+ export type VroElWithConfigProps = ExtractPropTypes<typeof vroElWithConfigProps>;
@@ -0,0 +1,14 @@
1
+ const t = {
2
+ elConfigProps: {
3
+ type: Object,
4
+ default: () => ({})
5
+ },
6
+ vroConfigProps: {
7
+ type: Object,
8
+ default: () => ({})
9
+ },
10
+ is: [String, Object]
11
+ };
12
+ export {
13
+ t as vroElWithConfigProps
14
+ };
@@ -0,0 +1,25 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ elConfigProps: {
3
+ type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
4
+ default: () => {};
5
+ };
6
+ vroConfigProps: {
7
+ type: import('vue').PropType<Partial<import('..').VroElConfigProviderProps>>;
8
+ default: () => {};
9
+ };
10
+ is: import('vue').PropType<string | import('vue').Component>;
11
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ elConfigProps: {
13
+ type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
14
+ default: () => {};
15
+ };
16
+ vroConfigProps: {
17
+ type: import('vue').PropType<Partial<import('..').VroElConfigProviderProps>>;
18
+ default: () => {};
19
+ };
20
+ is: import('vue').PropType<string | import('vue').Component>;
21
+ }>> & Readonly<{}>, {
22
+ elConfigProps: Partial<import('element-plus').ConfigProviderProps>;
23
+ vroConfigProps: Partial<import('..').VroElConfigProviderProps>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { defineComponent as u, useAttrs as m, useSlots as g, ref as d, createBlock as C, openBlock as v, h as t } from "vue";
2
+ import { ElConfigProvider as _ } from "element-plus";
3
+ import { VroElConfigProvider as P } from "../vro-el-config-provider/index.js";
4
+ import { vroElWithConfigProps as h } from "./types.js";
5
+ const w = /* @__PURE__ */ u({
6
+ name: "VroElWithConfig",
7
+ __name: "vro-el-with-config",
8
+ props: h,
9
+ setup(i, { expose: f }) {
10
+ const r = i, a = m(), n = g(), o = d();
11
+ f(
12
+ new Proxy(
13
+ {},
14
+ {
15
+ get(s, e) {
16
+ return o.value?.[e];
17
+ },
18
+ has(s, e) {
19
+ return o.value ? e in o.value : !1;
20
+ }
21
+ }
22
+ )
23
+ );
24
+ const l = () => r.is ? t(r.is, { ...a, ref: o }, n) : n.default?.(), p = () => t(P, r.vroConfigProps, {
25
+ default: l
26
+ }), c = () => t(_, r.elConfigProps, p);
27
+ return (s, e) => (v(), C(c));
28
+ }
29
+ });
30
+ export {
31
+ w as default
32
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./vro-el-with-config.vue.js";
2
+ export {
3
+ f as default
4
+ };
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@vrojs/element-plus",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "vrojs ui",
5
- "main": "src/index.ts",
6
- "types": "src/index.ts",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
7
9
  "files": [
8
- "src",
9
- "!src/**/demo",
10
- "!src/**/README.md"
10
+ "dist"
11
11
  ],
12
12
  "sideEffects": [
13
- "src/**/style/*"
13
+ "dist/**/style/*",
14
+ "dist/**/*.css"
14
15
  ],
15
16
  "keywords": [
16
17
  "vro",
@@ -35,22 +36,27 @@
35
36
  "@element-plus/icons-vue": ">=2.3.2",
36
37
  "element-plus": ">=2.11.9",
37
38
  "vue": ">=3.0.0",
38
- "@vrojs/base": "0.0.1",
39
- "@vrojs/use": "0.0.1"
39
+ "@vrojs/base": "0.0.2",
40
+ "@vrojs/use": "0.0.2"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@daysnap/banana": "^0.0.15",
43
44
  "@daysnap/utils": "^0.1.34",
44
45
  "@element-plus/icons-vue": "^2.3.2",
46
+ "@vitejs/plugin-vue": "^6.0.1",
45
47
  "element-plus": "^2.11.9",
46
48
  "rimraf": "^6.0.1",
47
49
  "typescript": "^5.9.3",
50
+ "vite": "^7.1.12",
51
+ "vite-plugin-dts": "^4.5.4",
48
52
  "vue": "^3.5.22",
49
- "@vrojs/base": "0.0.1",
50
- "@vrojs/use": "0.0.1"
53
+ "@vrojs/base": "0.0.2",
54
+ "@vrojs/use": "0.0.2"
51
55
  },
52
56
  "scripts": {
53
- "release": "dsc publish --pnpm",
57
+ "build": "npm run clean && vite build",
58
+ "clean": "rimraf ./dist",
59
+ "release": "npm run build && dsc publish --pnpm",
54
60
  "sync": "dsc sync"
55
61
  }
56
62
  }
package/src/index.ts DELETED
@@ -1,18 +0,0 @@
1
- /* 本文件自动生成 './scripts/index.ts' */
2
-
3
- export * from './locale'
4
- export * from './utils'
5
- export * from './vro-el-checkbox-group'
6
- export * from './vro-el-config-provider'
7
- export * from './vro-el-file-upload'
8
- export * from './vro-el-icon'
9
- export * from './vro-el-image-upload'
10
- export * from './vro-el-radio-group'
11
- export * from './vro-el-schema-filter'
12
- export * from './vro-el-schema-form'
13
- export * from './vro-el-schema-form-dialog'
14
- export * from './vro-el-select'
15
- export * from './vro-el-skeleton'
16
- export * from './vro-el-tags'
17
- export * from './vro-el-tree'
18
- export * from './vro-el-with-config'
@@ -1,3 +0,0 @@
1
- export { default as zhCN } from './lang/zh-cn'
2
- export * from './types'
3
- export * from './useLocale'
@@ -1,46 +0,0 @@
1
- export default {
2
- name: 'zh-cn',
3
- el: {
4
- table: {
5
- refresh: '刷新',
6
- description: '当前颜色 {color},按 Enter 键选择新颜色',
7
- },
8
- skeleton: {
9
- loadingDescription: '正在加载数据...',
10
- emptyDescription: '暂无数据',
11
- emptyBtnText: '刷新',
12
- errorTitle: '哦嗬!出错了哦~',
13
- errorBtnText: '刷新',
14
- },
15
- fileUpload: {
16
- btnText: '上传',
17
- },
18
- imageUpload: {
19
- compressText: '是否压缩',
20
- },
21
- tags: {
22
- addText: '新增',
23
- },
24
- schemaForm: {
25
- ElInput: {
26
- placeholder: '请填写',
27
- },
28
- ElSelect: {
29
- placeholder: '请选择',
30
- },
31
- ElDatePicker: {
32
- placeholder: '请选择',
33
- startPlaceholder: '请选择',
34
- endPlaceholder: '请选择',
35
- },
36
- },
37
- schemaFilter: {
38
- searchText: '搜索',
39
- resetText: '重置',
40
- },
41
- schemaFormDialog: {
42
- cancelText: '取消',
43
- confirmText: '确认',
44
- },
45
- },
46
- }
@@ -1,8 +0,0 @@
1
- export type TranslatePair = {
2
- [key: string]: string | string[] | TranslatePair
3
- }
4
-
5
- export type Locale = {
6
- name: string
7
- el: TranslatePair
8
- }
@@ -1,42 +0,0 @@
1
- import { computed, inject, type InjectionKey, type Ref } from 'vue'
2
-
3
- import zhCN from './lang/zh-cn'
4
- import type { Locale, TranslatePair } from './types'
5
-
6
- export const localeContextKey: InjectionKey<Ref<Locale | undefined>> = Symbol('localeContextKey')
7
-
8
- export function useLocale() {
9
- const injectedLocale = inject(localeContextKey, undefined)
10
-
11
- const locale = computed(() => injectedLocale?.value ?? zhCN)
12
-
13
- const t = (path: string, option?: Record<string, string | number>) => {
14
- const value = get(locale.value.el, path)
15
-
16
- if (typeof value !== 'string') {
17
- return path
18
- }
19
-
20
- if (!option) {
21
- return value
22
- }
23
-
24
- return value.replace(/\{(\w+)\}/g, (_, key) => `${option[key] ?? `{${key}}`}`)
25
- }
26
-
27
- return {
28
- locale,
29
- lang: computed(() => locale.value.name),
30
- t,
31
- }
32
- }
33
-
34
- function get(source: TranslatePair, path: string) {
35
- return path.split('.').reduce<TranslatePair[string] | undefined>((res, key) => {
36
- if (res && typeof res === 'object' && !Array.isArray(res)) {
37
- return res[key]
38
- }
39
-
40
- return undefined
41
- }, source)
42
- }
@@ -1,2 +0,0 @@
1
- :root {
2
- }
package/src/style/css.ts DELETED
@@ -1,2 +0,0 @@
1
- import './base.scss'
2
- import './index.scss'
package/src/style/deps.ts DELETED
@@ -1,14 +0,0 @@
1
- import '../vro-el-checkbox-group/style/deps'
2
- import '../vro-el-config-provider/style/deps'
3
- import '../vro-el-file-upload/style/deps'
4
- import '../vro-el-icon/style/deps'
5
- import '../vro-el-image-upload/style/deps'
6
- import '../vro-el-radio-group/style/deps'
7
- import '../vro-el-schema-filter/style/deps'
8
- import '../vro-el-schema-form/style/deps'
9
- import '../vro-el-schema-form-dialog/style/deps'
10
- import '../vro-el-select/style/deps'
11
- import '../vro-el-skeleton/style/deps'
12
- import '../vro-el-tags/style/deps'
13
- import '../vro-el-tree/style/deps'
14
- import '../vro-el-with-config/style/deps'
@@ -1,17 +0,0 @@
1
- /* 本文件自动生成 './scripts/index.ts' */
2
-
3
- @use './base.scss' as *;
4
- @use '../vro-el-checkbox-group/style/index.scss' as *;
5
- @use '../vro-el-config-provider/style/index.scss' as *;
6
- @use '../vro-el-file-upload/style/index.scss' as *;
7
- @use '../vro-el-icon/style/index.scss' as *;
8
- @use '../vro-el-image-upload/style/index.scss' as *;
9
- @use '../vro-el-radio-group/style/index.scss' as *;
10
- @use '../vro-el-schema-filter/style/index.scss' as *;
11
- @use '../vro-el-schema-form/style/index.scss' as *;
12
- @use '../vro-el-schema-form-dialog/style/index.scss' as *;
13
- @use '../vro-el-select/style/index.scss' as *;
14
- @use '../vro-el-skeleton/style/index.scss' as *;
15
- @use '../vro-el-tags/style/index.scss' as *;
16
- @use '../vro-el-tree/style/index.scss' as *;
17
- @use '../vro-el-with-config/style/index.scss' as *;
@@ -1,2 +0,0 @@
1
- import './deps'
2
- import './css'
@@ -1,6 +0,0 @@
1
- export const datePickerValueFormat: Record<string, string> = {
2
- date: 'YYYY-MM-DD',
3
- daterange: 'YYYY-MM-DD',
4
- datetimerange: 'YYYY-MM-DD HH:mm:ss',
5
- datetime: 'YYYY-MM-DD HH:mm:ss',
6
- }
@@ -1,2 +0,0 @@
1
- export * from './datePickerValueFormat'
2
- export { parseType } from '@vrojs/base'
@@ -1,83 +0,0 @@
1
- # VroElCheckboxGroup
2
-
3
- ### 介绍
4
-
5
- 基于 `ElCheckboxGroup` 和 `ElCheckbox` 的选项化封装。适合通过 `options` 快速渲染一组选项,同时保留 Element Plus CheckboxGroup 的原有属性和事件。
6
-
7
- ## 代码演示
8
-
9
- ### 基础用法
10
-
11
- ```html
12
- <template>
13
- <vro-el-checkbox-group v-model="value" :options="options" />
14
- </template>
15
-
16
- <script setup lang="ts">
17
- import { ref } from 'vue'
18
-
19
- const value = ref(['apple'])
20
- const options = [
21
- { label: '苹果', value: 'apple' },
22
- { label: '香蕉', value: 'banana' },
23
- { label: '橙子', value: 'orange', props: { disabled: true } },
24
- ]
25
- </script>
26
- ```
27
-
28
- ### 自定义字段名
29
-
30
- ```html
31
- <vro-el-checkbox-group v-model="value" :options="options" label-key="name" value-key="id" />
32
- ```
33
-
34
- ## API
35
-
36
- ### 属性 Props
37
-
38
- <table>
39
- <tbody>
40
- <tr>
41
- <td>名称</td>
42
- <td>类型</td>
43
- <td>默认值</td>
44
- </tr>
45
- <tr v-for="(item, key) in vroElCheckboxGroupProps" :key="key">
46
- <td>{{ key }}</td>
47
- <td>{{ parseType(item.type || item) }}</td>
48
- <td>{{ reserve(item.default, '-') }}</td>
49
- </tr>
50
- </tbody>
51
- </table>
52
-
53
- ### 插槽 Slots
54
-
55
- 支持默认插槽,传入后会作为 `ElCheckboxGroup` 的内容,覆盖 `options` 自动渲染的选项。
56
-
57
- ### 事件 Events
58
-
59
- <table>
60
- <tbody>
61
- <tr>
62
- <td>名称</td>
63
- <td>参数</td>
64
- <td>说明</td>
65
- </tr>
66
- <tr>
67
- <td>update:modelValue</td>
68
- <td>value</td>
69
- <td>选中值变化时触发</td>
70
- </tr>
71
- <tr>
72
- <td>change</td>
73
- <td>value</td>
74
- <td>同 Element Plus CheckboxGroup change 事件</td>
75
- </tr>
76
- </tbody>
77
- </table>
78
-
79
- <script setup lang="ts">
80
- import { reserve } from '@daysnap/utils'
81
- import { VroElCheckboxGroup, vroElCheckboxGroupProps } from '.'
82
- import { parseType } from '../utils'
83
- </script>
@@ -1,16 +0,0 @@
1
- import { withInstall } from '@vrojs/base'
2
-
3
- import Component from './vro-el-checkbox-group.vue'
4
-
5
- export * from './types'
6
-
7
- export const VroElCheckboxGroup = withInstall<typeof Component>(Component)
8
- export default VroElCheckboxGroup
9
-
10
- export type VroElCheckboxGroupInstance = InstanceType<typeof VroElCheckboxGroup>
11
-
12
- declare module 'vue' {
13
- export interface GlobalComponents {
14
- VroElCheckboxGroup: typeof VroElCheckboxGroup
15
- }
16
- }
@@ -1,2 +0,0 @@
1
- import '../../style/base.scss'
2
- import './index.scss'
@@ -1,2 +0,0 @@
1
- import 'element-plus/es/components/checkbox-group/style/css'
2
- import 'element-plus/es/components/checkbox/style/css'
@@ -1 +0,0 @@
1
- .vro-el-checkbox-group { }
@@ -1,2 +0,0 @@
1
- import './deps'
2
- import './css'
@@ -1,18 +0,0 @@
1
- import { checkboxGroupProps } from 'element-plus'
2
- import type { ExtractPropTypes, PropType } from 'vue'
3
-
4
- export const vroElCheckboxGroupProps = {
5
- ...checkboxGroupProps,
6
-
7
- options: Array as PropType<any[]>,
8
- labelKey: {
9
- type: String,
10
- default: 'label',
11
- },
12
- valueKey: {
13
- type: String,
14
- default: 'value',
15
- },
16
- }
17
-
18
- export type VroElCheckboxGroupProps = ExtractPropTypes<typeof vroElCheckboxGroupProps>
@@ -1,33 +0,0 @@
1
- <template>
2
- <el-checkbox-group
3
- v-bind="restProps"
4
- class="vro-el-checkbox-group"
5
- @update:model-value="$emit('update:modelValue', $event)"
6
- @change="$emit('change', $event)"
7
- >
8
- <el-checkbox
9
- v-for="(option, index) in options"
10
- v-bind="option.props"
11
- :key="index"
12
- :value="option[valueKey || 'value'] ?? option"
13
- >
14
- {{ option[labelKey || 'label'] ?? option }}
15
- </el-checkbox>
16
- </el-checkbox-group>
17
- </template>
18
-
19
- <script setup lang="ts">
20
- import { pick } from '@daysnap/utils'
21
- import { checkboxGroupProps, ElCheckbox, ElCheckboxGroup } from 'element-plus'
22
- import { computed } from 'vue'
23
-
24
- import { vroElCheckboxGroupProps } from './types'
25
-
26
- defineOptions({ name: 'VroElCheckboxGroup' })
27
- defineEmits(['update:modelValue', 'change'])
28
- const props = defineProps(vroElCheckboxGroupProps)
29
-
30
- const restProps = computed(() => {
31
- return pick(props, Object.keys(checkboxGroupProps) as any[])
32
- })
33
- </script>
@@ -1,65 +0,0 @@
1
- # VroElConfigProvider
2
-
3
- ### 介绍
4
-
5
- 为 Vro Element Plus 组件提供全局配置,目前用于统一内部文案。`locale` 支持局部覆盖,未传入的字段会使用默认中文文案。
6
-
7
- ## 代码演示
8
-
9
- ### 基础用法
10
-
11
- ```html
12
- <vro-el-config-provider :locale="locale">
13
- <app />
14
- </vro-el-config-provider>
15
- ```
16
-
17
- ```ts
18
- const locale = {
19
- el: {
20
- table: {
21
- refresh: '重新加载',
22
- },
23
- },
24
- }
25
- ```
26
-
27
- ## API
28
-
29
- ### 属性 Props
30
-
31
- <table>
32
- <tbody>
33
- <tr>
34
- <td>名称</td>
35
- <td>类型</td>
36
- <td>默认值</td>
37
- </tr>
38
- <tr v-for="(item, key) in vroElConfigProviderProps" :key="key">
39
- <td>{{ key }}</td>
40
- <td>{{ parseType(item.type || item) }}</td>
41
- <td>{{ reserve(item.default, '-') }}</td>
42
- </tr>
43
- </tbody>
44
- </table>
45
-
46
- ### 插槽 Slots
47
-
48
- <table>
49
- <tbody>
50
- <tr>
51
- <td>名称</td>
52
- <td>说明</td>
53
- </tr>
54
- <tr>
55
- <td>default</td>
56
- <td>默认内容</td>
57
- </tr>
58
- </tbody>
59
- </table>
60
-
61
- <script setup lang="ts">
62
- import { reserve } from '@daysnap/utils'
63
- import { VroElConfigProvider, vroElConfigProviderProps } from '.'
64
- import { parseType } from '../utils'
65
- </script>
@@ -1,16 +0,0 @@
1
- import { withInstall } from '@vrojs/base'
2
-
3
- import Component from './vro-el-config-provider.vue'
4
-
5
- export * from './types'
6
-
7
- export const VroElConfigProvider = withInstall<typeof Component>(Component)
8
- export default VroElConfigProvider
9
-
10
- export type VroElConfigProviderInstance = InstanceType<typeof VroElConfigProvider>
11
-
12
- declare module 'vue' {
13
- export interface GlobalComponents {
14
- VroElConfigProvider: typeof VroElConfigProvider
15
- }
16
- }
@@ -1,2 +0,0 @@
1
- import '../../style/base.scss'
2
- import './index.scss'
@@ -1,2 +0,0 @@
1
- import './deps'
2
- import './css'
@@ -1,18 +0,0 @@
1
- import { type DeepPartial } from '@vrojs/base'
2
- import type { ExtractPropTypes, PropType } from 'vue'
3
-
4
- import type { Locale } from '../locale'
5
-
6
- export type VroElLocale = DeepPartial<Locale>
7
-
8
- export const vroElConfigProviderProps = {
9
- /**
10
- * 组件内部文案配置,支持局部覆盖。
11
- */
12
- locale: {
13
- type: Object as PropType<VroElLocale>,
14
- default: () => ({}),
15
- },
16
- }
17
-
18
- export type VroElConfigProviderProps = ExtractPropTypes<typeof vroElConfigProviderProps>
@@ -1,19 +0,0 @@
1
- <template>
2
- <slot> </slot>
3
- </template>
4
-
5
- <script setup lang="ts">
6
- import { merge } from '@daysnap/utils'
7
- import { computed, provide } from 'vue'
8
-
9
- import { localeContextKey, zhCN } from '../locale'
10
- import { vroElConfigProviderProps } from './types'
11
-
12
- defineOptions({ name: 'VroElConfigProvider' })
13
-
14
- const props = defineProps(vroElConfigProviderProps)
15
-
16
- const locale = computed(() => merge({}, zhCN, props.locale))
17
-
18
- provide(localeContextKey, locale)
19
- </script>