@10yun/cv-mobile-ui 0.5.20 → 0.5.22

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.
Files changed (71) hide show
  1. package/package.json +1 -1
  2. package/plugins/jumps.js +57 -12
  3. package/plugins/lbs.js +17 -8
  4. package/ui-cv/components/cv-grid-item/cv-grid-item.vue +1 -1
  5. package/uni-ui/lib/uni-badge/uni-badge.vue +150 -1
  6. package/uni-ui/lib/uni-breadcrumb/uni-breadcrumb.vue +37 -1
  7. package/uni-ui/lib/uni-breadcrumb-item/uni-breadcrumb-item.vue +83 -1
  8. package/uni-ui/lib/uni-calendar/uni-calendar-item.vue +122 -1
  9. package/uni-ui/lib/uni-calendar/uni-calendar.vue +366 -1
  10. package/uni-ui/lib/uni-card/uni-card.vue +124 -1
  11. package/uni-ui/lib/uni-col/uni-col.vue +1 -1
  12. package/uni-ui/lib/uni-collapse/uni-collapse.vue +135 -1
  13. package/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +266 -1
  14. package/uni-ui/lib/uni-combox/uni-combox.vue +1 -1
  15. package/uni-ui/lib/uni-countdown/uni-countdown.vue +239 -1
  16. package/uni-ui/lib/uni-data-checkbox/uni-data-checkbox.vue +487 -1
  17. package/uni-ui/lib/uni-data-picker/uni-data-picker.vue +530 -1
  18. package/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +157 -150
  19. package/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +166 -1
  20. package/uni-ui/lib/uni-data-select/uni-data-select.vue +289 -1
  21. package/uni-ui/lib/uni-datetime-picker/calendar-item.vue +70 -1
  22. package/uni-ui/lib/uni-datetime-picker/calendar.vue +629 -1
  23. package/uni-ui/lib/uni-datetime-picker/time-picker.vue +741 -1
  24. package/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +847 -1
  25. package/uni-ui/lib/uni-drawer/uni-drawer.vue +115 -1
  26. package/uni-ui/lib/uni-easyinput/uni-easyinput.vue +515 -1
  27. package/uni-ui/lib/uni-fab/uni-fab.vue +257 -1
  28. package/uni-ui/lib/uni-fav/uni-fav.vue +123 -1
  29. package/uni-ui/lib/uni-file-picker/uni-file-picker.vue +642 -1
  30. package/uni-ui/lib/uni-file-picker/upload-file.vue +177 -1
  31. package/uni-ui/lib/uni-file-picker/upload-image.vue +176 -1
  32. package/uni-ui/lib/uni-forms/uni-forms.vue +375 -1
  33. package/uni-ui/lib/uni-forms-item/uni-forms-item.vue +429 -1
  34. package/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +129 -1
  35. package/uni-ui/lib/uni-grid/uni-grid.vue +115 -1
  36. package/uni-ui/lib/uni-grid-item/uni-grid-item.vue +78 -1
  37. package/uni-ui/lib/uni-group/uni-group.vue +85 -1
  38. package/uni-ui/lib/uni-icons/uni-icons.vue +85 -1
  39. package/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +68 -1
  40. package/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +294 -1
  41. package/uni-ui/lib/uni-list/uni-list.vue +81 -1
  42. package/uni-ui/lib/uni-list-ad/uni-list-ad.vue +77 -1
  43. package/uni-ui/lib/uni-list-chat/uni-list-chat.vue +294 -1
  44. package/uni-ui/lib/uni-list-item/uni-list-item.vue +346 -1
  45. package/uni-ui/lib/uni-load-more/uni-load-more.vue +172 -1
  46. package/uni-ui/lib/uni-nav-bar/uni-nav-bar.vue +205 -1
  47. package/uni-ui/lib/uni-nav-bar/uni-status-bar.vue +18 -1
  48. package/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +331 -1
  49. package/uni-ui/lib/uni-number-box/uni-number-box.vue +166 -1
  50. package/uni-ui/lib/uni-pagination/uni-pagination.vue +323 -1
  51. package/uni-ui/lib/uni-popup/uni-popup.vue +1 -1
  52. package/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +173 -1
  53. package/uni-ui/lib/uni-popup-message/uni-popup-message.vue +74 -1
  54. package/uni-ui/lib/uni-popup-share/uni-popup-share.vue +106 -1
  55. package/uni-ui/lib/uni-rate/uni-rate.vue +322 -1
  56. package/uni-ui/lib/uni-row/uni-row.vue +1 -1
  57. package/uni-ui/lib/uni-search-bar/uni-search-bar.vue +236 -1
  58. package/uni-ui/lib/uni-section/uni-section.vue +109 -1
  59. package/uni-ui/lib/uni-segmented-control/uni-segmented-control.vue +103 -1
  60. package/uni-ui/lib/uni-status-bar/uni-status-bar.vue +1 -1
  61. package/uni-ui/lib/uni-steps/uni-steps.vue +120 -1
  62. package/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +226 -3
  63. package/uni-ui/lib/uni-swiper-dot/uni-swiper-dot.vue +167 -1
  64. package/uni-ui/lib/uni-table/uni-table.vue +297 -1
  65. package/uni-ui/lib/uni-tag/uni-tag.vue +100 -1
  66. package/uni-ui/lib/uni-td/uni-td.vue +78 -1
  67. package/uni-ui/lib/uni-th/filter-dropdown.vue +1 -1
  68. package/uni-ui/lib/uni-th/uni-th.vue +224 -1
  69. package/uni-ui/lib/uni-thead/uni-thead.vue +77 -1
  70. package/uni-ui/lib/uni-tr/table-checkbox.vue +79 -1
  71. package/uni-ui/lib/uni-tr/uni-tr.vue +135 -1
@@ -1 +1,81 @@
1
- <template>
2
1
  <!-- #ifndef APP-NVUE -->
3
2
  <view class="uni-list uni-border-top-bottom">
4
3
  <view v-if="border" class="uni-list--border-top"></view>
5
4
  <slot />
6
5
  <view v-if="border" class="uni-list--border-bottom"></view>
7
6
  </view>
8
7
  <!-- #endif -->
9
8
  <!-- #ifdef APP-NVUE -->
10
9
  <list
11
10
  :bounce="false"
12
11
  :scrollable="true"
13
12
  show-scrollbar
14
13
  :render-reverse="renderReverse"
15
14
  @scroll="scroll"
16
15
  class="uni-list"
17
16
  :class="{ 'uni-list--border': border }"
18
17
  :enableBackToTop="enableBackToTop"
19
18
  loadmoreoffset="15"
20
19
  >
21
20
  <slot />
22
21
  </list>
23
22
  <!-- #endif -->
24
23
  * List 列表
25
24
  * @description 列表组件
26
25
  * @tutorial https://ext.dcloud.net.cn/plugin?id=24
27
26
  * @property {String} border = [true|false] 标题
28
27
  */
29
28
  name: 'uniList',
30
29
  'mp-weixin': {
31
30
  options: {
32
31
  multipleSlots: false
33
32
  }
34
33
  },
35
34
  props: {
36
35
  stackFromEnd: {
37
36
  type: Boolean,
38
37
  default: false
39
38
  },
40
39
  enableBackToTop: {
41
40
  type: [Boolean, String],
42
41
  default: false
43
42
  },
44
43
  scrollY: {
45
44
  type: [Boolean, String],
46
45
  default: false
47
46
  },
48
47
  border: {
49
48
  type: Boolean,
50
49
  default: true
51
50
  },
52
51
  renderReverse: {
53
52
  type: Boolean,
54
53
  default: false
55
54
  }
56
55
  },
57
56
  // provide() {
58
57
  // return {
59
58
  // list: this
60
59
  // };
61
60
  // },
62
61
  created() {
63
62
  this.firstChildAppend = false;
64
63
  },
65
64
  methods: {
66
65
  loadMore(e) {
67
66
  this.$emit('scrolltolower');
68
67
  },
69
68
  scroll(e) {
70
69
  this.$emit('scroll', e);
71
70
  }
72
71
  }
72
+ <template>
73
+ <!-- #ifndef APP-NVUE -->
74
+ <view class="uni-list uni-border-top-bottom">
75
+ <view v-if="border" class="uni-list--border-top"></view>
76
+ <slot />
77
+ <view v-if="border" class="uni-list--border-bottom"></view>
78
+ </view>
79
+ <!-- #endif -->
80
+ <!-- #ifdef APP-NVUE -->
81
+ <list
82
+ :bounce="false"
83
+ :scrollable="true"
84
+ show-scrollbar
85
+ :render-reverse="renderReverse"
86
+ @scroll="scroll"
87
+ class="uni-list"
88
+ :class="{ 'uni-list--border': border }"
89
+ :enableBackToTop="enableBackToTop"
90
+ loadmoreoffset="15"
91
+ >
92
+ <slot />
93
+ </list>
94
+ <!-- #endif -->
95
+ </template>
96
+ <script>
97
+ /**
98
+ * List 列表
99
+ * @description 列表组件
100
+ * @tutorial https://ext.dcloud.net.cn/plugin?id=24
101
+ * @property {String} border = [true|false] 标题
102
+ */
103
+ export default {
104
+ name: 'uniList',
105
+ 'mp-weixin': {
106
+ options: {
107
+ multipleSlots: false
108
+ }
109
+ },
110
+ props: {
111
+ stackFromEnd: {
112
+ type: Boolean,
113
+ default: false
114
+ },
115
+ enableBackToTop: {
116
+ type: [Boolean, String],
117
+ default: false
118
+ },
119
+ scrollY: {
120
+ type: [Boolean, String],
121
+ default: false
122
+ },
123
+ border: {
124
+ type: Boolean,
125
+ default: true
126
+ },
127
+ renderReverse: {
128
+ type: Boolean,
129
+ default: false
130
+ }
131
+ },
132
+ // provide() {
133
+ // return {
134
+ // list: this
135
+ // };
136
+ // },
137
+ created() {
138
+ this.firstChildAppend = false;
139
+ },
140
+ methods: {
141
+ loadMore(e) {
142
+ this.$emit('scrolltolower');
143
+ },
144
+ scroll(e) {
145
+ this.$emit('scroll', e);
146
+ }
147
+ }
148
+ };
149
+ </script>
150
+ <style>
151
+ @import 'style.css';
152
+ </style>
@@ -1 +1,77 @@
1
- <template>
2
1
  <!-- #ifdef APP-NVUE -->
3
2
  <cell>
4
3
  <!-- #endif -->
5
4
  <view class="uni-list-ad">
6
5
  <view v-if="borderShow" :class="{ 'uni-list--border': border, 'uni-list-item--first': isFirstChild }"></view>
7
6
  <ad
8
7
  style="width: 200px; height: 300px; border-width: 1px; border-color: red; border-style: solid"
9
8
  adpid="1111111111"
10
9
  unit-id=""
11
10
  appid=""
12
11
  apid=""
13
12
  type="feed"
14
13
  @error="aderror"
15
14
  @close="closeAd"
16
15
  ></ad>
17
16
  </view>
18
17
  <!-- #ifdef APP-NVUE -->
19
18
  </cell>
20
19
  <!-- #endif -->
21
20
  name: 'UniListAd',
22
21
  props: {
23
22
  title: {
24
23
  type: String,
25
24
  default: ''
26
25
  }
27
26
  },
28
27
  // inject: ['list'],
29
28
  data() {
30
29
  return {
31
30
  isFirstChild: false,
32
31
  border: false,
33
32
  borderShow: true
34
33
  };
35
34
  },
36
35
  mounted() {
37
36
  this.list = this.getForm();
38
37
  if (this.list) {
39
38
  if (!this.list.firstChildAppend) {
40
39
  this.list.firstChildAppend = true;
41
40
  this.isFirstChild = true;
42
41
  }
43
42
  this.border = this.list.border;
44
43
  }
45
44
  },
46
45
  methods: {
47
46
  /**
48
47
  * 获取父元素实例
49
48
  */
50
49
  getForm(name = 'uniList') {
51
50
  let parent = this.$parent;
52
51
  let parentName = parent.$options.name;
53
52
  while (parentName !== name) {
54
53
  parent = parent.$parent;
55
54
  if (!parent) return false;
56
55
  parentName = parent.$options.name;
57
56
  }
58
57
  return parent;
59
58
  },
60
59
  aderror(e) {
61
60
  console.log('aderror: ' + JSON.stringify(e.detail));
62
61
  },
63
62
  closeAd(e) {
64
63
  this.borderShow = false;
65
64
  }
66
65
  }
66
+ <template>
67
+ <!-- #ifdef APP-NVUE -->
68
+ <cell>
69
+ <!-- #endif -->
70
+ <view class="uni-list-ad">
71
+ <view v-if="borderShow" :class="{ 'uni-list--border': border, 'uni-list-item--first': isFirstChild }"></view>
72
+ <ad
73
+ style="width: 200px; height: 300px; border-width: 1px; border-color: red; border-style: solid"
74
+ adpid="1111111111"
75
+ unit-id=""
76
+ appid=""
77
+ apid=""
78
+ type="feed"
79
+ @error="aderror"
80
+ @close="closeAd"
81
+ ></ad>
82
+ </view>
83
+ <!-- #ifdef APP-NVUE -->
84
+ </cell>
85
+ <!-- #endif -->
86
+ </template>
87
+ <script>
88
+ // #ifdef APP-NVUE
89
+ const dom = uni.requireNativePlugin('dom');
90
+ // #endif
91
+ export default {
92
+ name: 'UniListAd',
93
+ props: {
94
+ title: {
95
+ type: String,
96
+ default: ''
97
+ }
98
+ },
99
+ // inject: ['list'],
100
+ data() {
101
+ return {
102
+ isFirstChild: false,
103
+ border: false,
104
+ borderShow: true
105
+ };
106
+ },
107
+ mounted() {
108
+ this.list = this.getForm();
109
+ if (this.list) {
110
+ if (!this.list.firstChildAppend) {
111
+ this.list.firstChildAppend = true;
112
+ this.isFirstChild = true;
113
+ }
114
+ this.border = this.list.border;
115
+ }
116
+ },
117
+ methods: {
118
+ /**
119
+ * 获取父元素实例
120
+ */
121
+ getForm(name = 'uniList') {
122
+ let parent = this.$parent;
123
+ let parentName = parent.$options.name;
124
+ while (parentName !== name) {
125
+ parent = parent.$parent;
126
+ if (!parent) return false;
127
+ parentName = parent.$options.name;
128
+ }
129
+ return parent;
130
+ },
131
+ aderror(e) {
132
+ console.log('aderror: ' + JSON.stringify(e.detail));
133
+ },
134
+ closeAd(e) {
135
+ this.borderShow = false;
136
+ }
137
+ }
138
+ };
139
+ </script>
140
+ <style>
141
+ @import 'style.css';
142
+ </style>