@vrojs/element-plus 0.0.1 → 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 (312) 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.js +30 -0
  15. package/dist/utils/datePickerValueFormat.d.ts +1 -0
  16. package/dist/utils/datePickerValueFormat.js +9 -0
  17. package/dist/utils/index.d.ts +2 -0
  18. package/dist/utils/index.js +6 -0
  19. package/dist/vro-el-checkbox-group/index.d.ts +122 -0
  20. package/dist/vro-el-checkbox-group/index.js +9 -0
  21. package/dist/vro-el-checkbox-group/style/css.d.ts +0 -0
  22. package/dist/vro-el-checkbox-group/style/css.js +3 -0
  23. package/dist/vro-el-checkbox-group/style/deps.d.ts +0 -0
  24. package/dist/vro-el-checkbox-group/style/deps.js +2 -0
  25. package/dist/vro-el-checkbox-group/style/index.d.ts +0 -0
  26. package/dist/vro-el-checkbox-group/style/index.js +5 -0
  27. package/dist/vro-el-checkbox-group/types.d.ts +50 -0
  28. package/dist/vro-el-checkbox-group/types.js +16 -0
  29. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +115 -0
  30. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +34 -0
  31. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue2.js +4 -0
  32. package/dist/vro-el-config-provider/index.d.ts +46 -0
  33. package/dist/vro-el-config-provider/index.js +9 -0
  34. package/dist/vro-el-config-provider/style/css.d.ts +0 -0
  35. package/dist/vro-el-config-provider/style/css.js +3 -0
  36. package/dist/vro-el-config-provider/style/deps.d.ts +0 -0
  37. package/dist/vro-el-config-provider/style/deps.js +1 -0
  38. package/dist/vro-el-config-provider/style/index.d.ts +0 -0
  39. package/dist/vro-el-config-provider/style/index.js +3 -0
  40. package/dist/vro-el-config-provider/types.d.ts +14 -0
  41. package/dist/vro-el-config-provider/types.js +13 -0
  42. package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +29 -0
  43. package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +17 -0
  44. package/dist/vro-el-config-provider/vro-el-config-provider.vue2.js +4 -0
  45. package/dist/vro-el-file-upload/index.d.ts +44 -0
  46. package/dist/vro-el-file-upload/index.js +12 -0
  47. package/dist/vro-el-file-upload/style/css.d.ts +0 -0
  48. package/dist/vro-el-file-upload/style/css.js +4 -0
  49. package/dist/vro-el-file-upload/style/deps.d.ts +0 -0
  50. package/dist/vro-el-file-upload/style/deps.js +2 -0
  51. package/dist/vro-el-file-upload/style/index.css +1 -0
  52. package/dist/vro-el-file-upload/style/index.d.ts +0 -0
  53. package/dist/vro-el-file-upload/style/index.js +6 -0
  54. package/dist/vro-el-file-upload/types.d.ts +39 -0
  55. package/dist/vro-el-file-upload/types.js +35 -0
  56. package/dist/vro-el-file-upload/utils.d.ts +2 -0
  57. package/dist/vro-el-file-upload/utils.js +6 -0
  58. package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +36 -0
  59. package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +86 -0
  60. package/dist/vro-el-file-upload/vro-el-file-upload.vue2.js +4 -0
  61. package/dist/vro-el-icon/index.d.ts +82 -0
  62. package/dist/vro-el-icon/index.js +9 -0
  63. package/dist/vro-el-icon/style/css.d.ts +0 -0
  64. package/dist/vro-el-icon/style/css.js +3 -0
  65. package/dist/vro-el-icon/style/deps.d.ts +0 -0
  66. package/dist/vro-el-icon/style/deps.js +1 -0
  67. package/dist/vro-el-icon/style/index.d.ts +0 -0
  68. package/dist/vro-el-icon/style/index.js +4 -0
  69. package/dist/vro-el-icon/types.d.ts +20 -0
  70. package/dist/vro-el-icon/types.js +11 -0
  71. package/dist/vro-el-icon/vro-el-icon.vue.d.ts +53 -0
  72. package/dist/vro-el-icon/vro-el-icon.vue.js +33 -0
  73. package/dist/vro-el-icon/vro-el-icon.vue2.js +4 -0
  74. package/dist/vro-el-image-upload/index.d.ts +50 -0
  75. package/dist/vro-el-image-upload/index.js +12 -0
  76. package/dist/vro-el-image-upload/style/css.d.ts +0 -0
  77. package/dist/vro-el-image-upload/style/css.js +4 -0
  78. package/dist/vro-el-image-upload/style/deps.d.ts +0 -0
  79. package/dist/vro-el-image-upload/style/deps.js +4 -0
  80. package/dist/vro-el-image-upload/style/index.css +1 -0
  81. package/dist/vro-el-image-upload/style/index.d.ts +0 -0
  82. package/dist/vro-el-image-upload/style/index.js +8 -0
  83. package/dist/vro-el-image-upload/types.d.ts +38 -0
  84. package/dist/vro-el-image-upload/types.js +25 -0
  85. package/dist/vro-el-image-upload/utils.d.ts +2 -0
  86. package/dist/vro-el-image-upload/utils.js +6 -0
  87. package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +42 -0
  88. package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +126 -0
  89. package/dist/vro-el-image-upload/vro-el-image-upload.vue2.js +4 -0
  90. package/dist/vro-el-radio-group/index.d.ts +79 -0
  91. package/dist/vro-el-radio-group/index.js +9 -0
  92. package/dist/vro-el-radio-group/style/css.d.ts +0 -0
  93. package/dist/vro-el-radio-group/style/css.js +3 -0
  94. package/dist/vro-el-radio-group/style/deps.d.ts +0 -0
  95. package/dist/vro-el-radio-group/style/deps.js +2 -0
  96. package/dist/vro-el-radio-group/style/index.d.ts +0 -0
  97. package/dist/vro-el-radio-group/style/index.js +5 -0
  98. package/dist/vro-el-radio-group/types.d.ts +38 -0
  99. package/dist/vro-el-radio-group/types.js +25 -0
  100. package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +72 -0
  101. package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +34 -0
  102. package/dist/vro-el-radio-group/vro-el-radio-group.vue2.js +4 -0
  103. package/dist/vro-el-schema-filter/index.d.ts +596 -0
  104. package/dist/vro-el-schema-filter/index.js +9 -0
  105. package/dist/vro-el-schema-filter/style/css.d.ts +0 -0
  106. package/dist/vro-el-schema-filter/style/css.js +16 -0
  107. package/dist/vro-el-schema-filter/style/deps.d.ts +0 -0
  108. package/dist/vro-el-schema-filter/style/deps.js +22 -0
  109. package/dist/vro-el-schema-filter/style/index.css +1 -0
  110. package/dist/vro-el-schema-filter/style/index.d.ts +0 -0
  111. package/dist/vro-el-schema-filter/style/index.js +38 -0
  112. package/dist/vro-el-schema-filter/types.d.ts +41 -0
  113. package/dist/vro-el-schema-filter/types.js +26 -0
  114. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +983 -0
  115. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +71 -0
  116. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue2.js +4 -0
  117. package/dist/vro-el-schema-form/defineVroElSchemaFormCreateField.d.ts +2 -0
  118. package/dist/vro-el-schema-form/defineVroElSchemaFormCreateField.js +9 -0
  119. package/dist/vro-el-schema-form/defineVroElSchemaFormFieldTrigger.d.ts +9 -0
  120. package/dist/vro-el-schema-form/defineVroElSchemaFormFieldTrigger.js +6 -0
  121. package/dist/vro-el-schema-form/index.d.ts +563 -0
  122. package/dist/vro-el-schema-form/index.js +17 -0
  123. package/dist/vro-el-schema-form/style/css.d.ts +0 -0
  124. package/dist/vro-el-schema-form/style/css.js +14 -0
  125. package/dist/vro-el-schema-form/style/deps.d.ts +0 -0
  126. package/dist/vro-el-schema-form/style/deps.js +22 -0
  127. package/dist/vro-el-schema-form/style/index.css +1 -0
  128. package/dist/vro-el-schema-form/style/index.d.ts +0 -0
  129. package/dist/vro-el-schema-form/style/index.js +36 -0
  130. package/dist/vro-el-schema-form/types.d.ts +114 -0
  131. package/dist/vro-el-schema-form/types.js +42 -0
  132. package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +908 -0
  133. package/dist/vro-el-schema-form/useVroElSchemaForm.js +31 -0
  134. package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +391 -0
  135. package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +120 -0
  136. package/dist/vro-el-schema-form/vro-el-schema-form.vue2.js +4 -0
  137. package/dist/vro-el-schema-form/vroElSchemaFormFieldManager.d.ts +2 -0
  138. package/dist/vro-el-schema-form/vroElSchemaFormFieldManager.js +32 -0
  139. package/dist/vro-el-schema-form-dialog/function-call.d.ts +3 -0
  140. package/dist/vro-el-schema-form-dialog/function-call.js +17 -0
  141. package/dist/vro-el-schema-form-dialog/index.d.ts +2182 -0
  142. package/dist/vro-el-schema-form-dialog/index.js +18 -0
  143. package/dist/vro-el-schema-form-dialog/injection.d.ts +9 -0
  144. package/dist/vro-el-schema-form-dialog/injection.js +9 -0
  145. package/dist/vro-el-schema-form-dialog/style/css.d.ts +0 -0
  146. package/dist/vro-el-schema-form-dialog/style/css.js +18 -0
  147. package/dist/vro-el-schema-form-dialog/style/deps.d.ts +0 -0
  148. package/dist/vro-el-schema-form-dialog/style/deps.js +24 -0
  149. package/dist/vro-el-schema-form-dialog/style/index.css +1 -0
  150. package/dist/vro-el-schema-form-dialog/style/index.d.ts +0 -0
  151. package/dist/vro-el-schema-form-dialog/style/index.js +42 -0
  152. package/dist/vro-el-schema-form-dialog/types.d.ts +79 -0
  153. package/dist/vro-el-schema-form-dialog/types.js +59 -0
  154. package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.d.ts +14 -0
  155. package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.js +18 -0
  156. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +1794 -0
  157. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +135 -0
  158. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue2.js +4 -0
  159. package/dist/vro-el-select/index.d.ts +259 -0
  160. package/dist/vro-el-select/index.js +9 -0
  161. package/dist/vro-el-select/style/css.d.ts +0 -0
  162. package/dist/vro-el-select/style/css.js +3 -0
  163. package/dist/vro-el-select/style/deps.d.ts +0 -0
  164. package/dist/vro-el-select/style/deps.js +2 -0
  165. package/dist/vro-el-select/style/index.d.ts +0 -0
  166. package/dist/vro-el-select/style/index.js +5 -0
  167. package/dist/vro-el-select/types.d.ts +105 -0
  168. package/dist/vro-el-select/types.js +16 -0
  169. package/dist/vro-el-select/vro-el-select.vue.d.ts +252 -0
  170. package/dist/vro-el-select/vro-el-select.vue.js +30 -0
  171. package/dist/vro-el-select/vro-el-select.vue2.js +4 -0
  172. package/dist/vro-el-skeleton/index.d.ts +154 -0
  173. package/dist/vro-el-skeleton/index.js +9 -0
  174. package/dist/vro-el-skeleton/style/css.d.ts +0 -0
  175. package/dist/vro-el-skeleton/style/css.js +5 -0
  176. package/dist/vro-el-skeleton/style/deps.d.ts +0 -0
  177. package/dist/vro-el-skeleton/style/deps.js +3 -0
  178. package/dist/vro-el-skeleton/style/index.css +1 -0
  179. package/dist/vro-el-skeleton/style/index.d.ts +0 -0
  180. package/dist/vro-el-skeleton/style/index.js +8 -0
  181. package/dist/vro-el-skeleton/types.d.ts +72 -0
  182. package/{src/vro-el-skeleton/types.ts → dist/vro-el-skeleton/types.js} +15 -29
  183. package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +95 -0
  184. package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +85 -0
  185. package/dist/vro-el-skeleton/vro-el-skeleton.vue2.js +4 -0
  186. package/dist/vro-el-tags/index.d.ts +223 -0
  187. package/dist/vro-el-tags/index.js +9 -0
  188. package/dist/vro-el-tags/style/css.d.ts +0 -0
  189. package/dist/vro-el-tags/style/css.js +3 -0
  190. package/dist/vro-el-tags/style/deps.d.ts +0 -0
  191. package/dist/vro-el-tags/style/deps.js +3 -0
  192. package/dist/vro-el-tags/style/index.d.ts +0 -0
  193. package/dist/vro-el-tags/style/index.js +6 -0
  194. package/dist/vro-el-tags/types.d.ts +18 -0
  195. package/dist/vro-el-tags/types.js +19 -0
  196. package/dist/vro-el-tags/vro-el-tags.vue.d.ts +217 -0
  197. package/dist/vro-el-tags/vro-el-tags.vue.js +62 -0
  198. package/dist/vro-el-tags/vro-el-tags.vue2.js +4 -0
  199. package/dist/vro-el-tree/index.d.ts +86 -0
  200. package/dist/vro-el-tree/index.js +9 -0
  201. package/dist/vro-el-tree/style/css.d.ts +0 -0
  202. package/dist/vro-el-tree/style/css.js +4 -0
  203. package/dist/vro-el-tree/style/deps.d.ts +0 -0
  204. package/dist/vro-el-tree/style/deps.js +1 -0
  205. package/dist/vro-el-tree/style/index.css +1 -0
  206. package/dist/vro-el-tree/style/index.d.ts +0 -0
  207. package/dist/vro-el-tree/style/index.js +5 -0
  208. package/dist/vro-el-tree/types.d.ts +32 -0
  209. package/dist/vro-el-tree/types.js +26 -0
  210. package/dist/vro-el-tree/vro-el-tree.vue.d.ts +52 -0
  211. package/dist/vro-el-tree/vro-el-tree.vue.js +56 -0
  212. package/dist/vro-el-tree/vro-el-tree.vue2.js +4 -0
  213. package/dist/vro-el-with-config/index.d.ts +32 -0
  214. package/dist/vro-el-with-config/index.js +9 -0
  215. package/dist/vro-el-with-config/style/css.d.ts +0 -0
  216. package/dist/vro-el-with-config/style/css.js +4 -0
  217. package/dist/vro-el-with-config/style/deps.d.ts +0 -0
  218. package/dist/vro-el-with-config/style/deps.js +1 -0
  219. package/dist/vro-el-with-config/style/index.d.ts +0 -0
  220. package/dist/vro-el-with-config/style/index.js +5 -0
  221. package/dist/vro-el-with-config/types.d.ts +15 -0
  222. package/dist/vro-el-with-config/types.js +14 -0
  223. package/dist/vro-el-with-config/vro-el-with-config.vue.d.ts +25 -0
  224. package/dist/vro-el-with-config/vro-el-with-config.vue.js +32 -0
  225. package/dist/vro-el-with-config/vro-el-with-config.vue2.js +4 -0
  226. package/package.json +18 -12
  227. package/src/index.ts +0 -13
  228. package/src/locale/index.ts +0 -3
  229. package/src/locale/lang/zh-cn.ts +0 -22
  230. package/src/locale/types.ts +0 -8
  231. package/src/locale/useLocale.ts +0 -42
  232. package/src/style/base.scss +0 -2
  233. package/src/style/css.ts +0 -2
  234. package/src/style/deps.ts +0 -9
  235. package/src/style/index.scss +0 -12
  236. package/src/style/index.ts +0 -2
  237. package/src/utils/datePickerValueFormat.ts +0 -6
  238. package/src/utils/index.ts +0 -2
  239. package/src/vro-el-checkbox-group/README.md +0 -83
  240. package/src/vro-el-checkbox-group/index.ts +0 -16
  241. package/src/vro-el-checkbox-group/style/css.ts +0 -2
  242. package/src/vro-el-checkbox-group/style/deps.ts +0 -2
  243. package/src/vro-el-checkbox-group/style/index.scss +0 -1
  244. package/src/vro-el-checkbox-group/style/index.ts +0 -2
  245. package/src/vro-el-checkbox-group/types.ts +0 -18
  246. package/src/vro-el-checkbox-group/vro-el-checkbox-group.vue +0 -33
  247. package/src/vro-el-config-provider/README.md +0 -65
  248. package/src/vro-el-config-provider/index.ts +0 -16
  249. package/src/vro-el-config-provider/style/css.ts +0 -2
  250. package/src/vro-el-config-provider/style/index.ts +0 -2
  251. package/src/vro-el-config-provider/types.ts +0 -18
  252. package/src/vro-el-config-provider/vro-el-config-provider.vue +0 -19
  253. package/src/vro-el-file-upload/README.md +0 -89
  254. package/src/vro-el-file-upload/index.ts +0 -17
  255. package/src/vro-el-file-upload/style/css.ts +0 -2
  256. package/src/vro-el-file-upload/style/deps.ts +0 -2
  257. package/src/vro-el-file-upload/style/index.scss +0 -30
  258. package/src/vro-el-file-upload/style/index.ts +0 -2
  259. package/src/vro-el-file-upload/types.ts +0 -50
  260. package/src/vro-el-file-upload/utils.ts +0 -7
  261. package/src/vro-el-file-upload/vro-el-file-upload.vue +0 -95
  262. package/src/vro-el-icon/README.md +0 -68
  263. package/src/vro-el-icon/index.ts +0 -16
  264. package/src/vro-el-icon/style/css.ts +0 -2
  265. package/src/vro-el-icon/style/deps.ts +0 -1
  266. package/src/vro-el-icon/style/index.scss +0 -1
  267. package/src/vro-el-icon/style/index.ts +0 -2
  268. package/src/vro-el-icon/types.ts +0 -12
  269. package/src/vro-el-icon/vro-el-icon.vue +0 -28
  270. package/src/vro-el-image-upload/README.md +0 -99
  271. package/src/vro-el-image-upload/index.ts +0 -17
  272. package/src/vro-el-image-upload/style/css.ts +0 -2
  273. package/src/vro-el-image-upload/style/deps.ts +0 -4
  274. package/src/vro-el-image-upload/style/index.scss +0 -55
  275. package/src/vro-el-image-upload/style/index.ts +0 -2
  276. package/src/vro-el-image-upload/types.ts +0 -42
  277. package/src/vro-el-image-upload/utils.ts +0 -7
  278. package/src/vro-el-image-upload/vro-el-image-upload.vue +0 -134
  279. package/src/vro-el-schema-form-dialog/README.md +0 -64
  280. package/src/vro-el-schema-form-dialog/function-call.ts +0 -12
  281. package/src/vro-el-schema-form-dialog/index.ts +0 -17
  282. package/src/vro-el-schema-form-dialog/style/css.ts +0 -2
  283. package/src/vro-el-schema-form-dialog/style/index.scss +0 -1
  284. package/src/vro-el-schema-form-dialog/style/index.ts +0 -2
  285. package/src/vro-el-schema-form-dialog/types.ts +0 -5
  286. package/src/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue +0 -32
  287. package/src/vro-el-select/README.md +0 -83
  288. package/src/vro-el-select/index.ts +0 -16
  289. package/src/vro-el-select/style/css.ts +0 -2
  290. package/src/vro-el-select/style/deps.ts +0 -2
  291. package/src/vro-el-select/style/index.scss +0 -1
  292. package/src/vro-el-select/style/index.ts +0 -2
  293. package/src/vro-el-select/types.ts +0 -18
  294. package/src/vro-el-select/vro-el-select.vue +0 -33
  295. package/src/vro-el-skeleton/README.md +0 -128
  296. package/src/vro-el-skeleton/index.ts +0 -16
  297. package/src/vro-el-skeleton/style/css.ts +0 -3
  298. package/src/vro-el-skeleton/style/deps.ts +0 -3
  299. package/src/vro-el-skeleton/style/index.scss +0 -24
  300. package/src/vro-el-skeleton/style/index.ts +0 -2
  301. package/src/vro-el-skeleton/vro-el-skeleton.vue +0 -73
  302. package/src/vro-el-with-config/README.md +0 -75
  303. package/src/vro-el-with-config/index.ts +0 -16
  304. package/src/vro-el-with-config/style/css.ts +0 -3
  305. package/src/vro-el-with-config/style/deps.ts +0 -2
  306. package/src/vro-el-with-config/style/index.ts +0 -2
  307. package/src/vro-el-with-config/types.ts +0 -18
  308. package/src/vro-el-with-config/vro-el-with-config.vue +0 -48
  309. /package/{src/vro-el-config-provider/style/deps.ts → dist/style/base.css} +0 -0
  310. /package/{src/vro-el-config-provider/style/index.scss → dist/style/css.d.ts} +0 -0
  311. /package/{src/vro-el-schema-form-dialog/style/deps.ts → dist/style/deps.d.ts} +0 -0
  312. /package/{src/vro-el-with-config/style/index.scss → dist/style/index.d.ts} +0 -0
@@ -0,0 +1,217 @@
1
+ import { nextTick } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ modelValue: {
4
+ type: import('vue').PropType<string[]>;
5
+ default: () => never[];
6
+ };
7
+ disabled: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ "update:modelValue": (...args: any[]) => void;
13
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ modelValue: {
15
+ type: import('vue').PropType<string[]>;
16
+ default: () => never[];
17
+ };
18
+ disabled: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ }>> & Readonly<{
23
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
24
+ }>, {
25
+ disabled: boolean;
26
+ modelValue: string[];
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
28
+ inputRef: ({
29
+ $: import('vue').ComponentInternalInstance;
30
+ $data: {};
31
+ $props: {
32
+ readonly id?: string | undefined;
33
+ readonly size?: import('element-plus').ComponentSize | undefined;
34
+ readonly disabled?: boolean | undefined;
35
+ readonly modelValue?: string | number | null | undefined | undefined;
36
+ readonly modelModifiers?: import('element-plus').InputModelModifiers | undefined;
37
+ readonly maxlength?: string | number | undefined;
38
+ readonly minlength?: string | number | undefined;
39
+ readonly type?: import('element-plus').InputType | undefined;
40
+ readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
41
+ readonly autosize?: import('element-plus').InputAutoSize | undefined;
42
+ readonly autocomplete?: string | undefined;
43
+ readonly formatter?: ((value: string) => string) | undefined;
44
+ readonly parser?: ((value: string) => string) | undefined;
45
+ readonly placeholder?: string | undefined;
46
+ readonly form?: string | undefined;
47
+ readonly readonly?: boolean | undefined;
48
+ readonly clearable?: boolean | undefined;
49
+ readonly clearIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
50
+ readonly showPassword?: boolean | undefined;
51
+ readonly showWordLimit?: boolean | undefined;
52
+ readonly wordLimitPosition?: "inside" | "outside" | undefined;
53
+ readonly suffixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
54
+ readonly prefixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
55
+ readonly containerRole?: string | undefined;
56
+ readonly tabindex?: string | number | undefined;
57
+ readonly validateEvent?: boolean | undefined;
58
+ readonly inputStyle?: import('vue').StyleValue;
59
+ readonly autofocus?: boolean | undefined;
60
+ readonly rows?: number | undefined;
61
+ readonly ariaLabel?: string | undefined;
62
+ readonly inputmode?: "search" | "text" | "email" | "tel" | "url" | "decimal" | "none" | "numeric" | undefined;
63
+ readonly name?: string | undefined;
64
+ readonly countGraphemes?: ((value: string) => number) | undefined;
65
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
66
+ readonly onInput?: ((value: string) => any) | undefined | undefined;
67
+ readonly onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
68
+ readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
69
+ readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
70
+ readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
71
+ readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
72
+ readonly onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
73
+ readonly onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
74
+ readonly onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
75
+ readonly onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
76
+ readonly onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
77
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
78
+ $attrs: {
79
+ [x: string]: unknown;
80
+ };
81
+ $refs: {
82
+ [x: string]: unknown;
83
+ };
84
+ $slots: Readonly<{
85
+ [name: string]: import('vue').Slot<any> | undefined;
86
+ }>;
87
+ $root: import('vue').ComponentPublicInstance | null;
88
+ $parent: import('vue').ComponentPublicInstance | null;
89
+ $host: Element | null;
90
+ $emit: ((event: "input", value: string) => void) & ((event: "clear", evt: MouseEvent | undefined) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "update:modelValue", value: string) => void);
91
+ $el: any;
92
+ $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').InputProps> & Readonly<{
93
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
94
+ onInput?: ((value: string) => any) | undefined;
95
+ onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
96
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
97
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
98
+ onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
99
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
100
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
101
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
102
+ onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
103
+ onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
104
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
105
+ }>, {
106
+ input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
107
+ textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
108
+ ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
109
+ textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
110
+ autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
111
+ isComposing: import('vue').Ref<boolean, boolean>;
112
+ passwordVisible: import('vue').Ref<boolean, boolean>;
113
+ focus: () => void | undefined;
114
+ blur: () => void | undefined;
115
+ select: () => void;
116
+ clear: (evt?: MouseEvent) => void;
117
+ resizeTextarea: () => void;
118
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
119
+ "update:modelValue": (value: string) => void;
120
+ input: (value: string) => void;
121
+ change: (value: string, evt?: Event | undefined) => void;
122
+ focus: (evt: FocusEvent) => void;
123
+ blur: (evt: FocusEvent) => void;
124
+ clear: (evt: MouseEvent | undefined) => void;
125
+ mouseleave: (evt: MouseEvent) => void;
126
+ mouseenter: (evt: MouseEvent) => void;
127
+ keydown: (evt: Event | KeyboardEvent) => void;
128
+ compositionstart: (evt: CompositionEvent) => void;
129
+ compositionupdate: (evt: CompositionEvent) => void;
130
+ compositionend: (evt: CompositionEvent) => void;
131
+ }, string, {
132
+ disabled: boolean;
133
+ modelValue: string | number | null;
134
+ modelModifiers: import('element-plus').InputModelModifiers;
135
+ type: import('element-plus').InputType;
136
+ autocomplete: string;
137
+ clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
138
+ wordLimitPosition: "inside" | "outside";
139
+ tabindex: string | number;
140
+ validateEvent: boolean;
141
+ inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
142
+ rows: number;
143
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
144
+ beforeCreate?: (() => void) | (() => void)[];
145
+ created?: (() => void) | (() => void)[];
146
+ beforeMount?: (() => void) | (() => void)[];
147
+ mounted?: (() => void) | (() => void)[];
148
+ beforeUpdate?: (() => void) | (() => void)[];
149
+ updated?: (() => void) | (() => void)[];
150
+ activated?: (() => void) | (() => void)[];
151
+ deactivated?: (() => void) | (() => void)[];
152
+ beforeDestroy?: (() => void) | (() => void)[];
153
+ beforeUnmount?: (() => void) | (() => void)[];
154
+ destroyed?: (() => void) | (() => void)[];
155
+ unmounted?: (() => void) | (() => void)[];
156
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
157
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
158
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
159
+ };
160
+ $forceUpdate: () => void;
161
+ $nextTick: typeof nextTick;
162
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
163
+ } & Readonly<{
164
+ disabled: boolean;
165
+ modelValue: string | number | null;
166
+ modelModifiers: import('element-plus').InputModelModifiers;
167
+ type: import('element-plus').InputType;
168
+ autocomplete: string;
169
+ clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
170
+ wordLimitPosition: "inside" | "outside";
171
+ tabindex: string | number;
172
+ validateEvent: boolean;
173
+ inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
174
+ rows: number;
175
+ }> & Omit<Readonly<import('element-plus').InputProps> & Readonly<{
176
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
177
+ onInput?: ((value: string) => any) | undefined;
178
+ onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
179
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
180
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
181
+ onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
182
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
183
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
184
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
185
+ onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
186
+ onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
187
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
188
+ }>, "input" | "select" | "textarea" | "clear" | "type" | "blur" | "focus" | "disabled" | "modelValue" | "ref" | "validateEvent" | "tabindex" | "autocomplete" | "clearIcon" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "passwordVisible" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
189
+ input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
190
+ textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
191
+ ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
192
+ textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
193
+ autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
194
+ isComposing: import('vue').Ref<boolean, boolean>;
195
+ passwordVisible: import('vue').Ref<boolean, boolean>;
196
+ focus: () => void | undefined;
197
+ blur: () => void | undefined;
198
+ select: () => void;
199
+ clear: (evt?: MouseEvent) => void;
200
+ resizeTextarea: () => void;
201
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
202
+ $slots: {
203
+ prepend?: (props: {}) => any;
204
+ } & {
205
+ prefix?: (props: {}) => any;
206
+ } & {
207
+ suffix?: (props: {}) => any;
208
+ } & {
209
+ 'password-icon'?: (props: {
210
+ visible: boolean;
211
+ }) => any;
212
+ } & {
213
+ append?: (props: {}) => any;
214
+ };
215
+ }) | null;
216
+ }, HTMLDivElement>;
217
+ export default _default;
@@ -0,0 +1,62 @@
1
+ import { defineComponent as h, ref as r, createElementBlock as f, openBlock as o, createBlock as i, createCommentVNode as E, Fragment as T, renderList as B, unref as a, withCtx as v, createTextVNode as V, toDisplayString as g, withKeys as w, nextTick as I } from "vue";
2
+ import { Plus as $ } from "@element-plus/icons-vue";
3
+ import { ElTag as x, ElInput as K, ElButton as L } from "element-plus";
4
+ import { useLocale as N } from "../locale/useLocale.js";
5
+ import { vroElTagsProps as P } from "./types.js";
6
+ const R = { class: "vro-el-tags" }, q = /* @__PURE__ */ h({
7
+ name: "VroElTags",
8
+ __name: "vro-el-tags",
9
+ props: P,
10
+ emits: ["update:modelValue"],
11
+ setup(k, { emit: C }) {
12
+ const m = C, c = k, { t: b } = N(), n = r(""), u = r(!1), d = r(), y = (e) => {
13
+ const t = c.modelValue.filter((l, s) => s !== e);
14
+ m("update:modelValue", t);
15
+ }, _ = () => {
16
+ u.value = !0, I(() => {
17
+ d.value?.input?.focus();
18
+ });
19
+ }, p = () => {
20
+ const e = [...c.modelValue], t = n.value.trim();
21
+ t && e.push(t), m("update:modelValue", e), u.value = !1, n.value = "";
22
+ };
23
+ return (e, t) => (o(), f("div", R, [
24
+ (o(!0), f(T, null, B(e.modelValue, (l, s) => (o(), i(a(x), {
25
+ key: `${l}-${s}`,
26
+ class: "vro-el-tag",
27
+ size: "large",
28
+ closable: !e.disabled,
29
+ "disable-transitions": !1,
30
+ onClose: (z) => y(s)
31
+ }, {
32
+ default: v(() => [
33
+ V(g(l), 1)
34
+ ]),
35
+ _: 2
36
+ }, 1032, ["closable", "onClose"]))), 128)),
37
+ u.value ? (o(), i(a(K), {
38
+ key: 0,
39
+ ref_key: "inputRef",
40
+ ref: d,
41
+ modelValue: n.value,
42
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => n.value = l),
43
+ class: "vro-el-tag-input",
44
+ onKeyup: w(p, ["enter"]),
45
+ onBlur: p
46
+ }, null, 8, ["modelValue"])) : e.disabled ? E("", !0) : (o(), i(a(L), {
47
+ key: 1,
48
+ class: "vro-el-tag-btn",
49
+ icon: a($),
50
+ onClick: _
51
+ }, {
52
+ default: v(() => [
53
+ V(g(a(b)("tags.addText")), 1)
54
+ ]),
55
+ _: 1
56
+ }, 8, ["icon"]))
57
+ ]));
58
+ }
59
+ });
60
+ export {
61
+ q as default
62
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./vro-el-tags.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,86 @@
1
+ export * from './types';
2
+ export declare const VroElTree: import('@vrojs/base').WithInstall<{
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
4
+ modelValue: {
5
+ type: import('vue').PropType<import('./types').VroElTreeKey[]>;
6
+ default: () => never[];
7
+ };
8
+ options: {
9
+ type: import('vue').PropType<import('./types').VroElTreeOption[]>;
10
+ default: () => never[];
11
+ };
12
+ rootId: {
13
+ type: (NumberConstructor | StringConstructor)[];
14
+ default: string;
15
+ };
16
+ }>> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: import('./types').VroElTreeKey[]) => any) | undefined;
18
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
+ "update:modelValue": (value: import('./types').VroElTreeKey[]) => any;
20
+ }, import('vue').PublicProps, {
21
+ modelValue: import('./types').VroElTreeKey[];
22
+ options: import('./types').VroElTreeOption[];
23
+ rootId: string | number;
24
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
25
+ P: {};
26
+ B: {};
27
+ D: {};
28
+ C: {};
29
+ M: {};
30
+ Defaults: {};
31
+ }, Readonly<import('vue').ExtractPropTypes<{
32
+ modelValue: {
33
+ type: import('vue').PropType<import('./types').VroElTreeKey[]>;
34
+ default: () => never[];
35
+ };
36
+ options: {
37
+ type: import('vue').PropType<import('./types').VroElTreeOption[]>;
38
+ default: () => never[];
39
+ };
40
+ rootId: {
41
+ type: (NumberConstructor | StringConstructor)[];
42
+ default: string;
43
+ };
44
+ }>> & Readonly<{
45
+ "onUpdate:modelValue"?: ((value: import('./types').VroElTreeKey[]) => any) | undefined;
46
+ }>, {}, {}, {}, {}, {
47
+ modelValue: import('./types').VroElTreeKey[];
48
+ options: import('./types').VroElTreeOption[];
49
+ rootId: string | number;
50
+ }>;
51
+ __isFragment?: never;
52
+ __isTeleport?: never;
53
+ __isSuspense?: never;
54
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
55
+ modelValue: {
56
+ type: import('vue').PropType<import('./types').VroElTreeKey[]>;
57
+ default: () => never[];
58
+ };
59
+ options: {
60
+ type: import('vue').PropType<import('./types').VroElTreeOption[]>;
61
+ default: () => never[];
62
+ };
63
+ rootId: {
64
+ type: (NumberConstructor | StringConstructor)[];
65
+ default: string;
66
+ };
67
+ }>> & Readonly<{
68
+ "onUpdate:modelValue"?: ((value: import('./types').VroElTreeKey[]) => any) | undefined;
69
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
70
+ "update:modelValue": (value: import('./types').VroElTreeKey[]) => any;
71
+ }, string, {
72
+ modelValue: import('./types').VroElTreeKey[];
73
+ options: import('./types').VroElTreeOption[];
74
+ rootId: string | number;
75
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
76
+ $slots: {
77
+ default?(_: any): any;
78
+ };
79
+ })>;
80
+ export default VroElTree;
81
+ export type VroElTreeInstance = InstanceType<typeof VroElTree>;
82
+ declare module 'vue' {
83
+ interface GlobalComponents {
84
+ VroElTree: typeof VroElTree;
85
+ }
86
+ }
@@ -0,0 +1,9 @@
1
+ import { withInstall as r } from "@vrojs/base";
2
+ import o from "./vro-el-tree.vue.js";
3
+ import { vroElTreeProps as p } from "./types.js";
4
+ const m = r(o);
5
+ export {
6
+ m as VroElTree,
7
+ m as default,
8
+ p as vroElTreeProps
9
+ };
File without changes
@@ -0,0 +1,4 @@
1
+ import '../../style/base.css';
2
+ import './index.css';
3
+ /* empty css */
4
+ /* empty css */
File without changes
@@ -0,0 +1 @@
1
+ import "element-plus/es/components/tree/style/css";
@@ -0,0 +1 @@
1
+ .vro-el-tree{-webkit-user-select:none;user-select:none}
File without changes
@@ -0,0 +1,5 @@
1
+ import '../../style/base.css';
2
+ import './index.css';
3
+ import "element-plus/es/components/tree/style/css";
4
+ /* empty css */
5
+ /* empty css */
@@ -0,0 +1,32 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export type VroElTreeKey = string | number;
3
+ export interface VroElTreeOption {
4
+ id: VroElTreeKey;
5
+ parentId?: VroElTreeKey;
6
+ children?: VroElTreeOption[];
7
+ [key: string]: any;
8
+ }
9
+ export declare const vroElTreeProps: {
10
+ /**
11
+ * 选中的节点 id 列表,包含半选和全选节点。
12
+ */
13
+ modelValue: {
14
+ type: PropType<VroElTreeKey[]>;
15
+ default: () => never[];
16
+ };
17
+ /**
18
+ * 树节点数据,节点需要包含 id,可通过 parentId 表示父级关系。
19
+ */
20
+ options: {
21
+ type: PropType<VroElTreeOption[]>;
22
+ default: () => never[];
23
+ };
24
+ /**
25
+ * 根节点 id,用于判断顶层节点的选中链路。
26
+ */
27
+ rootId: {
28
+ type: (NumberConstructor | StringConstructor)[];
29
+ default: string;
30
+ };
31
+ };
32
+ export type VroElTreeProps = ExtractPropTypes<typeof vroElTreeProps>;
@@ -0,0 +1,26 @@
1
+ const e = {
2
+ /**
3
+ * 选中的节点 id 列表,包含半选和全选节点。
4
+ */
5
+ modelValue: {
6
+ type: Array,
7
+ default: () => []
8
+ },
9
+ /**
10
+ * 树节点数据,节点需要包含 id,可通过 parentId 表示父级关系。
11
+ */
12
+ options: {
13
+ type: Array,
14
+ default: () => []
15
+ },
16
+ /**
17
+ * 根节点 id,用于判断顶层节点的选中链路。
18
+ */
19
+ rootId: {
20
+ type: [String, Number],
21
+ default: "-1"
22
+ }
23
+ };
24
+ export {
25
+ e as vroElTreeProps
26
+ };
@@ -0,0 +1,52 @@
1
+ import { VroElTreeKey, VroElTreeOption } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: any): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
+ modelValue: {
13
+ type: import('vue').PropType<VroElTreeKey[]>;
14
+ default: () => never[];
15
+ };
16
+ options: {
17
+ type: import('vue').PropType<VroElTreeOption[]>;
18
+ default: () => never[];
19
+ };
20
+ rootId: {
21
+ type: (NumberConstructor | StringConstructor)[];
22
+ default: string;
23
+ };
24
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
25
+ "update:modelValue": (value: VroElTreeKey[]) => any;
26
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
27
+ modelValue: {
28
+ type: import('vue').PropType<VroElTreeKey[]>;
29
+ default: () => never[];
30
+ };
31
+ options: {
32
+ type: import('vue').PropType<VroElTreeOption[]>;
33
+ default: () => never[];
34
+ };
35
+ rootId: {
36
+ type: (NumberConstructor | StringConstructor)[];
37
+ default: string;
38
+ };
39
+ }>> & Readonly<{
40
+ "onUpdate:modelValue"?: ((value: VroElTreeKey[]) => any) | undefined;
41
+ }>, {
42
+ modelValue: VroElTreeKey[];
43
+ options: VroElTreeOption[];
44
+ rootId: string | number;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
47
+ export default _default;
48
+ type __VLS_WithTemplateSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,56 @@
1
+ import { defineComponent as I, computed as y, createBlock as v, openBlock as C, unref as V, mergeProps as E, createSlots as K, withCtx as P, renderSlot as _, normalizeProps as T, guardReactiveProps as $ } from "vue";
2
+ import { isUndefined as a } from "@daysnap/utils";
3
+ import { ElTree as g } from "element-plus";
4
+ import { vroElTreeProps as B } from "./types.js";
5
+ const N = /* @__PURE__ */ I({
6
+ name: "VroElTree",
7
+ __name: "vro-el-tree",
8
+ props: B,
9
+ emits: ["update:modelValue"],
10
+ setup(u, { emit: p }) {
11
+ const f = p, h = u, i = y(() => {
12
+ const { modelValue: r, options: t, rootId: o } = h, { childIds: e, mapping: d } = l(t), k = r.reduce(
13
+ (s, n) => (s[n] = !0, s),
14
+ {}
15
+ ), c = (s) => {
16
+ if (s === o)
17
+ return !0;
18
+ if (!k[s])
19
+ return !1;
20
+ const n = d[s];
21
+ return !a(n) && c(n);
22
+ };
23
+ return e.filter(c);
24
+ }), m = (r, t) => {
25
+ const { checkedKeys: o, halfCheckedKeys: e } = t;
26
+ f("update:modelValue", [...e, ...o]);
27
+ };
28
+ function l(r, t = {}) {
29
+ const o = [];
30
+ return r.forEach((e) => {
31
+ if (a(e.parentId) || (t[e.id] = e.parentId), e.children && e.children.length > 0) {
32
+ const d = l(e.children ?? [], t);
33
+ o.push(...d.childIds);
34
+ } else
35
+ o.push(e.id);
36
+ }), { childIds: o, mapping: t };
37
+ }
38
+ return (r, t) => (C(), v(V(g), E(r.$attrs, {
39
+ class: "vro-el-tree",
40
+ data: r.options,
41
+ "default-checked-keys": i.value,
42
+ onCheck: m
43
+ }), K({ _: 2 }, [
44
+ r.$slots.default ? {
45
+ name: "default",
46
+ fn: P((o) => [
47
+ _(r.$slots, "default", T($(o)))
48
+ ]),
49
+ key: "0"
50
+ } : void 0
51
+ ]), 1040, ["data", "default-checked-keys"]));
52
+ }
53
+ });
54
+ export {
55
+ N as default
56
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./vro-el-tree.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,32 @@
1
+ export * from './types';
2
+ export declare const VroElWithConfig: import('@vrojs/base').WithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ elConfigProps: {
4
+ type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
5
+ default: () => {};
6
+ };
7
+ vroConfigProps: {
8
+ type: import('vue').PropType<Partial<import('..').VroElConfigProviderProps>>;
9
+ default: () => {};
10
+ };
11
+ is: import('vue').PropType<string | import('vue').Component>;
12
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ elConfigProps: {
14
+ type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
15
+ default: () => {};
16
+ };
17
+ vroConfigProps: {
18
+ type: import('vue').PropType<Partial<import('..').VroElConfigProviderProps>>;
19
+ default: () => {};
20
+ };
21
+ is: import('vue').PropType<string | import('vue').Component>;
22
+ }>> & Readonly<{}>, {
23
+ elConfigProps: Partial<import('element-plus').ConfigProviderProps>;
24
+ vroConfigProps: Partial<import('..').VroElConfigProviderProps>;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
26
+ export default VroElWithConfig;
27
+ export type VroElWithConfigInstance = InstanceType<typeof VroElWithConfig>;
28
+ declare module 'vue' {
29
+ interface GlobalComponents {
30
+ VroElWithConfig: typeof VroElWithConfig;
31
+ }
32
+ }
@@ -0,0 +1,9 @@
1
+ import { withInstall as o } from "@vrojs/base";
2
+ import r from "./vro-el-with-config.vue.js";
3
+ import { vroElWithConfigProps as n } from "./types.js";
4
+ const f = o(r);
5
+ export {
6
+ f as VroElWithConfig,
7
+ f as default,
8
+ n as vroElWithConfigProps
9
+ };
File without changes
@@ -0,0 +1,4 @@
1
+ import '../../style/base.css';
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
File without changes
@@ -0,0 +1 @@
1
+ import "element-plus/es/components/config-provider/style/css";
File without changes
@@ -0,0 +1,5 @@
1
+ import '../../style/base.css';
2
+ import "element-plus/es/components/config-provider/style/css";
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */