@uyun/ec-side-modal
SideModel component from everest-components
Last updated 7 years ago by shenting .
UNLICENSED · Repository · Bugs ·
$ cnpm install @uyun/ec-side-modal 
Private package

category: Components type: CMDB title: SideModal subtitle: 侧滑框

作者:王悦瑾

何时使用

点击查看内容,内容要以右侧滑出弹框形式展开。

API

可自定义名称,大小,位置的侧滑框。

属性说明如下:

参数 说明 类型 默认值
title 标题 string / number -
width 宽度 string / number "900"
height 高度 string / number document.body.clientHeight-10(浏览器高度)
top 距顶部距离 string / number "5"
visible 侧滑框是否可见 boolean false
onCancel 点击遮罩层/右上角叉/取消按钮的回调 function(e) -
maskClosable 点击蒙层是否允许关闭 boolean true
mask 是否展示遮罩 boolean true
destroyOnClose 关闭时销毁 Modal 里的子元素 boolean false

注意

<SideModal /> 默认关闭后状态不会自动清空, 如果希望每次打开都是新内容,请设置 destroyOnClose。

SideModal.method()

  • SideModal.Detail 为一个函数参数为 object,具体属性如下:
参数 说明 类型 默认值
title 标题 string / number -
width 宽度 string / number "900"
height 高度 string / number document.body.clientHeight-10(浏览器高度)
top 距顶部距离 string / number "5"
content 简易侧滑框的内容dom ReactNode -
maskClosable 点击蒙层是否允许关闭 boolean true

Current Tags

  • 0.1.5                                ...           latest (7 years ago)

9 Versions

  • 0.0.1                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
  • 0.0.3                                ...           8 years ago
  • 0.1.0                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.2                                ...           7 years ago
  • 0.1.3                                ...           7 years ago
  • 0.1.4                                ...           7 years ago
  • 0.1.5                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org