Skip to content

Commit 839bc90

Browse files
committed
初始化:cli项目
1 parent 79dcd5d commit 839bc90

File tree

6 files changed

+15
-94
lines changed

6 files changed

+15
-94
lines changed

src/.editorconfig

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/template.h5.html

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/uview-ui/components/u-section/u-section.vue

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
</view>
1616
<view class="u-section__right-info" v-if="right" :style="{
1717
color: subColor
18-
}" @tap="rightClick">
18+
}" @tap="rightClick">
1919
{{subTitle}}
20-
<view class="u-section__right-info__icon-arrow u-flex">
20+
<view class="u-section__right-info__icon-arrow u-flex" v-if="arrow">
2121
<u-icon name="arrow-right" size="24" :color="subColor"></u-icon>
2222
</view>
2323
</view>
@@ -32,6 +32,7 @@
3232
* @property {String} title 左边主标题
3333
* @property {String} sub-title 右边副标题(默认更多)
3434
* @property {Boolean} right 是否显示右边的内容(默认true)
35+
* @property {Boolean} arrow 是否显示右边箭头(默认true)
3536
* @property {Boolean} showLine 是否显示左边的竖条(默认true)
3637
* @property {String Number} font-size 主标题的字体大小(默认28)
3738
* @property {Boolean} bold 主标题是否加粗(默认true)
@@ -85,7 +86,12 @@
8586
lineColor: {
8687
type: String,
8788
default: ''
88-
}
89+
},
90+
// 是否显示右边箭头
91+
arrow: {
92+
type: Boolean,
93+
default: true
94+
},
8995
},
9096
computed: {
9197
// 左边竖条的样式
@@ -108,35 +114,35 @@
108114

109115
<style lang="scss" scoped>
110116
@import "../../libs/css/style.components.scss";
111-
117+
112118
.u-section {
113119
display: flex;
114120
justify-content: space-between;
115121
align-items: center;
116122
width: 100%;
117-
123+
118124
&__title {
119125
position: relative;
120126
font-size: 28rpx;
121127
padding-left: 20rpx;
122128
display: flex;
123129
align-items: center;
124-
130+
125131
&__icon-wrap {
126132
position: absolute;
127133
}
128-
134+
129135
&__text {
130136
line-height: 1;
131137
}
132138
}
133-
139+
134140
&__right-info {
135141
color: $u-tips-color;
136142
font-size: 26rpx;
137143
display: flex;
138144
align-items: center;
139-
145+
140146
&__icon-arrow {
141147
margin-left: 6rpx;
142148
}

src/vue.config.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)