uxcore-ehr-timezone

uxcore-ehr-timezone component for uxcore.

Usage no npm install needed!

<script type="module">
  import uxcoreEhrTimezone from 'https://cdn.skypack.dev/uxcore-ehr-timezone';
</script>

README

uxcore-ehr-timezone

React ehr timezone

NPM version build status Test Coverage Dependency Status devDependency Status NPM downloads

Sauce Test Status

Development

git clone https://github.com/uxcore/uxcore-ehr-timezone
cd uxcore-ehr-timezone
npm install
npm run server

if you'd like to save your install time,you can use uxcore-tools globally.

npm install uxcore-tools -g
git clone https://github.com/uxcore/uxcore-ehr-timezone
cd uxcore-ehr-timezone
npm install
npm run dep
npm run start

Test Case

npm run test

Coverage

npm run coverage

Demo

http://uxcore.github.io/components/ehr-timezone

Contribute

Yes please! See the CONTRIBUTING for details.

Props

参数 说明 类型 默认值
locale 国际化语言 string zh-cn
value 指定当前选中的条目 string
defaultValue 指定默认选中的条目 string
multiple 支持多选 false
filterOption 是否根据输入项进行筛选 true
onSelect 被选中时调用,参数为选中的option value值 function
onDeselect 取消选中时调用,参数为选中的option value值,仅在multiple或tags模式下生效 function
onChange 选中option,或input的value变化(combobox模式下)时,调用此函数 function
allowClear 显示清除按钮 false
placeholder 选择框默认文字 string
searchPlaceholder 搜索框默认文字 string
combobox 输入框自动提示模式 false
size 选择框大小 String
getPopupContainer 弹出的菜单渲染在哪个容器中 function(trigger:Node):Node function(){return document.body;}
dropdownMatchSelectWidth dropdown 部分是否和 select 部分同宽 boolean true
dropdownClassName dropdown 部分的定制类名 string -
notFoundContent 未找到选项时的提示文案 string not found