amis icon indicating copy to clipboard operation
amis copied to clipboard

在一个新的项目中,npm i amis 之后如何使用amis中的组件?

Open x1194785386 opened this issue 7 years ago • 7 comments

x1194785386 avatar Oct 10 '19 06:10 x1194785386

就是这个统一的入口啊。 https://baidu.github.io/amis/docs/getting-started#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8-

2betop avatar Oct 10 '19 06:10 2betop

没有样式,是因为什么大佬? QQ图片20191010155555

x1194785386 avatar Oct 10 '19 07:10 x1194785386

要引入样式文件

2betop avatar Oct 10 '19 08:10 2betop

amis/lib/themes/default.css

2betop avatar Oct 10 '19 08:10 2betop

引入了之后我该怎样使用呢?大佬? QQ图片20191010171822

x1194785386 avatar Oct 10 '19 09:10 x1194785386

html 里面用 link 标签引入,如果你的工程中有 css loader 那就改成 import 'amis/lib/themes/default.css'

2betop avatar Oct 10 '19 09:10 2betop

好的样式已经出来了谢谢大佬!!!

x1194785386 avatar Oct 10 '19 09:10 x1194785386