@10yun/cv-mobile-ui 0.5.30 → 0.5.31

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 (106) hide show
  1. package/package.json +5 -1
  2. package/ui-cv/components/cv-btn-base/cv-btn-base.vue +1 -1
  3. package/uview-plus/README.md +1 -1
  4. package/uview-plus/components/u-action-sheet/u-action-sheet.vue +8 -8
  5. package/uview-plus/components/u-album/u-album.vue +1 -1
  6. package/uview-plus/components/u-alert/u-alert.vue +5 -5
  7. package/uview-plus/components/u-app-update/u-app-update.vue +2 -2
  8. package/uview-plus/components/u-avatar/u-avatar.vue +2 -2
  9. package/uview-plus/components/u-avatar-group/u-avatar-group.vue +79 -3
  10. package/uview-plus/components/u-back-top/u-back-top.vue +4 -4
  11. package/uview-plus/components/u-badge/u-badge.vue +1 -1
  12. package/uview-plus/components/u-button/u-button.vue +8 -8
  13. package/uview-plus/components/u-button-wu/u-button-wu.vue +9 -9
  14. package/uview-plus/components/u-calendar/u-calendar.vue +5 -6
  15. package/uview-plus/components/u-car-keyboard/u-car-keyboard.vue +2 -2
  16. package/uview-plus/components/u-card/u-card.vue +139 -3
  17. package/uview-plus/components/u-cell/u-cell.vue +4 -4
  18. package/uview-plus/components/u-cell-group/u-cell-group.vue +2 -2
  19. package/uview-plus/components/u-checkbox/u-checkbox.vue +4 -4
  20. package/uview-plus/components/u-checkbox-group/u-checkbox-group.vue +1 -1
  21. package/uview-plus/components/u-code/u-code.vue +1 -1
  22. package/uview-plus/components/u-code-input/u-code-input.vue +1 -1
  23. package/uview-plus/components/u-col/u-col.vue +1 -1
  24. package/uview-plus/components/u-collapse/u-collapse.vue +2 -2
  25. package/uview-plus/components/u-collapse-item/u-collapse-item.vue +218 -3
  26. package/uview-plus/components/u-column-notice/u-column-notice.vue +3 -3
  27. package/uview-plus/components/u-count-down/u-count-down.vue +1 -1
  28. package/uview-plus/components/u-count-to/u-count-to.vue +1 -1
  29. package/uview-plus/components/u-datetime-picker/u-datetime-picker.vue +3 -3
  30. package/uview-plus/components/u-divider/u-divider.vue +3 -3
  31. package/uview-plus/components/u-dropdown/u-dropdown.vue +3 -3
  32. package/uview-plus/components/u-dropdown-item/u-dropdown-item.vue +1 -1
  33. package/uview-plus/components/u-empty/u-empty.vue +3 -3
  34. package/uview-plus/components/u-form-item/u-form-item.vue +4 -4
  35. package/uview-plus/components/u-gap/u-gap.vue +1 -1
  36. package/uview-plus/components/u-grid/u-grid.vue +1 -1
  37. package/uview-plus/components/u-grid-item/u-grid-item.vue +1 -1
  38. package/uview-plus/components/u-icon/u-icon.vue +1 -1
  39. package/uview-plus/components/u-icon/u-icon2.vue +1 -1
  40. package/uview-plus/components/u-image/u-image.vue +5 -5
  41. package/uview-plus/components/u-image-wu/u-image-wu.vue +5 -5
  42. package/uview-plus/components/u-index-anchor/u-index-anchor.vue +1 -1
  43. package/uview-plus/components/u-index-list/u-index-list.vue +2 -2
  44. package/uview-plus/components/u-input/u-input.vue +4 -4
  45. package/uview-plus/components/u-keyboard/u-keyboard.vue +6 -6
  46. package/uview-plus/components/u-lazy-load/u-lazy-load.vue +257 -3
  47. package/uview-plus/components/u-line/u-line.vue +1 -1
  48. package/uview-plus/components/u-line-progress/u-line-progress.vue +1 -1
  49. package/uview-plus/components/u-link/u-link.vue +1 -1
  50. package/uview-plus/components/u-list/u-list.vue +1 -1
  51. package/uview-plus/components/u-list-item/u-list-item.vue +1 -1
  52. package/uview-plus/components/u-loading-icon/u-loading-icon.vue +191 -3
  53. package/uview-plus/components/u-loading-page/u-loading-page.vue +4 -4
  54. package/uview-plus/components/u-loadmore/u-loadmore.vue +4 -4
  55. package/uview-plus/components/u-mask/u-mask.vue +120 -113
  56. package/uview-plus/components/u-message-input/u-message-input.vue +1 -1
  57. package/uview-plus/components/u-modal/u-modal.vue +6 -6
  58. package/uview-plus/components/u-navbar/u-navbar.vue +4 -4
  59. package/uview-plus/components/u-navbar-mini/u-navbar-mini.vue +2 -2
  60. package/uview-plus/components/u-navbar-wu/u-navbar-wu.vue +4 -4
  61. package/uview-plus/components/u-no-network/u-no-network.vue +5 -5
  62. package/uview-plus/components/u-notice-bar/u-notice-bar.vue +5 -5
  63. package/uview-plus/components/u-notify/u-notify.vue +6 -6
  64. package/uview-plus/components/u-number-box/u-number-box.vue +9 -3
  65. package/uview-plus/components/u-number-keyboard/u-number-keyboard.vue +1 -1
  66. package/uview-plus/components/u-overlay/u-overlay.vue +3 -3
  67. package/uview-plus/components/u-picker/u-picker.vue +5 -5
  68. package/uview-plus/components/u-popup/u-popup.vue +8 -8
  69. package/uview-plus/components/u-popup-wu/u-popup-wu.vue +7 -7
  70. package/uview-plus/components/u-radio/u-radio.vue +4 -4
  71. package/uview-plus/components/u-radio-group/u-radio-group.vue +1 -1
  72. package/uview-plus/components/u-rate/u-rate.vue +5 -5
  73. package/uview-plus/components/u-read-more/u-read-more.vue +126 -3
  74. package/uview-plus/components/u-row/u-row.vue +1 -1
  75. package/uview-plus/components/u-row-notice/u-row-notice.vue +3 -3
  76. package/uview-plus/components/u-safe-bottom/u-safe-bottom.vue +48 -3
  77. package/uview-plus/components/u-search/u-search.vue +4 -4
  78. package/uview-plus/components/u-select/u-select.vue +175 -3
  79. package/uview-plus/components/u-skeleton/u-skeleton.vue +3 -3
  80. package/uview-plus/components/u-sku-wu/u-sku-wu.vue +4 -4
  81. package/uview-plus/components/u-status-bar/u-status-bar.vue +1 -1
  82. package/uview-plus/components/u-steps/u-steps.vue +1 -1
  83. package/uview-plus/components/u-steps-item/u-steps-item.vue +7 -7
  84. package/uview-plus/components/u-sticky/u-sticky.vue +1 -1
  85. package/uview-plus/components/u-subsection/u-subsection.vue +1 -1
  86. package/uview-plus/components/u-swipe-action/u-swipe-action.vue +1 -1
  87. package/uview-plus/components/u-swipe-action-item/u-swipe-action-item.vue +3 -3
  88. package/uview-plus/components/u-swiper/u-swiper.vue +1 -1
  89. package/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue +1 -1
  90. package/uview-plus/components/u-switch/u-switch.vue +2 -2
  91. package/uview-plus/components/u-tabbar/u-tabbar.vue +2 -2
  92. package/uview-plus/components/u-tabbar-item/u-tabbar-item.vue +9 -4
  93. package/uview-plus/components/u-table/u-table.vue +1 -1
  94. package/uview-plus/components/u-tabs/u-tabs.vue +3 -3
  95. package/uview-plus/components/u-tag/u-tag.vue +5 -5
  96. package/uview-plus/components/u-text/u-text.vue +159 -3
  97. package/uview-plus/components/u-toast/u-toast.vue +8 -8
  98. package/uview-plus/components/u-tooltip/u-tooltip.vue +6 -6
  99. package/uview-plus/components/u-upload/u-upload.vue +10 -10
  100. package/uview-plus/components/u-waterfall/u-waterfall.vue +221 -3
  101. package/uview-plus/index.js +4 -2
  102. package/uview-plus/libs/ctocode/index.js +120 -0
  103. package/uview-plus/libs/function/index-wu.js +1 -34
  104. package/uview-plus/package.json +3 -3
  105. package/uview-plus/readme-wu.md +1 -1
  106. package/uview-plus/libs/function/cc.js +0 -66
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <u-transition mode="fade" :show="show" :style="transStyle" :duration="fade ? 1000 : 0">
2
+ <up-transition mode="fade" :show="show" :style="transStyle" :duration="fade ? 1000 : 0">
3
3
  <view class="u-image box-border" @tap="onClick" :style="[wrapStyle, backgroundStyle]">
4
4
  <image
5
5
  v-if="!isError"
@@ -27,7 +27,7 @@
27
27
  }"
28
28
  >
29
29
  <slot name="loading">
30
- <u-icon :name="loadingIcon"></u-icon>
30
+ <up-icon :name="loadingIcon"></up-icon>
31
31
  </slot>
32
32
  </view>
33
33
  <view
@@ -38,11 +38,11 @@
38
38
  }"
39
39
  >
40
40
  <slot name="error">
41
- <u-icon :name="errorIcon"></u-icon>
41
+ <up-icon :name="errorIcon"></up-icon>
42
42
  </slot>
43
43
  </view>
44
44
  </view>
45
- </u-transition>
45
+ </up-transition>
46
46
  </template>
47
47
  <script>
48
48
  import { props } from './props';
@@ -73,7 +73,7 @@ import { addUnit, addStyle, deepMerge } from '../../libs/function/index';
73
73
  * @event {Function} click 点击图片时触发
74
74
  * @event {Function} error 图片加载失败时触发
75
75
  * @event {Function} load 图片加载成功时触发
76
- * @example <u-image width="100%" height="300px" :src="src"></u-image>
76
+ * @example <up-image width="100%" height="300px" :src="src"></up-image>
77
77
  */
78
78
  export default {
79
79
  name: 'u-image',
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <u-transition mode="fade" :custom-style="wrapStyle" :show="show" :duration="fade ? 1000 : 0">
2
+ <up-transition mode="fade" :custom-style="wrapStyle" :show="show" :duration="fade ? 1000 : 0">
3
3
  <view class="u-image" @tap="onClick" :style="[wrapStyle, backgroundStyle]">
4
4
  <image
5
5
  v-if="!isError && loadingImage"
@@ -26,7 +26,7 @@
26
26
  }"
27
27
  >
28
28
  <slot name="loading">
29
- <u-icon :name="loadingIcon" :width="width" :height="height"></u-icon>
29
+ <up-icon :name="loadingIcon" :width="width" :height="height"></up-icon>
30
30
  </slot>
31
31
  </view>
32
32
  <view
@@ -39,11 +39,11 @@
39
39
  }"
40
40
  >
41
41
  <slot name="error">
42
- <u-icon :name="errorIcon" :width="width" :height="height"></u-icon>
42
+ <up-icon :name="errorIcon" :width="width" :height="height"></up-icon>
43
43
  </slot>
44
44
  </view>
45
45
  </view>
46
- </u-transition>
46
+ </up-transition>
47
47
  </template>
48
48
 
49
49
  <script>
@@ -76,7 +76,7 @@ import props from './props.js';
76
76
  * @event {Function} click 点击图片时触发
77
77
  * @event {Function} error 图片加载失败时触发
78
78
  * @event {Function} load 图片加载成功时触发
79
- * @example <u-image width="100%" height="300px" :src="src"></u-image>
79
+ * @example <up-image width="100%" height="300px" :src="src"></up-image>
80
80
  */
81
81
  export default {
82
82
  name: 'u-image',
@@ -41,7 +41,7 @@ const dom = uni.requireNativePlugin('dom');
41
41
  * @property {String | Number} size 列表锚点文字大小,单位默认px ( 默认 14 )
42
42
  * @property {String} bgColor 列表锚点背景颜色 ( 默认 '#dedede' )
43
43
  * @property {String | Number} height 列表锚点高度,单位默认px ( 默认 32 )
44
- * @example <u-index-anchor :text="indexList[index]"></u-index-anchor>
44
+ * @example <up-index-anchor :text="indexList[index]"></up-index-anchor>
45
45
  */
46
46
  export default {
47
47
  name: 'u-index-anchor',
@@ -65,7 +65,7 @@
65
65
  </text>
66
66
  </view>
67
67
  </view>
68
- <u-transition
68
+ <up-transition
69
69
  mode="fade"
70
70
  :show="touching"
71
71
  :customStyle="{
@@ -85,7 +85,7 @@
85
85
  >
86
86
  <text class="u-index-list__indicator__text">{{ uIndexList[activeIndex] }}</text>
87
87
  </view>
88
- </u-transition>
88
+ </up-transition>
89
89
  </view>
90
90
  </template>
91
91
  <script>
@@ -3,7 +3,7 @@
3
3
  <view class="u-input__content">
4
4
  <view class="u-input__content__prefix-icon" v-if="prefixIcon || $slots.prefix">
5
5
  <slot name="prefix">
6
- <u-icon :name="prefixIcon" size="18" :customStyle="prefixIconStyle"></u-icon>
6
+ <up-icon :name="prefixIcon" size="18" :customStyle="prefixIconStyle"></up-icon>
7
7
  </slot>
8
8
  </view>
9
9
  <view class="u-input__content__field-wrapper" @tap="clickHandler">
@@ -42,11 +42,11 @@
42
42
  />
43
43
  </view>
44
44
  <view class="u-input__content__clear" v-if="isShowClear" @click="onClear">
45
- <u-icon name="close" size="11" color="#ffffff" customStyle="line-height: 12px"></u-icon>
45
+ <up-icon name="close" size="11" color="#ffffff" customStyle="line-height: 12px"></up-icon>
46
46
  </view>
47
47
  <view class="u-input__content__subfix-icon" v-if="suffixIcon || $slots.suffix">
48
48
  <slot name="suffix">
49
- <u-icon :name="suffixIcon" size="18" :customStyle="suffixIconStyle"></u-icon>
49
+ <up-icon :name="suffixIcon" size="18" :customStyle="suffixIconStyle"></up-icon>
50
50
  </slot>
51
51
  </view>
52
52
  </view>
@@ -98,7 +98,7 @@ import { addStyle, addUnit, deepMerge, formValidate, $parent, sleep, os } from '
98
98
  * @property {String} shape 输入框形状,circle-圆形,square-方形 ( 默认 'square' )
99
99
  * @property {Object} customStyle 定义需要用到的外部样式
100
100
  * @property {Boolean} ignoreCompositionEvent 是否忽略组件内对文本合成系统事件的处理。
101
- * @example <u-input v-model="value" :password="true" suffix-icon="lock-fill" />
101
+ * @example <up-input v-model="value" :password="true" suffix-icon="lock-fill" />
102
102
  */
103
103
  export default {
104
104
  name: 'u-input',
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <u-popup
2
+ <up-popup
3
3
  :overlay="overlay"
4
4
  :closeOnClickOverlay="closeOnClickOverlay"
5
5
  mode="bottom"
@@ -37,19 +37,19 @@
37
37
  </view>
38
38
  </view>
39
39
  <template v-if="mode == 'number' || mode == 'card'">
40
- <u-number-keyboard
40
+ <up-number-keyboard
41
41
  :random="random"
42
42
  @backspace="backspace"
43
43
  @change="change"
44
44
  :mode="mode"
45
45
  :dotDisabled="dotDisabled"
46
- ></u-number-keyboard>
46
+ ></up-number-keyboard>
47
47
  </template>
48
48
  <template v-else>
49
- <u-car-keyboard :random="random" :autoChange="autoChange" @backspace="backspace" @change="change"></u-car-keyboard>
49
+ <up-car-keyboard :random="random" :autoChange="autoChange" @backspace="backspace" @change="change"></up-car-keyboard>
50
50
  </template>
51
51
  </view>
52
- </u-popup>
52
+ </up-popup>
53
53
  </template>
54
54
  <script>
55
55
  import { props } from './props';
@@ -79,7 +79,7 @@ import { mixin } from '../../libs/mixin/mixin';
79
79
  * @event {Function} cancel 键盘顶部工具条左边的"取消"按钮被点击
80
80
  * @event {Function} confirm 键盘顶部工具条右边的"完成"按钮被点击
81
81
  * @event {Function} backspace 键盘退格键被点击
82
- * @example <u-keyboard mode="number" v-model="show"></u-keyboard>
82
+ * @example <up-keyboard mode="number" v-model="show"></up-keyboard>
83
83
  */
84
84
  export default {
85
85
  name: 'u-keyboard',