Git Product home page Git Product logo

uploadcore's Introduction

English | 中文

npm version Dependency Status devDependency Status

UXCore is a set of React Components that is designed for enterprise-class pc backend application.

  • Rich Library: more than 50 high quality React Components available

  • Focus on Enterprise-class App: Powerful but easy-to-use Form and Table.

  • Well Designed UI: designed for enterprise-class app to make work easy and happy.

Check out our documentation site for live examples.

Before posting an issue, please read the CHANGELOG and the README and the documentation to check the recently updated.

Installation

npm install uxcore --save

Usage

import js

import { Button } from 'uxcore';
ReactDOM.render(<Button />, mountNode);

import js as required

  • use babel-plugin-import (recommanded)

    // .babelrc or babel-loader option
    {
      "plugins": [
        ["import", { libraryName: "uxcore", camel2DashComponentName: false }]
      ]
    }
  • or, import manually

    import Button from 'uxcore/lib/Button';

import style package

@import '~uxcore/assets/iconfont.css';
@import '~uxcore/assets/orange.css';

React Compatibility

0.14.9 - 16.x

Browser Support

Mainstream browsers and Internet Explorer 9+.

For some broswers (such as IE), you need babel-polyfill.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <!-- Polyfills -->
    <script src="https://g.alicdn.com/platform/c/babel-polyfill/6.26.0/dist/polyfill.min.js"></script>
  </head>
</html>

Contribute

Yes please! See the CONTRIBUTING for details.

License

This project is licensed under the terms of the MIT license

uploadcore's People

Contributors

eternalsky avatar yanbingbing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uploadcore's Issues

safari7 'DataTransfer' in window返回false导致错误

// src/collector/picker.js

if (('DataTransfer' in window) && ('FileList' in window)) {
    this.triggerCollection = new Html5TriggerCollection(core, onFiles);
} else {
    this.triggerCollection = new FlashTriggerCollection(core, onFiles);
}

上面代码在safari7(虚拟机)下由于 'DataTransfer' in window返回false,导致使用FlashTrigger,从而出现不能上传的错误,由于找不到真机的safari7,麻烦帮忙验证一下真机上会不会有这种情况,十分感谢!

why there is no gulpfile?

It's strange that dist file is minified, then I want to have a look at the gulp file but no found? Are you trying to make this project open-source? Really appreciate to your great works of UXCore!

默认值

我编辑form表单的时候,upload组件里面显示出我之前上传的 “图片名称” 或者 带有图片预览

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.