File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "name" : " uView" ,
33 "appid" : " __UNI__60F4B81" ,
44 "description" : " 多平台快速开发的UI框架" ,
5- "versionName" : " 1.6.5 " ,
5+ "versionName" : " 1.6.6 " ,
66 "versionCode" : " 100" ,
77 "transformPx" : false ,
88 "app-plus" : {
Original file line number Diff line number Diff line change 1717 <view class =" u-config-item" >
1818 <view class =" u-item-title" >模式选择</view >
1919 <u-table >
20- <u-tr >
21- <u-td >
20+ <u-tr class = " u-tr " >
21+ <u-td class = " u-td " >
2222 <u-button :hair-line =" false" size =" mini" @click =" modeChange('car')" >购物车为空</u-button >
2323 </u-td >
24- <u-td >
24+ <u-td class = " u-td " >
2525 <u-button :hair-line =" false" size =" mini" @click =" modeChange('page')" >页面不存在</u-button >
2626 </u-td >
27- <u-td >
27+ <u-td class = " u-td " >
2828 <u-button :hair-line =" false" size =" mini" @click =" modeChange('search')" >没有搜索结果</u-button >
2929 </u-td >
3030 </u-tr >
31- <u-tr >
32- <u-td >
31+ <u-tr class = " u-tr " >
32+ <u-td class = " u-td " >
3333 <u-button :hair-line =" false" size =" mini" @click =" modeChange('address')" >没有收货地址</u-button >
3434 </u-td >
35- <u-td >
35+ <u-td class = " u-td " >
3636 <u-button :hair-line =" false" size =" mini" @click =" modeChange('wifi')" >没有WiFi</u-button >
3737 </u-td >
38- <u-td >
38+ <u-td class = " u-td " >
3939 <u-button :hair-line =" false" size =" mini" @click =" modeChange('order')" >订单为空</u-button >
4040 </u-td >
4141 </u-tr >
42- <u-tr >
43- <u-td >
42+ <u-tr class = " u-tr " >
43+ <u-td class = " u-td " >
4444 <u-button :hair-line =" false" size =" mini" @click =" modeChange('coupon')" >没有优惠券</u-button >
4545 </u-td >
46- <u-td >
46+ <u-td class = " u-td " >
4747 <u-button :hair-line =" false" size =" mini" @click =" modeChange('favor')" >没有收藏</u-button >
4848 </u-td >
49- <u-td >
49+ <u-td class = " u-td " >
5050 <u-button :hair-line =" false" size =" mini" @click =" modeChange('permission')" >无权限</u-button >
5151 </u-td >
5252 </u-tr >
53- <u-tr >
54- <u-td >
53+ <u-tr class = " u-tr " >
54+ <u-td class = " u-td " >
5555 <u-button :hair-line =" false" size =" mini" @click =" modeChange('history')" >无历史记录</u-button >
5656 </u-td >
57- <u-td >
57+ <u-td class = " u-td " >
5858 <u-button :hair-line =" false" size =" mini" @click =" modeChange('news')" >无新闻列表</u-button >
5959 </u-td >
60- <u-td >
60+ <u-td class = " u-td " >
6161 <u-button :hair-line =" false" size =" mini" @click =" modeChange('message')" >消息列表为空</u-button >
6262 </u-td >
6363 </u-tr >
64- <u-tr >
65- <u-td >
64+ <u-tr class = " u-tr " >
65+ <u-td class = " u-td " >
6666 <u-button :hair-line =" false" size =" mini" @click =" modeChange('list')" >列表为空</u-button >
6767 </u-td >
68- <u-td >
68+ <u-td class = " u-td " >
6969 <u-button :hair-line =" false" size =" mini" @click =" modeChange('data')" >数据为空</u-button >
7070 </u-td >
71- <u-td >
71+ <u-td class = " u-td " >
7272 待扩展
7373 </u-td >
7474 </u-tr >
Original file line number Diff line number Diff line change 99 :show-title =" showTitle" :async-close =" asyncClose"
1010 @confirm =" confirm" :content =" content"
1111 >
12- <!-- #ifndef MP-WEIXIN -->
12+ <!-- #ifndef MP-WEIXIN || MP-TOUTIAO -->
1313 <view class =" warp" style =" margin : 30 rpx;" v-if =" contentSlot" >
1414 <image class =" logo" src =" https://uviewui.com/common/logo.png" style =" width : 220 rpx;" mode =" widthFix" ></image >
1515 </view >
Original file line number Diff line number Diff line change 1111 @end =" end"
1212 @moving =" moving"
1313 >
14- <!-- #ifndef MP-WEIXIN -->
14+ <!-- #ifndef MP-WEIXIN || MP-TOUTIAO -->
1515 <view class =" " v-if =" useSlot" >
1616 <view class =" badge-button" >
1717 {{value}}
Original file line number Diff line number Diff line change 33 <view class =" u-demo-wrap" >
44 <view class =" u-demo-title" >演示效果</view >
55 <view class =" u-demo-area u-flex u-row-center" >
6- <u-line :border-style =" borderStyle" color =" red" :color =" color" :length =" length" :direction =" direction" :hair-line =" hairLine" ></u-line >
6+ <!-- 头条小程序因为兼容性,必须要给组件写上u-line类 -->
7+ <u-line class =" u-line" :border-style =" borderStyle" color =" red" :color =" color" :length =" length" :direction =" direction" :hair-line =" hairLine" ></u-line >
78 </view >
89 </view >
910 <view class =" u-config-wrap" >
Original file line number Diff line number Diff line change 2828 </view >
2929 </view >
3030 <u-tabbar
31- :beforeSwitch =" beforeSwitch"
3231 v-model =" current"
3332 :show =" show"
3433 :bg-color =" bgColor"
Original file line number Diff line number Diff line change 11<template >
22 <view class =" " >
3- <u-dropdown ref =" uDropdown" @open =" open" @close =" close" >
4- <u-dropdown-item v-model =" value1" title =" 距离" :options =" options1" @change =" change" ></u-dropdown-item >
5- <u-dropdown-item v-model =" value2" title =" 温度" :options =" options2" ></u-dropdown-item >
6- </u-dropdown >
3+ <u-button @click =" show = true;" >打开弹窗</u-button >
4+ <u-popup mode =" bottom" v-model =" show" >
5+ <view class =" content" >
6+ <u-image class =" image" width =" 500rpx" height =" 300rpx" src =" https://cdn.uviewui.com/uview/example/fade.jpg" ></u-image >
7+
8+ <view class =" confrim-btn" >
9+ <u-button @click =" show = false;" >确定</u-button >
10+ </view >
11+ </view >
12+ </u-popup >
713 </view >
814</template >
915
1016<script >
1117 export default {
1218 data () {
1319 return {
14- value1: 1 ,
15- value2: 2 ,
16- options1: [{
17- label: ' 默认排序' ,
18- value: 1 ,
19- },
20- {
21- label: ' 距离优先' ,
22- value: 2 ,
23- }
24- ],
25- options2: [{
26- label: ' 去冰' ,
27- value: 1 ,
28- },
29- {
30- label: ' 加冰' ,
31- value: 2 ,
32- },
33- ],
34- }
35- },
36- methods: {
37- open (index ) {
38- // 展开某个下来菜单时,先关闭原来的其他菜单高亮
39- // 同时内部会自动给当前展开项进行高亮
40- this .$refs .uDropdown .highlight ();
41- },
42- close (index ) {
43- // 关闭的时候,给当前项加上高亮
44- // 当然,您也可以通过监听dropdown-item的@change事件进行处理
45- this .$refs .uDropdown .highlight (index);
46- },
47- change () {
48- // 更多的细节,请自行实现
20+ show: true
4921 }
5022 }
5123 }
52- </script >
24+ </script >
25+
26+ <style lang="scss" scoped>
27+ .content {
28+ padding : 24 rpx;
29+ text-align : center ;
30+ position : relative ;
31+ }
32+
33+ .image {
34+ position : absolute ;
35+ top : -200 rpx;
36+ }
37+ </style >
Original file line number Diff line number Diff line change @@ -219,12 +219,16 @@ export default [{
219219 icon : 'mask' ,
220220 title : 'Mask 遮罩层' ,
221221 title_en : 'Mask' ,
222- } , {
222+ } ,
223+ // #ifndef MP-TOUTIAO
224+ {
223225 path : '/pages/componentsA/noNetwork/index' ,
224226 icon : 'noNetwork' ,
225227 title : 'NoNetwork 无网络提示' ,
226228 title_en : 'NoNetwork' ,
227- } , {
229+ } ,
230+ // #endif
231+ {
228232 path : '/pages/componentsC/grid/index' ,
229233 icon : 'grid' ,
230234 title : 'Grid 宫格布局' ,
@@ -250,12 +254,14 @@ export default [{
250254 title : 'Sticky 吸顶' ,
251255 title_en : 'Sticky' ,
252256 } ,
257+ // #ifndef MP-TOUTIAO
253258 {
254259 path : '/pages/componentsB/waterfall/index' ,
255260 icon : 'waterfall' ,
256261 title : 'Waterfall 瀑布流' ,
257262 title_en : 'Waterfall' ,
258263 } ,
264+ // #endif
259265 {
260266 path : '/pages/componentsB/divider/index' ,
261267 icon : 'divider' ,
Original file line number Diff line number Diff line change 6767 // #ifdef MP
6868 uni .setClipboardData ({
6969 data: this .href ,
70- success () {
70+ success : () => {
7171 uni .hideToast ();
72+ this .$nextTick (() => {
73+ this .$u .toast (this .mpTips );
74+ })
7275 }
7376 });
74- this .$nextTick (() => {
75- this .$u .toast (this .mpTips );
76- })
7777 // #endif
7878 }
7979 }
Original file line number Diff line number Diff line change 22 <view class =" u-char-box" >
33 <view class =" u-char-flex" >
44 <input :disabled =" disabledKeyboard" :value =" valueModel" type =" number" :focus =" focus" :maxlength =" maxlength" class =" u-input" @input =" getVal" />
5- <view v-for =" (item, index) in maxlength" :key =" index" >
5+ <!-- 这里需要通过new Array生成一个供循环的数组,是因为头条小程序不支持通过v-for历遍一个数值,其他端都是正常的 -->
6+ <view v-for =" (item, index) in (new Array(maxlength).fill(0))" :key =" index" >
67 <view :class =" [breathe && charArrLength == index ? 'u-breathe' : '', 'u-char-item',
78 charArrLength === index && mode == 'box' ? 'u-box-active' : '',
89 mode === 'box' ? 'u-box' : '']" :style =" {
118119 }
119120 },
120121 watch: {
121- maxlength: {
122- // 此值设置为true,会在组件加载后无需maxlength变化就会执行一次本监听函数,无需再created生命周期中处理
123- immediate: true ,
124- handler (val ) {
125- this .maxlength = Number (val);
126- }
127- },
122+ // maxlength: {
123+ // // 此值设置为true,会在组件加载后无需maxlength变化就会执行一次本监听函数,无需再created生命周期中处理
124+ // immediate: true,
125+ // handler(val) {
126+ // this.maxlength = Number(val);
127+ // }
128+ // },
128129 value: {
129130 immediate: true ,
130131 handler (val ) {
You can’t perform that action at this time.
0 commit comments