iov-design 2.15.45 → 2.15.47

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 (141) hide show
  1. package/lib/alert.js +2 -2
  2. package/lib/aside.js +2 -2
  3. package/lib/autocomplete.js +2 -2
  4. package/lib/avatar.js +2 -2
  5. package/lib/backtop.js +2 -2
  6. package/lib/badge.js +2 -2
  7. package/lib/breadcrumb-item.js +2 -2
  8. package/lib/breadcrumb.js +2 -2
  9. package/lib/button-group.js +2 -2
  10. package/lib/button.js +2 -2
  11. package/lib/calendar.js +4 -4
  12. package/lib/card.js +2 -2
  13. package/lib/carousel-item.js +2 -2
  14. package/lib/carousel.js +16 -16
  15. package/lib/cascader-panel.js +6 -6
  16. package/lib/cascader.js +96 -96
  17. package/lib/checkbox-button.js +2 -2
  18. package/lib/checkbox-group.js +2 -2
  19. package/lib/checkbox.js +2 -2
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +23 -23
  22. package/lib/collapse.js +2 -2
  23. package/lib/color-picker.js +2 -2
  24. package/lib/container.js +2 -2
  25. package/lib/date-picker.js +70 -91
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +2 -2
  28. package/lib/dialog.js +58 -12
  29. package/lib/divider.js +2 -2
  30. package/lib/dropdown-item.js +2 -2
  31. package/lib/dropdown-menu.js +2 -2
  32. package/lib/dropdown.js +11 -11
  33. package/lib/empty.js +13 -10
  34. package/lib/footer.js +2 -2
  35. package/lib/form-item.js +4 -4
  36. package/lib/form.js +2 -2
  37. package/lib/header.js +2 -2
  38. package/lib/icon.js +2 -2
  39. package/lib/image.js +9 -9
  40. package/lib/index.js +1 -1
  41. package/lib/infinite-scroll.js +2 -2
  42. package/lib/input-number.js +62 -62
  43. package/lib/iov-design.common.js +1027 -173
  44. package/lib/link.js +2 -2
  45. package/lib/loading.js +11 -11
  46. package/lib/main.js +2 -2
  47. package/lib/menu-item-group.js +2 -2
  48. package/lib/menu-item.js +65 -65
  49. package/lib/menu.js +2 -2
  50. package/lib/message-box.js +11 -11
  51. package/lib/message.js +15 -15
  52. package/lib/notification.js +9 -9
  53. package/lib/option-group.js +2 -2
  54. package/lib/option.js +4 -4
  55. package/lib/page-header.js +2 -2
  56. package/lib/pagination.js +6 -6
  57. package/lib/popconfirm.js +24 -24
  58. package/lib/popover.js +9 -9
  59. package/lib/progress.js +2 -2
  60. package/lib/radio-button.js +2 -2
  61. package/lib/radio-group.js +2 -2
  62. package/lib/radio.js +9 -9
  63. package/lib/rate.js +23 -23
  64. package/lib/result.js +2 -2
  65. package/lib/row.js +2 -2
  66. package/lib/scrollbar.js +4 -4
  67. package/lib/select.js +18 -18
  68. package/lib/skeleton-item.js +2 -2
  69. package/lib/skeleton.js +2 -2
  70. package/lib/slider.js +4 -4
  71. package/lib/spinner.js +2 -2
  72. package/lib/static/excel.f44318e.png +0 -0
  73. package/lib/static/excel.f44318e0.png +0 -0
  74. package/lib/static/file.4ed3551.png +0 -0
  75. package/lib/static/file.4ed35511.png +0 -0
  76. package/lib/static/img.cd179e5.png +0 -0
  77. package/lib/static/img.cd179e5b.png +0 -0
  78. package/lib/static/pdf.79cb57f.png +0 -0
  79. package/lib/static/pdf.79cb57f8.png +0 -0
  80. package/lib/static/ppt.eed4918.png +0 -0
  81. package/lib/static/ppt.eed4918e.png +0 -0
  82. package/lib/static/word.35070ef.png +0 -0
  83. package/lib/static/word.35070ef0.png +0 -0
  84. package/lib/static/zip.dca21a8.png +0 -0
  85. package/lib/static/zip.dca21a88.png +0 -0
  86. package/lib/statistic.js +4 -4
  87. package/lib/step.js +2 -2
  88. package/lib/steps.js +9 -9
  89. package/lib/submenu.js +4 -4
  90. package/lib/switch.js +2 -2
  91. package/lib/tab-pane.js +2 -2
  92. package/lib/table-column.js +2 -2
  93. package/lib/table.js +23 -15
  94. package/lib/tabs.js +2 -2
  95. package/lib/tag.js +2 -2
  96. package/lib/theme-chalk/alert.css +1 -1
  97. package/lib/theme-chalk/base.css +1 -1
  98. package/lib/theme-chalk/dialog.css +1 -1
  99. package/lib/theme-chalk/index.css +1 -1
  100. package/lib/theme-chalk/iovfont.css +1 -1
  101. package/lib/theme-chalk/message.css +1 -1
  102. package/lib/theme-chalk/notification.css +1 -1
  103. package/lib/theme-chalk/upload.css +1 -1
  104. package/lib/time-picker.js +12 -12
  105. package/lib/time-select.js +9 -9
  106. package/lib/timeline-item.js +2 -2
  107. package/lib/timeline.js +2 -2
  108. package/lib/tooltip.js +2 -2
  109. package/lib/transfer.js +11 -11
  110. package/lib/tree.js +2 -2
  111. package/lib/upload.js +920 -119
  112. package/package.json +1 -1
  113. package/packages/dialog/src/component.vue +44 -4
  114. package/packages/empty/src/index.vue +4 -1
  115. package/packages/message/src/main.js +1 -1
  116. package/packages/message/src/main.vue +6 -6
  117. package/packages/tabs/src/tabs.vue +196 -196
  118. package/packages/theme-chalk/src/alert.scss +21 -18
  119. package/packages/theme-chalk/src/assets/img_fail.png +0 -0
  120. package/packages/theme-chalk/src/assets/img_placeholder.png +0 -0
  121. package/packages/theme-chalk/src/common/var.scss +1 -34
  122. package/packages/theme-chalk/src/dialog.scss +20 -6
  123. package/packages/theme-chalk/src/iovfont.scss +3 -3
  124. package/packages/theme-chalk/src/message-box.scss +207 -207
  125. package/packages/theme-chalk/src/message.scss +28 -37
  126. package/packages/theme-chalk/src/tabs.scss +686 -686
  127. package/packages/theme-chalk/src/upload.scss +568 -603
  128. package/packages/upload/src/assets/excel.png +0 -0
  129. package/packages/upload/src/assets/file.png +0 -0
  130. package/packages/upload/src/assets/img.png +0 -0
  131. package/packages/upload/src/assets/pdf.png +0 -0
  132. package/packages/upload/src/assets/ppt.png +0 -0
  133. package/packages/upload/src/assets/word.png +0 -0
  134. package/packages/upload/src/assets/zip.png +0 -0
  135. package/packages/upload/src/index.vue +73 -5
  136. package/packages/upload/src/upload-file.vue +90 -0
  137. package/packages/upload/src/upload-list.vue +52 -50
  138. package/packages/upload/src/upload-picture.vue +90 -0
  139. package/packages/upload/src/upload.vue +231 -211
  140. package/packages/upload/src/utils.js +30 -0
  141. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iov-design",
3
- "version": "2.15.45",
3
+ "version": "2.15.47",
4
4
  "description": "A Component Library for Vue.js.",
5
5
  "main": "lib/iov-design.common.js",
6
6
  "files": [
@@ -27,8 +27,8 @@
27
27
  <i class="el-dialog__close el-icon iov-icon-close" v-if="showClose" @click="handleClose"></i>
28
28
  </span>
29
29
  </div>
30
- <div class="el-dialog__body" :class="type === 'form' ? 'el-dialog__body--form' : 'el-dialog__body--desc'" v-if="rendered"><slot></slot></div>
31
- <div class="el-dialog__footer" v-if="$slots.footer">
30
+ <div class="el-dialog__body" ref="body" :class="type === 'form' ? 'el-dialog__body--form' : 'el-dialog__body--desc'" v-if="rendered"><slot></slot></div>
31
+ <div class="el-dialog__footer" ref="footer" v-if="$slots.footer">
32
32
  <slot name="footer"></slot>
33
33
  </div>
34
34
  </div>
@@ -103,7 +103,7 @@
103
103
 
104
104
  top: {
105
105
  type: String,
106
- default: '15vh'
106
+ default: '50%'
107
107
  },
108
108
  beforeClose: Function,
109
109
  center: {
@@ -149,7 +149,7 @@
149
149
  style() {
150
150
  let style = {};
151
151
  if (!this.fullscreen) {
152
- style.marginTop = this.top;
152
+ style.top = this.top;
153
153
  if (this.width) {
154
154
  style.width = this.width;
155
155
  }
@@ -189,10 +189,47 @@
189
189
  this.broadcast('ElDropdownMenu', 'updatePopper');
190
190
  },
191
191
  afterEnter() {
192
+ this.onDialogOpened();
192
193
  this.$emit('opened');
193
194
  },
194
195
  afterLeave() {
195
196
  this.$emit('closed');
197
+ },
198
+
199
+ onDialogOpened() {
200
+ this.$nextTick(() => {
201
+ this.checkOverflow();
202
+ this.observeContentChanges();
203
+ });
204
+ },
205
+
206
+ // 检查内容是否超过body高度
207
+ checkOverflow() {
208
+ const body = this.$refs.body;
209
+ const footer = this.$refs.footer;
210
+ if (!body || !footer) return;
211
+ if (body.scrollHeight > body.clientHeight) {
212
+ footer.classList.add('el-dialog__footer--shadow');
213
+ } else {
214
+ footer.classList.remove('el-dialog__footer--shadow');
215
+ }
216
+ },
217
+ // 监听节点变化
218
+ observeContentChanges() {
219
+ const body = this.$refs.body;
220
+ if (!body) return;
221
+ if (this._mutationObserver) {
222
+ this._mutationObserver.disconnect();
223
+ }
224
+ this._mutationObserver = new MutationObserver(() => {
225
+ this.checkOverflow();
226
+ });
227
+ // 监听子节点及文本节点的内容变化
228
+ this._mutationObserver.observe(body, {
229
+ childList: true,
230
+ subtree: true,
231
+ characterData: true
232
+ });
196
233
  }
197
234
  },
198
235
 
@@ -211,6 +248,9 @@
211
248
  if (this.appendToBody && this.$el && this.$el.parentNode) {
212
249
  this.$el.parentNode.removeChild(this.$el);
213
250
  }
251
+ if (this._mutationObserver) {
252
+ this._mutationObserver.disconnect();
253
+ }
214
254
  }
215
255
  };
216
256
  </script>
@@ -44,7 +44,10 @@ export default {
44
44
  type: Number,
45
45
  default: 1
46
46
  },
47
- imageSize: Number,
47
+ imageSize: {
48
+ type: Number,
49
+ default: 140
50
+ },
48
51
  description: {
49
52
  type: String,
50
53
  default: ''
@@ -33,7 +33,7 @@ const Message = function(options) {
33
33
  }
34
34
  instance.$mount();
35
35
  document.body.appendChild(instance.$el);
36
- let verticalOffset = options.offset || 20;
36
+ let verticalOffset = options.offset || 46;
37
37
  instances.forEach(item => {
38
38
  verticalOffset += item.$el.offsetHeight + 16;
39
39
  });
@@ -19,17 +19,17 @@
19
19
  <p v-if="!dangerouslyUseHTMLString" class="el-message__content">{{ message }}</p>
20
20
  <p v-else v-html="message" class="el-message__content"></p>
21
21
  </slot>
22
- <i v-if="showClose" class="el-message__closeBtn el-icon-close" @click="close"></i>
22
+ <i v-if="showClose" class="el-message__closeBtn iov-icon-close" @click="close"></i>
23
23
  </div>
24
24
  </transition>
25
25
  </template>
26
26
 
27
27
  <script type="text/babel">
28
- const typeMap = {
28
+ let typeMap = {
29
29
  success: 'success',
30
- info: 'info',
30
+ info: 'explain',
31
31
  warning: 'warning',
32
- error: 'error'
32
+ error: 'fail'
33
33
  };
34
34
 
35
35
  export default {
@@ -44,7 +44,7 @@
44
44
  onClose: null,
45
45
  showClose: false,
46
46
  closed: false,
47
- verticalOffset: 20,
47
+ verticalOffset: 46,
48
48
  timer: null,
49
49
  dangerouslyUseHTMLString: false,
50
50
  center: false
@@ -54,7 +54,7 @@
54
54
  computed: {
55
55
  typeClass() {
56
56
  return this.type && !this.iconClass
57
- ? `el-message__icon el-icon-${ typeMap[this.type] }`
57
+ ? `el-message__icon iov-icon-fill-${ typeMap[this.type] }`
58
58
  : '';
59
59
  },
60
60
  positionStyle() {
@@ -1,196 +1,196 @@
1
- <script>
2
- import TabNav from './tab-nav';
3
-
4
- export default {
5
- name: 'ElTabs',
6
-
7
- components: {
8
- TabNav
9
- },
10
-
11
- props: {
12
- type: String,
13
- size: String,
14
- activeName: String,
15
- closable: Boolean,
16
- addable: Boolean,
17
- value: {},
18
- editable: Boolean,
19
- tabPosition: {
20
- type: String,
21
- default: 'top'
22
- },
23
- beforeLeave: Function,
24
- stretch: Boolean
25
- },
26
-
27
- provide() {
28
- return {
29
- rootTabs: this
30
- };
31
- },
32
-
33
- data() {
34
- return {
35
- currentName: this.value || this.activeName,
36
- panes: []
37
- };
38
- },
39
-
40
- watch: {
41
- activeName(value) {
42
- this.setCurrentName(value);
43
- },
44
- value(value) {
45
- this.setCurrentName(value);
46
- },
47
- currentName(value) {
48
- if (this.$refs.nav) {
49
- this.$nextTick(() => {
50
- this.$refs.nav.$nextTick(_ => {
51
- this.$refs.nav.scrollToActiveTab();
52
- });
53
- });
54
- }
55
- }
56
- },
57
-
58
- methods: {
59
- calcPaneInstances(isForceUpdate = false) {
60
- if (this.$slots.default) {
61
- const paneSlots = this.$slots.default.filter(vnode => vnode.tag &&
62
- vnode.componentOptions && vnode.componentOptions.Ctor.options.name === 'ElTabPane');
63
- // update indeed
64
- const panes = paneSlots.map(({ componentInstance }) => componentInstance);
65
- const panesChanged = !(panes.length === this.panes.length && panes.every((pane, index) => pane === this.panes[index]));
66
- if (isForceUpdate || panesChanged) {
67
- this.panes = panes;
68
- }
69
- } else if (this.panes.length !== 0) {
70
- this.panes = [];
71
- }
72
- },
73
- handleTabClick(tab, tabName, event) {
74
- if (tab.disabled) return;
75
- this.setCurrentName(tabName);
76
- this.$emit('tab-click', tab, event);
77
- },
78
- handleTabRemove(pane, ev) {
79
- if (pane.disabled) return;
80
- ev.stopPropagation();
81
- this.$emit('edit', pane.name, 'remove');
82
- this.$emit('tab-remove', pane.name);
83
- },
84
- handleTabAdd() {
85
- this.$emit('edit', null, 'add');
86
- this.$emit('tab-add');
87
- },
88
- setCurrentName(value) {
89
- const changeCurrentName = () => {
90
- this.currentName = value;
91
- this.$emit('input', value);
92
- };
93
- if (this.currentName !== value && this.beforeLeave) {
94
- const before = this.beforeLeave(value, this.currentName);
95
- if (before && before.then) {
96
- before
97
- .then(() => {
98
- changeCurrentName();
99
- this.$refs.nav && this.$refs.nav.removeFocus();
100
- }, () => {
101
- // https://github.com/ElemeFE/element/pull/14816
102
- // ignore promise rejection in `before-leave` hook
103
- });
104
- } else if (before !== false) {
105
- changeCurrentName();
106
- }
107
- } else {
108
- changeCurrentName();
109
- }
110
- }
111
- },
112
-
113
- render(h) {
114
- let {
115
- type,
116
- size,
117
- handleTabClick,
118
- handleTabRemove,
119
- handleTabAdd,
120
- currentName,
121
- panes,
122
- editable,
123
- addable,
124
- tabPosition,
125
- stretch
126
- } = this;
127
-
128
- const newButton = editable || addable
129
- ? (
130
- <span
131
- class="el-tabs__new-tab"
132
- on-click={ handleTabAdd }
133
- tabindex="0"
134
- on-keydown={ (ev) => { if (ev.keyCode === 13) { handleTabAdd(); }} }
135
- >
136
- <i class="iov-icon-plus"></i>
137
- </span>
138
- )
139
- : null;
140
-
141
- const navData = {
142
- props: {
143
- currentName,
144
- onTabClick: handleTabClick,
145
- onTabRemove: handleTabRemove,
146
- editable,
147
- type,
148
- panes,
149
- stretch
150
- },
151
- ref: 'nav'
152
- };
153
- const header = (
154
- <div class={['el-tabs__header', `is-${tabPosition}`]}>
155
- {newButton}
156
- <tab-nav { ...navData }></tab-nav>
157
- </div>
158
- );
159
- const panels = (
160
- <div class="el-tabs__content">
161
- {this.$slots.default}
162
- </div>
163
- );
164
-
165
- return (
166
- <div class={{
167
- 'el-tabs': true,
168
- 'el-tabs--normal': !type,
169
- 'el-tabs--card': type === 'card',
170
- 'el-tabs--capsule': type === 'capsule',
171
- [`el-tabs--${size}`]: size,
172
- [`el-tabs--${tabPosition}`]: true,
173
- 'el-tabs--border-card': type === 'border-card'
174
- }}>
175
- { tabPosition !== 'bottom' ? [header, panels] : [panels, header] }
176
- </div>
177
- );
178
- },
179
-
180
- created() {
181
- if (!this.currentName) {
182
- this.setCurrentName('0');
183
- }
184
-
185
- this.$on('tab-nav-update', this.calcPaneInstances.bind(null, true));
186
- },
187
-
188
- mounted() {
189
- this.calcPaneInstances();
190
- },
191
-
192
- updated() {
193
- this.calcPaneInstances();
194
- }
195
- };
196
- </script>
1
+ <script>
2
+ import TabNav from './tab-nav';
3
+
4
+ export default {
5
+ name: 'ElTabs',
6
+
7
+ components: {
8
+ TabNav
9
+ },
10
+
11
+ props: {
12
+ type: String,
13
+ size: String,
14
+ activeName: String,
15
+ closable: Boolean,
16
+ addable: Boolean,
17
+ value: {},
18
+ editable: Boolean,
19
+ tabPosition: {
20
+ type: String,
21
+ default: 'top'
22
+ },
23
+ beforeLeave: Function,
24
+ stretch: Boolean
25
+ },
26
+
27
+ provide() {
28
+ return {
29
+ rootTabs: this
30
+ };
31
+ },
32
+
33
+ data() {
34
+ return {
35
+ currentName: this.value || this.activeName,
36
+ panes: []
37
+ };
38
+ },
39
+
40
+ watch: {
41
+ activeName(value) {
42
+ this.setCurrentName(value);
43
+ },
44
+ value(value) {
45
+ this.setCurrentName(value);
46
+ },
47
+ currentName(value) {
48
+ if (this.$refs.nav) {
49
+ this.$nextTick(() => {
50
+ this.$refs.nav.$nextTick(_ => {
51
+ this.$refs.nav.scrollToActiveTab();
52
+ });
53
+ });
54
+ }
55
+ }
56
+ },
57
+
58
+ methods: {
59
+ calcPaneInstances(isForceUpdate = false) {
60
+ if (this.$slots.default) {
61
+ const paneSlots = this.$slots.default.filter(vnode => vnode.tag &&
62
+ vnode.componentOptions && vnode.componentOptions.Ctor.options.name === 'ElTabPane');
63
+ // update indeed
64
+ const panes = paneSlots.map(({ componentInstance }) => componentInstance);
65
+ const panesChanged = !(panes.length === this.panes.length && panes.every((pane, index) => pane === this.panes[index]));
66
+ if (isForceUpdate || panesChanged) {
67
+ this.panes = panes;
68
+ }
69
+ } else if (this.panes.length !== 0) {
70
+ this.panes = [];
71
+ }
72
+ },
73
+ handleTabClick(tab, tabName, event) {
74
+ if (tab.disabled) return;
75
+ this.setCurrentName(tabName);
76
+ this.$emit('tab-click', tab, event);
77
+ },
78
+ handleTabRemove(pane, ev) {
79
+ if (pane.disabled) return;
80
+ ev.stopPropagation();
81
+ this.$emit('edit', pane.name, 'remove');
82
+ this.$emit('tab-remove', pane.name);
83
+ },
84
+ handleTabAdd() {
85
+ this.$emit('edit', null, 'add');
86
+ this.$emit('tab-add');
87
+ },
88
+ setCurrentName(value) {
89
+ const changeCurrentName = () => {
90
+ this.currentName = value;
91
+ this.$emit('input', value);
92
+ };
93
+ if (this.currentName !== value && this.beforeLeave) {
94
+ const before = this.beforeLeave(value, this.currentName);
95
+ if (before && before.then) {
96
+ before
97
+ .then(() => {
98
+ changeCurrentName();
99
+ this.$refs.nav && this.$refs.nav.removeFocus();
100
+ }, () => {
101
+ // https://github.com/ElemeFE/element/pull/14816
102
+ // ignore promise rejection in `before-leave` hook
103
+ });
104
+ } else if (before !== false) {
105
+ changeCurrentName();
106
+ }
107
+ } else {
108
+ changeCurrentName();
109
+ }
110
+ }
111
+ },
112
+
113
+ render(h) {
114
+ let {
115
+ type,
116
+ size,
117
+ handleTabClick,
118
+ handleTabRemove,
119
+ handleTabAdd,
120
+ currentName,
121
+ panes,
122
+ editable,
123
+ addable,
124
+ tabPosition,
125
+ stretch
126
+ } = this;
127
+
128
+ const newButton = editable || addable
129
+ ? (
130
+ <span
131
+ class="el-tabs__new-tab"
132
+ on-click={ handleTabAdd }
133
+ tabindex="0"
134
+ on-keydown={ (ev) => { if (ev.keyCode === 13) { handleTabAdd(); }} }
135
+ >
136
+ <i class="iov-icon-plus"></i>
137
+ </span>
138
+ )
139
+ : null;
140
+
141
+ const navData = {
142
+ props: {
143
+ currentName,
144
+ onTabClick: handleTabClick,
145
+ onTabRemove: handleTabRemove,
146
+ editable,
147
+ type,
148
+ panes,
149
+ stretch
150
+ },
151
+ ref: 'nav'
152
+ };
153
+ const header = (
154
+ <div class={['el-tabs__header', `is-${tabPosition}`]}>
155
+ {newButton}
156
+ <tab-nav { ...navData }></tab-nav>
157
+ </div>
158
+ );
159
+ const panels = (
160
+ <div class="el-tabs__content">
161
+ {this.$slots.default}
162
+ </div>
163
+ );
164
+
165
+ return (
166
+ <div class={{
167
+ 'el-tabs': true,
168
+ 'el-tabs--normal': !type,
169
+ 'el-tabs--card': type === 'card',
170
+ 'el-tabs--capsule': type === 'capsule',
171
+ [`el-tabs--${size}`]: size,
172
+ [`el-tabs--${tabPosition}`]: true,
173
+ 'el-tabs--border-card': type === 'border-card'
174
+ }}>
175
+ { tabPosition !== 'bottom' ? [header, panels] : [panels, header] }
176
+ </div>
177
+ );
178
+ },
179
+
180
+ created() {
181
+ if (!this.currentName) {
182
+ this.setCurrentName('0');
183
+ }
184
+
185
+ this.$on('tab-nav-update', this.calcPaneInstances.bind(null, true));
186
+ },
187
+
188
+ mounted() {
189
+ this.calcPaneInstances();
190
+ },
191
+
192
+ updated() {
193
+ this.calcPaneInstances();
194
+ }
195
+ };
196
+ </script>
@@ -3,12 +3,12 @@
3
3
 
4
4
  @include b(alert) {
5
5
  width: 100%;
6
- padding: $--alert-padding;
6
+ padding: 11px 12px;
7
7
  margin: 0;
8
8
  box-sizing: border-box;
9
- border-radius: $--alert-border-radius;
9
+ border-radius: 4px;
10
10
  position: relative;
11
- background-color: $--color-white;
11
+ background-color: #fff;
12
12
  overflow: hidden;
13
13
  opacity: 1;
14
14
  display: flex;
@@ -26,10 +26,10 @@
26
26
 
27
27
  @include when(dark) {
28
28
  .el-alert__closebtn {
29
- color: $--color-white;
29
+ color: #fff;
30
30
  }
31
31
  .el-alert__description {
32
- color: $--color-white;
32
+ color: #fff;
33
33
  }
34
34
  }
35
35
 
@@ -49,7 +49,7 @@
49
49
 
50
50
  &.is-dark {
51
51
  background-color: $--color-success-6;
52
- color: $--color-white;
52
+ color: #fff;
53
53
  }
54
54
  }
55
55
 
@@ -65,7 +65,7 @@
65
65
 
66
66
  &.is-dark {
67
67
  background-color: $--color-primary-6;
68
- color: $--color-white;
68
+ color: #fff;
69
69
  }
70
70
  }
71
71
 
@@ -81,7 +81,7 @@
81
81
 
82
82
  &.is-dark {
83
83
  background-color: $--color-warning-6;
84
- color: $--color-white;
84
+ color: #fff;
85
85
  }
86
86
  }
87
87
 
@@ -97,7 +97,7 @@
97
97
 
98
98
  &.is-dark {
99
99
  background-color: $--color-danger-6;
100
- color: $--color-white;
100
+ color: #fff;
101
101
  }
102
102
  }
103
103
 
@@ -107,30 +107,33 @@
107
107
 
108
108
  @include e(icon) {
109
109
  margin-right: 8px;
110
- font-size: $--alert-icon-size;
111
- width: $--alert-icon-size;
110
+ font-size: 16px;
111
+ width: 16px;
112
112
  @include when(big) {
113
- font-size: $--alert-icon-large-size;
114
- width: $--alert-icon-large-size;
113
+ font-size: 16px;
114
+ width: 16px;
115
+ align-self: flex-start;
115
116
  }
116
117
  }
117
118
 
118
119
  @include e(title) {
119
- font-size: $--alert-title-font-size;
120
+ font-size: 12px;
121
+ line-height: 16px;
122
+ display: block;
120
123
  @include when(bold) {
121
124
  font-weight: 500;
122
125
  }
123
126
  }
124
127
 
125
128
  & .el-alert__description {
126
- font-size: $--alert-description-font-size;
127
- margin: 5px 0 0 0;
129
+ font-size: 12px;
130
+ margin: 4px 0 0 0;
128
131
  color: $--color-text-6;
129
132
  font-weight: 400;
130
133
  }
131
134
 
132
135
  @include e(closebtn) {
133
- font-size: $--alert-close-font-size;
136
+ font-size: 14px;
134
137
  opacity: 1;
135
138
  position: absolute;
136
139
  top: 12px;
@@ -139,7 +142,7 @@
139
142
 
140
143
  @include when(customed) {
141
144
  font-style: normal;
142
- font-size: $--alert-close-customed-font-size;
145
+ font-size: 12px;
143
146
  top: 11px;
144
147
  }
145
148
  }