@10yun/cv-mobile-ui 0.5.50 → 0.5.52

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 (114) hide show
  1. package/build/common_func.js +3 -1
  2. package/build/parse-create.js +17 -8
  3. package/build/parse-pages-pkg.js +10 -4
  4. package/empty-devtools.js +3 -0
  5. package/libs/aes.js +50 -0
  6. package/libs/bledefine/bledefine.js +51 -0
  7. package/libs/bledefine/ios-ble-statuscode.js +97 -0
  8. package/libs/nfc/hexiii-nfc.js +236 -0
  9. package/libs/nfc.js +179 -0
  10. package/libs/sdk/html2canvas.js +8 -0
  11. package/libs/sdk/sdk-h5.js +585 -0
  12. package/{plugins → libs}/storage2.js +0 -5
  13. package/{plugins → libs}/storage3.js +0 -4
  14. package/libs/validators/index.js +438 -0
  15. package/libs/weapp-qrcode.js +1108 -0
  16. package/package.json +2 -3
  17. package/ui-cv/components/cv-dialog-share/tui-share.vue +16 -16
  18. package/ui-cv/components/cv-mask-png/cv-mask-png.vue +27 -0
  19. package/ui-cv/components/cv-mask-svg/cv-mask-svg.vue +22 -0
  20. package/ui-cv/components/cv-mask-svg/mixins.js +131 -0
  21. package/ui-fireui/components/{fui-actionsheet/fui-actionsheet.vue → u-action-sheet/u-action-sheet.vue} +21 -21
  22. package/ui-fireui/components/{fui-alert/fui-alert.vue → u-alert/u-alert.vue} +13 -13
  23. package/ui-fireui/components/{fui-badge/fui-badge.vue → u-badge/u-badge.vue} +16 -16
  24. package/ui-fireui/components/{fui-bottom-navigation/fui-bottom-navigation.vue → u-bottom-navigation/u-bottom-navigation.vue} +47 -46
  25. package/ui-fireui/components/{fui-bottom-popup/fui-bottom-popup.vue → u-bottom-popup/u-bottom-popup.vue} +9 -8
  26. package/ui-fireui/components/{fui-bubble-popup/fui-bubble-popup.vue → u-bubble-popup/u-bubble-popup.vue} +19 -15
  27. package/ui-fireui/components/{fui-button/fui-button.vue → u-button/u-button.vue} +69 -69
  28. package/ui-fireui/components/u-button/u-button2.vue +553 -0
  29. package/ui-fireui/components/{fui-calendar/fui-calendar.vue → u-calendar/u-calendar.vue} +78 -78
  30. package/ui-fireui/components/u-calendar/u-calendar2.vue +801 -0
  31. package/ui-fireui/components/{fui-card/fui-card.vue → u-card/u-card.vue} +24 -24
  32. package/ui-fireui/components/{fui-cascade-selection/fui-cascade-selection.vue → u-cascade-selection/u-cascade-selection.vue} +32 -32
  33. package/ui-fireui/components/{fui-circular-progress/fui-circular-progress.vue → u-circular-progress/u-circular-progress.vue} +14 -6
  34. package/ui-fireui/components/{fui-collapse/fui-collapse.vue → u-collapse/u-collapse.vue} +19 -19
  35. package/ui-fireui/components/{fui-countdown/fui-countdown.vue → u-countdown/u-countdown.vue} +28 -28
  36. package/ui-fireui/components/{fui-datetime/fui-datetime.vue → u-datetime/u-datetime.vue} +51 -51
  37. package/ui-fireui/components/{fui-divider/fui-divider.vue → u-divider/u-divider.vue} +6 -6
  38. package/ui-fireui/components/{fui-drawer/fui-drawer.vue → u-drawer/u-drawer.vue} +11 -11
  39. package/ui-fireui/components/{fui-dropdown-list/fui-dropdown-list.vue → u-dropdown-list/u-dropdown-list.vue} +11 -6
  40. package/ui-fireui/components/{fui-fab/fui-fab.vue → u-fab/u-fab.vue} +30 -30
  41. package/ui-fireui/components/{fui-footer/fui-footer.vue → u-footer/u-footer.vue} +19 -15
  42. package/ui-fireui/components/{fui-grid/fui-grid.vue → u-grid/u-grid.vue} +13 -5
  43. package/ui-fireui/components/{fui-grid-item/fui-grid-item.vue → u-grid-item/u-grid-item.vue} +19 -19
  44. package/ui-fireui/components/{fui-icon/fui-icon.vue → u-icon/u-icon.vue} +191 -191
  45. package/ui-fireui/components/{fui-image-cropper/fui-image-cropper.vue → u-image-cropper/u-image-cropper.vue} +44 -44
  46. package/ui-fireui/components/{fui-image-group/fui-image-group.vue → u-image-group/u-image-group.vue} +7 -7
  47. package/ui-fireui/components/{fui-keyboard/fui-keyboard.vue → u-keyboard/u-keyboard.vue} +29 -32
  48. package/ui-fireui/components/{fui-keyboard-input/fui-keyboard-input.vue → u-keyboard-input/u-keyboard-input.vue} +9 -9
  49. package/ui-fireui/components/{fui-list-cell/fui-list-cell.vue → u-list-cell/u-list-cell.vue} +23 -23
  50. package/ui-fireui/components/{fui-list-view/fui-list-view.vue → u-list-view/u-list-view.vue} +11 -11
  51. package/ui-fireui/components/{fui-loading/fui-loading.vue → u-loading/u-loading.vue} +6 -6
  52. package/ui-fireui/components/{fui-loadmore/fui-loadmore.vue → u-loadmore/u-loadmore.vue} +15 -15
  53. package/ui-fireui/components/{fui-modal/fui-modal.vue → u-modal/u-modal.vue} +58 -58
  54. package/ui-fireui/components/{fui-navigation-bar/fui-navigation-bar.vue → u-navigation-bar/u-navigation-bar.vue} +11 -10
  55. package/ui-fireui/components/{fui-no-data/fui-no-data.vue → u-no-data/u-no-data.vue} +11 -11
  56. package/ui-fireui/components/{fui-nomore/fui-nomore.vue → u-nomore/u-nomore.vue} +10 -10
  57. package/ui-fireui/components/{fui-numberbox/fui-numberbox.vue → u-numberbox/u-numberbox.vue} +12 -12
  58. package/ui-fireui/components/{fui-numberbox-border/fui-numberbox-border.vue → u-numberbox-border/u-numberbox-border.vue} +10 -10
  59. package/ui-fireui/components/{fui-picture-cropper/fui-picture-cropper.vue → u-picture-cropper/u-picture-cropper.vue} +42 -42
  60. package/ui-fireui/components/u-picture-cropper/u-picture-cropper.wxs +582 -0
  61. package/ui-fireui/components/{fui-round-progress/fui-round-progress.vue → u-round-progress/u-round-progress.vue} +2 -2
  62. package/ui-fireui/components/{fui-scroll-top/fui-scroll-top.vue → u-scroll-top/u-scroll-top.vue} +21 -21
  63. package/ui-fireui/components/{fui-sharemodel/fui-sharemodel.vue → u-share-model/u-share-model.vue} +24 -24
  64. package/ui-fireui/components/{fui-skeleton/fui-skeleton.vue → u-skeleton/u-skeleton.vue} +22 -22
  65. package/ui-fireui/components/{fui-steps/fui-steps.vue → u-steps/u-steps.vue} +27 -27
  66. package/ui-fireui/components/{fui-sticky/fui-sticky.vue → u-sticky/u-sticky.vue} +4 -4
  67. package/ui-fireui/components/{fui-sticky-wxs/fui-sticky-wxs.vue → u-sticky-wxs/u-sticky-wxs.vue} +7 -7
  68. package/ui-fireui/components/u-sticky-wxs/u-sticky.wxs +46 -0
  69. package/ui-fireui/components/{fui-swipe-action/fui-swipe-action.vue → u-swipe-action/u-swipe-action.vue} +11 -11
  70. package/ui-fireui/components/{fui-tabbar/fui-tabbar.vue → u-tabbar/u-tabbar.vue} +26 -30
  71. package/ui-fireui/components/{fui-tabs/fui-tabs.vue → u-tabs/u-tabs.vue} +17 -17
  72. package/ui-fireui/components/{fui-tabs2/fui-tabs2.vue → u-tabs2/u-tabs2.vue} +17 -17
  73. package/ui-fireui/components/{fui-tag/fui-tag.vue → u-tag/u-tag.vue} +362 -374
  74. package/ui-fireui/components/{fui-time-axis/fui-time-axis.vue → u-time-axis/u-time-axis.vue} +3 -3
  75. package/ui-fireui/components/{fui-timeaxis-item/fui-timeaxis-item.vue → u-timeaxis-item/u-timeaxis-item.vue} +4 -4
  76. package/ui-fireui/components/{fui-tips/fui-tips.vue → u-tips/u-tips.vue} +20 -20
  77. package/ui-fireui/components/{fui-toast/fui-toast.vue → u-toast/u-toast.vue} +13 -13
  78. package/ui-fireui/components/{fui-top-dropdown/fui-top-dropdown.vue → u-top-dropdown/u-top-dropdown.vue} +8 -8
  79. package/ui-fireui/components/{fui-upload/fui-upload.vue → u-upload/u-upload.vue} +30 -30
  80. package/ui-fireui/components/u-upload2/u-upload.vue +464 -0
  81. package/ui-fireui/components/{fui-uploadsamll/fui-uploadsamll.vue → u-uploadsamll/u-uploadsamll.vue} +34 -34
  82. package/ui-fireui/css/thorui.css +589 -0
  83. package/ui-fireui/{fireui.css → index.css} +306 -268
  84. package/ui-fireui/nvue/u-circular-progress/gcanvas/bridge/bridge-weex.js +241 -0
  85. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStyleLinearGradient.js +18 -0
  86. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStylePattern.js +8 -0
  87. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStyleRadialGradient.js +17 -0
  88. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/RenderingContext.js +666 -0
  89. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/ActiveInfo.js +11 -0
  90. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Buffer.js +21 -0
  91. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Framebuffer.js +21 -0
  92. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLenum.js +298 -0
  93. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLmethod.js +142 -0
  94. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLtype.js +23 -0
  95. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Program.js +21 -0
  96. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Renderbuffer.js +21 -0
  97. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/RenderingContext.js +1191 -0
  98. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Shader.js +22 -0
  99. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/ShaderPrecisionFormat.js +11 -0
  100. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Texture.js +22 -0
  101. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/UniformLocation.js +22 -0
  102. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/classUtils.js +3 -0
  103. package/ui-fireui/nvue/u-circular-progress/gcanvas/env/canvas.js +74 -0
  104. package/ui-fireui/nvue/u-circular-progress/gcanvas/env/image.js +96 -0
  105. package/ui-fireui/nvue/u-circular-progress/gcanvas/env/tool.js +24 -0
  106. package/ui-fireui/nvue/u-circular-progress/gcanvas/index.js +47 -0
  107. package/ui-fireui/nvue/u-circular-progress/u-circular-progress.nvue +203 -0
  108. package/ui-fireui/nvue/u-icon/icons.js +188 -0
  109. package/ui-fireui/nvue/u-icon/u-icon.vue +78 -0
  110. package/uview-plus/components/u-grid/u-grid.vue +23 -1
  111. package/ui-fireui/components/fui-picture-cropper/fui-picture-cropper.wxs +0 -560
  112. package/ui-fireui/components/fui-rate/fui-rate.vue +0 -167
  113. package/ui-fireui/components/fui-sticky-wxs/fui-sticky.wxs +0 -44
  114. /package/ui-fireui/components/{fui-calendar/fui-calendar.js → u-calendar/u-calendar.js} +0 -0
@@ -1,32 +1,32 @@
1
1
  <template>
2
2
  <!--底部分享弹窗-->
3
- <fui-bottom-popup :show="popupShow">
4
- <view class="fui-share">
5
- <view class="fui-share-title">分享到</view>
3
+ <up-bottom-popup :show="popupShow">
4
+ <view class="up-share">
5
+ <view class="up-share-title">分享到</view>
6
6
  <view class="share-main" style="padding-right: 20upx">
7
- <view class="fui-share-top" style="display: flex; align-items: center; justify-content: center">
7
+ <view class="up-share-top" style="display: flex; align-items: center; justify-content: center">
8
8
  <view
9
- class="fui-share-item"
9
+ class="up-share-item"
10
10
  style="width: 50%"
11
- :class="[shareList[0].share.length - 1 === index ? 'fui-item-last' : '']"
11
+ :class="[shareList[0].share.length - 1 === index ? 'up-item-last' : '']"
12
12
  v-for="(item, index) in shareList[0].share"
13
13
  :key="index"
14
14
  :data-index="index"
15
15
  @tap="sharbutton($event)"
16
16
  >
17
- <view class="fui-share-icon" hover-class="fui-hover" :hover-stay-time="150">
17
+ <view class="up-share-icon" hover-class="up-hover" :hover-stay-time="150">
18
18
  <iconfont :className="item.icon" :color="item.color" :size="item.size ? item.size : 36" />
19
- <!-- <fui-icon :name="item.icon" :color="item.color" :size="item.size?item.size:36"></fui-icon> -->
19
+ <!-- <up-icon :name="item.icon" :color="item.color" :size="item.size?item.size:36"></up-icon> -->
20
20
  </view>
21
- <view class="fui-share-text">{{ item.name }}</view>
21
+ <view class="up-share-text">{{ item.name }}</view>
22
22
  </view>
23
- <view class="fui-empty">!</view>
23
+ <view class="up-empty">!</view>
24
24
  </view>
25
25
  </view>
26
26
 
27
- <view class="fui-btn-cancle" @tap="popup">取消</view>
27
+ <view class="up-btn-cancle" @tap="popup">取消</view>
28
28
  </view>
29
- </fui-bottom-popup>
29
+ </up-bottom-popup>
30
30
  <!--底部分享弹窗-->
31
31
  </template>
32
32
 
@@ -98,13 +98,13 @@ export default {
98
98
  min-height: 125rpx;
99
99
  padding-bottom: 120rpx;
100
100
  }
101
- .fui-share {
101
+ .up-share {
102
102
  background: #e8e8e8;
103
103
  position: relative;
104
104
  padding-bottom: env(safe-area-inset-bottom);
105
105
  }
106
106
 
107
- .fui-share-title {
107
+ .up-share-title {
108
108
  font-size: 26rpx;
109
109
  color: #7e7e7e;
110
110
  text-align: center;
@@ -112,36 +112,36 @@ export default {
112
112
  padding: 20rpx 0 50rpx 0;
113
113
  }
114
114
 
115
- .fui-share-top,
116
- .fui-share-bottom {
115
+ .up-share-top,
116
+ .up-share-bottom {
117
117
  min-width: 101%;
118
118
  padding: 0 20rpx 0 30rpx;
119
119
  white-space: nowrap;
120
120
  }
121
121
 
122
- .fui-mt {
122
+ .up-mt {
123
123
  margin-top: 30rpx;
124
124
  padding-bottom: 150rpx;
125
125
  }
126
126
 
127
- .fui-share-item {
127
+ .up-share-item {
128
128
  /* width: 126rpx;
129
129
  display: inline-block;
130
130
  margin-right: 24rpx; */
131
131
  text-align: center;
132
132
  }
133
133
 
134
- .fui-item-last {
134
+ .up-item-last {
135
135
  margin: 0;
136
136
  }
137
137
 
138
- .fui-empty {
138
+ .up-empty {
139
139
  display: inline-block;
140
140
  width: 30rpx;
141
141
  visibility: hidden;
142
142
  }
143
143
 
144
- .fui-share-icon {
144
+ .up-share-icon {
145
145
  display: flex;
146
146
  align-items: center;
147
147
  justify-content: center;
@@ -152,7 +152,7 @@ export default {
152
152
  margin: 0 auto;
153
153
  }
154
154
 
155
- .fui-share-text {
155
+ .up-share-text {
156
156
  font-size: 24rpx;
157
157
  color: #7e7e7e;
158
158
  line-height: 24rpx;
@@ -160,7 +160,7 @@ export default {
160
160
  white-space: nowrap;
161
161
  }
162
162
 
163
- .fui-btn-cancle {
163
+ .up-btn-cancle {
164
164
  width: 100%;
165
165
  height: 100rpx;
166
166
  position: absolute;
@@ -175,7 +175,7 @@ export default {
175
175
  padding-bottom: env(safe-area-inset-bottom);
176
176
  }
177
177
 
178
- .fui-hover {
178
+ .up-hover {
179
179
  background: rgba(0, 0, 0, 0.2);
180
180
  }
181
181
  </style>
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <view
3
- class="fui-skeleton-cmomon fui-skeleton-box"
3
+ class="up-skeleton-cmomon up-skeleton-box"
4
4
  :style="{ width: winWidth + 'px', height: winHeight + 'px', backgroundColor: backgroundColor }"
5
5
  >
6
6
  <view
7
- class="fui-skeleton-cmomon"
7
+ class="up-skeleton-cmomon"
8
8
  v-for="(item, index) in skeletonElements"
9
9
  :key="index"
10
10
  :style="{
@@ -16,7 +16,7 @@
16
16
  borderRadius: getRadius(item.skeletonType, borderRadius)
17
17
  }"
18
18
  ></view>
19
- <view class="fui-loading" :class="[getLoadingType(loadingType)]" v-if="isLoading"></view>
19
+ <view class="up-loading" :class="[getLoadingType(loadingType)]" v-if="isLoading"></view>
20
20
  </view>
21
21
  </template>
22
22
 
@@ -27,7 +27,7 @@ export default {
27
27
  //选择器(外层容器)
28
28
  selector: {
29
29
  type: String,
30
- default: 'fui-skeleton'
30
+ default: 'up-skeleton'
31
31
  },
32
32
  //外层容器背景颜色
33
33
  backgroundColor: {
@@ -41,7 +41,7 @@ export default {
41
41
  },
42
42
  //骨架元素类型:矩形,圆形,带圆角矩形["rect","circular","fillet"]
43
43
  //默认所有,根据页面情况进行传值
44
- //页面对应元素class为:fui-skeleton-rect,fui-skeleton-circular,fui-skeleton-fillet
44
+ //页面对应元素class为:up-skeleton-rect,up-skeleton-circular,up-skeleton-fillet
45
45
  //如果传入的值不在下列数组中,则为自定义class值,默认按矩形渲染
46
46
  skeletonType: {
47
47
  type: Array,
@@ -102,7 +102,7 @@ export default {
102
102
  if (type && type > 0 && type < 11) {
103
103
  value = type;
104
104
  }
105
- return 'fui-loading-' + value;
105
+ return 'up-loading-' + value;
106
106
  },
107
107
  getRadius(type, val) {
108
108
  let radius = '0';
@@ -158,18 +158,18 @@ export default {
158
158
  </script>
159
159
 
160
160
  <style scoped>
161
- .fui-skeleton-cmomon {
161
+ .up-skeleton-cmomon {
162
162
  position: absolute;
163
163
  z-index: 99999;
164
164
  overflow: hidden;
165
165
  }
166
166
 
167
- .fui-skeleton-box {
167
+ .up-skeleton-box {
168
168
  left: 0;
169
169
  top: 0;
170
170
  }
171
171
 
172
- .fui-loading {
172
+ .up-loading {
173
173
  display: inline-block;
174
174
  vertical-align: middle;
175
175
  width: 40rpx;
@@ -177,7 +177,7 @@ export default {
177
177
  background: 0 0;
178
178
  border-radius: 50%;
179
179
  border: 2px solid;
180
- animation: fui-rotate 0.7s linear infinite;
180
+ animation: up-rotate 0.7s linear infinite;
181
181
  position: fixed;
182
182
  z-index: 999999;
183
183
  left: 50%;
@@ -186,47 +186,47 @@ export default {
186
186
  margin-top: -20rpx;
187
187
  }
188
188
 
189
- .fui-loading-1 {
189
+ .up-loading-1 {
190
190
  border-color: #e5e5e5 #e5e5e5 #e5e5e5 #5677fc;
191
191
  }
192
192
 
193
- .fui-loading-2 {
193
+ .up-loading-2 {
194
194
  border-color: #e5e5e5 #e5e5e5 #e5e5e5 #8f8d8e;
195
195
  }
196
196
 
197
- .fui-loading-3 {
197
+ .up-loading-3 {
198
198
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) #fff;
199
199
  }
200
200
 
201
- .fui-loading-4 {
201
+ .up-loading-4 {
202
202
  border-color: #e5e5e5 #e5e5e5 #e5e5e5 #35b06a;
203
203
  }
204
204
 
205
- .fui-loading-5 {
205
+ .up-loading-5 {
206
206
  border-color: #e5e5e5 #e5e5e5 #e5e5e5 #fc872d;
207
207
  }
208
208
 
209
- .fui-loading-6 {
209
+ .up-loading-6 {
210
210
  border-color: #e5e5e5 #e5e5e5 #e5e5e5 #eb0909;
211
211
  }
212
212
 
213
- .fui-loading-7 {
213
+ .up-loading-7 {
214
214
  border-color: #5677fc transparent #5677fc transparent;
215
215
  }
216
216
 
217
- .fui-loading-8 {
217
+ .up-loading-8 {
218
218
  border-color: #35b06a transparent #35b06a transparent;
219
219
  }
220
220
 
221
- .fui-loading-9 {
221
+ .up-loading-9 {
222
222
  border-color: #fc872d transparent #fc872d transparent;
223
223
  }
224
224
 
225
- .fui-loading-10 {
225
+ .up-loading-10 {
226
226
  border-color: #eb0909 transparent #eb0909 transparent;
227
227
  }
228
228
 
229
- @-webkit-keyframes fui-rotate {
229
+ @-webkit-keyframes up-rotate {
230
230
  0% {
231
231
  transform: rotate(0);
232
232
  }
@@ -236,7 +236,7 @@ export default {
236
236
  }
237
237
  }
238
238
 
239
- @keyframes fui-rotate {
239
+ @keyframes up-rotate {
240
240
  0% {
241
241
  transform: rotate(0);
242
242
  }
@@ -1,16 +1,16 @@
1
1
  <template>
2
- <view class="fui-steps-box" :class="{ 'fui-steps-column': direction === 'column' }">
2
+ <view class="up-steps-box" :class="{ 'up-steps-column': direction === 'column' }">
3
3
  <view
4
- class="fui-step-item"
4
+ class="up-step-item"
5
5
  :style="{ width: direction === 'column' ? '100%' : spacing }"
6
- :class="[direction === 'row' ? 'fui-step-horizontal' : 'fui-step-vertical']"
6
+ :class="[direction === 'row' ? 'up-step-horizontal' : 'up-step-vertical']"
7
7
  v-for="(item, index) in items"
8
8
  :key="index"
9
9
  >
10
- <view class="fui-step-item-ico" :style="{ width: direction === 'column' ? '36rpx' : '100%' }">
10
+ <view class="up-step-item-ico" :style="{ width: direction === 'column' ? '36rpx' : '100%' }">
11
11
  <view
12
- class="fui-step-ico"
13
- :class="[direction === 'column' ? 'fui-step-column_ico' : 'fui-step-row_ico']"
12
+ class="up-step-ico"
13
+ :class="[direction === 'column' ? 'up-step-column_ico' : 'up-step-row_ico']"
14
14
  :style="{
15
15
  width: type == 2 || activeSteps === index ? '36rpx' : '16rpx',
16
16
  height: type == 2 || activeSteps === index ? '36rpx' : '16rpx',
@@ -22,18 +22,18 @@
22
22
  <text v-if="activeSteps !== index" :style="{ color: index <= activeSteps ? '#fff' : '' }">
23
23
  {{ type == 1 ? '' : index + 1 }}
24
24
  </text>
25
- <fui-icon name="check" :size="16" color="#fff" v-if="activeSteps === index"></fui-icon>
25
+ <up-icon name="check" :size="16" color="#fff" v-if="activeSteps === index"></up-icon>
26
26
  </view>
27
27
  <view
28
- class="fui-step-line"
29
- :class="['fui-step-' + direction + '_line']"
28
+ class="up-step-line"
29
+ :class="['up-step-' + direction + '_line']"
30
30
  :style="{ backgroundColor: index <= activeSteps - 1 ? activeColor : deactiveColor }"
31
31
  v-if="index != items.length - 1"
32
32
  ></view>
33
33
  </view>
34
- <view class="fui-step-item-main" :class="['fui-step-' + direction + '_item_main']">
34
+ <view class="up-step-item-main" :class="['up-step-' + direction + '_item_main']">
35
35
  <view
36
- class="fui-step-item-title"
36
+ class="up-step-item-title"
37
37
  :style="{
38
38
  color: index <= activeSteps ? activeColor : deactiveColor,
39
39
  fontSize: titleSize + 'rpx',
@@ -44,7 +44,7 @@
44
44
  {{ item.title }}
45
45
  </view>
46
46
  <view
47
- class="fui-step-item-content"
47
+ class="up-step-item-content"
48
48
  :style="{ color: index <= activeSteps ? activeColor : deactiveColor, fontSize: descSize + 'rpx' }"
49
49
  >
50
50
  {{ item.desc }}
@@ -123,17 +123,17 @@ export default {
123
123
  </script>
124
124
 
125
125
  <style scoped>
126
- .fui-steps-box {
126
+ .up-steps-box {
127
127
  width: 100%;
128
128
  display: flex;
129
129
  justify-content: center;
130
130
  }
131
131
 
132
- .fui-steps-column {
132
+ .up-steps-column {
133
133
  flex-direction: column;
134
134
  }
135
135
 
136
- .fui-step-ico {
136
+ .up-step-ico {
137
137
  border-radius: 40rpx;
138
138
  position: relative;
139
139
  z-index: 3;
@@ -145,16 +145,16 @@ export default {
145
145
  justify-content: center;
146
146
  }
147
147
 
148
- .fui-step-row_ico {
148
+ .up-step-row_ico {
149
149
  top: 50%;
150
150
  transform: translateY(-50%);
151
151
  }
152
152
 
153
- .fui-step-column_ico {
153
+ .up-step-column_ico {
154
154
  top: 0;
155
155
  }
156
156
 
157
- .fui-step-line {
157
+ .up-step-line {
158
158
  position: absolute;
159
159
  left: 50%;
160
160
  top: 20rpx;
@@ -162,48 +162,48 @@ export default {
162
162
  height: 1rpx;
163
163
  }
164
164
 
165
- .fui-step-row_item_main {
165
+ .up-step-row_item_main {
166
166
  text-align: center;
167
167
  }
168
168
 
169
- .fui-step-item {
169
+ .up-step-item {
170
170
  font-size: 24rpx;
171
171
  position: relative;
172
172
  box-sizing: border-box;
173
173
  }
174
174
 
175
- .fui-step-item-ico {
175
+ .up-step-item-ico {
176
176
  height: 36rpx;
177
177
  line-height: 36rpx;
178
178
  text-align: center;
179
179
  }
180
180
 
181
- .fui-step-item-main {
181
+ .up-step-item-main {
182
182
  margin-top: 16rpx;
183
183
  clear: both;
184
184
  }
185
185
 
186
- .fui-step-item-title {
186
+ .up-step-item-title {
187
187
  word-break: break-all;
188
188
  }
189
189
 
190
- .fui-step-item-content {
190
+ .up-step-item-content {
191
191
  margin-top: 8rpx;
192
192
  word-break: break-all;
193
193
  }
194
194
 
195
- .fui-step-vertical {
195
+ .up-step-vertical {
196
196
  width: 100%;
197
197
  display: flex;
198
198
  padding-bottom: 60rpx;
199
199
  }
200
200
 
201
- .fui-step-column_item_main {
201
+ .up-step-column_item_main {
202
202
  margin-top: 0;
203
203
  padding-left: 20rpx;
204
204
  }
205
205
 
206
- .fui-step-column_line {
206
+ .up-step-column_line {
207
207
  position: absolute;
208
208
  height: 100%;
209
209
  top: 0;
@@ -1,8 +1,8 @@
1
1
  <template>
2
- <view class="fui-sticky-class">
2
+ <view class="up-sticky-class">
3
3
  <!--sticky 容器-->
4
4
  <view :style="{ height: stickyHeight, backgroundColor: backgroundColor }" v-if="isFixed"></view>
5
- <view :class="{ 'fui-sticky-fixed': isFixed }" :style="{ top: isFixed ? stickyTop + 'px' : 'auto' }">
5
+ <view :class="{ 'up-sticky-fixed': isFixed }" :style="{ top: isFixed ? stickyTop + 'px' : 'auto' }">
6
6
  <slot name="header"></slot>
7
7
  </view>
8
8
  <!--sticky 容器-->
@@ -123,7 +123,7 @@ export default {
123
123
  this.timer = null;
124
124
  }
125
125
  this.timer = setTimeout(() => {
126
- const className = '.fui-sticky-class';
126
+ const className = '.up-sticky-class';
127
127
  const query = uni.createSelectorQuery().in(this);
128
128
  query
129
129
  .select(className)
@@ -146,7 +146,7 @@ export default {
146
146
  </script>
147
147
 
148
148
  <style scoped>
149
- .fui-sticky-fixed {
149
+ .up-sticky-fixed {
150
150
  width: 100%;
151
151
  position: fixed;
152
152
  left: 0;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <view
3
- class="fui-sticky-class"
3
+ class="up-sticky-class"
4
4
  :change:prop="parse.stickyChange"
5
5
  :prop="scrollTop"
6
6
  :data-top="top"
@@ -11,8 +11,8 @@
11
11
  :data-index="index"
12
12
  >
13
13
  <!--sticky 容器-->
14
- <view class="fui-sticky-seat" :style="{ height: stickyHeight, backgroundColor: backgroundColor }"></view>
15
- <view class="fui-sticky-bar">
14
+ <view class="up-sticky-seat" :style="{ height: stickyHeight, backgroundColor: backgroundColor }"></view>
15
+ <view class="up-sticky-bar">
16
16
  <slot name="header"></slot>
17
17
  </view>
18
18
  <!--sticky 容器-->
@@ -20,7 +20,7 @@
20
20
  <slot name="content"></slot>
21
21
  </view>
22
22
  </template>
23
- <script src="./fui-sticky.wxs" module="parse" lang="wxs"></script>
23
+ <script src="./up-sticky.wxs" module="parse" lang="wxs"></script>
24
24
  <script>
25
25
  export default {
26
26
  name: 'fuiStickyWxs',
@@ -97,7 +97,7 @@ export default {
97
97
  this.timer = null;
98
98
  }
99
99
  this.timer = setTimeout(() => {
100
- const className = '.fui-sticky-class';
100
+ const className = '.up-sticky-class';
101
101
  const query = uni.createSelectorQuery().in(this);
102
102
  query
103
103
  .select(className)
@@ -120,14 +120,14 @@ export default {
120
120
  </script>
121
121
 
122
122
  <style scoped>
123
- .fui-sticky-fixed {
123
+ .up-sticky-fixed {
124
124
  width: 100%;
125
125
  position: fixed;
126
126
  left: 0;
127
127
  z-index: 998;
128
128
  }
129
129
 
130
- .fui-sticky-seat {
130
+ .up-sticky-seat {
131
131
  display: none;
132
132
  }
133
133
  </style>
@@ -0,0 +1,46 @@
1
+ var stickyChange = function (scrollTop, oldScrollTop, ownerInstance, ins) {
2
+ if(!oldScrollTop) return false;
3
+ var dataset = ins.getDataset()
4
+ var top =+dataset.top;
5
+ var height = + dataset.height;
6
+ var stickyTop = +dataset.stickytop;
7
+ var isNativeHeader=dataset.isnativeheader;
8
+ var isFixed = false;
9
+ var distance=stickyTop
10
+ // #ifdef H5
11
+ if (isNativeHeader) {
12
+ distance = distance - 44
13
+ distance = distance
14
+ < 0 ? 0 : distance
15
+ }
16
+ // #endif
17
+ if (dataset.container) {
18
+ isFixed = (scrollTop + distance>= top && scrollTop + distance
19
+ < top + height) ? true : false
20
+ } else {
21
+ isFixed = scrollTop + distance >= top ? true : false
22
+ }
23
+ if (isFixed) {
24
+ ownerInstance.selectComponent('.up-sticky-bar').setStyle({
25
+ "top": stickyTop + 'px'
26
+ }).addClass('up-sticky-fixed')
27
+ ownerInstance.selectComponent('.up-sticky-seat').setStyle({
28
+ "display": 'block'
29
+ })
30
+ } else {
31
+ ownerInstance.selectComponent('.up-sticky-bar').setStyle({
32
+ "top": 'auto'
33
+ }).removeClass('up-sticky-fixed')
34
+ ownerInstance.selectComponent('.up-sticky-seat').setStyle({
35
+ "display": 'none'
36
+ })
37
+ }
38
+ ownerInstance.triggerEvent("sticky", {
39
+ isFixed: isFixed,
40
+ index: parseInt(dataset.index)
41
+ })
42
+ }
43
+
44
+ export default {
45
+ stickyChange: stickyChange
46
+ }
@@ -1,19 +1,19 @@
1
1
  <template>
2
- <view class="fui-swipeout-wrap" :class="swipeoutClass">
2
+ <view class="up-swipeout-wrap" :class="swipeoutClass">
3
3
  <view
4
- class="fui-swipeout-item"
4
+ class="up-swipeout-item"
5
5
  :class="[isShowBtn ? 'swipe-action-show' : '']"
6
6
  @touchstart="handlerTouchstart"
7
7
  @touchmove="handlerTouchmove"
8
8
  @touchend="handlerTouchend"
9
9
  :style="{ transform: 'translate(' + position.pageX + 'px,0)' }"
10
10
  >
11
- <view class="fui-swipeout-content">
11
+ <view class="up-swipeout-content">
12
12
  <slot name="content"></slot>
13
13
  </view>
14
- <view class="fui-swipeout-button-right-group" v-if="actions.length > 0" @touchend.stop="loop">
14
+ <view class="up-swipeout-button-right-group" v-if="actions.length > 0" @touchend.stop="loop">
15
15
  <view
16
- class="fui-swipeout-button-right-item"
16
+ class="up-swipeout-button-right-item"
17
17
  v-for="(item, index) in actions"
18
18
  :key="index"
19
19
  :style="{ backgroundColor: item.background || '#f7f7f7', color: item.color, width: item.width + 'px' }"
@@ -26,7 +26,7 @@
26
26
  </view>
27
27
  <!--actions长度设置为0,可直接传按钮进来-->
28
28
  <view
29
- class="fui-swipeout-button-right-group"
29
+ class="up-swipeout-button-right-group"
30
30
  @touchend.stop="loop"
31
31
  @tap="handlerParentButton"
32
32
  v-if="actions.length === 0"
@@ -244,7 +244,7 @@ export default {
244
244
  </script>
245
245
 
246
246
  <style scoped>
247
- .fui-swipeout-wrap {
247
+ .up-swipeout-wrap {
248
248
  background-color: #fff;
249
249
  position: relative;
250
250
  overflow: hidden;
@@ -255,7 +255,7 @@ export default {
255
255
  z-index: 998;
256
256
  }
257
257
 
258
- .fui-swipeout-item {
258
+ .up-swipeout-item {
259
259
  width: 100%;
260
260
  /* padding: 15px 20px; */
261
261
  box-sizing: border-box;
@@ -263,12 +263,12 @@ export default {
263
263
  font-size: 14px;
264
264
  }
265
265
 
266
- .fui-swipeout-content {
266
+ .up-swipeout-content {
267
267
  white-space: nowrap;
268
268
  overflow: hidden;
269
269
  }
270
270
 
271
- .fui-swipeout-button-right-group {
271
+ .up-swipeout-button-right-group {
272
272
  position: absolute;
273
273
  right: -100%;
274
274
  top: 0;
@@ -277,7 +277,7 @@ export default {
277
277
  width: 100%;
278
278
  }
279
279
 
280
- .fui-swipeout-button-right-item {
280
+ .up-swipeout-button-right-item {
281
281
  height: 100%;
282
282
  float: left;
283
283
  white-space: nowrap;