index.ts 821 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { App } from "vue";
  2. import reBar from "./src/Bar.vue";
  3. import reGithub from "./src/Github.vue";
  4. import reInfinite from "./src/Infinite.vue";
  5. import reLine from "./src/Line.vue";
  6. import rePie from "./src/Pie.vue";
  7. export const ReBar = Object.assign(reBar, {
  8. install(app: App) {
  9. app.component(reBar.name, reBar);
  10. }
  11. });
  12. export const ReGithub = Object.assign(reGithub, {
  13. install(app: App) {
  14. app.component(reGithub.name, reGithub);
  15. }
  16. });
  17. export const ReInfinite = Object.assign(reInfinite, {
  18. install(app: App) {
  19. app.component(reInfinite.name, reInfinite);
  20. }
  21. });
  22. export const ReLine = Object.assign(reLine, {
  23. install(app: App) {
  24. app.component(reLine.name, reLine);
  25. }
  26. });
  27. export const RePie = Object.assign(rePie, {
  28. install(app: App) {
  29. app.component(rePie.name, rePie);
  30. }
  31. });