@rdeam/qui 2.0.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 (434) hide show
  1. package/README.md +59 -0
  2. package/es/_virtual/_@oxc-project_runtime@0.127.0/helpers/defineProperty.mjs +12 -0
  3. package/es/_virtual/_@oxc-project_runtime@0.127.0/helpers/toPrimitive.mjs +14 -0
  4. package/es/_virtual/_@oxc-project_runtime@0.127.0/helpers/toPropertyKey.mjs +9 -0
  5. package/es/_virtual/_@oxc-project_runtime@0.127.0/helpers/typeof.mjs +11 -0
  6. package/es/component.d.ts +3 -0
  7. package/es/component.mjs +39 -0
  8. package/es/component.mjs.map +1 -0
  9. package/es/components/date-picker/index.d.ts +6 -0
  10. package/es/components/date-picker/index.mjs +9 -0
  11. package/es/components/date-picker/index.mjs.map +1 -0
  12. package/es/components/date-picker/src/date-picker.d.ts +19 -0
  13. package/es/components/date-picker/src/date-picker.mjs +28 -0
  14. package/es/components/date-picker/src/date-picker.mjs.map +1 -0
  15. package/es/components/date-picker/src/date-picker.vue.d.ts +33 -0
  16. package/es/components/date-picker/src/date-picker.vue.mjs +7 -0
  17. package/es/components/date-picker/src/date-picker.vue.mjs.map +1 -0
  18. package/es/components/date-picker/src/date-picker.vue_vue_type_script_setup_true_lang.mjs +42 -0
  19. package/es/components/date-picker/src/date-picker.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  20. package/es/components/date-picker/src/instance.d.ts +2 -0
  21. package/es/components/date-picker/src/instance.mjs +0 -0
  22. package/es/components/date-picker/style/index.d.ts +1 -0
  23. package/es/components/descriptions/index.d.ts +6 -0
  24. package/es/components/descriptions/index.mjs +9 -0
  25. package/es/components/descriptions/index.mjs.map +1 -0
  26. package/es/components/descriptions/src/descriptions.d.ts +42 -0
  27. package/es/components/descriptions/src/descriptions.mjs +86 -0
  28. package/es/components/descriptions/src/descriptions.mjs.map +1 -0
  29. package/es/components/descriptions/src/idescriptions.d.ts +72 -0
  30. package/es/components/descriptions/src/idescriptions.mjs +55 -0
  31. package/es/components/descriptions/src/idescriptions.mjs.map +1 -0
  32. package/es/components/descriptions/src/instance.d.ts +2 -0
  33. package/es/components/descriptions/src/instance.mjs +0 -0
  34. package/es/components/descriptions/style/index.d.ts +1 -0
  35. package/es/components/ellipsis-tag/index.d.ts +6 -0
  36. package/es/components/ellipsis-tag/index.mjs +9 -0
  37. package/es/components/ellipsis-tag/index.mjs.map +1 -0
  38. package/es/components/ellipsis-tag/src/ellipsis-tag.d.ts +20 -0
  39. package/es/components/ellipsis-tag/src/ellipsis-tag.mjs +19 -0
  40. package/es/components/ellipsis-tag/src/ellipsis-tag.mjs.map +1 -0
  41. package/es/components/ellipsis-tag/src/ellipsis-tag.vue.d.ts +51 -0
  42. package/es/components/ellipsis-tag/src/ellipsis-tag.vue.mjs +7 -0
  43. package/es/components/ellipsis-tag/src/ellipsis-tag.vue.mjs.map +1 -0
  44. package/es/components/ellipsis-tag/src/ellipsis-tag.vue_vue_type_script_setup_true_lang.mjs +74 -0
  45. package/es/components/ellipsis-tag/src/ellipsis-tag.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  46. package/es/components/ellipsis-tag/src/instance.d.ts +2 -0
  47. package/es/components/ellipsis-tag/src/instance.mjs +0 -0
  48. package/es/components/ellipsis-tag/style/index.d.ts +1 -0
  49. package/es/components/empty/index.d.ts +6 -0
  50. package/es/components/empty/index.mjs +9 -0
  51. package/es/components/empty/index.mjs.map +1 -0
  52. package/es/components/empty/src/empty.d.ts +86 -0
  53. package/es/components/empty/src/empty.mjs +158 -0
  54. package/es/components/empty/src/empty.mjs.map +1 -0
  55. package/es/components/empty/src/iempty.d.ts +41 -0
  56. package/es/components/empty/src/iempty.mjs +44 -0
  57. package/es/components/empty/src/iempty.mjs.map +1 -0
  58. package/es/components/empty/src/instance.d.ts +2 -0
  59. package/es/components/empty/src/instance.mjs +0 -0
  60. package/es/components/empty/style/index.d.ts +1 -0
  61. package/es/components/index.d.ts +16 -0
  62. package/es/components/index.mjs +33 -0
  63. package/es/components/jdata-viewer/index.d.ts +6 -0
  64. package/es/components/jdata-viewer/index.mjs +9 -0
  65. package/es/components/jdata-viewer/index.mjs.map +1 -0
  66. package/es/components/jdata-viewer/src/ijdata-viewer.d.ts +40 -0
  67. package/es/components/jdata-viewer/src/ijdata-viewer.mjs +43 -0
  68. package/es/components/jdata-viewer/src/ijdata-viewer.mjs.map +1 -0
  69. package/es/components/jdata-viewer/src/instance.d.ts +2 -0
  70. package/es/components/jdata-viewer/src/instance.mjs +0 -0
  71. package/es/components/jdata-viewer/src/jdata-viewer.d.ts +87 -0
  72. package/es/components/jdata-viewer/src/jdata-viewer.mjs +125 -0
  73. package/es/components/jdata-viewer/src/jdata-viewer.mjs.map +1 -0
  74. package/es/components/jdata-viewer/src/use-view.d.ts +7 -0
  75. package/es/components/jdata-viewer/src/use-view.mjs +98 -0
  76. package/es/components/jdata-viewer/src/use-view.mjs.map +1 -0
  77. package/es/components/jdata-viewer/style/index.d.ts +1 -0
  78. package/es/components/radio/index.d.ts +6 -0
  79. package/es/components/radio/index.mjs +9 -0
  80. package/es/components/radio/index.mjs.map +1 -0
  81. package/es/components/radio/src/instance.d.ts +2 -0
  82. package/es/components/radio/src/instance.mjs +0 -0
  83. package/es/components/radio/src/radio.d.ts +16 -0
  84. package/es/components/radio/src/radio.mjs +37 -0
  85. package/es/components/radio/src/radio.mjs.map +1 -0
  86. package/es/components/radio/src/radio.vue.d.ts +25 -0
  87. package/es/components/radio/src/radio.vue.mjs +7 -0
  88. package/es/components/radio/src/radio.vue.mjs.map +1 -0
  89. package/es/components/radio/src/radio.vue_vue_type_script_setup_true_lang.mjs +44 -0
  90. package/es/components/radio/src/radio.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  91. package/es/components/radio/style/index.d.ts +1 -0
  92. package/es/components/remote-search/index.d.ts +6 -0
  93. package/es/components/remote-search/index.mjs +9 -0
  94. package/es/components/remote-search/index.mjs.map +1 -0
  95. package/es/components/remote-search/src/instance.d.ts +2 -0
  96. package/es/components/remote-search/src/instance.mjs +0 -0
  97. package/es/components/remote-search/src/iremote-search.d.ts +26 -0
  98. package/es/components/remote-search/src/iremote-search.mjs +94 -0
  99. package/es/components/remote-search/src/iremote-search.mjs.map +1 -0
  100. package/es/components/remote-search/src/remote-search.d.ts +72 -0
  101. package/es/components/remote-search/src/remote-search.mjs +191 -0
  102. package/es/components/remote-search/src/remote-search.mjs.map +1 -0
  103. package/es/components/remote-search/style/index.d.ts +1 -0
  104. package/es/components/search-form/index.d.ts +6 -0
  105. package/es/components/search-form/index.mjs +9 -0
  106. package/es/components/search-form/index.mjs.map +1 -0
  107. package/es/components/search-form/src/components/Grid/components/GridItem.vue.d.ts +33 -0
  108. package/es/components/search-form/src/components/Grid/components/GridItem.vue.mjs +7 -0
  109. package/es/components/search-form/src/components/Grid/components/GridItem.vue.mjs.map +1 -0
  110. package/es/components/search-form/src/components/Grid/components/GridItem.vue_vue_type_script_setup_true_lang.mjs +54 -0
  111. package/es/components/search-form/src/components/Grid/components/GridItem.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  112. package/es/components/search-form/src/components/Grid/index.vue.d.ts +28 -0
  113. package/es/components/search-form/src/components/Grid/index.vue.mjs +7 -0
  114. package/es/components/search-form/src/components/Grid/index.vue.mjs.map +1 -0
  115. package/es/components/search-form/src/components/Grid/index.vue_vue_type_script_setup_true_lang.mjs +62 -0
  116. package/es/components/search-form/src/components/Grid/index.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  117. package/es/components/search-form/src/components/Grid/interface/index.d.ts +5 -0
  118. package/es/components/search-form/src/components/Grid/interface/index.mjs +0 -0
  119. package/es/components/search-form/src/components/SearchFormItem.vue.d.ts +36 -0
  120. package/es/components/search-form/src/components/SearchFormItem.vue.mjs +7 -0
  121. package/es/components/search-form/src/components/SearchFormItem.vue.mjs.map +1 -0
  122. package/es/components/search-form/src/components/SearchFormItem.vue_vue_type_script_lang.mjs +103 -0
  123. package/es/components/search-form/src/components/SearchFormItem.vue_vue_type_script_lang.mjs.map +1 -0
  124. package/es/components/search-form/src/instance.d.ts +2 -0
  125. package/es/components/search-form/src/instance.mjs +0 -0
  126. package/es/components/search-form/src/isearch-form.d.ts +76 -0
  127. package/es/components/search-form/src/isearch-form.mjs +63 -0
  128. package/es/components/search-form/src/isearch-form.mjs.map +1 -0
  129. package/es/components/search-form/src/search-form.d.ts +55 -0
  130. package/es/components/search-form/src/search-form.mjs +319 -0
  131. package/es/components/search-form/src/search-form.mjs.map +1 -0
  132. package/es/components/search-form/style/index.d.ts +1 -0
  133. package/es/components/sticky-container/index.d.ts +6 -0
  134. package/es/components/sticky-container/index.mjs +9 -0
  135. package/es/components/sticky-container/index.mjs.map +1 -0
  136. package/es/components/sticky-container/src/instance.d.ts +2 -0
  137. package/es/components/sticky-container/src/instance.mjs +0 -0
  138. package/es/components/sticky-container/src/isticky-container.d.ts +4 -0
  139. package/es/components/sticky-container/src/isticky-container.mjs +8 -0
  140. package/es/components/sticky-container/src/isticky-container.mjs.map +1 -0
  141. package/es/components/sticky-container/src/sticky-container.d.ts +2 -0
  142. package/es/components/sticky-container/src/sticky-container.mjs +32 -0
  143. package/es/components/sticky-container/src/sticky-container.mjs.map +1 -0
  144. package/es/components/sticky-container/style/index.d.ts +1 -0
  145. package/es/components/table/index.d.ts +6 -0
  146. package/es/components/table/index.mjs +9 -0
  147. package/es/components/table/index.mjs.map +1 -0
  148. package/es/components/table/src/components/Setting.vue.d.ts +30 -0
  149. package/es/components/table/src/components/Setting.vue.mjs +7 -0
  150. package/es/components/table/src/components/Setting.vue.mjs.map +1 -0
  151. package/es/components/table/src/components/Setting.vue_vue_type_script_setup_true_lang.mjs +67 -0
  152. package/es/components/table/src/components/Setting.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  153. package/es/components/table/src/components/TableColumn.vue.d.ts +15 -0
  154. package/es/components/table/src/components/TableColumn.vue.mjs +7 -0
  155. package/es/components/table/src/components/TableColumn.vue.mjs.map +1 -0
  156. package/es/components/table/src/components/TableColumn.vue_vue_type_script_setup_true_lang.mjs +132 -0
  157. package/es/components/table/src/components/TableColumn.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  158. package/es/components/table/src/instance.d.ts +2 -0
  159. package/es/components/table/src/instance.mjs +0 -0
  160. package/es/components/table/src/table.d.ts +84 -0
  161. package/es/components/table/src/table.mjs +139 -0
  162. package/es/components/table/src/table.mjs.map +1 -0
  163. package/es/components/table/src/table.vue.d.ts +384 -0
  164. package/es/components/table/src/table.vue.mjs +7 -0
  165. package/es/components/table/src/table.vue.mjs.map +1 -0
  166. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs +143 -0
  167. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  168. package/es/components/table/src/use-controller.d.ts +10 -0
  169. package/es/components/table/src/use-controller.mjs +117 -0
  170. package/es/components/table/src/use-controller.mjs.map +1 -0
  171. package/es/components/table/src/use-table.d.ts +26 -0
  172. package/es/components/table/src/use-table.mjs +188 -0
  173. package/es/components/table/src/use-table.mjs.map +1 -0
  174. package/es/components/table/style/index.d.ts +1 -0
  175. package/es/components/table-editor/index.d.ts +6 -0
  176. package/es/components/table-editor/index.mjs +9 -0
  177. package/es/components/table-editor/index.mjs.map +1 -0
  178. package/es/components/table-editor/src/components/BaseItem.vue.d.ts +15 -0
  179. package/es/components/table-editor/src/components/BaseItem.vue.mjs +7 -0
  180. package/es/components/table-editor/src/components/BaseItem.vue.mjs.map +1 -0
  181. package/es/components/table-editor/src/components/BaseItem.vue_vue_type_script_lang.mjs +37 -0
  182. package/es/components/table-editor/src/components/BaseItem.vue_vue_type_script_lang.mjs.map +1 -0
  183. package/es/components/table-editor/src/instance.d.ts +2 -0
  184. package/es/components/table-editor/src/instance.mjs +0 -0
  185. package/es/components/table-editor/src/table-editor.d.ts +45 -0
  186. package/es/components/table-editor/src/table-editor.mjs +24 -0
  187. package/es/components/table-editor/src/table-editor.mjs.map +1 -0
  188. package/es/components/table-editor/src/table-editor.vue.d.ts +82 -0
  189. package/es/components/table-editor/src/table-editor.vue.mjs +7 -0
  190. package/es/components/table-editor/src/table-editor.vue.mjs.map +1 -0
  191. package/es/components/table-editor/src/table-editor.vue_vue_type_script_setup_true_lang.mjs +75 -0
  192. package/es/components/table-editor/src/table-editor.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  193. package/es/components/table-editor/style/index.d.ts +1 -0
  194. package/es/components/tabs/index.d.ts +6 -0
  195. package/es/components/tabs/index.mjs +9 -0
  196. package/es/components/tabs/index.mjs.map +1 -0
  197. package/es/components/tabs/src/instance.d.ts +2 -0
  198. package/es/components/tabs/src/instance.mjs +0 -0
  199. package/es/components/tabs/src/itabs.d.ts +31 -0
  200. package/es/components/tabs/src/itabs.mjs +33 -0
  201. package/es/components/tabs/src/itabs.mjs.map +1 -0
  202. package/es/components/tabs/src/tabs.d.ts +55 -0
  203. package/es/components/tabs/src/tabs.mjs +58 -0
  204. package/es/components/tabs/src/tabs.mjs.map +1 -0
  205. package/es/components/tabs/style/index.d.ts +1 -0
  206. package/es/components/tarea-tag/index.d.ts +6 -0
  207. package/es/components/tarea-tag/index.mjs +9 -0
  208. package/es/components/tarea-tag/index.mjs.map +1 -0
  209. package/es/components/tarea-tag/src/instance.d.ts +2 -0
  210. package/es/components/tarea-tag/src/instance.mjs +0 -0
  211. package/es/components/tarea-tag/src/tarea-tag.d.ts +10 -0
  212. package/es/components/tarea-tag/src/tarea-tag.mjs +29 -0
  213. package/es/components/tarea-tag/src/tarea-tag.mjs.map +1 -0
  214. package/es/components/tarea-tag/src/tarea-tag.vue.d.ts +23 -0
  215. package/es/components/tarea-tag/src/tarea-tag.vue.mjs +7 -0
  216. package/es/components/tarea-tag/src/tarea-tag.vue.mjs.map +1 -0
  217. package/es/components/tarea-tag/src/tarea-tag.vue_vue_type_script_setup_true_lang.mjs +149 -0
  218. package/es/components/tarea-tag/src/tarea-tag.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  219. package/es/components/tarea-tag/style/index.d.ts +1 -0
  220. package/es/components/text-ellipsis/index.d.ts +5 -0
  221. package/es/components/text-ellipsis/index.mjs +9 -0
  222. package/es/components/text-ellipsis/index.mjs.map +1 -0
  223. package/es/components/text-ellipsis/src/instance.d.ts +2 -0
  224. package/es/components/text-ellipsis/src/instance.mjs +0 -0
  225. package/es/components/text-ellipsis/src/itext-ellipsis.d.ts +11 -0
  226. package/es/components/text-ellipsis/src/itext-ellipsis.mjs +16 -0
  227. package/es/components/text-ellipsis/src/itext-ellipsis.mjs.map +1 -0
  228. package/es/components/text-ellipsis/src/text-ellipsis.d.ts +25 -0
  229. package/es/components/text-ellipsis/src/text-ellipsis.mjs +115 -0
  230. package/es/components/text-ellipsis/src/text-ellipsis.mjs.map +1 -0
  231. package/es/components/text-ellipsis/src/use-window-size.d.ts +5 -0
  232. package/es/components/text-ellipsis/src/use-window-size.mjs +28 -0
  233. package/es/components/text-ellipsis/src/use-window-size.mjs.map +1 -0
  234. package/es/components/text-ellipsis/src/utils.d.ts +22 -0
  235. package/es/components/text-ellipsis/src/utils.mjs +26 -0
  236. package/es/components/text-ellipsis/src/utils.mjs.map +1 -0
  237. package/es/components/text-ellipsis/style/index.d.ts +1 -0
  238. package/es/components/time-line/index.d.ts +6 -0
  239. package/es/components/time-line/index.mjs +9 -0
  240. package/es/components/time-line/index.mjs.map +1 -0
  241. package/es/components/time-line/src/instance.d.ts +2 -0
  242. package/es/components/time-line/src/instance.mjs +0 -0
  243. package/es/components/time-line/src/time-line.d.ts +28 -0
  244. package/es/components/time-line/src/time-line.mjs +25 -0
  245. package/es/components/time-line/src/time-line.mjs.map +1 -0
  246. package/es/components/time-line/src/time-line.vue.d.ts +81 -0
  247. package/es/components/time-line/src/time-line.vue.mjs +7 -0
  248. package/es/components/time-line/src/time-line.vue.mjs.map +1 -0
  249. package/es/components/time-line/src/time-line.vue_vue_type_script_setup_true_lang.mjs +37 -0
  250. package/es/components/time-line/src/time-line.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  251. package/es/components/time-line/style/index.d.ts +1 -0
  252. package/es/components/uploader/index.d.ts +6 -0
  253. package/es/components/uploader/index.mjs +9 -0
  254. package/es/components/uploader/index.mjs.map +1 -0
  255. package/es/components/uploader/src/UploadInfo.vue.d.ts +30 -0
  256. package/es/components/uploader/src/UploadInfo.vue.mjs +7 -0
  257. package/es/components/uploader/src/UploadInfo.vue.mjs.map +1 -0
  258. package/es/components/uploader/src/UploadInfo.vue_vue_type_script_setup_true_lang.mjs +167 -0
  259. package/es/components/uploader/src/UploadInfo.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  260. package/es/components/uploader/src/instance.d.ts +2 -0
  261. package/es/components/uploader/src/instance.mjs +0 -0
  262. package/es/components/uploader/src/toast.d.ts +1 -0
  263. package/es/components/uploader/src/toast.mjs +37 -0
  264. package/es/components/uploader/src/toast.mjs.map +1 -0
  265. package/es/components/uploader/src/uploader.d.ts +32 -0
  266. package/es/components/uploader/src/uploader.mjs +104 -0
  267. package/es/components/uploader/src/uploader.mjs.map +1 -0
  268. package/es/components/uploader/src/uploader.vue.d.ts +98 -0
  269. package/es/components/uploader/src/uploader.vue.mjs +7 -0
  270. package/es/components/uploader/src/uploader.vue.mjs.map +1 -0
  271. package/es/components/uploader/src/uploader.vue_vue_type_script_setup_true_lang.mjs +48 -0
  272. package/es/components/uploader/src/uploader.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  273. package/es/components/uploader/src/use-uploader.d.ts +20 -0
  274. package/es/components/uploader/src/use-uploader.mjs +263 -0
  275. package/es/components/uploader/src/use-uploader.mjs.map +1 -0
  276. package/es/components/uploader/style/index.d.ts +1 -0
  277. package/es/defaults.d.ts +5 -0
  278. package/es/defaults.mjs +8 -0
  279. package/es/defaults.mjs.map +1 -0
  280. package/es/directives/copy/index.d.ts +3 -0
  281. package/es/directives/copy/index.mjs +31 -0
  282. package/es/directives/copy/index.mjs.map +1 -0
  283. package/es/directives/draggable/index.d.ts +3 -0
  284. package/es/directives/draggable/index.mjs +28 -0
  285. package/es/directives/draggable/index.mjs.map +1 -0
  286. package/es/directives/index.d.ts +4 -0
  287. package/es/directives/index.mjs +5 -0
  288. package/es/directives/longpress/index.d.ts +7 -0
  289. package/es/directives/longpress/index.mjs +32 -0
  290. package/es/directives/longpress/index.mjs.map +1 -0
  291. package/es/directives/resize-element/index.d.ts +3 -0
  292. package/es/directives/resize-element/index.mjs +30 -0
  293. package/es/directives/resize-element/index.mjs.map +1 -0
  294. package/es/directives/show-tip/index.d.ts +3 -0
  295. package/es/directives/show-tip/index.mjs +19 -0
  296. package/es/directives/show-tip/index.mjs.map +1 -0
  297. package/es/hooks/_configurable.d.ts +27 -0
  298. package/es/hooks/_configurable.mjs +10 -0
  299. package/es/hooks/_configurable.mjs.map +1 -0
  300. package/es/hooks/index.d.ts +1 -0
  301. package/es/hooks/index.mjs +2 -0
  302. package/es/hooks/toRef/index.d.ts +14 -0
  303. package/es/hooks/toRef/index.mjs +19 -0
  304. package/es/hooks/toRef/index.mjs.map +1 -0
  305. package/es/hooks/tryOnScopeDispose/index.d.ts +7 -0
  306. package/es/hooks/tryOnScopeDispose/index.mjs +18 -0
  307. package/es/hooks/tryOnScopeDispose/index.mjs.map +1 -0
  308. package/es/hooks/unrefElement/index.d.ts +12 -0
  309. package/es/hooks/unrefElement/index.mjs +16 -0
  310. package/es/hooks/unrefElement/index.mjs.map +1 -0
  311. package/es/hooks/use-full-screen/index.d.ts +1 -0
  312. package/es/hooks/use-full-screen/index.mjs +32 -0
  313. package/es/hooks/use-full-screen/index.mjs.map +1 -0
  314. package/es/hooks/useEventListener/index.d.ts +83 -0
  315. package/es/hooks/useEventListener/index.mjs +47 -0
  316. package/es/hooks/useEventListener/index.mjs.map +1 -0
  317. package/es/hooks/useFullscreen/index.d.ts +25 -0
  318. package/es/hooks/useFullscreen/index.mjs +121 -0
  319. package/es/hooks/useFullscreen/index.mjs.map +1 -0
  320. package/es/hooks/useMounted/index.d.ts +6 -0
  321. package/es/hooks/useMounted/index.mjs +19 -0
  322. package/es/hooks/useMounted/index.mjs.map +1 -0
  323. package/es/hooks/useSupported/index.d.ts +2 -0
  324. package/es/hooks/useSupported/index.mjs +14 -0
  325. package/es/hooks/useSupported/index.mjs.map +1 -0
  326. package/es/hooks/utils/filters.d.ts +84 -0
  327. package/es/hooks/utils/filters.mjs +141 -0
  328. package/es/hooks/utils/filters.mjs.map +1 -0
  329. package/es/hooks/utils/general.d.ts +49 -0
  330. package/es/hooks/utils/general.mjs +85 -0
  331. package/es/hooks/utils/general.mjs.map +1 -0
  332. package/es/hooks/utils/index.d.ts +6 -0
  333. package/es/hooks/utils/index.mjs +6 -0
  334. package/es/hooks/utils/is.d.ts +13 -0
  335. package/es/hooks/utils/is.mjs +29 -0
  336. package/es/hooks/utils/is.mjs.map +1 -0
  337. package/es/hooks/utils/port.d.ts +2 -0
  338. package/es/hooks/utils/port.mjs +17 -0
  339. package/es/hooks/utils/port.mjs.map +1 -0
  340. package/es/hooks/utils/types.d.ts +117 -0
  341. package/es/hooks/utils/types.mjs +0 -0
  342. package/es/hooks/utils/vue.d.ts +1 -0
  343. package/es/hooks/utils/vue.mjs +9 -0
  344. package/es/hooks/utils/vue.mjs.map +1 -0
  345. package/es/hooks/watchImmediate/index.d.ts +5 -0
  346. package/es/hooks/watchImmediate/index.mjs +17 -0
  347. package/es/hooks/watchImmediate/index.mjs.map +1 -0
  348. package/es/index.d.ts +8 -0
  349. package/es/index.mjs +47 -0
  350. package/es/index.mjs.map +1 -0
  351. package/es/make-installer.d.ts +5 -0
  352. package/es/make-installer.mjs +15 -0
  353. package/es/make-installer.mjs.map +1 -0
  354. package/es/share/dist/index.d.ts +60 -0
  355. package/es/share/dist/index.mjs +16 -0
  356. package/es/share/dist/index.mjs.map +1 -0
  357. package/es/utils/browser.d.ts +3 -0
  358. package/es/utils/browser.mjs +9 -0
  359. package/es/utils/browser.mjs.map +1 -0
  360. package/es/utils/console-log/index.d.ts +3 -0
  361. package/es/utils/console-log/index.mjs +23 -0
  362. package/es/utils/console-log/index.mjs.map +1 -0
  363. package/es/utils/create/index.d.ts +21 -0
  364. package/es/utils/create/index.mjs +43 -0
  365. package/es/utils/create/index.mjs.map +1 -0
  366. package/es/utils/dom/index.d.ts +2 -0
  367. package/es/utils/dom/index.mjs +3 -0
  368. package/es/utils/dom/scroll.d.ts +11 -0
  369. package/es/utils/dom/scroll.mjs +107 -0
  370. package/es/utils/dom/scroll.mjs.map +1 -0
  371. package/es/utils/dom/style.d.ts +5 -0
  372. package/es/utils/dom/style.mjs +35 -0
  373. package/es/utils/dom/style.mjs.map +1 -0
  374. package/es/utils/easings.d.ts +1 -0
  375. package/es/utils/easings.mjs +11 -0
  376. package/es/utils/easings.mjs.map +1 -0
  377. package/es/utils/index.d.ts +11 -0
  378. package/es/utils/index.mjs +14 -0
  379. package/es/utils/objects.d.ts +8 -0
  380. package/es/utils/objects.mjs +19 -0
  381. package/es/utils/objects.mjs.map +1 -0
  382. package/es/utils/raf.d.ts +2 -0
  383. package/es/utils/raf.mjs +8 -0
  384. package/es/utils/raf.mjs.map +1 -0
  385. package/es/utils/request/index.d.ts +25 -0
  386. package/es/utils/request/index.mjs +49 -0
  387. package/es/utils/request/index.mjs.map +1 -0
  388. package/es/utils/types.d.ts +10 -0
  389. package/es/utils/types.mjs +22 -0
  390. package/es/utils/types.mjs.map +1 -0
  391. package/es/utils/typescript.d.ts +12 -0
  392. package/es/utils/typescript.mjs +6 -0
  393. package/es/utils/typescript.mjs.map +1 -0
  394. package/es/utils/vue/index.d.ts +3 -0
  395. package/es/utils/vue/index.mjs +3 -0
  396. package/es/utils/vue/install.d.ts +50 -0
  397. package/es/utils/vue/install.mjs +74 -0
  398. package/es/utils/vue/install.mjs.map +1 -0
  399. package/es/utils/vue/props/index.d.ts +3 -0
  400. package/es/utils/vue/props/index.mjs +2 -0
  401. package/es/utils/vue/props/runtime.d.ts +29 -0
  402. package/es/utils/vue/props/runtime.mjs +59 -0
  403. package/es/utils/vue/props/runtime.mjs.map +1 -0
  404. package/es/utils/vue/props/types.d.ts +120 -0
  405. package/es/utils/vue/props/types.mjs +0 -0
  406. package/es/utils/vue/props/util.d.ts +8 -0
  407. package/es/utils/vue/props/util.mjs +0 -0
  408. package/es/utils/vue/typescript.d.ts +6 -0
  409. package/es/utils/vue/typescript.mjs +0 -0
  410. package/es/version.d.ts +1 -0
  411. package/es/version.mjs +6 -0
  412. package/es/version.mjs.map +1 -0
  413. package/global.d.ts +1 -0
  414. package/package.json +80 -0
  415. package/resolvers/index.d.mts +19 -0
  416. package/resolvers/index.d.ts +19 -0
  417. package/resolvers/index.mjs +32 -0
  418. package/theme-chalk/hd-date-picker.css +1 -0
  419. package/theme-chalk/hd-descriptions.css +1 -0
  420. package/theme-chalk/hd-ellipsis-tag.css +1 -0
  421. package/theme-chalk/hd-empty.css +2 -0
  422. package/theme-chalk/hd-jdata-viewer.css +1 -0
  423. package/theme-chalk/hd-radio.css +1 -0
  424. package/theme-chalk/hd-remote-search.css +1 -0
  425. package/theme-chalk/hd-search-form.css +1 -0
  426. package/theme-chalk/hd-sticky-container.css +1 -0
  427. package/theme-chalk/hd-table-editor.css +1 -0
  428. package/theme-chalk/hd-table.css +1 -0
  429. package/theme-chalk/hd-tabs.css +1 -0
  430. package/theme-chalk/hd-tarea-tag.css +1 -0
  431. package/theme-chalk/hd-text-ellipsis.css +1 -0
  432. package/theme-chalk/hd-time-line.css +1 -0
  433. package/theme-chalk/hd-uploader.css +1 -0
  434. package/theme-chalk/index.css +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"idescriptions.mjs","names":[],"sources":["../../../../../../packages/components/descriptions/src/idescriptions.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue'\n\ninterface LabelProps {\n label?: string\n prop?: string\n}\n\nexport interface ListProps extends LabelProps {\n render?: Function\n labelRender?: Function\n span?: number\n enum?: any\n show?: boolean | Function\n labelPosition?: 'left' | 'top'\n}\n\nexport interface DescriptionsListProps extends LabelProps {\n render?: Function\n labelRender?: Function\n span?: number\n enum?: any\n show?: boolean | Function\n}\n\nexport const descriptionsProps = {\n list: {\n type: Array as PropType<ListProps[]>,\n default: () => [],\n },\n data: {\n type: Object,\n default: () => ({}),\n },\n span: {\n type: Number,\n default: 8,\n },\n labelWidth: {\n type: String,\n default: 'auto',\n },\n labelAlign: {\n type: String,\n default: 'left',\n },\n labelPosition: {\n type: String,\n default: 'left',\n },\n labelSuffixHide: {\n type: Boolean,\n default: false,\n },\n border: {\n type: Boolean,\n default: false,\n },\n labelColor: {\n type: String,\n default: '#606266',\n },\n valueColor: {\n type: String,\n default: '#909399',\n },\n lineHeight: {\n type: String,\n default: '26px',\n },\n colAignItemsCenter: {\n type: Boolean,\n default: false,\n },\n}\n\nexport type DescriptionsProps = ExtractPropTypes<typeof descriptionsProps>\n"],"mappings":";AAwBA,IAAa,oBAAoB;CAC/B,MAAM;EACJ,MAAM;EACN,eAAe,EAAE;EAClB;CACD,MAAM;EACJ,MAAM;EACN,gBAAgB,EAAE;EACnB;CACD,MAAM;EACJ,MAAM;EACN,SAAS;EACV;CACD,YAAY;EACV,MAAM;EACN,SAAS;EACV;CACD,YAAY;EACV,MAAM;EACN,SAAS;EACV;CACD,eAAe;EACb,MAAM;EACN,SAAS;EACV;CACD,iBAAiB;EACf,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACD,YAAY;EACV,MAAM;EACN,SAAS;EACV;CACD,YAAY;EACV,MAAM;EACN,SAAS;EACV;CACD,YAAY;EACV,MAAM;EACN,SAAS;EACV;CACD,oBAAoB;EAClB,MAAM;EACN,SAAS;EACV;CACF"}
@@ -0,0 +1,2 @@
1
+ import type Descriptions from './descriptions.js';
2
+ export type DescriptionsInstance = InstanceType<typeof Descriptions>;
File without changes
@@ -0,0 +1 @@
1
+ import '../src/descriptions.scss';
@@ -0,0 +1,6 @@
1
+ import EllipsisTag from './src/ellipsis-tag.vue.js';
2
+ import type { SFCWithInstall } from '../../utils/index.js';
3
+ export declare const HdEllipsisTag: SFCWithInstall<typeof EllipsisTag>;
4
+ export default HdEllipsisTag;
5
+ export * from './src/ellipsis-tag.js';
6
+ export type { EllipsisTagInstance } from './src/instance.js';
@@ -0,0 +1,9 @@
1
+ import { withInstall } from "../../utils/vue/install.mjs";
2
+ import { ellipsisTagProps } from "./src/ellipsis-tag.mjs";
3
+ import ellipsis_tag_default from "./src/ellipsis-tag.vue.mjs";
4
+ //#region packages/components/ellipsis-tag/index.ts
5
+ var HdEllipsisTag = withInstall(ellipsis_tag_default);
6
+ //#endregion
7
+ export { HdEllipsisTag, HdEllipsisTag as default, ellipsisTagProps };
8
+
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../packages/components/ellipsis-tag/index.ts"],"sourcesContent":["import { withInstall } from '@hd-custom/utils'\n\nimport EllipsisTag from './src/ellipsis-tag.vue'\nimport type { SFCWithInstall } from '@hd-custom/utils'\n\nexport const HdEllipsisTag: SFCWithInstall<typeof EllipsisTag> = withInstall(EllipsisTag)\nexport default HdEllipsisTag\n\nexport * from './src/ellipsis-tag'\nexport type { EllipsisTagInstance } from './src/instance'\n"],"mappings":";;;;AAKA,IAAa,gBAAoD,YAAY,qBAAY"}
@@ -0,0 +1,20 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ export interface ResizeInfo {
3
+ width: number;
4
+ height: number;
5
+ }
6
+ export declare const ellipsisTagProps: {
7
+ tags: {
8
+ type: PropType<Array<any>>;
9
+ default: () => never[];
10
+ };
11
+ valueKey: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ labelKey: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ };
20
+ export type EllipsisTagProps = ExtractPropTypes<typeof ellipsisTagProps>;
@@ -0,0 +1,19 @@
1
+ //#region packages/components/ellipsis-tag/src/ellipsis-tag.ts
2
+ var ellipsisTagProps = {
3
+ tags: {
4
+ type: Array,
5
+ default: () => []
6
+ },
7
+ valueKey: {
8
+ type: String,
9
+ default: "value"
10
+ },
11
+ labelKey: {
12
+ type: String,
13
+ default: "label"
14
+ }
15
+ };
16
+ //#endregion
17
+ export { ellipsisTagProps };
18
+
19
+ //# sourceMappingURL=ellipsis-tag.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ellipsis-tag.mjs","names":[],"sources":["../../../../../../packages/components/ellipsis-tag/src/ellipsis-tag.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue'\n\nexport interface ResizeInfo {\n width: number\n height: number\n}\n\nexport const ellipsisTagProps = {\n tags: {\n type: Array as PropType<Array<any>>,\n default: () => [],\n },\n valueKey: {\n type: String,\n default: 'value',\n },\n labelKey: {\n type: String,\n default: 'label',\n },\n}\n\nexport type EllipsisTagProps = ExtractPropTypes<typeof ellipsisTagProps>\n"],"mappings":";AAOA,IAAa,mBAAmB;CAC9B,MAAM;EACJ,MAAM;EACN,eAAe,EAAE;EAClB;CACD,UAAU;EACR,MAAM;EACN,SAAS;EACV;CACD,UAAU;EACR,MAAM;EACN,SAAS;EACV;CACF"}
@@ -0,0 +1,51 @@
1
+ declare var __VLS_1: {
2
+ info: any;
3
+ }, __VLS_10: {
4
+ info: any;
5
+ }, __VLS_13: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ } & {
9
+ default?: (props: typeof __VLS_10) => any;
10
+ } & {
11
+ ellipsis?: (props: typeof __VLS_13) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
+ tags: {
15
+ type: import("vue").PropType<Array<any>>;
16
+ default: () => never[];
17
+ };
18
+ valueKey: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ labelKey: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ tags: {
28
+ type: import("vue").PropType<Array<any>>;
29
+ default: () => never[];
30
+ };
31
+ valueKey: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ labelKey: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ }>> & Readonly<{}>, {
40
+ tags: any[];
41
+ valueKey: string;
42
+ labelKey: string;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,7 @@
1
+ import ellipsis_tag_vue_vue_type_script_setup_true_lang_default from "./ellipsis-tag.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region packages/components/ellipsis-tag/src/ellipsis-tag.vue
3
+ var ellipsis_tag_default = ellipsis_tag_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { ellipsis_tag_default as default };
6
+
7
+ //# sourceMappingURL=ellipsis-tag.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ellipsis-tag.vue.mjs","names":[],"sources":["../../../../../../packages/components/ellipsis-tag/src/ellipsis-tag.vue"],"sourcesContent":["<template>\n <div ref=\"containerRef\" v-resize-element=\"resizeHandle\" class=\"hd-ellipsis-tag ellipsis-tag flex w-full\">\n <div class=\"flex-1 overflow-hidden\">\n <div class=\"tag-box\" ref=\"tagBoxRef\">\n <template v-for=\"(tag, index) in tags\">\n <slot :info=\"tag\">\n <p class=\"tag\" :style=\"tag.style\" :key=\"tag[valueKey] || index\">\n {{ tag[labelKey] }}\n </p>\n </slot>\n </template>\n </div>\n </div>\n <ElPopover popper-class=\"ellipsis-tag-popover\" placement=\"top-end\" :width=\"360\" trigger=\"hover\" v-bind=\"$attrs\">\n <template #default>\n <div class=\"tag-box\">\n <template v-for=\"(tag, index) in tags\">\n <slot :info=\"tag\">\n <p class=\"tag\" :style=\"tag.style\" :key=\"tag[valueKey] || index\">\n {{ tag[labelKey] }}\n </p>\n </slot>\n </template>\n </div>\n </template>\n <template #reference>\n <slot name=\"ellipsis\">\n <div v-show=\"shoEllipsis\" class=\"ellipsis\">\n <ElIcon>\n <MoreFilled />\n </ElIcon>\n </div>\n </slot>\n </template>\n </ElPopover>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, watch, nextTick } from 'vue'\nimport { ElIcon, ElPopover } from 'element-plus'\nimport { MoreFilled } from '@element-plus/icons-vue'\nimport { ellipsisTagProps, ResizeInfo } from './ellipsis-tag'\nimport { debounceFun } from '@hd-custom/share'\nimport { ResizeElement as vResizeElement } from '@hd-custom/directives'\n\ndefineOptions({\n name: 'EllipsisTag', // 组件名称 大驼�?\n})\n\nconst props = defineProps(ellipsisTagProps)\n\nconst containerRef = ref<HTMLElement | null>(null)\nconst tagBoxRef = ref<HTMLElement | null>(null)\nconst shoEllipsis = ref(false)\n\nconst resizeHandle = debounceFun((info: ResizeInfo) => {\n handleResize(info)\n}, 300)\n\nconst handleResize = (info: { width: number }) => {\n if (!tagBoxRef.value) return\n const boxWidth = tagBoxRef.value.getBoundingClientRect().width\n shoEllipsis.value = info.width < boxWidth\n}\n\n// 使用nextTick确保DOM更新\nwatch(\n () => props.tags,\n () => {\n nextTick(() => {\n if (!tagBoxRef.value) return\n resizeHandle({\n width: tagBoxRef.value.offsetWidth,\n height: tagBoxRef.value.offsetHeight,\n })\n })\n },\n { deep: true },\n)\n</script>\n"],"mappings":""}
@@ -0,0 +1,74 @@
1
+ import { ellipsisTagProps } from "./ellipsis-tag.mjs";
2
+ import { debounceFun } from "../../../share/dist/index.mjs";
3
+ import resizeElement from "../../../directives/resize-element/index.mjs";
4
+ import { Fragment, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, unref, vShow, watch, withCtx, withDirectives } from "vue";
5
+ import { ElIcon, ElPopover } from "element-plus";
6
+ import { MoreFilled } from "@element-plus/icons-vue";
7
+ //#region packages/components/ellipsis-tag/src/ellipsis-tag.vue?vue&type=script&setup=true&lang.ts
8
+ var ellipsis_tag_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
9
+ name: "EllipsisTag",
10
+ __name: "ellipsis-tag",
11
+ props: ellipsisTagProps,
12
+ setup(__props) {
13
+ const props = __props;
14
+ const containerRef = ref(null);
15
+ const tagBoxRef = ref(null);
16
+ const shoEllipsis = ref(false);
17
+ const resizeHandle = debounceFun((info) => {
18
+ handleResize(info);
19
+ }, 300);
20
+ const handleResize = (info) => {
21
+ if (!tagBoxRef.value) return;
22
+ const boxWidth = tagBoxRef.value.getBoundingClientRect().width;
23
+ shoEllipsis.value = info.width < boxWidth;
24
+ };
25
+ watch(() => props.tags, () => {
26
+ nextTick(() => {
27
+ if (!tagBoxRef.value) return;
28
+ resizeHandle({
29
+ width: tagBoxRef.value.offsetWidth,
30
+ height: tagBoxRef.value.offsetHeight
31
+ });
32
+ });
33
+ }, { deep: true });
34
+ return (_ctx, _cache) => {
35
+ return withDirectives((openBlock(), createElementBlock("div", {
36
+ ref_key: "containerRef",
37
+ ref: containerRef,
38
+ class: "hd-ellipsis-tag ellipsis-tag flex w-full"
39
+ }, [createElementVNode("div", { class: "flex-1 overflow-hidden" }, [createElementVNode("div", {
40
+ class: "tag-box",
41
+ ref_key: "tagBoxRef",
42
+ ref: tagBoxRef
43
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tags, (tag, index) => {
44
+ return renderSlot(_ctx.$slots, "default", { info: tag }, () => [(openBlock(), createElementBlock("p", {
45
+ class: "tag",
46
+ style: normalizeStyle(tag.style),
47
+ key: tag[_ctx.valueKey] || index
48
+ }, toDisplayString(tag[_ctx.labelKey]), 5))]);
49
+ }), 256))], 512)]), createVNode(unref(ElPopover), mergeProps({
50
+ "popper-class": "ellipsis-tag-popover",
51
+ placement: "top-end",
52
+ width: 360,
53
+ trigger: "hover"
54
+ }, _ctx.$attrs), {
55
+ default: withCtx(() => [createElementVNode("div", { class: "tag-box" }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tags, (tag, index) => {
56
+ return renderSlot(_ctx.$slots, "default", { info: tag }, () => [(openBlock(), createElementBlock("p", {
57
+ class: "tag",
58
+ style: normalizeStyle(tag.style),
59
+ key: tag[_ctx.valueKey] || index
60
+ }, toDisplayString(tag[_ctx.labelKey]), 5))]);
61
+ }), 256))])]),
62
+ reference: withCtx(() => [renderSlot(_ctx.$slots, "ellipsis", {}, () => [withDirectives(createElementVNode("div", { class: "ellipsis" }, [createVNode(unref(ElIcon), null, {
63
+ default: withCtx(() => [createVNode(unref(MoreFilled))]),
64
+ _: 1
65
+ })], 512), [[vShow, shoEllipsis.value]])])]),
66
+ _: 3
67
+ }, 16)])), [[unref(resizeElement), unref(resizeHandle)]]);
68
+ };
69
+ }
70
+ });
71
+ //#endregion
72
+ export { ellipsis_tag_vue_vue_type_script_setup_true_lang_default as default };
73
+
74
+ //# sourceMappingURL=ellipsis-tag.vue_vue_type_script_setup_true_lang.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ellipsis-tag.vue_vue_type_script_setup_true_lang.mjs","names":["tags","valueKey","labelKey","$attrs"],"sources":["../../../../../../packages/components/ellipsis-tag/src/ellipsis-tag.vue"],"sourcesContent":["<template>\n <div ref=\"containerRef\" v-resize-element=\"resizeHandle\" class=\"hd-ellipsis-tag ellipsis-tag flex w-full\">\n <div class=\"flex-1 overflow-hidden\">\n <div class=\"tag-box\" ref=\"tagBoxRef\">\n <template v-for=\"(tag, index) in tags\">\n <slot :info=\"tag\">\n <p class=\"tag\" :style=\"tag.style\" :key=\"tag[valueKey] || index\">\n {{ tag[labelKey] }}\n </p>\n </slot>\n </template>\n </div>\n </div>\n <ElPopover popper-class=\"ellipsis-tag-popover\" placement=\"top-end\" :width=\"360\" trigger=\"hover\" v-bind=\"$attrs\">\n <template #default>\n <div class=\"tag-box\">\n <template v-for=\"(tag, index) in tags\">\n <slot :info=\"tag\">\n <p class=\"tag\" :style=\"tag.style\" :key=\"tag[valueKey] || index\">\n {{ tag[labelKey] }}\n </p>\n </slot>\n </template>\n </div>\n </template>\n <template #reference>\n <slot name=\"ellipsis\">\n <div v-show=\"shoEllipsis\" class=\"ellipsis\">\n <ElIcon>\n <MoreFilled />\n </ElIcon>\n </div>\n </slot>\n </template>\n </ElPopover>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, watch, nextTick } from 'vue'\nimport { ElIcon, ElPopover } from 'element-plus'\nimport { MoreFilled } from '@element-plus/icons-vue'\nimport { ellipsisTagProps, ResizeInfo } from './ellipsis-tag'\nimport { debounceFun } from '@hd-custom/share'\nimport { ResizeElement as vResizeElement } from '@hd-custom/directives'\n\ndefineOptions({\n name: 'EllipsisTag', // 组件名称 大驼�?\n})\n\nconst props = defineProps(ellipsisTagProps)\n\nconst containerRef = ref<HTMLElement | null>(null)\nconst tagBoxRef = ref<HTMLElement | null>(null)\nconst shoEllipsis = ref(false)\n\nconst resizeHandle = debounceFun((info: ResizeInfo) => {\n handleResize(info)\n}, 300)\n\nconst handleResize = (info: { width: number }) => {\n if (!tagBoxRef.value) return\n const boxWidth = tagBoxRef.value.getBoundingClientRect().width\n shoEllipsis.value = info.width < boxWidth\n}\n\n// 使用nextTick确保DOM更新\nwatch(\n () => props.tags,\n () => {\n nextTick(() => {\n if (!tagBoxRef.value) return\n resizeHandle({\n width: tagBoxRef.value.offsetWidth,\n height: tagBoxRef.value.offsetHeight,\n })\n })\n },\n { deep: true },\n)\n</script>\n"],"mappings":";;;;;;;;;;;;EAiDA,MAAM,QAAQ;EAEd,MAAM,eAAe,IAAwB,KAAI;EACjD,MAAM,YAAY,IAAwB,KAAI;EAC9C,MAAM,cAAc,IAAI,MAAK;EAE7B,MAAM,eAAe,aAAa,SAAqB;AACrD,gBAAa,KAAI;KAChB,IAAG;EAEN,MAAM,gBAAgB,SAA4B;AAChD,OAAI,CAAC,UAAU,MAAO;GACtB,MAAM,WAAW,UAAU,MAAM,uBAAuB,CAAC;AACzD,eAAY,QAAQ,KAAK,QAAQ;;AAInC,cACQ,MAAM,YACN;AACJ,kBAAe;AACb,QAAI,CAAC,UAAU,MAAO;AACtB,iBAAa;KACX,OAAO,UAAU,MAAM;KACvB,QAAQ,UAAU,MAAM;KACzB,CAAA;KACF;KAEH,EAAE,MAAM,MAAM,CAChB;;uCA7EE,mBAkCM,OAAA;aAlCG;IAAJ,KAAI;IAA+C,OAAM;OAC5D,mBAUM,OAAA,EAVD,OAAM,0BAAwB,EAAA,CACjC,mBAQM,OAAA;IARD,OAAM;aAAc;IAAJ,KAAI;yBACvB,mBAMW,UAAA,MAAA,WANsBA,KAAAA,OAAf,KAAK,UAAK;WAC1B,WAIO,KAAA,QAAA,WAAA,EAJA,MAAM,KAAG,QAIT,EAAA,WAAA,EAHL,mBAEI,KAAA;KAFD,OAAM;KAAO,OAAK,eAAE,IAAI,MAAK;KAAG,KAAK,IAAIC,KAAAA,aAAa;uBACpD,IAAIC,KAAAA,UAAQ,EAAA,EAAA,EAAA,CAAA;uBAMzB,YAqBY,MAAA,UAAA,EArBZ,WAqBY;IArBD,gBAAa;IAAuB,WAAU;IAAW,OAAO;IAAK,SAAQ;MAAgBC,KAAAA,OAAM,EAAA;IACjG,SAAO,cASV,CARN,mBAQM,OAAA,EARD,OAAM,WAAS,EAAA,EAAA,UAAA,KAAA,EAClB,mBAMW,UAAA,MAAA,WANsBH,KAAAA,OAAf,KAAK,UAAK;YAC1B,WAIO,KAAA,QAAA,WAAA,EAJA,MAAM,KAAG,QAIT,EAAA,WAAA,EAHL,mBAEI,KAAA;MAFD,OAAM;MAAO,OAAK,eAAE,IAAI,MAAK;MAAG,KAAK,IAAIC,KAAAA,aAAa;wBACpD,IAAIC,KAAAA,UAAQ,EAAA,EAAA,EAAA,CAAA;;IAMd,WAAS,cAOX,CANP,WAMO,KAAA,QAAA,YAAA,EAAA,QAAA,CAAA,eALL,mBAIM,OAAA,EAJoB,OAAM,YAAU,EAAA,CACxC,YAES,MAAA,OAAA,EAAA,MAAA;4BADO,CAAd,YAAc,MAAA,WAAA,CAAA,CAAA,CAAA;;wBAFL,YAAA,MAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;sCA1BU,MAAA,aAAY,CAAA,CAAA,CAAA"}
@@ -0,0 +1,2 @@
1
+ import type EllipsisTag from './ellipsis-tag.vue.js';
2
+ export type EllipsisTagInstance = InstanceType<typeof EllipsisTag>;
File without changes
@@ -0,0 +1 @@
1
+ import '../src/ellipsis-tag.scss';
@@ -0,0 +1,6 @@
1
+ import Empty from './src/empty.js';
2
+ import type { SFCWithInstall } from '../../utils/index.js';
3
+ export declare const HdEmpty: SFCWithInstall<typeof Empty>;
4
+ export default HdEmpty;
5
+ export * from './src/iempty.js';
6
+ export type { EmptyInstance } from './src/instance.js';
@@ -0,0 +1,9 @@
1
+ import { withInstall } from "../../utils/vue/install.mjs";
2
+ import { emptyProps } from "./src/iempty.mjs";
3
+ import empty_default from "./src/empty.mjs";
4
+ //#region packages/components/empty/index.ts
5
+ var HdEmpty = withInstall(empty_default);
6
+ //#endregion
7
+ export { HdEmpty, HdEmpty as default, emptyProps };
8
+
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../packages/components/empty/index.ts"],"sourcesContent":["import { withInstall } from '@hd-custom/utils'\n\nimport Empty from './src/empty'\nimport type { SFCWithInstall } from '@hd-custom/utils'\n\nexport const HdEmpty: SFCWithInstall<typeof Empty> = withInstall(Empty)\nexport default HdEmpty\n\nexport * from './src/iempty'\nexport type { EmptyInstance } from './src/instance'\n"],"mappings":";;;;AAKA,IAAa,UAAwC,YAAY,cAAM"}
@@ -0,0 +1,86 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ size: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ largeSize: {
7
+ type: ObjectConstructor;
8
+ default: () => {
9
+ width: string;
10
+ height: string;
11
+ };
12
+ };
13
+ smallSize: {
14
+ type: ObjectConstructor;
15
+ default: () => {
16
+ width: string;
17
+ height: string;
18
+ };
19
+ };
20
+ miniSize: {
21
+ type: ObjectConstructor;
22
+ default: () => {
23
+ width: string;
24
+ height: string;
25
+ };
26
+ };
27
+ desc: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ hidesc: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ hideImg: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ size: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ largeSize: {
45
+ type: ObjectConstructor;
46
+ default: () => {
47
+ width: string;
48
+ height: string;
49
+ };
50
+ };
51
+ smallSize: {
52
+ type: ObjectConstructor;
53
+ default: () => {
54
+ width: string;
55
+ height: string;
56
+ };
57
+ };
58
+ miniSize: {
59
+ type: ObjectConstructor;
60
+ default: () => {
61
+ width: string;
62
+ height: string;
63
+ };
64
+ };
65
+ desc: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ hidesc: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ hideImg: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ }>> & Readonly<{}>, {
78
+ desc: string;
79
+ size: string;
80
+ largeSize: Record<string, any>;
81
+ smallSize: Record<string, any>;
82
+ miniSize: Record<string, any>;
83
+ hidesc: boolean;
84
+ hideImg: boolean;
85
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
86
+ export default _default;
@@ -0,0 +1,158 @@
1
+ import { emptyProps } from "./iempty.mjs";
2
+ import { createVNode, defineComponent } from "vue";
3
+ //#region packages/components/empty/src/empty.tsx
4
+ var BaseEmpty = (props) => {
5
+ const descStyles = {
6
+ fontSize: "14px",
7
+ color: "#909399",
8
+ marginTop: props.hideImg ? "0" : "16px"
9
+ };
10
+ return createVNode("div", { "class": "flex flex-col justify-center items-center pt-[16px]" }, [!props.hideImg && createVNode("div", null, [createVNode("svg", {
11
+ "style": props.size === "small" ? props.smallSize : props.size === "mini" ? props.miniSize : props.largeSize,
12
+ "viewBox": "0 0 240 120",
13
+ "xmlns": "http://www.w3.org/2000/svg"
14
+ }, [
15
+ createVNode("path", {
16
+ "d": "M127.87,120C188.68,120 237.97,108.1 237.97,93.42C237.97,78.74 188.68,66.84 127.87,66.84C67.07,66.84 17.78,78.74 17.78,93.42C17.78,108.1 67.07,120 127.87,120Z",
17
+ "fill": "#fafafa"
18
+ }, null),
19
+ createVNode("path", {
20
+ "d": "M40.21,7.99C49.71,8.65 57.51,14.23 60.44,21.59L62.19,21.71C71.52,22.36 78.56,30.49 77.91,39.86L77.79,41.54C77.14,50.91 69.04,57.97 59.71,57.32L15.76,54.23C6.43,53.58-0.61,45.45 0.04,36.09L0.16,34.4C0.81,25.03 8.91,17.97 18.24,18.62L18.29,18.63C22.21,11.75 30.71,7.32 40.21,7.98L40.21,7.99Z",
21
+ "fill": "#dedeee",
22
+ "opacity": "0.18"
23
+ }, null),
24
+ createVNode("path", {
25
+ "d": "M216.71,66.08L217.62,66.08C217.99,66.08 218.3,66.38 218.3,66.76L218.3,76.03C218.3,76.21 218.23,76.38 218.1,76.51C217.97,76.64 217.8,76.71 217.62,76.71L216.71,76.71C216.33,76.71 216.03,76.4 216.03,76.03L216.03,66.76C216.03,66.38 216.33,66.08 216.71,66.08L216.71,66.08Z",
26
+ "fill-opacity": "0.9",
27
+ "fill": "#f0f0f3"
28
+ }, null),
29
+ createVNode("path", {
30
+ "d": "M37.4,92.57L38.57,92.57C39.06,92.57 39.45,92.97 39.45,93.46L39.45,105.44C39.45,105.68 39.36,105.9 39.19,106.07C39.03,106.24 38.8,106.33 38.57,106.33L37.4,106.33C37.17,106.33 36.94,106.24 36.77,106.07C36.61,105.9 36.52,105.68 36.52,105.44L36.52,93.46C36.52,92.97 36.91,92.57 37.4,92.57L37.4,92.57Z",
31
+ "fill-opacity": "0.9",
32
+ "fill": "#f0f0f3"
33
+ }, null),
34
+ createVNode("path", {
35
+ "d": "M223.66,8.16C228.38,8.49 232.23,11.37 233.51,15.11C237.45,15.99 240.27,19.67 239.98,23.84C239.66,28.44 235.68,31.91 231.09,31.59L211.47,30.21C206.88,29.89 203.43,25.9 203.75,21.3C204.07,16.69 208.04,13.22 212.63,13.55L212.99,13.57C214.8,10.1 218.97,7.83 223.66,8.16L223.66,8.16Z",
36
+ "fill": "#dedeee",
37
+ "opacity": "0.3"
38
+ }, null),
39
+ createVNode("path", {
40
+ "d": "M118.14,0L118.14,70.08L187.35,79.46L187.35,16.72L118.14,0Z",
41
+ "fill": "#dddee7"
42
+ }, null),
43
+ createVNode("path", {
44
+ "d": "M66.51,16.72L118.14,0L118.14,61.42L66.51,80.29L66.51,16.72Z",
45
+ "fill": "#ececf4"
46
+ }, null),
47
+ createVNode("path", {
48
+ "d": "M66.51,16.72L66.51,80.29L136.69,101.51L136.69,34.57L66.51,16.72Z",
49
+ "fill": "#f0f0f6"
50
+ }, null),
51
+ createVNode("path", {
52
+ "d": "M113,71.93C112.89,75.63 110.4,78.18 106.77,78.31C110.02,80.67 112.11,84.43 112.11,87.92L112.11,88.05L108.42,86.99L108.42,86.86C108.42,84.6 106.94,82.16 104.75,80.82C104.97,80.11 105.08,79.34 105.08,78.53C105.08,78.37 105.08,78.21 105.06,78.04C105.06,77.95 105.06,77.87 105.05,77.78C105.03,77.61 105.01,77.43 104.99,77.26C104.86,76.3 104.58,75.34 104.17,74.39C106.94,75.07 109.17,73.55 109.31,70.88L113,71.93Z",
53
+ "fill": "#eaeaf2",
54
+ "opacity": "0.5"
55
+ }, null),
56
+ createVNode("path", {
57
+ "d": "M74.24,62.23L74.24,62.24L76.31,66.95L78.46,63.44L94.56,68.05L92.69,71.11L89.45,70.19L83.52,79.87L79.27,78.65L85.18,68.97L80.73,67.69L74.82,77.38L70.66,76.19L74.69,69.62L73.68,69.33L73.66,69.29L70,61.02L74.24,62.23Z",
58
+ "fill": "#eaeaf2",
59
+ "opacity": "0.5"
60
+ }, null),
61
+ createVNode("path", {
62
+ "d": "M96.15,68.51C100.32,69.78 103.66,74.06 103.66,78.14C103.66,81.3 101.63,83.53 98.58,83.73C95.6,83.91 92.28,82.09 90.22,79.17L90.1,78.98L92.72,77.17C93.78,79.0 95.79,80.17 97.53,79.96C99.28,79.75 100.27,78.22 99.9,76.3C99.53,74.38 97.9,72.61 96.01,72.07L94.28,71.58L96.15,68.51Z",
63
+ "fill": "#eaeaf2",
64
+ "opacity": "0.5"
65
+ }, null),
66
+ createVNode("path", {
67
+ "d": "M104.79,66.42C105.92,67.49 106.36,69.03 105.84,70.11C105.32,71.19 103.98,71.51 102.65,70.86C101.32,70.22 100.36,68.8 100.36,67.47C100.35,66.73 100.66,66.11 101.19,65.74C102.15,65.08 103.66,65.36 104.79,66.42Z",
68
+ "fill": "#eaeaf2",
69
+ "opacity": "0.5"
70
+ }, null),
71
+ createVNode("path", {
72
+ "d": "M136.69,34.57L136.69,101.51L187.35,79.46L187.35,16.72L136.69,34.57Z",
73
+ "fill": "#eeeef3"
74
+ }, null),
75
+ createVNode("path", {
76
+ "d": "M66.51,16.72L49.56,41.92L116.58,61.42L136.69,34.57L66.51,16.72Z",
77
+ "fill": "#f4f4f9"
78
+ }, null),
79
+ createVNode("path", {
80
+ "d": "M136.69,34.57L153.49,63.72L206.09,40.58L187.35,16.72L136.69,34.57Z",
81
+ "fill": "#ebedef"
82
+ }, null),
83
+ createVNode("path", {
84
+ "d": "M183.08,42.62C179.51,46.53 177.38,48.95 176.67,49.87C176.39,50.27 177.56,51.4 180.17,53.27C183.79,53.03 185.33,53.22 184.77,53.83C184.4,54.21 183.01,55.34 182.53,54.7C182.21,54.27 180.9,54 178.6,53.88C174.12,53.73 172.68,51.96 174.27,48.58C175.87,45.21 177.65,42.35 179.61,40.03L182.89,42.25L183.08,42.62L183.08,42.62Z",
85
+ "fill": "#ffb8a3"
86
+ }, null),
87
+ createVNode("path", {
88
+ "d": "M183.75,30.35C183.18,33.22 183.45,34.91 184.55,35.41C185.99,36.02 184.6,37.43 184.31,37.59C184.11,37.69 184.28,37.99 184.82,38.47C185.73,38.96 186.4,39.15 186.83,39.05C187.26,38.95 187.78,38.47 188.39,37.59C187.25,36.75 186.85,36.08 187.19,35.58C187.54,35.08 188.07,34.55 188.78,34.00C189.47,33.47 189.44,33.06 188.7,32.78C188.88,32.28 188.95,31.7 188.9,31.05L186.49,30.35L184.03,29.81L183.75,30.35L183.75,30.35Z",
89
+ "fill": "#ffb8a3"
90
+ }, null),
91
+ createVNode("path", {
92
+ "d": "M185.29,31C187.64,30.33 188.27,31.37 188.27,31.81C188.27,32.11 188.2,32.59 188.05,33.28C188.25,33.18 188.46,33.09 188.66,32.98C189.38,32.56 189.86,31.83 190.03,31.26C190.35,30.19 189.41,27.93 186.99,28.26C186.14,28.1 186.01,26.84 184.54,27.62C183.07,28.39 182.58,27.8 182.58,28.59C182.58,29.39 182.64,31.84 185.29,31Z",
93
+ "fill": "#353564"
94
+ }, null),
95
+ createVNode("path", {
96
+ "d": "M179.97,95.59C178.42,96.55 177.34,97.03 176.73,97.03C175.81,97.03 175.31,97.86 176.16,98.31C177.02,98.75 179.77,98.11 180.47,98.11C181.18,98.11 182.99,98.36 182.29,96.34C181.83,94.99 181.41,94.41 181.02,94.61L179.97,94.9L179.97,95.59Z",
97
+ "fill": "#3e3e6e"
98
+ }, null),
99
+ createVNode("path", {
100
+ "d": "M190.6,95.49C189.53,96.98 188.72,97.82 188.16,98.00C187.32,98.28 187.16,99.31 188.09,99.54C189.02,99.77 191.29,98.26 191.93,98.05C192.57,97.84 194.3,97.58 192.97,95.61C192.08,94.29 191.49,93.8 191.21,94.13L190.36,94.75L190.6,95.49L190.6,95.49Z",
101
+ "fill": "#3e3e6e"
102
+ }, null),
103
+ createVNode("path", {
104
+ "d": "M189.14,60.11C188.14,66.85 186.71,72.11 184.88,75.91C183.88,80.64 183.23,94.95 181.9,95.49C180.57,96.03 179.62,95.71 179.67,95.02C179.72,94.32 177.89,75.14 178.1,72.15C178.24,70.17 178.26,66.22 178.16,60.32L189.14,60.11L189.14,60.11Z",
105
+ "fill": "#3e3e6e"
106
+ }, null),
107
+ createVNode("path", {
108
+ "d": "M193.83,59.34C193.97,65.81 193.6,72.76 192.72,80.18C191.89,89.43 193.67,94.55 192.42,95.26C191.16,95.96 190.18,95.75 190.14,95.06C190.11,94.36 186.28,75.64 186.12,72.65C186.02,70.66 185.56,66.74 184.75,60.89L193.83,59.34Z",
109
+ "fill": "#3e3e6e"
110
+ }, null),
111
+ createVNode("path", {
112
+ "d": "M184.38,37.32C185.88,38.96 187.26,38.96 188.52,37.32C188.74,37.17 193.36,36.94 196.64,42.29C196.67,42.49 195.75,43.59 193.88,45.59L193.3,45.59C194.58,52.17 194.77,57.41 193.88,61.31C193.76,61.72 188.51,61.95 178.11,62C178.09,53.2 178.67,47.99 179.85,46.39C179.71,46.09 178.63,45.13 176.62,43.49C177.25,42.12 178.21,40.81 179.48,39.55C180.75,38.28 182.38,37.54 184.38,37.32L184.38,37.32Z",
113
+ "fill": "#824c96"
114
+ }, null),
115
+ createVNode("path", {
116
+ "d": "M162.75,32.06C162.17,31.48 161.24,31.48 160.67,32.06C160.09,32.64 160.09,33.57 160.67,34.15L184.07,57.64C184.65,58.22 185.58,58.22 186.16,57.64C186.73,57.07 186.73,56.13 186.16,55.55L162.75,32.06L162.75,32.06Z",
117
+ "fill": "#ff9c00"
118
+ }, null),
119
+ createVNode("path", {
120
+ "d": "M174.6,44.37C179.12,39.83 179.12,32.47 174.6,27.93C170.07,23.38 162.74,23.38 158.21,27.93C153.69,32.47 153.69,39.83 158.21,44.37C162.74,48.92 170.07,48.92 174.6,44.37Z",
121
+ "fill": "#ff9c00"
122
+ }, null),
123
+ createVNode("path", {
124
+ "d": "M173.23,43C177.00,39.22 177.00,33.08 173.23,29.3C169.46,25.51 163.35,25.51 159.58,29.3C155.81,33.08 155.81,39.22 159.58,43C163.35,46.79 169.46,46.79 173.23,43Z",
125
+ "fill": "#fafafc"
126
+ }, null),
127
+ createVNode("path", {
128
+ "d": "M192.62,45.18C192.51,45.93 194.56,49.16 195.34,50.34C195.59,50.42 188.87,53.15 188.3,53.53C186.75,54.56 186.73,56.16 188.00,56.53C189.27,56.89 189.52,54.52 189.76,54.46C194.04,53.47 194.41,53.58 197.25,52.88C199.7,52.35 197.85,48.08 196.2,43.47C194.56,38.87 192.74,44.44 192.62,45.18L192.62,45.18Z",
129
+ "fill": "#ffb8a3"
130
+ }, null),
131
+ createVNode("path", {
132
+ "d": "M191.54,37.78C192.32,38.15 192.87,38.43 193.18,38.62C193.98,39.1 194.53,39.58 194.88,39.87C195.98,40.76 196.53,41.67 196.85,42.36C197.11,42.83 194.3,47.13 191.54,46.64C191.17,46.63 190.57,45.74 189.74,43.98L191.54,37.78L191.54,37.78Z",
133
+ "fill": "#824c96"
134
+ }, null),
135
+ createVNode("path", {
136
+ "d": "M179.8,53.83C180.74,53.52 181.38,52.65 181.23,52.17C181.07,51.7 180.19,51.43 179.63,52.17C179.47,52.39 179.55,53.44 177.96,52.72C177.53,52.52 177.41,52.75 177.51,53.04C177.6,53.32 177.46,53.77 178.5,53.87C178.89,53.91 179.41,53.96 179.8,53.83L179.8,53.83Z",
137
+ "fill": "#ffcebf"
138
+ }, null),
139
+ createVNode("path", {
140
+ "d": "M178.76,53.08C179.17,52.79 179.37,52.39 179.23,52.19C179.08,51.98 178.64,52.06 178.24,52.35C177.83,52.64 177.63,53.04 177.77,53.25C177.92,53.45 178.36,53.37 178.76,53.08L178.76,53.08Z",
141
+ "fill": "#ffcebf"
142
+ }, null)
143
+ ])]), !props.hidesc && createVNode("div", { "style": descStyles }, [props.desc])]);
144
+ };
145
+ var empty_default = /* @__PURE__ */ defineComponent({
146
+ name: "Empty",
147
+ props: emptyProps,
148
+ setup() {
149
+ return {};
150
+ },
151
+ render() {
152
+ return BaseEmpty(this);
153
+ }
154
+ });
155
+ //#endregion
156
+ export { empty_default as default };
157
+
158
+ //# sourceMappingURL=empty.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.mjs","names":["defineComponent","createVNode","_createVNode","emptyProps","BaseEmpty","props","descStyles","fontSize","color","marginTop","hideImg","size","smallSize","miniSize","largeSize","hidesc","desc","name","setup","render"],"sources":["../../../../../../packages/components/empty/src/empty.tsx"],"sourcesContent":["import { defineComponent } from 'vue'\nimport { EmptyProps, emptyProps } from './iempty'\n\nconst BaseEmpty = (props: EmptyProps) => {\n const descStyles = {\n fontSize: '14px',\n color: '#909399',\n marginTop: props.hideImg ? '0' : '16px',\n }\n return (\n <div class=\"flex flex-col justify-center items-center pt-[16px]\">\n {!props.hideImg && (\n <div>\n <svg\n style={props.size === 'small' ? props.smallSize : props.size === 'mini' ? props.miniSize : props.largeSize}\n viewBox=\"0 0 240 120\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M127.87,120C188.68,120 237.97,108.1 237.97,93.42C237.97,78.74 188.68,66.84 127.87,66.84C67.07,66.84 17.78,78.74 17.78,93.42C17.78,108.1 67.07,120 127.87,120Z\"\n fill=\"#fafafa\"\n />\n <path\n d=\"M40.21,7.99C49.71,8.65 57.51,14.23 60.44,21.59L62.19,21.71C71.52,22.36 78.56,30.49 77.91,39.86L77.79,41.54C77.14,50.91 69.04,57.97 59.71,57.32L15.76,54.23C6.43,53.58-0.61,45.45 0.04,36.09L0.16,34.4C0.81,25.03 8.91,17.97 18.24,18.62L18.29,18.63C22.21,11.75 30.71,7.32 40.21,7.98L40.21,7.99Z\"\n fill=\"#dedeee\"\n opacity=\"0.18\"\n />\n <path\n d=\"M216.71,66.08L217.62,66.08C217.99,66.08 218.3,66.38 218.3,66.76L218.3,76.03C218.3,76.21 218.23,76.38 218.1,76.51C217.97,76.64 217.8,76.71 217.62,76.71L216.71,76.71C216.33,76.71 216.03,76.4 216.03,76.03L216.03,66.76C216.03,66.38 216.33,66.08 216.71,66.08L216.71,66.08Z\"\n fill-opacity=\"0.9\"\n fill=\"#f0f0f3\"\n />\n <path\n d=\"M37.4,92.57L38.57,92.57C39.06,92.57 39.45,92.97 39.45,93.46L39.45,105.44C39.45,105.68 39.36,105.9 39.19,106.07C39.03,106.24 38.8,106.33 38.57,106.33L37.4,106.33C37.17,106.33 36.94,106.24 36.77,106.07C36.61,105.9 36.52,105.68 36.52,105.44L36.52,93.46C36.52,92.97 36.91,92.57 37.4,92.57L37.4,92.57Z\"\n fill-opacity=\"0.9\"\n fill=\"#f0f0f3\"\n />\n <path\n d=\"M223.66,8.16C228.38,8.49 232.23,11.37 233.51,15.11C237.45,15.99 240.27,19.67 239.98,23.84C239.66,28.44 235.68,31.91 231.09,31.59L211.47,30.21C206.88,29.89 203.43,25.9 203.75,21.3C204.07,16.69 208.04,13.22 212.63,13.55L212.99,13.57C214.8,10.1 218.97,7.83 223.66,8.16L223.66,8.16Z\"\n fill=\"#dedeee\"\n opacity=\"0.3\"\n />\n <path d=\"M118.14,0L118.14,70.08L187.35,79.46L187.35,16.72L118.14,0Z\" fill=\"#dddee7\" />\n <path d=\"M66.51,16.72L118.14,0L118.14,61.42L66.51,80.29L66.51,16.72Z\" fill=\"#ececf4\" />\n <path d=\"M66.51,16.72L66.51,80.29L136.69,101.51L136.69,34.57L66.51,16.72Z\" fill=\"#f0f0f6\" />\n <path\n d=\"M113,71.93C112.89,75.63 110.4,78.18 106.77,78.31C110.02,80.67 112.11,84.43 112.11,87.92L112.11,88.05L108.42,86.99L108.42,86.86C108.42,84.6 106.94,82.16 104.75,80.82C104.97,80.11 105.08,79.34 105.08,78.53C105.08,78.37 105.08,78.21 105.06,78.04C105.06,77.95 105.06,77.87 105.05,77.78C105.03,77.61 105.01,77.43 104.99,77.26C104.86,76.3 104.58,75.34 104.17,74.39C106.94,75.07 109.17,73.55 109.31,70.88L113,71.93Z\"\n fill=\"#eaeaf2\"\n opacity=\"0.5\"\n />\n <path\n d=\"M74.24,62.23L74.24,62.24L76.31,66.95L78.46,63.44L94.56,68.05L92.69,71.11L89.45,70.19L83.52,79.87L79.27,78.65L85.18,68.97L80.73,67.69L74.82,77.38L70.66,76.19L74.69,69.62L73.68,69.33L73.66,69.29L70,61.02L74.24,62.23Z\"\n fill=\"#eaeaf2\"\n opacity=\"0.5\"\n />\n <path\n d=\"M96.15,68.51C100.32,69.78 103.66,74.06 103.66,78.14C103.66,81.3 101.63,83.53 98.58,83.73C95.6,83.91 92.28,82.09 90.22,79.17L90.1,78.98L92.72,77.17C93.78,79.0 95.79,80.17 97.53,79.96C99.28,79.75 100.27,78.22 99.9,76.3C99.53,74.38 97.9,72.61 96.01,72.07L94.28,71.58L96.15,68.51Z\"\n fill=\"#eaeaf2\"\n opacity=\"0.5\"\n />\n <path\n d=\"M104.79,66.42C105.92,67.49 106.36,69.03 105.84,70.11C105.32,71.19 103.98,71.51 102.65,70.86C101.32,70.22 100.36,68.8 100.36,67.47C100.35,66.73 100.66,66.11 101.19,65.74C102.15,65.08 103.66,65.36 104.79,66.42Z\"\n fill=\"#eaeaf2\"\n opacity=\"0.5\"\n />\n <path d=\"M136.69,34.57L136.69,101.51L187.35,79.46L187.35,16.72L136.69,34.57Z\" fill=\"#eeeef3\" />\n <path d=\"M66.51,16.72L49.56,41.92L116.58,61.42L136.69,34.57L66.51,16.72Z\" fill=\"#f4f4f9\" />\n <path d=\"M136.69,34.57L153.49,63.72L206.09,40.58L187.35,16.72L136.69,34.57Z\" fill=\"#ebedef\" />\n <path\n d=\"M183.08,42.62C179.51,46.53 177.38,48.95 176.67,49.87C176.39,50.27 177.56,51.4 180.17,53.27C183.79,53.03 185.33,53.22 184.77,53.83C184.4,54.21 183.01,55.34 182.53,54.7C182.21,54.27 180.9,54 178.6,53.88C174.12,53.73 172.68,51.96 174.27,48.58C175.87,45.21 177.65,42.35 179.61,40.03L182.89,42.25L183.08,42.62L183.08,42.62Z\"\n fill=\"#ffb8a3\"\n />\n <path\n d=\"M183.75,30.35C183.18,33.22 183.45,34.91 184.55,35.41C185.99,36.02 184.6,37.43 184.31,37.59C184.11,37.69 184.28,37.99 184.82,38.47C185.73,38.96 186.4,39.15 186.83,39.05C187.26,38.95 187.78,38.47 188.39,37.59C187.25,36.75 186.85,36.08 187.19,35.58C187.54,35.08 188.07,34.55 188.78,34.00C189.47,33.47 189.44,33.06 188.7,32.78C188.88,32.28 188.95,31.7 188.9,31.05L186.49,30.35L184.03,29.81L183.75,30.35L183.75,30.35Z\"\n fill=\"#ffb8a3\"\n />\n <path\n d=\"M185.29,31C187.64,30.33 188.27,31.37 188.27,31.81C188.27,32.11 188.2,32.59 188.05,33.28C188.25,33.18 188.46,33.09 188.66,32.98C189.38,32.56 189.86,31.83 190.03,31.26C190.35,30.19 189.41,27.93 186.99,28.26C186.14,28.1 186.01,26.84 184.54,27.62C183.07,28.39 182.58,27.8 182.58,28.59C182.58,29.39 182.64,31.84 185.29,31Z\"\n fill=\"#353564\"\n />\n <path\n d=\"M179.97,95.59C178.42,96.55 177.34,97.03 176.73,97.03C175.81,97.03 175.31,97.86 176.16,98.31C177.02,98.75 179.77,98.11 180.47,98.11C181.18,98.11 182.99,98.36 182.29,96.34C181.83,94.99 181.41,94.41 181.02,94.61L179.97,94.9L179.97,95.59Z\"\n fill=\"#3e3e6e\"\n />\n <path\n d=\"M190.6,95.49C189.53,96.98 188.72,97.82 188.16,98.00C187.32,98.28 187.16,99.31 188.09,99.54C189.02,99.77 191.29,98.26 191.93,98.05C192.57,97.84 194.3,97.58 192.97,95.61C192.08,94.29 191.49,93.8 191.21,94.13L190.36,94.75L190.6,95.49L190.6,95.49Z\"\n fill=\"#3e3e6e\"\n />\n <path\n d=\"M189.14,60.11C188.14,66.85 186.71,72.11 184.88,75.91C183.88,80.64 183.23,94.95 181.9,95.49C180.57,96.03 179.62,95.71 179.67,95.02C179.72,94.32 177.89,75.14 178.1,72.15C178.24,70.17 178.26,66.22 178.16,60.32L189.14,60.11L189.14,60.11Z\"\n fill=\"#3e3e6e\"\n />\n <path\n d=\"M193.83,59.34C193.97,65.81 193.6,72.76 192.72,80.18C191.89,89.43 193.67,94.55 192.42,95.26C191.16,95.96 190.18,95.75 190.14,95.06C190.11,94.36 186.28,75.64 186.12,72.65C186.02,70.66 185.56,66.74 184.75,60.89L193.83,59.34Z\"\n fill=\"#3e3e6e\"\n />\n <path\n d=\"M184.38,37.32C185.88,38.96 187.26,38.96 188.52,37.32C188.74,37.17 193.36,36.94 196.64,42.29C196.67,42.49 195.75,43.59 193.88,45.59L193.3,45.59C194.58,52.17 194.77,57.41 193.88,61.31C193.76,61.72 188.51,61.95 178.11,62C178.09,53.2 178.67,47.99 179.85,46.39C179.71,46.09 178.63,45.13 176.62,43.49C177.25,42.12 178.21,40.81 179.48,39.55C180.75,38.28 182.38,37.54 184.38,37.32L184.38,37.32Z\"\n fill=\"#824c96\"\n />\n <path\n d=\"M162.75,32.06C162.17,31.48 161.24,31.48 160.67,32.06C160.09,32.64 160.09,33.57 160.67,34.15L184.07,57.64C184.65,58.22 185.58,58.22 186.16,57.64C186.73,57.07 186.73,56.13 186.16,55.55L162.75,32.06L162.75,32.06Z\"\n fill=\"#ff9c00\"\n />\n <path\n d=\"M174.6,44.37C179.12,39.83 179.12,32.47 174.6,27.93C170.07,23.38 162.74,23.38 158.21,27.93C153.69,32.47 153.69,39.83 158.21,44.37C162.74,48.92 170.07,48.92 174.6,44.37Z\"\n fill=\"#ff9c00\"\n />\n <path\n d=\"M173.23,43C177.00,39.22 177.00,33.08 173.23,29.3C169.46,25.51 163.35,25.51 159.58,29.3C155.81,33.08 155.81,39.22 159.58,43C163.35,46.79 169.46,46.79 173.23,43Z\"\n fill=\"#fafafc\"\n />\n <path\n d=\"M192.62,45.18C192.51,45.93 194.56,49.16 195.34,50.34C195.59,50.42 188.87,53.15 188.3,53.53C186.75,54.56 186.73,56.16 188.00,56.53C189.27,56.89 189.52,54.52 189.76,54.46C194.04,53.47 194.41,53.58 197.25,52.88C199.7,52.35 197.85,48.08 196.2,43.47C194.56,38.87 192.74,44.44 192.62,45.18L192.62,45.18Z\"\n fill=\"#ffb8a3\"\n />\n <path\n d=\"M191.54,37.78C192.32,38.15 192.87,38.43 193.18,38.62C193.98,39.1 194.53,39.58 194.88,39.87C195.98,40.76 196.53,41.67 196.85,42.36C197.11,42.83 194.3,47.13 191.54,46.64C191.17,46.63 190.57,45.74 189.74,43.98L191.54,37.78L191.54,37.78Z\"\n fill=\"#824c96\"\n />\n <path\n d=\"M179.8,53.83C180.74,53.52 181.38,52.65 181.23,52.17C181.07,51.7 180.19,51.43 179.63,52.17C179.47,52.39 179.55,53.44 177.96,52.72C177.53,52.52 177.41,52.75 177.51,53.04C177.6,53.32 177.46,53.77 178.5,53.87C178.89,53.91 179.41,53.96 179.8,53.83L179.8,53.83Z\"\n fill=\"#ffcebf\"\n />\n <path\n d=\"M178.76,53.08C179.17,52.79 179.37,52.39 179.23,52.19C179.08,51.98 178.64,52.06 178.24,52.35C177.83,52.64 177.63,53.04 177.77,53.25C177.92,53.45 178.36,53.37 178.76,53.08L178.76,53.08Z\"\n fill=\"#ffcebf\"\n />\n </svg>\n </div>\n )}\n\n {!props.hidesc && <div style={descStyles}>{props.desc}</div>}\n </div>\n )\n}\n\nexport default defineComponent({\n name: 'Empty',\n props: emptyProps,\n setup() {\n return {}\n },\n render() {\n return BaseEmpty(this)\n },\n})\n"],"mappings":";;;AAGA,IAAMI,aAAaC,UAAsB;CACvC,MAAMC,aAAa;EACjBC,UAAU;EACVC,OAAO;EACPC,WAAWJ,MAAMK,UAAU,MAAM;EAClC;AACD,QAAAR,YAAA,OAAA,EAAA,SAAA,uDAAA,EAAA,CAEK,CAACG,MAAMK,WAAOR,YAAA,OAAA,MAAA,CAAAA,YAAA,OAAA;EAAA,SAGFG,MAAMM,SAAS,UAAUN,MAAMO,YAAYP,MAAMM,SAAS,SAASN,MAAMQ,WAAWR,MAAMS;EAAS,WAAA;EAAA,SAAA;EAAA,EAAA;EAAAZ,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,WAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,gBAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,gBAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,WAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,WAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,WAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,WAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,WAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAAA,YAAA,QAAA;GAAA,KAAA;GAAA,QAAA;GAAA,EAAA,KAAA;EAAA,CAAA,CAAA,CAoH/G,EAEA,CAACG,MAAMU,UAAMb,YAAA,OAAA,EAAA,SAAgBI,YAAU,EAAA,CAAGD,MAAMW,KAAI,CAAO,CAAA,CAAA;;AAKlE,IAAA,gBAAehB,gCAAgB;CAC7BiB,MAAM;CACNZ,OAAOF;CACPe,QAAQ;AACN,SAAO,EAAE;;CAEXC,SAAS;AACP,SAAOf,UAAU,KAAK;;CAEzB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const emptyProps: {
3
+ size: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ largeSize: {
8
+ type: ObjectConstructor;
9
+ default: () => {
10
+ width: string;
11
+ height: string;
12
+ };
13
+ };
14
+ smallSize: {
15
+ type: ObjectConstructor;
16
+ default: () => {
17
+ width: string;
18
+ height: string;
19
+ };
20
+ };
21
+ miniSize: {
22
+ type: ObjectConstructor;
23
+ default: () => {
24
+ width: string;
25
+ height: string;
26
+ };
27
+ };
28
+ desc: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ hidesc: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ hideImg: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ };
41
+ export type EmptyProps = ExtractPropTypes<typeof emptyProps>;
@@ -0,0 +1,44 @@
1
+ //#region packages/components/empty/src/iempty.ts
2
+ var emptyProps = {
3
+ size: {
4
+ type: String,
5
+ default: "small"
6
+ },
7
+ largeSize: {
8
+ type: Object,
9
+ default: () => ({
10
+ width: "240px",
11
+ height: "120px"
12
+ })
13
+ },
14
+ smallSize: {
15
+ type: Object,
16
+ default: () => ({
17
+ width: "120px",
18
+ height: "60px"
19
+ })
20
+ },
21
+ miniSize: {
22
+ type: Object,
23
+ default: () => ({
24
+ width: "80px",
25
+ height: "40px"
26
+ })
27
+ },
28
+ desc: {
29
+ type: String,
30
+ default: "暂无数据"
31
+ },
32
+ hidesc: {
33
+ type: Boolean,
34
+ default: false
35
+ },
36
+ hideImg: {
37
+ type: Boolean,
38
+ default: false
39
+ }
40
+ };
41
+ //#endregion
42
+ export { emptyProps };
43
+
44
+ //# sourceMappingURL=iempty.mjs.map