Skip to content

Commit

Permalink
add toast
Browse files Browse the repository at this point in the history
  • Loading branch information
东杰 committed Apr 12, 2019
1 parent 732565e commit 62e176c
Show file tree
Hide file tree
Showing 20 changed files with 295 additions and 196 deletions.
2 changes: 1 addition & 1 deletion demo/app.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"pages":[
"pages/main/index",
"pages/toast/index",
"pages/notify/index",
"pages/modal/index",
"pages/main/index",
"pages/tabs/index",
"pages/badge/index",
"pages/tabbar/index",
Expand Down
2 changes: 1 addition & 1 deletion demo/dist/icon/index.wxss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@font-face{font-family:iconfont;src:url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABR0AAsAAAAAL1AAABQjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCJeArEELdmATYCJAOBWAtuAAQgBYRtB4U6G+4nRaThpJV2ZP9fEuSIq+G2PjScNJhKnYr2FvW2CAoTX4mcYny+5s5jz23L5R8JLTSjl6ntwYmyAol4y3tP+l9rMY6FGw8bSkkQLWvVs7MXw4cYSEahBMqgUAih+4x7EGBuQ0K5mZEYnrb57+7gOGUS2oBKbWIFYd9RKmCC0WdxrFmUqyzX5fws0/3SFbr0L+qjI8AdXS9TgnGUWNpahKmHIGNj5EltwIEJhf7nsl3J0vr4CHNVMv7O03zIvuyGVH5+KM1hLMKiFEKCcDT6+cD/+eX6hJnaQL5H1kRONUe+rc+XquYSrtA6hFUZWROJvPbc1xwAiJpvzV6byX4gbLvFKQsDKGyVG9jA7ExgjjeHuZT2cHPEgSMqAEhAt3v5BJsiOBaS6Pn/fI2s8DVSFkoXjSny8iHby4QQDx/8OesDV7sRY1wUIwQImCXCztdd35nAwJHaq61MFoCpfg4ViGmpGoBFCtWE9aEX7jBOmMVV9OLfchP/6G8f31sERZv8HPG3VVcPcOd4PfNFLw9NnIHViWjwAJUymYkYA+TIHigfsL4QWvgFL3xfs/xoStOa06IO5HBecz5xPn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Sd8uAfeMyfB31P8xCMHhtFwIAcYe7V8EPb45MgCfpi0RibFwDN/M0GbPSaVQ8n6zUZhxHuR3ugkL6dSI2GBNho4CfwSZ+nSsPwu9srOgrS+COP1IcCDziqcdVs1O+Ysz/uHjcU/xTf6WJr0tCvdT2wH4qAviThMY5pn76ffbt6z+HkGp59jdfwiyAQTAH+CNG9cKfLUJrbkIQIZ+zWjAEqg2MFNTFEWqLKUHtwKSrA+HWuYa8kDGozn8Zhz6hQji+VRjLBRXB8QNoi39VOl//KooTY9VdUXi5ZOoTdkdDUIxW3j5Lq1M0XsI7h44X6KpXdOmn+25Axd4mF9P576Y1IkjEUcpDt2Q20lAKcvXy7uB9kpnSHTRPe+Z8PpsZ1oeY6hQGOzQIKAxa0q1ncmVLSyLz4Gwn9utfgE7lKZSQ9uPKN4AU9qVLC1NzDrDmkSutLN2LB50l9kxDMqv2SSCtPAN8UJ9ImZ3rDmhsqs9hZudm3kSGl0+rD4W2yD19GX9++Pirt6JquiFMy3Zcz+cnEElkCpVGZzBZbA6XxxcIRWKJVCZXKFVqjVanNxhNZovVlo7uod1EW9Iee9qngovG3exrWQw8vK8obFNkI8KB561vBpSiOmwWMNvYjfGMLZ+04u29qdq2FpDY5exTgPDWYaPGfbJWAaQOyjxibSdteow+qbYpqca6TA9FLAp/RPFojR0HFZvSK0JDtutZeBge1SyytBIBsTZq8Eb+cccqtZgY6/0Rb+ovkikFtx8HG7XV3lNsQfHAg5pv0vtIwdgji9HPic7MRr/N00dF0U4p33xHWXoK7ZmTfvbZVzkXTrRkB7sGTBhPXHzHTvRD37asxu23PAXbqgvtJjE3hdg1vcYg1tWg1QRFaO9B0m9d6FMwAAAAAA==') format('woff2')}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block}.icon-check-circle:before{content:"\e77d"}.icon-close-circle:before{content:"\e77e"}.icon-plus-circle:before{content:"\e781"}.icon-question-circle:before{content:"\e782"}.icon-time-circle:before{content:"\e784"}.icon-message:before{content:"\e78a"}.icon-setting:before{content:"\e78e"}.icon-eye:before{content:"\e78f"}.icon-location:before{content:"\e790"}.icon-adduser:before{content:"\e7ae"}.icon-user:before{content:"\e7af"}.icon-home:before{content:"\e7c6"}.icon-like:before{content:"\e7c8"}.icon-unlike:before{content:"\e7c9"}.icon-camera:before{content:"\e7d7"}.icon-cloud-download:before{content:"\e7d9"}.icon-sound:before{content:"\e7da"}.icon-heart:before{content:"\e7df"}.icon-star:before{content:"\e7e0"}.icon-wifi:before{content:"\e7e1"}.icon-man:before{content:"\e7e2"}.icon-share:before{content:"\e7e7"}.icon-right:before{content:"\e7eb"}.icon-left:before{content:"\e7ec"}.icon-up:before{content:"\e7ed"}.icon-down:before{content:"\e7ee"}.icon-menu:before{content:"\e7f4"}.icon-check:before{content:"\e7fc"}.icon-close:before{content:"\e7fd"}.icon-check-circle-fill:before{content:"\e844"}.icon-left-circle-fill:before{content:"\e845"}.icon-down-circle-fill:before{content:"\e846"}.icon-minus-circle-fill:before{content:"\e847"}.icon-close-circle-fill:before{content:"\e848"}.icon-up-circle-fill:before{content:"\e849"}.icon-right-circle-fill:before{content:"\e84a"}.icon-plus-circle-fill:before{content:"\e84b"}.icon-question-circle-fill:before{content:"\e84c"}.icon-warning-circle-fill:before{content:"\e84d"}.icon-heart-fill:before{content:"\e84e"}.icon-message-fill:before{content:"\e84f"}.icon-appstore-fill:before{content:"\e853"}.icon-file-text-fill:before{content:"\e858"}.icon-sound-fill:before{content:"\e865"}.icon-home-fill:before{content:"\e867"}.icon-location-fill:before{content:"\e868"}.icon-eye-fill:before{content:"\e869"}.icon-like-fill:before{content:"\e86a"}.icon-unlike-fill:before{content:"\e86b"}.icon-star-fill:before{content:"\e86c"}.icon-camera-fill:before{content:"\e86f"}.icon-setting-fill:before{content:"\e871"}.icon-plus:before{content:"\e8fe"}
@font-face{font-family:iconfont;src:url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAA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3Zrgz/7ZVH4VFo6naC8MDNBT6dNDT9ddIgD2tcZDQ/5GgHSnfPIJ1s5W4ueCKW0VLrGd4beTkNPpUmBVDHF7icsCjIJkNXcdyZRHCXlDugwi0vZPCAKPq1xammxO/ejpaiJrsvMb2FveTZIIAMRkz/zdWW0LFt1N9QDqW2zrDis7r09UHdx0PuMHkunn6TLUWFy+krDDA0w+d//PZCdRIqr6ETDBDs/BQzHZuSncYQ5DJ9HwhmjkTi6/4nxiC/6iBz3dziPhOx/ZCHCRo85K07QTvg7gk7C98Ou3p/0x04E4bFNeRIqzsCXkfTdLISOVRUEgRj8B1t0x8VmUtzVDXalSbD71i9ZW0aCkHn140+7qaDwPLt48r9D/+2N+5BnkajsWVK/SEd7Biv8IaeErGdvVurTz8u/w8wlONj32CVoEF7t4A+7sIpv5XSvh5YJhnvdlLScvmQ4M2TX7qRI4kCKOWekYOvc8omq6wyVHti4u5GUkqeSVvBMMkreI7v2qxRp+CvFSmGk4GpUDSYWsS6+KRlGMOnLQ0dL1YWfvGm5v+F7Nmy1qvv+wS3G6v1m50w9o4LTmKfd/EHEacdU9GnzYMiZ9Mx0hZVNEJmP263jzbuxVBZvSoYR+dhJXx7nR0vVDS5vrp//Dd+zYZ9Kr+f/g1u8cr3f7EKgM6+hKi1LwXbzByHCaVaSqegTEcivJNIzf7IrrGxCjIT5uCWNubB8k797mSZ88FX5/CbZ+7QkK6qmG6ZlO67nK6uoqqlraGpp6+jq6RuEXOvWorUBzMTPd8M1Vv9cnAWMx3ODyFFnjQdeMlkj/Vv02UxTb2AlTRqoQOWY8NSrIqwpXW7oy2bq0zjRvWYy09Co1zojwLCoJk+p7tHFdTF1aMEwBo4+iMpwsuqziqKlCmofbIBNmChTg5pzbwsAAA==') format('woff2')}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block}.icon-success:before{content:"\e77d"}.icon-error:before{content:"\e77e"}.icon-warning:before{content:"\e785"}.icon-message:before{content:"\e78a"}.icon-setting:before{content:"\e78e"}.icon-eye:before{content:"\e78f"}.icon-location:before{content:"\e790"}.icon-adduser:before{content:"\e7ae"}.icon-user:before{content:"\e7af"}.icon-home:before{content:"\e7c6"}.icon-like:before{content:"\e7c8"}.icon-unlike:before{content:"\e7c9"}.icon-camera:before{content:"\e7d7"}.icon-cloud-download:before{content:"\e7d9"}.icon-sound:before{content:"\e7da"}.icon-heart:before{content:"\e7df"}.icon-star:before{content:"\e7e0"}.icon-wifi:before{content:"\e7e1"}.icon-man:before{content:"\e7e2"}.icon-share:before{content:"\e7e7"}.icon-right:before{content:"\e7eb"}.icon-left:before{content:"\e7ec"}.icon-up:before{content:"\e7ed"}.icon-down:before{content:"\e7ee"}.icon-menu:before{content:"\e7f4"}.icon-check:before{content:"\e7fc"}.icon-close:before{content:"\e7fd"}.icon-plus:before{content:"\e8fe"}
16 changes: 16 additions & 0 deletions demo/dist/toast/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Component({
properties: {
visible: {
type: Boolean,
value: false
},
zIndex: {
type: Number,
value: 9999
},
type: {
type: String,
value: ''
}
}
});
6 changes: 6 additions & 0 deletions demo/dist/toast/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"d-icon": "../icon/index"
}
}
14 changes: 14 additions & 0 deletions demo/dist/toast/index.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<view
class="d-toast-mask"
wx:if="{{ visible }}"
>
<view class="d-toast">
<d-icon
wx:if="{{type !== ''}}"
name="{{type}}"
size="40"
color="#fff"
></d-icon>
<text class="d-toast-txt">{{ content }}</text>
</view>
</view>
1 change: 1 addition & 0 deletions demo/dist/toast/index.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.d-toast-mask{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;z-index:999999}.d-toast{padding:10px;background:rgba(0,0,0,.7);flex-direction:column;border-radius:8rpx;max-width:200px;display:flex;justify-content:center;align-items:center}.d-toast-txt{color:#fff;font-size:32rpx}
46 changes: 46 additions & 0 deletions demo/dist/toast/toast.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
const defaultOptions = {
visible: false,
type: '',
icon: '',
content: '',
duration: 2,
selector: '#toast'
}

let timer = null;

function getCurPage() {
const pages = getCurrentPages();
return pages[pages.length - 1];
}

function selectComp(selector) {
return getCurPage().selectComponent(selector);
}

function Toast(options) {
options = Object.assign({}, defaultOptions, options, {visible: true});

const toast = selectComp(options.selector);

toast.setData({
...options
});

timer = setTimeout(() => {
hideToast(toast);
}, options.duration * 1000);

return toast;
}

function hideToast(toast) {
toast.setData({
...defaultOptions
});
if (timer) {
clearTimeout(timer);
}
}

export default Toast;
2 changes: 1 addition & 1 deletion demo/pages/button/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Page({

})
});
12 changes: 6 additions & 6 deletions demo/pages/button/index.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
padding: 30rpx 0;
margin-bottom: 20rpx;
}
.m-r{
margin-right: 20rpx;
}
.m-b{
margin-bottom: 30rpx;
}
.btn-title{
font-size: 32rpx;
color: #333;
Expand All @@ -22,4 +16,10 @@
}
.btn-box{
padding: 0 30rpx;
}
.m-r{
margin-right: 20rpx;
}
.m-b{
margin-bottom: 30rpx;
}
14 changes: 3 additions & 11 deletions demo/pages/icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,19 @@ Page({
{ name: 'check' },
{ name: 'close' },
{ name: 'menu' },
{ name: 'question-circle' },
{ name: 'message' },
{ name: 'message-fill' },
{ name: 'setting' },
{ name: 'setting-fill' },
{ name: 'eye' },
{ name: 'eye-fill' },
{ name: 'location' },
{ name: 'location-fill' },
{ name: 'home' },
{ name: 'home-fill' },
{ name: 'like' },
{ name: 'like-fill' },
{ name: 'unlike' },
{ name: 'unlike-fill' },
{ name: 'camera' },
{ name: 'camera-fill' },
{ name: 'sound' },
{ name: 'sound-fill' },
{ name: 'heart' },
{ name: 'heart-fill' },
{ name: 'success' },
{ name: 'fail' },
{ name: 'warning' },
]
}
})
Loading

0 comments on commit 62e176c

Please sign in to comment.