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
@@ -1,9 +1,63 @@
1
1
  .DshCheckbox {
2
2
  width: 100%;
3
3
 
4
- &-checkboxGroup {
4
+ &-group {
5
5
  width: 100%;
6
6
 
7
+ // 选中时背景为白色
8
+ .ivu-checkbox-checked .ivu-checkbox-inner {
9
+ background-color: @themeColor;
10
+ }
11
+
12
+ &-color {
13
+ .ivu-checkbox-border {
14
+ margin-bottom: 5px;
15
+ margin-right: 16px;
16
+ height: 32px;
17
+ line-height: 32px;
18
+ border-radius: 4px;
19
+ border: none;
20
+ color: #FFF;
21
+ }
22
+
23
+ .ivu-checkbox {
24
+ .ivu-checkbox-inner {
25
+ border: 2px solid @themeColor;
26
+ background-color: transparent;
27
+ }
28
+
29
+ .ivu-checkbox-focus {
30
+ box-shadow: 0 0 0 0;
31
+ }
32
+ }
33
+
34
+ .ivu-checkbox-disabled+span {
35
+ color: inherit;
36
+ }
37
+
38
+ each(@resourceColor, {
39
+ .color-@{index} {
40
+ .ivu-checkbox {
41
+ .ivu-checkbox-inner {
42
+ border-color: @value;
43
+ }
44
+ }
45
+
46
+ .ivu-checkbox-checked {
47
+ .ivu-checkbox-inner {
48
+ background-color: @value;
49
+ }
50
+ }
51
+ }
52
+ });
53
+ }
54
+
55
+ &-disabled {
56
+ .ivu-checkbox-disabled+span {
57
+ color: #515a6e;
58
+ }
59
+ }
60
+
7
61
  &-scroll {
8
62
  overflow-x: auto;
9
63
  overflow-y: hidden;
@@ -21,19 +75,19 @@
21
75
  }
22
76
  }
23
77
 
24
- &-tip {
25
- cursor: pointer;
78
+ &-item {
79
+
80
+ }
81
+
82
+ &-show {
26
83
 
27
- .ivu-checkbox {
28
- display: none;
29
- }
30
84
  }
31
85
 
32
86
  .ivu-select-multiple {
33
87
  .ivu-select-selection {
34
88
  height: 32px;
35
89
 
36
- &>div {
90
+ & > div {
37
91
  overflow-x: auto;
38
92
  overflow-y: hidden;
39
93
  white-space: nowrap;
@@ -54,107 +108,22 @@
54
108
  }
55
109
  }
56
110
 
57
- .ivu-select-item-selected:after {
58
- content: none;
59
- }
60
- }
61
- }
62
-
63
- .DshCheckbox {
64
- &-checkboxGroup {
65
- &-useColor {
66
- .ivu-checkbox-border {
111
+ &.ivu-select-default {
112
+ .ivu-select-selection {
67
113
  height: 32px;
68
- line-height: 32px;
69
- border-radius: 4px;
70
- border: none;
71
- color: #FFF;
72
- margin-bottom: 5px;
73
- margin-right: 16px;
74
- }
75
-
76
- .ivu-checkbox {
77
- .ivu-checkbox-inner {
78
- border: 2px solid @themeColor;
79
- background-color: transparent;
80
- }
81
-
82
- .ivu-checkbox-focus {
83
- box-shadow: 0 0 0 0;
114
+ overflow: hidden;
115
+
116
+ & > div {
117
+ width: 100%;
118
+ height: 100%;
119
+ .dsh-flex-row-start-center();
120
+ flex-wrap: wrap;
84
121
  }
85
122
  }
86
-
87
- .ivu-checkbox-disabled+span {
88
- color: inherit;
89
- }
90
-
91
- each(@resourceColor, {
92
- .color-@{index} {
93
- .ivu-checkbox {
94
- .ivu-checkbox-inner {
95
- border-color: @value;
96
- }
97
- }
98
- }
99
-
100
- .color-@{index}.myChecked {
101
- .ivu-checkbox-checked {
102
- .ivu-checkbox-inner {
103
- background-color: @value;
104
- }
105
- }
106
- }
107
- }
108
-
109
- );
110
- }
111
- }
112
-
113
- // 选中时背景为白色
114
- .myChecked {
115
- .ivu-checkbox-checked .ivu-checkbox-inner {
116
- background-color: @themeColor;
117
- }
118
- }
119
-
120
- .readonlyCheckbox {
121
- .ivu-checkbox-disabled+span {
122
- color: #515a6e;
123
123
  }
124
- }
125
124
 
126
- .readonlyColorCheckbox {
127
- .ivu-checkbox-disabled+span {
128
- color: inherit;
125
+ .ivu-select-item-selected:after {
126
+ content: none;
129
127
  }
130
128
  }
131
-
132
- &-content {
133
- text-align: center;
134
- border-radius: 12px;
135
- line-height: 100%;
136
- padding: 5px 10px;
137
- font-size: 14px;
138
- vertical-align: middle;
139
- }
140
- }
141
-
142
- // TODO:必须单独拿出来,DshSelect组件里在混入此样式
143
- .DshCheckbox-value {
144
- height: 24px;
145
- line-height: 20px;
146
- padding: 2px 8px;
147
- border-radius: 4px;
148
- margin-right: 8px;
149
- display: inline-flex;
150
-
151
- &:last-of-type {
152
- margin-right: 0px;
153
- }
154
-
155
- &-wrapper {
156
- min-height: 32px;
157
- padding: 4px 0;
158
- .dsh-ellipsis();
159
- }
160
129
  }
@@ -1,37 +1,8 @@
1
1
  .DshCoordinates {
2
2
  width: 100%;
3
- line-height: 30px;
4
3
 
5
4
  &-edit {
6
- position: relative;
7
- padding: 0 32px 0 8px;
8
-
9
- .value {
10
- width: 100%;
11
- display: flex;
12
- justify-content: space-between;
13
- align-items: center;
14
-
15
- &-name {
16
- .dsh-ellipsis();
17
- }
18
-
19
- &-icon {
20
- padding: 5px;
21
- }
22
- }
23
-
24
- .nodata {
25
- color: @placeholderColor;
26
-
27
- &-icon {
28
- color: #e5e5e5;
29
- line-height: 32px;
30
- position: absolute;
31
- right: 6px;
32
- top: 0;
33
- }
34
- }
5
+ #bri-control-wrap ();
35
6
  }
36
7
 
37
8
  &-modal {
@@ -76,9 +47,4 @@
76
47
  }
77
48
  }
78
49
  }
79
-
80
- &-show {
81
- padding: 0 8px;
82
- line-height: 32px;
83
- }
84
50
  }
@@ -24,7 +24,8 @@
24
24
  min-height: 32px;
25
25
  padding: 4px 7px;
26
26
  border-radius: @borderRadius;
27
- &.control-notext {
27
+
28
+ &.bri-control-nodata {
28
29
  line-height: 24px;
29
30
  }
30
31
  }
@@ -56,7 +57,7 @@
56
57
  }
57
58
 
58
59
  &-unit {
59
- .unit-show();
60
+ .bri-unit-show();
60
61
  }
61
62
 
62
63
  &-show {
@@ -1,9 +1,5 @@
1
1
  .DshInput {
2
- &-edit {
3
- width: 100%;
4
- }
5
-
6
- &-unit {}
2
+ width: 100%;
7
3
 
8
4
  &-show {
9
5
  &-textarea {
@@ -17,16 +13,16 @@
17
13
  }
18
14
 
19
15
  .ivu-input {
20
- .control-edit();
16
+ .bri-control-edit();
21
17
  cursor: text;
22
18
 
23
19
  &[disabled] {
24
- .control-disabled();
20
+ .bri-control-disabled();
25
21
  &:hover {
26
22
  border-color: @border-disabled;
27
23
  }
28
24
  &::-webkit-input-placeholder {
29
- .control-disPlaceholder();
25
+ .bri-control-disabled-placeholder();
30
26
  }
31
27
  }
32
28
 
@@ -24,7 +24,7 @@
24
24
  width: 100%;
25
25
 
26
26
  &-disabled {
27
- .control-disabled();
27
+ .bri-control-disabled();
28
28
 
29
29
  &:hover {
30
30
  border-color: @border-disabled;
@@ -40,7 +40,7 @@
40
40
  background: @inputBg-disabled;
41
41
  color: @textColor;
42
42
  &::-webkit-input-placeholder {
43
- .control-disPlaceholder();
43
+ .bri-control-disabled-placeholder();
44
44
  }
45
45
  }
46
46
  }
@@ -136,7 +136,22 @@
136
136
  }
137
137
 
138
138
  &-value {
139
- .DshCheckbox-value();
139
+ height: 24px;
140
+ line-height: 20px;
141
+ padding: 2px 8px;
142
+ border-radius: 4px;
143
+ margin-right: 8px;
144
+ display: inline-flex;
145
+
146
+ &:last-of-type {
147
+ margin-right: 0px;
148
+ }
149
+
150
+ &-wrapper {
151
+ min-height: 32px;
152
+ padding: 4px 0;
153
+ .dsh-ellipsis();
154
+ }
140
155
  }
141
156
 
142
157
  &-tip {
@@ -163,7 +178,7 @@
163
178
 
164
179
  &-disabled {
165
180
  .ivu-select-selection {
166
- .control-disabled();
181
+ .bri-control-disabled();
167
182
  }
168
183
  }
169
184
 
@@ -174,9 +189,9 @@
174
189
  }
175
190
 
176
191
  .ivu-select-disabled .ivu-select-selection {
177
- .control-disabled();
192
+ .bri-control-disabled();
178
193
  &:hover {
179
- border-color: transparent;
194
+ border-color: @border-disabled;
180
195
  }
181
196
  }
182
197
  .ivu-select-input[disabled] {
@@ -2,36 +2,6 @@
2
2
  width: 100%;
3
3
 
4
4
  &-show {
5
- height: 24px;
6
- padding: 2px 8px;
7
- border-radius: 4px;
8
- line-height: 20px;
9
- flex-grow: 1;
10
- display: flex;
11
- justify-content: flex-start;
12
-
13
- &-name {
14
- .dsh-ellipsis();
15
- display: flex;
16
- min-height: 32px;
17
- padding: 4px;
18
- }
19
- }
20
-
21
- .ivu-switch {
22
- width: 50px;
23
- }
24
- .ivu-switch-checked:after {
25
- left: 29px;
26
- }
27
- .ivu-switch-inner {
28
- color: #fff;
29
- font-size: 12px;
30
- position: absolute;
31
- left: auto;
32
- right: 4px;
33
- }
34
- .ivu-switch-checked .ivu-switch-inner {
35
- left: 3px;
5
+ .bri-unit-show();
36
6
  }
37
7
  }
@@ -1,110 +1,47 @@
1
1
  .BriLabels {
2
- .control-wrap();
2
+ width: 100%;
3
+
4
+ &-edit {
5
+ #bri-control-wrap();
6
+ }
7
+
8
+ &-show {
9
+ #bri-control-wrap();
10
+ }
3
11
 
4
12
  &-dropdown {
5
13
  width: 100%;
6
14
 
7
- &-show {
8
- .control-edit();
9
- height: 32px;
10
- display: flex;
11
- justify-content: space-between;
12
- padding-left: 4px;
13
-
14
-
15
- &-list {
16
- display: flex;
17
- align-items: center;
18
- width: calc(100% - 14px);
19
-
20
- &-show {
21
- width: 100%;
22
- white-space: nowrap;
23
- .bri-scrollbar3();
24
- overflow-y: hidden;
15
+ &-menu {
16
+ .item {
17
+ margin: 4px 8px;
18
+ border-radius: @borderRadius;
19
+
20
+ &-active {
21
+ background-color: @theme-focus;
22
+ color: @themeColor;
25
23
  }
26
-
27
- &-placeholder {
28
- .control-placeholder();
24
+
25
+ &-edit {
26
+
29
27
  }
30
- }
31
-
32
- &-active {
33
- border-color: #64c6d1;
34
- box-shadow: 0 0 0 2px rgba(61, 184, 197, 0.2);
35
- }
36
-
37
- &-disabled {
38
- border: 1px solid @border-disabled;
39
- border-radius: 4px;
40
- background: @borderColor;
41
- cursor: not-allowed;
42
- color: @textColor-disabled !important;
43
- .BriLabels-dropdown-show-list-placeholder {
44
- .control-disPlaceholder();
28
+
29
+ &-show {
30
+
45
31
  }
46
32
  }
47
-
48
- &-arrow {
49
- display: flex;
50
- align-items: center;
51
- margin-right: 5px;
52
- }
53
- }
54
-
55
- &-item {
56
- margin: 4px 8px;
57
- border-radius: @borderRadius;
58
-
59
- &-active {
60
- background-color: @theme-focus;
61
- color: @themeColor;
62
- }
63
-
64
- &-show {
65
- // width: 100%;
66
- display: flex;
67
- justify-content: space-between;
68
- align-items: center;
69
-
70
- &-icons {
71
- margin-left: 10px;
72
-
73
- i {
74
- padding: 3px;
75
- border-radius: @borderRadius;
76
- color: rgba(0, 0, 0, 0.4);
77
-
78
- &:hover {
79
- background-color: #fff;
80
- }
81
- }
82
-
83
- &-edit {
84
- &:hover {
85
- color: @themeColor;
86
- }
87
- }
88
-
89
- &-del {
90
- &:hover {
91
- color: @error-color;
92
- }
93
- }
33
+
34
+ .btns {
35
+ border-top: 1px solid #E7E7E7;
36
+ margin: 12px 8px 0;
37
+ padding-top: 8px;
38
+
39
+ &-add {
40
+ width: 100%;
41
+ margin-bottom: 8px;
94
42
  }
95
43
  }
96
44
  }
97
-
98
- &-btnWrap {
99
- border-top: 1px solid #E7E7E7;
100
- margin: 12px 8px 0;
101
- padding-top: 8px;
102
- }
103
-
104
- &-add {
105
- width: 100%;
106
- margin-bottom: 8px;
107
- }
108
45
  }
109
46
 
110
47
  .ivu-select-dropdown {
@@ -126,27 +63,4 @@
126
63
  }
127
64
  }
128
65
  }
129
-
130
- &-view {
131
- display: flex;
132
- flex-wrap: wrap;
133
- align-items: center;
134
- height: 32px;
135
- overflow-y: hidden;
136
-
137
- &-item {
138
- .unit-show();
139
- .dsh-ellipsis();
140
- max-width: 100%;
141
- height: fit-content;
142
- padding: 0 8px;
143
- background-color: @borderColor;
144
- color: rgba(0, 0, 0, 0.9);
145
- font-size: 12px;
146
- font-weight: 400;
147
- line-height: 24px;
148
- border-radius: @borderRadius;
149
- margin-right: 8px;
150
- }
151
- }
152
66
  }
@@ -1,7 +1,7 @@
1
1
  .cascaderTable {
2
2
 
3
3
  &-unit {
4
- .unit-show();
4
+ .bri-unit-show();
5
5
 
6
6
  &-text {
7
7
 
@@ -2,7 +2,7 @@
2
2
  width: 100%;
3
3
 
4
4
  &-unit {
5
- .unit-show();
5
+ .bri-unit-show();
6
6
 
7
7
  &-text {
8
8
 
@@ -0,0 +1,106 @@
1
+ .selectDepartments {
2
+ width: 100%;
3
+
4
+ &-edit {
5
+ #bri-control-wrap();
6
+ }
7
+
8
+ &-show {
9
+ #bri-control-wrap();
10
+ }
11
+
12
+ // 传到子组件里的class!!!
13
+ &-modal {
14
+ .ivu-modal {
15
+ width: 800px!important;
16
+ }
17
+ }
18
+ // 传到子组件里的class!!!
19
+ &-cascaderModal {
20
+ .ivu-modal {
21
+ width: 600px !important;
22
+ }
23
+ }
24
+
25
+ &-list {
26
+ height: 600px;
27
+ padding: 15px 20px;
28
+ .dsh-flex-col-start-stretch();
29
+
30
+ .list {
31
+ &-selected {
32
+ padding: 0 15px;
33
+ line-height: 30px;
34
+ display: flex;
35
+ flex-wrap: wrap;
36
+ align-items: center;
37
+
38
+ &-label {
39
+
40
+ }
41
+
42
+ .item {
43
+ max-width: 230px;
44
+ height: 24px;
45
+ padding: 2px 6px 2px 10px;
46
+ margin: 3px 5px;
47
+ border-radius: 20px;
48
+ background-color: @themeColor;
49
+ color: #ffffff;
50
+ font-size: 12px;
51
+ display: flex;
52
+ align-items: center;
53
+
54
+ &-name {
55
+ .dsh-ellipsis();
56
+ }
57
+
58
+ &-delete {
59
+ padding: 3px;
60
+ margin-left: 5px;
61
+ font-size: 14px;
62
+ cursor: pointer;
63
+ }
64
+ }
65
+ }
66
+
67
+ &-search {
68
+ padding: 10px 15px;
69
+ }
70
+
71
+ &-center {
72
+ flex: 1;
73
+ min-height: 100px;
74
+ padding: 5px 0 10px;
75
+ overflow: auto;
76
+
77
+ &-tree {
78
+ .tree {
79
+ &-nodata {
80
+ #dsh-nodata();
81
+ }
82
+ }
83
+ }
84
+
85
+ &-card {
86
+ .card {
87
+ &-high-title {
88
+ padding: 10px 0px;
89
+ clear: both;
90
+ text-align: left;
91
+ }
92
+ }
93
+ }
94
+ }
95
+
96
+ &-footer {
97
+ text-align: right;
98
+
99
+ .ivu-btn {
100
+ width: 120px;
101
+ height: 38px;
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }