# c-popup


蒙层

wx
web
native

# 属性

属性名 类型 必填 默认值 说明
mask Boolean true 是否显示透明蒙层
show Boolean false 开启打开popup
center Boolean true 内容是否垂直水平居中
position String 内容展示位置,优先级比center高,可选值left/top/right/bottom
c-bind:close EventHandle 点击蒙层时触发

# 示例

<template>
  <c-popup show="{{true}}" mask="{{true}}"></c-popup>
</template>
<script>
class C_popup {}
export default new C_popup();
</script>
<script cml-type="json">
{
  "base": {
      "usingComponents": {
          "c-popup": "cml-ui/components/c-popup/c-popup"
      }
  }
}
</script>