This commit is contained in:
RickCole21 2020-08-04 13:16:20 +08:00
parent b652ce2185
commit 2e3e84be84
1 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,8 @@ npm i amis
1. 引入样式文件:
html 中引入:
```html
<link href="./node_modules/amis/lib/themes/default.css" />
<!-- 或 <link href="./node_modules/amis/lib/themes/cxd.css" /> -->
@ -42,11 +44,10 @@ renderAmis(
title: '简单页面',
body: '内容'
},
{
theme: 'default' // cxd 或 dark
},
{},
{
// env...
theme: 'default' // cxd 或 dark
}
);
```