@10yun/cv-mobile-ui 0.4.1 → 0.4.3
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 +1 -1
- package/ui-cv/cv-form-item/cv-form-item.vue +1 -1
- package/ui-cv/cv-input-password/cv-input-password.vue +2 -2
- package/ui-uni/amap-wx/js/util.js +166 -158
- package/ui-uni/page-foot/page-foot.vue +38 -0
- package/ui-uni/page-head/page-head.vue +16 -0
- package/ui-uni/product.vue +52 -52
- package/ui-uni/u-charts/u-charts.js +743 -1092
- package/ui-uni/u-link/u-link.vue +59 -0
- package/ui-uni/uni-badge/uni-badge.vue +250 -0
- package/{ui-cv/cv-calendar → ui-uni/uni-calendar}/calendar.js +0 -0
- package/{ui-cv/cv-calendar → ui-uni/uni-calendar}/uni-calendar-item.vue +0 -0
- package/{ui-cv/cv-calendar → ui-uni/uni-calendar}/uni-calendar.vue +0 -0
- package/{ui-cv/cv-calendar → ui-uni/uni-calendar}/util.js +0 -0
- package/{ui-cv/cv-card → ui-uni/uni-card}/uni-card.vue +0 -0
- package/{ui-cv/cv-col → ui-uni/uni-col}/uni-col.vue +0 -0
- package/{ui-cv/cv-collapse → ui-uni/uni-collapse}/uni-collapse.vue +0 -0
- package/{ui-cv/cv-collapse-item → ui-uni/uni-collapse-item}/uni-collapse-item.vue +0 -0
- package/{ui-cv/cv-combox → ui-uni/uni-combox}/uni-combox.vue +0 -0
- package/{ui-cv/cv-countdown → ui-uni/uni-countdown}/uni-countdown.vue +0 -0
- package/{ui-cv/cv-data-checkbox → ui-uni/uni-data-checkbox}/uni-data-checkbox.vue +0 -0
- package/{ui-cv/cv-data-indexed-list → ui-uni/uni-data-indexed-list}/clientdb.js +0 -0
- package/{ui-cv/cv-data-indexed-list → ui-uni/uni-data-indexed-list}/uni-data-indexed-list-item.vue +0 -0
- package/{ui-cv/cv-data-indexed-list → ui-uni/uni-data-indexed-list}/uni-data-indexed-list.vue +0 -0
- package/{ui-cv/cv-data-picker → ui-uni/uni-data-picker}/keypress.js +0 -0
- package/{ui-cv/cv-data-picker → ui-uni/uni-data-picker}/uni-data-picker.vue +0 -0
- package/{ui-cv/cv-data-pickerview → ui-uni/uni-data-pickerview}/uni-data-picker.js +0 -0
- package/{ui-cv/cv-data-pickerview → ui-uni/uni-data-pickerview}/uni-data-pickerview.vue +0 -0
- package/{ui-cv/cv-dateformat → ui-uni/uni-dateformat}/date-format.js +0 -0
- package/{ui-cv/cv-dateformat → ui-uni/uni-dateformat}/uni-dateformat.vue +0 -0
- package/{ui-cv/cv-datetime-picker → ui-uni/uni-datetime-picker}/calendar-item.vue +0 -0
- package/{ui-cv/cv-datetime-picker → ui-uni/uni-datetime-picker}/calendar.js +0 -0
- package/{ui-cv/cv-datetime-picker → ui-uni/uni-datetime-picker}/calendar.vue +0 -0
- package/{ui-cv/cv-datetime-picker → ui-uni/uni-datetime-picker}/keypress.js +0 -0
- package/{ui-cv/cv-datetime-picker → ui-uni/uni-datetime-picker}/time-picker.vue +0 -0
- package/{ui-cv/cv-datetime-picker → ui-uni/uni-datetime-picker}/uni-datetime-picker.vue +0 -0
- package/{ui-cv/cv-datetime-picker → ui-uni/uni-datetime-picker}/util.js +0 -0
- package/ui-uni/uni-drawer/keypress.js +45 -0
- package/ui-uni/uni-drawer/uni-drawer.vue +178 -0
- package/{ui-cv/cv-easyinput → ui-uni/uni-easyinput}/common.js +0 -0
- package/{ui-cv/cv-easyinput → ui-uni/uni-easyinput}/uni-easyinput.vue +0 -0
- package/{ui-cv/cv-fab → ui-uni/uni-fab}/uni-fab.vue +0 -0
- package/{ui-cv/cv-fab → ui-uni/uni-fab}/uni-fab.vue.bak +0 -0
- package/{ui-cv/cv-fav → ui-uni/uni-fav}/uni-fav.vue +0 -0
- package/{ui-cv/cv-file-picker → ui-uni/uni-file-picker}/choose-and-upload-file.js +0 -0
- package/{ui-cv/cv-file-picker → ui-uni/uni-file-picker}/uni-file-picker.vue +0 -0
- package/{ui-cv/cv-file-picker → ui-uni/uni-file-picker}/upload-file.vue +0 -0
- package/{ui-cv/cv-file-picker → ui-uni/uni-file-picker}/upload-image.vue +0 -0
- package/{ui-cv/cv-file-picker → ui-uni/uni-file-picker}/utils.js +0 -0
- package/ui-uni/uni-forms/uni-forms.vue +467 -0
- package/ui-uni/uni-forms/validate.js +486 -0
- package/ui-uni/uni-forms-item/uni-forms-item.vue +500 -0
- package/{ui-cv/cv-goods-nav → ui-uni/uni-goods-nav}/uni-goods-nav.vue +0 -0
- package/ui-uni/uni-grid/uni-grid.vue +141 -0
- package/ui-uni/uni-grid-item/uni-grid-item.vue +123 -0
- package/ui-uni/uni-group/uni-group.vue +123 -0
- package/ui-uni/uni-icons/icons.js +132 -0
- package/ui-uni/uni-icons/uni-icons.vue +72 -0
- package/{ui-cv/cv-icons2 → ui-uni/uni-icons}/uni.ttf +0 -0
- package/{ui-cv/cv-indexed-list → ui-uni/uni-indexed-list}/uni-indexed-list-item.vue +0 -0
- package/{ui-cv/cv-indexed-list → ui-uni/uni-indexed-list}/uni-indexed-list.vue +0 -0
- package/ui-uni/uni-link/uni-link.vue +117 -0
- package/{ui-cv/cv-list → ui-uni/uni-list}/uni-list.vue +0 -0
- package/{ui-cv/cv-list → ui-uni/uni-list}/uni-refresh.vue +0 -0
- package/{ui-cv/cv-list → ui-uni/uni-list}/uni-refresh.wxs +0 -0
- package/{ui-cv/cv-list-ad → ui-uni/uni-list-ad}/uni-list-ad.vue +0 -0
- package/{ui-cv/cv-list-chat → ui-uni/uni-list-chat}/uni-list-chat.scss +0 -0
- package/{ui-cv/cv-list-chat → ui-uni/uni-list-chat}/uni-list-chat.vue +0 -0
- package/{ui-cv/cv-list-item → ui-uni/uni-list-item}/uni-list-item.vue +0 -0
- package/ui-uni/uni-load-more/uni-load-more.vue +366 -0
- package/{ui-cv/cv-nav-bar → ui-uni/uni-nav-bar}/uni-nav-bar.vue +0 -0
- package/{ui-cv/cv-nav-bar → ui-uni/uni-nav-bar}/uni-status-bar.vue +0 -0
- package/{ui-cv/cv-notice-bar → ui-uni/uni-notice-bar}/uni-notice-bar.vue +0 -0
- package/{ui-cv/cv-number-box → ui-uni/uni-number-box}/uni-number-box.vue +0 -0
- package/{ui-cv/cv-pagination → ui-uni/uni-pagination}/uni-pagination.vue +0 -0
- package/{ui-cv/cv-popup → ui-uni/uni-popup}/keypress.js +0 -0
- package/{ui-cv/cv-popup → ui-uni/uni-popup}/popup.js +0 -0
- package/{ui-cv/cv-popup → ui-uni/uni-popup}/uni-popup.vue +0 -0
- package/{ui-cv/cv-popup-dialog → ui-uni/uni-popup-dialog}/keypress.js +0 -0
- package/{ui-cv/cv-popup-dialog → ui-uni/uni-popup-dialog}/uni-popup-dialog.vue +0 -0
- package/{ui-cv/cv-popup-message → ui-uni/uni-popup-message}/uni-popup-message.vue +0 -0
- package/{ui-cv/cv-popup-share → ui-uni/uni-popup-share}/uni-popup-share.vue +0 -0
- package/ui-uni/uni-rate/uni-rate.vue +357 -0
- package/ui-uni/uni-row/uni-row.vue +155 -0
- package/{ui-cv/cv-search-bar → ui-uni/uni-search-bar}/uni-search-bar.vue +0 -0
- package/{ui-cv/cv-section → ui-uni/uni-section}/uni-section.vue +0 -0
- package/{ui-cv/cv-segmented-control → ui-uni/uni-segmented-control}/uni-segmented-control.vue +0 -0
- package/{ui-cv/cv-status-bar → ui-uni/uni-status-bar}/uni-status-bar.vue +0 -0
- package/{ui-cv/cv-steps → ui-uni/uni-steps}/uni-steps.vue +0 -0
- package/{ui-cv/cv-swipe-action → ui-uni/uni-swipe-action}/uni-swipe-action.vue +0 -0
- package/{ui-cv/cv-swipe-action-item → ui-uni/uni-swipe-action-item}/bindingx.js +0 -0
- package/{ui-cv/cv-swipe-action-item → ui-uni/uni-swipe-action-item}/index.wxs +0 -0
- package/{ui-cv/cv-swipe-action-item → ui-uni/uni-swipe-action-item}/isPC.js +0 -0
- package/{ui-cv/cv-swipe-action-item → ui-uni/uni-swipe-action-item}/mpalipay.js +0 -0
- package/{ui-cv/cv-swipe-action-item → ui-uni/uni-swipe-action-item}/mpother.js +0 -0
- package/{ui-cv/cv-swipe-action-item → ui-uni/uni-swipe-action-item}/mpwxs.js +0 -0
- package/{ui-cv/cv-swipe-action-item → ui-uni/uni-swipe-action-item}/uni-swipe-action-item.vue +0 -0
- package/{ui-cv/cv-swiper-dot → ui-uni/uni-swiper-dot}/uni-swiper-dot.vue +0 -0
- package/{ui-cv/cv-table → ui-uni/uni-table}/uni-table.vue +0 -0
- package/{ui-cv/cv-tag → ui-uni/uni-tag}/uni-tag.vue +0 -0
- package/{ui-cv/cv-tbody → ui-uni/uni-tbody}/uni-tbody.vue +0 -0
- package/{ui-cv/cv-td → ui-uni/uni-td}/uni-td.vue +0 -0
- package/{ui-cv/cv-test → ui-uni/uni-test}/uni-test.vue +0 -0
- package/{ui-cv/cv-th → ui-uni/uni-th}/filter-dropdown.vue +0 -0
- package/{ui-cv/cv-th → ui-uni/uni-th}/uni-th.vue +0 -0
- package/{ui-cv/cv-thead → ui-uni/uni-thead}/uni-thead.vue +0 -0
- package/{ui-cv/cv-title → ui-uni/uni-title}/uni-title.vue +0 -0
- package/{ui-cv/cv-tr → ui-uni/uni-tr}/table-checkbox.vue +0 -0
- package/{ui-cv/cv-tr → ui-uni/uni-tr}/uni-tr.vue +0 -0
- package/{ui-cv/cv-transition → ui-uni/uni-transition}/createAnimation.js +0 -0
- package/{ui-cv/cv-transition → ui-uni/uni-transition}/uni-transition.vue +0 -0
- package/ui-cv/cv-badge/uni-badge.vue +0 -249
- package/ui-cv/cv-drawer/cv-drawer.vue +0 -185
- package/ui-cv/cv-drawer/keypress.js +0 -45
- package/ui-cv/cv-form-base/cv-form-base.vue +0 -470
- package/ui-cv/cv-form-base/validate.js +0 -477
- package/ui-cv/cv-grid-group/cv-grid-group.vue +0 -148
- package/ui-cv/cv-grid-item/cv-grid-item.vue +0 -132
- package/ui-cv/cv-icons2/cv-icons2.vue +0 -78
- package/ui-cv/cv-icons2/icons.js +0 -132
- package/ui-cv/cv-link/uni-link.vue +0 -130
- package/ui-cv/cv-row/uni-row.vue +0 -157
package/ui-cv/cv-row/uni-row.vue
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
:class="['uni-row', typeClass, justifyClass, alignClass]"
|
|
4
|
-
:style="{
|
|
5
|
-
marginLeft: `${Number(marginValue)}rpx`,
|
|
6
|
-
marginRight: `${Number(marginValue)}rpx`
|
|
7
|
-
}"
|
|
8
|
-
>
|
|
9
|
-
<slot></slot>
|
|
10
|
-
</view>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
const ComponentClass = 'uni-row';
|
|
15
|
-
const modifierSeparator = '--';
|
|
16
|
-
/**
|
|
17
|
-
* Row 布局-行
|
|
18
|
-
* @description 流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局。
|
|
19
|
-
* @tutorial https://ext.dcloud.net.cn/plugin?id=3958
|
|
20
|
-
*
|
|
21
|
-
* @property {gutter} type = Number 栅格间隔
|
|
22
|
-
* @property {justify} type = String flex 布局下的水平排列方式
|
|
23
|
-
* 可选 start/end/center/space-around/space-between start
|
|
24
|
-
* 默认值 start
|
|
25
|
-
* @property {align} type = String flex 布局下的垂直排列方式
|
|
26
|
-
* 可选 top/middle/bottom
|
|
27
|
-
* 默认值 top
|
|
28
|
-
* @property {width} type = String|Number nvue下需要自行配置宽度用于计算
|
|
29
|
-
* 默认值 750
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
export default {
|
|
33
|
-
name: 'uniRow',
|
|
34
|
-
componentName: 'uniRow',
|
|
35
|
-
// #ifdef MP-WEIXIN
|
|
36
|
-
options: {
|
|
37
|
-
virtualHost: true // 在微信小程序中将组件节点渲染为虚拟节点,更加接近Vue组件的表现,可使用flex布局
|
|
38
|
-
},
|
|
39
|
-
// #endif
|
|
40
|
-
props: {
|
|
41
|
-
type: String,
|
|
42
|
-
gutter: Number,
|
|
43
|
-
justify: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: 'start'
|
|
46
|
-
},
|
|
47
|
-
align: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: 'top'
|
|
50
|
-
},
|
|
51
|
-
// nvue如果使用span等属性,需要配置宽度
|
|
52
|
-
width: {
|
|
53
|
-
type: [String, Number],
|
|
54
|
-
default: 750
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
created() {
|
|
58
|
-
// #ifdef APP-NVUE
|
|
59
|
-
this.type = 'flex';
|
|
60
|
-
// #endif
|
|
61
|
-
},
|
|
62
|
-
computed: {
|
|
63
|
-
marginValue() {
|
|
64
|
-
// #ifndef APP-NVUE
|
|
65
|
-
if (this.gutter) {
|
|
66
|
-
return -(this.gutter / 2);
|
|
67
|
-
}
|
|
68
|
-
// #endif
|
|
69
|
-
return 0;
|
|
70
|
-
},
|
|
71
|
-
typeClass() {
|
|
72
|
-
return this.type === 'flex' ? `${ComponentClass + modifierSeparator}flex` : '';
|
|
73
|
-
},
|
|
74
|
-
justifyClass() {
|
|
75
|
-
return this.justify !== 'start' ? `${ComponentClass + modifierSeparator}flex-justify-${this.justify}` : '';
|
|
76
|
-
},
|
|
77
|
-
alignClass() {
|
|
78
|
-
return this.align !== 'top' ? `${ComponentClass + modifierSeparator}flex-align-${this.align}` : '';
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
</script>
|
|
83
|
-
|
|
84
|
-
<style scoped>
|
|
85
|
-
.uni-row {
|
|
86
|
-
position: relative;
|
|
87
|
-
flex-direction: row;
|
|
88
|
-
/* #ifdef APP-NVUE */
|
|
89
|
-
flex: 1;
|
|
90
|
-
/* #endif */
|
|
91
|
-
/* #ifndef APP-NVUE */
|
|
92
|
-
box-sizing: border-box;
|
|
93
|
-
/* #endif */
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* #ifndef APP-NVUE */
|
|
97
|
-
.uni-row::before,
|
|
98
|
-
.uni-row::after {
|
|
99
|
-
display: table;
|
|
100
|
-
content: '';
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.uni-row::after {
|
|
104
|
-
clear: both;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/* #endif */
|
|
108
|
-
/* #ifndef MP-QQ || MP-TOUTIAO || MP-BAIDU */
|
|
109
|
-
.uni-row--flex {
|
|
110
|
-
/* #ifndef APP-NVUE */
|
|
111
|
-
display: flex;
|
|
112
|
-
/* #endif */
|
|
113
|
-
flex-direction: row;
|
|
114
|
-
flex-wrap: wrap;
|
|
115
|
-
flex: 1;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.uni-row--flex:before,
|
|
119
|
-
.uni-row--flex:after {
|
|
120
|
-
/* #ifndef APP-NVUE */
|
|
121
|
-
display: none;
|
|
122
|
-
/* #endif */
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.uni-row--flex-justify-center {
|
|
126
|
-
justify-content: center;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.uni-row--flex-justify-end {
|
|
130
|
-
justify-content: flex-end;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.uni-row--flex-justify-space-between {
|
|
134
|
-
justify-content: space-between;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.uni-row--flex-justify-space-around {
|
|
138
|
-
justify-content: space-around;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.uni-row--flex-align-middle {
|
|
142
|
-
align-items: center;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.uni-row--flex-align-bottom {
|
|
146
|
-
align-items: flex-end;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/* #endif */
|
|
150
|
-
|
|
151
|
-
/* #ifdef MP-WEIXIN || MP-TOUTIAO || MP-QQ */
|
|
152
|
-
:host {
|
|
153
|
-
display: block;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/* #endif */
|
|
157
|
-
</style>
|