@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.
Files changed (111) 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-copy/u-copy.vue +68 -1
  28. package/uview-plus/components/u-count-down/u-count-down.vue +1 -1
  29. package/uview-plus/components/u-count-to/u-count-to.vue +1 -1
  30. package/uview-plus/components/u-datetime-picker/u-datetime-picker.vue +3 -3
  31. package/uview-plus/components/u-divider/u-divider.vue +3 -3
  32. package/uview-plus/components/u-dropdown/u-dropdown.vue +3 -3
  33. package/uview-plus/components/u-dropdown-item/u-dropdown-item.vue +1 -1
  34. package/uview-plus/components/u-empty/u-empty.vue +3 -3
  35. package/uview-plus/components/u-form/u-form.vue +243 -1
  36. package/uview-plus/components/u-form-item/u-form-item.vue +4 -4
  37. package/uview-plus/components/u-gap/u-gap.vue +1 -1
  38. package/uview-plus/components/u-grid/u-grid.vue +1 -1
  39. package/uview-plus/components/u-grid-item/u-grid-item.vue +1 -1
  40. package/uview-plus/components/u-icon/u-icon.vue +1 -1
  41. package/uview-plus/components/u-icon/u-icon2.vue +1 -1
  42. package/uview-plus/components/u-image/u-image.vue +5 -5
  43. package/uview-plus/components/u-image-wu/u-image-wu.vue +5 -5
  44. package/uview-plus/components/u-index-anchor/u-index-anchor.vue +1 -1
  45. package/uview-plus/components/u-index-list/u-index-list.vue +2 -2
  46. package/uview-plus/components/u-input/u-input.vue +4 -4
  47. package/uview-plus/components/u-keyboard/u-keyboard.vue +6 -6
  48. package/uview-plus/components/u-lazy-load/u-lazy-load.vue +257 -3
  49. package/uview-plus/components/u-line/u-line.vue +1 -1
  50. package/uview-plus/components/u-line-progress/u-line-progress.vue +1 -1
  51. package/uview-plus/components/u-link/u-link.vue +1 -1
  52. package/uview-plus/components/u-list/u-list.vue +1 -1
  53. package/uview-plus/components/u-list-item/u-list-item.vue +1 -1
  54. package/uview-plus/components/u-loading-icon/u-loading-icon.vue +191 -3
  55. package/uview-plus/components/u-loading-page/u-loading-page.vue +4 -4
  56. package/uview-plus/components/u-loadmore/u-loadmore.vue +4 -4
  57. package/uview-plus/components/u-mask/u-mask.vue +120 -113
  58. package/uview-plus/components/u-message-input/u-message-input.vue +1 -1
  59. package/uview-plus/components/u-modal/u-modal.vue +6 -6
  60. package/uview-plus/components/u-navbar/u-navbar.vue +4 -4
  61. package/uview-plus/components/u-navbar-mini/u-navbar-mini.vue +2 -2
  62. package/uview-plus/components/u-navbar-wu/u-navbar-wu.vue +4 -4
  63. package/uview-plus/components/u-no-network/u-no-network.vue +5 -5
  64. package/uview-plus/components/u-notice-bar/u-notice-bar.vue +5 -5
  65. package/uview-plus/components/u-notify/u-notify.vue +6 -6
  66. package/uview-plus/components/u-number-box/u-number-box.vue +9 -3
  67. package/uview-plus/components/u-number-keyboard/u-number-keyboard.vue +1 -1
  68. package/uview-plus/components/u-overlay/u-overlay.vue +3 -3
  69. package/uview-plus/components/u-picker/u-picker.vue +5 -5
  70. package/uview-plus/components/u-popup/u-popup.vue +8 -8
  71. package/uview-plus/components/u-popup-wu/u-popup-wu.vue +7 -7
  72. package/uview-plus/components/u-qrcode/u-qrcode.vue +275 -3
  73. package/uview-plus/components/u-radio/u-radio.vue +4 -4
  74. package/uview-plus/components/u-radio-group/u-radio-group.vue +1 -1
  75. package/uview-plus/components/u-rate/u-rate.vue +5 -5
  76. package/uview-plus/components/u-read-more/u-read-more.vue +126 -3
  77. package/uview-plus/components/u-row/u-row.vue +1 -1
  78. package/uview-plus/components/u-row-notice/u-row-notice.vue +3 -3
  79. package/uview-plus/components/u-safe-bottom/u-safe-bottom.vue +48 -3
  80. package/uview-plus/components/u-search/u-search.vue +4 -4
  81. package/uview-plus/components/u-select/u-select.vue +175 -3
  82. package/uview-plus/components/u-skeleton/u-skeleton.vue +3 -3
  83. package/uview-plus/components/u-sku-wu/u-sku-wu.vue +4 -4
  84. package/uview-plus/components/u-status-bar/u-status-bar.vue +1 -1
  85. package/uview-plus/components/u-steps/u-steps.vue +1 -1
  86. package/uview-plus/components/u-steps-item/u-steps-item.vue +7 -7
  87. package/uview-plus/components/u-sticky/u-sticky.vue +1 -1
  88. package/uview-plus/components/u-subsection/u-subsection.vue +1 -1
  89. package/uview-plus/components/u-swipe-action/u-swipe-action.vue +1 -1
  90. package/uview-plus/components/u-swipe-action-item/u-swipe-action-item.vue +3 -3
  91. package/uview-plus/components/u-swiper/u-swiper.vue +1 -1
  92. package/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue +1 -1
  93. package/uview-plus/components/u-switch/u-switch.vue +2 -2
  94. package/uview-plus/components/u-tabbar/u-tabbar.vue +2 -2
  95. package/uview-plus/components/u-tabbar-item/u-tabbar-item.vue +9 -4
  96. package/uview-plus/components/u-table/u-table.vue +1 -1
  97. package/uview-plus/components/u-tabs/u-tabs.vue +3 -3
  98. package/uview-plus/components/u-tag/u-tag.vue +5 -5
  99. package/uview-plus/components/u-text/u-text.vue +159 -3
  100. package/uview-plus/components/u-toast/u-toast.vue +8 -8
  101. package/uview-plus/components/u-tooltip/u-tooltip.vue +6 -6
  102. package/uview-plus/components/u-upload/u-upload.vue +10 -10
  103. package/uview-plus/components/u-waterfall/u-waterfall.vue +221 -3
  104. package/uview-plus/index.js +4 -2
  105. package/uview-plus/libs/ctocode/image.js +17 -0
  106. package/uview-plus/libs/ctocode/index.js +150 -0
  107. package/uview-plus/libs/ctocode/map.js +38 -0
  108. package/uview-plus/libs/function/index-wu.js +6 -34
  109. package/uview-plus/package.json +3 -3
  110. package/uview-plus/readme-wu.md +1 -1
  111. package/uview-plus/libs/function/cc.js +0 -66
@@ -1,122 +1,129 @@
1
1
  <template>
2
- <view class="u-mask" hover-stop-propagation :style="[maskStyle, zoomStyle]" @tap="click" @touchmove.stop.prevent="() => {}" :class="{
3
- 'u-mask-zoom': zoom,
4
- 'u-mask-show': show
5
- }">
6
- <slot />
7
- </view>
2
+ <view
3
+ class="u-mask"
4
+ hover-stop-propagation
5
+ :style="[maskStyle, zoomStyle]"
6
+ @tap="click"
7
+ @touchmove.stop.prevent="() => {}"
8
+ :class="{
9
+ 'u-mask-zoom': zoom,
10
+ 'u-mask-show': show
11
+ }"
12
+ >
13
+ <slot />
14
+ </view>
8
15
  </template>
9
16
 
10
17
  <script>
11
- /**
12
- * mask 遮罩
13
- * @description 创建一个遮罩层,用于强调特定的页面元素,并阻止用户对遮罩下层的内容进行操作,一般用于弹窗场景
14
- * @tutorial https://www.uviewui.com/components/mask.html
15
- * @property {Boolean} show 是否显示遮罩(默认false)
16
- * @property {String Number} z-index z-index 层级(默认1070)
17
- * @property {Object} custom-style 自定义样式对象,见上方说明
18
- * @property {String Number} duration 动画时长,单位毫秒(默认300)
19
- * @property {Boolean} zoom 是否使用scale对遮罩进行缩放(默认true)
20
- * @property {Boolean} mask-click-able 遮罩是否可点击,为false时点击不会发送click事件(默认true)
21
- * @event {Function} click mask-click-able为true时,点击遮罩发送此事件
22
- * @example <u-mask :show="show" @click="show = false"></u-mask>
23
- */
24
- export default {
25
- name: "u-mask",
26
- props: {
27
- // 是否显示遮罩
28
- show: {
29
- type: Boolean,
30
- default: false
31
- },
32
- // 层级z-index
33
- zIndex: {
34
- type: [Number, String],
35
- default: ''
36
- },
37
- // 用户自定义样式
38
- customStyle: {
39
- type: Object,
40
- default () {
41
- return {}
42
- }
43
- },
44
- // 遮罩的动画样式, 是否使用使用zoom进行scale进行缩放
45
- zoom: {
46
- type: Boolean,
47
- default: true
48
- },
49
- // 遮罩的过渡时间,单位为ms
50
- duration: {
51
- type: [Number, String],
52
- default: 300
53
- },
54
- // 是否可以通过点击遮罩进行关闭
55
- maskClickAble: {
56
- type: Boolean,
57
- default: true
58
- }
59
- },
60
- data() {
61
- return {
62
- zoomStyle: {
63
- transform: ''
64
- },
65
- scale: 'scale(1.2, 1.2)'
66
- }
67
- },
68
- watch: {
69
- show(n) {
70
- if(n && this.zoom) {
71
- // 当展示遮罩的时候,设置scale为1,达到缩小(原来为1.2)的效果
72
- this.zoomStyle.transform = 'scale(1, 1)';
73
- } else if(!n && this.zoom) {
74
- // 当隐藏遮罩的时候,设置scale为1.2,达到放大(因为显示遮罩时已重置为1)的效果
75
- this.zoomStyle.transform = this.scale;
76
- }
77
- }
78
- },
79
- computed: {
80
- maskStyle() {
81
- let style = {};
82
- style.backgroundColor = "rgba(0, 0, 0, 0.6)";
83
- if(this.show) style.zIndex = this.zIndex ? this.zIndex : this.$u.zIndex.mask;
84
- else style.zIndex = -1;
85
- style.transition = `all ${this.duration / 1000}s ease-in-out`;
86
- // 判断用户传递的对象是否为空,不为空就进行合并
87
- if (Object.keys(this.customStyle).length) style = {
88
- ...style,
89
- ...this.customStyle
90
- };
91
- return style;
92
- }
93
- },
94
- methods: {
95
- click() {
96
- if (!this.maskClickAble) return;
97
- this.$emit('click');
98
- }
99
- }
100
- }
18
+ /**
19
+ * mask 遮罩
20
+ * @description 创建一个遮罩层,用于强调特定的页面元素,并阻止用户对遮罩下层的内容进行操作,一般用于弹窗场景
21
+ * @tutorial https://www.uviewui.com/components/mask.html
22
+ * @property {Boolean} show 是否显示遮罩(默认false)
23
+ * @property {String Number} z-index z-index 层级(默认1070)
24
+ * @property {Object} custom-style 自定义样式对象,见上方说明
25
+ * @property {String Number} duration 动画时长,单位毫秒(默认300)
26
+ * @property {Boolean} zoom 是否使用scale对遮罩进行缩放(默认true)
27
+ * @property {Boolean} mask-click-able 遮罩是否可点击,为false时点击不会发送click事件(默认true)
28
+ * @event {Function} click mask-click-able为true时,点击遮罩发送此事件
29
+ * @example <up-mask :show="show" @click="show = false"></up-mask>
30
+ */
31
+ export default {
32
+ name: 'u-mask',
33
+ props: {
34
+ // 是否显示遮罩
35
+ show: {
36
+ type: Boolean,
37
+ default: false
38
+ },
39
+ // 层级z-index
40
+ zIndex: {
41
+ type: [Number, String],
42
+ default: ''
43
+ },
44
+ // 用户自定义样式
45
+ customStyle: {
46
+ type: Object,
47
+ default() {
48
+ return {};
49
+ }
50
+ },
51
+ // 遮罩的动画样式, 是否使用使用zoom进行scale进行缩放
52
+ zoom: {
53
+ type: Boolean,
54
+ default: true
55
+ },
56
+ // 遮罩的过渡时间,单位为ms
57
+ duration: {
58
+ type: [Number, String],
59
+ default: 300
60
+ },
61
+ // 是否可以通过点击遮罩进行关闭
62
+ maskClickAble: {
63
+ type: Boolean,
64
+ default: true
65
+ }
66
+ },
67
+ data() {
68
+ return {
69
+ zoomStyle: {
70
+ transform: ''
71
+ },
72
+ scale: 'scale(1.2, 1.2)'
73
+ };
74
+ },
75
+ watch: {
76
+ show(n) {
77
+ if (n && this.zoom) {
78
+ // 当展示遮罩的时候,设置scale为1,达到缩小(原来为1.2)的效果
79
+ this.zoomStyle.transform = 'scale(1, 1)';
80
+ } else if (!n && this.zoom) {
81
+ // 当隐藏遮罩的时候,设置scale为1.2,达到放大(因为显示遮罩时已重置为1)的效果
82
+ this.zoomStyle.transform = this.scale;
83
+ }
84
+ }
85
+ },
86
+ computed: {
87
+ maskStyle() {
88
+ let style = {};
89
+ style.backgroundColor = 'rgba(0, 0, 0, 0.6)';
90
+ if (this.show) style.zIndex = this.zIndex ? this.zIndex : this.$u.zIndex.mask;
91
+ else style.zIndex = -1;
92
+ style.transition = `all ${this.duration / 1000}s ease-in-out`;
93
+ // 判断用户传递的对象是否为空,不为空就进行合并
94
+ if (Object.keys(this.customStyle).length)
95
+ style = {
96
+ ...style,
97
+ ...this.customStyle
98
+ };
99
+ return style;
100
+ }
101
+ },
102
+ methods: {
103
+ click() {
104
+ if (!this.maskClickAble) return;
105
+ this.$emit('click');
106
+ }
107
+ }
108
+ };
101
109
  </script>
102
110
 
103
111
  <style scoped>
104
-
105
- .u-mask {
106
- position: fixed;
107
- top: 0;
108
- left: 0;
109
- right: 0;
110
- bottom: 0;
111
- opacity: 0;
112
- transition: transform 0.3s;
113
- }
112
+ .u-mask {
113
+ position: fixed;
114
+ top: 0;
115
+ left: 0;
116
+ right: 0;
117
+ bottom: 0;
118
+ opacity: 0;
119
+ transition: transform 0.3s;
120
+ }
114
121
 
115
- .u-mask-show {
116
- opacity: 1;
117
- }
118
-
119
- .u-mask-zoom {
120
- transform: scale(1.2, 1.2);
121
- }
122
+ .u-mask-show {
123
+ opacity: 1;
124
+ }
125
+
126
+ .u-mask-zoom {
127
+ transform: scale(1.2, 1.2);
128
+ }
122
129
  </style>
@@ -75,7 +75,7 @@
75
75
  * @property {Boolean} disabled-keyboard 禁止点击输入框唤起系统键盘(默认false)
76
76
  * @event {Function} change 输入内容发生改变时触发,具体见官网说明
77
77
  * @event {Function} finish 输入字符个数达maxlength值时触发,见官网说明
78
- * @example <u-message-input mode="bottomLine"></u-message-input>
78
+ * @example <up-message-input mode="bottomLine"></up-message-input>
79
79
  */
80
80
  export default {
81
81
  name: 'u-message-input',
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <u-popup
2
+ <up-popup
3
3
  mode="center"
4
4
  :zoom="zoom"
5
5
  :show="show"
@@ -32,7 +32,7 @@
32
32
  <slot name="confirmButton"></slot>
33
33
  </view>
34
34
  <template v-else>
35
- <u-line></u-line>
35
+ <up-line></up-line>
36
36
  <view
37
37
  class="u-modal__button-group"
38
38
  :style="{
@@ -56,7 +56,7 @@
56
56
  {{ cancelText }}
57
57
  </text>
58
58
  </view>
59
- <u-line direction="column" v-if="showConfirmButton && showCancelButton"></u-line>
59
+ <up-line direction="column" v-if="showConfirmButton && showCancelButton"></up-line>
60
60
  <view
61
61
  class="u-modal__button-group__wrapper u-modal__button-group__wrapper--confirm"
62
62
  :hover-stay-time="150"
@@ -65,7 +65,7 @@
65
65
  v-if="showConfirmButton"
66
66
  @tap="confirmHandler"
67
67
  >
68
- <u-loading-icon v-if="loading"></u-loading-icon>
68
+ <up-loading-icon v-if="loading"></up-loading-icon>
69
69
  <text
70
70
  v-else
71
71
  class="u-modal__button-group__wrapper__text"
@@ -79,7 +79,7 @@
79
79
  </view>
80
80
  </template>
81
81
  </view>
82
- </u-popup>
82
+ </up-popup>
83
83
  </template>
84
84
  <script>
85
85
  import { props } from './props';
@@ -109,7 +109,7 @@ import { addUnit } from '../../libs/function/index';
109
109
  * @event {Function} confirm 点击确认按钮时触发
110
110
  * @event {Function} cancel 点击取消按钮时触发
111
111
  * @event {Function} close 点击遮罩关闭出发,closeOnClickOverlay为true有效
112
- * @example <u-modal :show="show" />
112
+ * @example <up-modal :show="show" />
113
113
  */
114
114
  export default {
115
115
  name: 'u-modal',
@@ -8,7 +8,7 @@
8
8
  }"
9
9
  ></view>
10
10
  <view :class="[fixed && 'u-navbar--fixed']">
11
- <u-status-bar v-if="safeAreaInsetTop" :bgColor="bgColor"></u-status-bar>
11
+ <up-status-bar v-if="safeAreaInsetTop" :bgColor="bgColor"></up-status-bar>
12
12
  <view
13
13
  class="u-navbar__content"
14
14
  :class="[border && 'u-border-bottom']"
@@ -24,7 +24,7 @@
24
24
  @tap="leftClick"
25
25
  >
26
26
  <slot name="left">
27
- <u-icon v-if="leftIcon" :name="leftIcon" :size="leftIconSize" :color="leftIconColor"></u-icon>
27
+ <up-icon v-if="leftIcon" :name="leftIcon" :size="leftIconSize" :color="leftIconColor"></up-icon>
28
28
  <text
29
29
  v-if="leftText"
30
30
  :style="{
@@ -52,7 +52,7 @@
52
52
  </slot>
53
53
  <view class="u-navbar__content__right" v-if="$slots.right || rightIcon || rightText" @tap="rightClick">
54
54
  <slot name="right">
55
- <u-icon v-if="rightIcon" :name="rightIcon" size="20"></u-icon>
55
+ <up-icon v-if="rightIcon" :name="rightIcon" size="20"></up-icon>
56
56
  <text v-if="rightText" class="u-navbar__content__right__text">{{ rightText }}</text>
57
57
  </slot>
58
58
  </view>
@@ -89,7 +89,7 @@ import { addUnit, addStyle, getPx, getWindowInfo } from '../../libs/function/ind
89
89
  * @property {Object | String} titleStyle 标题的样式,对象或字符串
90
90
  * @event {Function} leftClick 点击左侧区域
91
91
  * @event {Function} rightClick 点击右侧区域
92
- * @example <u-navbar title="剑未配妥,出门已是江湖" left-text="返回" right-text="帮助" @click-left="onClickBack" @click-right="onClickRight"></u-navbar>
92
+ * @example <up-navbar title="剑未配妥,出门已是江湖" left-text="返回" right-text="帮助" @click-left="onClickBack" @click-right="onClickRight"></up-navbar>
93
93
  */
94
94
  export default {
95
95
  name: 'u-navbar',
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <view class="u-navbar-mini" :class="[customClass]">
3
3
  <view class="u-navbar-mini__inner" :class="[fixed && 'u-navbar-mini--fixed']">
4
- <u-status-bar v-if="safeAreaInsetTop"></u-status-bar>
4
+ <up-status-bar v-if="safeAreaInsetTop"></up-status-bar>
5
5
  <view
6
6
  class="u-navbar-mini__content"
7
7
  :style="{
@@ -53,7 +53,7 @@ import { addUnit, addStyle, getPx, sys } from '../../libs/function/index';
53
53
  * @property {Object | String} titleStyle 标题的样式,对象或字符串
54
54
  * @event {Function} leftClick 点击左侧区域
55
55
  * @event {Function} rightClick 点击右侧区域
56
- * @example <u-navbar-mini @click-left="onClickBack"></u-navbar-mini>
56
+ * @example <up-navbar-mini @click-left="onClickBack"></up-navbar-mini>
57
57
  */
58
58
  export default {
59
59
  name: 'u-navbar-mini',
@@ -8,7 +8,7 @@
8
8
  }"
9
9
  ></view>
10
10
  <view :class="[fixed && 'u-navbar--fixed']" :style="fixed && `top: ${keyboardHeight || '0rpx'}`">
11
- <u-status-bar v-if="safeAreaInsetTop" :bgColor="bgColor"></u-status-bar>
11
+ <up-status-bar v-if="safeAreaInsetTop" :bgColor="bgColor"></up-status-bar>
12
12
  <view
13
13
  class="u-navbar__content"
14
14
  :class="[border && 'u-border-bottom']"
@@ -25,7 +25,7 @@
25
25
  @tap="leftClick"
26
26
  >
27
27
  <slot name="left">
28
- <u-icon v-if="leftIcon" :name="leftIcon" :size="leftIconSize" :color="leftIconColor"></u-icon>
28
+ <up-icon v-if="leftIcon" :name="leftIcon" :size="leftIconSize" :color="leftIconColor"></up-icon>
29
29
  <text
30
30
  v-if="leftText"
31
31
  :style="{
@@ -52,7 +52,7 @@
52
52
  </slot>
53
53
  <view class="u-navbar__content__right" :style="{ right: mpCapsuleRightPosition }" @tap="rightClick">
54
54
  <slot name="right">
55
- <u-icon v-if="rightIcon" :name="rightIcon" size="20"></u-icon>
55
+ <up-icon v-if="rightIcon" :name="rightIcon" size="20"></up-icon>
56
56
  <text v-if="rightText" class="u-navbar__content__right__text">{{ rightText }}</text>
57
57
  </slot>
58
58
  </view>
@@ -90,7 +90,7 @@ import props from './props.js';
90
90
  * @property {Boolean} keyboardHeight 键盘高度,请在input、textarea等输入框定期页面时通过聚焦、失焦事件的e.detail.height并传给keyboardHeight即可,避免因页面顶起导致的导航栏消失
91
91
  * @event {Function} leftClick 点击左侧区域
92
92
  * @event {Function} rightClick 点击右侧区域
93
- * @example <u-navbar title="酒尚余温,入口不识乾坤" left-text="返回" right-text="帮助" @click-left="onClickBack" @click-right="onClickRight"></u-navbar>
93
+ * @example <up-navbar title="酒尚余温,入口不识乾坤" left-text="返回" right-text="帮助" @click-left="onClickBack" @click-right="onClickRight"></up-navbar>
94
94
  */
95
95
  export default {
96
96
  name: 'u-navbar',
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <u-overlay
2
+ <up-overlay
3
3
  :show="!isConnected"
4
4
  :zIndex="zIndex"
5
5
  @touchmove.stop.prevent="noop"
@@ -10,7 +10,7 @@
10
10
  }"
11
11
  >
12
12
  <view class="u-no-network">
13
- <u-icon :name="image" size="150" imgMode="widthFit" class="u-no-network__error-icon"></u-icon>
13
+ <up-icon :name="image" size="150" imgMode="widthFit" class="u-no-network__error-icon"></up-icon>
14
14
  <text class="u-no-network__tips">{{ tips }}</text>
15
15
  <!-- 只有APP平台,才能跳转设置页,因为需要调用plus环境 -->
16
16
  <!-- #ifdef APP-PLUS -->
@@ -20,10 +20,10 @@
20
20
  </view>
21
21
  <!-- #endif -->
22
22
  <view class="u-no-network__retry">
23
- <u-button size="mini" text="重试" type="primary" plain @click="retry"></u-button>
23
+ <up-button size="mini" text="重试" type="primary" plain @click="retry"></up-button>
24
24
  </view>
25
25
  </view>
26
- </u-overlay>
26
+ </up-overlay>
27
27
  </template>
28
28
  <script>
29
29
  import { props } from './props';
@@ -38,7 +38,7 @@ import { toast, getDeviceInfo } from '../../libs/function/index';
38
38
  * @property {String | Number} zIndex 组件的z-index值
39
39
  * @property {String} image 无网络的图片提示,可用的src地址或base64图片
40
40
  * @event {Function} retry 用户点击页面的"重试"按钮时触发
41
- * @example <u-no-network></u-no-network>
41
+ * @example <up-no-network></up-no-network>
42
42
  */
43
43
  export default {
44
44
  name: 'u-no-network',
@@ -10,7 +10,7 @@
10
10
  ]"
11
11
  >
12
12
  <template v-if="direction === 'column' || (direction === 'row' && step)">
13
- <u-column-notice
13
+ <up-column-notice
14
14
  :color="color"
15
15
  :bgColor="bgColor"
16
16
  :text="text"
@@ -23,10 +23,10 @@
23
23
  :justifyContent="justifyContent"
24
24
  @close="close"
25
25
  @click="click"
26
- ></u-column-notice>
26
+ ></up-column-notice>
27
27
  </template>
28
28
  <template v-else>
29
- <u-row-notice
29
+ <up-row-notice
30
30
  :color="color"
31
31
  :bgColor="bgColor"
32
32
  :text="text"
@@ -38,7 +38,7 @@
38
38
  :icon="icon"
39
39
  @close="close"
40
40
  @click="click"
41
- ></u-row-notice>
41
+ ></up-row-notice>
42
42
  </template>
43
43
  </view>
44
44
  </template>
@@ -69,7 +69,7 @@ import uColumnNotice from '../u-column-notice/u-column-notice.vue';
69
69
  *
70
70
  * @event {Function} click 点击通告文字触发
71
71
  * @event {Function} close 点击右侧关闭图标触发
72
- * @example <u-notice-bar :more-icon="true" :list="list"></u-notice-bar>
72
+ * @example <up-notice-bar :more-icon="true" :list="list"></up-notice-bar>
73
73
  */
74
74
  export default {
75
75
  name: 'u-notice-bar',
@@ -1,16 +1,16 @@
1
1
  <template>
2
- <u-transition mode="slide-down" :customStyle="containerStyle" :show="open">
2
+ <up-transition mode="slide-down" :customStyle="containerStyle" :show="open">
3
3
  <view class="u-notify" :class="[`u-notify--${tmpConfig.type}`]" :style="[backgroundColor, addStyle(customStyle)]">
4
- <u-status-bar v-if="tmpConfig.safeAreaInsetTop"></u-status-bar>
4
+ <up-status-bar v-if="tmpConfig.safeAreaInsetTop"></up-status-bar>
5
5
  <view class="u-notify__warpper">
6
6
  <slot name="icon">
7
- <u-icon
7
+ <up-icon
8
8
  v-if="['success', 'warning', 'error'].includes(tmpConfig.type)"
9
9
  :name="tmpConfig.icon"
10
10
  :color="tmpConfig.color"
11
11
  :size="1.3 * tmpConfig.fontSize"
12
12
  :customStyle="{ marginRight: '4px' }"
13
- ></u-icon>
13
+ ></up-icon>
14
14
  </slot>
15
15
  <text
16
16
  class="u-notify__warpper__text"
@@ -23,7 +23,7 @@
23
23
  </text>
24
24
  </view>
25
25
  </view>
26
- </u-transition>
26
+ </up-transition>
27
27
  </template>
28
28
  <script>
29
29
  import { props } from './props';
@@ -46,7 +46,7 @@ import { addUnit, addStyle, deepMerge } from '../../libs/function/index';
46
46
  * @property {Object} customStyle 组件的样式,对象形式
47
47
  * @event {Function} open 开启组件时调用的函数
48
48
  * @event {Function} close 关闭组件式调用的函数
49
- * @example <u-notify message="Hi uView"></u-notify>
49
+ * @example <up-notify message="Hi uView"></up-notify>
50
50
  */
51
51
  export default {
52
52
  name: 'u-notify',
@@ -20,7 +20,13 @@
20
20
  :class="{ 'u-number-box__minus--disabled': isDisabled('minus') }"
21
21
  :style="[buttonStyle('minus')]"
22
22
  >
23
- <u-icon name="minus" :color="isDisabled('minus') ? '#c8c9cc' : '#323233'" size="15" bold :customStyle="iconStyle"></u-icon>
23
+ <up-icon
24
+ name="minus"
25
+ :color="isDisabled('minus') ? '#c8c9cc' : '#323233'"
26
+ size="15"
27
+ bold
28
+ :customStyle="iconStyle"
29
+ ></up-icon>
24
30
  </view>
25
31
  <template v-if="!hideMinus">
26
32
  <slot name="input">
@@ -74,7 +80,7 @@
74
80
  :class="{ 'u-number-box__minus--disabled': isDisabled('plus') }"
75
81
  :style="[buttonStyle('plus')]"
76
82
  >
77
- <u-icon name="plus" :color="isDisabled('plus') ? '#c8c9cc' : '#323233'" size="15" bold :customStyle="iconStyle"></u-icon>
83
+ <up-icon name="plus" :color="isDisabled('plus') ? '#c8c9cc' : '#323233'" size="15" bold :customStyle="iconStyle"></up-icon>
78
84
  </view>
79
85
  </view>
80
86
  </template>
@@ -113,7 +119,7 @@ import { getPx, addUnit } from '../../libs/function/index';
113
119
  * @event {Function} onBlur 输入框失去焦点
114
120
  * @event {Function} onInput 输入框值发生变化
115
121
  * @event {Function} onChange
116
- * @example <u-number-box v-model="value" @change="valChange"></u-number-box>
122
+ * @example <up-number-box v-model="value" @change="valChange"></up-number-box>
117
123
  */
118
124
  export default {
119
125
  name: 'u-number-box',
@@ -19,7 +19,7 @@
19
19
  @touchstart.stop="backspaceClick"
20
20
  @touchend="clearTimer"
21
21
  >
22
- <u-icon name="backspace" color="#303133" size="28"></u-icon>
22
+ <up-icon name="backspace" color="#303133" size="28"></up-icon>
23
23
  </view>
24
24
  </view>
25
25
  </view>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <u-transition
2
+ <up-transition
3
3
  :show="show"
4
4
  custom-class="u-overlay"
5
5
  :duration="duration"
@@ -8,7 +8,7 @@
8
8
  @touchmove.stop.prevent="noop"
9
9
  >
10
10
  <slot />
11
- </u-transition>
11
+ </up-transition>
12
12
  </template>
13
13
  <script>
14
14
  import { props } from './props';
@@ -25,7 +25,7 @@ import { addStyle, deepMerge } from '../../libs/function/index';
25
25
  * @property {String | Number} opacity 不透明度值,当做rgba的第四个参数 (默认 0.5 )
26
26
  * @property {Object} customStyle 定义需要用到的外部样式
27
27
  * @event {Function} click 点击遮罩发送事件
28
- * @example <u-overlay :show="show" @click="show = false"></u-overlay>
28
+ * @example <up-overlay :show="show" @click="show = false"></up-overlay>
29
29
  */
30
30
  export default {
31
31
  name: 'u-overlay',
@@ -11,9 +11,9 @@
11
11
  ></up-input>
12
12
  <div class="input-cover"></div>
13
13
  </view>
14
- <u-popup :show="show || (hasInput && showByClickInput)" :mode="popupMode" :zIndex="zIndex" @close="closeHandler">
14
+ <up-popup :show="show || (hasInput && showByClickInput)" :mode="popupMode" :zIndex="zIndex" @close="closeHandler">
15
15
  <view class="u-picker">
16
- <u-toolbar
16
+ <up-toolbar
17
17
  v-if="showToolbar"
18
18
  :cancelColor="cancelColor"
19
19
  :confirmColor="confirmColor"
@@ -27,7 +27,7 @@
27
27
  <template #right>
28
28
  <slot name="toolbar-right"></slot>
29
29
  </template>
30
- </u-toolbar>
30
+ </up-toolbar>
31
31
  <slot name="toolbar-bottom"></slot>
32
32
  <picker-view
33
33
  class="u-picker__view"
@@ -58,10 +58,10 @@
58
58
  </picker-view-column>
59
59
  </picker-view>
60
60
  <view v-if="loading" class="u-picker--loading">
61
- <u-loading-icon mode="circle"></u-loading-icon>
61
+ <up-loading-icon mode="circle"></up-loading-icon>
62
62
  </view>
63
63
  </view>
64
- </u-popup>
64
+ </up-popup>
65
65
  </view>
66
66
  </template>
67
67
  <script>