bri-components 1.1.1 → 1.1.3

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 (91) 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/10.bri-components.min.js +1 -0
  4. package/lib/2.bri-components.min.js +1 -1
  5. package/lib/3.bri-components.min.js +1 -1
  6. package/lib/4.bri-components.min.js +1 -1
  7. package/lib/5.bri-components.min.js +1 -1
  8. package/lib/6.bri-components.min.js +1 -1
  9. package/lib/7.bri-components.min.js +1 -1
  10. package/lib/8.bri-components.min.js +1 -1
  11. package/lib/9.bri-components.min.js +1 -1
  12. package/lib/bri-components.min.js +6 -6
  13. package/package.json +1 -1
  14. package/src/components/controls/base/DshCascader.vue +14 -11
  15. package/src/components/controls/base/DshCascaderMultiple.vue +13 -4
  16. package/src/components/controls/base/DshCheckbox.vue +16 -19
  17. package/src/components/controls/base/DshCoordinates.vue +15 -11
  18. package/src/components/controls/base/DshDate.vue +24 -37
  19. package/src/components/controls/base/DshDaterange.vue +3 -1
  20. package/src/components/controls/base/DshEditor.vue +73 -49
  21. package/src/components/controls/base/DshInput.vue +66 -52
  22. package/src/components/controls/base/DshNumber/BriInputNumber/BriInputNumber.vue +1 -1
  23. package/src/components/controls/base/DshNumber/DshNumber.vue +50 -48
  24. package/src/components/controls/base/DshNumberange.vue +11 -21
  25. package/src/components/controls/base/DshSelect.vue +12 -16
  26. package/src/components/controls/base/YSerialNumber.vue +10 -3
  27. package/src/components/controls/base/ZUpload/index.vue +16 -12
  28. package/src/components/controls/base/ZUpload/upload-list.vue +20 -13
  29. package/src/components/controls/base/ZUpload/uploadMixin.js +5 -1
  30. package/src/components/controls/base/textMultiple/DshTextMultiple.vue +13 -5
  31. package/src/components/controls/base/textMultiple/MultipleInput.vue +5 -5
  32. package/src/components/controls/controlMap.js +7 -5
  33. package/src/components/controls/controlMixin.js +54 -30
  34. package/src/components/controls/controlShow.vue +44 -0
  35. package/src/components/controls/{base → senior}/BriLabels.vue +55 -24
  36. package/src/components/controls/{base → senior}/DshPackage.vue +6 -25
  37. package/src/components/controls/senior/cascaderTable.vue +91 -84
  38. package/src/components/controls/senior/flatTable.vue +20 -17
  39. package/src/components/controls/{base → special}/DshBack.vue +4 -4
  40. package/src/components/controls/{base → special}/DshUndeveloped.vue +3 -1
  41. package/src/components/form/DshAdvSearchForm.vue +10 -1
  42. package/src/components/form/DshForm.vue +14 -20
  43. package/src/components/list/BriFlatTable.vue +5 -7
  44. package/src/components/list/BriTable.vue +12 -8
  45. package/src/components/list/DshBox/DshCard.vue +2 -2
  46. package/src/components/list/DshBox/DshCrossTable.vue +4 -8
  47. package/src/components/list/DshBox/DshSingleData.vue +0 -7
  48. package/src/components/list/DshCascaderTable.vue +3 -4
  49. package/src/components/list/ZTree.vue +1 -1
  50. package/src/components/other/ZLoading.vue +32 -3
  51. package/src/components/small/BriDrawer.vue +132 -0
  52. package/src/components/small/DshButtons.vue +3 -3
  53. package/src/components/small/DshControlDefine.vue +1 -1
  54. package/src/components/small/DshModal.vue +0 -110
  55. package/src/components/unit/DshFormItem.vue +42 -46
  56. package/src/components/unit/DshUnit.vue +10 -13
  57. package/src/components/unit/unitMixin.js +4 -9
  58. package/src/index.js +12 -14
  59. package/src/styles/common/box.less +29 -0
  60. package/src/styles/common/control.less +50 -12
  61. package/src/styles/components/controls/BriLabels.less +33 -17
  62. package/src/styles/components/controls/DshCascader.less +7 -3
  63. package/src/styles/components/controls/DshCheckbox.less +45 -42
  64. package/src/styles/components/controls/DshCoordinates.less +24 -27
  65. package/src/styles/components/controls/DshDate.less +1 -52
  66. package/src/styles/components/controls/DshEditor.less +51 -34
  67. package/src/styles/components/controls/DshInput.less +13 -34
  68. package/src/styles/components/controls/DshNumber.less +33 -0
  69. package/src/styles/components/controls/DshNumberange.less +8 -3
  70. package/src/styles/components/controls/DshSelect.less +78 -92
  71. package/src/styles/components/controls/ZUpload.less +1 -2
  72. package/src/styles/components/controls/cascaderTable.less +10 -24
  73. package/src/styles/components/controls/controlShow.less +3 -1
  74. package/src/styles/components/controls/flatTable.less +10 -23
  75. package/src/styles/components/form/DshAdvSearchForm.less +0 -9
  76. package/src/styles/components/form/DshDefaultSearch.less +0 -20
  77. package/src/styles/components/index.less +3 -2
  78. package/src/styles/components/other/InfoCascader.less +4 -0
  79. package/src/styles/components/other/ZLoading.less +23 -7
  80. package/src/styles/components/small/BriDrawer.less +34 -0
  81. package/src/styles/components/small/DshControlDefine.less +6 -8
  82. package/src/styles/components/small/DshDropdown.less +12 -8
  83. package/src/styles/components/small/DshModal.less +207 -0
  84. package/src/styles/components/small/DshTitle.less +1 -1
  85. package/src/styles/components/unit/DshFormItem.less +7 -3
  86. package/src/styles/plugin/iview.less +7 -3
  87. package/src/styles/reset.less +16 -2
  88. package/src/utils/table.js +5 -6
  89. package/src/components/controls/base/DshLabels.vue +0 -309
  90. package/src/components/controls/base/controlShow.vue +0 -52
  91. package/src/styles/components/controls/DshLabels.less +0 -187
@@ -3,8 +3,8 @@
3
3
 
4
4
  &-multiplerow {
5
5
  height: 70px;
6
-
7
6
  .dsh-control-define-text {
7
+ overflow-y: auto;
8
8
  .DshTags {
9
9
  flex-wrap: wrap;
10
10
  }
@@ -23,20 +23,18 @@
23
23
  width: 100%;
24
24
  height: 100%;
25
25
  display: flex;
26
- justify-content: space-between;
27
- align-items: center;
28
- overflow-x: auto;
26
+ padding: 2px 8px;
27
+ .bri-scrollbar3();
29
28
  overflow-y: hidden;
30
- padding: 0 8px;
31
- .bri-scrollbar6();
32
-
29
+
33
30
  .DshTags {
34
31
  display: flex;
35
32
  white-space: nowrap;
36
33
  }
37
34
  }
38
-
35
+
39
36
  &-nodata {
40
37
  .control-notext();
38
+ padding: 0 7px;
41
39
  }
42
40
  }
@@ -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,10 @@
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;
64
+ max-height: 500px
61
65
  }
@@ -0,0 +1,207 @@
1
+ .DshModal {
2
+ &-header {
3
+ width: 100%;
4
+ height: 100%;
5
+ }
6
+ &-close {
7
+ padding: 2px;
8
+ position: absolute;
9
+ top: 10px;
10
+ right: 10px;
11
+ cursor: pointer;
12
+ }
13
+
14
+ &-default,
15
+ &-middle,
16
+ &-large,
17
+ &-small {
18
+ .ivu-modal-wrap {
19
+ .ivu-modal {
20
+ margin: auto;
21
+ position: absolute;
22
+ top: 0px;
23
+ bottom: 0px;
24
+ left: 0px;
25
+ right: 0px;
26
+ .ivu-modal-content {
27
+ width: 100%;
28
+ height: 100%;
29
+ display: flex;
30
+ flex-direction: column;
31
+ .ivu-modal-close {}
32
+
33
+ .ivu-modal-header {
34
+ width: 100%;
35
+ height: 44px;
36
+ padding: 10px 40px 10px 16px;
37
+ }
38
+ .ivu-modal-body {
39
+ width: 100%;
40
+ flex: 1;
41
+ min-height: 200px;
42
+ padding: 0px;
43
+ overflow: auto;
44
+ }
45
+ .ivu-modal-footer {
46
+ width: 100%;
47
+ height: 50px;
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ &-default {
55
+ .ivu-modal-wrap {
56
+ .ivu-modal {
57
+ width: 750px !important;
58
+ height: 550px !important;
59
+ max-height: 100%;
60
+ max-width: 100%;
61
+ }
62
+ }
63
+ }
64
+ &-small {
65
+ .ivu-modal-wrap {
66
+ .ivu-modal {
67
+ width: 500px !important;
68
+ height: 400px !important;
69
+ max-height: 100%;
70
+ max-width: 100%;
71
+ .ivu-modal-content{
72
+ .DshModal-close {
73
+ top: 20px;
74
+ right: 24px;
75
+ color: rgba(0,0,0,0.6);
76
+ font-size: 16px!important;
77
+ }
78
+
79
+ .ivu-modal-header {
80
+ width: 100%;
81
+ height: 44px;
82
+ padding: 20px 24px 0px 24px;
83
+ border-bottom: none;
84
+ &-inner {
85
+ color: rgba(0,0,0,0.9);
86
+ font-size: 16px;
87
+ font-weight: 500;
88
+ line-height: 24px;
89
+ height: 24px;
90
+ }
91
+ }
92
+ .ivu-modal-body {
93
+ padding: 16px 24px 20px;
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ &-middle {
100
+ .ivu-modal-wrap {
101
+ .ivu-modal {
102
+ width: 1000px !important;
103
+ height: 800px !important;
104
+ max-height: 100%;
105
+ max-width: 100%;
106
+ }
107
+ }
108
+ }
109
+ &-large {
110
+ .ivu-modal-wrap {
111
+ .ivu-modal {
112
+ width: 80% !important;
113
+ height: 90% !important;
114
+ min-width: 1000px !important;
115
+ max-height: 100%;
116
+ max-width: 100%;
117
+ }
118
+ }
119
+ }
120
+ &-auto {
121
+ .ivu-modal-wrap {
122
+ display: flex;
123
+ align-items: center;
124
+ justify-content: center;
125
+ .ivu-modal {
126
+ top: 0px;
127
+ max-height: 100%;
128
+ }
129
+ }
130
+ }
131
+ }
132
+
133
+ .bri-modal-flex {
134
+ display: flex;
135
+ align-items: center;
136
+ justify-content: center;
137
+
138
+ .ivu-modal {
139
+ top: 0px
140
+ }
141
+
142
+ .ivu-modal-content {
143
+ height: 100%;
144
+ display: flex;
145
+ flex-direction: column;
146
+ }
147
+
148
+ .ivu-modal-body {
149
+ flex: 1;
150
+ overflow: auto;
151
+ padding: 0px;
152
+ }
153
+ }
154
+
155
+ // 默认模态框brimodal
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;
169
+ }
170
+
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;
180
+ }
181
+ }
182
+
183
+ &-content {
184
+ padding: 20px 0;
185
+ }
186
+
187
+ &-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
+ }
206
+ }
207
+ }
@@ -4,7 +4,7 @@
4
4
  align-items: center;
5
5
  cursor: pointer;
6
6
  &-name {
7
- margin-left: 10px;
7
+ margin-left: 8px;
8
8
  font-size: @smallTitleSize;
9
9
  }
10
10
  }
@@ -41,9 +41,15 @@
41
41
  }
42
42
 
43
43
  &-name {
44
- color: @contentColor;
45
44
  font-size: @textSize;
45
+ .dsh-ellipsis();
46
46
 
47
+ &-edit {
48
+ color: @textColor;
49
+ }
50
+ &-show {
51
+ color: @contentColor
52
+ }
47
53
  &-sign {
48
54
  #dsh-sign-change();
49
55
  }
@@ -115,8 +121,6 @@
115
121
  }
116
122
  }
117
123
 
118
-
119
-
120
124
  .ivu-tooltip {
121
125
  display: flex;
122
126
  }
@@ -5,9 +5,14 @@
5
5
  @primary-color : #3DB8C5; // @themeColor;
6
6
  @text-color : rgba(0, 0, 0, 0.9);
7
7
  @border-radius-base : 4px;
8
+ @border-color-split : #E5E5E5;
8
9
  @border-color-base : #E5E5E5;
9
10
  @background-color-base : #F5F5F5;
10
11
  @font-family : "PingFang SC","Microsoft YaHei","微软雅黑";
12
+ @processing-color : @primary-color;
13
+ @normal-color : red;
14
+ @link-color : #3DB8C5;
15
+ @info-color : #2db7f5;
11
16
 
12
17
  // Button
13
18
  @btn-primary-color : rgba(255, 255,255, 0.9);
@@ -23,12 +28,11 @@
23
28
 
24
29
  // input
25
30
  @input-placeholder-color: rgba(0, 0, 0, 0.4);
26
- @input-disabled-bg : #E5E5E5
27
-
31
+ @input-disabled-bg : #E5E5E5;
28
32
  // @btn-padding-base-icon : 5px 15px 6px;
29
33
  // @btn-padding-large-icon : 6px 15px 6px 15px;
30
34
  // @btn-padding-small-icon : 1px 7px 2px;
31
35
  // @btn-padding-base : 0 @padding-md - 1px;
32
36
  // @btn-padding-large : @btn-padding-base;
33
37
  // @btn-padding-small : 0 @padding-xs - 1px;
34
-
38
+
@@ -12,8 +12,8 @@ html {
12
12
  "Helvetica Neue", "PingFang SC", "Noto Sans", "Noto Sans CJK SC",
13
13
  "Microsoft YaHei",
14
14
  sans-serif; */
15
- font-family: SourceHanSansCN-Heavy, SourceHanSansCN;
16
- font-size: 12px;
15
+ font-family: PingFang SC, Microsoft YaHei, 微软雅黑;
16
+ font-size: 14px;
17
17
  // color: @textColor;
18
18
  }
19
19
 
@@ -60,6 +60,20 @@ li {
60
60
  }
61
61
  }
62
62
 
63
+ .bri-scrollbar3 {
64
+ overflow: auto;
65
+ &::-webkit-scrollbar {
66
+ width: 6px;
67
+ height: 6px;
68
+ }
69
+
70
+ &:-webkit-scrollbar-thumb {
71
+ border-radius: 3px;
72
+ background: rgba(51, 51, 51, .1);
73
+ background-clip: border-box;
74
+ }
75
+ }
76
+
63
77
  .dsh-scrollbar3::-webkit-scrollbar {
64
78
  height: 3px;
65
79
  width: 3px;
@@ -36,11 +36,10 @@ const transformToColumns = function (form) {
36
36
  renderBodyCell: ({ row, column, rowIndex }, h) => {
37
37
  return h("dsh-unit", {
38
38
  props: {
39
- formData: row,
40
- formItem: col,
41
- rowIndex: rowIndex,
42
39
  canEdit: false,
43
- isUnit: true
40
+ rowIndex: rowIndex,
41
+ formData: row,
42
+ formItem: col
44
43
  }
45
44
  });
46
45
  }
@@ -50,7 +49,7 @@ const transformToColumns = function (form) {
50
49
  ...(
51
50
  ["select", "checkbox"].includes(col._type)
52
51
  ? {
53
- filter: {
52
+ filter: this.listPropsObj && this.listPropsObj.headerFilter ? {
54
53
  isMultiple: true,
55
54
  maxHeight: 300,
56
55
  filterList: col._data.map(item => ({
@@ -79,7 +78,7 @@ const transformToColumns = function (form) {
79
78
  };
80
79
  this.filterReset && this.filterReset(conditionItem);
81
80
  }
82
- }
81
+ } : null
83
82
  }
84
83
  : {}
85
84
  ),