iov-design 2.15.53 → 2.15.54

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iov-design",
3
- "version": "2.15.53",
3
+ "version": "2.15.54",
4
4
  "description": "A Component Library for Vue.js.",
5
5
  "main": "lib/iov-design.common.js",
6
6
  "files": [
@@ -2,6 +2,12 @@
2
2
  <div
3
3
  v-bind="data.attrs"
4
4
  v-on="listeners"
5
+ :style="{
6
+ borderBottomStyle: props.direction === 'horizontal' && props.type || '',
7
+ borderBottomColor: props.direction === 'horizontal' && props.color || '',
8
+ borderRightStyle: props.direction === 'vertical' && props.type || '',
9
+ borderRightColor: props.direction === 'vertical' && props.color || ''
10
+ }"
5
11
  :class="[data.staticClass, 'el-divider', `el-divider--${props.direction}`]"
6
12
  >
7
13
  <div
@@ -30,6 +36,14 @@ export default {
30
36
  validator(val) {
31
37
  return ['left', 'center', 'right'].indexOf(val) !== -1;
32
38
  }
39
+ },
40
+ color: {
41
+ type: String,
42
+ default: '' // $--color-line-1
43
+ },
44
+ type: {
45
+ type: String,
46
+ default: ''
33
47
  }
34
48
  }
35
49
  };
@@ -2,35 +2,36 @@
2
2
  @import "mixins/mixins";
3
3
 
4
4
  @include b(divider) {
5
- background-color: $--border-color-base;
6
5
  position: relative;
6
+ border-bottom: 1px dashed $--color-line-1;
7
7
 
8
8
  @include m(horizontal) {
9
9
  display: block;
10
- height: 1px;
10
+ height: 0;
11
+ font-size: 0;
11
12
  width: 100%;
12
- margin: 24px 0;
13
13
  }
14
14
 
15
15
  @include m(vertical) {
16
16
  display: inline-block;
17
- width: 1px;
17
+ width: 0;
18
18
  height: 1em;
19
19
  margin: 0 8px;
20
20
  vertical-align: middle;
21
+ border-right: 1px dashed $--color-line-1;
22
+ border-bottom: 0 none;
21
23
  position: relative;
22
24
  }
23
25
 
24
26
  @include e(text) {
25
27
  position: absolute;
26
- background-color: $--color-white;
27
- padding: 0 20px;
28
- font-weight: 500;
29
- color: $--color-text-primary;
30
- font-size: 14px;
28
+ background-color: #fff;
29
+ padding: 0 8px;
30
+ color: $--color-text-6;
31
+ font-size: 13px;
31
32
 
32
33
  @include when(left) {
33
- left: 20px;
34
+ left: 16px;
34
35
  transform: translateY(-50%);
35
36
  }
36
37
 
@@ -40,8 +41,8 @@
40
41
  }
41
42
 
42
43
  @include when(right) {
43
- right: 20px;
44
+ right: 16px;
44
45
  transform: translateY(-50%);
45
46
  }
46
47
  }
47
- }
48
+ }
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.53',
215
+ version: '2.15.54',
216
216
  locale: locale.use,
217
217
  i18n: locale.i18n,
218
218
  install,