bri-components 1.2.0 → 1.2.1

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 (54) 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/DshCascader/DshCascader.vue +53 -51
  19. package/src/components/controls/base/DshCascader/InfoCascader.vue +3 -4
  20. package/src/components/controls/base/DshCheckbox.vue +8 -8
  21. package/src/components/controls/base/DshSelect.vue +1 -1
  22. package/src/components/controls/controlMap.js +4 -0
  23. package/src/components/controls/controlMixin.js +14 -12
  24. package/src/components/controls/senior/.DS_Store +0 -0
  25. package/src/components/controls/senior/BriLabels.vue +169 -158
  26. package/src/components/controls/senior/selectDepartments.vue +380 -0
  27. package/src/components/controls/senior/selectUsers/DepartmentMenu.vue +191 -0
  28. package/src/components/controls/senior/selectUsers/selectUsers.vue +482 -0
  29. package/src/components/list/BriCard.vue +52 -0
  30. package/src/components/list/BriTreeItem.vue +110 -0
  31. package/src/components/small/DshTags.vue +1 -1
  32. package/src/index.js +7 -3
  33. package/src/styles/.DS_Store +0 -0
  34. package/src/styles/common/control.less +57 -54
  35. package/src/styles/components/.DS_Store +0 -0
  36. package/src/styles/components/controls/base/BriUpload/BriUpload.less +11 -3
  37. package/src/styles/components/controls/base/DshCascader/DshCascader.less +24 -77
  38. package/src/styles/components/controls/base/DshCheckbox.less +65 -69
  39. package/src/styles/components/controls/base/DshEditor.less +3 -2
  40. package/src/styles/components/controls/base/DshInput.less +4 -8
  41. package/src/styles/components/controls/base/DshNumber.less +2 -2
  42. package/src/styles/components/controls/base/DshSelect.less +3 -3
  43. package/src/styles/components/controls/senior/BriLabels.less +32 -118
  44. package/src/styles/components/controls/senior/cascaderTable.less +1 -1
  45. package/src/styles/components/controls/senior/flatTable.less +1 -1
  46. package/src/styles/components/controls/senior/selectDepartments.less +106 -0
  47. package/src/styles/components/controls/senior/selectUsers/DepartmentMenu.less +37 -0
  48. package/src/styles/components/controls/senior/selectUsers/index.less +2 -0
  49. package/src/styles/components/controls/senior/selectUsers/selectUsers.less +167 -0
  50. package/src/styles/components/form/DshDefaultSearch.less +1 -2
  51. package/src/styles/components/index.less +7 -3
  52. package/src/styles/components/list/BriCard.less +50 -0
  53. package/src/styles/components/list/BriTreeItem.less +50 -0
  54. package/src/styles/components/unit/DshFormItem.less +0 -1
@@ -1,5 +1,5 @@
1
- // 表格展示-非通用
2
- .unit-show () {
1
+ // 单元格标签式展示 -非全部类型通用
2
+ .bri-unit-show () {
3
3
  background-color: @theme-focus;
4
4
  color: @themeColor;
5
5
  border-radius: @borderRadius;
@@ -8,93 +8,96 @@
8
8
  display: inline;
9
9
  }
10
10
 
11
- // 表单模式
12
- .control-edit {
11
+ // 表单控件共用样式
12
+ .bri-control-edit {
13
13
  border: 1px solid @borderColor;
14
14
  border-radius: @borderRadius;
15
15
  background: @inputBg;
16
16
  cursor: pointer;
17
17
  color: @textColor;
18
- &.control-notext {
19
- .control-placeholder();
18
+
19
+ &.bri-control-nodata {
20
+ .bri-control-nodata();
20
21
  }
21
22
  }
22
- .control-disabled {
23
+ .bri-control-disabled {
23
24
  border: 1px solid @border-disabled;
24
25
  border-radius: @borderRadius;
25
26
  background: @inputBg-disabled;
26
27
  cursor: not-allowed;
27
28
  color: @textColor;
28
- &.control-notext {
29
- .control-disPlaceholder();
29
+
30
+ &.bri-control-nodata {
31
+ .bri-control-disabled-placeholder();
30
32
  }
31
33
  }
32
- .control-readonly {
33
- border: 1px solid @border-readonly;
34
- border-radius: @borderRadius;
35
- background: @inputBg-readonly;
36
- cursor: not-allowed;
37
- color: @textColor-readonly;
38
- }
39
- .control-show {
34
+ // .bri-control-readonly {
35
+ // border: 1px solid @border-readonly;
36
+ // border-radius: @borderRadius;
37
+ // background: @inputBg-readonly;
38
+ // cursor: not-allowed;
39
+ // color: @textColor-readonly;
40
+ // }
41
+ .bri-control-show {
40
42
  border: none;
41
43
  background-color: transparent;
42
- &.control-notext {
43
- .control-notext();
44
+
45
+ &.bri-control-nodata {
46
+ .bri-control-nodata();
44
47
  }
45
48
  }
46
- .control-unit {
49
+ .bri-control-unit {
47
50
  border: none;
48
51
  background-color: transparent;
49
- &.control-notext {
52
+
53
+ // unit 模式下不用特殊处理颜色
54
+ &.bri-control-nodata {
50
55
  color: @text-color;
51
56
  }
52
57
  }
53
-
54
- // 编辑模式下无数据
55
- .control-placeholder {
58
+ // 无数据
59
+ .bri-control-nodata {
56
60
  color: @placeholderColor;
57
61
  }
58
62
  // 编辑disabled模式下无数据
59
- .control-disPlaceholder {
63
+ .bri-control-disabled-placeholder {
60
64
  color: @textColor-disabled;
61
65
  }
62
- // 查看模式下无数据
63
- .control-notext {
64
- color: @placeholderColor;
65
- }
66
-
67
- // unit 模式下不用特殊处理颜色
68
-
69
66
 
70
67
  // 展示为tag标签公共样式
71
- .control-wrap {
72
- width: 100%;
73
- &-box {
74
- height: 32px;
75
- padding: 4px 0 4px 4px;
76
- line-height: 24px;
77
- .dsh-flex-row-between-center();
78
- &:hover {
79
- .control-wrap-close {
80
- display: block;
81
- }
82
- }
68
+ #bri-control-wrap () {
69
+ .dsh-flex-row-between-center();
70
+ height: 32px;
71
+ padding: 4px 0 4px 4px;
72
+ line-height: 24px;
73
+
74
+ .text {
75
+ .dsh-ellipsis();
83
76
  }
84
-
85
- .control-edit.control-notext {
86
- padding-left: 7px;
77
+
78
+ .overflow {
79
+ overflow: auto;
80
+ .bri-scrollbar3();
87
81
  }
88
82
 
89
- &-text {
90
- .dsh-ellipsis();
83
+ .icon {
84
+ &-default {
85
+ padding: 5px;
86
+ }
87
+
88
+ &-close {
89
+ padding: 5px;
90
+ display: none;
91
+ }
91
92
  }
92
93
 
93
- &-close {
94
- padding: 5px;
95
- display: none;
94
+ &:hover {
95
+ .icon-close {
96
+ display: block;
97
+ }
96
98
  }
97
- &-icon {
98
- padding: 5px;
99
+
100
+ &.bri-control-nodata {
101
+ padding-left: 7px;
99
102
  }
100
103
  }
Binary file
@@ -132,7 +132,7 @@
132
132
  }
133
133
 
134
134
  &-disabled {
135
- .control-disabled();
135
+ .bri-control-disabled();
136
136
 
137
137
  .uploadList {
138
138
  &-old {
@@ -147,12 +147,20 @@
147
147
  }
148
148
 
149
149
  &-nodata {
150
- .control-disPlaceholder();
150
+ .bri-control-disabled-placeholder();
151
151
  text-indent: 7px;
152
152
  text-align: left;
153
153
  }
154
154
  &-inline-nodata {
155
- .control-disPlaceholder();
155
+ .bri-control-disabled-placeholder();
156
+ }
157
+ }
158
+ }
159
+
160
+ &-unit {
161
+ .uploadList {
162
+ &-inline-nodata {
163
+ color: @text-color;
156
164
  }
157
165
  }
158
166
  }
@@ -1,106 +1,53 @@
1
1
  .DshCascader {
2
2
  width: 100%;
3
3
 
4
- #multiple-content () {
5
- .hasdata {
4
+ &-edit {
5
+ // 多选
6
+ &-multiple {
6
7
  width: 100%;
7
- height: 100%;
8
- padding: 0px 7px;
9
- .bri-scrollbar3();
10
- overflow-y: hidden;
11
- }
12
-
13
- .nodata {
14
- padding: 0px 7px;
15
- line-height: 28px;
16
- color: @placeholderColor;
17
- }
18
-
19
- // 多选类型 且独自一行时
20
- &-row {
21
- height: 68px;
22
-
23
- .hasdata {
24
- overflow-y: auto;
25
- display: flex;
26
- flex-wrap: wrap;
8
+
9
+ &-edit {
10
+ #bri-control-wrap();
27
11
  }
28
12
  }
29
- }
30
13
 
31
- // 多选
32
- &-multiple {
33
- width: 100%;
34
-
35
- &-input {
14
+ // 单选 -新模式
15
+ &-custom {
36
16
  width: 100%;
37
- height: 32px;
38
- #multiple-content();
39
-
40
- .hasdata {
41
-
42
- }
43
- .nodata {
44
-
45
- }
46
-
47
- // 多选类型 且独自一行时
48
- &-row {
49
-
50
- }
17
+ #bri-control-wrap();
51
18
  }
52
- }
53
-
54
- // 单选 -新模式
55
- &-custom {
56
- width: 100%;
57
-
58
- &-input {
19
+ // 单选 -默认模式
20
+ &-single {
59
21
  width: 100%;
60
- height: 32px;
61
- padding: 0px 7px;
62
- .dsh-flex-row-between-center();
63
-
64
- .text {
65
- .dsh-ellipsis();
66
- }
67
-
68
- .clear {
69
- margin-left: 5px;
70
- }
71
22
  }
72
23
  }
73
-
74
- // 单选 -默认模式
75
- &-single {
76
- width: 100%;
77
- }
78
-
24
+
79
25
  // 查看
80
26
  &-show {
81
27
  &-multiple {
82
- #multiple-content();
28
+ #bri-control-wrap();
83
29
 
84
- .hasdata {
30
+ .overflow {
85
31
  &-unit {
86
32
  .dsh-ellipsis();
87
33
  }
88
34
  }
89
- .nodata {
90
-
91
- }
92
-
93
- // 多选类型 且独自一行时
94
- &-row {
95
- height: auto;
96
- min-height: 32px;
97
- }
98
35
  }
99
36
 
100
37
  &-single {
101
38
 
102
39
  }
103
40
  }
41
+
42
+ // 多选类型且独自一行时
43
+ &-row {
44
+ height: 68px;
45
+
46
+ .overflow {
47
+ width: 100%;
48
+ height: 100%;
49
+ }
50
+ }
104
51
  }
105
52
 
106
53
  .ivu-cascader {
@@ -1,68 +1,16 @@
1
1
  .DshCheckbox {
2
2
  width: 100%;
3
3
 
4
- &-checkboxGroup {
4
+ &-group {
5
5
  width: 100%;
6
6
 
7
- &-scroll {
8
- overflow-x: auto;
9
- overflow-y: hidden;
10
- white-space: nowrap;
11
-
12
- &::-webkit-scrollbar {
13
- height: 6px;
14
- }
15
-
16
- &:-webkit-scrollbar-thumb {
17
- border-radius: 3px;
18
- background: rgba(51, 51, 51, .1);
19
- background-clip: border-box;
20
- }
21
- }
22
- }
23
-
24
- &-tip {
25
- cursor: pointer;
26
-
27
- .ivu-checkbox {
28
- display: none;
29
- }
30
- }
31
-
32
- .ivu-select-multiple {
33
- .ivu-select-selection {
34
- height: 32px;
35
-
36
- &>div {
37
- overflow-x: auto;
38
- overflow-y: hidden;
39
- white-space: nowrap;
40
-
41
- .ivu-tag {
42
- margin: 2px 4px 4px 0;
43
- }
44
-
45
- &::-webkit-scrollbar {
46
- height: 8px;
47
- }
48
-
49
- &:-webkit-scrollbar-thumb {
50
- border-radius: 3px;
51
- background: rgba(51, 51, 51, .1);
52
- background-clip: border-box;
53
- }
7
+ &-disabled {
8
+ .ivu-checkbox-disabled+span {
9
+ color: #515a6e;
54
10
  }
55
11
  }
56
12
 
57
- .ivu-select-item-selected:after {
58
- content: none;
59
- }
60
- }
61
- }
62
-
63
- .DshCheckbox {
64
- &-checkboxGroup {
65
- &-useColor {
13
+ &-color {
66
14
  .ivu-checkbox-border {
67
15
  height: 32px;
68
16
  line-height: 32px;
@@ -108,24 +56,34 @@
108
56
 
109
57
  );
110
58
  }
111
- }
112
59
 
113
- // 选中时背景为白色
114
- .myChecked {
115
- .ivu-checkbox-checked .ivu-checkbox-inner {
116
- background-color: @themeColor;
60
+ &-disabled-color {
61
+ .ivu-checkbox-disabled+span {
62
+ color: inherit;
63
+ }
117
64
  }
118
- }
119
65
 
120
- .readonlyCheckbox {
121
- .ivu-checkbox-disabled+span {
122
- color: #515a6e;
66
+ &-scroll {
67
+ overflow-x: auto;
68
+ overflow-y: hidden;
69
+ white-space: nowrap;
70
+
71
+ &::-webkit-scrollbar {
72
+ height: 6px;
73
+ }
74
+
75
+ &:-webkit-scrollbar-thumb {
76
+ border-radius: 3px;
77
+ background: rgba(51, 51, 51, .1);
78
+ background-clip: border-box;
79
+ }
123
80
  }
124
81
  }
125
82
 
126
- .readonlyColorCheckbox {
127
- .ivu-checkbox-disabled+span {
128
- color: inherit;
83
+ // 选中时背景为白色
84
+ .myChecked {
85
+ .ivu-checkbox-checked .ivu-checkbox-inner {
86
+ background-color: @themeColor;
129
87
  }
130
88
  }
131
89
 
@@ -137,6 +95,44 @@
137
95
  font-size: 14px;
138
96
  vertical-align: middle;
139
97
  }
98
+
99
+ &-tip {
100
+ cursor: pointer;
101
+
102
+ .ivu-checkbox {
103
+ display: none;
104
+ }
105
+ }
106
+
107
+ .ivu-select-multiple {
108
+ .ivu-select-selection {
109
+ height: 32px;
110
+
111
+ &>div {
112
+ overflow-x: auto;
113
+ overflow-y: hidden;
114
+ white-space: nowrap;
115
+
116
+ .ivu-tag {
117
+ margin: 2px 4px 4px 0;
118
+ }
119
+
120
+ &::-webkit-scrollbar {
121
+ height: 8px;
122
+ }
123
+
124
+ &:-webkit-scrollbar-thumb {
125
+ border-radius: 3px;
126
+ background: rgba(51, 51, 51, .1);
127
+ background-clip: border-box;
128
+ }
129
+ }
130
+ }
131
+
132
+ .ivu-select-item-selected:after {
133
+ content: none;
134
+ }
135
+ }
140
136
  }
141
137
 
142
138
  // TODO:必须单独拿出来,DshSelect组件里在混入此样式
@@ -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
  }
@@ -163,7 +163,7 @@
163
163
 
164
164
  &-disabled {
165
165
  .ivu-select-selection {
166
- .control-disabled();
166
+ .bri-control-disabled();
167
167
  }
168
168
  }
169
169
 
@@ -174,9 +174,9 @@
174
174
  }
175
175
 
176
176
  .ivu-select-disabled .ivu-select-selection {
177
- .control-disabled();
177
+ .bri-control-disabled();
178
178
  &:hover {
179
- border-color: transparent;
179
+ border-color: @border-disabled;
180
180
  }
181
181
  }
182
182
  .ivu-select-input[disabled] {