Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

Dui

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Dui - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4-alpha.1

4

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc