1.0.1 • Published 8 years ago

eglass-wx-modal v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

微信小程序 wepyjs 第三方eglass-wx-modal组件

说明

由于微信小程序modal api样式定制化程度不高,而很多项目中经常用到不同的样式,特此封装

此组件依赖于wepyjs

安装组件

npm install eglass-wx-modal

引入组件

// index.wpy
<template>
  <Modal
        :showModal.sync="showModal"
        :showConfirm="showConfirm"
        :title="modalTitle"
        cancelText="退出"
        cancelTextColor="#47AFCB"
        titleTextAlign="center">
        <view slot="content"></view>
      </Modal>
</template>
<script>
    import wepy from 'wepy';
    import Modal from 'eglass-wx-modal';

    export default class Index extends wepy.page {
        components = {
              Modal: Modal
            }
        data = {
              showConfirm: false,
              showModal: false,
              modalTitle: '我的二维码'
        }
    }
</script>

更多惊喜请查看组件实现

1.0.1

8 years ago

1.0.0

8 years ago