eglass-wx-modal
v1.0.1
Published
更灵活的modal
Downloads
1
Readme
微信小程序 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>