Comparing version 0.0.3 to 0.0.4-alpha.1
@@ -1,3 +0,3 @@ | ||
import Dui from "src/js/dui"; | ||
import Dui from "./src/js/dui"; | ||
export default Dui; | ||
module.exports = Dui; |
{ | ||
"name": "Dui", | ||
"version": "0.0.3", | ||
"version": "0.0.4-alpha.1", | ||
"description": "针对税友小企业部门的UI组件开发", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,2 +40,30 @@ ### 项目说明 | ||
### 如何在项目中使用 | ||
- 传统方式 | ||
引用dist目录下的css以及js文件,写法大概如下: | ||
```html | ||
<link rel="stylesheet" href="dui.css"/> | ||
<script src="dui.js"></script> | ||
``` | ||
- es6的写法 | ||
webpack的配置如下: | ||
``` | ||
{ test: /\.js$/, loader: 'babel', exclude: /node_modules(?!\/Dui)/ }, | ||
``` | ||
在js中只要这样写就行: | ||
``` | ||
import "Dui/src/css/dui.scss"; | ||
import { Modal } from 'Dui'; | ||
Modal.alert(123); | ||
``` | ||
### 浏览器兼容 | ||
@@ -42,0 +70,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
880323
74
1