vft 0.0.1 → 0.0.2

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 (758) hide show
  1. package/dist/index.css +1 -0
  2. package/es/component.d.ts +3 -0
  3. package/es/component.mjs +18 -0
  4. package/es/component.mjs.map +1 -0
  5. package/es/components/avatar/avatar.vue.d.ts +64 -0
  6. package/es/components/avatar/avatar.vue.mjs +5 -0
  7. package/es/components/avatar/avatar.vue.mjs.map +1 -0
  8. package/es/components/avatar/avatar.vue2.mjs +51 -0
  9. package/es/components/avatar/avatar.vue2.mjs.map +1 -0
  10. package/es/components/avatar/index.d.ts +62 -0
  11. package/es/components/avatar/index.mjs +9 -0
  12. package/es/components/avatar/index.mjs.map +1 -0
  13. package/es/components/avatar/style/css.d.ts +0 -0
  14. package/es/components/avatar/style/css.mjs +3 -0
  15. package/es/components/avatar/style/css.mjs.map +1 -0
  16. package/es/components/avatar/style/index.d.ts +0 -0
  17. package/es/components/avatar/style/index.mjs +3 -0
  18. package/es/components/avatar/style/index.mjs.map +1 -0
  19. package/es/components/back-top/back-top.vue.d.ts +48 -0
  20. package/es/components/back-top/back-top.vue.mjs +5 -0
  21. package/es/components/back-top/back-top.vue.mjs.map +1 -0
  22. package/es/components/back-top/back-top.vue2.mjs +61 -0
  23. package/es/components/back-top/back-top.vue2.mjs.map +1 -0
  24. package/es/components/back-top/index.d.ts +47 -0
  25. package/es/components/back-top/index.mjs +9 -0
  26. package/es/components/back-top/index.mjs.map +1 -0
  27. package/es/components/back-top/style/css.d.ts +0 -0
  28. package/es/components/back-top/style/css.mjs +3 -0
  29. package/es/components/back-top/style/css.mjs.map +1 -0
  30. package/es/components/back-top/style/index.d.ts +0 -0
  31. package/es/components/back-top/style/index.mjs +3 -0
  32. package/es/components/back-top/style/index.mjs.map +1 -0
  33. package/es/components/back-top/types.d.ts +13 -0
  34. package/es/components/back-top/types.mjs +2 -0
  35. package/es/components/back-top/types.mjs.map +1 -0
  36. package/es/components/back-top/use-back-top.d.ts +5 -0
  37. package/es/components/back-top/use-back-top.mjs +32 -0
  38. package/es/components/back-top/use-back-top.mjs.map +1 -0
  39. package/es/components/base/style/css.d.ts +0 -0
  40. package/es/components/base/style/css.mjs +2 -0
  41. package/es/components/base/style/css.mjs.map +1 -0
  42. package/es/components/base/style/index.d.ts +0 -0
  43. package/es/components/base/style/index.mjs +2 -0
  44. package/es/components/base/style/index.mjs.map +1 -0
  45. package/es/components/divider/divider.vue.d.ts +53 -0
  46. package/es/components/divider/divider.vue.mjs +5 -0
  47. package/es/components/divider/divider.vue.mjs.map +1 -0
  48. package/es/components/divider/divider.vue2.mjs +44 -0
  49. package/es/components/divider/divider.vue2.mjs.map +1 -0
  50. package/es/components/divider/index.d.ts +52 -0
  51. package/es/components/divider/index.mjs +9 -0
  52. package/es/components/divider/index.mjs.map +1 -0
  53. package/es/components/divider/style/css.d.ts +0 -0
  54. package/es/components/divider/style/css.mjs +3 -0
  55. package/es/components/divider/style/css.mjs.map +1 -0
  56. package/es/components/divider/style/index.d.ts +0 -0
  57. package/es/components/divider/style/index.mjs +3 -0
  58. package/es/components/divider/style/index.mjs.map +1 -0
  59. package/es/components/divider/types.d.ts +2 -0
  60. package/es/components/divider/types.mjs +2 -0
  61. package/es/components/divider/types.mjs.map +1 -0
  62. package/es/components/empty/assets/no-collect.png.mjs +5 -0
  63. package/es/components/empty/assets/no-collect.png.mjs.map +1 -0
  64. package/es/components/empty/assets/no-data.png.mjs +5 -0
  65. package/es/components/empty/assets/no-data.png.mjs.map +1 -0
  66. package/es/components/empty/assets/no-filter.png.mjs +5 -0
  67. package/es/components/empty/assets/no-filter.png.mjs.map +1 -0
  68. package/es/components/empty/assets/no-page-data.png.mjs +5 -0
  69. package/es/components/empty/assets/no-page-data.png.mjs.map +1 -0
  70. package/es/components/empty/assets/no-search.png.mjs +5 -0
  71. package/es/components/empty/assets/no-search.png.mjs.map +1 -0
  72. package/es/components/empty/constants.d.ts +12 -0
  73. package/es/components/empty/constants.mjs +5 -0
  74. package/es/components/empty/constants.mjs.map +1 -0
  75. package/es/components/empty/empty.vue.d.ts +39 -0
  76. package/es/components/empty/empty.vue.mjs +5 -0
  77. package/es/components/empty/empty.vue.mjs.map +1 -0
  78. package/es/components/empty/empty.vue2.mjs +98 -0
  79. package/es/components/empty/empty.vue2.mjs.map +1 -0
  80. package/es/components/empty/index.d.ts +37 -0
  81. package/es/components/empty/index.mjs +11 -0
  82. package/es/components/empty/index.mjs.map +1 -0
  83. package/es/components/empty/style/css.d.ts +0 -0
  84. package/es/components/empty/style/css.mjs +3 -0
  85. package/es/components/empty/style/css.mjs.map +1 -0
  86. package/es/components/empty/style/index.d.ts +0 -0
  87. package/es/components/empty/style/index.mjs +3 -0
  88. package/es/components/empty/style/index.mjs.map +1 -0
  89. package/es/components/exception/exception.png.mjs +5 -0
  90. package/es/components/exception/exception.png.mjs.map +1 -0
  91. package/es/components/exception/exception.vue.d.ts +29 -0
  92. package/es/components/exception/exception.vue.mjs +5 -0
  93. package/es/components/exception/exception.vue.mjs.map +1 -0
  94. package/es/components/exception/exception.vue2.mjs +47 -0
  95. package/es/components/exception/exception.vue2.mjs.map +1 -0
  96. package/es/components/exception/index.d.ts +28 -0
  97. package/es/components/exception/index.mjs +9 -0
  98. package/es/components/exception/index.mjs.map +1 -0
  99. package/es/components/exception/style/css.d.ts +0 -0
  100. package/es/components/exception/style/css.mjs +3 -0
  101. package/es/components/exception/style/css.mjs.map +1 -0
  102. package/es/components/exception/style/index.d.ts +0 -0
  103. package/es/components/exception/style/index.mjs +3 -0
  104. package/es/components/exception/style/index.mjs.map +1 -0
  105. package/es/components/icon/icon.vue.d.ts +96 -0
  106. package/es/components/icon/icon.vue.mjs +5 -0
  107. package/es/components/icon/icon.vue.mjs.map +1 -0
  108. package/es/components/icon/icon.vue2.mjs +37 -0
  109. package/es/components/icon/icon.vue2.mjs.map +1 -0
  110. package/es/components/icon/index.d.ts +79 -0
  111. package/es/components/icon/index.mjs +9 -0
  112. package/es/components/icon/index.mjs.map +1 -0
  113. package/es/components/icon/style/css.d.ts +0 -0
  114. package/es/components/icon/style/css.mjs +3 -0
  115. package/es/components/icon/style/css.mjs.map +1 -0
  116. package/es/components/icon/style/index.d.ts +0 -0
  117. package/es/components/icon/style/index.mjs +3 -0
  118. package/es/components/icon/style/index.mjs.map +1 -0
  119. package/es/components/index.d.ts +5 -0
  120. package/es/components/index.mjs +15 -0
  121. package/es/components/index.mjs.map +1 -0
  122. package/es/components/result/index.d.ts +28 -0
  123. package/es/components/result/index.mjs +9 -0
  124. package/es/components/result/index.mjs.map +1 -0
  125. package/es/components/result/result.vue.d.ts +30 -0
  126. package/es/components/result/result.vue.mjs +5 -0
  127. package/es/components/result/result.vue.mjs.map +1 -0
  128. package/es/components/result/result.vue2.mjs +55 -0
  129. package/es/components/result/result.vue2.mjs.map +1 -0
  130. package/es/components/result/style/css.d.ts +0 -0
  131. package/es/components/result/style/css.mjs +3 -0
  132. package/es/components/result/style/css.mjs.map +1 -0
  133. package/es/components/result/style/index.d.ts +0 -0
  134. package/es/components/result/style/index.mjs +3 -0
  135. package/es/components/result/style/index.mjs.map +1 -0
  136. package/es/components/types.mjs +2 -0
  137. package/es/components/types.mjs.map +1 -0
  138. package/es/constants/aria.d.ts +17 -0
  139. package/es/constants/aria.mjs +25 -0
  140. package/es/constants/aria.mjs.map +1 -0
  141. package/es/constants/date.d.ts +3 -0
  142. package/es/constants/date.mjs +24 -0
  143. package/es/constants/date.mjs.map +1 -0
  144. package/es/constants/event.d.ts +3 -0
  145. package/es/constants/event.mjs +7 -0
  146. package/es/constants/event.mjs.map +1 -0
  147. package/es/constants/index.d.ts +5 -0
  148. package/es/constants/index.mjs +17 -0
  149. package/es/constants/index.mjs.map +1 -0
  150. package/es/constants/key.d.ts +1 -0
  151. package/es/constants/key.mjs +5 -0
  152. package/es/constants/key.mjs.map +1 -0
  153. package/es/constants/size.d.ts +7 -0
  154. package/es/constants/size.mjs +10 -0
  155. package/es/constants/size.mjs.map +1 -0
  156. package/es/defaults.d.ts +5 -0
  157. package/es/defaults.mjs +7 -0
  158. package/es/defaults.mjs.map +1 -0
  159. package/es/hooks/index.d.ts +1 -0
  160. package/es/hooks/index.mjs +7 -0
  161. package/es/hooks/index.mjs.map +1 -0
  162. package/es/hooks/use-namespace/index.d.ts +21 -0
  163. package/es/hooks/use-namespace/index.mjs +42 -0
  164. package/es/hooks/use-namespace/index.mjs.map +1 -0
  165. package/es/index.d.ts +8 -0
  166. package/es/index.mjs +38 -0
  167. package/es/index.mjs.map +1 -0
  168. package/es/make-installer.d.ts +5 -0
  169. package/es/make-installer.mjs +12 -0
  170. package/es/make-installer.mjs.map +1 -0
  171. package/es/style.css +1 -0
  172. package/es/theme-style/src/avatar.scss.mjs +5 -0
  173. package/es/theme-style/src/avatar.scss.mjs.map +1 -0
  174. package/es/theme-style/src/back-top.scss.mjs +5 -0
  175. package/es/theme-style/src/back-top.scss.mjs.map +1 -0
  176. package/es/theme-style/src/base.scss.mjs +5 -0
  177. package/es/theme-style/src/base.scss.mjs.map +1 -0
  178. package/es/theme-style/src/divider.scss.mjs +5 -0
  179. package/es/theme-style/src/divider.scss.mjs.map +1 -0
  180. package/es/theme-style/src/empty.scss.mjs +5 -0
  181. package/es/theme-style/src/empty.scss.mjs.map +1 -0
  182. package/es/theme-style/src/icon.scss.mjs +5 -0
  183. package/es/theme-style/src/icon.scss.mjs.map +1 -0
  184. package/es/theme-style/src/result.scss.mjs +5 -0
  185. package/es/theme-style/src/result.scss.mjs.map +1 -0
  186. package/es/utils/error.d.ts +3 -0
  187. package/es/utils/error.mjs +20 -0
  188. package/es/utils/error.mjs.map +1 -0
  189. package/es/utils/helper.d.ts +1 -0
  190. package/es/utils/helper.mjs +5 -0
  191. package/es/utils/helper.mjs.map +1 -0
  192. package/es/utils/index.d.ts +3 -0
  193. package/es/utils/index.mjs +13 -0
  194. package/es/utils/index.mjs.map +1 -0
  195. package/es/utils/vue/index.d.ts +2 -0
  196. package/es/utils/vue/index.mjs +8 -0
  197. package/es/utils/vue/index.mjs.map +1 -0
  198. package/es/utils/vue/install.d.ts +6 -0
  199. package/es/utils/vue/install.mjs +21 -0
  200. package/es/utils/vue/install.mjs.map +1 -0
  201. package/es/utils/vue/typescript.d.ts +5 -0
  202. package/es/utils/vue/typescript.mjs +2 -0
  203. package/es/utils/vue/typescript.mjs.map +1 -0
  204. package/es/version.d.ts +1 -0
  205. package/es/version.mjs +5 -0
  206. package/es/version.mjs.map +1 -0
  207. package/lib/component.d.ts +3 -0
  208. package/lib/component.js +2 -0
  209. package/lib/component.js.map +1 -0
  210. package/lib/components/avatar/avatar.vue.d.ts +64 -0
  211. package/lib/components/avatar/avatar.vue.js +2 -0
  212. package/lib/components/avatar/avatar.vue.js.map +1 -0
  213. package/lib/components/avatar/avatar.vue2.js +2 -0
  214. package/lib/components/avatar/avatar.vue2.js.map +1 -0
  215. package/lib/components/avatar/index.d.ts +62 -0
  216. package/lib/components/avatar/index.js +2 -0
  217. package/lib/components/avatar/index.js.map +1 -0
  218. package/lib/components/avatar/style/css.d.ts +0 -0
  219. package/lib/components/avatar/style/css.js +2 -0
  220. package/lib/components/avatar/style/css.js.map +1 -0
  221. package/lib/components/avatar/style/index.d.ts +0 -0
  222. package/lib/components/avatar/style/index.js +2 -0
  223. package/lib/components/avatar/style/index.js.map +1 -0
  224. package/lib/components/back-top/back-top.vue.d.ts +48 -0
  225. package/lib/components/back-top/back-top.vue.js +2 -0
  226. package/lib/components/back-top/back-top.vue.js.map +1 -0
  227. package/lib/components/back-top/back-top.vue2.js +2 -0
  228. package/lib/components/back-top/back-top.vue2.js.map +1 -0
  229. package/lib/components/back-top/index.d.ts +47 -0
  230. package/lib/components/back-top/index.js +2 -0
  231. package/lib/components/back-top/index.js.map +1 -0
  232. package/lib/components/back-top/style/css.d.ts +0 -0
  233. package/lib/components/back-top/style/css.js +2 -0
  234. package/lib/components/back-top/style/css.js.map +1 -0
  235. package/lib/components/back-top/style/index.d.ts +0 -0
  236. package/lib/components/back-top/style/index.js +2 -0
  237. package/lib/components/back-top/style/index.js.map +1 -0
  238. package/lib/components/back-top/types.d.ts +13 -0
  239. package/lib/components/back-top/types.js +2 -0
  240. package/lib/components/back-top/types.js.map +1 -0
  241. package/lib/components/back-top/use-back-top.d.ts +5 -0
  242. package/lib/components/back-top/use-back-top.js +2 -0
  243. package/lib/components/back-top/use-back-top.js.map +1 -0
  244. package/lib/components/base/style/css.d.ts +0 -0
  245. package/lib/components/base/style/css.js +2 -0
  246. package/lib/components/base/style/css.js.map +1 -0
  247. package/lib/components/base/style/index.d.ts +0 -0
  248. package/lib/components/base/style/index.js +2 -0
  249. package/lib/components/base/style/index.js.map +1 -0
  250. package/lib/components/divider/divider.vue.d.ts +53 -0
  251. package/lib/components/divider/divider.vue.js +2 -0
  252. package/lib/components/divider/divider.vue.js.map +1 -0
  253. package/lib/components/divider/divider.vue2.js +2 -0
  254. package/lib/components/divider/divider.vue2.js.map +1 -0
  255. package/lib/components/divider/index.d.ts +52 -0
  256. package/lib/components/divider/index.js +2 -0
  257. package/lib/components/divider/index.js.map +1 -0
  258. package/lib/components/divider/style/css.d.ts +0 -0
  259. package/lib/components/divider/style/css.js +2 -0
  260. package/lib/components/divider/style/css.js.map +1 -0
  261. package/lib/components/divider/style/index.d.ts +0 -0
  262. package/lib/components/divider/style/index.js +2 -0
  263. package/lib/components/divider/style/index.js.map +1 -0
  264. package/lib/components/divider/types.d.ts +2 -0
  265. package/lib/components/divider/types.js +2 -0
  266. package/lib/components/divider/types.js.map +1 -0
  267. package/lib/components/empty/assets/no-collect.png.js +2 -0
  268. package/lib/components/empty/assets/no-collect.png.js.map +1 -0
  269. package/lib/components/empty/assets/no-data.png.js +2 -0
  270. package/lib/components/empty/assets/no-data.png.js.map +1 -0
  271. package/lib/components/empty/assets/no-filter.png.js +2 -0
  272. package/lib/components/empty/assets/no-filter.png.js.map +1 -0
  273. package/lib/components/empty/assets/no-page-data.png.js +2 -0
  274. package/lib/components/empty/assets/no-page-data.png.js.map +1 -0
  275. package/lib/components/empty/assets/no-search.png.js +2 -0
  276. package/lib/components/empty/assets/no-search.png.js.map +1 -0
  277. package/lib/components/empty/constants.d.ts +12 -0
  278. package/lib/components/empty/constants.js +2 -0
  279. package/lib/components/empty/constants.js.map +1 -0
  280. package/lib/components/empty/empty.vue.d.ts +39 -0
  281. package/lib/components/empty/empty.vue.js +2 -0
  282. package/lib/components/empty/empty.vue.js.map +1 -0
  283. package/lib/components/empty/empty.vue2.js +2 -0
  284. package/lib/components/empty/empty.vue2.js.map +1 -0
  285. package/lib/components/empty/index.d.ts +37 -0
  286. package/lib/components/empty/index.js +2 -0
  287. package/lib/components/empty/index.js.map +1 -0
  288. package/lib/components/empty/style/css.d.ts +0 -0
  289. package/lib/components/empty/style/css.js +2 -0
  290. package/lib/components/empty/style/css.js.map +1 -0
  291. package/lib/components/empty/style/index.d.ts +0 -0
  292. package/lib/components/empty/style/index.js +2 -0
  293. package/lib/components/empty/style/index.js.map +1 -0
  294. package/lib/components/exception/exception.png.js +2 -0
  295. package/lib/components/exception/exception.png.js.map +1 -0
  296. package/lib/components/exception/exception.vue.d.ts +29 -0
  297. package/lib/components/exception/exception.vue.js +2 -0
  298. package/lib/components/exception/exception.vue.js.map +1 -0
  299. package/lib/components/exception/exception.vue2.js +2 -0
  300. package/lib/components/exception/exception.vue2.js.map +1 -0
  301. package/lib/components/exception/index.d.ts +28 -0
  302. package/lib/components/exception/index.js +2 -0
  303. package/lib/components/exception/index.js.map +1 -0
  304. package/lib/components/exception/style/css.d.ts +0 -0
  305. package/lib/components/exception/style/css.js +2 -0
  306. package/lib/components/exception/style/css.js.map +1 -0
  307. package/lib/components/exception/style/index.d.ts +0 -0
  308. package/lib/components/exception/style/index.js +2 -0
  309. package/lib/components/exception/style/index.js.map +1 -0
  310. package/lib/components/icon/icon.vue.d.ts +96 -0
  311. package/lib/components/icon/icon.vue.js +2 -0
  312. package/lib/components/icon/icon.vue.js.map +1 -0
  313. package/lib/components/icon/icon.vue2.js +2 -0
  314. package/lib/components/icon/icon.vue2.js.map +1 -0
  315. package/lib/components/icon/index.d.ts +79 -0
  316. package/lib/components/icon/index.js +2 -0
  317. package/lib/components/icon/index.js.map +1 -0
  318. package/lib/components/icon/style/css.d.ts +0 -0
  319. package/lib/components/icon/style/css.js +2 -0
  320. package/lib/components/icon/style/css.js.map +1 -0
  321. package/lib/components/icon/style/index.d.ts +0 -0
  322. package/lib/components/icon/style/index.js +2 -0
  323. package/lib/components/icon/style/index.js.map +1 -0
  324. package/lib/components/index.d.ts +5 -0
  325. package/lib/components/index.js +2 -0
  326. package/lib/components/index.js.map +1 -0
  327. package/lib/components/result/index.d.ts +28 -0
  328. package/lib/components/result/index.js +2 -0
  329. package/lib/components/result/index.js.map +1 -0
  330. package/lib/components/result/result.vue.d.ts +30 -0
  331. package/lib/components/result/result.vue.js +2 -0
  332. package/lib/components/result/result.vue.js.map +1 -0
  333. package/lib/components/result/result.vue2.js +2 -0
  334. package/lib/components/result/result.vue2.js.map +1 -0
  335. package/lib/components/result/style/css.d.ts +0 -0
  336. package/lib/components/result/style/css.js +2 -0
  337. package/lib/components/result/style/css.js.map +1 -0
  338. package/lib/components/result/style/index.d.ts +0 -0
  339. package/lib/components/result/style/index.js +2 -0
  340. package/lib/components/result/style/index.js.map +1 -0
  341. package/lib/components/types.d.ts +1 -0
  342. package/lib/components/types.js +2 -0
  343. package/lib/components/types.js.map +1 -0
  344. package/lib/constants/aria.d.ts +17 -0
  345. package/lib/constants/aria.js +2 -0
  346. package/lib/constants/aria.js.map +1 -0
  347. package/lib/constants/date.d.ts +3 -0
  348. package/lib/constants/date.js +2 -0
  349. package/lib/constants/date.js.map +1 -0
  350. package/lib/constants/event.d.ts +3 -0
  351. package/lib/constants/event.js +2 -0
  352. package/lib/constants/event.js.map +1 -0
  353. package/lib/constants/index.d.ts +5 -0
  354. package/lib/constants/index.js +2 -0
  355. package/lib/constants/index.js.map +1 -0
  356. package/lib/constants/key.d.ts +1 -0
  357. package/lib/constants/key.js +2 -0
  358. package/lib/constants/key.js.map +1 -0
  359. package/lib/constants/size.d.ts +7 -0
  360. package/lib/constants/size.js +2 -0
  361. package/lib/constants/size.js.map +1 -0
  362. package/lib/defaults.d.ts +5 -0
  363. package/lib/defaults.js +2 -0
  364. package/lib/defaults.js.map +1 -0
  365. package/lib/hooks/index.d.ts +1 -0
  366. package/lib/hooks/index.js +2 -0
  367. package/lib/hooks/index.js.map +1 -0
  368. package/lib/hooks/use-namespace/index.d.ts +21 -0
  369. package/lib/hooks/use-namespace/index.js +2 -0
  370. package/lib/hooks/use-namespace/index.js.map +1 -0
  371. package/lib/index.d.ts +8 -0
  372. package/lib/index.js +2 -0
  373. package/lib/index.js.map +1 -0
  374. package/lib/make-installer.d.ts +5 -0
  375. package/lib/make-installer.js +2 -0
  376. package/lib/make-installer.js.map +1 -0
  377. package/lib/theme-style/src/avatar.scss.js +2 -0
  378. package/lib/theme-style/src/avatar.scss.js.map +1 -0
  379. package/lib/theme-style/src/back-top.scss.js +2 -0
  380. package/lib/theme-style/src/back-top.scss.js.map +1 -0
  381. package/lib/theme-style/src/base.scss.js +2 -0
  382. package/lib/theme-style/src/base.scss.js.map +1 -0
  383. package/lib/theme-style/src/divider.scss.js +2 -0
  384. package/lib/theme-style/src/divider.scss.js.map +1 -0
  385. package/lib/theme-style/src/empty.scss.js +2 -0
  386. package/lib/theme-style/src/empty.scss.js.map +1 -0
  387. package/lib/theme-style/src/icon.scss.js +2 -0
  388. package/lib/theme-style/src/icon.scss.js.map +1 -0
  389. package/lib/theme-style/src/result.scss.js +2 -0
  390. package/lib/theme-style/src/result.scss.js.map +1 -0
  391. package/lib/utils/error.d.ts +3 -0
  392. package/lib/utils/error.js +2 -0
  393. package/lib/utils/error.js.map +1 -0
  394. package/lib/utils/helper.d.ts +1 -0
  395. package/lib/utils/helper.js +2 -0
  396. package/lib/utils/helper.js.map +1 -0
  397. package/lib/utils/index.d.ts +3 -0
  398. package/lib/utils/index.js +2 -0
  399. package/lib/utils/index.js.map +1 -0
  400. package/lib/utils/vue/index.d.ts +2 -0
  401. package/lib/utils/vue/index.js +2 -0
  402. package/lib/utils/vue/index.js.map +1 -0
  403. package/lib/utils/vue/install.d.ts +6 -0
  404. package/lib/utils/vue/install.js +2 -0
  405. package/lib/utils/vue/install.js.map +1 -0
  406. package/lib/utils/vue/typescript.d.ts +5 -0
  407. package/lib/utils/vue/typescript.js +2 -0
  408. package/lib/utils/vue/typescript.js.map +1 -0
  409. package/lib/version.d.ts +1 -0
  410. package/lib/version.js +2 -0
  411. package/lib/version.js.map +1 -0
  412. package/package.json +70 -40
  413. package/theme-style/base.css +1 -0
  414. package/theme-style/dark/css-vars.css +1 -0
  415. package/theme-style/index.css +1 -0
  416. package/{src/web/avatar/index.scss → theme-style/src/avatar.scss} +7 -4
  417. package/{src/web/back-top/index.scss → theme-style/src/back-top.scss} +3 -6
  418. package/theme-style/src/base.scss +2 -0
  419. package/theme-style/src/color/index.scss +17 -0
  420. package/theme-style/src/common/transition.scss +128 -0
  421. package/theme-style/src/common/var.scss +841 -0
  422. package/theme-style/src/dark/css-vars.scss +41 -0
  423. package/theme-style/src/dark/var.scss +221 -0
  424. package/{src/web/divider/index.scss → theme-style/src/divider.scss} +4 -1
  425. package/{src/web/empty/index.scss → theme-style/src/empty.scss} +3 -10
  426. package/{src/web/full-screen/index.scss → theme-style/src/full-screen.scss} +3 -0
  427. package/{src/common/icon/index.scss → theme-style/src/icon.scss} +2 -1
  428. package/{src/web/image/index.scss → theme-style/src/image.scss} +3 -0
  429. package/theme-style/src/index.scss +7 -0
  430. package/{src/web/input/index.scss → theme-style/src/input.scss} +3 -0
  431. package/theme-style/src/mixins/_var.scss +91 -0
  432. package/theme-style/src/mixins/config.scss +5 -0
  433. package/theme-style/src/mixins/function.scss +86 -0
  434. package/theme-style/src/mixins/mixins.scss +258 -0
  435. package/{src/web/result/index.scss → theme-style/src/result.scss} +3 -9
  436. package/theme-style/src/var.scss +73 -0
  437. package/theme-style/vft-avatar.css +1 -0
  438. package/theme-style/vft-back-top.css +1 -0
  439. package/theme-style/vft-divider.css +1 -0
  440. package/theme-style/vft-empty.css +1 -0
  441. package/theme-style/vft-full-screen.css +1 -0
  442. package/theme-style/vft-icon.css +1 -0
  443. package/theme-style/vft-image.css +1 -0
  444. package/theme-style/vft-input.css +1 -0
  445. package/theme-style/vft-result.css +1 -0
  446. package/theme-style/vft-var.css +1 -0
  447. package/theme-style/vft-virtual-list.css +1 -0
  448. package/src/app/index.ts +0 -3
  449. package/src/app/page-loading/assets/spin.gif +0 -0
  450. package/src/app/page-loading/index.less +0 -10
  451. package/src/app/page-loading/index.ts +0 -3
  452. package/src/app/page-loading/index.vue +0 -38
  453. package/src/app/table/assets/sort_triangle.png +0 -0
  454. package/src/app/table/demos/basic.vue +0 -117
  455. package/src/app/table/demos/complex.vue +0 -2543
  456. package/src/app/table/demos/index.vue +0 -453
  457. package/src/app/table/demos/rightAngle.png +0 -0
  458. package/src/app/table/header.vue +0 -203
  459. package/src/app/table/index.less +0 -119
  460. package/src/app/table/index.ts +0 -5
  461. package/src/app/table/index.vue +0 -478
  462. package/src/app/table/md/api.md +0 -23
  463. package/src/app/table/md/demo.md +0 -3
  464. package/src/app/table/types.ts +0 -45
  465. package/src/common/badge/index.scss +0 -78
  466. package/src/common/badge/index.ts +0 -4
  467. package/src/common/badge/index.vue +0 -111
  468. package/src/common/badge/types.ts +0 -1
  469. package/src/common/clamp/clamp-toggle.vue +0 -91
  470. package/src/common/clamp/index.ts +0 -4
  471. package/src/common/clamp/index.vue +0 -247
  472. package/src/common/code/index.less +0 -321
  473. package/src/common/code/index.ts +0 -3
  474. package/src/common/code/index.vue +0 -60
  475. package/src/common/config-provider/index.ts +0 -4
  476. package/src/common/config-provider/index.vue +0 -94
  477. package/src/common/config-provider/types.ts +0 -29
  478. package/src/common/icon/iconfont/iconfont.css +0 -334
  479. package/src/common/icon/index.ts +0 -4
  480. package/src/common/icon/index.vue +0 -74
  481. package/src/common/icon/types.ts +0 -16
  482. package/src/common/index.ts +0 -6
  483. package/src/common/message/index.ts +0 -5
  484. package/src/common/message/instance.ts +0 -29
  485. package/src/common/message/message.scss +0 -108
  486. package/src/common/message/message.ts +0 -80
  487. package/src/common/message/message.vue +0 -162
  488. package/src/common/message/method.ts +0 -172
  489. package/src/common/overlay/index.scss +0 -14
  490. package/src/common/overlay/index.ts +0 -3
  491. package/src/common/overlay/index.vue +0 -117
  492. package/src/constants/comp.ts +0 -1
  493. package/src/constants/index.ts +0 -1
  494. package/src/index.ts +0 -3
  495. package/src/page/index.ts +0 -1
  496. package/src/page/page-wrapper/index.scss +0 -31
  497. package/src/page/page-wrapper/index.ts +0 -5
  498. package/src/page/page-wrapper/index.vue +0 -31
  499. package/src/styles/vars.scss +0 -500
  500. package/src/use/index.ts +0 -14
  501. package/src/use/onPopupReopen.ts +0 -15
  502. package/src/use/use-delayed-toggle/index.ts +0 -30
  503. package/src/use/use-floating/index.ts +0 -121
  504. package/src/use/use-forward-ref.ts +0 -35
  505. package/src/use/use-global-config/index.ts +0 -81
  506. package/src/use/use-id/index.ts +0 -43
  507. package/src/use/use-model-toggle/index.ts +0 -151
  508. package/src/use/use-namespace/index.ts +0 -91
  509. package/src/use/use-ordered-children/index.ts +0 -43
  510. package/src/use/use-popper-container/index.ts +0 -43
  511. package/src/use/use-timeout/index.ts +0 -18
  512. package/src/use/use-z-index/index.ts +0 -20
  513. package/src/use/useGlobalZIndex.ts +0 -24
  514. package/src/use/useLazyRender.ts +0 -17
  515. package/src/use/useLockScroll.ts +0 -66
  516. package/src/utils/aria.ts +0 -126
  517. package/src/utils/arrays.ts +0 -13
  518. package/src/utils/error.ts +0 -23
  519. package/src/utils/event.ts +0 -15
  520. package/src/utils/helper.ts +0 -7
  521. package/src/utils/index.ts +0 -8
  522. package/src/utils/interceptor.ts +0 -39
  523. package/src/utils/mount-component.ts +0 -65
  524. package/src/utils/popper.ts +0 -6
  525. package/src/utils/rand.ts +0 -12
  526. package/src/utils/scroll.ts +0 -101
  527. package/src/utils/vnode.ts +0 -169
  528. package/src/web/avatar/index.ts +0 -3
  529. package/src/web/avatar/index.vue +0 -83
  530. package/src/web/back-top/index.ts +0 -3
  531. package/src/web/back-top/index.vue +0 -72
  532. package/src/web/back-top/types.ts +0 -14
  533. package/src/web/back-top/use-back-top.ts +0 -65
  534. package/src/web/cascader/index.scss +0 -214
  535. package/src/web/cascader/index.ts +0 -5
  536. package/src/web/cascader/index.vue +0 -767
  537. package/src/web/cascader-panel/config.ts +0 -44
  538. package/src/web/cascader-panel/index.scss +0 -134
  539. package/src/web/cascader-panel/index.ts +0 -5
  540. package/src/web/cascader-panel/index.vue +0 -319
  541. package/src/web/cascader-panel/menu.vue +0 -135
  542. package/src/web/cascader-panel/node-content.ts +0 -23
  543. package/src/web/cascader-panel/node.ts +0 -218
  544. package/src/web/cascader-panel/node.vue +0 -197
  545. package/src/web/cascader-panel/store.ts +0 -83
  546. package/src/web/cascader-panel/types.ts +0 -56
  547. package/src/web/cascader-panel/utils.ts +0 -40
  548. package/src/web/cascader-select/README.md +0 -31
  549. package/src/web/cascader-select/index.scss +0 -54
  550. package/src/web/cascader-select/index.ts +0 -5
  551. package/src/web/cascader-select/index.vue +0 -132
  552. package/src/web/cascader-select/types.ts +0 -9
  553. package/src/web/context-menu/createContextMenu.ts +0 -72
  554. package/src/web/context-menu/index.ts +0 -4
  555. package/src/web/context-menu/index.vue +0 -89
  556. package/src/web/context-menu/types.ts +0 -27
  557. package/src/web/context-menu/useContextMenu.ts +0 -14
  558. package/src/web/descriptions/description-item.vue +0 -34
  559. package/src/web/descriptions/description.vue +0 -124
  560. package/src/web/descriptions/descriptions-cell.ts +0 -95
  561. package/src/web/descriptions/descriptions-item.scss +0 -68
  562. package/src/web/descriptions/descriptions-row.vue +0 -49
  563. package/src/web/descriptions/descriptions.scss +0 -153
  564. package/src/web/descriptions/descriptions.type.ts +0 -19
  565. package/src/web/descriptions/index.ts +0 -4
  566. package/src/web/descriptions/token.ts +0 -4
  567. package/src/web/divider/index.ts +0 -5
  568. package/src/web/divider/index.vue +0 -60
  569. package/src/web/divider/types.ts +0 -2
  570. package/src/web/empty/assets/no-collect.png +0 -0
  571. package/src/web/empty/assets/no-data.png +0 -0
  572. package/src/web/empty/assets/no-filter.png +0 -0
  573. package/src/web/empty/assets/no-page-data.png +0 -0
  574. package/src/web/empty/assets/no-search.png +0 -0
  575. package/src/web/empty/constants.ts +0 -12
  576. package/src/web/empty/index.ts +0 -5
  577. package/src/web/empty/index.vue +0 -96
  578. package/src/web/exception/exception.png +0 -0
  579. package/src/web/exception/index.ts +0 -3
  580. package/src/web/exception/index.vue +0 -44
  581. package/src/web/filter/README.md +0 -25
  582. package/src/web/filter/index.scss +0 -14
  583. package/src/web/filter/index.ts +0 -5
  584. package/src/web/filter/index.vue +0 -60
  585. package/src/web/filter/type.ts +0 -13
  586. package/src/web/focus-trap/index.ts +0 -6
  587. package/src/web/focus-trap/index.vue +0 -328
  588. package/src/web/focus-trap/tokens.ts +0 -23
  589. package/src/web/focus-trap/utils.ts +0 -178
  590. package/src/web/full-screen/index.ts +0 -3
  591. package/src/web/full-screen/index.vue +0 -24
  592. package/src/web/icon-text/index.ts +0 -3
  593. package/src/web/icon-text/index.vue +0 -77
  594. package/src/web/image/index.ts +0 -5
  595. package/src/web/image/index.vue +0 -251
  596. package/src/web/image/types.ts +0 -1
  597. package/src/web/index.ts +0 -33
  598. package/src/web/input/index.ts +0 -3
  599. package/src/web/input/index.vue +0 -533
  600. package/src/web/input/utils.ts +0 -102
  601. package/src/web/layouts/blank.vue +0 -4
  602. package/src/web/layouts/footer/index.scss +0 -31
  603. package/src/web/layouts/footer/index.ts +0 -3
  604. package/src/web/layouts/footer/index.vue +0 -38
  605. package/src/web/layouts/header/index.scss +0 -35
  606. package/src/web/layouts/header/index.ts +0 -3
  607. package/src/web/layouts/header/index.vue +0 -47
  608. package/src/web/layouts/iframe/index.scss +0 -18
  609. package/src/web/layouts/iframe/index.vue +0 -36
  610. package/src/web/layouts/iframe/page.vue +0 -30
  611. package/src/web/layouts/index.ts +0 -8
  612. package/src/web/layouts/router-view-content/index.vue +0 -70
  613. package/src/web/link/index.scss +0 -95
  614. package/src/web/link/index.ts +0 -3
  615. package/src/web/link/index.vue +0 -68
  616. package/src/web/loading/directive.ts +0 -104
  617. package/src/web/loading/index.ts +0 -6
  618. package/src/web/loading/loading.scss +0 -108
  619. package/src/web/loading/loading.ts +0 -156
  620. package/src/web/loading/service.ts +0 -145
  621. package/src/web/loading/types.ts +0 -29
  622. package/src/web/logo/index.scss +0 -31
  623. package/src/web/logo/index.ts +0 -5
  624. package/src/web/logo/index.vue +0 -45
  625. package/src/web/logo/types.ts +0 -6
  626. package/src/web/menu/index.scss +0 -336
  627. package/src/web/menu/index.ts +0 -8
  628. package/src/web/menu/menu-collapse-transition.vue +0 -62
  629. package/src/web/menu/menu-item-group.vue +0 -27
  630. package/src/web/menu/menu-item.vue +0 -126
  631. package/src/web/menu/menu.vue +0 -459
  632. package/src/web/menu/sub-menu.vue +0 -440
  633. package/src/web/menu/types.ts +0 -66
  634. package/src/web/menu/use-menu-css-var.ts +0 -11
  635. package/src/web/menu/use-menu.ts +0 -60
  636. package/src/web/menu/utils/menu-bar.ts +0 -19
  637. package/src/web/menu/utils/menu-item.ts +0 -55
  638. package/src/web/menu/utils/submenu.ts +0 -66
  639. package/src/web/multiple-select-flat/index.ts +0 -5
  640. package/src/web/multiple-select-flat/index.vue +0 -53
  641. package/src/web/multiple-select-flat/types.ts +0 -5
  642. package/src/web/multiple-tabs/index.scss +0 -16
  643. package/src/web/multiple-tabs/index.ts +0 -5
  644. package/src/web/multiple-tabs/index.vue +0 -193
  645. package/src/web/multiple-tabs/tab-content.vue +0 -40
  646. package/src/web/multiple-tabs/types.ts +0 -3
  647. package/src/web/multiple-tabs/use/index.ts +0 -2
  648. package/src/web/multiple-tabs/use/use-multiple-tabs.ts +0 -86
  649. package/src/web/multiple-tabs/use/use-tab-dropdown.ts +0 -101
  650. package/src/web/nodata/README.md +0 -42
  651. package/src/web/nodata/fail.vue +0 -13
  652. package/src/web/nodata/img/100.png +0 -0
  653. package/src/web/nodata/img/101.png +0 -0
  654. package/src/web/nodata/img/102.png +0 -0
  655. package/src/web/nodata/img/103.png +0 -0
  656. package/src/web/nodata/img/104.png +0 -0
  657. package/src/web/nodata/img/105.png +0 -0
  658. package/src/web/nodata/img/106.png +0 -0
  659. package/src/web/nodata/img/107.png +0 -0
  660. package/src/web/nodata/img/200.png +0 -0
  661. package/src/web/nodata/img/201.png +0 -0
  662. package/src/web/nodata/img/202.png +0 -0
  663. package/src/web/nodata/img/203.png +0 -0
  664. package/src/web/nodata/index.scss +0 -37
  665. package/src/web/nodata/index.ts +0 -6
  666. package/src/web/nodata/index.vue +0 -46
  667. package/src/web/nodata/types.ts +0 -17
  668. package/src/web/only-child/index.tsx +0 -69
  669. package/src/web/pagination/components/jumper.vue +0 -49
  670. package/src/web/pagination/components/next.vue +0 -40
  671. package/src/web/pagination/components/pager.vue +0 -215
  672. package/src/web/pagination/components/prev.vue +0 -35
  673. package/src/web/pagination/components/sizes.vue +0 -76
  674. package/src/web/pagination/components/total.vue +0 -21
  675. package/src/web/pagination/index.scss +0 -231
  676. package/src/web/pagination/index.ts +0 -5
  677. package/src/web/pagination/pagination.ts +0 -363
  678. package/src/web/pagination/usePagination.ts +0 -13
  679. package/src/web/popover/directive.ts +0 -21
  680. package/src/web/popover/index.scss +0 -58
  681. package/src/web/popover/index.ts +0 -3
  682. package/src/web/popover/index.vue +0 -161
  683. package/src/web/popover/types.ts +0 -26
  684. package/src/web/popper/arrow.vue +0 -45
  685. package/src/web/popper/content.vue +0 -311
  686. package/src/web/popper/index.scss +0 -108
  687. package/src/web/popper/index.ts +0 -11
  688. package/src/web/popper/popper.vue +0 -57
  689. package/src/web/popper/tokens.ts +0 -28
  690. package/src/web/popper/trigger.vue +0 -166
  691. package/src/web/popper/types.ts +0 -49
  692. package/src/web/popper/utils.ts +0 -81
  693. package/src/web/qrcode/drawCanvas.ts +0 -32
  694. package/src/web/qrcode/drawLogo.ts +0 -82
  695. package/src/web/qrcode/index.ts +0 -5
  696. package/src/web/qrcode/index.vue +0 -107
  697. package/src/web/qrcode/qrcodePlus.ts +0 -4
  698. package/src/web/qrcode/toCanvas.ts +0 -11
  699. package/src/web/qrcode/types.ts +0 -38
  700. package/src/web/result/index.ts +0 -3
  701. package/src/web/result/index.vue +0 -63
  702. package/src/web/scrollbar/bar.vue +0 -48
  703. package/src/web/scrollbar/index.scss +0 -91
  704. package/src/web/scrollbar/index.ts +0 -5
  705. package/src/web/scrollbar/index.vue +0 -236
  706. package/src/web/scrollbar/thumb.vue +0 -183
  707. package/src/web/scrollbar/tokens.ts +0 -10
  708. package/src/web/scrollbar/types.ts +0 -7
  709. package/src/web/scrollbar/util.ts +0 -38
  710. package/src/web/select/constants.ts +0 -13
  711. package/src/web/select/index.ts +0 -11
  712. package/src/web/select/index.vue +0 -555
  713. package/src/web/select/option-group.scss +0 -49
  714. package/src/web/select/option-group.vue +0 -97
  715. package/src/web/select/option-item.scss +0 -66
  716. package/src/web/select/option.scss +0 -32
  717. package/src/web/select/option.vue +0 -110
  718. package/src/web/select/select-dropdown.scss +0 -86
  719. package/src/web/select/select-dropdown.vue +0 -51
  720. package/src/web/select/select.scss +0 -213
  721. package/src/web/select/token.ts +0 -56
  722. package/src/web/select/useOption.ts +0 -146
  723. package/src/web/select/useSelect.ts +0 -942
  724. package/src/web/select/utils.ts +0 -5
  725. package/src/web/side-menu/index.scss +0 -66
  726. package/src/web/side-menu/index.ts +0 -4
  727. package/src/web/side-menu/index.vue +0 -228
  728. package/src/web/side-menu/types.ts +0 -20
  729. package/src/web/single-select/index.scss +0 -60
  730. package/src/web/single-select/index.ts +0 -5
  731. package/src/web/single-select/index.vue +0 -70
  732. package/src/web/single-select/select@2x.png +0 -0
  733. package/src/web/single-select/types.ts +0 -5
  734. package/src/web/svg/index.ts +0 -3
  735. package/src/web/svg/index.vue +0 -22
  736. package/src/web/tabs/index.scss +0 -579
  737. package/src/web/tabs/index.ts +0 -6
  738. package/src/web/tabs/index.vue +0 -236
  739. package/src/web/tabs/tab-bar.vue +0 -90
  740. package/src/web/tabs/tab-nav.vue +0 -403
  741. package/src/web/tabs/tab-pane.vue +0 -90
  742. package/src/web/tabs/types.ts +0 -66
  743. package/src/web/tag/index.scss +0 -182
  744. package/src/web/tag/index.ts +0 -5
  745. package/src/web/tag/index.vue +0 -78
  746. package/src/web/tag/types.ts +0 -2
  747. package/src/web/tooltip/content.vue +0 -239
  748. package/src/web/tooltip/index.ts +0 -4
  749. package/src/web/tooltip/tokens.ts +0 -21
  750. package/src/web/tooltip/tooltip.vue +0 -270
  751. package/src/web/tooltip/trigger.vue +0 -119
  752. package/src/web/tooltip/types.ts +0 -56
  753. package/src/web/tooltip/utils.ts +0 -20
  754. package/src/web/transition/collapse-transition.vue +0 -73
  755. package/src/web/transition/index.ts +0 -5
  756. package/tsconfig.json +0 -8
  757. package/types/index.d.ts +0 -286
  758. /package/{types/component.ts → es/components/types.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"size.mjs","sources":["../../../../packages/constants/size.ts"],"sourcesContent":["export const componentSizes = ['', 'default', 'small', 'large'] as const\n\nexport type ComponentSize = typeof componentSizes[number]\n\nexport const componentSizeMap = {\n large: 40,\n default: 32,\n small: 24,\n} as const\n"],"names":["componentSizes","componentSizeMap"],"mappings":"AAAO,MAAMA,IAAiB,CAAC,IAAI,WAAW,SAAS,OAAO,GAIjDC,IAAmB;AAAA,EAC9B,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AACT;"}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ version: string;
3
+ install: (app: App, options?: any) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { makeInstaller as o } from "./make-installer.mjs";
2
+ import t from "./component.mjs";
3
+ const m = o([...t]);
4
+ export {
5
+ m as default
6
+ };
7
+ //# sourceMappingURL=defaults.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.mjs","sources":["../../../packages/vft/defaults.ts"],"sourcesContent":["import { makeInstaller } from './make-installer'\nimport Components from './component'\n\nexport default makeInstaller([...Components, ...[]])\n"],"names":["installer","makeInstaller","Components"],"mappings":";;AAGA,MAAeA,IAAAC,EAAc,CAAC,GAAGC,CAAiB,CAAC;"}
@@ -0,0 +1 @@
1
+ export * from './use-namespace';
@@ -0,0 +1,7 @@
1
+ import { _bem as m, defaultNamespace as p, useNamespace as s } from "./use-namespace/index.mjs";
2
+ export {
3
+ m as _bem,
4
+ p as defaultNamespace,
5
+ s as useNamespace
6
+ };
7
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,21 @@
1
+ export declare const defaultNamespace = "vri";
2
+ export declare const _bem: (namespace: string, block: string, blockSuffix: string, element: string, modifier: string) => string;
3
+ export declare const useNamespace: (block: string) => {
4
+ namespace: import("vue").Ref<string>;
5
+ b: (blockSuffix?: string) => string;
6
+ e: (element?: string) => string;
7
+ m: (modifier?: string) => string;
8
+ be: (blockSuffix?: string, element?: string) => string;
9
+ em: (element?: string, modifier?: string) => string;
10
+ bm: (blockSuffix?: string, modifier?: string) => string;
11
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
12
+ is: {
13
+ (name: string, state: boolean | undefined): string;
14
+ (name: string): string;
15
+ };
16
+ cssVar: (object: Record<string, string | undefined>) => Record<string, string>;
17
+ cssVarName: (name: string) => string;
18
+ cssVarBlock: (object: Record<string, string | undefined>) => Record<string, string>;
19
+ cssVarBlockName: (name: string) => string;
20
+ };
21
+ export type UseNamespaceReturn = ReturnType<typeof useNamespace>;
@@ -0,0 +1,42 @@
1
+ import { ref as o } from "vue";
2
+ const g = "vri", V = "is-", c = (e, a, $, u, v) => {
3
+ let r = `${e}-${a}`;
4
+ return $ && (r += `-${$}`), u && (r += `__${u}`), v && (r += `--${v}`), r;
5
+ }, q = (e) => {
6
+ const a = o("vft");
7
+ return {
8
+ namespace: a,
9
+ b: (s = "") => c(a.value, e, s, "", ""),
10
+ e: (s) => s ? c(a.value, e, "", s, "") : "",
11
+ m: (s) => s ? c(a.value, e, "", "", s) : "",
12
+ be: (s, t) => s && t ? c(a.value, e, s, t, "") : "",
13
+ em: (s, t) => s && t ? c(a.value, e, "", s, t) : "",
14
+ bm: (s, t) => s && t ? c(a.value, e, s, "", t) : "",
15
+ bem: (s, t, n) => s && t && n ? c(a.value, e, s, t, n) : "",
16
+ is: (s, ...t) => {
17
+ const n = t.length >= 1 ? t[0] : !0;
18
+ return s && n ? `${V}${s}` : "";
19
+ },
20
+ // css
21
+ cssVar: (s) => {
22
+ const t = {};
23
+ for (const n in s)
24
+ s[n] && (t[`--${a.value}-${n}`] = s[n]);
25
+ return t;
26
+ },
27
+ cssVarName: (s) => `--${a.value}-${s}`,
28
+ cssVarBlock: (s) => {
29
+ const t = {};
30
+ for (const n in s)
31
+ s[n] && (t[`--${a.value}-${e}-${n}`] = s[n]);
32
+ return t;
33
+ },
34
+ cssVarBlockName: (s) => `--${a.value}-${e}-${s}`
35
+ };
36
+ };
37
+ export {
38
+ c as _bem,
39
+ g as defaultNamespace,
40
+ q as useNamespace
41
+ };
42
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-namespace/index.ts"],"sourcesContent":["import { ref } from 'vue';\n\nexport const defaultNamespace = 'vri';\nconst statePrefix = 'is-';\n\nexport const _bem = (namespace: string, block: string, blockSuffix: string, element: string, modifier: string) => {\n let cls = `${namespace}-${block}`;\n if (blockSuffix) {\n cls += `-${blockSuffix}`;\n }\n if (element) {\n cls += `__${element}`;\n }\n if (modifier) {\n cls += `--${modifier}`;\n }\n return cls;\n};\n\nexport const useNamespace = (block: string) => {\n // const namespace = useGlobalConfig('namespace', defaultNamespace);\n const namespace = ref('vft');\n // vri-button | (test) = vri-button-test\n const b = (blockSuffix = '') => _bem(namespace.value, block, blockSuffix, '', '');\n // e('test'): vri-button__test\n const e = (element?: string) => (element ? _bem(namespace.value, block, '', element, '') : '');\n // m('test'): vri-button--test\n const m = (modifier?: string) => (modifier ? _bem(namespace.value, block, '', '', modifier) : '');\n // be('test'): vri-button-par__sub\n const be = (blockSuffix?: string, element?: string) => (blockSuffix && element ? _bem(namespace.value, block, blockSuffix, element, '') : '');\n // em('test'): vri-button__par--sub\n const em = (element?: string, modifier?: string) => (element && modifier ? _bem(namespace.value, block, '', element, modifier) : '');\n // bm('test'): vri-button-par--sub\n const bm = (blockSuffix?: string, modifier?: string) => (blockSuffix && modifier ? _bem(namespace.value, block, blockSuffix, '', modifier) : '');\n // bem('test'): vri-button-par__sub--sun\n const bem = (blockSuffix?: string, element?: string, modifier?: string) => (blockSuffix && element && modifier ? _bem(namespace.value, block, blockSuffix, element, modifier) : '');\n // is('show', true): is-show\n const is: {\n (name: string, state: boolean | undefined): string;\n (name: string): string;\n } = (name: string, ...args: [boolean | undefined] | []) => {\n const state = args.length >= 1 ? args[0]! : true;\n return name && state ? `${statePrefix}${name}` : '';\n };\n\n // cssVar({'border-style': 'solid','border-width': '10px',}): { \"--vri-border-style\": \"solid\",\"--vri-border-width\": \"10px\" }\n const cssVar = (object: Record<string, string|undefined>) => {\n const styles: Record<string, string> = {};\n for (const key in object) {\n if (object[key]) {\n styles[`--${namespace.value}-${key}`] = object[key]!;\n }\n }\n return styles;\n };\n\n // cssVarBlock({ 'border-style': 'solid', 'border-width': '10px' }):{ \"--vri-button-border-style\": \"solid\", \"--vri-button-border-width\": \"10px\" }\n const cssVarBlock = (object: Record<string, string | undefined>) => {\n const styles: Record<string, string> = {};\n for (const key in object) {\n if (object[key]) {\n styles[`--${namespace.value}-${block}-${key}`] = object[key]!;\n }\n }\n return styles;\n };\n\n // cssVarName('test'):--vri-test\n const cssVarName = (name: string) => `--${namespace.value}-${name}`;\n\n // cssVarBlockName('test'):--vri-button-test\n const cssVarBlockName = (name: string) => `--${namespace.value}-${block}-${name}`;\n\n return {\n namespace,\n b,\n e,\n m,\n be,\n em,\n bm,\n bem,\n is,\n // css\n cssVar,\n cssVarName,\n cssVarBlock,\n cssVarBlockName\n };\n};\n\nexport type UseNamespaceReturn = ReturnType<typeof useNamespace>;\n"],"names":["defaultNamespace","statePrefix","_bem","namespace","block","blockSuffix","element","modifier","cls","useNamespace","ref","name","args","state","object","styles","key"],"mappings":";AAEO,MAAMA,IAAmB,OAC1BC,IAAc,OAEPC,IAAO,CAACC,GAAmBC,GAAeC,GAAqBC,GAAiBC,MAAqB;AAC5G,MAAAC,IAAM,GAAGL,KAAaC;AAC1B,SAAIC,MACFG,KAAO,IAAIH,MAETC,MACFE,KAAO,KAAKF,MAEVC,MACFC,KAAO,KAAKD,MAEPC;AACT,GAEaC,IAAe,CAACL,MAAkB;AAEvC,QAAAD,IAAYO,EAAI,KAAK;AAoDpB,SAAA;AAAA,IACL,WAAAP;AAAA,IACA,GApDQ,CAACE,IAAc,OAAOH,EAAKC,EAAU,OAAOC,GAAOC,GAAa,IAAI,EAAE;AAAA,IAqD9E,GAnDQ,CAACC,MAAsBA,IAAUJ,EAAKC,EAAU,OAAOC,GAAO,IAAIE,GAAS,EAAE,IAAI;AAAA,IAoDzF,GAlDQ,CAACC,MAAuBA,IAAWL,EAAKC,EAAU,OAAOC,GAAO,IAAI,IAAIG,CAAQ,IAAI;AAAA,IAmD5F,IAjDS,CAACF,GAAsBC,MAAsBD,KAAeC,IAAUJ,EAAKC,EAAU,OAAOC,GAAOC,GAAaC,GAAS,EAAE,IAAI;AAAA,IAkDxI,IAhDS,CAACA,GAAkBC,MAAuBD,KAAWC,IAAWL,EAAKC,EAAU,OAAOC,GAAO,IAAIE,GAASC,CAAQ,IAAI;AAAA,IAiD/H,IA/CS,CAACF,GAAsBE,MAAuBF,KAAeE,IAAWL,EAAKC,EAAU,OAAOC,GAAOC,GAAa,IAAIE,CAAQ,IAAI;AAAA,IAgD3I,KA9CU,CAACF,GAAsBC,GAAkBC,MAAuBF,KAAeC,KAAWC,IAAWL,EAAKC,EAAU,OAAOC,GAAOC,GAAaC,GAASC,CAAQ,IAAI;AAAA,IA+C9K,IA1CE,CAACI,MAAiBC,MAAqC;AACzD,YAAMC,IAAQD,EAAK,UAAU,IAAIA,EAAK,CAAC,IAAK;AAC5C,aAAOD,KAAQE,IAAQ,GAAGZ,IAAcU,MAAS;AAAA,IAAA;AAAA;AAAA,IA0CjD,QAtCa,CAACG,MAA6C;AAC3D,YAAMC,IAAiC,CAAA;AACvC,iBAAWC,KAAOF;AACZ,QAAAA,EAAOE,CAAG,MACZD,EAAO,KAAKZ,EAAU,SAASa,GAAK,IAAIF,EAAOE,CAAG;AAG/C,aAAAD;AAAA,IAAA;AAAA,IAgCP,YAjBiB,CAACJ,MAAiB,KAAKR,EAAU,SAASQ;AAAA,IAkB3D,aA7BkB,CAACG,MAA+C;AAClE,YAAMC,IAAiC,CAAA;AACvC,iBAAWC,KAAOF;AACZ,QAAAA,EAAOE,CAAG,MACZD,EAAO,KAAKZ,EAAU,SAASC,KAASY,GAAK,IAAIF,EAAOE,CAAG;AAGxD,aAAAD;AAAA,IAAA;AAAA,IAuBP,iBAhBsB,CAACJ,MAAiB,KAAKR,EAAU,SAASC,KAASO;AAAA,EAgBzE;AAEJ;"}
package/es/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import installer from './defaults';
2
+ export * from '@vft/components';
3
+ export * from 'vft-constants';
4
+ export * from './make-installer';
5
+ export declare const install: (app: App, options?: any) => void;
6
+ export declare const version: string;
7
+ export default installer;
8
+ export { default as dayjs } from 'dayjs';
package/es/index.mjs ADDED
@@ -0,0 +1,38 @@
1
+ import o from "./defaults.mjs";
2
+ import { VftDivider as p } from "./components/divider/index.mjs";
3
+ import { VftIcon as a } from "./components/icon/index.mjs";
4
+ import { VftAvatar as s } from "./components/avatar/index.mjs";
5
+ import { VftEmpty as i } from "./components/empty/index.mjs";
6
+ import { VftResult as V } from "./components/result/index.mjs";
7
+ import { EVENT_CODE as N } from "./constants/aria.mjs";
8
+ import { WEEK_DAYS as c, datePickTypes as D } from "./constants/date.mjs";
9
+ import { CHANGE_EVENT as A, INPUT_EVENT as u, UPDATE_MODEL_EVENT as v } from "./constants/event.mjs";
10
+ import { INSTALLED_KEY as I } from "./constants/key.mjs";
11
+ import { componentSizeMap as L, componentSizes as P } from "./constants/size.mjs";
12
+ import { makeInstaller as z } from "./make-installer.mjs";
13
+ import { default as K } from "dayjs";
14
+ import { EmptyEnum as O } from "./components/empty/constants.mjs";
15
+ const t = o.install, e = o.version;
16
+ export {
17
+ A as CHANGE_EVENT,
18
+ N as EVENT_CODE,
19
+ O as EmptyEnum,
20
+ u as INPUT_EVENT,
21
+ I as INSTALLED_KEY,
22
+ v as UPDATE_MODEL_EVENT,
23
+ s as VftAvatar,
24
+ p as VftDivider,
25
+ i as VftEmpty,
26
+ a as VftIcon,
27
+ V as VftResult,
28
+ c as WEEK_DAYS,
29
+ L as componentSizeMap,
30
+ P as componentSizes,
31
+ D as datePickTypes,
32
+ K as dayjs,
33
+ o as default,
34
+ t as install,
35
+ z as makeInstaller,
36
+ e as version
37
+ };
38
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../packages/vft/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@vft/components'\nexport * from 'vft-constants'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n\nexport { default as dayjs } from 'dayjs'\n"],"names":["install","installer","version"],"mappings":";;;;;;;;;;;;;;AAKO,MAAMA,IAAUC,EAAU,SACpBC,IAAUD,EAAU;"}
@@ -0,0 +1,5 @@
1
+ import type { Plugin } from '@vue/runtime-core';
2
+ export declare const makeInstaller: (components?: Plugin[]) => {
3
+ version: string;
4
+ install: (app: App, options?: any) => void;
5
+ };
@@ -0,0 +1,12 @@
1
+ import { INSTALLED_KEY as t } from "./constants/key.mjs";
2
+ import { version as e } from "./version.mjs";
3
+ const f = (o = []) => ({
4
+ version: e,
5
+ install: (r, i) => {
6
+ r[t] || (r[t] = !0, o.forEach((n) => r.use(n)));
7
+ }
8
+ });
9
+ export {
10
+ f as makeInstaller
11
+ };
12
+ //# sourceMappingURL=make-installer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-installer.mjs","sources":["../../../packages/vft/make-installer.ts"],"sourcesContent":["import { INSTALLED_KEY } from 'vft-constants'\nimport { version } from './version'\n\nimport type { App, Plugin } from '@vue/runtime-core'\n\nexport const makeInstaller = (components: Plugin[] = []) => {\n const install = (app: App, options?: any) => {\n if (app[INSTALLED_KEY]) return\n\n app[INSTALLED_KEY] = true\n components.forEach((c) => app.use(c))\n\n }\n\n return {\n version,\n install,\n }\n}\n"],"names":["makeInstaller","components","version","app","options","INSTALLED_KEY","c"],"mappings":";;AAKO,MAAMA,IAAgB,CAACC,IAAuB,QAS5C;AAAA,EACL,SAAAC;AAAA,EACA,SAVc,CAACC,GAAUC,MAAkB;AAC3C,IAAID,EAAIE,CAAa,MAErBF,EAAIE,CAAa,IAAI,IACrBJ,EAAW,QAAQ,CAACK,MAAMH,EAAI,IAAIG,CAAC,CAAC;AAAA,EAAA;AAMpC;"}
package/es/style.css ADDED
@@ -0,0 +1 @@
1
+ @charset "UTF-8";.vft-back-top{--vft-backtop-bg-color: var(--vft-bg-color-overlay);--vft-backtop-text-color: var(--vft-primary-color);--vft-backtop-hover-bg-color: var(--vft-border-color-extra-light);position:fixed;background-color:var(--vft-backtop-bg-color);width:40px;height:40px;border-radius:50%;color:var(--vft-backtop-text-color);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:var(--vft-box-shadow-lighter);cursor:pointer;z-index:5}.vft-back-top:hover{background-color:var(--vft-backtop-hover-bg-color)}.vft-back-top__icon{font-size:20px}:root{--vft-avatar-text-color: var(--vft-color-white);--vft-avatar-bg-color: var(--vft-text-disabled-color);--vft-avatar-text-size: 14px;--vft-avatar-icon-size: 18px;--vft-avatar-border-radius: var(--vft-border-radius-base)}.vft-avatar{--vft-avatar-size-large: 56px;--vft-avatar-size-small: 24px;--vft-avatar-size: 40px;display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;overflow:hidden;color:var(--vft-avatar-text-color);background:var(--vft-avatar-bg-color);width:var(--vft-avatar-size);height:var(--vft-avatar-size);font-size:var(--vft-avatar-text-size)}.vft-avatar>img{display:block;height:100%}.vft-avatar--circle{border-radius:50%}.vft-avatar--square{border-radius:var(--vft-avatar-border-radius)}.vft-avatar--icon{font-size:var(--vft-avatar-icon-size)}.vft-avatar--small{--vft-avatar-size: 24px}.vft-avatar--large{--vft-avatar-size: 56px}:root{--vft-divider-margin-y: 24px;--vft-divider-margin-x: 8px;--vft-divider-border-color: #dcdfe6;--vft-divider-border-style: solid}.vft-divider{position:relative}.vft-divider--horizontal{display:block;height:1px;width:100%;margin:var(--vft-divider-margin-y) 0;border-top:1px var(--vft-divider-border-color) var(--vft-divider-border-style)}.vft-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 var(--vft-divider-margin-x);vertical-align:middle;position:relative;border-left:1px var(--vft-divider-border-color) var(--vft-divider-border-style)}.vft-divider__text{position:absolute;background-color:var(--vft-bg-color);padding:0 20px;font-weight:500;color:var(--vft-text-primary-color);font-size:14px}.vft-divider__text.is-left{left:20px;transform:translateY(-50%)}.vft-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.vft-divider__text.is-right{right:20px;transform:translateY(-50%)}:root{--vft-color-white: #fff;--vft-color-black: #000;--vft-theme-color: #fff;--vft-theme-color-reverse: #000;--vft-font-size-extra-large: 20px;--vft-font-size-large: 18px;--vft-font-size-medium: 16px;--vft-font-size-base: 14px;--vft-font-size-small: 13px;--vft-font-size-extra-small: 12px;--vft-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5fae\8f6f\96c5\9ed1", Arial, sans-serif;--vft-font-weight-primary: 500;--vft-font-line-height-primary: 24px;--vft-index-normal: 1;--vft-index-top: 1000;--vft-index-popper: 2000;--vft-border-radius-base: 4px;--vft-border-radius-small: 2px;--vft-border-radius-round: 20px;--vft-border-radius-circle: 100%;--vft-transition-duration: .3s;--vft-transition-duration-fast: .2s;--vft-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);--vft-transition-function-fast-bezier: cubic-bezier(.23, 1, .32, 1);--vft-transition-all: all var(--vft-transition-duration) var(--vft-transition-function-ease-in-out-bezier);--vft-transition-fade: opacity var(--vft-transition-duration) var(--vft-transition-function-fast-bezier);--vft-transition-md-fade: transform var(--vft-transition-duration) var(--vft-transition-function-fast-bezier), opacity var(--vft-transition-duration) var(--vft-transition-function-fast-bezier);--vft-transition-fade-linear: opacity var(--vft-transition-duration-fast) linear;--vft-transition-border: border-color var(--vft-transition-duration-fast) var(--vft-transition-function-ease-in-out-bezier);--vft-transition-box-shadow: box-shadow var(--vft-transition-duration-fast) var(--vft-transition-function-ease-in-out-bezier);--vft-transition-color: color var(--vft-transition-duration-fast) var(--vft-transition-function-ease-in-out-bezier)}:root{color-scheme:light;--vft-primary-color: #2196f3;--vft-primary-color-light-3: #64b6f7;--vft-primary-color-light-5: #90cbf9;--vft-primary-color-light-7: #bce0fb;--vft-primary-color-light-8: #d3eafd;--vft-primary-color-light-9: #e9f5fe;--vft-primary-color-dark-2: #1a78c2;--vft-success-color: #3eaf7c;--vft-success-color-light-3: #78c7a3;--vft-success-color-light-5: #9fd7be;--vft-success-color-light-7: #c5e7d8;--vft-success-color-light-8: #d8efe5;--vft-success-color-light-9: #ecf7f2;--vft-success-color-dark-2: #328c63;--vft-warning-color: #fb9b5f;--vft-warning-color-light-3: #fcb98f;--vft-warning-color-light-5: #fdcdaf;--vft-warning-color-light-7: #fee1cf;--vft-warning-color-light-8: #feebdf;--vft-warning-color-light-9: #fff5ef;--vft-warning-color-dark-2: #c97c4c;--vft-danger-color: #f26d6d;--vft-danger-color-light-3: #f69999;--vft-danger-color-light-5: #f9b6b6;--vft-danger-color-light-7: #fbd3d3;--vft-danger-color-light-8: #fce2e2;--vft-danger-color-light-9: #fef0f0;--vft-danger-color-dark-2: #c25757;--vft-error-color: #f26d6d;--vft-error-color-light-3: #f69999;--vft-error-color-light-5: #f9b6b6;--vft-error-color-light-7: #fbd3d3;--vft-error-color-light-8: #fce2e2;--vft-error-color-light-9: #fef0f0;--vft-error-color-dark-2: #c25757;--vft-info-color: #909399;--vft-info-color-light-3: #b1b3b8;--vft-info-color-light-5: #c8c9cc;--vft-info-color-light-7: #dedfe0;--vft-info-color-light-8: #e9e9eb;--vft-info-color-light-9: #f4f4f5;--vft-info-color-dark-2: #73767a;--vft-bg-color: #fff;--vft-bg-color-page: #f2f3f5;--vft-bg-color-overlay: #fff;--vft-text-primary-color: #303133;--vft-text-regular-color: #606266;--vft-text-secondary-color: #909399;--vft-text-placeholder-color: #a8abb2;--vft-text-disabled-color: #c0c4cc;--vft-border-color: #dcdfe6;--vft-border-color-light: #e4e7ed;--vft-border-color-lighter: #ebeef5;--vft-border-color-extra-light: #f2f6fc;--vft-border-color-dark: #d4d7de;--vft-border-color-darker: #cdd0d6;--vft-fill-color: #f0f2f5;--vft-fill-color-light: #f5f7fa;--vft-fill-color-lighter: #fafafa;--vft-fill-color-extra-light: #fafcff;--vft-fill-color-dark: #ebedf0;--vft-fill-color-darker: #e6e8eb;--vft-fill-color-blank: #fff;--vft-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);--vft-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);--vft-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);--vft-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);--vft-disabled-bg-color: var(--vft-fill-color-light);--vft-disabled-text-color: var(--vft-text-color-placeholder);--vft-disabled-border-color: var(--vft-border-color-light);--vft-overlay-color: rgba(0, 0, 0, .8);--vft-overlay-color-light: rgba(0, 0, 0, .7);--vft-overlay-color-lighter: rgba(0, 0, 0, .5);--vft-mask-color: rgba(255, 255, 255, .9);--vft-mask-color-extra-light: rgba(255, 255, 255, .3);--vft-border-width: 1px;--vft-border-style: solid;--vft-border-color-hover: var(--vft-text-disabled-color);--vft-border: var(--vft-border-width) var(--vft-border-style) var(--vft-border-color);--vft-svg-monochrome-grey: var(--vft-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--vft-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.vft-fade-in-linear-enter-active,.vft-fade-in-linear-leave-active{transition:var(--vft-transition-fade-linear)}.vft-fade-in-linear-enter-from,.vft-fade-in-linear-leave-to{opacity:0}.vft-fade-in-enter-active,.vft-fade-in-leave-active{transition:all var(--vft-transition-duration) cubic-bezier(.55,0,.1,1)}.vft-fade-in-enter-from,.vft-fade-in-leave-active{opacity:0}.vft-zoom-in-center-enter-active,.vft-zoom-in-center-leave-active{transition:all var(--vft-transition-duration) cubic-bezier(.55,0,.1,1)}.vft-zoom-in-center-enter-from,.vft-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.vft-zoom-in-top-enter-active,.vft-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--vft-transition-md-fade);transform-origin:center top}.vft-zoom-in-top-enter-active[data-popper-placement^=top],.vft-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.vft-zoom-in-top-enter-from,.vft-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.vft-zoom-in-bottom-enter-active,.vft-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--vft-transition-md-fade);transform-origin:center bottom}.vft-zoom-in-bottom-enter-from,.vft-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.vft-zoom-in-left-enter-active,.vft-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--vft-transition-md-fade);transform-origin:top left}.vft-zoom-in-left-enter-from,.vft-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--vft-transition-duration) height ease-in-out,var(--vft-transition-duration) padding-top ease-in-out,var(--vft-transition-duration) padding-bottom ease-in-out}.vft-collapse-transition-leave-active,.vft-collapse-transition-enter-active{transition:var(--vft-transition-duration) max-height ease-in-out,var(--vft-transition-duration) padding-top ease-in-out,var(--vft-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--vft-transition-duration) width ease-in-out,var(--vft-transition-duration) padding-left ease-in-out,var(--vft-transition-duration) padding-right ease-in-out}.vft-list-enter-active,.vft-list-leave-active{transition:all 1s}.vft-list-enter-from,.vft-list-leave-to{opacity:0;transform:translateY(-30px)}.vft-list-leave-active{position:absolute!important}.vft-opacity-transition{transition:opacity var(--vft-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--vft-empty-img-size: 160px;--vft-empty-img-size-small: 80px;--vft-empty-img-size-large: 240px;--vft-empty-text-color: white;--vft-empty-desc-top: 10px;--vft-empty-desc-color: var(--vft-text-placeholder-color);--vft-empty-desc-size: 14px}.vft-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:10px 0}.vft-empty__image{width:var(--vft-empty-img-size);height:var(--vft-empty-img-size)}.vft-empty__image img{width:100%;height:100%;object-fit:contain}.vft-empty--large .vft-empty__image{width:var(--vft-empty-img-size-large);height:var(--vft-empty-img-size-large)}.vft-empty--small .vft-empty__image{width:var(--vft-empty-img-size-small);height:var(--vft-empty-img-size-small)}.vft-empty__desc{margin-top:var(--vft-empty-desc-top);color:var(--vft-empty-desc-color);font-size:var(--vft-empty-desc-size)}.vft-empty__bottom{margin-top:5px}:root{--vft-icon-text-color: black}.vft-icon{position:relative;display:inline-block;font: 14px/1 iconfont;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;transition:all .2s ease;color:var(--vft-icon-text-color)}.vft-icon:before{display:inline-block}.vft-icon__image{display:block;width:1em;height:1em;object-fit:contain}:root{--vft-result-padding: 40px 30px;--vft-result-icon-font-size: 64px;--vft-result-title-font-size: 20px;--vft-result-title-margin-top: 20px;--vft-result-sub-title-margin-top: 10px;--vft-result-extra-margin-top: 30px}.vft-result{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--vft-result-padding)}.vft-result__icon svg{width:var(--vft-result-icon-font-size);height:var(--vft-result-icon-font-size)}.vft-result__icon [class~=vft-icon]{font-size:var(--vft-result-icon-font-size)}.vft-result__title{margin-top:var(--vft-result-title-margin-top)}.vft-result__title p{margin:0;font-size:var(--vft-result-title-font-size);color:var(--vft-text-color-primary);line-height:1.3}.vft-result__sub-title{margin-top:var(--vft-result-sub-title-margin-top)}.vft-result__sub-title p{margin:0;font-size:var(--vft-font-size-base);color:var(--vft-text-color-regular);line-height:1.3}.vft-result__extra{margin-top:var(--vft-result-extra-margin-top)}.vft-result .icon-primary{--vft-result-color: var(--vft-color-primary);color:var(--vft-result-color)}.vft-result .icon-success{--vft-result-color: var(--vft-color-success);color:var(--vft-result-color)}.vft-result .icon-warning{--vft-result-color: var(--vft-color-warning);color:var(--vft-result-color)}.vft-result .icon-danger{--vft-result-color: var(--vft-color-danger);color:var(--vft-result-color)}.vft-result .icon-error{--vft-result-color: var(--vft-color-error);color:var(--vft-result-color)}.vft-result .icon-info{--vft-result-color: var(--vft-color-info);color:var(--vft-result-color)}
@@ -0,0 +1,5 @@
1
+ const a = "";
2
+ export {
3
+ a as default
4
+ };
5
+ //# sourceMappingURL=avatar.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ const a = "";
2
+ export {
3
+ a as default
4
+ };
5
+ //# sourceMappingURL=back-top.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"back-top.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ const a = "";
2
+ export {
3
+ a as default
4
+ };
5
+ //# sourceMappingURL=base.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ const d = "";
2
+ export {
3
+ d as default
4
+ };
5
+ //# sourceMappingURL=divider.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ const t = "";
2
+ export {
3
+ t as default
4
+ };
5
+ //# sourceMappingURL=empty.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ const o = "";
2
+ export {
3
+ o as default
4
+ };
5
+ //# sourceMappingURL=icon.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ const t = "";
2
+ export {
3
+ t as default
4
+ };
5
+ //# sourceMappingURL=result.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,3 @@
1
+ export declare function throwError(scope: string, m: string): never;
2
+ export declare function debugWarn(err: Error): void;
3
+ export declare function debugWarn(scope: string, message: string): void;
@@ -0,0 +1,20 @@
1
+ import { isString as e } from "@vft/utils";
2
+ class n extends Error {
3
+ constructor(o) {
4
+ super(o), this.name = "VriError";
5
+ }
6
+ }
7
+ function s(r, o) {
8
+ throw new n(`[${r}] ${o}`);
9
+ }
10
+ function c(r, o) {
11
+ if (process.env.NODE_ENV !== "production") {
12
+ const t = e(r) ? new n(`[${r}] ${o}`) : r;
13
+ console.warn(t);
14
+ }
15
+ }
16
+ export {
17
+ c as debugWarn,
18
+ s as throwError
19
+ };
20
+ //# sourceMappingURL=error.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.mjs","sources":["../../../../packages/utils/error.ts"],"sourcesContent":["import { isString } from '@vft/utils';\n\nclass VriError extends Error {\n constructor(m: string) {\n super(m);\n this.name = 'VriError';\n }\n}\n\nexport function throwError(scope: string, m: string): never {\n throw new VriError(`[${scope}] ${m}`);\n}\n\nexport function debugWarn(err: Error): void;\nexport function debugWarn(scope: string, message: string): void;\nexport function debugWarn(scope: string | Error, message?: string): void {\n if (process.env.NODE_ENV !== 'production') {\n const error: Error = isString(scope) ? new VriError(`[${scope}] ${message}`) : scope;\n console.warn(error);\n }\n}\n"],"names":["VriError","m","throwError","scope","debugWarn","message","error","isString"],"mappings":";AAEA,MAAMA,UAAiB,MAAM;AAAA,EAC3B,YAAYC,GAAW;AACrB,UAAMA,CAAC,GACP,KAAK,OAAO;AAAA,EACd;AACF;AAEgB,SAAAC,EAAWC,GAAeF,GAAkB;AAC1D,QAAM,IAAID,EAAS,IAAIG,MAAUF,GAAG;AACtC;AAIgB,SAAAG,EAAUD,GAAuBE,GAAwB;AACnE,MAAA,QAAQ,IAAI,aAAa,cAAc;AACnC,UAAAC,IAAeC,EAASJ,CAAK,IAAI,IAAIH,EAAS,IAAIG,MAAUE,GAAS,IAAIF;AAC/E,YAAQ,KAAKG,CAAK;AAAA,EACpB;AACF;"}
@@ -0,0 +1 @@
1
+ export declare const getSizeType: (type: string) => string | false;
@@ -0,0 +1,5 @@
1
+ const s = (e) => ["large", "small"].includes(e) ? e : !1;
2
+ export {
3
+ s as getSizeType
4
+ };
5
+ //# sourceMappingURL=helper.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.mjs","sources":["../../../../packages/utils/helper.ts"],"sourcesContent":["export const getSizeType = (type: string) => {\n\tconst typeList = ['large', 'small'];\n\tif (typeList.includes(type)) {\n\t\treturn type;\n\t}\n\treturn false;\n};\n"],"names":["getSizeType","type"],"mappings":"AAAa,MAAAA,IAAc,CAACC,MACV,CAAC,SAAS,OAAO,EACrB,SAASA,CAAI,IAClBA,IAED;"}
@@ -0,0 +1,3 @@
1
+ export * from './vue';
2
+ export * from './helper';
3
+ export * from './error';
@@ -0,0 +1,13 @@
1
+ import { withInstall as o, withInstallDirective as e, withInstallFunction as i, withNoopInstall as l } from "./vue/install.mjs";
2
+ import { getSizeType as a } from "./helper.mjs";
3
+ import { debugWarn as p, throwError as w } from "./error.mjs";
4
+ export {
5
+ p as debugWarn,
6
+ a as getSizeType,
7
+ w as throwError,
8
+ o as withInstall,
9
+ e as withInstallDirective,
10
+ i as withInstallFunction,
11
+ l as withNoopInstall
12
+ };
13
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -0,0 +1,2 @@
1
+ export * from './install';
2
+ export * from './typescript';
@@ -0,0 +1,8 @@
1
+ import { withInstall as i, withInstallDirective as n, withInstallFunction as o, withNoopInstall as a } from "./install.mjs";
2
+ export {
3
+ i as withInstall,
4
+ n as withInstallDirective,
5
+ o as withInstallFunction,
6
+ a as withNoopInstall
7
+ };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,6 @@
1
+ import type { Directive } from 'vue';
2
+ import type { SFCInstallWithContext, SFCWithInstall } from './typescript';
3
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E | undefined) => SFCWithInstall<T> & E;
4
+ export declare const withInstallFunction: <T>(fn: T, name: string) => SFCInstallWithContext<T>;
5
+ export declare const withInstallDirective: <T extends Directive<any, any>>(directive: T, name: string) => SFCWithInstall<T>;
6
+ export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;
@@ -0,0 +1,21 @@
1
+ import { NOOP as s } from "@vue/shared";
2
+ const e = (t, l) => {
3
+ if (t.install = (o) => {
4
+ for (const n of [t, ...Object.values(l ?? {})])
5
+ o.component(n.name, n);
6
+ }, l)
7
+ for (const [o, n] of Object.entries(l))
8
+ t[o] = n;
9
+ return t;
10
+ }, r = (t, l) => (t.install = (o) => {
11
+ t._context = o._context, o.config.globalProperties[l] = t;
12
+ }, t), i = (t, l) => (t.install = (o) => {
13
+ o.directive(l, t);
14
+ }, t), u = (t) => (t.install = s, t);
15
+ export {
16
+ e as withInstall,
17
+ i as withInstallDirective,
18
+ r as withInstallFunction,
19
+ u as withNoopInstall
20
+ };
21
+ //# sourceMappingURL=install.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.mjs","sources":["../../../../../packages/utils/vue/install.ts"],"sourcesContent":["import { NOOP } from '@vue/shared'\n\nimport type { App, Directive } from 'vue'\nimport type { SFCInstallWithContext, SFCWithInstall } from './typescript'\n\nexport const withInstall = <T, E extends Record<string, any>>(\n main: T,\n extra?: E\n) => {\n ;(main as SFCWithInstall<T>).install = (app): void => {\n for (const comp of [main, ...Object.values(extra ?? {})]) {\n app.component(comp.name, comp)\n }\n }\n\n if (extra) {\n for (const [key, comp] of Object.entries(extra)) {\n ;(main as any)[key] = comp\n }\n }\n return main as SFCWithInstall<T> & E\n}\n\nexport const withInstallFunction = <T>(fn: T, name: string) => {\n ;(fn as SFCWithInstall<T>).install = (app: App) => {\n ;(fn as SFCInstallWithContext<T>)._context = app._context\n app.config.globalProperties[name] = fn\n }\n\n return fn as SFCInstallWithContext<T>\n}\n\nexport const withInstallDirective = <T extends Directive>(\n directive: T,\n name: string\n) => {\n ;(directive as SFCWithInstall<T>).install = (app: App): void => {\n app.directive(name, directive)\n }\n\n return directive as SFCWithInstall<T>\n}\n\nexport const withNoopInstall = <T>(component: T) => {\n ;(component as SFCWithInstall<T>).install = NOOP\n\n return component as SFCWithInstall<T>\n}\n"],"names":["withInstall","main","extra","app","comp","key","withInstallFunction","fn","name","withInstallDirective","directive","withNoopInstall","component","NOOP"],"mappings":";AAKa,MAAAA,IAAc,CACzBC,GACAC,MACG;AAOH,MANED,EAA2B,UAAU,CAACE,MAAc;AACzC,eAAAC,KAAQ,CAACH,GAAM,GAAG,OAAO,OAAOC,KAAS,CAAE,CAAA,CAAC;AACjD,MAAAC,EAAA,UAAUC,EAAK,MAAMA,CAAI;AAAA,EAC/B,GAGEF;AACF,eAAW,CAACG,GAAKD,CAAI,KAAK,OAAO,QAAQF,CAAK;AAC1C,MAAAD,EAAaI,CAAG,IAAID;AAGnB,SAAAH;AACT,GAEaK,IAAsB,CAAIC,GAAOC,OAC1CD,EAAyB,UAAU,CAACJ,MAAa;AAC/C,EAAAI,EAAgC,WAAWJ,EAAI,UAC7CA,EAAA,OAAO,iBAAiBK,CAAI,IAAID;AAAA,GAG/BA,IAGIE,IAAuB,CAClCC,GACAF,OAEEE,EAAgC,UAAU,CAACP,MAAmB;AAC1D,EAAAA,EAAA,UAAUK,GAAME,CAAS;AAAA,GAGxBA,IAGIC,IAAkB,CAAIC,OAC/BA,EAAgC,UAAUC,GAErCD;"}
@@ -0,0 +1,5 @@
1
+ import type { AppContext, Plugin } from 'vue';
2
+ export type SFCWithInstall<T> = T & Plugin;
3
+ export type SFCInstallWithContext<T> = SFCWithInstall<T> & {
4
+ _context: AppContext | null;
5
+ };
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=typescript.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const version = "0.0.0-dev.1";
package/es/version.mjs ADDED
@@ -0,0 +1,5 @@
1
+ const e = "0.0.0-dev.1";
2
+ export {
3
+ e as version
4
+ };
5
+ //# sourceMappingURL=version.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.mjs","sources":["../../../packages/vft/version.ts"],"sourcesContent":["export const version = '0.0.0-dev.1'\n"],"names":["version"],"mappings":"AAAO,MAAMA,IAAU;"}
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from 'vue';
2
+ declare const _default: Plugin<any[]>[];
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/divider/index.js"),t=require("./components/icon/index.js"),i=require("./components/avatar/index.js"),n=require("./components/empty/index.js"),r=require("./components/result/index.js"),o=require("./components/exception/index.js"),u=[e.VftDivider,t.VftIcon,i.VftAvatar,n.VftEmpty,r.VftResult,o.VftException];exports.default=u;
2
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sources":["../../../packages/vft/component.ts"],"sourcesContent":["import { VftDivider } from '@vft/components/divider'\nimport { VftIcon } from '@vft/components/icon'\nimport { VftAvatar } from '@vft/components/avatar'\nimport { VftEmpty } from '@vft/components/empty'\nimport { VftResult } from '@vft/components/result'\nimport { VftException } from '@vft/components/exception'\nimport type { Plugin } from 'vue'\n\nexport default [\n VftDivider,\n VftIcon,\n VftAvatar,\n VftEmpty,\n VftResult,\n VftException\n] as Plugin[]\n"],"names":["Components","VftDivider","VftIcon","VftAvatar","VftEmpty","VftResult","VftException"],"mappings":"+WAQeA,EAAA,CACbC,EAAA,WACAC,EAAA,QACAC,EAAA,UACAC,EAAA,SACAC,EAAA,UACAC,EAAA,YACF"}
@@ -0,0 +1,64 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ import { type IconProps } from '@vft/components/icon';
3
+ declare const _sfc_main: import("vue").DefineComponent<{
4
+ size: {
5
+ type: __PropType<number | "large" | "small" | "default" | undefined>;
6
+ required: false;
7
+ };
8
+ shape: {
9
+ type: __PropType<"circle" | "square" | undefined>;
10
+ required: false;
11
+ };
12
+ icon: {
13
+ type: __PropType<IconProps | undefined>;
14
+ required: false;
15
+ };
16
+ src: {
17
+ type: __PropType<string | undefined>;
18
+ required: false;
19
+ };
20
+ alt: {
21
+ type: __PropType<string | undefined>;
22
+ required: false;
23
+ };
24
+ srcSet: {
25
+ type: __PropType<string | undefined>;
26
+ required: false;
27
+ };
28
+ fit: {
29
+ type: __PropType<"fill" | "contain" | "cover" | "none" | "scale-down" | undefined>;
30
+ required: false;
31
+ };
32
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "error"[], "error", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ size: {
34
+ type: __PropType<number | "large" | "small" | "default" | undefined>;
35
+ required: false;
36
+ };
37
+ shape: {
38
+ type: __PropType<"circle" | "square" | undefined>;
39
+ required: false;
40
+ };
41
+ icon: {
42
+ type: __PropType<IconProps | undefined>;
43
+ required: false;
44
+ };
45
+ src: {
46
+ type: __PropType<string | undefined>;
47
+ required: false;
48
+ };
49
+ alt: {
50
+ type: __PropType<string | undefined>;
51
+ required: false;
52
+ };
53
+ srcSet: {
54
+ type: __PropType<string | undefined>;
55
+ required: false;
56
+ };
57
+ fit: {
58
+ type: __PropType<"fill" | "contain" | "cover" | "none" | "scale-down" | undefined>;
59
+ required: false;
60
+ };
61
+ }>> & {
62
+ onError?: ((...args: any[]) => any) | undefined;
63
+ }, {}>;
64
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./avatar.vue2.js");exports.default=e.default;
2
+ //# sourceMappingURL=avatar.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("@vft/utils"),f=require("../icon/index.js"),d=require("../../hooks/use-namespace/index.js"),m=["src","alt","srcset"],h=e.defineComponent({__name:"avatar",props:{size:{default:""},shape:{default:"circle"},icon:null,src:null,alt:null,srcSet:null,fit:{default:"cover"}},emits:["error"],setup(t,{emit:r}){const c=d.useNamespace("avatar"),l=e.ref(!1),a=e.computed(()=>{const s=[c.b()];return n.isString(t.size)&&s.push(c.m(t.size)),t.icon&&s.push(c.m("icon")),t.shape&&s.push(c.m(t.shape)),s}),i=e.computed(()=>n.isNumber(t.size)?c.cssVarBlock({size:n.addUnit(t.size)||""}):void 0),u=e.computed(()=>({objectFit:t.fit}));e.watch(()=>t.src,()=>l.value=!1);function o(s){l.value=!0,r("error",s)}return(s,v)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(a)),style:e.normalizeStyle(e.unref(i))},[(t.src||t.srcSet)&&!l.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.src,alt:t.alt,srcset:t.srcSet,style:e.normalizeStyle(e.unref(u)),onError:o},null,44,m)):t.icon?(e.openBlock(),e.createBlock(e.unref(f.VftIcon),{key:1})):e.renderSlot(s.$slots,"default",{key:2})],6))}});exports.default=h;
2
+ //# sourceMappingURL=avatar.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.vue2.js","sources":["../../../../../packages/components/avatar/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n\t\t\t\tv-if=\"(src || srcSet) && !hasLoadError\"\n\t\t\t\t:src=\"src\"\n\t\t\t\t:alt=\"alt\"\n\t\t\t\t:srcset=\"srcSet\"\n\t\t\t\t:style=\"fitStyle\"\n\t\t\t\t@error=\"handleError\"\n\t\t/>\n <vft-icon v-else-if=\"icon\" />\n <slot v-else />\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { addUnit, isNumber, isString } from '@vft/utils';\nimport type { CSSProperties } from 'vue';\nimport { computed, ref, watch } from 'vue';\nimport VftIcon, { type IconProps } from '@vft/components/icon'\nimport { useNamespace } from 'vft-hooks';\n\ninterface Props {\n\tsize?: number | 'large' | 'default' | 'small'\n\tshape?: 'circle' | 'square'\n\ticon?: IconProps\n\tsrc?: string\n\talt?: string\n\tsrcSet?: string\n\tfit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'\n}\n\ndefineProps({\n \"size\": { default: '' },\n \"shape\": { default: 'circle' },\n \"icon\": null,\n \"src\": null,\n \"alt\": null,\n \"srcSet\": null,\n \"fit\": { default: 'cover' }\n})\n\nconst emit = defineEmits(['error']);\n\nconst ns = useNamespace('avatar');\n\nconst hasLoadError = ref(false);\n\nconst avatarClass = computed(() => {\n\tconst classList = [ns.b()];\n\tif (isString(__props.size)) classList.push(ns.m(__props.size));\n\tif (__props.icon) classList.push(ns.m('icon'));\n\tif (__props.shape) classList.push(ns.m(__props.shape));\n\treturn classList;\n});\n\nconst sizeStyle = computed(() => {\n\treturn isNumber(__props.size)\n\t\t? (ns.cssVarBlock({\n\t\t\tsize: addUnit(__props.size) || ''\n\t\t}) as CSSProperties)\n\t\t: undefined;\n});\n\nconst fitStyle = computed<CSSProperties>(() => ({\n\tobjectFit: __props.fit\n}));\n\n// need reset hasLoadError to false if src changed\nwatch(\n\t() => __props.src,\n\t() => (hasLoadError.value = false)\n);\n\nfunction handleError (e: Event) {\n\thasLoadError.value = true;\n\temit('error', e);\n}\n</script>\n\n"],"names":["ns","useNamespace","hasLoadError","ref","avatarClass","computed","classList","isString","__props","sizeStyle","isNumber","addUnit","fitStyle","watch","handleError","e","emit"],"mappings":"0bA4CM,MAAAA,EAAKC,eAAa,QAAQ,EAE1BC,EAAeC,MAAI,EAAK,EAExBC,EAAcC,EAAAA,SAAS,IAAM,CAClC,MAAMC,EAAY,CAACN,EAAG,EAAG,CAAA,EACrB,OAAAO,EAAA,SAASC,EAAQ,IAAI,GAAGF,EAAU,KAAKN,EAAG,EAAEQ,EAAQ,IAAI,CAAC,EACzDA,EAAQ,MAAMF,EAAU,KAAKN,EAAG,EAAE,MAAM,CAAC,EACzCQ,EAAQ,OAAOF,EAAU,KAAKN,EAAG,EAAEQ,EAAQ,KAAK,CAAC,EAC9CF,CAAA,CACP,EAEKG,EAAYJ,EAAAA,SAAS,IACnBK,EAAS,SAAAF,EAAQ,IAAI,EACxBR,EAAG,YAAY,CACjB,KAAMW,EAAA,QAAQH,EAAQ,IAAI,GAAK,EAAA,CAC/B,EACC,MACH,EAEKI,EAAWP,EAAAA,SAAwB,KAAO,CAC/C,UAAWG,EAAQ,GAClB,EAAA,EAGFK,EAAA,MACC,IAAML,EAAQ,IACd,IAAON,EAAa,MAAQ,EAAA,EAG7B,SAASY,EAAaC,EAAU,CAC/Bb,EAAa,MAAQ,GACrBc,EAAK,QAASD,CAAC,CAChB"}