bri-components 1.2.23 → 1.2.25

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.
@@ -21,11 +21,13 @@ export default {
21
21
  }
22
22
  },
23
23
  data () {
24
- return {
25
- componentNameMap
26
- };
24
+ return {};
25
+ },
26
+ computed: {
27
+ curComponentName () {
28
+ return componentNameMap[this.formItem._type] || "DshUndeveloped";
29
+ }
27
30
  },
28
- computed: {},
29
31
  created () { },
30
32
  methods: {
31
33
  change (...params) {
@@ -1,6 +1,10 @@
1
1
  .DshEditor {
2
2
  width: 100%;
3
+
3
4
  #show {
5
+ white-space: pre-wrap;
6
+ word-break: break-word;
7
+
4
8
  p {
5
9
  font-size: 14px !important;
6
10
  }
@@ -24,7 +28,7 @@
24
28
  min-height: 32px;
25
29
  padding: 4px 7px;
26
30
  border-radius: @borderRadius;
27
-
31
+
28
32
  &.bri-control-nodata {
29
33
  line-height: 24px;
30
34
  }
@@ -38,13 +42,14 @@
38
42
  &-toolbar {
39
43
  margin-top: 5px;
40
44
  }
41
-
45
+
42
46
  &-text {
43
47
  min-height: 130px;
48
+
44
49
  ul li {
45
50
  list-style: disc;
46
51
  }
47
-
52
+
48
53
  ol li {
49
54
  list-style: auto;
50
55
  }
@@ -62,5 +67,9 @@
62
67
 
63
68
  &-show {
64
69
  #show();
70
+
71
+ &-nodata {
72
+ .bri-control-nodata();
73
+ }
65
74
  }
66
75
  }
@@ -1,15 +1,18 @@
1
1
  .DshForm {
2
+ padding-bottom: 5px;
3
+
2
4
  &-item-FormItem {
3
5
  margin-bottom: 0px!important;
4
6
  }
5
7
 
6
8
  .ivu-form-item-content {
7
9
  line-height: normal;
8
- }
9
- .ivu-form-item-error-tip {
10
- top: 100%;
11
- left: 16px;
12
- padding-top: 0px;
13
- font-size: 12px;
10
+
11
+ .ivu-form-item-error-tip {
12
+ top: calc(100% - 8px);
13
+ left: 16px;
14
+ padding-top: 0px;
15
+ font-size: 12px;
16
+ }
14
17
  }
15
18
  }
@@ -1,6 +1,6 @@
1
1
  .DshFormUnit {
2
- margin: 5px 6px;
3
- padding: 3px 10px;
2
+ margin: 3px 6px;
3
+ padding: 2px 10px 8px;
4
4
 
5
5
  &-required {
6
6
  .DshFormUnit-label-name:before {