Skip to content

Commit

Permalink
restructured exports
Browse files Browse the repository at this point in the history
  • Loading branch information
siddiquipro committed Oct 26, 2023
1 parent 187cddf commit 306ee88
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
24 changes: 10 additions & 14 deletions packages/masc/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import SCard from "./card/s-card.vue";
import SBtn from "./button/s-btn.vue";
import SAppbar from "./appbar/s-appbar.vue";
import { STable, SPagination, STableColumn } from "./table";
import { SModal } from "./modal";
import { SIcon } from "./icon";
import { SField } from "./formitem";
import { SForm } from "./form";
import { SDropdown } from "./dropdown";
import { SPopper } from "./popper";

export default { SBtn, SCard, SAppbar, STable, SPagination, STableColumn, SModal, SIcon, SField, SForm, SDropdown, SPopper };

export { SBtn, SCard, SAppbar, STable, SPagination, STableColumn, SModal, SIcon, SField, SForm, SDropdown, SPopper };
export { SCard } from "./card";
export { SBtn } from "./button";
export { SAppbar } from "./appbar";
export { STable, SPagination, STableColumn } from "./table";
export { SModal } from "./modal";
export { SIcon } from "./icon";
export { SField } from "./formitem";
export { SForm } from "./form";
export { SDropdown } from "./dropdown";
export { SPopper } from "./popper";
6 changes: 3 additions & 3 deletions packages/masc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import mascPlugin from "./tailwind/masc-plugin";
export default {
install(app: App) {
app.directive("tooltip", tooltip);
const entries = Object.entries(components.default);
entries.forEach(([componentName, component]) => {
for (const [componentName, component] of Object.entries(components)) {
console.debug(`Registering ${componentName}`);
app.component(componentName, component);
});
}
},
};

Expand Down

0 comments on commit 306ee88

Please sign in to comment.