File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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 >
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同时也是更好的小程序开发框架。
Original file line number Diff line number Diff line change 5353 data: [{
5454 type: false ,
5555 subName: ' 默认开启' ,
56- open: false ,
57- openPre: true ,
56+ open: true ,
5857 content: ' 折叠内容主体,可自定义内容及样式'
5958 },
6059 {
161160 id: 2
162161 }
163162 },
164- onLoad () {
163+ onReady () {
165164 setTimeout (() => {
166165 this .list .map (function (item ) {
167166 item .data .map (function (collapseItem ) {
You can’t perform that action at this time.
0 commit comments