bri-components 1.2.0 → 1.2.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 (68) 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/.DS_Store +0 -0
  14. package/src/abolish/DshFlatTable.vue +1 -1
  15. package/src/components/.DS_Store +0 -0
  16. package/src/components/controls/.DS_Store +0 -0
  17. package/src/components/controls/base/BriUpload/BriUpload.vue +2 -1
  18. package/src/components/controls/base/BriUpload/BriUploadImage.vue +45 -32
  19. package/src/components/controls/base/BriUpload/uploadMixin.js +3 -2
  20. package/src/components/controls/base/DshCascader/DshCascader.vue +52 -53
  21. package/src/components/controls/base/DshCascader/InfoCascader.vue +3 -4
  22. package/src/components/controls/base/DshCheckbox.vue +133 -140
  23. package/src/components/controls/base/DshCoordinates.vue +121 -147
  24. package/src/components/controls/base/DshDaterange.vue +1 -1
  25. package/src/components/controls/base/DshEditor.vue +2 -1
  26. package/src/components/controls/base/DshSelect.vue +4 -14
  27. package/src/components/controls/base/DshSwitch.vue +13 -20
  28. package/src/components/controls/controlMap.js +4 -0
  29. package/src/components/controls/controlMixin.js +23 -12
  30. package/src/components/controls/senior/.DS_Store +0 -0
  31. package/src/components/controls/senior/BriLabels.vue +170 -158
  32. package/src/components/controls/senior/selectDepartments.vue +380 -0
  33. package/src/components/controls/senior/selectUsers/DepartmentMenu.vue +191 -0
  34. package/src/components/controls/senior/selectUsers/selectUsers.vue +482 -0
  35. package/src/components/list/BriCard.vue +52 -0
  36. package/src/components/list/BriTreeItem.vue +110 -0
  37. package/src/components/small/DshTags.vue +132 -9
  38. package/src/index.js +7 -3
  39. package/src/styles/.DS_Store +0 -0
  40. package/src/styles/common/control.less +61 -56
  41. package/src/styles/components/.DS_Store +0 -0
  42. package/src/styles/components/controls/.DS_Store +0 -0
  43. package/src/styles/components/controls/base/BriUpload/BriUpload.less +11 -3
  44. package/src/styles/components/controls/base/BriUpload/BriUploadImage.less +6 -0
  45. package/src/styles/components/controls/base/DshCascader/DshCascader.less +33 -81
  46. package/src/styles/components/controls/base/DshCheckbox.less +72 -103
  47. package/src/styles/components/controls/base/DshCoordinates.less +1 -35
  48. package/src/styles/components/controls/base/DshEditor.less +3 -2
  49. package/src/styles/components/controls/base/DshInput.less +4 -8
  50. package/src/styles/components/controls/base/DshNumber.less +2 -2
  51. package/src/styles/components/controls/base/DshSelect.less +19 -4
  52. package/src/styles/components/controls/base/DshSwitch.less +1 -31
  53. package/src/styles/components/controls/senior/.DS_Store +0 -0
  54. package/src/styles/components/controls/senior/BriLabels.less +32 -118
  55. package/src/styles/components/controls/senior/cascaderTable.less +1 -1
  56. package/src/styles/components/controls/senior/flatTable.less +1 -1
  57. package/src/styles/components/controls/senior/selectDepartments.less +106 -0
  58. package/src/styles/components/controls/senior/selectUsers/DepartmentMenu.less +37 -0
  59. package/src/styles/components/controls/senior/selectUsers/index.less +2 -0
  60. package/src/styles/components/controls/senior/selectUsers/selectUsers.less +167 -0
  61. package/src/styles/components/form/DshDefaultSearch.less +1 -2
  62. package/src/styles/components/index.less +7 -3
  63. package/src/styles/components/list/BriCard.less +50 -0
  64. package/src/styles/components/list/BriFlatTable.less +1 -1
  65. package/src/styles/components/list/BriTreeItem.less +50 -0
  66. package/src/styles/components/small/DshModal.less +20 -42
  67. package/src/styles/components/small/DshTags.less +32 -14
  68. package/src/styles/components/unit/DshFormItem.less +3 -26
@@ -0,0 +1,37 @@
1
+ .DepartmentMenu {
2
+
3
+ font-size: 14px;
4
+
5
+ &-item {
6
+ width: 100%;
7
+ line-height: 38px;
8
+ text-align: left;
9
+ cursor: pointer;
10
+ overflow: hidden;
11
+
12
+ .ivu-icon {
13
+ color: @textColor;
14
+ }
15
+ }
16
+
17
+ &-item-name {
18
+ display: flex;
19
+ justify-content: space-between;
20
+ align-items: flex-start;
21
+ padding: 8px 5px 8px 20px;
22
+ font-weight: 400;
23
+ color: @textColor;
24
+ line-height: 24px;
25
+
26
+ &:hover {
27
+ background-color: rgba(36, 36, 63, 0.03);
28
+ }
29
+
30
+ &-select {
31
+ font-weight: 700;
32
+ color: @themeColor;
33
+ background: rgba(235, 240, 232, 1);
34
+ position: relative;
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,2 @@
1
+ @import "./selectUsers.less";
2
+ @import "./DepartmentMenu.less";
@@ -0,0 +1,167 @@
1
+ .selectUsers {
2
+ width: 100%;
3
+
4
+ &-edit {
5
+ #bri-control-wrap();
6
+ }
7
+ &-show {
8
+ #bri-control-wrap();
9
+ }
10
+
11
+ // 弹框部分
12
+ &-modal {
13
+ &-wrap {
14
+ display: flex;
15
+ padding: 20px;
16
+ height: 550px;
17
+
18
+ &-left {
19
+ width: 520px;
20
+ overflow-y: auto;
21
+ background: @white;
22
+ border: 1px solid #E5E5E5;
23
+
24
+ .search {
25
+ padding: 10px 20px;
26
+ }
27
+
28
+ .content {
29
+ display: flex;
30
+ height: calc(100% - 52px);
31
+ border-top: 1px solid #E5E5E5;
32
+
33
+ &-menu {
34
+ flex: 3;
35
+ height: 100%;
36
+ overflow: auto;
37
+ }
38
+
39
+ &-users {
40
+ flex: 2;
41
+ position: relative;
42
+
43
+ .ivu-checkbox-checked .ivu-checkbox-inner {
44
+ border-color: @themeColor;
45
+ background-color: @themeColor;
46
+ }
47
+
48
+ &-list {
49
+ border-left: 1px solid #E5E5E5;
50
+ height: 100%;
51
+ display: flex;
52
+ flex-direction: column;
53
+
54
+
55
+ &-checkAll {
56
+ height: 40px;
57
+ line-height: 40px;
58
+ border-bottom: 1px solid #E5E5E5;
59
+ padding-left: 15px;
60
+ }
61
+
62
+ &-selects {
63
+ flex: 1;
64
+ overflow: auto;
65
+ padding: 15px;
66
+
67
+ &-item {
68
+ margin-bottom: 5px;
69
+ }
70
+ }
71
+ }
72
+
73
+ &-nodata {
74
+ position: absolute;
75
+ top: 50%;
76
+ width: 100%;
77
+ text-align: center;
78
+ transform: translateY(-50%);
79
+ }
80
+
81
+ }
82
+ }
83
+ }
84
+
85
+ &-center {
86
+ width: 100px;
87
+ display: flex;
88
+ justify-content: center;
89
+ align-items: center;
90
+
91
+ .icon {
92
+ width: 24px;
93
+ height: 24px;
94
+ line-height: 24px;
95
+ font-size: 18px;
96
+ background-color: @themeColor;
97
+ border-radius: 50%;
98
+ color: #fff;
99
+ text-align: center;
100
+ }
101
+ }
102
+
103
+ &-right {
104
+ flex: 1;
105
+ width: 0px;
106
+ height: 100%;
107
+ padding: 20px;
108
+ margin-left: 10px;
109
+ border: 1px solid #E5E5E5;
110
+ background: @white;
111
+ overflow: auto;
112
+ display: flex;
113
+ flex-direction: column;
114
+
115
+ .list {
116
+ display: flex;
117
+ flex-wrap: wrap;
118
+ align-items: center;
119
+
120
+ &-item {
121
+ max-width: 150px;
122
+ height: 24px;
123
+ padding: 2px 6px 2px 10px;
124
+ margin: 3px 5px;
125
+ border-radius: 20px;
126
+ background-color: @themeColor;
127
+ color: #ffffff;
128
+ font-size: 12px;
129
+ display: flex;
130
+ align-items: center;
131
+
132
+ &-name {
133
+ .dsh-ellipsis();
134
+ }
135
+
136
+ &-delete {
137
+ padding: 3px;
138
+ margin-left: 5px;
139
+ font-size: 14px;
140
+ cursor: pointer;
141
+ }
142
+ }
143
+ }
144
+ }
145
+
146
+ &-footer {
147
+ padding-bottom: 10px;
148
+
149
+ .DshButtons {
150
+ text-align: right;
151
+ padding-right: 24px;
152
+
153
+
154
+ .ivu-btn {
155
+ width: 70px;
156
+ height: 32px;
157
+ margin-right: 13px;
158
+ }
159
+ }
160
+ }
161
+ }
162
+
163
+ .ivu-modal {
164
+ width: 900px !important;
165
+ }
166
+ }
167
+ }
@@ -76,8 +76,7 @@
76
76
  text-align: left;
77
77
  }
78
78
  }
79
- .control-edit {
79
+ .bri-control-edit {
80
80
  border-radius: 0px;
81
81
  }
82
-
83
82
  }
@@ -6,11 +6,13 @@
6
6
  @import "./list/DshBox/DshPanel.less";
7
7
  @import "./list/DshBox/DshSingleData.less";
8
8
  @import "./list/DshBox/DshList.less";
9
- @import "./list/DshPage.less";
10
- @import "./list/BriTable.less";
9
+ @import "./list/BriCard.less";
11
10
  @import "./list/BriFlatTable.less";
12
- @import "./list/DshCascaderTable.less";
11
+ @import "./list/BriTable.less";
13
12
  @import "./list/BriTree.less";
13
+ @import "./list/BriTreeItem.less";
14
+ @import "./list/DshCascaderTable.less";
15
+ @import "./list/DshPage.less";
14
16
 
15
17
  // form
16
18
  @import "./form/DshForm.less";
@@ -36,6 +38,8 @@
36
38
  @import "./controls/base/DshEditor.less";
37
39
  @import "./controls/base/DshDivider.less";
38
40
 
41
+ @import "./controls/senior/selectUsers/index.less";
42
+ @import "./controls/senior/selectDepartments.less";
39
43
  @import "./controls/senior/flatTable.less";
40
44
  @import "./controls/senior/cascaderTable.less";
41
45
  @import "./controls/senior/BriLabels.less";
@@ -0,0 +1,50 @@
1
+ .BriCard {
2
+ .item {
3
+ height: 50px;
4
+ margin-bottom: 10px;
5
+ float: left;
6
+ width: 33.3%;
7
+ padding: 0 10px;
8
+ min-width: 160px;
9
+
10
+ &-normal {
11
+ width: 100%;
12
+ height: 100%;
13
+ border: 1px solid #eaeaea;
14
+ position: relative;
15
+ border-radius: 5px;
16
+ cursor: pointer;
17
+
18
+ .label {
19
+ .dsh-ellipsis();
20
+ display: block;
21
+ width: 160px;
22
+ height: 100%;
23
+ position: absolute;
24
+ left: 50%;
25
+ margin-left: -80px;
26
+ line-height: 50px;
27
+ text-align: center;
28
+ }
29
+
30
+ .avatar {
31
+ position: absolute;
32
+ width: 40px;
33
+ height: 40px;
34
+ display: block;
35
+ border-radius: 50%;
36
+ left: 10px;
37
+ top: 5px;
38
+ }
39
+ }
40
+
41
+ &-active {
42
+ background-color: @themeColor;
43
+ color: #fff;
44
+ }
45
+ }
46
+
47
+ &-nodata {
48
+ #dsh-nodata();
49
+ }
50
+ }
@@ -1,5 +1,5 @@
1
1
  .BriFlatTable {
2
- &-main {
2
+ .BriFlatTable-main {
3
3
  height: auto;
4
4
  }
5
5
  &-create {
@@ -0,0 +1,50 @@
1
+ .BriTreeItem {
2
+ padding-left: 16px;
3
+
4
+ &-content {
5
+ line-height: 36px;
6
+ cursor: pointer;
7
+ display: flex;
8
+
9
+ &:hover {
10
+ background-color: @btn-hover;
11
+ }
12
+
13
+ &-expand {
14
+ width: 28px;
15
+ text-align: center;
16
+ }
17
+
18
+ &-select {
19
+ width: 100%;
20
+ color: rgba(36, 36, 63, 0.9);
21
+
22
+ .ivu-checkbox-inner {
23
+ border-color: rgba(36, 36, 63, 0.3)
24
+ }
25
+ .ivu-checkbox {
26
+ margin-right: 2px;
27
+ }
28
+
29
+ &-radio {
30
+ .ivu-checkbox-inner {
31
+ border-radius: 50%;
32
+ }
33
+ }
34
+ }
35
+
36
+ &-text {
37
+
38
+ }
39
+ }
40
+
41
+ .default-enter,
42
+ .default-leave-to {
43
+ opacity: 0;
44
+ max-height: 0;
45
+ }
46
+
47
+ &-children {
48
+
49
+ }
50
+ }
@@ -154,54 +154,32 @@
154
154
 
155
155
  // 默认模态框brimodal
156
156
  .bri-modal {
157
- .ivu-modal-header {
158
- padding: 14px 36px;
159
-
160
- .ivu-modal-header-inner {
161
- color: @titleColor;
162
- font-size: @titleSize;
163
- font-weight: bold;
164
- }
165
- }
166
-
167
- .ivu-modal-body {
168
- padding: 16px;
157
+ .DshModal-close {
158
+ top: 20px;
159
+ right: 24px;
160
+ color: rgba(0,0,0,0.6);
161
+ font-size: 16px;
169
162
  }
170
163
 
171
- .ivu-modal-footer {
172
- display: flex;
173
- justify-content: space-between;
174
- padding: 20px;
175
-
176
- button {
177
- width: 48%;
178
- height: 44px;
179
- line-height: 44px;
164
+ .ivu-modal-header {
165
+ width: 100%;
166
+ height: 44px;
167
+ padding: 20px 24px 0px 24px;
168
+ border-bottom: none;
169
+ &-inner {
170
+ color: rgba(0,0,0,0.9);
171
+ font-size: 16px;
172
+ font-weight: 500;
173
+ line-height: 24px;
174
+ height: 24px;
180
175
  }
181
176
  }
182
-
183
- &-content {
184
- padding: 20px 0;
177
+ .ivu-modal-body {
178
+ padding: 16px 24px 20px;
185
179
  }
186
180
 
187
181
  &-footer {
188
- display: flex;
189
- justify-content: space-between;
190
- padding: 20px 0;
191
-
192
- button {
193
- flex: 1;
194
- margin: 0 10px;
195
- height: 44px;
196
- line-height: 44px;
197
-
198
- &:first-child {
199
- margin-left: 0;
200
- }
201
-
202
- &:last-child {
203
- margin-right: 0;
204
- }
205
- }
182
+ text-align: right;
183
+ margin-top: 16px;
206
184
  }
207
185
  }
@@ -1,17 +1,35 @@
1
- .DshTags {
2
- .ivu-tag {
3
- &-default {
4
- border: none;
5
- background-color: @borderColor;
6
- color: @text-color;
1
+ .DshTags {
2
+ &-autoEllipsis {
3
+ overflow: hidden;
4
+ width: 100%;
5
+ }
6
+ &-poptip {
7
+ &-tag {
8
+ margin: 2px 0;
9
+ .dsh-flex-row-between-center();
7
10
  }
8
- &-size-medium {
9
- height: 24px;
10
- line-height: 26px;
11
- padding: 0 8px;
11
+ .ivu-tag-text {
12
+ .dsh-ellipsis();
12
13
  }
13
- &[disabled] {
14
- background-color: @border-disabled;
15
- }
16
- }
14
+ }
15
+ }
16
+
17
+ .ivu-tag {
18
+ &-default {
19
+ border: none;
20
+ background-color: @borderColor;
21
+ color: @text-color;
22
+ }
23
+ &-size-medium {
24
+ height: 24px;
25
+ line-height: 26px;
26
+ padding: 0 8px;
27
+ }
28
+ &[disabled] {
29
+ background-color: @border-disabled;
30
+ }
31
+
32
+ .ivu-tag-text {
33
+ color: inherit;
34
+ }
17
35
  }
@@ -1,7 +1,6 @@
1
1
  .DshFormItem {
2
2
  margin: 5px 6px;
3
3
  padding: 3px 10px;
4
- overflow: hidden;
5
4
 
6
5
  &-required {
7
6
  .DshFormItem-label-name:before {
@@ -47,7 +46,7 @@
47
46
  color: @textColor;
48
47
  }
49
48
  &-show {
50
- color: @contentColor
49
+ color: @contentColor;
51
50
  }
52
51
  &-sign {
53
52
  #dsh-sign-change();
@@ -60,12 +59,7 @@
60
59
  }
61
60
 
62
61
  &-control {
63
- min-height: 30px;
64
-
65
- .DshPackage-edit {
66
- border: none;
67
- padding: 0;
68
- }
62
+ min-height: 32px;
69
63
  }
70
64
 
71
65
  &-line {
@@ -80,6 +74,7 @@
80
74
  overflow: hidden;
81
75
  margin: 0px;
82
76
  margin-right: 8px;
77
+
83
78
  // fixedbug:line模式下显示必填
84
79
  margin-left: -10px;
85
80
  padding-left: 10px;
@@ -103,24 +98,6 @@
103
98
  display: flex;
104
99
  justify-content: flex-end;
105
100
  align-items: center;
106
-
107
- .ivu-select-default.ivu-select-multiple {
108
- .ivu-select-selection {
109
- height: 32px;
110
- overflow: hidden;
111
-
112
- &>div {
113
- width: 100%;
114
- height: 100%;
115
- .dsh-flex-row-start-center();
116
- flex-wrap: wrap;
117
- }
118
- }
119
- }
120
101
  }
121
102
  }
122
-
123
- .ivu-tooltip {
124
- display: flex;
125
- }
126
103
  }