iov-design 2.15.41 → 2.15.43

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 (131) hide show
  1. package/lib/dialog.js +21 -9
  2. package/lib/index.js +1 -1
  3. package/lib/iov-design.common.js +121 -97
  4. package/lib/message-box.js +99 -87
  5. package/lib/theme-chalk/cascader-panel.css +1 -1
  6. package/lib/theme-chalk/cascader.css +1 -1
  7. package/lib/theme-chalk/checkbox.css +1 -1
  8. package/lib/theme-chalk/dialog.css +1 -1
  9. package/lib/theme-chalk/drawer.css +1 -1
  10. package/lib/theme-chalk/index.css +1 -1
  11. package/lib/theme-chalk/message-box.css +1 -1
  12. package/lib/theme-chalk/radio.css +1 -1
  13. package/lib/theme-chalk/table-column.css +1 -1
  14. package/lib/theme-chalk/table.css +1 -1
  15. package/lib/theme-chalk/transfer.css +1 -1
  16. package/lib/theme-chalk/tree.css +1 -1
  17. package/package.json +1 -1
  18. package/packages/dialog/src/component.vue +10 -6
  19. package/packages/message-box/src/main.js +1 -1
  20. package/packages/message-box/src/main.vue +13 -12
  21. package/packages/theme-chalk/gulpfile.js +25 -0
  22. package/packages/theme-chalk/src/checkbox.scss +1 -1
  23. package/packages/theme-chalk/src/common/var.scss +1 -32
  24. package/packages/theme-chalk/src/dialog.scss +30 -23
  25. package/packages/theme-chalk/src/drawer.scss +2 -2
  26. package/packages/theme-chalk/src/message-box.scss +56 -75
  27. package/packages/theme-chalk/src/radio.scss +2 -2
  28. package/src/index.js +1 -1
  29. package/CHANGELOG.en-US.md +0 -2085
  30. package/CHANGELOG.es.md +0 -2093
  31. package/CHANGELOG.fr-FR.md +0 -2085
  32. package/CHANGELOG.zh-CN.md +0 -2085
  33. package/packages/theme-chalk/lib/alert.css +0 -1
  34. package/packages/theme-chalk/lib/aside.css +0 -1
  35. package/packages/theme-chalk/lib/autocomplete.css +0 -1
  36. package/packages/theme-chalk/lib/avatar.css +0 -1
  37. package/packages/theme-chalk/lib/backtop.css +0 -1
  38. package/packages/theme-chalk/lib/badge.css +0 -1
  39. package/packages/theme-chalk/lib/base.css +0 -1
  40. package/packages/theme-chalk/lib/breadcrumb-item.css +0 -0
  41. package/packages/theme-chalk/lib/breadcrumb.css +0 -1
  42. package/packages/theme-chalk/lib/button-group.css +0 -0
  43. package/packages/theme-chalk/lib/button.css +0 -1
  44. package/packages/theme-chalk/lib/calendar.css +0 -1
  45. package/packages/theme-chalk/lib/card.css +0 -1
  46. package/packages/theme-chalk/lib/carousel-item.css +0 -1
  47. package/packages/theme-chalk/lib/carousel.css +0 -1
  48. package/packages/theme-chalk/lib/cascader-panel.css +0 -1
  49. package/packages/theme-chalk/lib/cascader.css +0 -1
  50. package/packages/theme-chalk/lib/checkbox-button.css +0 -0
  51. package/packages/theme-chalk/lib/checkbox-group.css +0 -0
  52. package/packages/theme-chalk/lib/checkbox.css +0 -1
  53. package/packages/theme-chalk/lib/col.css +0 -1
  54. package/packages/theme-chalk/lib/collapse-item.css +0 -0
  55. package/packages/theme-chalk/lib/collapse.css +0 -1
  56. package/packages/theme-chalk/lib/color-picker.css +0 -1
  57. package/packages/theme-chalk/lib/container.css +0 -1
  58. package/packages/theme-chalk/lib/date-picker.css +0 -1
  59. package/packages/theme-chalk/lib/descriptions-item.css +0 -1
  60. package/packages/theme-chalk/lib/descriptions.css +0 -1
  61. package/packages/theme-chalk/lib/dialog.css +0 -1
  62. package/packages/theme-chalk/lib/display.css +0 -1
  63. package/packages/theme-chalk/lib/divider.css +0 -1
  64. package/packages/theme-chalk/lib/drawer.css +0 -1
  65. package/packages/theme-chalk/lib/dropdown-item.css +0 -0
  66. package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
  67. package/packages/theme-chalk/lib/dropdown.css +0 -1
  68. package/packages/theme-chalk/lib/empty.css +0 -1
  69. package/packages/theme-chalk/lib/fonts/element-icons.ttf +0 -0
  70. package/packages/theme-chalk/lib/fonts/element-icons.woff +0 -0
  71. package/packages/theme-chalk/lib/footer.css +0 -1
  72. package/packages/theme-chalk/lib/form-item.css +0 -0
  73. package/packages/theme-chalk/lib/form.css +0 -1
  74. package/packages/theme-chalk/lib/header.css +0 -1
  75. package/packages/theme-chalk/lib/icon.css +0 -1
  76. package/packages/theme-chalk/lib/image.css +0 -1
  77. package/packages/theme-chalk/lib/index.css +0 -1
  78. package/packages/theme-chalk/lib/infinite-scroll.css +0 -0
  79. package/packages/theme-chalk/lib/infiniteScroll.css +0 -0
  80. package/packages/theme-chalk/lib/input-number.css +0 -1
  81. package/packages/theme-chalk/lib/input.css +0 -1
  82. package/packages/theme-chalk/lib/iovfont.css +0 -1
  83. package/packages/theme-chalk/lib/link.css +0 -1
  84. package/packages/theme-chalk/lib/loading.css +0 -1
  85. package/packages/theme-chalk/lib/main.css +0 -1
  86. package/packages/theme-chalk/lib/menu-item-group.css +0 -0
  87. package/packages/theme-chalk/lib/menu-item.css +0 -0
  88. package/packages/theme-chalk/lib/menu.css +0 -1
  89. package/packages/theme-chalk/lib/message-box.css +0 -1
  90. package/packages/theme-chalk/lib/message.css +0 -1
  91. package/packages/theme-chalk/lib/notification.css +0 -1
  92. package/packages/theme-chalk/lib/option-group.css +0 -1
  93. package/packages/theme-chalk/lib/option.css +0 -1
  94. package/packages/theme-chalk/lib/page-header.css +0 -1
  95. package/packages/theme-chalk/lib/pagination.css +0 -1
  96. package/packages/theme-chalk/lib/popconfirm.css +0 -1
  97. package/packages/theme-chalk/lib/popover.css +0 -1
  98. package/packages/theme-chalk/lib/popper.css +0 -1
  99. package/packages/theme-chalk/lib/progress.css +0 -1
  100. package/packages/theme-chalk/lib/radio-button.css +0 -1
  101. package/packages/theme-chalk/lib/radio-group.css +0 -1
  102. package/packages/theme-chalk/lib/radio.css +0 -1
  103. package/packages/theme-chalk/lib/rate.css +0 -1
  104. package/packages/theme-chalk/lib/reset.css +0 -1
  105. package/packages/theme-chalk/lib/result.css +0 -1
  106. package/packages/theme-chalk/lib/row.css +0 -1
  107. package/packages/theme-chalk/lib/scrollbar.css +0 -1
  108. package/packages/theme-chalk/lib/select-dropdown.css +0 -1
  109. package/packages/theme-chalk/lib/select.css +0 -1
  110. package/packages/theme-chalk/lib/skeleton-item.css +0 -1
  111. package/packages/theme-chalk/lib/skeleton.css +0 -1
  112. package/packages/theme-chalk/lib/slider.css +0 -1
  113. package/packages/theme-chalk/lib/spinner.css +0 -1
  114. package/packages/theme-chalk/lib/statistic.css +0 -1
  115. package/packages/theme-chalk/lib/step.css +0 -1
  116. package/packages/theme-chalk/lib/steps.css +0 -1
  117. package/packages/theme-chalk/lib/submenu.css +0 -0
  118. package/packages/theme-chalk/lib/switch.css +0 -1
  119. package/packages/theme-chalk/lib/tab-pane.css +0 -0
  120. package/packages/theme-chalk/lib/table-column.css +0 -1
  121. package/packages/theme-chalk/lib/table.css +0 -1
  122. package/packages/theme-chalk/lib/tabs.css +0 -1
  123. package/packages/theme-chalk/lib/tag.css +0 -1
  124. package/packages/theme-chalk/lib/time-picker.css +0 -1
  125. package/packages/theme-chalk/lib/time-select.css +0 -1
  126. package/packages/theme-chalk/lib/timeline-item.css +0 -1
  127. package/packages/theme-chalk/lib/timeline.css +0 -1
  128. package/packages/theme-chalk/lib/tooltip.css +0 -1
  129. package/packages/theme-chalk/lib/transfer.css +0 -1
  130. package/packages/theme-chalk/lib/tree.css +0 -1
  131. package/packages/theme-chalk/lib/upload.css +0 -1
@@ -6,14 +6,9 @@
6
6
 
7
7
  @include b(message-box) {
8
8
  display: inline-block;
9
- width: $--msgbox-width;
10
- padding-bottom: 10px;
11
- vertical-align: middle;
12
- background-color: $--color-white;
13
- border-radius: $--msgbox-border-radius;
14
- border: 1px solid $--border-color-lighter;
15
- font-size: $--messagebox-font-size;
16
- box-shadow: $--box-shadow-light;
9
+ width: 480px;
10
+ background: #fff;
11
+ border-radius: 8px;
17
12
  text-align: left;
18
13
  overflow: hidden;
19
14
  backface-visibility: hidden;
@@ -37,54 +32,60 @@
37
32
 
38
33
  @include e(header) {
39
34
  position: relative;
40
- padding: $--msgbox-padding-primary;
41
- padding-bottom: 10px;
35
+ padding: 16px 24px;
36
+ border-bottom: 1px solid $--color-line-1;
42
37
  }
43
38
 
44
39
  @include e(title) {
45
40
  padding-left: 0;
46
41
  margin-bottom: 0;
47
- font-size: $--messagebox-font-size;
42
+ font-size: 16px;
48
43
  line-height: 1;
49
- color: $--messagebox-title-color;
44
+ color: $--color-text-6;
45
+ span {
46
+ font-weight: 500;
47
+ }
50
48
  }
51
49
 
52
50
  @include e(headerbtn) {
53
51
  position: absolute;
54
- top: $--msgbox-padding-primary;
55
- right: $--msgbox-padding-primary;
56
- padding: 0;
57
- border: none;
58
- outline: none;
59
- background: transparent;
60
- font-size: $--message-close-size;
52
+ top: 50%;
53
+ right: 20px;
54
+ padding: 4px;
61
55
  cursor: pointer;
56
+ font-size: 0;
57
+ margin-top: -12px;
58
+ transition: all ease .3s;
59
+ border-radius: 4px;
62
60
 
63
61
  .el-message-box__close {
64
- color: $--color-info;
62
+ font-size: 16px;
63
+ color: $--color-fill-5;
65
64
  }
66
65
 
67
66
  &:focus, &:hover {
67
+ background: $--color-fill-1;
68
68
  .el-message-box__close {
69
- color: $--color-primary;
69
+ color: $--color-fill-6;
70
70
  }
71
71
  }
72
72
 
73
73
  }
74
74
 
75
75
  @include e(content) {
76
- padding: 10px $--msgbox-padding-primary;
77
- color: $--messagebox-content-color;
78
- font-size: $--messagebox-content-font-size;
76
+ padding: 16px 24px 0;
77
+ color: $--color-text-6;
78
+ font-size: 13px;
79
+ line-height: 20px;
79
80
  }
80
-
81
+
81
82
  @include e(container) {
82
83
  position: relative;
84
+ overflow: hidden;
83
85
  }
84
86
 
85
87
  @include e(input) {
86
- padding-top: 15px;
87
-
88
+ padding-top: 4px;
88
89
  & input.invalid {
89
90
  border-color: $--color-danger;
90
91
  &:focus {
@@ -94,35 +95,29 @@
94
95
  }
95
96
 
96
97
  @include e(status) {
97
- position: absolute;
98
- top: 50%;
99
- transform: translateY(-50%);
98
+ margin-right: 8px;
100
99
  font-size: 24px !important;
101
-
102
- &::before {
103
- // 防止图标切割
104
- padding-left: 1px;
105
- }
100
+ float: left;
106
101
 
107
102
  + .el-message-box__message {
108
- padding-left: 36px;
109
- padding-right: 12px;
103
+ padding-top: 2px;
104
+ overflow: hidden;
110
105
  }
111
106
 
112
- &.el-icon-success {
113
- color: $--messagebox-success-color;
107
+ &.iov-icon-fill-success {
108
+ color: $--color-success-6;
114
109
  }
115
110
 
116
- &.el-icon-info {
117
- color: $--messagebox-info-color;
111
+ &.iov-icon-fill-explain {
112
+ color: $--color-primary-6;
118
113
  }
119
114
 
120
- &.el-icon-warning {
121
- color: $--messagebox-warning-color;
115
+ &.iov-icon-fill-warning {
116
+ color: $--color-warning-6;
122
117
  }
123
118
 
124
- &.el-icon-error {
125
- color: $--messagebox-danger-color;
119
+ &.iov-icon-fill-fail {
120
+ color: $--color-danger-6;
126
121
  }
127
122
  }
128
123
 
@@ -131,19 +126,19 @@
131
126
 
132
127
  & p {
133
128
  margin: 0;
134
- line-height: 24px;
129
+ line-height: 20px;
135
130
  }
136
131
  }
137
132
 
138
133
  @include e(errormsg) {
139
- color: $--color-danger;
140
- font-size: $--messagebox-error-font-size;
134
+ color: $--color-danger-6;
135
+ font-size: 12px;
141
136
  min-height: 18px;
142
137
  margin-top: 2px;
143
138
  }
144
139
 
145
140
  @include e(btns) {
146
- padding: 5px 15px 0;
141
+ padding: 16px 24px 20px;
147
142
  text-align: right;
148
143
 
149
144
  & button:nth-child(2) {
@@ -156,41 +151,27 @@
156
151
  }
157
152
 
158
153
  // centerAlign 布局
159
- @include m(center) {
160
- padding-bottom: 30px;
161
-
154
+ @include m(title-icon) {
162
155
  @include e(header) {
163
- padding-top: 30px;
156
+ padding: 24px 24px 0;
157
+ border-bottom: 0 none;
164
158
  }
165
-
166
159
  @include e(title) {
167
- position: relative;
168
160
  display: flex;
169
161
  align-items: center;
170
- justify-content: center;
171
162
  }
172
-
173
163
  @include e(status) {
174
- position: relative;
175
- top: auto;
176
- padding-right: 5px;
177
- text-align: center;
178
- transform: translateY(-1px);
164
+ float: none;
179
165
  }
180
-
181
- @include e(message) {
182
- margin-left: 0;
183
- }
184
-
185
- @include e((btns, content)) {
186
- text-align: center;
187
- }
188
-
189
166
  @include e(content) {
190
- $padding-horizontal: $--msgbox-padding-primary + 12px;
191
-
192
- padding-left: $padding-horizontal;
193
- padding-right: $padding-horizontal;
167
+ padding-top: 8px;
168
+ color: $--color-text-3;
169
+ }
170
+ @include e(message) {
171
+ padding-left: 32px;
172
+ &.no-type {
173
+ padding-left: 0;
174
+ }
194
175
  }
195
176
  }
196
177
  }
@@ -13,7 +13,7 @@
13
13
  white-space: nowrap;
14
14
  outline: none;
15
15
  font-size: $--font-size-base;
16
- margin-right: 30px;
16
+ margin-right: 32px;
17
17
  &:hover {
18
18
  .el-radio__inner {
19
19
  border-color: $--radio-input-border-color-hover;
@@ -85,7 +85,7 @@
85
85
  .el-radio__desc {
86
86
  margin: 6px 0 0;
87
87
  font-weight: 400;
88
- font-size: 13px;
88
+ font-size: 12px;
89
89
  line-height: 1;
90
90
  color: $--color-text-3;
91
91
  }
package/src/index.js CHANGED
@@ -212,7 +212,7 @@ if (typeof window !== 'undefined' && window.Vue) {
212
212
  }
213
213
 
214
214
  export default {
215
- version: '2.15.41',
215
+ version: '2.15.43',
216
216
  locale: locale.use,
217
217
  i18n: locale.i18n,
218
218
  install,