c-popup


蒙层

属性

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

示例

  1. <template>
  2. <c-popup show="{{true}}" mask="{{true}}"></c-popup>
  3. </template>
  4. <script>
  5. class C_popup {
  6. }
  7. export default new C_popup();
  8. </script>
  9. <script cml-type="json">
  10. {
  11. "base": {
  12. "usingComponents": {
  13. "c-popup": "cml-ui/components/c-popup/c-popup"
  14. }
  15. }
  16. }
  17. </script>

c-popup  - 图1wx

c-popup  - 图2web

c-popup  - 图3native

查看完整示例