vdesign-ui 0.2.4 → 0.2.6

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 (195) hide show
  1. package/package.json +1 -1
  2. package/dist/components/actionbar/index.js +0 -8
  3. package/dist/components/actionbar/index.vue +0 -39
  4. package/dist/components/actionbar/style.less +0 -44
  5. package/dist/components/actionbar-cell/index.js +0 -7
  6. package/dist/components/actionbar-cell/index.vue +0 -38
  7. package/dist/components/actions/index.js +0 -7
  8. package/dist/components/actions/index.vue +0 -76
  9. package/dist/components/actions/style.less +0 -109
  10. package/dist/components/actions-cell/index.js +0 -7
  11. package/dist/components/actions-cell/index.vue +0 -94
  12. package/dist/components/actions-cell/style.less +0 -39
  13. package/dist/components/activityviews/index.js +0 -8
  14. package/dist/components/activityviews/index.vue +0 -192
  15. package/dist/components/activityviews/style.less +0 -152
  16. package/dist/components/badge/index.js +0 -8
  17. package/dist/components/badge/index.vue +0 -49
  18. package/dist/components/badge/style.less +0 -54
  19. package/dist/components/button/index.js +0 -8
  20. package/dist/components/button/index.vue +0 -93
  21. package/dist/components/button/style.less +0 -558
  22. package/dist/components/calendar/end.png +0 -0
  23. package/dist/components/calendar/index-element.vue +0 -84
  24. package/dist/components/calendar/index.js +0 -8
  25. package/dist/components/calendar/index.vue +0 -52
  26. package/dist/components/calendar/start.png +0 -0
  27. package/dist/components/calendar/style.less +0 -138
  28. package/dist/components/checkbox/index.js +0 -8
  29. package/dist/components/checkbox/index.vue +0 -161
  30. package/dist/components/checkbox/style.less +0 -289
  31. package/dist/components/checkbox-group/index.js +0 -7
  32. package/dist/components/checkbox-group/index.vue +0 -69
  33. package/dist/components/common/state/index.vue +0 -33
  34. package/dist/components/common/state/style.less +0 -48
  35. package/dist/components/data-list/index.js +0 -10
  36. package/dist/components/data-list/index.vue +0 -19
  37. package/dist/components/data-list/style.less +0 -623
  38. package/dist/components/datetime-picker/index.js +0 -8
  39. package/dist/components/datetime-picker/index.vue +0 -37
  40. package/dist/components/datetime-picker/style.less +0 -24
  41. package/dist/components/dialog/index.js +0 -8
  42. package/dist/components/dialog/index.vue +0 -174
  43. package/dist/components/dialog/overlay-manager.js +0 -18
  44. package/dist/components/dialog/style.less +0 -128
  45. package/dist/components/divider/index.js +0 -8
  46. package/dist/components/divider/index.vue +0 -54
  47. package/dist/components/divider/style.less +0 -92
  48. package/dist/components/dropdown/index.js +0 -8
  49. package/dist/components/dropdown/index.vue +0 -218
  50. package/dist/components/dropdown/style.less +0 -432
  51. package/dist/components/empty/404-dark.png +0 -0
  52. package/dist/components/empty/404.png +0 -0
  53. package/dist/components/empty/index.js +0 -8
  54. package/dist/components/empty/index.vue +0 -138
  55. package/dist/components/empty/network-dark.png +0 -0
  56. package/dist/components/empty/network.png +0 -0
  57. package/dist/components/empty/nocoupons-dark.png +0 -0
  58. package/dist/components/empty/nocoupons.png +0 -0
  59. package/dist/components/empty/nodata-dark.png +0 -0
  60. package/dist/components/empty/nodata.png +0 -0
  61. package/dist/components/empty/nomargin-dark.png +0 -0
  62. package/dist/components/empty/nomargin.png +0 -0
  63. package/dist/components/empty/nonotice-dark.png +0 -0
  64. package/dist/components/empty/nonotice.png +0 -0
  65. package/dist/components/empty/noocomments-dark.png +0 -0
  66. package/dist/components/empty/noocomments.png +0 -0
  67. package/dist/components/empty/noorders-dark.png +0 -0
  68. package/dist/components/empty/noorders.png +0 -0
  69. package/dist/components/empty/noposition-dark.png +0 -0
  70. package/dist/components/empty/noposition.png +0 -0
  71. package/dist/components/empty/nosearch-dark.png +0 -0
  72. package/dist/components/empty/nosearch.png +0 -0
  73. package/dist/components/empty/style.less +0 -61
  74. package/dist/components/footer/index.js +0 -7
  75. package/dist/components/footer/index.vue +0 -33
  76. package/dist/components/footer/style.less +0 -21
  77. package/dist/components/footnav/index.js +0 -7
  78. package/dist/components/footnav/index.vue +0 -93
  79. package/dist/components/footnav/style.less +0 -23
  80. package/dist/components/footnav-item/index.js +0 -7
  81. package/dist/components/footnav-item/index.vue +0 -50
  82. package/dist/components/footnav-item/style.less +0 -39
  83. package/dist/components/form/index.js +0 -7
  84. package/dist/components/form/index.vue +0 -12
  85. package/dist/components/headnav/index.js +0 -7
  86. package/dist/components/headnav/index.vue +0 -185
  87. package/dist/components/headnav/style.less +0 -232
  88. package/dist/components/icon/font/iconfont.css +0 -159
  89. package/dist/components/icon/font/iconfont.js +0 -6
  90. package/dist/components/icon/index.js +0 -9
  91. package/dist/components/icon/index.vue +0 -54
  92. package/dist/components/icon/style.less +0 -44
  93. package/dist/components/input/calcTextareaHeight.js +0 -162
  94. package/dist/components/input/index.js +0 -8
  95. package/dist/components/input/index.vue +0 -345
  96. package/dist/components/input/style.less +0 -471
  97. package/dist/components/list/index.js +0 -8
  98. package/dist/components/list/index.vue +0 -152
  99. package/dist/components/list/style.less +0 -213
  100. package/dist/components/loading/index.js +0 -7
  101. package/dist/components/loading/index.vue +0 -68
  102. package/dist/components/loading/style.less +0 -54
  103. package/dist/components/mixins/clickoutside.js +0 -81
  104. package/dist/components/mixins/dom.js +0 -41
  105. package/dist/components/mixins/languageMixin.js +0 -41
  106. package/dist/components/mixins/outlineConfigPlugin.js +0 -45
  107. package/dist/components/mixins/router-link.js +0 -23
  108. package/dist/components/mixins/themeMixin.js +0 -43
  109. package/dist/components/noticebar/index.js +0 -8
  110. package/dist/components/noticebar/index.vue +0 -258
  111. package/dist/components/noticebar/style.less +0 -328
  112. package/dist/components/overlay/index.js +0 -8
  113. package/dist/components/overlay/index.vue +0 -184
  114. package/dist/components/overlay/style.less +0 -23
  115. package/dist/components/pagebreak/index.js +0 -7
  116. package/dist/components/pagebreak/index.vue +0 -67
  117. package/dist/components/pagebreak/style.less +0 -42
  118. package/dist/components/password/index.js +0 -8
  119. package/dist/components/password/index.vue +0 -60
  120. package/dist/components/popover/index.js +0 -8
  121. package/dist/components/popover/index.vue +0 -100
  122. package/dist/components/popover/style.less +0 -346
  123. package/dist/components/popover/vue-popover.vue +0 -314
  124. package/dist/components/popup/index.js +0 -7
  125. package/dist/components/popup/index.vue +0 -243
  126. package/dist/components/radio/index.js +0 -8
  127. package/dist/components/radio/index.vue +0 -184
  128. package/dist/components/radio/style.less +0 -294
  129. package/dist/components/radio-group/index.js +0 -6
  130. package/dist/components/radio-group/index.vue +0 -58
  131. package/dist/components/result/completed-dark.png +0 -0
  132. package/dist/components/result/completed.png +0 -0
  133. package/dist/components/result/error-dark.png +0 -0
  134. package/dist/components/result/error.png +0 -0
  135. package/dist/components/result/index.js +0 -8
  136. package/dist/components/result/index.vue +0 -73
  137. package/dist/components/result/style.less +0 -44
  138. package/dist/components/result/wait-dark.png +0 -0
  139. package/dist/components/result/wait.png +0 -0
  140. package/dist/components/search/index.js +0 -8
  141. package/dist/components/search/index.vue +0 -66
  142. package/dist/components/selector/index.js +0 -8
  143. package/dist/components/selector/index.vue +0 -161
  144. package/dist/components/selector/style.less +0 -484
  145. package/dist/components/skeleton/index.js +0 -7
  146. package/dist/components/skeleton/index.vue +0 -206
  147. package/dist/components/skeleton/style.less +0 -197
  148. package/dist/components/slider/draggable.js +0 -49
  149. package/dist/components/slider/index.js +0 -7
  150. package/dist/components/slider/index.vue +0 -167
  151. package/dist/components/slider/style.less +0 -100
  152. package/dist/components/slider/utils.js +0 -60
  153. package/dist/components/step/index.js +0 -7
  154. package/dist/components/step/index.vue +0 -48
  155. package/dist/components/step/style.less +0 -58
  156. package/dist/components/step-item/index.js +0 -7
  157. package/dist/components/step-item/index.vue +0 -126
  158. package/dist/components/step-item/style.less +0 -362
  159. package/dist/components/stepper/index.js +0 -8
  160. package/dist/components/stepper/index.vue +0 -146
  161. package/dist/components/style/index.vue +0 -42
  162. package/dist/components/switch/index.js +0 -8
  163. package/dist/components/switch/index.vue +0 -72
  164. package/dist/components/switch/style.less +0 -56
  165. package/dist/components/tab/index.js +0 -7
  166. package/dist/components/tab/index.vue +0 -53
  167. package/dist/components/tabs/index.js +0 -8
  168. package/dist/components/tabs/index.vue +0 -172
  169. package/dist/components/tabs/style.less +0 -377
  170. package/dist/components/tag/index.js +0 -7
  171. package/dist/components/tag/index.vue +0 -64
  172. package/dist/components/tag/style.less +0 -211
  173. package/dist/components/title/index.js +0 -8
  174. package/dist/components/title/index.vue +0 -99
  175. package/dist/components/title/style.less +0 -188
  176. package/dist/components/toast/index.js +0 -86
  177. package/dist/components/toast/index.vue +0 -44
  178. package/dist/components/toast/style.less +0 -55
  179. package/dist/components/transition/index.js +0 -8
  180. package/dist/components/transition/index.vue +0 -13
  181. package/dist/components/transition/style.less +0 -208
  182. package/dist/components/upload/index.js +0 -7
  183. package/dist/components/upload/index.vue +0 -106
  184. package/dist/components/upload/style.less +0 -147
  185. package/dist/components/utils/assist.js +0 -34
  186. package/dist/components/utils/env.js +0 -2
  187. package/dist/demo.html +0 -10
  188. package/dist/locale/ar.js +0 -98
  189. package/dist/locale/en.js +0 -98
  190. package/dist/locale/zh.js +0 -98
  191. package/dist/token.css +0 -2990
  192. package/dist/vdesign-ui.common.js +0 -27471
  193. package/dist/vdesign-ui.css +0 -1
  194. package/dist/vdesign-ui.umd.js +0 -27481
  195. package/dist/vdesign-ui.umd.min.js +0 -32
@@ -1,258 +0,0 @@
1
- <template>
2
- <div
3
- :class="[mode ? `${prefixCls}-${mode}` : '', type ? 'vd-noticebar-' + type : '', { 'vd-noticebar-action': action }]"
4
- v-if="isShow">
5
- <!-- 左侧图标 -->
6
- <div v-if="customLeft || customIcon" :class="`${prefixCls}-${mode}__left`">
7
- <template v-if="customLeft">
8
- <slot name="left"></slot>
9
- </template>
10
-
11
- <template v-else-if="customIcon">
12
- <vd-icon :name="customIcon" :svg="iconSvg"></vd-icon>
13
- </template>
14
- </div>
15
- <!-- 内容区 -->
16
- <div :class="[`${prefixCls}-${mode}__content`, multiRows && `${prefixCls}-${mode}__multi`]" ref="wrap">
17
- <!-- scrollable -->
18
- <div v-if="scrollable" :style="contentStyle"
19
- :class="[(overflow && scrollable) && `${prefixCls}-${mode}__content--animate`]" ref="content">
20
- <div v-if="customTitle || title" :class="`${prefixCls}-${mode}__message`">
21
- <div :class="[`${prefixCls}-${mode}__message--title`]">
22
- <template v-if="customTitle">
23
- <slot name="title"></slot>
24
- </template>
25
- <template v-else>{{ title }}</template>
26
- </div>
27
- <div v-if="tag" :class="[tag && `${prefixCls}-${mode}__message--tag`, state ? 'vd-noticebar-' + state : '']">
28
- {{
29
- tag
30
- }}</div>
31
- </div>
32
- <slot></slot>
33
- </div>
34
- <template v-else>
35
- <div v-if="customTitle || title" :class="`${prefixCls}-${mode}__message`">
36
- <div :class="[`${prefixCls}-${mode}__message--title`]">
37
- <template v-if="customTitle">
38
- <slot name="title"></slot>
39
- </template>
40
- <template v-else>{{ title }}</template>
41
- </div>
42
- <div v-if="tag" :class="[tag && `${prefixCls}-${mode}__message--tag`, state ? 'vd-noticebar-' + state : '']">
43
- <vd-icon
44
- :name="state === 'success' ? 'icon_show_finished' : state === 'tips' ? 'icon_show_doing' : state === 'warning' ? 'icon_show_failed' : 'icon_show_cancel'"></vd-icon>
45
- {{ tag }}
46
- </div>
47
- </div>
48
- <slot></slot>
49
- </template>
50
- </div>
51
- <!-- 右侧操作区 -->
52
- <div :class="`${prefixCls}-${mode}__right`">
53
- <template v-if="customRight">
54
- <slot name="right"></slot>
55
- </template>
56
- <!-- 操作区 -->
57
- <div v-if="action" :class="`${prefixCls}-${mode}__button`">
58
- <vd-button type="primary_text">{{ action }}</vd-button>
59
- </div>
60
- <!-- 可关闭 -->
61
- <vd-icon v-if="closable" name="icon_btn_close" @click.native.stop="$_close"></vd-icon>
62
- <!-- 可链接 -->
63
- <vd-icon v-if="islink" name="icon_btn_next"></vd-icon>
64
- </div>
65
- </div>
66
- </template>
67
-
68
- <script>
69
- import VdIcon from '../icon';
70
- import VdButton from '../button';
71
- import { inBrowser } from '../utils/env'
72
- export default {
73
- components: {
74
- VdIcon,
75
- VdButton,
76
- },
77
- name: 'vd-noticebar',
78
- props: {
79
- prefixCls: {
80
- type: String,
81
- default: 'vd-noticebar'
82
- },
83
- mode: {
84
- type: String,
85
- default: 'snackbar', // snackbar toast notify
86
- },
87
- type: {
88
- type: String,
89
- default: 'info', // info/warning/tips
90
- },
91
- scrollable: {
92
- type: Boolean,
93
- default: false,
94
- },
95
- closable: {
96
- type: Boolean,
97
- default: false,
98
- },
99
- islink: {
100
- type: Boolean,
101
- default: false
102
- },
103
- // notify
104
- title: {
105
- type: String,
106
- default: '',
107
- },
108
- action: {
109
- type: String,
110
- default: '',
111
- },
112
- tag: {
113
- type: String,
114
- default: '',
115
- },
116
- state: {
117
- type: String,
118
- default: 'tips'
119
- },
120
- // 画蛇添足部分
121
- icon: {
122
- type: String,
123
- default: '',
124
- },
125
- iconSvg: {
126
- type: Boolean,
127
- default: false,
128
- },
129
- multiRows: {
130
- type: Boolean,
131
- default: false,
132
- },
133
- speed: {
134
- type: Number,
135
- default: 50
136
- },
137
- defaultWidth: {
138
- type: Number,
139
- default: 375
140
- }
141
- },
142
-
143
- data() {
144
- return {
145
- isShow: true,
146
- overflow: false,
147
- contentStyle: {
148
- transitionDuration: '0s',
149
- transform: 'translateX(0px)'
150
- },
151
- wrapWidth: 0,
152
- contentWidth: 0,
153
- time: 0,
154
- timer: null,
155
- convertSpeed: 1
156
- }
157
- },
158
-
159
- computed: {
160
- customIcon() {
161
- let result
162
- if (this.mode === 'toast') {
163
- result = this.type === 'warning' ? 'icon_btn_clean' : 'icon_show_finished'
164
- } else {
165
- result = this.icon
166
- }
167
- return result
168
- },
169
- customLeft() {
170
- return !!this.$slots.left
171
- },
172
-
173
- customRight() {
174
- return !!this.$slots.right
175
- },
176
-
177
- customTitle() {
178
- return !!this.$slots.title
179
- }
180
- },
181
-
182
- updated() {
183
- if (inBrowser) {
184
- this.$_checkOverflow();
185
- }
186
- },
187
-
188
- mounted() {
189
- if (inBrowser) {
190
- this.$_checkOverflow();
191
- this.init();
192
- }
193
- },
194
-
195
- methods: {
196
- $_close() {
197
- if (this.closable) {
198
- this.isShow = false
199
- }
200
- this.$emit('close')
201
- },
202
- $_checkOverflow() {
203
- if (!this.scrollable) {
204
- return
205
- }
206
- const { wrap, content } = this.$refs
207
-
208
- /* istanbul ignore if */
209
- if (!wrap || !content) {
210
- return
211
- }
212
-
213
- const paddingLeft =
214
- window
215
- .getComputedStyle(content, null)
216
- .getPropertyValue('padding')
217
- .split(' ')[3] || '0px'
218
- const left = +paddingLeft.match(/\d+/g)[0]
219
- this.overflow = content.scrollWidth - left > Math.ceil(wrap.getBoundingClientRect().width)
220
-
221
- },
222
- init() {
223
- if (!inBrowser) return; // 确保只在浏览器环境执行
224
- const { wrap, content } = this.$refs
225
- if (wrap && content) {
226
- // const _width = window.innerWidth
227
- // this.convertSpeed = _width / this.defaultWidth * this.speed // 根据分辨率转化成不同的速度
228
- this.convertSpeed = 375 / this.defaultWidth * this.speed //_width / this.defaultWidth * this.speed // 根据分辨率转化成不同的速度
229
- this.wrapWidth = wrap.offsetWidth
230
- this.contentWidth = content.scrollWidth
231
- console.log(content.scrollWidth);
232
- this.startAnimate()
233
- this.timer = setInterval(() => {
234
- this.startAnimate()
235
- }, this.time * 1000)
236
- this.$once('hook:beforeDestroy', () => {
237
- clearInterval(this.timer)
238
- this.timer = null
239
- })
240
- }
241
- },
242
- startAnimate() {
243
- this.contentStyle.transitionDuration = '0s'
244
- this.contentStyle.transform = 'translateX(' + this.wrapWidth + 'px)'
245
- this.time = (this.wrapWidth + this.contentWidth) / this.convertSpeed
246
- setTimeout(() => {
247
- this.contentStyle.transitionDuration = this.time + 's'
248
- this.contentStyle.transform = 'translateX(-' + this.contentWidth + 'px)'
249
- }, 200)
250
- },
251
- },
252
- }
253
-
254
- </script>
255
-
256
- <style lang="less">
257
- @import './style.less';
258
- </style>
@@ -1,328 +0,0 @@
1
- @prefix: ~"vd-noticebar";
2
-
3
- .@{prefix}-snackbar {
4
- box-sizing: border-box;
5
- position: relative;
6
- width: 100%;
7
- display: flex;
8
- min-height: var(--height-noticebar-snackbar);
9
- padding-inline-start: var(--spacing-noticebar-snackbar-padding_left);
10
- padding-inline-end: var(--spacing-noticebar-snackbar-padding_right);
11
- border-radius: var(--radius-noticebar-snackbar);
12
- background-color: var(--color-noticebar-snackbar_info-bg);
13
- color: var(--color-noticebar-snackbar_info-text);
14
- font-size: var(--en-single-f-c-r-fontSize);
15
- font-weight: var(--en-single-f-c-r-fontWeight);
16
- line-height: 1.25;
17
- z-index: 99;
18
-
19
- .vd-iconfont {
20
- font-size: var(--icon-noticebar-snackbar);
21
-
22
- &+.vd-iconfont {
23
- margin-inline-start: var(--spacing-noticebar-snackbar_icon-margin_right);
24
- }
25
- }
26
-
27
- &.@{prefix}-info {
28
- background-color: var(--color-noticebar-snackbar_info-bg);
29
- color: var(--color-noticebar-snackbar_info-text);
30
-
31
- .vd-iconfont {
32
- color: var(--color-noticebar-snackbar_info-icon);
33
- }
34
- }
35
-
36
- &.@{prefix}-warning {
37
- background-color: var(--color-noticebar-snackbar_warning-bg);
38
- color: var(--color-noticebar-snackbar_warning-text);
39
-
40
- .vd-noticebar-snackbar__content {
41
- &::after {
42
- background-image: linear-gradient(270deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_warning-bg) 90%);
43
- }
44
-
45
- &::before {
46
- background-image: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_warning-bg) 90%);
47
- }
48
- }
49
-
50
- .vd-iconfont {
51
- color: var(--color-noticebar-snackbar_warning-icon);
52
- }
53
- }
54
-
55
- &.@{prefix}-tips {
56
- background-color: var(--color-noticebar-snackbar_tips-bg);
57
- color: var(--color-noticebar-snackbar_tips-text);
58
-
59
- .vd-noticebar-snackbar__content {
60
- &::after {
61
- background-image: linear-gradient(270deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_tips-bg) 90%);
62
- }
63
-
64
- &::before {
65
- background-image: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_tips-bg) 90%);
66
- }
67
- }
68
-
69
- .vd-iconfont {
70
- color: var(--color-noticebar-snackbar_tips-icon);
71
- }
72
- }
73
-
74
- &__left,
75
- &__right {
76
- display: flex;
77
- align-items: center;
78
- }
79
-
80
- &__content {
81
- position: relative;
82
- flex: 1;
83
- margin: auto;
84
- width: auto;
85
- white-space: nowrap;
86
- overflow: hidden;
87
- margin-inline-end: var(--spacing-noticebar-snackbar_text-margin_right);
88
-
89
- &::after {
90
- content: "";
91
- width: var(--spacing-noticebar-snackbar-padding_left);
92
- position: absolute;
93
- inset-block: 0;
94
- inset-inline-start: 0;
95
- background-image: linear-gradient(270deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_info-bg) 90%);
96
- z-index: 1;
97
- }
98
-
99
- &::before {
100
- content: "";
101
- width: var(--spacing-noticebar-snackbar-padding_right);
102
- position: absolute;
103
- inset-block: 0;
104
- inset-inline-end: 0;
105
- z-index: 1;
106
- background-image: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_info-bg) 90%);
107
- }
108
-
109
- &--animate {
110
- display: inline-block;
111
- transition-timing-function: linear;
112
- }
113
- }
114
-
115
- &__multi {
116
- white-space: normal;
117
- padding-top: var(--spacing-noticebar-snackbar_text-margin_right);
118
- padding-bottom: var(--spacing-noticebar-snackbar_text-margin_right);
119
- overflow: hidden;
120
- display: -webkit-box;
121
- -webkit-box-orient: vertical;
122
- -webkit-line-clamp: 3;
123
- }
124
- }
125
-
126
-
127
- .@{prefix}-toast {
128
- box-sizing: border-box;
129
- position: relative;
130
- display: inline-flex;
131
- max-width: 100%;
132
- min-height: var(--height-noticebar-snackbar);
133
- padding-inline-start: var(--spacing-noticebar-toast-padding_left);
134
- padding-inline-end: var(--spacing-noticebar-toast-padding_right);
135
- border-radius: var(--radius-noticebar-toast);
136
- background-color: var(--color-noticebar-toast_info-bg);
137
- color: var(--color-noticebar-toast_info-text);
138
- font-size: var(--en-single-f-c-r-fontSize);
139
- font-weight: var(--en-single-f-c-r-fontWeight);
140
- line-height: 1.25;
141
- z-index: 99;
142
-
143
- .vd-iconfont {
144
- font-size: var(--icon-noticebar-toast);
145
- margin-inline-end: var(--spacing-noticebar-toast_icon-margin_right);
146
- }
147
-
148
- [lang='ar'] & .vd-iconfont {
149
- transform: scaleX(1);
150
- }
151
-
152
- &.@{prefix}-info {
153
- background-color: var(--color-noticebar-toast_info-bg);
154
- color: var(--color-noticebar-toast_info-text);
155
- }
156
-
157
- &.@{prefix}-warning {
158
- background-color: var(--color-noticebar-snackbar_warning-bg);
159
- color: var(--color-noticebar-snackbar_warning-text);
160
-
161
- .vd-iconfont {
162
- color: var(--color-noticebar-toast_warning-icon);
163
- }
164
- }
165
-
166
- &__left,
167
- &__right {
168
- display: flex;
169
- align-items: center;
170
- }
171
-
172
- &__content {
173
- flex: 1;
174
- margin: auto;
175
- width: auto;
176
- white-space: nowrap;
177
- overflow: hidden;
178
- text-overflow: ellipsis;
179
- margin-inline-end: var(--spacing-noticebar-snackbar_text-margin_right);
180
-
181
- &--animate {
182
- display: inline-block;
183
- transition-timing-function: linear;
184
- }
185
- }
186
-
187
- &__multi {
188
- white-space: normal;
189
- padding-top: var(--spacing-noticebar-snackbar_text-margin_right);
190
- padding-bottom: var(--spacing-noticebar-snackbar_text-margin_right);
191
- }
192
- }
193
-
194
- .@{prefix}-notify {
195
- box-sizing: border-box;
196
- position: relative;
197
- width: 100%;
198
- display: flex;
199
- font-size: var(--en-single-f-c-r-fontSize);
200
- font-weight: var(--en-single-f-c-r-fontWeight);
201
- line-height: 1.25;
202
- z-index: 99;
203
-
204
- border-radius: var(--radius-noticebar-notification);
205
- background-color: var(--color-noticebar-notification-bg);
206
- color: var(--color-noticebar-notification-text);
207
- padding-inline-start: var(--spacing-noticebar-notification-padding_left);
208
- padding-inline-end: var(--spacing-noticebar-notification-padding_right);
209
- padding-top: var(--spacing-noticebar-notification-padding_top);
210
- padding-bottom: var(--spacing-noticebar-notification-padding_bottom);
211
- box-shadow: var(--shadow-s3);
212
-
213
- &.@{prefix}-action {
214
- padding-inline-end: var(--spacing-noticebar-notification_button-padding_right);
215
- }
216
-
217
- &__content {
218
- flex: 1;
219
- overflow: hidden;
220
- display: -webkit-box;
221
- -webkit-box-orient: vertical;
222
- -webkit-line-clamp: 3;
223
- }
224
-
225
- &__left,
226
- &__right {
227
- display: flex;
228
- align-items: center;
229
- }
230
-
231
- &__message {
232
- display: flex;
233
- justify-content: space-between;
234
- font-size: var(--en-single-f-d-s-fontSize);
235
- font-weight: var(--en-single-f-d-s-fontWeight);
236
- margin-bottom: var(--spacing-noticebar-notification_title-margin_bottom);
237
-
238
- &--title {
239
- flex: 1;
240
- white-space: nowrap;
241
- overflow: hidden;
242
- text-overflow: ellipsis;
243
- }
244
-
245
- &--tag {
246
- display: flex;
247
- align-items: center;
248
- margin-inline-start: var(--spacing-extra-tight);
249
- border-radius: var(--radius-noticebar-notification_tag);
250
- font-size: var(--en-single-f-a-r-fontSize);
251
- font-weight: var(--en-single-f-a-r-fontWeight);
252
- padding: var(--spacing-extra-tight);
253
- line-height: var(--en-single-f-a-r-fontSize);
254
-
255
- .vd-iconfont {
256
- margin-inline-end: var(--spacing-extra-tight);
257
- }
258
-
259
- [lang='ar'] & .vd-iconfont {
260
- transform: scaleX(1);
261
- }
262
-
263
- &.@{prefix}-success {
264
- background-color: var(--color-noticebar-notification_tag_success-bg);
265
-
266
- .vd-iconfont {
267
- color: var(--tips-color-success);
268
- }
269
- }
270
-
271
- &.@{prefix}-tips {
272
- background-color: var(--color-noticebar-notification_tag_tips-bg);
273
-
274
- .vd-iconfont {
275
- color: var(--tips-color-tips);
276
- }
277
- }
278
-
279
- &.@{prefix}-warning {
280
- background-color: var(--color-noticebar-notification_tag_warning-bg);
281
-
282
- .vd-iconfont {
283
- color: var(--tips-color-warning);
284
- }
285
- }
286
-
287
- &.@{prefix}-disable {
288
- background-color: var(--color-noticebar-notification_tag_disable-bg);
289
-
290
- .vd-iconfont {
291
- color: var(--text-color-h3);
292
- }
293
- }
294
- }
295
- }
296
-
297
- &__button {
298
- margin-inline-start: var(--spacing-noticebar-notification-button-margin_left);
299
- }
300
-
301
- .vd-iconfont {
302
- font-size: var(--icon-noticebar-notification);
303
- }
304
- }
305
-
306
- [dir="rtl"] {
307
- .vd-noticebar-snackbar__content {
308
- &::after {
309
- background-image: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_info-bg) 90%);
310
- }
311
-
312
- &::before {
313
- background-image: linear-gradient(270deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_info-bg) 90%);
314
- }
315
- }
316
-
317
- .@{prefix}-warning {
318
- .vd-noticebar-snackbar__content {
319
- &::after {
320
- background-image: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_warning-bg) 90%);
321
- }
322
-
323
- &::before {
324
- background-image: linear-gradient(270deg, rgba(0, 0, 0, 0), var(--color-noticebar-snackbar_warning-bg) 90%);
325
- }
326
- }
327
- }
328
- }
@@ -1,8 +0,0 @@
1
- import VOverlay from './index.vue';
2
- import './style.less';
3
-
4
- VOverlay.install = function (Vue) {
5
- Vue.component(VOverlay.name, VOverlay);
6
- };
7
-
8
- export default VOverlay;