0.0.4 • Published 5 years ago

@alicd/crui-calendar-ex v0.0.4

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

category: Components type: UI Views component: Base chinese: 确认提示浮层

english: CalendarEx

API

CalendarEx

成员说明类型默认值
className自定义 classstringN/A
style自定义内联样式objectN/A
onOk点击确认按钮后执行的回调functionN/A
onCancel点击取消按钮后执行的回调functionN/A
locale自定义确认/取消按钮的文本{ ok: string; cancel: string; }默认根据当前页面语言自动选择
canCloseByOk执行 onOk 后是否立即自动关闭弹层booleantrue
canCloseByCancel执行 onCancel 后是否立即自动关闭弹层booleantrue
type样式类型可选值:'normal', 'primary'"normal""primary""primary"
children浮层的内容anyN/A
visible弹层当前显示的状态booleanN/A
defaultVisible弹层默认显示的状态booleanfalse
onVisibleChange弹层在显示和隐藏触发的事件签名:Function(visible: Boolean) => void参数:visible: {Boolean} 弹层是否隐藏和显示(visible: boolean): anyN/A
alignment弹出层对齐方式可选值:'normal'(普通对齐 箭头居中)'edge'(边缘对齐 箭头可在trigger的边缘)"normal""edge""normal"
closable是否显示关闭按钮booleanfalse
align弹出层位置可选值:'t'(上)'r'(右)'b'(下)'l'(左)'tl'(上左)'tr'(上右)'bl'(下左)'br'(下右)'lt'(左上)'lb'(左下)'rt'(右上)'rb'(右下)Enum"tr"
offset弹层相对于trigger的定位的微调[number, number][0, 0]
trigger触发元素any<span></span>
triggerType触发行为可选值:'hover'(鼠标悬浮)'focus'(获取到焦点)'click'(鼠标点击)"hover""focus""click""hover"
onClose任何visible为false时会触发的事件签名:Function() => voidfunction默认为空
onCloseClick点击关闭按钮的click事件签名:Function() => voidfunction默认为空
needAdjust是否进行自动位置调整booleanfalse
delay弹层在触发以后的延时显示numberN/A
afterClose浮层关闭后触发的事件, 如果有动画,则在动画结束后触发签名:Function() => voidfunction默认为空
shouldUpdatePosition强制更新定位信息booleanN/A
autoFocus弹层出现后是否自动focus到内部第一个元素booleanfalse
safeNode安全节点:对于triggetType为click的浮层,会在点击除了浮层外的其它区域时关闭浮层.safeNode用于添加不触发关闭的节点, 值可以是dom节点的id或者是节点的dom对象stringN/A
safeId用来指定safeNode节点的id,和safeNode配合使用stringN/A
animation配置动画的播放方式objectballoon{ in: 'zoomIn', out: 'zoomOut' }
cache弹层的dom节点关闭时是否删除booleanfalse
container指定浮层渲染的父节点, 可以为节点id的字符串,也可以返回节点的函数。stringfunctionN/A