Skip to content

Commit fa8fb05

Browse files
committed
fix: style
1 parent 4c902be commit fa8fb05

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

miniprogram/packageComponent/pages/content/text/text.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@ Page({
2626
theme: 'light',
2727
text: '',
2828
canAdd: true,
29-
canRemove: false
29+
canRemove: false,
30+
extraLine: []
3031
},
3132
extraLine: [],
3233

3334
add() {
3435
this.extraLine.push(texts[this.extraLine.length % 12])
3536
this.setData({
3637
text: this.extraLine.join('\n'),
38+
// text: this.extraLine.join('
'),
3739
canAdd: this.extraLine.length < 12,
38-
canRemove: this.extraLine.length > 0
40+
canRemove: this.extraLine.length > 0,
41+
extraLine: this.extraLine
3942
})
4043
setTimeout(() => {
4144
this.setData({
@@ -50,6 +53,7 @@ Page({
5053
text: this.extraLine.join('\n'),
5154
canAdd: this.extraLine.length < 12,
5255
canRemove: this.extraLine.length > 0,
56+
extraLine: this.extraLine
5357
})
5458
}
5559
setTimeout(() => {

miniprogram/packageComponent/pages/content/text/text.wxml

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
<view class="page-body">
1010
<view class="page-section page-section-spacing">
1111
<view class="text-box" scroll-y="true" scroll-top="{{scrollTop}}">
12-
<text>{{text}}</text>
12+
<block wx:for="{{extraLine}}">
13+
<text>{{item}}</text>
14+
</block>
15+
<!-- <text>{{text}}</text> -->
1316
</view>
1417
<button disabled="{{!canAdd}}" bindtap="add">add line</button>
1518
<button disabled="{{!canRemove}}" bindtap="remove">remove line</button>

miniprogram/packageComponent/pages/view/swiper/swiper.wxml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
<view class="page-section page-section-spacing">
3939
<view class="page-section-title">
4040
<text>幻灯片切换时长(ms)</text>
41-
<text class="info">{{duration}}</text>
41+
<text class="swiper-info">{{duration}}</text>
4242
</view>
4343
<slider bindchange="durationChange" value="{{duration}}" min="500" max="2000"/>
4444
<view class="page-section-title">
4545
<text>自动播放间隔时长(ms)</text>
46-
<text class="info">{{interval}}</text>
46+
<text class="swiper-info">{{interval}}</text>
4747
</view>
4848
<slider bindchange="intervalChange" value="{{interval}}" min="2000" max="10000"/>
4949
</view>

miniprogram/packageComponent/pages/view/swiper/swiper.wxss

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ button:last-child{
1616
margin-top: 30px;
1717
position: relative;
1818
}
19-
.info{
19+
.swiper-info{
2020
position: absolute;
2121
right: 0;
2222
color: #353535;

miniprogram/packageComponent/pages/view/view/view.wxml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
<view class="page-body">
99
<view class="page-section">
1010
<view class="page-section-title">
11-
<text>flex-direction: row\n横向布局</text>
11+
<text>flex-direction: row</text>
12+
<text>横向布局</text>
1213
</view>
1314
<view class="page-section-spacing">
1415
<view class="flex-wrp" style="flex-direction:row;">
@@ -20,7 +21,8 @@
2021
</view>
2122
<view class="page-section">
2223
<view class="page-section-title">
23-
<text>flex-direction: column\n纵向布局</text>
24+
<text>flex-direction: column</text>
25+
<text>纵向布局</text>
2426
</view>
2527
<view class="flex-wrp" style="flex-direction:column;">
2628
<view class="flex-item flex-item-V demo-text-1">A</view>

project.private.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"libVersion": "2.30.2",
2+
"libVersion": "2.31.1",
33
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
44
"setting": {
55
"useIsolateContext": true,

0 commit comments

Comments
 (0)