This commit is contained in:
pangxie1991 2016-12-19 20:26:14 +08:00
parent 12ea8d1bdb
commit 152feb9367
6 changed files with 72 additions and 54 deletions

View File

@ -1,5 +1,5 @@
<view class="container"> <view class="container">
<view class="zui-panel">
<view class="zui-cell"> <view class="zui-cell">
<view class="zui-cell__bd"> <view class="zui-cell__bd">
<view class="top-info__steps zui-steps zui-steps-3"> <view class="top-info__steps zui-steps zui-steps-3">
@ -64,5 +64,6 @@
</view> </view>
</view> </view>
</view> </view>
</view>
</view> </view>

View File

@ -1,7 +1,15 @@
<import src="/zui/toast/index.wxml" /> <import src="/zui/toast/index.wxml" />
<view class="container"> <view class="container">
<button class="zui-btn zui-btn--primary zui-btn--big" catchtap="showToast">弹个窗~</button> <view class="zui-btns">
<button
class="zui-btn zui-btn--primary zui-btn--big"
catchtap="showToast"
style="margin-top: 40vh;"
>
弹个窗~
</button>
</view>
</view> </view>
<template is="zui-toast" data="{{ componentToast }}"></template> <template is="zui-toast" data="{{ componentToast }}"></template>

View File

@ -1,7 +1,15 @@
<import src="/zui/toptips/index.wxml" /> <import src="/zui/toptips/index.wxml" />
<view class="container"> <view class="container">
<button class="zui-btn zui-btn--primary zui-btn--big" catchtap="showTopTips">显示toptips</button> <view class="zui-btns">
<button
class="zui-btn zui-btn--primary zui-btn--big"
catchtap="showTopTips"
style="margin-top: 40vh;"
>
显示toptips
</button>
</view>
</view> </view>
<template is="zui-toptips" data="{{ componentTopTips }}"></template> <template is="zui-toptips" data="{{ componentTopTips }}"></template>

View File

@ -2,7 +2,7 @@
position: fixed; position: fixed;
top: 35%; top: 35%;
left: 20%; left: 20%;
transform: translateY(-100%); transform: translateZ(0) translateY(-100%);
background: rgba(0, 0, 0, 0.7); background: rgba(0, 0, 0, 0.7);
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;

View File

@ -5,6 +5,7 @@ module.exports = {
// 如果已经有一个计时器在了,就清理掉先 // 如果已经有一个计时器在了,就清理掉先
if (timer) { if (timer) {
clearTimeout(timer); clearTimeout(timer);
timer = undefined;
} }
if (typeof options === 'number') { if (typeof options === 'number') {

View File

@ -9,7 +9,7 @@
text-align: center; text-align: center;
color: #FFF; color: #FFF;
background-color: #E64340; background-color: #E64340;
z-index: 2; z-index: 20;
/* 动画部分 */ /* 动画部分 */
transition: all 0.4s ease; transition: all 0.4s ease;