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

piros-ui

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

piros-ui

yuantu piros-ui for react

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

piros-ui

安装

    npm install piros-ui

示例

###引入样式

    import 'piros-ui/style.css';

###日历选择组件

    import React from 'react';
    import {RangeDate} from 'piros-ui';
    import 'piros-ui/style.css';
    function onChange(startDate,endDate) {
        console.log(startDate,endDate)
    }
    function onSelected(year,month,day) {
        console.log(year,month,day)
    }
    var dates = {
      startDate: "2016/11/3",//开始时间
      endDate: "2016/12/4",//结束时间
      isShowPicker: true //默认显示
    }

    render(
      <div>
        <RangeDate {...dates} onChange={onChange} onSelected={onSelected}/>
        , dmountNode);

###select选择器

    import React from 'react';
    import {Select} from 'piros-ui';
    import 'piros-ui/style.css';
    function onChange(value,text){
      console.log(value,text);
    }

    render(
        <div>
            <Select defaultValve="青岛市口腔医院" onChange={onChange}>
                  <Option value="青岛市口腔医院">青岛市口腔医院</Option>
                  <Option value="青岛市胶州中心医院">青岛市胶州中心医院</Option>
                  <Option value="青岛海慈医院(未开通)" disabled>青岛海慈医院(未开通)</Option>
                  <Option value="平度市人民医院">平度市人民医院</Option>
            </Select>
            <Select defaultValve="青岛市口腔医院" disabled onChange={onChange}>
                  <Option value="青岛市口腔医院">青岛市口腔医院</Option>
                  <Option value="青岛海慈医院(未开通)" disabled>青岛海慈医院(未开通)</Option>
            </Select>
        </div>
        , dmountNode);

Keywords

FAQs

Package last updated on 31 Oct 2016

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