8
0

index.js 830 B

123456789101112131415161718192021
  1. import { setupDirective } from "./directive/index";
  2. import HcMenuIcon from "./menu-icon/menu-icon.vue";
  3. import HcIconInput from "./icon-input/icon-input.vue";
  4. import HcRelatedProject from "./related-project/related-project.vue";
  5. import HcTableForm from "./table-form/table-form.vue";
  6. import HcInfoTable from "./info-table/info-table.vue";
  7. import HcInfoTableTd from "./info-table/info-table-td.vue";
  8. //注册全局组件
  9. export const setupComponents = (App) => {
  10. //自定义指令
  11. setupDirective(App);
  12. //自定义组件
  13. App.component("HcMenuIcon", HcMenuIcon);
  14. App.component("HcIconInput", HcIconInput);
  15. App.component("HcRelatedProject", HcRelatedProject);
  16. App.component("HcTableForm", HcTableForm);
  17. App.component("HcInfoTable", HcInfoTable);
  18. App.component("HcInfoTableTd", HcInfoTableTd);
  19. };