hellof2e / quark-design

Browser-native component library, framework-agnostic, base on web components.(移动端 UI 组件库,无框架,即插即用。)
https://quark-ecosystem.github.io/quarkd-docs
MIT License
1.9k stars 189 forks source link

怎样全局加载组件 #260

Closed aboutZZ closed 1 year ago

aboutZZ commented 1 year ago

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

文档中只介绍了按需加载组件,如何将组件一次性全部引入?

xsf0105 commented 1 year ago

image

https://quark-design.hellobike.com/#/zh-CN/guide/quickstart

aboutZZ commented 1 year ago

https://quark-design.hellobike.com/#/zh-CN/guide/quickstart

我这边是通过npm安装的

xsf0105 commented 1 year ago
import "quarkd/lib"