Skip to content

Commit 97f5ff4

Browse files
Wangyaqihdx-w
authored andcommitted
update: 优化页面进入卡顿
1 parent 05137a9 commit 97f5ff4

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎pages/extUI/calendar/calendar.vue‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<view :class="{ 'calendar-content-active ': infoShow }" class="calendar-content">
2+
<view :class="{ 'calendar-content-active ': infoShow }" class="calendar-content" v-if="showCalendar">
33
<view class="example-info">日历组件可以查看日期,选择任意范围内的日期,打点操作。常用场景如:酒店日期预订、火车机票选择购买日期、上下班打卡等。</view>
44
<view class="example-title">日历组件</view>
55

@@ -142,10 +142,15 @@
142142
year: ''
143143
},
144144
selected: [],
145-
infoShow: false
145+
infoShow: false,
146+
showCalendar: false
146147
}
147148
},
148-
onLoad() {},
149+
onReady() {
150+
this.$nextTick(() => {
151+
this.showCalendar = true
152+
})
153+
},
149154
methods: {
150155
toggle(index, item) {
151156
this.tags[index].checked = !item.checked

‎pages/extUI/card/card.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<view class="example-title">图文卡片</view>
1111
<view class="example-body">
1212
<view class="example-box">
13-
<uni-card :is-shadow="true" title="最美的风景" mode="style" thumbnail="http://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/run1x7.png" extra="DCloud 2019-05-20 12:32:19" note="true" @click="clickCard">
13+
<uni-card :is-shadow="true" title="最美的风景" mode="style" thumbnail="https://img-cdn-qiniu.dcloud.net.cn/uniapp/doc/uni0124.png" extra="DCloud 2019-05-20 12:32:19" note="true" @click="clickCard">
1414
<view>
1515
uni-app 是一个使用 Vue.js 开发所有前端应用的框架,开发者编写一套代码,可编译到iOS、Android、H5、以及各种小程序等多个平台。 即使不跨端,uni-app同时也是更好的小程序开发框架
1616
</view>
@@ -27,7 +27,7 @@
2727
<uni-card :is-shadow="true" title="DCloud" mode="title" thumbnail="https://img-cdn-qiniu.dcloud.net.cn/new-page/uni.png" extra="技术没有上限" note="true" @click="clickCard">
2828
<view>
2929
<view class="image-box">
30-
<image class="image" mode="aspectFill" src="http://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/run1x7.png" />
30+
<image class="image" mode="aspectFill" src="https://img-cdn-qiniu.dcloud.net.cn/uniapp/doc/uni0124.png" />
3131
</view>
3232
<view class="content-box">
3333
uni-app 是一个使用 Vue.js 开发所有前端应用的框架,开发者编写一套代码,可编译到iOS、Android、H5、以及各种小程序等多个平台。 即使不跨端,uni-app同时也是更好的小程序开发框架。

‎pages/extUI/collapse/collapse.vue‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
data: [{
5454
type: false,
5555
subName: '默认开启',
56-
open: false,
57-
openPre: true,
56+
open: true,
5857
content: '折叠内容主体,可自定义内容及样式'
5958
},
6059
{
@@ -161,7 +160,7 @@
161160
id: 2
162161
}
163162
},
164-
onLoad() {
163+
onReady() {
165164
setTimeout(() => {
166165
this.list.map(function(item) {
167166
item.data.map(function(collapseItem) {

0 commit comments

Comments
 (0)