uview-plus 3.1.35 → 3.1.37
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.
- package/changelog.md +4 -0
- package/components/u-action-sheet/u-action-sheet.vue +1 -0
- package/components/u-album/u-album.vue +1 -0
- package/components/u-alert/u-alert.vue +1 -0
- package/components/u-avatar/u-avatar.vue +1 -0
- package/components/u-avatar-group/u-avatar-group.vue +1 -0
- package/components/u-back-top/u-back-top.vue +2 -1
- package/components/u-badge/u-badge.vue +1 -1
- package/components/u-calendar/u-calendar.vue +1 -0
- package/components/u-car-keyboard/u-car-keyboard.vue +312 -311
- package/components/u-cell/u-cell.vue +1 -1
- package/components/u-cell-group/u-cell-group.vue +1 -1
- package/components/u-checkbox/u-checkbox.vue +2 -1
- package/components/u-code/u-code.vue +1 -0
- package/components/u-code-input/props.js +13 -5
- package/components/u-code-input/u-code-input.vue +8 -2
- package/components/u-col/u-col.vue +1 -0
- package/components/u-collapse/u-collapse.vue +1 -0
- package/components/u-column-notice/u-column-notice.vue +1 -0
- package/components/u-count-down/u-count-down.vue +164 -163
- package/components/u-count-to/u-count-to.vue +1 -0
- package/components/u-divider/u-divider.vue +1 -0
- package/components/u-dropdown/u-dropdown.vue +127 -129
- package/components/u-form-item/u-form-item.vue +1 -0
- package/components/u-image/u-image.vue +1 -1
- package/components/u-index-anchor/u-index-anchor.vue +1 -1
- package/components/u-index-item/u-index-item.vue +1 -1
- package/components/u-index-list/u-index-list.vue +1 -1
- package/components/u-input/u-input.vue +3 -3
- package/components/u-keyboard/u-keyboard.vue +1 -0
- package/components/u-link/u-link.vue +1 -0
- package/components/u-list/u-list.vue +1 -0
- package/components/u-loadmore/u-loadmore.vue +1 -0
- package/components/u-modal/u-modal.vue +230 -229
- package/components/u-navbar/u-navbar.vue +1 -1
- package/components/u-no-network/u-no-network.vue +1 -0
- package/components/u-notice-bar/u-notice-bar.vue +1 -0
- package/components/u-number-box/u-number-box.vue +1 -1
- package/components/u-number-keyboard/u-number-keyboard.vue +1 -1
- package/components/u-overlay/u-overlay.vue +1 -0
- package/components/u-parse/node/node.vue +2 -2
- package/components/u-parse/parser.js +1333 -1333
- package/components/u-parse/u-parse.vue +5 -5
- package/components/u-popup/u-popup.vue +307 -306
- package/components/u-radio/u-radio.vue +1 -1
- package/components/u-read-more/u-read-more.vue +1 -0
- package/components/u-row/u-row.vue +1 -0
- package/components/u-row-notice/u-row-notice.vue +1 -0
- package/components/u-scroll-list/u-scroll-list.vue +1 -0
- package/components/u-search/u-search.vue +6 -2
- package/components/u-slider/props.js +13 -5
- package/components/u-slider/u-slider.vue +66 -55
- package/components/u-status-bar/u-status-bar.vue +1 -1
- package/components/u-steps/u-steps.vue +1 -1
- package/components/u-steps-item/u-steps-item.vue +1 -1
- package/components/u-subsection/u-subsection.vue +1 -0
- package/components/u-swiper/u-swiper.vue +10 -9
- package/components/u-tabbar-item/u-tabbar-item.vue +1 -0
- package/components/u-tag/u-tag.vue +362 -361
- package/components/u-toolbar/u-toolbar.vue +1 -0
- package/components/u-tooltip/u-tooltip.vue +1 -0
- package/components/u-upload/u-upload.vue +1 -1
- package/package.json +1 -1
|
@@ -1,361 +1,362 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<u-transition
|
|
3
|
-
mode="fade"
|
|
4
|
-
:show="show"
|
|
5
|
-
style="display: inline-flex;"
|
|
6
|
-
>
|
|
7
|
-
<view class="u-tag-wrapper">
|
|
8
|
-
<view
|
|
9
|
-
class="u-tag"
|
|
10
|
-
:class="[`u-tag--${shape}`, !plain && `u-tag--${type}`, plain && `u-tag--${type}--plain`, `u-tag--${size}`, plain && plainFill && `u-tag--${type}--plain--fill`]"
|
|
11
|
-
@tap.stop="clickHandler"
|
|
12
|
-
:style="[{
|
|
13
|
-
marginRight: closable ? '10px' : 0,
|
|
14
|
-
marginTop: closable ? '10px' : 0,
|
|
15
|
-
}, style]"
|
|
16
|
-
>
|
|
17
|
-
<slot name="icon">
|
|
18
|
-
<view
|
|
19
|
-
class="u-tag__icon"
|
|
20
|
-
v-if="icon"
|
|
21
|
-
>
|
|
22
|
-
<image
|
|
23
|
-
v-if="$u.test.image(icon)"
|
|
24
|
-
:src="icon"
|
|
25
|
-
:style="[imgStyle]"
|
|
26
|
-
></image>
|
|
27
|
-
<u-icon
|
|
28
|
-
v-else
|
|
29
|
-
:color="elIconColor"
|
|
30
|
-
:name="icon"
|
|
31
|
-
:size="iconSize"
|
|
32
|
-
></u-icon>
|
|
33
|
-
</view>
|
|
34
|
-
</slot>
|
|
35
|
-
<text
|
|
36
|
-
class="u-tag__text"
|
|
37
|
-
:style="[textColor]"
|
|
38
|
-
:class="[`u-tag__text--${type}`, plain && `u-tag__text--${type}--plain`, `u-tag__text--${size}`]"
|
|
39
|
-
>{{ text }}</text>
|
|
40
|
-
</view>
|
|
41
|
-
<view
|
|
42
|
-
class="u-tag__close"
|
|
43
|
-
:class="[`u-tag__close--${size}`]"
|
|
44
|
-
v-if="closable"
|
|
45
|
-
@tap.stop="closeHandler"
|
|
46
|
-
:style="{backgroundColor: closeColor}"
|
|
47
|
-
>
|
|
48
|
-
<u-icon
|
|
49
|
-
name="close"
|
|
50
|
-
:size="closeSize"
|
|
51
|
-
color="#ffffff"
|
|
52
|
-
></u-icon>
|
|
53
|
-
</view>
|
|
54
|
-
</view>
|
|
55
|
-
</u-transition>
|
|
56
|
-
</template>
|
|
57
|
-
|
|
58
|
-
<script>
|
|
59
|
-
import props from './props.js';
|
|
60
|
-
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
61
|
-
import mixin from '../../libs/mixin/mixin.js';
|
|
62
|
-
/**
|
|
63
|
-
* Tag 标签
|
|
64
|
-
* @description tag组件一般用于标记和选择,我们提供了更加丰富的表现形式,能够较全面的涵盖您的使用场景
|
|
65
|
-
* @tutorial https://ijry.github.io/uview-plus/components/tag.html
|
|
66
|
-
* @property {String} type 标签类型info、primary、success、warning、error (默认 'primary' )
|
|
67
|
-
* @property {Boolean | String} disabled 不可用(默认 false )
|
|
68
|
-
* @property {String} size 标签的大小,large,medium,mini (默认 'medium' )
|
|
69
|
-
* @property {String} shape tag的形状,circle(两边半圆形), square(方形,带圆角)(默认 'square' )
|
|
70
|
-
* @property {String | Number} text 标签的文字内容
|
|
71
|
-
* @property {String} bgColor 背景颜色,默认为空字符串,即不处理
|
|
72
|
-
* @property {String} color 标签字体颜色,默认为空字符串,即不处理
|
|
73
|
-
* @property {String} borderColor 镂空形式标签的边框颜色
|
|
74
|
-
* @property {String} closeColor 关闭按钮图标的颜色(默认 #C6C7CB)
|
|
75
|
-
* @property {String | Number} name 点击时返回的索引值,用于区分例遍的数组哪个元素被点击了
|
|
76
|
-
* @property {Boolean} plainFill 镂空时是否填充背景色(默认 false )
|
|
77
|
-
* @property {Boolean} plain 是否镂空(默认 false )
|
|
78
|
-
* @property {Boolean} closable 是否可关闭,设置为true,文字右边会出现一个关闭图标(默认 false )
|
|
79
|
-
* @property {Boolean} show 标签显示与否(默认 true )
|
|
80
|
-
* @property {String} icon 内置图标,或绝对路径的图片
|
|
81
|
-
* @event {Function(index)} click 点击标签时触发 index: 传递的index参数值
|
|
82
|
-
* @event {Function(index)} close closable为true时,点击标签关闭按钮触发 index: 传递的index参数值
|
|
83
|
-
* @example <u-tag text="标签" type="error" plain plainFill></u-tag>
|
|
84
|
-
*/
|
|
85
|
-
export default {
|
|
86
|
-
name: 'u-tag',
|
|
87
|
-
mixins: [mpMixin, mixin, props],
|
|
88
|
-
data() {
|
|
89
|
-
return {
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
computed: {
|
|
94
|
-
style() {
|
|
95
|
-
const style = {}
|
|
96
|
-
if (this.bgColor) {
|
|
97
|
-
style.backgroundColor = this.bgColor
|
|
98
|
-
}
|
|
99
|
-
if (this.color) {
|
|
100
|
-
style.color = this.color
|
|
101
|
-
}
|
|
102
|
-
if(this.borderColor) {
|
|
103
|
-
style.borderColor = this.borderColor
|
|
104
|
-
}
|
|
105
|
-
return style
|
|
106
|
-
},
|
|
107
|
-
// nvue下,文本颜色无法继承父元素
|
|
108
|
-
textColor() {
|
|
109
|
-
const style = {}
|
|
110
|
-
if (this.color) {
|
|
111
|
-
style.color = this.color
|
|
112
|
-
}
|
|
113
|
-
return style
|
|
114
|
-
},
|
|
115
|
-
imgStyle() {
|
|
116
|
-
const width = this.size === 'large' ? '17px' : this.size === 'medium' ? '15px' : '13px'
|
|
117
|
-
return {
|
|
118
|
-
width,
|
|
119
|
-
height: width
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
// 文本的样式
|
|
123
|
-
closeSize() {
|
|
124
|
-
const size = this.size === 'large' ? 15 : this.size === 'medium' ? 13 : 12
|
|
125
|
-
return size
|
|
126
|
-
},
|
|
127
|
-
// 图标大小
|
|
128
|
-
iconSize() {
|
|
129
|
-
const size = this.size === 'large' ? 21 : this.size === 'medium' ? 19 : 16
|
|
130
|
-
return size
|
|
131
|
-
},
|
|
132
|
-
// 图标颜色
|
|
133
|
-
elIconColor() {
|
|
134
|
-
return this.iconColor ? this.iconColor : this.plain ? this.type : '#ffffff'
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
border-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
border-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
border-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
border-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
border-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
border-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
border-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
border-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
border-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
border-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
/* #
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<u-transition
|
|
3
|
+
mode="fade"
|
|
4
|
+
:show="show"
|
|
5
|
+
style="display: inline-flex;"
|
|
6
|
+
>
|
|
7
|
+
<view class="u-tag-wrapper">
|
|
8
|
+
<view
|
|
9
|
+
class="u-tag"
|
|
10
|
+
:class="[`u-tag--${shape}`, !plain && `u-tag--${type}`, plain && `u-tag--${type}--plain`, `u-tag--${size}`, plain && plainFill && `u-tag--${type}--plain--fill`]"
|
|
11
|
+
@tap.stop="clickHandler"
|
|
12
|
+
:style="[{
|
|
13
|
+
marginRight: closable ? '10px' : 0,
|
|
14
|
+
marginTop: closable ? '10px' : 0,
|
|
15
|
+
}, style]"
|
|
16
|
+
>
|
|
17
|
+
<slot name="icon">
|
|
18
|
+
<view
|
|
19
|
+
class="u-tag__icon"
|
|
20
|
+
v-if="icon"
|
|
21
|
+
>
|
|
22
|
+
<image
|
|
23
|
+
v-if="$u.test.image(icon)"
|
|
24
|
+
:src="icon"
|
|
25
|
+
:style="[imgStyle]"
|
|
26
|
+
></image>
|
|
27
|
+
<u-icon
|
|
28
|
+
v-else
|
|
29
|
+
:color="elIconColor"
|
|
30
|
+
:name="icon"
|
|
31
|
+
:size="iconSize"
|
|
32
|
+
></u-icon>
|
|
33
|
+
</view>
|
|
34
|
+
</slot>
|
|
35
|
+
<text
|
|
36
|
+
class="u-tag__text"
|
|
37
|
+
:style="[textColor]"
|
|
38
|
+
:class="[`u-tag__text--${type}`, plain && `u-tag__text--${type}--plain`, `u-tag__text--${size}`]"
|
|
39
|
+
>{{ text }}</text>
|
|
40
|
+
</view>
|
|
41
|
+
<view
|
|
42
|
+
class="u-tag__close"
|
|
43
|
+
:class="[`u-tag__close--${size}`]"
|
|
44
|
+
v-if="closable"
|
|
45
|
+
@tap.stop="closeHandler"
|
|
46
|
+
:style="{backgroundColor: closeColor}"
|
|
47
|
+
>
|
|
48
|
+
<u-icon
|
|
49
|
+
name="close"
|
|
50
|
+
:size="closeSize"
|
|
51
|
+
color="#ffffff"
|
|
52
|
+
></u-icon>
|
|
53
|
+
</view>
|
|
54
|
+
</view>
|
|
55
|
+
</u-transition>
|
|
56
|
+
</template>
|
|
57
|
+
|
|
58
|
+
<script>
|
|
59
|
+
import props from './props.js';
|
|
60
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
61
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
62
|
+
/**
|
|
63
|
+
* Tag 标签
|
|
64
|
+
* @description tag组件一般用于标记和选择,我们提供了更加丰富的表现形式,能够较全面的涵盖您的使用场景
|
|
65
|
+
* @tutorial https://ijry.github.io/uview-plus/components/tag.html
|
|
66
|
+
* @property {String} type 标签类型info、primary、success、warning、error (默认 'primary' )
|
|
67
|
+
* @property {Boolean | String} disabled 不可用(默认 false )
|
|
68
|
+
* @property {String} size 标签的大小,large,medium,mini (默认 'medium' )
|
|
69
|
+
* @property {String} shape tag的形状,circle(两边半圆形), square(方形,带圆角)(默认 'square' )
|
|
70
|
+
* @property {String | Number} text 标签的文字内容
|
|
71
|
+
* @property {String} bgColor 背景颜色,默认为空字符串,即不处理
|
|
72
|
+
* @property {String} color 标签字体颜色,默认为空字符串,即不处理
|
|
73
|
+
* @property {String} borderColor 镂空形式标签的边框颜色
|
|
74
|
+
* @property {String} closeColor 关闭按钮图标的颜色(默认 #C6C7CB)
|
|
75
|
+
* @property {String | Number} name 点击时返回的索引值,用于区分例遍的数组哪个元素被点击了
|
|
76
|
+
* @property {Boolean} plainFill 镂空时是否填充背景色(默认 false )
|
|
77
|
+
* @property {Boolean} plain 是否镂空(默认 false )
|
|
78
|
+
* @property {Boolean} closable 是否可关闭,设置为true,文字右边会出现一个关闭图标(默认 false )
|
|
79
|
+
* @property {Boolean} show 标签显示与否(默认 true )
|
|
80
|
+
* @property {String} icon 内置图标,或绝对路径的图片
|
|
81
|
+
* @event {Function(index)} click 点击标签时触发 index: 传递的index参数值
|
|
82
|
+
* @event {Function(index)} close closable为true时,点击标签关闭按钮触发 index: 传递的index参数值
|
|
83
|
+
* @example <u-tag text="标签" type="error" plain plainFill></u-tag>
|
|
84
|
+
*/
|
|
85
|
+
export default {
|
|
86
|
+
name: 'u-tag',
|
|
87
|
+
mixins: [mpMixin, mixin, props],
|
|
88
|
+
data() {
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
computed: {
|
|
94
|
+
style() {
|
|
95
|
+
const style = {}
|
|
96
|
+
if (this.bgColor) {
|
|
97
|
+
style.backgroundColor = this.bgColor
|
|
98
|
+
}
|
|
99
|
+
if (this.color) {
|
|
100
|
+
style.color = this.color
|
|
101
|
+
}
|
|
102
|
+
if(this.borderColor) {
|
|
103
|
+
style.borderColor = this.borderColor
|
|
104
|
+
}
|
|
105
|
+
return style
|
|
106
|
+
},
|
|
107
|
+
// nvue下,文本颜色无法继承父元素
|
|
108
|
+
textColor() {
|
|
109
|
+
const style = {}
|
|
110
|
+
if (this.color) {
|
|
111
|
+
style.color = this.color
|
|
112
|
+
}
|
|
113
|
+
return style
|
|
114
|
+
},
|
|
115
|
+
imgStyle() {
|
|
116
|
+
const width = this.size === 'large' ? '17px' : this.size === 'medium' ? '15px' : '13px'
|
|
117
|
+
return {
|
|
118
|
+
width,
|
|
119
|
+
height: width
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
// 文本的样式
|
|
123
|
+
closeSize() {
|
|
124
|
+
const size = this.size === 'large' ? 15 : this.size === 'medium' ? 13 : 12
|
|
125
|
+
return size
|
|
126
|
+
},
|
|
127
|
+
// 图标大小
|
|
128
|
+
iconSize() {
|
|
129
|
+
const size = this.size === 'large' ? 21 : this.size === 'medium' ? 19 : 16
|
|
130
|
+
return size
|
|
131
|
+
},
|
|
132
|
+
// 图标颜色
|
|
133
|
+
elIconColor() {
|
|
134
|
+
return this.iconColor ? this.iconColor : this.plain ? this.type : '#ffffff'
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
emits: ["click", "close"],
|
|
138
|
+
methods: {
|
|
139
|
+
// 点击关闭按钮
|
|
140
|
+
closeHandler() {
|
|
141
|
+
this.$emit('close', this.name)
|
|
142
|
+
},
|
|
143
|
+
// 点击标签
|
|
144
|
+
clickHandler() {
|
|
145
|
+
this.$emit('click', this.name)
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
</script>
|
|
150
|
+
|
|
151
|
+
<style
|
|
152
|
+
lang="scss"
|
|
153
|
+
scoped
|
|
154
|
+
>
|
|
155
|
+
@import "../../libs/css/components.scss";
|
|
156
|
+
|
|
157
|
+
.u-tag-wrapper {
|
|
158
|
+
position: relative;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.u-tag {
|
|
162
|
+
@include flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
border-style: solid;
|
|
165
|
+
|
|
166
|
+
&--circle {
|
|
167
|
+
border-radius: 100px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&--square {
|
|
171
|
+
border-radius: 3px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&__icon {
|
|
175
|
+
margin-right: 4px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&__text {
|
|
179
|
+
&--mini {
|
|
180
|
+
font-size: 12px;
|
|
181
|
+
line-height: 12px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&--medium {
|
|
185
|
+
font-size: 13px;
|
|
186
|
+
line-height: 13px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&--large {
|
|
190
|
+
font-size: 15px;
|
|
191
|
+
line-height: 15px;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&--mini {
|
|
196
|
+
height: 22px;
|
|
197
|
+
line-height: 22px;
|
|
198
|
+
padding: 0 5px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&--medium {
|
|
202
|
+
height: 26px;
|
|
203
|
+
line-height: 22px;
|
|
204
|
+
padding: 0 10px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&--large {
|
|
208
|
+
height: 32px;
|
|
209
|
+
line-height: 32px;
|
|
210
|
+
padding: 0 15px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&--primary {
|
|
214
|
+
background-color: $u-primary;
|
|
215
|
+
border-width: 1px;
|
|
216
|
+
border-color: $u-primary;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&--primary--plain {
|
|
220
|
+
border-width: 1px;
|
|
221
|
+
border-color: $u-primary;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&--primary--plain--fill {
|
|
225
|
+
background-color: #ecf5ff;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&__text--primary {
|
|
229
|
+
color: #FFFFFF;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&__text--primary--plain {
|
|
233
|
+
color: $u-primary;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&--error {
|
|
237
|
+
background-color: $u-error;
|
|
238
|
+
border-width: 1px;
|
|
239
|
+
border-color: $u-error;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&--error--plain {
|
|
243
|
+
border-width: 1px;
|
|
244
|
+
border-color: $u-error;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&--error--plain--fill {
|
|
248
|
+
background-color: #fef0f0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&__text--error {
|
|
252
|
+
color: #FFFFFF;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&__text--error--plain {
|
|
256
|
+
color: $u-error;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&--warning {
|
|
260
|
+
background-color: $u-warning;
|
|
261
|
+
border-width: 1px;
|
|
262
|
+
border-color: $u-warning;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&--warning--plain {
|
|
266
|
+
border-width: 1px;
|
|
267
|
+
border-color: $u-warning;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&--warning--plain--fill {
|
|
271
|
+
background-color: #fdf6ec;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&__text--warning {
|
|
275
|
+
color: #FFFFFF;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&__text--warning--plain {
|
|
279
|
+
color: $u-warning;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&--success {
|
|
283
|
+
background-color: $u-success;
|
|
284
|
+
border-width: 1px;
|
|
285
|
+
border-color: $u-success;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&--success--plain {
|
|
289
|
+
border-width: 1px;
|
|
290
|
+
border-color: $u-success;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
&--success--plain--fill {
|
|
294
|
+
background-color: #f5fff0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
&__text--success {
|
|
298
|
+
color: #FFFFFF;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
&__text--success--plain {
|
|
302
|
+
color: $u-success;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&--info {
|
|
306
|
+
background-color: $u-info;
|
|
307
|
+
border-width: 1px;
|
|
308
|
+
border-color: $u-info;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
&--info--plain {
|
|
312
|
+
border-width: 1px;
|
|
313
|
+
border-color: $u-info;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&--info--plain--fill {
|
|
317
|
+
background-color: #f4f4f5;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&__text--info {
|
|
321
|
+
color: #FFFFFF;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
&__text--info--plain {
|
|
325
|
+
color: $u-info;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
&__close {
|
|
329
|
+
position: absolute;
|
|
330
|
+
z-index: 999;
|
|
331
|
+
top: 10px;
|
|
332
|
+
right: 10px;
|
|
333
|
+
border-radius: 100px;
|
|
334
|
+
background-color: #C6C7CB;
|
|
335
|
+
@include flex(row);
|
|
336
|
+
align-items: center;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
/* #ifndef APP-NVUE */
|
|
339
|
+
transform: scale(0.6) translate(80%, -80%);
|
|
340
|
+
/* #endif */
|
|
341
|
+
/* #ifdef APP-NVUE */
|
|
342
|
+
transform: scale(0.6) translate(50%, -50%);
|
|
343
|
+
/* #endif */
|
|
344
|
+
|
|
345
|
+
&--mini {
|
|
346
|
+
width: 18px;
|
|
347
|
+
height: 18px;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&--medium {
|
|
351
|
+
width: 22px;
|
|
352
|
+
height: 22px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
&--large {
|
|
356
|
+
width: 25px;
|
|
357
|
+
height: 25px;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
}
|
|
362
|
+
</style>
|