wepyjs / Wepy Com Toast
微信小程序toast组件
Stars: ✭ 104
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Wepy Com Toast
Wepy Demo Bookmall
Demo codes for 🐼📖 which used in a very early version.
Stars: ✭ 278 (+167.31%)
Mutual labels: wepy
Weapp.socket.io
A WebSocket client for building WeChat Mini Program implement by socket.io
Stars: ✭ 517 (+397.12%)
Mutual labels: wepy
Jeewx Boot
JAVA版免费开源的微信管家平台。支持微信公众号、小程序、第三方平台等。平台已经实现了公众号基础管理、群发、系统权限、抽奖活动、小程序官网等功能,便于二次开发,可以快速搭建微信应用!
Stars: ✭ 789 (+658.65%)
Mutual labels: wepy
Supermarketmini
基于wepy2.x 仿苏宁小店小程序,API采用go开发(已开源),项目正在开发中,欢迎加群:160301726
Stars: ✭ 73 (-29.81%)
Mutual labels: wepy
微信小程序 wepyjs 第三方toast组件
说明
官方toast组件只支持显示success
,loading
两种icon,因此需要一个更加个性化的toast组件。
此组件依赖于wepyjs v1.1.9+,如果没有使用wepyjs
,则可以使用原版toast组件。
使用
安装组件
npm install wepy-com-toast --save
引入组件
// index.wpy
<template>
<component id="toast"></component>
</template>
<script>
import wepy from 'wepy';
import Toast from 'wepy-com-toast';
export default class Index extends wepy.page {
components = {
toast: Toast
};
}
</script>
调用方法
let promise = this.$invoke('toast', 'show', {
title: '自定义标题',
img: 'https://raw.githubusercontent.com/kiinlam/wetoast/master/images/star.png',
});
promise.then((d) => {
console.log('toast done');
});
更多说明
参考原版插件。
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].