vdesign-ui 0.1.17 → 0.1.19

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