FriedRiceNoodles / banana-ui

基于Web Components,跨框架可用的现代化组件库。https://banana-ui.com
https://banana-ui.com
MIT License
88 stars 10 forks source link

Feat/auto loader #140

Closed FriedRiceNoodles closed 5 months ago

FriedRiceNoodles commented 5 months ago

实现cdn引入方式下的按需加载,基于https://github.com/shoelace-style/shoelace/blob/next/src/shoelace-autoloader.ts开发,区别是增加了检测custom element中shadowRoot内部的banana元素的逻辑。

@563316158 @ZIA-Hans

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: 9bb68914f49dcd695f9055b2e6b6e03266296b22

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ----------------- | ----- | | @banana-ui/banana | Minor | | @banana-ui/react | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

ZIA-Hans commented 5 months ago

没问题,上层业务组件库也可以正常加载和使用