@10yun/cv-mobile-ui 0.5.30 → 0.5.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -1
- package/ui-cv/components/cv-btn-base/cv-btn-base.vue +1 -1
- package/uview-plus/README.md +1 -1
- package/uview-plus/components/u-action-sheet/u-action-sheet.vue +8 -8
- package/uview-plus/components/u-album/u-album.vue +1 -1
- package/uview-plus/components/u-alert/u-alert.vue +5 -5
- package/uview-plus/components/u-app-update/u-app-update.vue +2 -2
- package/uview-plus/components/u-avatar/u-avatar.vue +2 -2
- package/uview-plus/components/u-avatar-group/u-avatar-group.vue +79 -3
- package/uview-plus/components/u-back-top/u-back-top.vue +4 -4
- package/uview-plus/components/u-badge/u-badge.vue +1 -1
- package/uview-plus/components/u-button/u-button.vue +8 -8
- package/uview-plus/components/u-button-wu/u-button-wu.vue +9 -9
- package/uview-plus/components/u-calendar/u-calendar.vue +5 -6
- package/uview-plus/components/u-car-keyboard/u-car-keyboard.vue +2 -2
- package/uview-plus/components/u-card/u-card.vue +139 -3
- package/uview-plus/components/u-cell/u-cell.vue +4 -4
- package/uview-plus/components/u-cell-group/u-cell-group.vue +2 -2
- package/uview-plus/components/u-checkbox/u-checkbox.vue +4 -4
- package/uview-plus/components/u-checkbox-group/u-checkbox-group.vue +1 -1
- package/uview-plus/components/u-code/u-code.vue +1 -1
- package/uview-plus/components/u-code-input/u-code-input.vue +1 -1
- package/uview-plus/components/u-col/u-col.vue +1 -1
- package/uview-plus/components/u-collapse/u-collapse.vue +2 -2
- package/uview-plus/components/u-collapse-item/u-collapse-item.vue +218 -3
- package/uview-plus/components/u-column-notice/u-column-notice.vue +3 -3
- package/uview-plus/components/u-copy/u-copy.vue +68 -1
- package/uview-plus/components/u-count-down/u-count-down.vue +1 -1
- package/uview-plus/components/u-count-to/u-count-to.vue +1 -1
- package/uview-plus/components/u-datetime-picker/u-datetime-picker.vue +3 -3
- package/uview-plus/components/u-divider/u-divider.vue +3 -3
- package/uview-plus/components/u-dropdown/u-dropdown.vue +3 -3
- package/uview-plus/components/u-dropdown-item/u-dropdown-item.vue +1 -1
- package/uview-plus/components/u-empty/u-empty.vue +3 -3
- package/uview-plus/components/u-form/u-form.vue +243 -1
- package/uview-plus/components/u-form-item/u-form-item.vue +4 -4
- package/uview-plus/components/u-gap/u-gap.vue +1 -1
- package/uview-plus/components/u-grid/u-grid.vue +1 -1
- package/uview-plus/components/u-grid-item/u-grid-item.vue +1 -1
- package/uview-plus/components/u-icon/u-icon.vue +1 -1
- package/uview-plus/components/u-icon/u-icon2.vue +1 -1
- package/uview-plus/components/u-image/u-image.vue +5 -5
- package/uview-plus/components/u-image-wu/u-image-wu.vue +5 -5
- package/uview-plus/components/u-index-anchor/u-index-anchor.vue +1 -1
- package/uview-plus/components/u-index-list/u-index-list.vue +2 -2
- package/uview-plus/components/u-input/u-input.vue +4 -4
- package/uview-plus/components/u-keyboard/u-keyboard.vue +6 -6
- package/uview-plus/components/u-lazy-load/u-lazy-load.vue +257 -3
- package/uview-plus/components/u-line/u-line.vue +1 -1
- package/uview-plus/components/u-line-progress/u-line-progress.vue +1 -1
- package/uview-plus/components/u-link/u-link.vue +1 -1
- package/uview-plus/components/u-list/u-list.vue +1 -1
- package/uview-plus/components/u-list-item/u-list-item.vue +1 -1
- package/uview-plus/components/u-loading-icon/u-loading-icon.vue +191 -3
- package/uview-plus/components/u-loading-page/u-loading-page.vue +4 -4
- package/uview-plus/components/u-loadmore/u-loadmore.vue +4 -4
- package/uview-plus/components/u-mask/u-mask.vue +120 -113
- package/uview-plus/components/u-message-input/u-message-input.vue +1 -1
- package/uview-plus/components/u-modal/u-modal.vue +6 -6
- package/uview-plus/components/u-navbar/u-navbar.vue +4 -4
- package/uview-plus/components/u-navbar-mini/u-navbar-mini.vue +2 -2
- package/uview-plus/components/u-navbar-wu/u-navbar-wu.vue +4 -4
- package/uview-plus/components/u-no-network/u-no-network.vue +5 -5
- package/uview-plus/components/u-notice-bar/u-notice-bar.vue +5 -5
- package/uview-plus/components/u-notify/u-notify.vue +6 -6
- package/uview-plus/components/u-number-box/u-number-box.vue +9 -3
- package/uview-plus/components/u-number-keyboard/u-number-keyboard.vue +1 -1
- package/uview-plus/components/u-overlay/u-overlay.vue +3 -3
- package/uview-plus/components/u-picker/u-picker.vue +5 -5
- package/uview-plus/components/u-popup/u-popup.vue +8 -8
- package/uview-plus/components/u-popup-wu/u-popup-wu.vue +7 -7
- package/uview-plus/components/u-qrcode/u-qrcode.vue +275 -3
- package/uview-plus/components/u-radio/u-radio.vue +4 -4
- package/uview-plus/components/u-radio-group/u-radio-group.vue +1 -1
- package/uview-plus/components/u-rate/u-rate.vue +5 -5
- package/uview-plus/components/u-read-more/u-read-more.vue +126 -3
- package/uview-plus/components/u-row/u-row.vue +1 -1
- package/uview-plus/components/u-row-notice/u-row-notice.vue +3 -3
- package/uview-plus/components/u-safe-bottom/u-safe-bottom.vue +48 -3
- package/uview-plus/components/u-search/u-search.vue +4 -4
- package/uview-plus/components/u-select/u-select.vue +175 -3
- package/uview-plus/components/u-skeleton/u-skeleton.vue +3 -3
- package/uview-plus/components/u-sku-wu/u-sku-wu.vue +4 -4
- package/uview-plus/components/u-status-bar/u-status-bar.vue +1 -1
- package/uview-plus/components/u-steps/u-steps.vue +1 -1
- package/uview-plus/components/u-steps-item/u-steps-item.vue +7 -7
- package/uview-plus/components/u-sticky/u-sticky.vue +1 -1
- package/uview-plus/components/u-subsection/u-subsection.vue +1 -1
- package/uview-plus/components/u-swipe-action/u-swipe-action.vue +1 -1
- package/uview-plus/components/u-swipe-action-item/u-swipe-action-item.vue +3 -3
- package/uview-plus/components/u-swiper/u-swiper.vue +1 -1
- package/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue +1 -1
- package/uview-plus/components/u-switch/u-switch.vue +2 -2
- package/uview-plus/components/u-tabbar/u-tabbar.vue +2 -2
- package/uview-plus/components/u-tabbar-item/u-tabbar-item.vue +9 -4
- package/uview-plus/components/u-table/u-table.vue +1 -1
- package/uview-plus/components/u-tabs/u-tabs.vue +3 -3
- package/uview-plus/components/u-tag/u-tag.vue +5 -5
- package/uview-plus/components/u-text/u-text.vue +159 -3
- package/uview-plus/components/u-toast/u-toast.vue +8 -8
- package/uview-plus/components/u-tooltip/u-tooltip.vue +6 -6
- package/uview-plus/components/u-upload/u-upload.vue +10 -10
- package/uview-plus/components/u-waterfall/u-waterfall.vue +221 -3
- package/uview-plus/index.js +4 -2
- package/uview-plus/libs/ctocode/image.js +17 -0
- package/uview-plus/libs/ctocode/index.js +150 -0
- package/uview-plus/libs/ctocode/map.js +38 -0
- package/uview-plus/libs/function/index-wu.js +6 -34
- package/uview-plus/package.json +3 -3
- package/uview-plus/readme-wu.md +1 -1
- package/uview-plus/libs/function/cc.js +0 -66
|
@@ -1,3 +1,139 @@
|
|
|
1
|
-
<template>
|
|
2
1
|
<view
|
|
3
2
|
class="u-card"
|
|
4
3
|
@tap.stop="click"
|
|
5
4
|
:class="{ 'u-border': border, 'u-card-full': full, 'u-card--border': getPx(borderRadius) > 0 }"
|
|
6
5
|
:style="{
|
|
7
6
|
borderRadius: addUnit(borderRadius),
|
|
8
7
|
margin: margin,
|
|
9
8
|
boxShadow: boxShadow
|
|
10
9
|
}"
|
|
11
10
|
>
|
|
12
11
|
<view
|
|
13
12
|
v-if="showHead"
|
|
14
13
|
class="u-card__head"
|
|
15
14
|
:style="[{ padding: addUnit(paddingHead || padding) }, headStyle]"
|
|
16
15
|
:class="{
|
|
17
16
|
'u-border-bottom': headBorderBottom
|
|
18
17
|
}"
|
|
19
18
|
@tap="headClick"
|
|
20
19
|
>
|
|
21
20
|
<view v-if="!$slots.head" class="u-flex u-flex-between">
|
|
22
21
|
<view class="u-card__head--left u-flex u-line-1" v-if="title">
|
|
23
22
|
<image
|
|
24
23
|
:src="thumb"
|
|
25
24
|
class="u-card__head--left__thumb"
|
|
26
25
|
mode="aspectFill"
|
|
27
26
|
v-if="thumb"
|
|
28
27
|
:style="{
|
|
29
28
|
height: addUnit(thumbWidth),
|
|
30
29
|
width: addUnit(thumbWidth),
|
|
31
30
|
borderRadius: thumbCircle ? '50px' : '4px'
|
|
32
31
|
}"
|
|
33
32
|
></image>
|
|
34
33
|
<text
|
|
35
34
|
class="u-card__head--left__title u-line-1"
|
|
36
35
|
:style="{
|
|
37
36
|
fontSize: addUnit(titleSize),
|
|
38
37
|
color: titleColor
|
|
39
38
|
}"
|
|
40
39
|
>
|
|
41
40
|
{{ title }}
|
|
42
41
|
</text>
|
|
43
42
|
</view>
|
|
44
43
|
<view class="u-card__head--right u-line-1" v-if="subTitle">
|
|
45
44
|
<text
|
|
46
45
|
class="u-card__head__title__text"
|
|
47
46
|
:style="{
|
|
48
47
|
fontSize: addUnit(subTitleSize),
|
|
49
48
|
color: subTitleColor
|
|
50
49
|
}"
|
|
51
50
|
>
|
|
52
51
|
{{ subTitle }}
|
|
53
52
|
</text>
|
|
54
53
|
</view>
|
|
55
54
|
</view>
|
|
56
55
|
<slot name="head" v-else />
|
|
57
56
|
</view>
|
|
58
57
|
<view @tap="bodyClick" class="u-card__body" :style="[{ padding: addUnit(paddingBody || padding) }, bodyStyle]">
|
|
59
58
|
<slot name="body" />
|
|
60
59
|
</view>
|
|
61
60
|
<view
|
|
62
61
|
v-if="showFoot"
|
|
63
62
|
class="u-card__foot"
|
|
64
63
|
@tap="footClick"
|
|
65
64
|
:style="[{ padding: $slots.foot ? addUnit(paddingFoot || padding) : 0 }, footStyle]"
|
|
66
65
|
:class="{
|
|
67
66
|
'u-border-top': footBorderTop
|
|
68
67
|
}"
|
|
69
68
|
>
|
|
70
69
|
<slot name="foot" />
|
|
71
70
|
</view>
|
|
72
71
|
</view>
|
|
73
72
|
* card 卡片
|
|
74
73
|
* @description 卡片组件一般用于多个列表条目,且风格统一的场景
|
|
75
74
|
* @tutorial https://uview-plus.jiangruyi.com/components/card.html
|
|
76
75
|
* @property {Boolean} full 卡片与屏幕两侧是否留空隙(默认false)
|
|
77
76
|
* @property {String} title 头部左边的标题
|
|
78
77
|
* @property {String} title-color 标题颜色(默认#303133)
|
|
79
78
|
* @property {String | Number} title-size 标题字体大小,单位rpx(默认15px)
|
|
80
79
|
* @property {String} sub-title 头部右边的副标题
|
|
81
80
|
* @property {String} sub-title-color 副标题颜色(默认#909399)
|
|
82
81
|
* @property {String | Number} sub-title-size 副标题字体大小(默认13px
|
|
83
82
|
* @property {Boolean} border 是否显示边框(默认true)
|
|
84
83
|
* @property {String | Number} index 用于标识点击了第几个卡片
|
|
85
84
|
* @property {String} box-shadow 卡片外围阴影,字符串形式(默认none)
|
|
86
85
|
* @property {String} margin 卡片与屏幕两边和上下元素的间距,需带单位,如"30px 20px"(默认15px)
|
|
87
86
|
* @property {String | Number} border-radius 卡片整体的圆角值,单位rpx(默认8px)
|
|
88
87
|
* @property {Object} head-style 头部自定义样式,对象形式
|
|
89
88
|
* @property {Object} body-style 中部自定义样式,对象形式
|
|
90
89
|
* @property {Object} foot-style 底部自定义样式,对象形式
|
|
91
90
|
* @property {Boolean} head-border-bottom 是否显示头部的下边框(默认true)
|
|
92
91
|
* @property {Boolean} foot-border-top 是否显示底部的上边框(默认true)
|
|
93
92
|
* @property {Boolean} show-head 是否显示头部(默认true)
|
|
94
93
|
* @property {Boolean} show-foot 是否显示尾部(默认true)
|
|
95
94
|
* @property {String} thumb 缩略图路径,如设置将显示在标题的左边,不建议使用相对路径
|
|
96
95
|
* @property {String | Number} thumb-width 缩略图的宽度,高等于宽,单位px(默认30px)
|
|
97
96
|
* @property {Boolean} thumb-circle 缩略图是否为圆形(默认false)
|
|
98
97
|
* @event {Function} click 整个卡片任意位置被点击时触发
|
|
99
98
|
* @event {Function} head-click 卡片头部被点击时触发
|
|
100
99
|
* @event {Function} body-click 卡片主体部分被点击时触发
|
|
101
100
|
* @event {Function} foot-click 卡片底部部分被点击时触发
|
|
102
101
|
* @example <u-card paddingFoot="2px 15px" title="card"></u-card>
|
|
103
102
|
*/
|
|
104
103
|
name: 'up-card',
|
|
105
104
|
data() {
|
|
106
105
|
return {};
|
|
107
106
|
},
|
|
108
107
|
mixins: [mpMixin, mixin, propsCard],
|
|
109
108
|
emits: ['click', 'head-click', 'body-click', 'foot-click'],
|
|
110
109
|
methods: {
|
|
111
110
|
addStyle,
|
|
112
111
|
addUnit,
|
|
113
112
|
getPx,
|
|
114
113
|
click() {
|
|
115
114
|
this.$emit('click', this.index);
|
|
116
115
|
},
|
|
117
116
|
headClick() {
|
|
118
117
|
this.$emit('head-click', this.index);
|
|
119
118
|
},
|
|
120
119
|
bodyClick() {
|
|
121
120
|
this.$emit('body-click', this.index);
|
|
122
121
|
},
|
|
123
122
|
footClick() {
|
|
124
123
|
this.$emit('foot-click', this.index);
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
<template>
|
|
127
|
+
<view
|
|
128
|
+
class="u-card"
|
|
129
|
+
@tap.stop="click"
|
|
130
|
+
:class="{ 'u-border': border, 'u-card-full': full, 'u-card--border': getPx(borderRadius) > 0 }"
|
|
131
|
+
:style="{
|
|
132
|
+
borderRadius: addUnit(borderRadius),
|
|
133
|
+
margin: margin,
|
|
134
|
+
boxShadow: boxShadow
|
|
135
|
+
}"
|
|
136
|
+
>
|
|
137
|
+
<view
|
|
138
|
+
v-if="showHead"
|
|
139
|
+
class="u-card__head"
|
|
140
|
+
:style="[{ padding: addUnit(paddingHead || padding) }, headStyle]"
|
|
141
|
+
:class="{
|
|
142
|
+
'u-border-bottom': headBorderBottom
|
|
143
|
+
}"
|
|
144
|
+
@tap="headClick"
|
|
145
|
+
>
|
|
146
|
+
<view v-if="!$slots.head" class="u-flex u-flex-between">
|
|
147
|
+
<view class="u-card__head--left u-flex u-line-1" v-if="title">
|
|
148
|
+
<image
|
|
149
|
+
:src="thumb"
|
|
150
|
+
class="u-card__head--left__thumb"
|
|
151
|
+
mode="aspectFill"
|
|
152
|
+
v-if="thumb"
|
|
153
|
+
:style="{
|
|
154
|
+
height: addUnit(thumbWidth),
|
|
155
|
+
width: addUnit(thumbWidth),
|
|
156
|
+
borderRadius: thumbCircle ? '50px' : '4px'
|
|
157
|
+
}"
|
|
158
|
+
></image>
|
|
159
|
+
<text
|
|
160
|
+
class="u-card__head--left__title u-line-1"
|
|
161
|
+
:style="{
|
|
162
|
+
fontSize: addUnit(titleSize),
|
|
163
|
+
color: titleColor
|
|
164
|
+
}"
|
|
165
|
+
>
|
|
166
|
+
{{ title }}
|
|
167
|
+
</text>
|
|
168
|
+
</view>
|
|
169
|
+
<view class="u-card__head--right u-line-1" v-if="subTitle">
|
|
170
|
+
<text
|
|
171
|
+
class="u-card__head__title__text"
|
|
172
|
+
:style="{
|
|
173
|
+
fontSize: addUnit(subTitleSize),
|
|
174
|
+
color: subTitleColor
|
|
175
|
+
}"
|
|
176
|
+
>
|
|
177
|
+
{{ subTitle }}
|
|
178
|
+
</text>
|
|
179
|
+
</view>
|
|
180
|
+
</view>
|
|
181
|
+
<slot name="head" v-else />
|
|
182
|
+
</view>
|
|
183
|
+
<view @tap="bodyClick" class="u-card__body" :style="[{ padding: addUnit(paddingBody || padding) }, bodyStyle]">
|
|
184
|
+
<slot name="body" />
|
|
185
|
+
</view>
|
|
186
|
+
<view
|
|
187
|
+
v-if="showFoot"
|
|
188
|
+
class="u-card__foot"
|
|
189
|
+
@tap="footClick"
|
|
190
|
+
:style="[{ padding: $slots.foot ? addUnit(paddingFoot || padding) : 0 }, footStyle]"
|
|
191
|
+
:class="{
|
|
192
|
+
'u-border-top': footBorderTop
|
|
193
|
+
}"
|
|
194
|
+
>
|
|
195
|
+
<slot name="foot" />
|
|
196
|
+
</view>
|
|
197
|
+
</view>
|
|
198
|
+
</template>
|
|
199
|
+
<script>
|
|
200
|
+
import { propsCard } from './props';
|
|
201
|
+
import { mpMixin } from '../../libs/mixin/mpMixin';
|
|
202
|
+
import { mixin } from '../../libs/mixin/mixin';
|
|
203
|
+
import { addStyle, addUnit, getPx } from '../../libs/function/index';
|
|
204
|
+
/**
|
|
205
|
+
* card 卡片
|
|
206
|
+
* @description 卡片组件一般用于多个列表条目,且风格统一的场景
|
|
207
|
+
* @tutorial https://uview-plus.jiangruyi.com/components/card.html
|
|
208
|
+
* @property {Boolean} full 卡片与屏幕两侧是否留空隙(默认false)
|
|
209
|
+
* @property {String} title 头部左边的标题
|
|
210
|
+
* @property {String} title-color 标题颜色(默认#303133)
|
|
211
|
+
* @property {String | Number} title-size 标题字体大小,单位rpx(默认15px)
|
|
212
|
+
* @property {String} sub-title 头部右边的副标题
|
|
213
|
+
* @property {String} sub-title-color 副标题颜色(默认#909399)
|
|
214
|
+
* @property {String | Number} sub-title-size 副标题字体大小(默认13px
|
|
215
|
+
* @property {Boolean} border 是否显示边框(默认true)
|
|
216
|
+
* @property {String | Number} index 用于标识点击了第几个卡片
|
|
217
|
+
* @property {String} box-shadow 卡片外围阴影,字符串形式(默认none)
|
|
218
|
+
* @property {String} margin 卡片与屏幕两边和上下元素的间距,需带单位,如"30px 20px"(默认15px)
|
|
219
|
+
* @property {String | Number} border-radius 卡片整体的圆角值,单位rpx(默认8px)
|
|
220
|
+
* @property {Object} head-style 头部自定义样式,对象形式
|
|
221
|
+
* @property {Object} body-style 中部自定义样式,对象形式
|
|
222
|
+
* @property {Object} foot-style 底部自定义样式,对象形式
|
|
223
|
+
* @property {Boolean} head-border-bottom 是否显示头部的下边框(默认true)
|
|
224
|
+
* @property {Boolean} foot-border-top 是否显示底部的上边框(默认true)
|
|
225
|
+
* @property {Boolean} show-head 是否显示头部(默认true)
|
|
226
|
+
* @property {Boolean} show-foot 是否显示尾部(默认true)
|
|
227
|
+
* @property {String} thumb 缩略图路径,如设置将显示在标题的左边,不建议使用相对路径
|
|
228
|
+
* @property {String | Number} thumb-width 缩略图的宽度,高等于宽,单位px(默认30px)
|
|
229
|
+
* @property {Boolean} thumb-circle 缩略图是否为圆形(默认false)
|
|
230
|
+
* @event {Function} click 整个卡片任意位置被点击时触发
|
|
231
|
+
* @event {Function} head-click 卡片头部被点击时触发
|
|
232
|
+
* @event {Function} body-click 卡片主体部分被点击时触发
|
|
233
|
+
* @event {Function} foot-click 卡片底部部分被点击时触发
|
|
234
|
+
* @example <up-card paddingFoot="2px 15px" title="card"></up-card>
|
|
235
|
+
*/
|
|
236
|
+
export default {
|
|
237
|
+
name: 'up-card',
|
|
238
|
+
data() {
|
|
239
|
+
return {};
|
|
240
|
+
},
|
|
241
|
+
mixins: [mpMixin, mixin, propsCard],
|
|
242
|
+
emits: ['click', 'head-click', 'body-click', 'foot-click'],
|
|
243
|
+
methods: {
|
|
244
|
+
addStyle,
|
|
245
|
+
addUnit,
|
|
246
|
+
getPx,
|
|
247
|
+
click() {
|
|
248
|
+
this.$emit('click', this.index);
|
|
249
|
+
},
|
|
250
|
+
headClick() {
|
|
251
|
+
this.$emit('head-click', this.index);
|
|
252
|
+
},
|
|
253
|
+
bodyClick() {
|
|
254
|
+
this.$emit('body-click', this.index);
|
|
255
|
+
},
|
|
256
|
+
footClick() {
|
|
257
|
+
this.$emit('foot-click', this.index);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
</script>
|
|
262
|
+
<style scoped>
|
|
263
|
+
@import './style.css';
|
|
264
|
+
</style>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<view class="u-cell__body__content">
|
|
12
12
|
<view class="u-cell__left-icon-wrap" v-if="$slots.icon || icon">
|
|
13
13
|
<slot name="icon" v-if="$slots.icon"></slot>
|
|
14
|
-
<
|
|
14
|
+
<up-icon v-else :name="icon" :custom-style="iconStyle" :size="size === 'large' ? 22 : 18"></up-icon>
|
|
15
15
|
</view>
|
|
16
16
|
<view class="u-cell__title">
|
|
17
17
|
<!-- 将slot与默认内容用if/else分开主要是因为微信小程序不支持slot嵌套传递,这样才能解决collapse组件的slot不失效问题,label暂时未用到。 -->
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
v-if="$slots['right-icon'] || isLink"
|
|
54
54
|
:class="[`u-cell__right-icon-wrap--${arrowDirection}`]"
|
|
55
55
|
>
|
|
56
|
-
<
|
|
56
|
+
<up-icon
|
|
57
57
|
v-if="rightIcon && !$slots['right-icon']"
|
|
58
58
|
:name="rightIcon"
|
|
59
59
|
:custom-style="rightIconStyle"
|
|
60
60
|
:color="disabled ? '#c8c9cc' : 'info'"
|
|
61
61
|
:size="size === 'large' ? 18 : 16"
|
|
62
|
-
></
|
|
62
|
+
></up-icon>
|
|
63
63
|
<slot v-else name="right-icon"></slot>
|
|
64
64
|
</view>
|
|
65
65
|
<view class="u-cell__right-icon-wrap" v-if="$slots['righticon']" :class="[`u-cell__right-icon-wrap--${arrowDirection}`]">
|
|
66
66
|
<slot name="righticon"></slot>
|
|
67
67
|
</view>
|
|
68
68
|
</view>
|
|
69
|
-
<
|
|
69
|
+
<up-line v-if="border"></up-line>
|
|
70
70
|
</view>
|
|
71
71
|
</template>
|
|
72
72
|
<script>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</slot>
|
|
7
7
|
</view>
|
|
8
8
|
<view class="u-cell-group__wrapper">
|
|
9
|
-
<
|
|
9
|
+
<up-line v-if="border"></up-line>
|
|
10
10
|
<slot />
|
|
11
11
|
</view>
|
|
12
12
|
</view>
|
|
@@ -26,7 +26,7 @@ import { addStyle } from '../../libs/function/index';
|
|
|
26
26
|
* @property {Object} customStyle 定义需要用到的外部样式
|
|
27
27
|
*
|
|
28
28
|
* @event {Function} click 点击cell列表时触发
|
|
29
|
-
* @example <
|
|
29
|
+
* @example <up-cell-group title="设置喜好"></up-cell-group>
|
|
30
30
|
*/
|
|
31
31
|
export default {
|
|
32
32
|
name: 'u-cell-group',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
>
|
|
11
11
|
<view class="u-checkbox__icon-wrap cursor-pointer" @tap.stop="iconClickHandler" :class="iconClasses" :style="[iconWrapStyle]">
|
|
12
12
|
<slot name="icon" :elIconSize="elIconSize" :elIconColor="elIconColor">
|
|
13
|
-
<
|
|
13
|
+
<up-icon class="u-checkbox__icon-wrap__icon" name="checkbox-mark" :size="elIconSize" :color="elIconColor" />
|
|
14
14
|
</slot>
|
|
15
15
|
</view>
|
|
16
16
|
<view class="u-checkbox__label-wrap cursor-pointer" @tap.stop="labelClickHandler">
|
|
@@ -54,7 +54,7 @@ import test from '../../libs/function/test';
|
|
|
54
54
|
* @property {Object} customStyle 定义需要用到的外部样式
|
|
55
55
|
*
|
|
56
56
|
* @event {Function} change 任一个checkbox状态发生变化时触发,回调为一个对象
|
|
57
|
-
* @example <
|
|
57
|
+
* @example <up-checkbox v-model="checked" :disabled="false">天涯</up-checkbox>
|
|
58
58
|
*/
|
|
59
59
|
export default {
|
|
60
60
|
name: 'u-checkbox',
|
|
@@ -95,8 +95,8 @@ export default {
|
|
|
95
95
|
return this.labelDisabled !== ''
|
|
96
96
|
? this.labelDisabled
|
|
97
97
|
: this.parentData.labelDisabled !== null
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
? this.parentData.labelDisabled
|
|
99
|
+
: false;
|
|
100
100
|
},
|
|
101
101
|
// 组件尺寸,对应size的值,默认值为21px
|
|
102
102
|
elSize() {
|
|
@@ -28,7 +28,7 @@ import { mixin } from '../../libs/mixin/mixin';
|
|
|
28
28
|
* @property {Boolean} borderBottom placement为row时,是否显示下边框 (默认 false )
|
|
29
29
|
* @event {Function} change 任一个checkbox状态发生变化时触发,回调为一个对象
|
|
30
30
|
* @event {Function} input 修改通过v-model绑定的值时触发,回调为一个对象
|
|
31
|
-
* @example <
|
|
31
|
+
* @example <up-checkbox-group></up-checkbox-group>
|
|
32
32
|
*/
|
|
33
33
|
export default {
|
|
34
34
|
name: 'u-checkbox-group',
|
|
@@ -21,7 +21,7 @@ import { mixin } from '../../libs/mixin/mixin';
|
|
|
21
21
|
* @event {Function} change 倒计时期间,每秒触发一次
|
|
22
22
|
* @event {Function} start 开始倒计时触发
|
|
23
23
|
* @event {Function} end 结束倒计时触发
|
|
24
|
-
* @example <
|
|
24
|
+
* @example <up-code ref="uCode" @change="codeChange" seconds="20"></up-code>
|
|
25
25
|
*/
|
|
26
26
|
export default {
|
|
27
27
|
name: 'u-code',
|
|
@@ -71,7 +71,7 @@ import { addUnit, getPx } from '../../libs/function/index';
|
|
|
71
71
|
*
|
|
72
72
|
* @event {Function} change 输入内容发生改变时触发,具体见上方说明 value:当前输入的值
|
|
73
73
|
* @event {Function} finish 输入字符个数达maxlength值时触发,见上方说明 value:当前输入的值
|
|
74
|
-
* @example <
|
|
74
|
+
* @example <up-code-input v-model="value4" :focus="true"></up-code-input>
|
|
75
75
|
*/
|
|
76
76
|
export default {
|
|
77
77
|
name: 'u-code-input',
|
|
@@ -19,7 +19,7 @@ import { addStyle, addUnit, deepMerge, getPx } from '../../libs/function/index';
|
|
|
19
19
|
* @property {String} textAlign 文字水平对齐方式 (默认 'left' )
|
|
20
20
|
* @property {Object} customStyle 定义需要用到的外部样式
|
|
21
21
|
* @event {Function} click col被点击,会阻止事件冒泡到row
|
|
22
|
-
* @example <
|
|
22
|
+
* @example <up-col span="3" offset="3" > <view class="demo-layout bg-purple"></view> </up-col>
|
|
23
23
|
*/
|
|
24
24
|
export default {
|
|
25
25
|
name: 'u-col',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="u-collapse">
|
|
3
|
-
<
|
|
3
|
+
<up-line v-if="border"></up-line>
|
|
4
4
|
<slot />
|
|
5
5
|
</view>
|
|
6
6
|
</template>
|
|
@@ -16,7 +16,7 @@ import { mixin } from '../../libs/mixin/mixin';
|
|
|
16
16
|
* @property {Boolean} accordion 是否手风琴模式( 默认 false )
|
|
17
17
|
* @property {Boolean} border 是否显示外边框 ( 默认 true )
|
|
18
18
|
* @event {Function} change 当前激活面板展开时触发(如果是手风琴模式,参数activeNames类型为String,否则为Array)
|
|
19
|
-
* @example <
|
|
19
|
+
* @example <up-collapse></up-collapse>
|
|
20
20
|
*/
|
|
21
21
|
export default {
|
|
22
22
|
name: 'u-collapse',
|