@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,374 +1,362 @@
1
- <template>
2
- <view
3
- class="fui-tag"
4
- :hover-class="hover ? 'fui-tag-opcity' : ''"
5
- :hover-stay-time="150"
6
- :class="[
7
- originLeft ? 'fui-origin-left' : '',
8
- originRight ? 'fui-origin-right' : '',
9
- getClassName(shape, plain),
10
- getTypeClass(type, plain)
11
- ]"
12
- :style="{
13
- transform: `scale(${scaleMultiple})`,
14
- padding: padding,
15
- margin: margin,
16
- fontSize: size,
17
- lineHeight: size,
18
- width: width
19
- }"
20
- @tap="handleClick"
21
- >
22
- <slot></slot>
23
- </view>
24
- </template>
25
-
26
- <script>
27
- export default {
28
- name: 'fuiTag',
29
- props: {
30
- type: {
31
- type: String,
32
- default: 'primary'
33
- },
34
- //padding
35
- padding: {
36
- type: String,
37
- default: '16rpx 26rpx'
38
- },
39
- margin: {
40
- type: String,
41
- default: '0'
42
- },
43
- //文字大小 rpx
44
- size: {
45
- type: String,
46
- default: '28rpx'
47
- },
48
- width: {
49
- type: String,
50
- default: 'auto'
51
- },
52
- // circle, square,circleLeft,circleRight
53
- shape: {
54
- type: String,
55
- default: 'square'
56
- },
57
- //是否空心
58
- plain: {
59
- type: Boolean,
60
- default: false
61
- },
62
- //点击效果
63
- hover: {
64
- type: Boolean,
65
- default: false
66
- },
67
- //缩放倍数
68
- scaleMultiple: {
69
- type: Number,
70
- default: 1
71
- },
72
- originLeft: {
73
- type: Boolean,
74
- default: false
75
- },
76
- originRight: {
77
- type: Boolean,
78
- default: false
79
- },
80
- index: {
81
- type: Number,
82
- default: 0
83
- }
84
- },
85
- methods: {
86
- handleClick() {
87
- this.$emit('click', { index: this.index });
88
- },
89
- getTypeClass(type, plain) {
90
- return plain ? 'fui-' + type + '-outline' : 'fui-' + type;
91
- },
92
- getClassName(shape, plain) {
93
- //circle, square,circleLeft,circleRight
94
- var className = plain ? 'fui-tag-outline ' : '';
95
- if (shape != 'square') {
96
- if (shape == 'circle') {
97
- className = className + (plain ? 'fui-tag-outline-fillet' : 'fui-tag-fillet');
98
- } else if (shape == 'circleLeft') {
99
- className = className + 'fui-tag-fillet-left';
100
- } else if (shape == 'circleRight') {
101
- className = className + 'fui-tag-fillet-right';
102
- }
103
- }
104
- return className;
105
- }
106
- }
107
- };
108
- </script>
109
-
110
- <style scoped>
111
- /* color start*/
112
-
113
- .fui-primary {
114
- background-color: #5677fc !important;
115
- color: #fff;
116
- }
117
-
118
- .fui-light-primary {
119
- background-color: #5c8dff !important;
120
- color: #fff;
121
- }
122
-
123
- .fui-dark-primary {
124
- background-color: #4a67d6 !important;
125
- color: #fff;
126
- }
127
-
128
- .fui-dLight-primary {
129
- background-color: #4e77d9 !important;
130
- color: #fff;
131
- }
132
-
133
- .fui-danger {
134
- background-color: #ed3f14 !important;
135
- color: #fff;
136
- }
137
-
138
- .fui-red {
139
- background-color: #ff201f !important;
140
- color: #fff;
141
- }
142
-
143
- .fui-warning {
144
- background-color: #ff7900 !important;
145
- color: #fff;
146
- }
147
-
148
- .fui-green {
149
- background-color: #19be6b !important;
150
- color: #fff;
151
- }
152
-
153
- .fui-high-green {
154
- background-color: #52dcae !important;
155
- color: #52dcae;
156
- }
157
-
158
- .fui-black {
159
- background-color: #000 !important;
160
- color: #fff;
161
- }
162
-
163
- .fui-white {
164
- background-color: #fff !important;
165
- color: #333 !important;
166
- }
167
-
168
- .fui-translucent {
169
- background-color: rgba(0, 0, 0, 0.7);
170
- }
171
-
172
- .fui-light-black {
173
- background-color: #333 !important;
174
- }
175
-
176
- .fui-gray {
177
- background-color: #ededed !important;
178
- }
179
-
180
- .fui-phcolor-gray {
181
- background-color: #ccc !important;
182
- }
183
-
184
- .fui-divider-gray {
185
- background-color: #eaeef1 !important;
186
- }
187
-
188
- .fui-btn-gray {
189
- background-color: #ededed !important;
190
- color: #999 !important;
191
- }
192
-
193
- .fui-hover-gray {
194
- background-color: #f7f7f9 !important;
195
- }
196
-
197
- .fui-bg-gray {
198
- background-color: #fafafa !important;
199
- }
200
-
201
- .fui-light-blue {
202
- background-color: #ecf6fd;
203
- color: #4dabeb !important;
204
- }
205
-
206
- .fui-light-brownish {
207
- background-color: rgb(201, 78, 78, 0.2);
208
- color: #c94e4e !important;
209
- }
210
-
211
- .fui-light-orange {
212
- background-color: #fef5eb;
213
- color: #faa851 !important;
214
- }
215
-
216
- .fui-light-green {
217
- background-color: rgb(43, 161, 133, 0.1);
218
- color: #2ba185 !important;
219
- }
220
-
221
- .fui-primary-outline::after {
222
- border: 1px solid #5677fc !important;
223
- }
224
-
225
- .fui-primary-outline {
226
- color: #5677fc !important;
227
- background-color: none;
228
- }
229
-
230
- .fui-danger-outline {
231
- color: #ed3f14 !important;
232
- background-color: none;
233
- }
234
-
235
- .fui-danger-outline::after {
236
- border: 1px solid #ed3f14 !important;
237
- }
238
-
239
- .fui-red-outline {
240
- color: #ff201f !important;
241
- background-color: none;
242
- }
243
-
244
- .fui-red-outline::after {
245
- border: 1px solid #ff201f !important;
246
- }
247
-
248
- .fui-warning-outline {
249
- color: #ff7900 !important;
250
- background-color: none;
251
- }
252
-
253
- .fui-warning-outline::after {
254
- border: 1px solid #ff7900 !important;
255
- }
256
-
257
- .fui-green-outline {
258
- color: #44cf85 !important;
259
- background-color: none;
260
- }
261
-
262
- .fui-green-outline::after {
263
- border: 1px solid #44cf85 !important;
264
- }
265
-
266
- .fui-high-green-outline {
267
- color: #52dcae !important;
268
- background-color: none;
269
- }
270
-
271
- .fui-high-green-outline::after {
272
- border: 1px solid #52dcae !important;
273
- }
274
-
275
- .fui-gray-outline {
276
- color: #999 !important;
277
- background-color: none;
278
- }
279
-
280
- .fui-gray-outline::after {
281
- border: 1px solid #ccc !important;
282
- }
283
-
284
- .fui-black-outline {
285
- color: #333 !important;
286
- background-color: none;
287
- }
288
-
289
- .fui-black-outline::after {
290
- border: 1px solid #333 !important;
291
- }
292
-
293
- .fui-white-outline {
294
- color: #fff !important;
295
- background-color: none;
296
- }
297
-
298
- .fui-white-outline::after {
299
- border: 1px solid #fff !important;
300
- }
301
-
302
- /* color end*/
303
-
304
- /* tag start*/
305
-
306
- .fui-tag {
307
- display: flex;
308
- align-items: center;
309
- justify-content: center;
310
- border-radius: 6rpx;
311
- flex-shrink: 0;
312
- }
313
-
314
- .fui-tag-outline {
315
- position: relative;
316
- background-color: none;
317
- color: #5677fc;
318
- }
319
-
320
- .fui-tag-outline::after {
321
- content: '';
322
- position: absolute;
323
- width: 200%;
324
- height: 200%;
325
- -webkit-transform-origin: 0 0;
326
- transform-origin: 0 0;
327
- -webkit-transform: scale(0.5, 0.5);
328
- transform: scale(0.5, 0.5);
329
- -webkit-box-sizing: border-box;
330
- box-sizing: border-box;
331
- left: 0;
332
- top: 0;
333
- border-radius: 12rpx;
334
- }
335
-
336
- .fui-tag-fillet {
337
- border-radius: 50rpx;
338
- }
339
-
340
- .fui-white.fui-tag-fillet::after {
341
- border-radius: 80rpx;
342
- }
343
-
344
- .fui-tag-outline-fillet::after {
345
- border-radius: 80rpx;
346
- }
347
-
348
- .fui-tag-fillet-left {
349
- border-radius: 50rpx 0 0 50rpx;
350
- }
351
-
352
- .fui-tag-fillet-right {
353
- border-radius: 0 50rpx 50rpx 0;
354
- }
355
-
356
- .fui-tag-fillet-left.fui-tag-outline::after {
357
- border-radius: 100rpx 0 0 100rpx;
358
- }
359
-
360
- .fui-tag-fillet-right.fui-tag-outline::after {
361
- border-radius: 0 100rpx 100rpx 0;
362
- }
363
-
364
- /* tag end*/
365
- .fui-origin-left {
366
- transform-origin: 0 center;
367
- }
368
- .fui-origin-right {
369
- transform-origin: 100% center;
370
- }
371
- .fui-tag-opcity {
372
- opacity: 0.5;
373
- }
374
- </style>
1
+ <template>
2
+ <view
3
+ class="up-tag"
4
+ :hover-class="hover ? 'up-tag-opcity' : ''"
5
+ :hover-stay-time="150"
6
+ :class="[
7
+ originLeft ? 'up-origin-left' : '',
8
+ originRight ? 'up-origin-right' : '',
9
+ getClassName(shape, plain),
10
+ getTypeClass(type, plain)
11
+ ]"
12
+ :style="{ transform: `scale(${scaleMultiple})`, padding: padding, margin: margin, fontSize: size, lineHeight: size }"
13
+ @tap="handleClick"
14
+ >
15
+ <slot></slot>
16
+ </view>
17
+ </template>
18
+
19
+ <script>
20
+ export default {
21
+ name: 'fuiTag',
22
+ props: {
23
+ type: {
24
+ type: String,
25
+ default: 'primary'
26
+ },
27
+ //padding
28
+ padding: {
29
+ type: String,
30
+ default: '16rpx 26rpx'
31
+ },
32
+ margin: {
33
+ type: String,
34
+ default: '0'
35
+ },
36
+ //文字大小 rpx
37
+ size: {
38
+ type: String,
39
+ default: '28rpx'
40
+ },
41
+ // circle, square,circleLeft,circleRight
42
+ shape: {
43
+ type: String,
44
+ default: 'square'
45
+ },
46
+ //是否空心
47
+ plain: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ //点击效果
52
+ hover: {
53
+ type: Boolean,
54
+ default: false
55
+ },
56
+ //缩放倍数
57
+ scaleMultiple: {
58
+ type: Number,
59
+ default: 1
60
+ },
61
+ originLeft: {
62
+ type: Boolean,
63
+ default: false
64
+ },
65
+ originRight: {
66
+ type: Boolean,
67
+ default: false
68
+ },
69
+ index: {
70
+ type: Number,
71
+ default: 0
72
+ }
73
+ },
74
+ methods: {
75
+ handleClick() {
76
+ this.$emit('click', { index: this.index });
77
+ },
78
+ getTypeClass(type, plain) {
79
+ return plain ? 'up-' + type + '-outline' : 'up-' + type;
80
+ },
81
+ getClassName(shape, plain) {
82
+ //circle, square,circleLeft,circleRight
83
+ var className = plain ? 'up-tag-outline ' : '';
84
+ if (shape != 'square') {
85
+ if (shape == 'circle') {
86
+ className = className + (plain ? 'up-tag-outline-fillet' : 'up-tag-fillet');
87
+ } else if (shape == 'circleLeft') {
88
+ className = className + 'up-tag-fillet-left';
89
+ } else if (shape == 'circleRight') {
90
+ className = className + 'up-tag-fillet-right';
91
+ }
92
+ }
93
+ return className;
94
+ }
95
+ }
96
+ };
97
+ </script>
98
+
99
+ <style scoped>
100
+ /* color start*/
101
+
102
+ .up-primary {
103
+ background-color: #5677fc !important;
104
+ color: #fff;
105
+ }
106
+
107
+ .up-light-primary {
108
+ background-color: #5c8dff !important;
109
+ color: #fff;
110
+ }
111
+
112
+ .up-dark-primary {
113
+ background-color: #4a67d6 !important;
114
+ color: #fff;
115
+ }
116
+
117
+ .up-dLight-primary {
118
+ background-color: #4e77d9 !important;
119
+ color: #fff;
120
+ }
121
+
122
+ .up-danger {
123
+ background-color: #ed3f14 !important;
124
+ color: #fff;
125
+ }
126
+
127
+ .up-red {
128
+ background-color: #ff201f !important;
129
+ color: #fff;
130
+ }
131
+
132
+ .up-warning {
133
+ background-color: #ff7900 !important;
134
+ color: #fff;
135
+ }
136
+
137
+ .up-green {
138
+ background-color: #19be6b !important;
139
+ color: #fff;
140
+ }
141
+
142
+ .up-high-green {
143
+ background-color: #52dcae !important;
144
+ color: #52dcae;
145
+ }
146
+
147
+ .up-black {
148
+ background-color: #000 !important;
149
+ color: #fff;
150
+ }
151
+
152
+ .up-white {
153
+ background-color: #fff !important;
154
+ color: #333 !important;
155
+ }
156
+
157
+ .up-translucent {
158
+ background-color: rgba(0, 0, 0, 0.7);
159
+ }
160
+
161
+ .up-light-black {
162
+ background-color: #333 !important;
163
+ }
164
+
165
+ .up-gray {
166
+ background-color: #ededed !important;
167
+ }
168
+
169
+ .up-phcolor-gray {
170
+ background-color: #ccc !important;
171
+ }
172
+
173
+ .up-divider-gray {
174
+ background-color: #eaeef1 !important;
175
+ }
176
+
177
+ .up-btn-gray {
178
+ background-color: #ededed !important;
179
+ color: #999 !important;
180
+ }
181
+
182
+ .up-hover-gray {
183
+ background-color: #f7f7f9 !important;
184
+ }
185
+
186
+ .up-bg-gray {
187
+ background-color: #fafafa !important;
188
+ }
189
+
190
+ .up-light-blue {
191
+ background-color: #ecf6fd;
192
+ color: #4dabeb !important;
193
+ }
194
+
195
+ .up-light-brownish {
196
+ background-color: #fcebef;
197
+ color: #8a5966 !important;
198
+ }
199
+
200
+ .up-light-orange {
201
+ background-color: #fef5eb;
202
+ color: #faa851 !important;
203
+ }
204
+
205
+ .up-light-green {
206
+ background-color: #e8f6e8;
207
+ color: #44cf85 !important;
208
+ }
209
+
210
+ .up-primary-outline::after {
211
+ border: 1px solid #5677fc !important;
212
+ }
213
+
214
+ .up-primary-outline {
215
+ color: #5677fc !important;
216
+ background-color: none;
217
+ }
218
+
219
+ .up-danger-outline {
220
+ color: #ed3f14 !important;
221
+ background-color: none;
222
+ }
223
+
224
+ .up-danger-outline::after {
225
+ border: 1px solid #ed3f14 !important;
226
+ }
227
+
228
+ .up-red-outline {
229
+ color: #ff201f !important;
230
+ background-color: none;
231
+ }
232
+
233
+ .up-red-outline::after {
234
+ border: 1px solid #ff201f !important;
235
+ }
236
+
237
+ .up-warning-outline {
238
+ color: #ff7900 !important;
239
+ background-color: none;
240
+ }
241
+
242
+ .up-warning-outline::after {
243
+ border: 1px solid #ff7900 !important;
244
+ }
245
+
246
+ .up-green-outline {
247
+ color: #44cf85 !important;
248
+ background-color: none;
249
+ }
250
+
251
+ .up-green-outline::after {
252
+ border: 1px solid #44cf85 !important;
253
+ }
254
+
255
+ .up-high-green-outline {
256
+ color: #52dcae !important;
257
+ background-color: none;
258
+ }
259
+
260
+ .up-high-green-outline::after {
261
+ border: 1px solid #52dcae !important;
262
+ }
263
+
264
+ .up-gray-outline {
265
+ color: #999 !important;
266
+ background-color: none;
267
+ }
268
+
269
+ .up-gray-outline::after {
270
+ border: 1px solid #ccc !important;
271
+ }
272
+
273
+ .up-black-outline {
274
+ color: #333 !important;
275
+ background-color: none;
276
+ }
277
+
278
+ .up-black-outline::after {
279
+ border: 1px solid #333 !important;
280
+ }
281
+
282
+ .up-white-outline {
283
+ color: #fff !important;
284
+ background-color: none;
285
+ }
286
+
287
+ .up-white-outline::after {
288
+ border: 1px solid #fff !important;
289
+ }
290
+
291
+ /* color end*/
292
+
293
+ /* tag start*/
294
+
295
+ .up-tag {
296
+ display: flex;
297
+ align-items: center;
298
+ justify-content: center;
299
+ border-radius: 6rpx;
300
+ }
301
+
302
+ .up-tag-outline {
303
+ position: relative;
304
+ background-color: none;
305
+ color: #5677fc;
306
+ }
307
+
308
+ .up-tag-outline::after {
309
+ content: '';
310
+ position: absolute;
311
+ width: 200%;
312
+ height: 200%;
313
+ -webkit-transform-origin: 0 0;
314
+ transform-origin: 0 0;
315
+ -webkit-transform: scale(0.5, 0.5);
316
+ transform: scale(0.5, 0.5);
317
+ -webkit-box-sizing: border-box;
318
+ box-sizing: border-box;
319
+ left: 0;
320
+ top: 0;
321
+ border-radius: 12rpx;
322
+ }
323
+
324
+ .up-tag-fillet {
325
+ border-radius: 50rpx;
326
+ }
327
+
328
+ .up-white.up-tag-fillet::after {
329
+ border-radius: 80rpx;
330
+ }
331
+
332
+ .up-tag-outline-fillet::after {
333
+ border-radius: 80rpx;
334
+ }
335
+
336
+ .up-tag-fillet-left {
337
+ border-radius: 50rpx 0 0 50rpx;
338
+ }
339
+
340
+ .up-tag-fillet-right {
341
+ border-radius: 0 50rpx 50rpx 0;
342
+ }
343
+
344
+ .up-tag-fillet-left.up-tag-outline::after {
345
+ border-radius: 100rpx 0 0 100rpx;
346
+ }
347
+
348
+ .up-tag-fillet-right.up-tag-outline::after {
349
+ border-radius: 0 100rpx 100rpx 0;
350
+ }
351
+
352
+ /* tag end*/
353
+ .up-origin-left {
354
+ transform-origin: 0 center;
355
+ }
356
+ .up-origin-right {
357
+ transform-origin: 100% center;
358
+ }
359
+ .up-tag-opcity {
360
+ opacity: 0.5;
361
+ }
362
+ </style>