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

针对某部门的UI组件开发

  • 0.1.16
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
increased by13.04%
Maintainers
1
Weekly downloads
 
Created
Source

项目说明

该项目为小企业的组件工程

组件模块

  • button
  • modal
  • tip
  • [select] (./doc/select.md)

环境

  • gulp (构建项目,生成dist文件)
  • webpack (跑项目)

项目运行

  • npm install
  • npm run demo
  • 访问http://localhost:8090/

打包

npm run build

打包文件说明

  • dui.all.css 打包了normalize、滚动条样式和组件的css
  • dui.all.min.css 上面的压缩版
  • dui.css 打包了组件的css
  • dui.min.css 上面的压缩版
  • dui.js 提供组件的JS
  • dui.min.js 上面的压缩版

如何在项目中使用

  • 传统方式

引用dist目录下的css以及js文件,写法大概如下:

<link rel="stylesheet" href="dui.css"/>
<script src="dui.js"></script>
  • es6的写法

webpack的配置如下:

{ test: /\.js$/, loader: 'babel', exclude: /node_modules(?!\/Dui)/ },

在js中只要这样写就行:

import { Modal } from 'Dui';

Modal.alert(123);

浏览器兼容

目前我只测试了chrome,所以不确定在IE下能不能兼容。有bug给我提issue吧!

FAQs

Package last updated on 20 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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