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
package/src/index.js CHANGED
@@ -8,8 +8,8 @@ import { VeTable, VeLocale } from "vue-easytable";
8
8
  import CN from "vue-easytable/libs/locale/lang/zh-CN.js";
9
9
 
10
10
  // list
11
- import { VTable } from "./components/list/easyTable/index.js";
12
- import EvTable from "./components/list/evTable/EvTable.vue"; // 大表格
11
+ // import { VTable } from "./components/list/easyTable/index.js";
12
+ // import EvTable from "./components/list/evTable/EvTable.vue"; // 大表格
13
13
  import DshBox from "./components/list/DshBox/DshBox.vue";
14
14
  import DshTable from "./components/list/DshBox/DshTable.vue";
15
15
  import DshList from "./components/list/DshBox/DshList.vue";
@@ -29,7 +29,6 @@ import DshUnit from "./components/unit/DshUnit.vue";
29
29
  import DshFormItem from "./components/unit/DshFormItem.vue";
30
30
 
31
31
  // controls
32
- import controlShow from "./components/controls/base/controlShow.vue";
33
32
  import DshInput from "./components/controls/base/DshInput.vue";
34
33
  import DshNumber from "./components/controls/base/DshNumber/DshNumber.vue";
35
34
  import DshSelect from "./components/controls/base/DshSelect.vue";
@@ -52,6 +51,7 @@ import BriTransfer from "./components/other/BriTransfer.vue";
52
51
 
53
52
  // small
54
53
  import DshModal from "./components/small/DshModal.vue";
54
+ import BriDrawer from "./components/small/BriDrawer.vue";
55
55
  import DshDropdown from "./components/small/DshDropdown.vue";
56
56
  import DshRender from "./components/small/render.js";
57
57
  import DshTdRender from "./components/small/DshTdRender.js";
@@ -90,12 +90,11 @@ import YUploadImage from "./components/controls/base/ZUpload/YUploadImage.vue";
90
90
  import DshCoordinates from "./components/controls/base/DshCoordinates.vue";
91
91
  import DshEditor from "./components/controls/base/DshEditor.vue";
92
92
  import DshDivider from "./components/controls/base/DshDivider.vue";
93
- import DshLabels from "./components/controls/base/DshLabels.vue";
94
- import DshPackage from "./components/controls/base/DshPackage.vue";
95
-
96
- import DshBack from "./components/controls/base/DshBack.vue";
97
- import DshUndeveloped from "./components/controls/base/DshUndeveloped.vue";
98
93
 
94
+ /* 不挂载全局 */
95
+ import DshPackage from "./components/controls/senior/DshPackage.vue";
96
+ import DshBack from "./components/controls/special/DshBack.vue";
97
+ import DshUndeveloped from "./components/controls/special/DshUndeveloped.vue";
99
98
  // other
100
99
  import ZIframe from "./components/other/ZIframe.vue";
101
100
 
@@ -104,8 +103,8 @@ const map = {
104
103
  DshDraggable,
105
104
  DshCropper,
106
105
 
107
- VTable,
108
- EvTable,
106
+ // VTable,
107
+ // EvTable,
109
108
  DshBox,
110
109
  DshTable,
111
110
  DshList,
@@ -121,7 +120,6 @@ const map = {
121
120
  DshUnit,
122
121
  DshFormItem,
123
122
 
124
- controlShow,
125
123
  DshInput,
126
124
  DshNumber,
127
125
  DshSelect,
@@ -142,6 +140,7 @@ const map = {
142
140
  BriTransfer,
143
141
 
144
142
  DshModal,
143
+ BriDrawer,
145
144
  DshDropdown,
146
145
  DshRender,
147
146
  DshTdRender,
@@ -211,7 +210,6 @@ export {
211
210
  DshUnit,
212
211
  DshFormItem,
213
212
 
214
- controlShow,
215
213
  DshInput,
216
214
  DshNumber,
217
215
  DshSelect,
@@ -232,6 +230,7 @@ export {
232
230
  BriTransfer,
233
231
 
234
232
  DshModal,
233
+ BriDrawer,
235
234
  DshDropdown,
236
235
  DshRender,
237
236
  DshTdRender,
@@ -268,9 +267,8 @@ export {
268
267
  DshCoordinates,
269
268
  DshEditor,
270
269
  DshDivider,
271
- DshLabels,
272
- DshPackage,
273
270
 
271
+ DshPackage,
274
272
  DshBack,
275
273
  DshUndeveloped,
276
274
 
@@ -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
+
@@ -8,6 +8,48 @@
8
8
  line-height: 24px;
9
9
  }
10
10
 
11
+ // // 表单模式
12
+ // .control {
13
+ // &-show {
14
+ // border: none;
15
+ // background-color: transparent;
16
+ // }
17
+
18
+ // &-edit {
19
+ // height: 32px;
20
+ // border: 1px solid @borderColor;
21
+ // border-radius: @borderRadius;
22
+ // background: @inputBg;
23
+ // line-height: 32px;
24
+ // color: @textColor;
25
+ // cursor: pointer;
26
+ // }
27
+
28
+ // &-placeholder {
29
+ // color: @placeholderColor;
30
+ // }
31
+
32
+ // &-readonly {
33
+ // border: 1px solid @border-readonly;
34
+ // border-radius: @borderRadius;
35
+ // background: @inputBg-readonly;
36
+ // line-height: 32px;
37
+ // color: @textColor-readonly;
38
+ // }
39
+
40
+ // &-disabled {
41
+ // color: @textColor-disabled;
42
+ // border: 1px solid @border-disabled;
43
+ // background: @inputBg-disabled;
44
+ // border-radius: @borderRadius;
45
+ // cursor: not-allowed;
46
+ // }
47
+
48
+ // &-notext {
49
+ // color: @placeholderColor;
50
+ // }
51
+ // }
52
+
11
53
  // 表单模式
12
54
  .control-show {
13
55
  border: none;
@@ -15,39 +57,35 @@
15
57
  }
16
58
  .control-edit {
17
59
  height: 32px;
18
- color: @textColor;
19
60
  border: 1px solid @borderColor;
20
- background: @inputBg;
21
61
  border-radius: @borderRadius;
62
+ background: @inputBg;
63
+ line-height: 32px;
22
64
  cursor: pointer;
65
+ color: @textColor;
23
66
  }
24
67
  .control-placeholder {
25
68
  color: @placeholderColor;
26
69
  }
27
70
  .control-readonly {
28
- color: @textColor-readonly;
29
71
  border: 1px solid @border-readonly;
30
- background: @inputBg-readonly;
31
72
  border-radius: @borderRadius;
73
+ background: @inputBg-readonly;
74
+ line-height: 32px;
75
+ color: @textColor-readonly;
32
76
  }
33
77
  .control-disabled {
34
- color: @textColor-disabled;
35
78
  border: 1px solid @border-disabled;
36
- background: @inputBg-disabled;
37
79
  border-radius: @borderRadius;
80
+ background: @inputBg-disabled;
38
81
  cursor: not-allowed;
82
+ color: @textColor-disabled;
39
83
  }
40
84
  .control-notext {
41
85
  color: @placeholderColor;
42
86
  }
43
87
 
44
88
  // 暂时移到这里,部分需要删除
45
- .control-show-text {
46
- display: inline-block;
47
- width: 100%;
48
- height: 100%;
49
- }
50
-
51
89
  .control-nodata-text {
52
90
  color: @placeholderColor ;
53
91
  font-weight: 400;
@@ -1,4 +1,5 @@
1
1
  .BriLabels {
2
+ display: flex;
2
3
  width: 100%;
3
4
 
4
5
  &-dropdown {
@@ -12,6 +13,11 @@
12
13
  border: 1px solid @borderColor;
13
14
  padding-left: 5px;
14
15
 
16
+ &-list {
17
+ display: flex;
18
+ align-items: center;
19
+ }
20
+
15
21
  &-active {
16
22
  border-color: #64c6d1;
17
23
  box-shadow: 0 0 0 2px rgba(61, 184, 197, 0.2);
@@ -66,6 +72,17 @@
66
72
  }
67
73
  }
68
74
  }
75
+
76
+ &-btnWrap {
77
+ border-top: 1px solid #E7E7E7;
78
+ margin: 12px 8px 0;
79
+ padding-top: 8px;
80
+ }
81
+
82
+ &-add {
83
+ width: 300px;
84
+ margin-bottom: 8px;
85
+ }
69
86
  }
70
87
 
71
88
  .ivu-select-dropdown {
@@ -89,27 +106,26 @@
89
106
  }
90
107
 
91
108
  &-view {
92
- .dsh-flex-row-start-start();
109
+ display: flex;
93
110
  flex-wrap: wrap;
111
+ align-items: center;
94
112
  height: 32px;
95
113
  overflow-y: hidden;
96
114
 
97
- &-readonly {
98
- width: 100%;
99
- background: @white;
100
- border: 1px solid #eee;
101
- border-radius: 4px;
102
- height: 32px;
103
- cursor: not-allowed;
104
-
105
- .DshLabels-view-nodata {
106
- display: none;
107
- }
108
- }
109
-
110
- &-tag {
111
- width: fit-content;
112
- margin-right: 10px;
115
+ &-item {
116
+ .unit-show();
117
+ .dsh-ellipsis();
118
+ display: inline-flex;
119
+ max-width: 100%;
120
+ height: fit-content;
121
+ padding: 0 8px;
122
+ background-color: @borderColor;
123
+ color: rgba(0, 0, 0, 0.9);
124
+ font-size: 12px;
125
+ font-weight: 400;
126
+ line-height: 24px;
127
+ border-radius: @borderRadius;
128
+ margin-right: 8px;
113
129
  }
114
130
 
115
131
  &-nodata {
@@ -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;
@@ -21,25 +21,7 @@
21
21
  }
22
22
  }
23
23
 
24
- &-value {
25
- height: 24px;
26
- line-height: 20px;
27
- padding: 2px 8px;
28
- border-radius: 4px;
29
- margin-right: 16px;
30
-
31
- &:last-of-type {
32
- margin-right: 0px;
33
- }
34
-
35
- &-wrapper {
36
- display: flex;
37
- min-height: 32px;
38
- padding: 4px 0;
39
- }
40
- }
41
-
42
- .Dshcheckbox-tip {
24
+ &-tip {
43
25
  cursor: pointer;
44
26
 
45
27
  .ivu-checkbox {
@@ -47,32 +29,34 @@
47
29
  }
48
30
  }
49
31
 
50
- .ivu-select-multiple .ivu-select-selection {
51
- height: 32px;
52
-
53
- &>div {
54
- overflow-x: auto;
55
- overflow-y: hidden;
56
- white-space: nowrap;
57
-
58
- .ivu-tag {
59
- margin: 2px 4px 4px 0;
60
- }
61
-
62
- &::-webkit-scrollbar {
63
- height: 8px;
64
- }
65
-
66
- &:-webkit-scrollbar-thumb {
67
- border-radius: 3px;
68
- background: rgba(51, 51, 51, .1);
69
- background-clip: border-box;
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
+ }
70
54
  }
71
55
  }
72
- }
73
56
 
74
- .ivu-select-multiple .ivu-select-item-selected:after {
75
- content: none;
57
+ .ivu-select-item-selected:after {
58
+ content: none;
59
+ }
76
60
  }
77
61
  }
78
62
 
@@ -153,4 +137,23 @@
153
137
  font-size: 14px;
154
138
  vertical-align: middle;
155
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: 16px;
149
+
150
+ &:last-of-type {
151
+ margin-right: 0px;
152
+ }
153
+
154
+ &-wrapper {
155
+ display: flex;
156
+ min-height: 32px;
157
+ padding: 4px 0;
158
+ }
156
159
  }
@@ -1,15 +1,15 @@
1
1
  .DshCoordinates {
2
2
  width: 100%;
3
- line-height: 32px;
3
+ line-height: 30px;
4
+
4
5
  .textRight {
5
6
  text-align: right;
6
7
  }
7
8
 
8
9
  &-wrap {
9
10
  position: relative;
10
- padding: 0 8px;
11
- .control-edit();
12
- &-zuobiao{
11
+ padding: 0 32px 0 8px;
12
+ &-zuobiao {
13
13
  color: #e5e5e5;
14
14
  line-height: 32px;
15
15
  position: absolute;
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  &-notext {
33
- .control-placeholder();
33
+ color: @placeholderColor;
34
34
  }
35
35
 
36
36
  &-message {
@@ -46,32 +46,29 @@
46
46
  height: 100%;
47
47
  }
48
48
 
49
- &-readonly {
50
- cursor: not-allowed;
51
- }
52
49
  &-show {
53
50
  padding: 0 8px;
51
+ line-height: 32px;
54
52
  }
55
- }
56
-
57
-
58
- .DshCoordinates-modal {
59
- &-header {
60
- padding: 5px 0px;
61
-
62
- &-text {
63
- font-size: @textSize;
64
- line-height: 18px;
53
+
54
+ &-modal {
55
+ &-header {
56
+ padding: 5px 0px;
57
+
58
+ &-text {
59
+ font-size: @textSize;
60
+ line-height: 18px;
61
+ }
65
62
  }
66
- }
67
-
68
- .ivu-modal-content {
69
- overflow: hidden;
70
- height: 100%;
71
-
72
- .ivu-modal-body {
73
- padding: 0px;
63
+
64
+ .ivu-modal-content {
65
+ overflow: hidden;
74
66
  height: 100%;
67
+
68
+ .ivu-modal-body {
69
+ padding: 0px;
70
+ height: 100%;
71
+ }
75
72
  }
76
73
  }
77
- }
74
+ }
@@ -1,54 +1,3 @@
1
1
  .DshDate {
2
2
  width: 100%;
3
- }
4
-
5
- // .ivu-date-picker-cells-year .ivu-date-picker-cells-cell-focused,
6
- // .ivu-date-picker-cells-month .ivu-date-picker-cells-cell-focused {
7
- // position: relative;
8
-
9
- // em {
10
- // background-color: transparent;
11
- // color: @themeColor;
12
- // }
13
-
14
- // &::after {
15
- // position: absolute;
16
- // bottom: -5px;
17
- // right: calc(50% - 3px);
18
- // content: "";
19
- // width: 6px;
20
- // height: 6px;
21
- // border-radius: 50%;
22
- // background-color: @themeColor;
23
- // }
24
- // }
25
-
26
- // .ivu-date-picker-cells {
27
- // &-focused em {
28
- // box-shadow: none;
29
- // }
30
-
31
- // span em {
32
- // border-radius: 50%;
33
- // }
34
-
35
- // &-cell-today {
36
- // em {
37
- // position: relative;
38
- // color: @themeColor;
39
-
40
- // &::after {
41
- // content: '';
42
- // display: block;
43
- // width: 6px;
44
- // height: 6px;
45
- // border-radius: 50%;
46
- // background: #3DB8C5;
47
- // position: absolute;
48
- // top: auto;
49
- // bottom: -5px;
50
- // right: calc(50% - 3px);
51
- // }
52
- // }
53
- // }
54
- // }
3
+ }