Skip to content

Commit 730c722

Browse files
authored
chore: 升级版本0.9.10
Develop
2 parents 338afbc + b8decfe commit 730c722

File tree

13 files changed

+45
-70
lines changed

13 files changed

+45
-70
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 TaleLin
3+
Copyright (c) 2022 TaleLin
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

dist/capsule-bar/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
<cover-view mut-bind:tap="onTapRightButton" catch:longpress="onLongPressRightButton" hover-class="icon-wrapper-hover-{{capsuleColor}}" class="icon-wrapper" style="width: {{capsuleButtonInfo.width/2}}px;height: {{capsuleButtonInfo.height}}px;">
28-
<cover-image class="icon-right" style="width{{capsuleRightIconWidth?capsuleRightIconWidth+'rpx':''}};height:{{capsuleRightIconHeight?capsuleRightIconHeight+'rpx':''}}" src="{{capsuleRightIconPath?capsuleRightIconPath:'icons/capsule-right-'+capsuleColor+'.png'}}"></cover-image>
28+
<cover-image class="icon-right" style="width:{{capsuleRightIconWidth?capsuleRightIconWidth+'rpx':''}};height:{{capsuleRightIconHeight?capsuleRightIconHeight+'rpx':''}}" src="{{capsuleRightIconPath?capsuleRightIconPath:'icons/capsule-right-'+capsuleColor+'.png'}}"></cover-image>
2929
</cover-view>
3030
</cover-view>
3131
</cover-view>

dist/counter/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/capsule-bar/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
style="width: {{capsuleButtonInfo.width/2}}px;height: {{capsuleButtonInfo.height}}px;">
4949
<cover-image
5050
class="icon-right"
51-
style="width{{capsuleRightIconWidth?capsuleRightIconWidth+'rpx':''}};height:{{capsuleRightIconHeight?capsuleRightIconHeight+'rpx':''}}"
51+
style="width:{{capsuleRightIconWidth?capsuleRightIconWidth+'rpx':''}};height:{{capsuleRightIconHeight?capsuleRightIconHeight+'rpx':''}}"
5252
src="{{capsuleRightIconPath?capsuleRightIconPath:'icons/capsule-right-'+capsuleColor+'.png'}}"></cover-image>
5353
</cover-view>
5454
</cover-view>

examples/dist/counter/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ Component({
2424
type: Number,
2525
value: 1
2626
},
27+
roundFloat: {
28+
type: Boolean,
29+
value: false
30+
},
2731
disabled: Boolean,
2832
iconSize: String,
2933
iconColor: String
@@ -62,6 +66,7 @@ Component({
6266
let {
6367
value
6468
} = e.detail;
69+
// setTimeout留出修改count的时间,保证调整一些不合适的数值
6570
setTimeout(() => {
6671
this.blurCount(Number(value), () => {
6772
eventUtil.emit(this, 'lintap', { count: this.data.count, type: 'blur' });
@@ -91,6 +96,10 @@ Component({
9196
value = value > max ? max : value;
9297
value = value < min ? min : value;
9398

99+
// 4舍5入
100+
if (this.data.roundFloat) {
101+
value = Math.round(value);
102+
}
94103
// 更新页面显示数值
95104
value === this.data.count && this.setData({ focus: false });
96105
value !== this.data.count && this.setData({ count: value }, () => {
@@ -114,6 +123,9 @@ Component({
114123
} else if (type === 'reduce') {
115124
result = count - step < min ? min : count - step;
116125
}
126+
// 浮点数运算会有精确度问题,保留两位小数
127+
result = result.toFixed(2);
128+
result = parseFloat(result);
117129

118130
this.setData({ count: result });
119131
eventUtil.emit(this, 'lintap', {

examples/pages/components/layout/pages/album/index.js

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -34,54 +34,5 @@ Page({
3434
this.setData({
3535
urls1_1:['https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-3.jpg?sign=d71bb290f896e14bb800d0fb807f6764&t=1590025427']
3636
});
37-
},
38-
39-
/**
40-
* 生命周期函数--监听页面初次渲染完成
41-
*/
42-
onReady: function () {
43-
44-
},
45-
46-
/**
47-
* 生命周期函数--监听页面显示
48-
*/
49-
onShow: function () {
50-
51-
},
52-
53-
/**
54-
* 生命周期函数--监听页面隐藏
55-
*/
56-
onHide: function () {
57-
58-
},
59-
60-
/**
61-
* 生命周期函数--监听页面卸载
62-
*/
63-
onUnload: function () {
64-
65-
},
66-
67-
/**
68-
* 页面相关事件处理函数--监听用户下拉动作
69-
*/
70-
onPullDownRefresh: function () {
71-
72-
},
73-
74-
/**
75-
* 页面上拉触底事件的处理函数
76-
*/
77-
onReachBottom: function () {
78-
79-
},
80-
81-
/**
82-
* 用户点击右上角分享
83-
*/
84-
onShareAppMessage: function () {
85-
8637
}
8738
});

examples/pages/components/layout/pages/card/index.wxml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<view class="content-name">卡片类型(primary)</view>
66
</view>
77

8-
<l-card type="primary" l-class="card" image="https://timgsa.baidu.com/timg?image&quality=80&size=b10000_10000&sec=1549701108&di=d141540da70a7f92abd6f90ffef7460c&src=http://ztd00.photos.bdimg.com/ztd/w=700;q=50/sign=0b1f180b5a43fbf2c52ca4238045bbbd/b7fd5266d0160924665b9f18dd0735fae6cd34b2.jpg"
8+
<l-card type="primary" l-class="card" image="https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-7.jpg?sign=a09608b13d13402e657a8a37118f3190&t=1590025970"
99
title="新疆精选苹果">
1010
<view class="content">
1111
新疆苹果,又名塞威氏苹果,蔷微科,落叶乔木。原产新疆西部天山北山麓,主要集中分布于伊犁河谷果子沟,新源县境内的那拉提野果林,巩留的莫合林场,垂直分布区域海拔在1000~1300m的山顶、山坡、河谷区域。
@@ -17,7 +17,7 @@
1717
<view class="content-name">卡片类型(cover)</view>
1818
</view>
1919

20-
<l-card type="cover" l-class="card" image="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1549736747027&di=8e75e11a150193e0f8a555e107f921eb&imgtype=0&src=http%3A%2F%2Fwww.lanxu.net%2Fuploads%2Fallimg%2F20190201%2F201902010602093105.jpg"
20+
<l-card type="cover" l-class="card" image=https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-8.jpg?sign=a984d69b221dee6ce1da7f213c9593be&t=1590025977"
2121
title="年味儿的科技大升级">
2222
<view class="content">
2323
一部分人回乡,一部分人把父母接到了身边,还有一部分人,干脆把假期变成了真正属于自己的时间。总有- -些科技,升级了生活方式,延展了过年形式的体验,还有一些欲...
@@ -29,8 +29,8 @@
2929
<view class="content-name">卡片类型(avatar)</view>
3030
</view>
3131

32-
<l-card type="avatar" l-class="card" image="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1549711852726&di=6b454cec0b57f62d46089487454fa56f&imgtype=0&src=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fitem%2F201609%2F14%2F20160914062816_SC8KU.jpeg"
33-
title="七月在夏天" describe="18个小时前">
32+
<l-card type="avatar" l-class="card" image="https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/avatar.jpg?sign=21809a2654e7a6fdd438166e83a35484&t=1590025376"
33+
title="林间有风" describe="18个小时前">
3434
<view class="avter-content">
3535
很简单,豆瓣现在这样就给大家指了一条明路:以后凡是这种国产的风口浪尖的的片子,会涉及到各方背后利益关系的片子...
3636
</view>
@@ -52,14 +52,14 @@
5252
<view class="content-name">图片位置</view>
5353
</view>
5454

55-
<l-card type="primary" l-class="card" l-img-class="right-card" position="right" image="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1549711458710&di=e4af10c03585ed60f2b51bc61393cef8&imgtype=0&src=http%3A%2F%2Fimg0.pconline.com.cn%2Fpconline%2Fbizi%2Fdesktop%2F1410%2FA2_1.jpg"
55+
<l-card type="primary" l-class="card" l-img-class="right-card" position="right" image="https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-9.jpg?sign=d63aa68ca5c4e65598c781cac161981c&t=1590026002"
5656
title="做一个热爱生活的人!">
5757
<view class="content">
5858
很简单,豆瓣现在这样就给大家指了一条明路:以后凡是这种国产的风口浪尖的的片子...
5959
</view>
6060
</l-card>
6161

62-
<l-card type="primary" l-class="card" l-img-class="right-card" image="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1549711458710&di=e4af10c03585ed60f2b51bc61393cef8&imgtype=0&src=http%3A%2F%2Fimg0.pconline.com.cn%2Fpconline%2Fbizi%2Fdesktop%2F1410%2FA2_1.jpg"
62+
<l-card type="primary" l-class="card" l-img-class="right-card" image="https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-8.jpg?sign=a984d69b221dee6ce1da7f213c9593be&t=1590025977"
6363
title="做一个热爱生活的人!">
6464
<view class="content">
6565
很简单,豆瓣现在这样就给大家指了一条明路:以后凡是这种国产的风口浪尖的的片子...
@@ -82,7 +82,7 @@
8282
<view class="content-name">通栏卡片</view>
8383
</view>
8484

85-
<l-card type="primary" full l-class="card" l-img-class="right-card" image="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1549721538811&di=cf9f89bac33be78e9c1eacfad00c4c2d&imgtype=0&src=http%3A%2F%2Fp2.gexing.com%2FG1%2FM00%2F07%2F4B%2FrBACFFNu-XPgEVX7AAG69r794d8992.jpg"
85+
<l-card type="primary" full l-class="card" l-img-class="right-card" image="https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-6.jpg?sign=6ba5b48f6766201a5458725defff47c7&t=1590025956"
8686
title="做一个热爱生活的人!">
8787
<view class="content">
8888
大雄要死掉了,他对妻子说:我死之后你找一个男人我就在地下打一一个滚。说完就咽气了。某天...

examples/pages/components/layout/pages/water-flow/data.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
const product = [{
2-
image: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559893694567&di=decd597a4206cdc46ff1c58f93d54a4e&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2F49453126d099fdb7ae6489e01449281c004af3761e10e-tvDbXH_fw658',
2+
image: 'https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-7.jpg?sign=a09608b13d13402e657a8a37118f3190&t=1590025970',
33
title: '显瘦中长款系带风衣',
44
describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。',
55
count: '888',
66
delCount: '666'
77
},
88
{
9-
image: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559893694566&di=9a26e26b870f520a931c93a817879427&imgtype=0&src=http%3A%2F%2Fpic.rmb.bdstatic.com%2F11a8881842e35c7ff188fbf13f220d5f.jpeg',
9+
image: 'https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-5.jpg?sign=785abbd12c4fa70454ef4bd7c3961536&t=1590025441',
1010
title: '酵素洗纯棉四件套',
1111
describe: '100%新疆精梳棉,柔软、厚实、光泽度好,颜色高级,2色可选颜色高级,2色可选,高级,2色可选',
1212
count: '459',
1313
delCount: '359'
1414
},
1515
{
16-
image: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559893993143&di=69804e9c197aeef57f69965980d804be&imgtype=0&src=http%3A%2F%2Fimg4.duitang.com%2Fuploads%2Fblog%2F201311%2F21%2F20131121101949_8iPmK.jpeg',
16+
image: 'https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-4.jpg?sign=37d3fc32fe841a137e56b54cec2807c8&t=1590025434',
1717
title: '环保棉做的男女款衬衫',
1818
describe: '环保的高级长绒精梳棉,亲肤透气,安全无刺激,版型时髦有型,多款多色可选,环保的高级长绒精梳棉,亲肤透气,安全无刺激',
1919
count: '888',
2020
delCount: '666'
2121
},
2222
{
23-
image: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559893795164&di=bbaa2db719d648f652058efb157735eb&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2F2cf875136ae0f6f9babe8fffff24730c00e27c6850d50-8AgKsJ_fw658',
23+
image: 'https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-6.jpg?sign=6ba5b48f6766201a5458725defff47c7&t=1590025956',
2424
title: '自带线的快充移动电源',
2525
describe: '自带两条快充线,支持大部分快充设备充电,还能充笔记本电脑,有微电流模式,电脑,有微电流模式',
2626
count: '888',
2727
delCount: '666'
2828
},
2929
{
30-
image: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559895182707&di=afd7d89ebcb21e0dd2f0517336ce8d25&imgtype=0&src=http%3A%2F%2Fimg2.ph.126.net%2FZIrNMh3jc-oib-qFmdyYUQ%3D%3D%2F5717519838063213749.jpg',
30+
image: 'https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-2.jpg?sign=7ccd10f793df154311f15a7b15d9ba57&t=1590025418',
3131
title: '显瘦中长款系带风衣',
3232
describe: '柔软顺滑、上身挺括显瘦,垂坠飘逸、不易皱好打理。不易皱好打理。',
3333
count: '888',
3434
delCount: '666'
3535
},
3636
{
37-
image: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559895137091&di=c7db1a52ecbe3886bf79b39e3da162a4&imgtype=0&src=http%3A%2F%2Fphotocdn.sohu.com%2F20160204%2FImg436843528.jpg',
37+
image: 'https://656e-env-9eb476-1258886794.tcb.qcloud.la/images/album/photo-5.jpg?sign=785abbd12c4fa70454ef4bd7c3961536&t=1590025441',
3838
title: '酵素洗纯棉四件套',
3939
describe: '100%新疆精梳棉,柔软、厚实、光泽度好,颜色高级,2色可选,100%新疆精梳棉,柔软、厚实、光泽度好,颜色高级,2色可选',
4040
count: '459',

examples/pages/filter/pages/classnames/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<view>1 在
66
<text class="code">wxml</text>文件中使用
77
<text class="code">wxs</text>:</view>
8-
<l-wemark md="```html\n<wxs src='../../../dist/filter/classnames.wxs' module='classnames'/>\n```" highlight="{{true}}" />
8+
<l-wemark md="```html\n<wxs src='../../../../dist/filter/classnames.wxs' module='classnames'/>\n```" highlight="{{true}}" />
99
<view>注意事项:</view>
1010
<view>1
1111
<text class="code">src</text>是相对路径</view>

examples/pages/filter/pages/zero-padding/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<view>1 在
77
<text class="code">wxml</text>文件中使用
88
<text class="code">wxs</text>:</view>
9-
<l-wemark md="```html\n<wxs src='../../../dist/filter/zero-padding.wxs' module='zeroPadding'/>\n```" highlight="{{true}}" />
9+
<l-wemark md="```html\n<wxs src='../../../../dist/filter/zero-padding.wxs' module='zeroPadding'/>\n```" highlight="{{true}}" />
1010
<view>注意事项:</view>
1111
<view>1
1212
<text class="code">src</text>是相对路径</view>

0 commit comments

Comments
 (0)