iov-design 2.15.40 → 2.15.42

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