jh-emr-page-components

jh-emr-page-components

Usage no npm install needed!

<script type="module">
  import jhEmrPageComponents from 'https://cdn.skypack.dev/jh-emr-page-components';
</script>

README

组件说明

JHDatePicker | 日期组件

使用方式如下:

import { JHDatePicker } from 'jh-emr-page-components';

render(){
  return (<JHDatePicker
      formater={['YYYY-MM-DD', 'HH:mm']}
      hasClear={true}
      showTime={true}
      defaultValue={new Date()}
      onChange={(_,dateStr) => { 
        console.log(dateStr);
      }}
    />)
}

packages.json

{
  "name": "jh-emr-page-components",
  "version": "1.0.7",
  "author": {
    "name": "tlzzu"
  },
  "bundleDependencies": false,
  "deprecated": false,
  "description": "jh-emr-page-components",
  "license": "MIT",
  "main": "index.js",
  "peerDependencies": {
    "react": ">= 16.3.0",
    "react-dom": ">= 16.3.0",
    "@icedesign/base": "^0.2.6"
  },
  "resolutions": {
    "babel-core": "7.0.0-bridge.0"
  }
}