bri-components 1.1.0 → 1.1.2

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 (77) hide show
  1. package/lib/0.bri-components.min.js +1 -1
  2. package/lib/1.bri-components.min.js +1 -1
  3. package/lib/2.bri-components.min.js +1 -1
  4. package/lib/3.bri-components.min.js +1 -1
  5. package/lib/4.bri-components.min.js +1 -1
  6. package/lib/5.bri-components.min.js +1 -1
  7. package/lib/6.bri-components.min.js +1 -1
  8. package/lib/7.bri-components.min.js +1 -1
  9. package/lib/8.bri-components.min.js +1 -1
  10. package/lib/9.bri-components.min.js +1 -1
  11. package/lib/bri-components.min.js +6 -6
  12. package/package.json +1 -1
  13. package/src/components/controls/base/BriLabels.vue +154 -12
  14. package/src/components/controls/base/DshCascader.vue +1 -5
  15. package/src/components/controls/base/DshCoordinates.vue +89 -81
  16. package/src/components/controls/base/DshEditor.vue +23 -7
  17. package/src/components/controls/base/DshInput.vue +7 -0
  18. package/src/components/controls/base/controlShow.vue +5 -5
  19. package/src/components/controls/controlMap.js +2 -2
  20. package/src/components/controls/controlMixin.js +39 -25
  21. package/src/components/controls/senior/cascaderTable.vue +47 -41
  22. package/src/components/controls/senior/flatTable.vue +58 -53
  23. package/src/components/form/DshForm.vue +8 -17
  24. package/src/components/list/BriFlatTable.vue +15 -12
  25. package/src/components/list/BriTable.vue +11 -5
  26. package/src/components/list/DshBox/DshBox.vue +1 -1
  27. package/src/components/list/DshBox/DshCard.vue +1 -1
  28. package/src/components/list/DshBox/DshCrossTable.vue +1 -1
  29. package/src/components/list/DshBox/DshList.vue +3 -3
  30. package/src/components/list/DshBox/DshPanel.vue +1 -1
  31. package/src/components/list/DshBox/DshSingleData.vue +1 -8
  32. package/src/components/list/DshCascaderTable.vue +4 -4
  33. package/src/components/list/DshFlatTable.vue +1 -1
  34. package/src/components/list/ZTree.vue +1 -1
  35. package/src/components/list/easyTable/v-table/src/table.vue +3 -3
  36. package/src/components/list/evTable/EvTable.vue +1 -1
  37. package/src/components/other/BriTransfer.vue +1 -1
  38. package/src/components/other/ZGantt.vue +2 -2
  39. package/src/components/other/ZLoading.vue +32 -3
  40. package/src/components/small/BriDrawer.vue +132 -0
  41. package/src/components/small/DshButtons.vue +3 -3
  42. package/src/components/small/DshControlDefine.vue +2 -1
  43. package/src/components/small/DshDropdown.vue +1 -1
  44. package/src/components/small/DshModal.vue +25 -1
  45. package/src/components/small/DshTdRender.js +1 -1
  46. package/src/components/unit/DshFormItem.vue +40 -41
  47. package/src/components/unit/DshUnit.vue +15 -8
  48. package/src/components/unit/unitMixin.js +0 -8
  49. package/src/index.js +7 -4
  50. package/src/styles/common/box.less +29 -0
  51. package/src/styles/common/control.less +2 -0
  52. package/src/styles/components/controls/BriLabels.less +113 -3
  53. package/src/styles/components/controls/DshCascader.less +7 -3
  54. package/src/styles/components/controls/DshCoordinates.less +6 -1
  55. package/src/styles/components/controls/DshInput.less +6 -0
  56. package/src/styles/components/controls/DshLabels.less +3 -3
  57. package/src/styles/components/controls/controlShow.less +0 -2
  58. package/src/styles/components/index.less +2 -2
  59. package/src/styles/components/other/InfoCascader.less +4 -0
  60. package/src/styles/components/other/ZLoading.less +23 -7
  61. package/src/styles/components/small/BriDrawer.less +34 -0
  62. package/src/styles/components/small/DshControlDefine.less +15 -36
  63. package/src/styles/components/small/DshDropdown.less +11 -8
  64. package/src/styles/components/small/DshTitle.less +1 -4
  65. package/src/styles/components/unit/DshFormItem.less +7 -5
  66. package/src/styles/iconfont/iconfont.css +254 -0
  67. package/src/styles/iconfont/iconfont.eot +0 -0
  68. package/src/styles/iconfont/iconfont.js +1 -0
  69. package/src/styles/iconfont/iconfont.json +422 -0
  70. package/src/styles/iconfont/iconfont.svg +137 -0
  71. package/src/styles/iconfont/iconfont.ttf +0 -0
  72. package/src/styles/iconfont/iconfont.woff +0 -0
  73. package/src/styles/iconfont/iconfont.woff2 +0 -0
  74. package/src/styles/index.less +1 -0
  75. package/src/styles/plugin/iview.less +7 -2
  76. package/src/styles/reset.less +2 -2
  77. package/src/utils/table.js +3 -4
@@ -41,6 +41,19 @@
41
41
  margin-right: 5px;
42
42
  }
43
43
 
44
+ .dsh-margin-top8 {
45
+ margin-top: 8px;
46
+ }
47
+ .dsh-margin-bottom8 {
48
+ margin-bottom: 8px;
49
+ }
50
+ .dsh-margin-left8 {
51
+ margin-left: 8px;
52
+ }
53
+ .dsh-margin-right8 {
54
+ margin-right: 8px;
55
+ }
56
+
44
57
  .dsh-margin-top10 {
45
58
  margin-top: 10px;
46
59
  }
@@ -115,6 +128,9 @@
115
128
  .dsh-padding20 {
116
129
  padding: 20px;
117
130
  }
131
+ .dsh-padding24 {
132
+ padding: 24px;
133
+ }
118
134
  .dsh-padding100 {
119
135
  padding: 100px;
120
136
  }
@@ -155,3 +171,16 @@
155
171
  .dsh-padding-right20 {
156
172
  padding-right: 20px;
157
173
  }
174
+ .dsh-padding-top24 {
175
+ padding-top: 24px;
176
+ }
177
+ .dsh-padding-bottom24 {
178
+ padding-bottom: 24px;
179
+ }
180
+ .dsh-padding-left24 {
181
+ padding-left: 24px;
182
+ }
183
+ .dsh-padding-right24 {
184
+ padding-right: 24px;
185
+ }
186
+
@@ -14,10 +14,12 @@
14
14
  background-color: transparent;
15
15
  }
16
16
  .control-edit {
17
+ height: 32px;
17
18
  color: @textColor;
18
19
  border: 1px solid @borderColor;
19
20
  background: @inputBg;
20
21
  border-radius: @borderRadius;
22
+ line-height: 32px;
21
23
  cursor: pointer;
22
24
  }
23
25
  .control-placeholder {
@@ -4,9 +4,28 @@
4
4
  &-dropdown {
5
5
  width: 100%;
6
6
 
7
- &-input {
8
- input {
9
- cursor: pointer;
7
+ &-show {
8
+ display: flex;
9
+ justify-content: space-between;
10
+ cursor: pointer;
11
+ border-radius: @borderRadius;
12
+ border: 1px solid @borderColor;
13
+ padding-left: 5px;
14
+
15
+ &-list {
16
+ display: flex;
17
+ align-items: center;
18
+ }
19
+
20
+ &-active {
21
+ border-color: #64c6d1;
22
+ box-shadow: 0 0 0 2px rgba(61, 184, 197, 0.2);
23
+ }
24
+
25
+ &-arrow {
26
+ display: flex;
27
+ align-items: center;
28
+ margin-right: 5px;
10
29
  }
11
30
  }
12
31
 
@@ -18,6 +37,97 @@
18
37
  background-color: @theme-focus;
19
38
  color: @themeColor;
20
39
  }
40
+
41
+ &-show {
42
+ // width: 100%;
43
+ display: flex;
44
+ justify-content: space-between;
45
+ align-items: center;
46
+
47
+ &-icons {
48
+ margin-left: 10px;
49
+
50
+ i {
51
+ padding: 3px;
52
+ border-radius: @borderRadius;
53
+ color: rgba(0, 0, 0, 0.4);
54
+
55
+ &:hover {
56
+ background-color: #fff;
57
+ }
58
+ }
59
+
60
+ &-edit {
61
+ &:hover {
62
+ color: @themeColor;
63
+ }
64
+ }
65
+
66
+ &-del {
67
+ &:hover {
68
+ color: @error-color;
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ &-btnWrap {
76
+ border-top: 1px solid #E7E7E7;
77
+ margin: 12px 8px 0;
78
+ padding-top: 8px;
79
+ }
80
+
81
+ &-add {
82
+ width: 300px;
83
+ margin-bottom: 8px;
84
+ }
85
+ }
86
+
87
+ .ivu-select-dropdown {
88
+ width: fit-content;
89
+ }
90
+
91
+ .ivu-input-suffix {
92
+ display: flex;
93
+ align-items: center;
94
+
95
+ i {
96
+ width: 24px;
97
+ height: 24px;
98
+ line-height: 24px;
99
+
100
+ &:hover {
101
+ background-color: @btn-hover;
102
+ border-radius: @borderRadius;
103
+ }
104
+ }
105
+ }
106
+
107
+ &-view {
108
+ display: flex;
109
+ flex-wrap: wrap;
110
+ align-items: center;
111
+ height: 32px;
112
+ overflow-y: hidden;
113
+ &-item{
114
+ .unit-show();
115
+ .dsh-ellipsis();
116
+ display: inline-flex;
117
+ max-width: 100%;
118
+ height: fit-content;
119
+ padding: 0 8px;
120
+ background-color: @borderColor;
121
+ color: rgba(0,0,0,0.9);
122
+ font-size: 12px;
123
+ font-weight: 400;
124
+ line-height: 24px;
125
+ border-radius: @borderRadius;
126
+ margin-right: 8px;
127
+ }
128
+
129
+ &-nodata {
130
+ color: @textColor;
21
131
  }
22
132
  }
23
133
  }
@@ -18,18 +18,20 @@
18
18
 
19
19
  &-text {
20
20
  .dsh-ellipsis();
21
+
21
22
  &-disabled {
22
23
  color: @borderColor;
23
24
  }
24
25
  }
25
-
26
+
26
27
  &-clear {
27
28
  margin-left: 5px;
28
29
  }
29
30
  }
30
31
 
31
32
  &-placeholder {
32
- color: @borderColor;
33
+ color: @placeholderColor;
34
+ padding: 0 7px;
33
35
  }
34
36
  }
35
37
 
@@ -57,6 +59,7 @@
57
59
  &-footer {
58
60
  width: 100%;
59
61
  padding: 10px;
62
+
60
63
  .btn {
61
64
  text-align: right;
62
65
  }
@@ -66,7 +69,8 @@
66
69
  }
67
70
 
68
71
  .ivu-cascader-transfer {
69
- max-height: 400px!important;
72
+ max-height: 400px !important;
73
+
70
74
  .ivu-cascader-menu {
71
75
  max-height: 400px;
72
76
  height: auto;
@@ -1,11 +1,13 @@
1
1
  .DshCoordinates {
2
+ width: 100%;
3
+ line-height: 32px;
2
4
  .textRight {
3
5
  text-align: right;
4
6
  }
5
7
 
6
8
  &-wrap {
7
9
  position: relative;
8
- padding: 0 7px;
10
+ padding: 0 8px;
9
11
  .control-edit();
10
12
  &-zuobiao{
11
13
  color: #e5e5e5;
@@ -47,6 +49,9 @@
47
49
  &-readonly {
48
50
  cursor: not-allowed;
49
51
  }
52
+ &-show {
53
+ padding: 0 8px;
54
+ }
50
55
  }
51
56
 
52
57
 
@@ -37,4 +37,10 @@
37
37
  width: 100%;
38
38
  display: flex;
39
39
  }
40
+ }
41
+ .ivu-input {
42
+ .control-edit();
43
+ &[disabled] {
44
+ .control-disabled();
45
+ }
40
46
  }
@@ -109,17 +109,17 @@
109
109
  }
110
110
  }
111
111
 
112
- &-tag{
112
+ &-tag {
113
113
  width: fit-content;
114
114
  margin-right: 10px;
115
115
  }
116
116
 
117
- &-nodata{
117
+ &-nodata {
118
118
  color: @textColor;
119
119
  }
120
120
  }
121
121
 
122
- &-searchResult{
122
+ &-searchResult {
123
123
  position: fixed;
124
124
  z-index: 333;
125
125
  max-height: 150px;
@@ -1,7 +1,5 @@
1
1
  .controlShow {
2
2
  &-val {
3
- display: inline-block;
4
- width: 100%;
5
3
  height: 100%;
6
4
  }
7
5
 
@@ -25,7 +25,7 @@
25
25
  // list
26
26
  @import "./list/evTable.less";
27
27
  @import "./list/DshCascaderTable.less";
28
- @import "./list/DshFlatTable.less";
28
+ // @import "./list/DshFlatTable.less";
29
29
  @import "./list/DshSingleData.less";
30
30
  @import "./list/DshCrossTable.less";
31
31
  @import "./list/ivu_reset.less";
@@ -53,7 +53,7 @@
53
53
  @import "./small/DshSteps.less";
54
54
  @import "./small/DshControlDefine.less";
55
55
  @import "./small/BriButton.less";
56
- @import "./small/BriTree.less";
56
+ @import "./small/BriDrawer.less";
57
57
 
58
58
  // unit
59
59
  @import "./unit/DshFormItem.less";
@@ -52,4 +52,8 @@
52
52
  padding-right: 16px;
53
53
  }
54
54
  }
55
+
56
+ .ivu-tree-empty {
57
+ text-align: center;
58
+ }
55
59
  }
@@ -19,18 +19,34 @@
19
19
  width: 100%;
20
20
  height: 100%;
21
21
 
22
+ @keyframes spin {
23
+ from { transform: rotate(0deg); }
24
+ to { transform: rotate(360deg); }
25
+ }
26
+
22
27
  .ZLoading-main {
23
28
  width: 100%;
24
29
  height: 100%;
25
-
26
- img {
27
- width: auto;
28
- height: auto;
29
- max-width: 100%;
30
- max-height: 100%;
30
+ .dsh-flex();
31
+
32
+ &-content {
33
+ display: flex;
34
+ flex-direction: column;
35
+ align-items: center;
31
36
  }
32
37
 
33
- .dsh-flex();
38
+ &-loading {
39
+ border-radius: 50%;
40
+ background: conic-gradient(#5EC4CF 50%, white);
41
+ --mask: radial-gradient(closest-side, transparent 70%, black 71%);
42
+ -webkit-mask-image: var(--mask);
43
+ mask-image: var(--mask);
44
+ animation: spin 1s linear infinite;
45
+ }
46
+ &-loadingText {
47
+ margin-top: 8px;
48
+ color: @themeColor;
49
+ }
34
50
  }
35
51
  }
36
52
  }
@@ -0,0 +1,34 @@
1
+ .BriDrawer {
2
+ .ivu-drawer-header {
3
+ padding: 16px 16px 15px;
4
+ }
5
+ .ivu-drawer-body {
6
+ padding: 0px;
7
+ }
8
+ .ivu-drawer-close {
9
+ top: 18px;
10
+ right: 18px
11
+ }
12
+ &-header {
13
+ color: @textColor;
14
+ font-weight: 500;
15
+ font-size: @smallTitleSize;
16
+ line-height: @smallTitleHeight;
17
+ }
18
+ &-close {
19
+ color: @contentColor;
20
+ }
21
+ &-main {
22
+ height: 100%;
23
+ display: flex;
24
+ flex-direction: column;
25
+ }
26
+ &-body {
27
+ flex: 1;
28
+ overflow: auto;
29
+ }
30
+ &-footer {
31
+ border-top: 1px solid @borderColor;
32
+ padding: 11px 16px 12px;
33
+ }
34
+ }
@@ -1,22 +1,5 @@
1
1
  .dsh-control-define {
2
- height: 32px;
3
- padding: 2px 6px;
4
- border: 1px solid @borderColor;
5
- border-radius: 0px;
6
- line-height: 22px;
7
- text-align: left;
8
- cursor: pointer;
9
- overflow: auto;
10
-
11
- // &::-webkit-scrollbar {
12
- // height: 4px;
13
- // width: 4px;
14
-
15
- // &::-webkit-scrollbar-thumb {
16
- // border-radius: 4px;
17
- // background-clip: border-box;
18
- // }
19
- // }
2
+ .control-edit();
20
3
 
21
4
  &-multiplerow {
22
5
  height: 70px;
@@ -29,36 +12,32 @@
29
12
  }
30
13
 
31
14
  &-disabled {
32
- border-color: @border-disabled !important;
15
+ .control-disabled();
16
+ }
17
+
18
+ &-show {
19
+ .control-show();
33
20
  }
34
21
 
35
22
  &-text {
36
23
  width: 100%;
24
+ height: 100%;
37
25
  display: flex;
38
26
  justify-content: space-between;
39
27
  align-items: center;
28
+ overflow-x: auto;
29
+ overflow-y: hidden;
30
+ padding: 0 8px;
31
+ .bri-scrollbar6();
40
32
 
41
33
  .DshTags {
42
- max-width: 100%;
43
34
  display: flex;
44
- .ivu-tag {
45
- display: flex;
46
- height: 24px;
47
- .ivu-tag-text {
48
- .dsh-ellipsis();
49
- }
50
- .ivu-icon {
51
- line-height: 22px;
52
- }
53
- }
35
+ white-space: nowrap;
54
36
  }
55
37
  }
56
-
38
+
57
39
  &-nodata {
58
- width: 100%;
59
- height: 100%;
60
- display: flex;
61
- align-items: center;
62
- color: #b7b7b7;
40
+ .control-notext();
41
+ padding: 0 7px;
63
42
  }
64
43
  }
@@ -1,6 +1,6 @@
1
1
  .DshDropdown {
2
2
  &-rel {
3
- color: #aaaaaa!important;
3
+ color: @contentColor;
4
4
  cursor: pointer;
5
5
  }
6
6
 
@@ -18,21 +18,19 @@
18
18
  overflow: auto;
19
19
 
20
20
  .list {
21
- .item {
22
- padding: 7px 16px 5px 10px;
23
- color: #979797;
21
+ .list-item {
24
22
  display: flex;
25
23
  flex-direction: row;
26
24
  align-items: center;
27
-
25
+ border-radius: @borderRadius;
26
+ padding: 9px 8px;
28
27
  &:hover {
29
- background-color: #FFF;
28
+ background-color: @theme-focus;
30
29
  color: @themeColor;
31
30
  }
32
31
 
33
32
  &-disabled {
34
- background-color: #f5f5f5!important;
35
- color: #979797!important;
33
+ color: @textColor-disabled
36
34
  }
37
35
  &-icon {
38
36
  margin-right: 3px;
@@ -58,4 +56,9 @@
58
56
  }
59
57
  }
60
58
  }
59
+ }
60
+ .ivu-select-dropdown {
61
+ border: 0.5px solid rgba(229,229,229,1);
62
+ box-shadow: 0 3px 14px 2px rgba(0,0,0,0.05), 0 8px 10px 1px rgba(0,0,0,0.06), 0 5px 5px -3px rgba(0,0,0,0.1);
63
+ padding: 8px;
61
64
  }
@@ -3,11 +3,8 @@
3
3
  display: flex;
4
4
  align-items: center;
5
5
  cursor: pointer;
6
- &-icon {
7
- color: #666;
8
- }
9
6
  &-name {
10
- margin-left: 10px;
7
+ margin-left: 8px;
11
8
  font-size: @smallTitleSize;
12
9
  }
13
10
  }
@@ -1,5 +1,5 @@
1
1
  .DshFormItem {
2
- margin: 3px 6px;
2
+ margin: 5px 6px;
3
3
  padding: 3px 10px;
4
4
  overflow: hidden;
5
5
 
@@ -41,9 +41,13 @@
41
41
  }
42
42
 
43
43
  &-name {
44
- color: @contentColor;
45
44
  font-size: @textSize;
46
-
45
+ &-edit {
46
+ color: @textColor;
47
+ }
48
+ &-show {
49
+ color: @contentColor
50
+ }
47
51
  &-sign {
48
52
  #dsh-sign-change();
49
53
  }
@@ -115,8 +119,6 @@
115
119
  }
116
120
  }
117
121
 
118
-
119
-
120
122
  .ivu-tooltip {
121
123
  display: flex;
122
124
  }