npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

amazeui-dingtalk

v1.0.0-rc.1

Published

Web Components for DingTalk based on React.js

Downloads

60

Readme

钉钉UI

基于 React.js 的移动端 Web UI 组件库。

NPM version Build Status Dependency Status devDependency Status

入门套件

简介

专属于移动

钉钉UI 专为移动打造,在技术实现、交互设计上只考虑主流移动设备,保证代码轻、性能高。

专注于 UI

只提供 UI 组件(View),对配套技术不做限定,方便用户与现有技术栈快速整合,降低使用成本。

采用 Flexbox

使用 Flexbox 技术,灵活自如地对齐、收缩、扩展元素,轻松搞定移动页面布局。

基于 React.js

基于风靡社区的 React.js 封装组件,沿袭高性能、可复用、易扩展、一处学习多端编写特性。

安装使用

  1. 从 npm 安装:

    npm install --save-dev amazeui-dingtalk
  2. 使用 组件:

    class App extends React.Component {
      constructor(props) {
        super(props);
        this.state = {
          said: false,
        };
    
        this.handleClick = this.handleClick.bind(this);
      }
    
      handleClick() {
        this.setState({
          said: true,
        });
      }
    
      renderHello() {
        return this.state.said ? (
          <p>Hello World! Welcome to 钉钉UI.</p>
        ) : null;
      }
    
      render() {
        const said = this.state.said;
        const text = said ? 'Said :(' : 'Say hello :)';
    
        return (
          <div>
            <Button
              amStyle="primary"
              disabled={said}
              onClick={this.handleClick}
            >
              {text}
            </Button>
            {this.renderHello()}
          </div>
        );
      }
    }
    
    ReactDOM.render(<App />, document.getElementById('root'));

ES2015/JSX 编译参见 钉钉UI Starter Kit

开发及演示

文档及演示

  1. 全局安装 gulp.js:

    npm install -g gulp
  2. 克隆源代码并安装依赖:

    git clone https://github.com/amazeui/amazeui-dingtalk.git

    在源码目录下执行:

    npm install
  3. 启动开发服务:

    npm start

    相关文件构建完成后会自动打开浏览器,可查看文档及组件演示。

构建

npm run build

打包后的文件位于 dist 目录下。

反馈建议

License

MIT © 2015 - 2016 AllMobilize Inc.