@10yun/cv-mobile-ui 0.4.10 → 0.4.11

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10yun/cv-mobile-ui",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "十云cvjs移动端ui,适用uniapp",
5
5
  "author": "",
6
6
  "license": "Apache-2.0",
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <view class="cv-picker-date">
2
+ <view class="cv-date-base">
3
3
  <picker
4
- class="cv-picker-date-item"
4
+ class="cv-date-base-item"
5
5
  mode="date"
6
6
  :value="localVal"
7
7
  :start="startDate"
@@ -11,8 +11,8 @@
11
11
  :fields="fields"
12
12
  @click="changeIconTop"
13
13
  >
14
- <view class="cv-picker-date-text" v-if="localVal != ''">{{ localVal }}</view>
15
- <view class="cv-picker-date-placeholder" v-else>{{ placeholder }}</view>
14
+ <view class="cv-date-base-text" v-if="localVal != ''">{{ localVal }}</view>
15
+ <view class="cv-date-base-placeholder" v-else>{{ placeholder }}</view>
16
16
  </picker>
17
17
  </view>
18
18
  </template>
@@ -66,17 +66,17 @@ export default {
66
66
  </script>
67
67
 
68
68
  <style>
69
- .cv-picker-date {
69
+ .cv-date-base {
70
70
  min-height: 35px;
71
71
  }
72
- .cv-picker-date-item {
72
+ .cv-date-base-item {
73
73
  height: 35px;
74
74
  line-height: 35px;
75
75
  float: left;
76
76
  margin-right: 10px;
77
77
  width: 100%;
78
78
  }
79
- .cv-picker-date-placeholder {
79
+ .cv-date-base-placeholder {
80
80
  color: grey;
81
81
  }
82
82
  </style>
@@ -15,7 +15,7 @@
15
15
  <view class="cv-picker-item-placeholder" v-else>{{ placeholder }}</view>
16
16
  </picker>
17
17
  <picker
18
- class="cv-picker-time-item"
18
+ class="cv-time-base-item"
19
19
  mode="time"
20
20
  :value="localVal_time"
21
21
  :start="startTime"
@@ -24,7 +24,7 @@
24
24
  @click="changeIconTop"
25
25
  @cancel="bindPickerCancel"
26
26
  >
27
- <view class="cv-picker-time-text" v-if="localVal_time != ''">{{ localVal_time }}</view>
27
+ <view class="cv-time-base-text" v-if="localVal_time != ''">{{ localVal_time }}</view>
28
28
  <view class="cv-picker-item-placeholder" v-else>{{ placeholder }}</view>
29
29
  </picker>
30
30
  </view>
@@ -107,7 +107,7 @@ export default {
107
107
  min-height: 35px;
108
108
  }
109
109
  .cv-picker-date-item,
110
- .cv-picker-time-item {
110
+ .cv-time-base-item {
111
111
  height: 35px;
112
112
  line-height: 35px;
113
113
  float: left;
@@ -116,7 +116,7 @@ export default {
116
116
  margin-right: 10px;
117
117
  min-width: 60px;
118
118
  }
119
- .cv-picker-time-item {
119
+ .cv-time-base-item {
120
120
  min-width: 50px;
121
121
  margin-right: 10px;
122
122
  }
@@ -27,7 +27,7 @@
27
27
  >
28
28
  <text class="uni-error-message-text">{{ showMsg === 'undertext' ? msg : '' }}</text>
29
29
  </view>
30
- <view class="cv-form-item__tip"><slot name="tip"></slot></view>
30
+ <view class="cv-form-item__tip" v-if="$slots['tip']"><slot name="tip"></slot></view>
31
31
  </view>
32
32
  <view class="cv-form-item__line" v-if="localLine"></view>
33
33
  </view>
@@ -470,6 +470,8 @@ export default {
470
470
  min-height: 36px;
471
471
  /* #endif */
472
472
  flex: 1;
473
+ display: flex;
474
+ align-items: center;
473
475
  }
474
476
 
475
477
  .label-icon {
@@ -52,8 +52,8 @@ export default {
52
52
  </script>
53
53
  <style>
54
54
  .cv-input__content {
55
- height: 35px;
56
- line-height: 35px;
55
+ min-height: 36px;
56
+ line-height: 36px;
57
57
  font-size: 14px;
58
58
  }
59
59
 
@@ -47,8 +47,8 @@ export default {
47
47
  </script>
48
48
  <style>
49
49
  .cv-input__content {
50
- height: 35px;
51
- line-height: 35px;
50
+ height: 36px;
51
+ line-height: 36px;
52
52
  font-size: 14px;
53
53
  }
54
54
  .cv-input__placeholder {
@@ -66,8 +66,8 @@ export default {
66
66
 
67
67
  <style>
68
68
  .cv-input__content {
69
- height: 35px;
70
- line-height: 35px;
69
+ height: 36px;
70
+ line-height: 36px;
71
71
  font-size: 14px;
72
72
  }
73
73
  .cv-input__placeholder {
@@ -67,8 +67,8 @@ export default {
67
67
  </script>
68
68
  <style>
69
69
  .cv-input__content {
70
- height: 35px;
71
- line-height: 35px;
70
+ height: 36px;
71
+ line-height: 36px;
72
72
  font-size: 14px;
73
73
  }
74
74
 
@@ -47,8 +47,8 @@ export default {
47
47
  </script>
48
48
  <style>
49
49
  .cv-input__content {
50
- height: 35px;
51
- line-height: 35px;
50
+ height: 36px;
51
+ line-height: 36px;
52
52
  font-size: 14px;
53
53
  }
54
54
  .cv-input__placeholder {
@@ -91,10 +91,11 @@ export default {
91
91
  display: flex;
92
92
  flex-direction: row;
93
93
  flex: 1;
94
- padding: 9px;
94
+ padding: 7px;
95
95
  align-items: stretch;
96
96
  align-content: flex-start;
97
97
  margin-top: 5px;
98
+ margin-bottom: 5px;
98
99
  }
99
100
  .cv-textarea__box {
100
101
  flex: 1;
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <view class="cv-picker-time">
2
+ <view class="cv-time-base">
3
3
  <picker
4
- class="cv-picker-time-item"
4
+ class="cv-time-base-item"
5
5
  mode="time"
6
6
  :value="localVal"
7
7
  :start="startTime"
@@ -10,8 +10,8 @@
10
10
  @cancel="bindPickerCancel"
11
11
  @click="changeIconTop"
12
12
  >
13
- <view class="cv-picker-time-text" v-if="localVal != ''">{{ localVal }}</view>
14
- <view class="cv-picker-time-placeholder" v-else>{{ placeholder }}</view>
13
+ <view class="cv-time-base-text" v-if="localVal != ''">{{ localVal }}</view>
14
+ <view class="cv-time-base-placeholder" v-else>{{ placeholder }}</view>
15
15
  </picker>
16
16
  </view>
17
17
  </template>
@@ -56,17 +56,17 @@ export default {
56
56
  </script>
57
57
 
58
58
  <style>
59
- .cv-picker-time {
59
+ .cv-time-base {
60
60
  min-height: 35px;
61
61
  }
62
- .cv-picker-time-item {
62
+ .cv-time-base-item {
63
63
  height: 35px;
64
64
  line-height: 35px;
65
65
  float: left;
66
66
  margin-right: 10px;
67
67
  width: 100%;
68
68
  }
69
- .cv-picker-time-placeholder {
69
+ .cv-time-base-placeholder {
70
70
  color: grey;
71
71
  }
72
72
  </style>
@@ -1,9 +1,14 @@
1
1
  <template>
2
- <view class="cv-upload-img-wrap">
2
+ <view
3
+ class="cv-upload-img-wrap"
4
+ :style="{
5
+ marginTop: uploadType == 'one' ? '5px' : ''
6
+ }"
7
+ >
3
8
  <block v-if="uploadType == 'big'">
4
9
  <view class="cv-upload-imgbig_view" @tap="imgChoose" v-if="localSrc == ''">
5
10
  <view class="cv-upload-imgbig-left">
6
- <view class="cv-upload-imgbig-left__title">{{ label }}</view>
11
+ <view class="cv-upload-imgbig-left__title">{{ uploadTitle }}</view>
7
12
  <view>{{ uploadTip.dimension }}</view>
8
13
  <view>{{ uploadTip.format }}</view>
9
14
  <view>{{ uploadTip.size }}</view>
@@ -37,7 +42,6 @@
37
42
  </view>
38
43
  </block>
39
44
  <block v-else>
40
- <view class="cv-upload-img-hd">{{ label }}</view>
41
45
  <view class="cv-upload-imgmore_img">
42
46
  <block v-if="localSrc != ''">
43
47
  <block v-for="(item, index) in localSrc" :key="index">
@@ -76,7 +80,7 @@ export default {
76
80
  name: 'cvUploadImg',
77
81
  components: {},
78
82
  props: {
79
- label: {
83
+ uploadTitle: {
80
84
  type: [String],
81
85
  default: ''
82
86
  },
@@ -95,11 +99,6 @@ export default {
95
99
  };
96
100
  }
97
101
  },
98
- // 提示
99
- tip: {
100
- type: String,
101
- default: ''
102
- },
103
102
  //默认输入框
104
103
  value: {
105
104
  type: [Array, Object, String],
@@ -358,8 +357,7 @@ export default {
358
357
  </script>
359
358
  <style>
360
359
  .cv-upload-img-wrap {
361
- padding: 10px 15px;
362
- background: #fff !important;
360
+ width: 100%;
363
361
  }
364
362
 
365
363
  .cv-upload-img-hd {
@@ -409,7 +407,7 @@ export default {
409
407
  height: 66px;
410
408
  border: 1px dashed #99999999;
411
409
  border-radius: 10px;
412
- margin-bottom: 10px;
410
+ margin-bottom: 5px;
413
411
  position: relative;
414
412
  }
415
413
 
@@ -427,14 +425,15 @@ export default {
427
425
  padding: 0px !important;
428
426
  }
429
427
  .cv-upload-imgbig_view {
430
- height: 345rpx;
431
- padding: 20rpx 42rpx;
428
+ height: 170px;
429
+ padding: 10px 20px;
432
430
  display: flex;
433
- border: 2rpx dashed #c7c7c7;
431
+ border: 1px dashed #c7c7c7;
434
432
  color: #888888;
435
- border-radius: 10rpx;
433
+ border-radius: 5px;
436
434
  justify-content: space-between;
437
435
  font-size: 24rpx;
436
+ margin-bottom: 5px;
438
437
  }
439
438
  .cv-upload-imgbig-left {
440
439
  display: flex;
package/docs.md DELETED
@@ -1,5 +0,0 @@
1
-
2
-
3
- lib-uni 需要同步
4
-
5
- 连接:https://github.com/dcloudio/hello-uniapp