bri-components 1.4.73 → 1.4.75

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.4.73",
3
+ "version": "1.4.75",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -17,7 +17,9 @@ const componentNameMap = {
17
17
  url: "DshInput",
18
18
  password: "DshInput",
19
19
  serialNumber: "DshInput",
20
+
20
21
  number: "DshNumber",
22
+ numberange: "DshNumberange",
21
23
  date: "DshDate",
22
24
  daterange: "DshDaterange",
23
25
 
@@ -103,7 +103,10 @@ export default {
103
103
  return this.propsObj._name;
104
104
  },
105
105
  commonDealPropsObj () {
106
- const selectControlTypes = ["coordinates", "date", "switch", "select", "checkbox", "file", "region", "regions", "cascader", "cascaders", "users", "departments", "reference"];
106
+ const selectControlTypes = [
107
+ "date", "daterange", "switch", "select", "checkbox", "region", "regions", "cascader", "cascaders",
108
+ "file", "coordinates", "users", "departments", "reference"
109
+ ];
107
110
  return {
108
111
  _placeholder: this.canEdit && this.propsObj._enterType !== "calculate" && this.propsObj._disabled !== true && this.propsObj._readonly !== true
109
112
  ? (this.propsObj._placeholder || `${selectControlTypes.includes(this.controlType) ? "选择" : "输入"}${this.propsObj._name}`)
@@ -122,7 +125,7 @@ export default {
122
125
  multipleMode () {
123
126
  return this.isInDftSearch || this.isInSearch
124
127
  ? true
125
- : ["daterange", "checkbox", "regions", "cascaders", "labels", "refCheckbox"].includes(this.controlType)
128
+ : ["numberange", "daterange", "checkbox", "regions", "cascaders", "labels", "refCheckbox"].includes(this.controlType)
126
129
  ? true
127
130
  : !!this.selfPropsObj && !!this.selfPropsObj._multiple;
128
131
  },
@@ -15,7 +15,7 @@
15
15
  </span>
16
16
 
17
17
  <dsh-modal
18
- class="cascaderTable-unit-fullscreen"
18
+ class="cascaderTable-fullscreen"
19
19
  v-model="showUnitModal"
20
20
  :mode="unitModalPropsObj.mode"
21
21
  :propsObj="unitModalPropsObj"
@@ -23,7 +23,7 @@
23
23
  >
24
24
  <div
25
25
  v-if="showUnitModal"
26
- class="cascaderTable-unit-fullscreen-inner"
26
+ class="cascaderTable-fullscreen-inner"
27
27
  >
28
28
  <!-- 老版级联表格 -->
29
29
  <dsh-cascader-table
@@ -35,6 +35,7 @@
35
35
  :columns="subForm"
36
36
  :propsObj="{
37
37
  ...selfPropsObj,
38
+ _contentHeight: undefined,
38
39
  _useEnlarge: false
39
40
  }"
40
41
  :allFormList="allFormList"
@@ -57,6 +58,7 @@
57
58
  :columns="subForm"
58
59
  :propsObj="{
59
60
  ...selfPropsObj,
61
+ _contentHeight: undefined,
60
62
  _useEnlarge: false
61
63
  }"
62
64
  :allFormList="allFormList"
@@ -179,24 +181,24 @@
179
181
  &-text {
180
182
 
181
183
  }
184
+ }
185
+
186
+ &-fullscreen {
187
+ &-inner {
188
+ width: 100%;
189
+ height: 100%;
190
+ padding: 10px 20px 20px;
182
191
 
183
- &-fullscreen {
184
- &-inner {
192
+ .DshCasTable,
193
+ .DshTreeTable {
185
194
  width: 100%;
186
195
  height: 100%;
187
- padding: 10px 20px;
188
-
189
- .DshCasTable,
190
- .DshTreeTable {
191
- width: 100%;
192
- height: 100%;
193
- display: flex;
194
- flex-direction: column;
195
-
196
- &-main {
197
- flex: 1;
198
- min-height: 0px;
199
- }
196
+ display: flex;
197
+ flex-direction: column;
198
+
199
+ &-main {
200
+ flex: 1;
201
+ min-height: 0px;
200
202
  }
201
203
  }
202
204
  }
@@ -15,7 +15,7 @@
15
15
  </span>
16
16
 
17
17
  <dsh-modal
18
- class="flatTable-unit-fullscreen"
18
+ class="flatTable-fullscreen"
19
19
  v-model="showUnitModal"
20
20
  :mode="unitModalPropsObj.mode"
21
21
  :propsObj="unitModalPropsObj"
@@ -23,19 +23,20 @@
23
23
  >
24
24
  <div
25
25
  v-if="showUnitModal"
26
- class="flatTable-unit-fullscreen-inner"
26
+ class="flatTable-fullscreen-inner"
27
27
  >
28
28
  <dsh-flat-table
29
29
  :canEdit="false"
30
30
  :tableDataObj="curVal"
31
31
  :data="curVal.list"
32
32
  :rowDefault="curVal.rowDefault"
33
- :compareData="curVal.oldList"
34
33
  :columns="subForm"
35
34
  :propsObj="{
36
35
  ...propsObj,
36
+ _contentHeight: undefined,
37
37
  _useEnlarge: false
38
38
  }"
39
+ :compareData="curVal.oldList"
39
40
  :allFormList="allFormList"
40
41
  :parentObj="value"
41
42
  ></dsh-flat-table>
@@ -68,9 +69,9 @@
68
69
  :tableDataObj="curVal"
69
70
  :data="curVal.list"
70
71
  :rowDefault="curVal.rowDefault"
71
- :compareData="curVal.oldList"
72
72
  :columns="subForm"
73
73
  :propsObj="propsObj"
74
+ :compareData="curVal.oldList"
74
75
  :allFormList="allFormList"
75
76
  :parentObj="value"
76
77
  @change="change"
@@ -206,23 +207,23 @@
206
207
  &-text {
207
208
 
208
209
  }
210
+ }
211
+
212
+ &-fullscreen {
213
+ &-inner {
214
+ width: 100%;
215
+ height: 100%;
216
+ padding: 10px 20px 20px;
209
217
 
210
- &-fullscreen {
211
- &-inner {
218
+ .DshFlatTable {
212
219
  width: 100%;
213
220
  height: 100%;
214
- padding: 10px 20px;
215
-
216
- .DshFlatTable {
217
- width: 100%;
218
- height: 100%;
219
- display: flex;
220
- flex-direction: column;
221
+ display: flex;
222
+ flex-direction: column;
221
223
 
222
- &-main {
223
- flex: 1;
224
- min-height: 0px;
225
- }
224
+ &-main {
225
+ flex: 1;
226
+ min-height: 0px;
226
227
  }
227
228
  }
228
229
  }
@@ -26,10 +26,6 @@ export default {
26
26
  return [];
27
27
  }
28
28
  },
29
- total: {
30
- type: Number,
31
- default: 0
32
- },
33
29
  rowDefault: {
34
30
  type: Object,
35
31
  default () {
@@ -48,6 +44,11 @@ export default {
48
44
  return {};
49
45
  }
50
46
  },
47
+
48
+ total: {
49
+ type: Number,
50
+ default: 0
51
+ },
51
52
  compareData: {
52
53
  type: Array,
53
54
  default () {
@@ -324,7 +325,9 @@ export default {
324
325
  },
325
326
 
326
327
  contentHeight () {
327
- return this.selfPropsObj._contentHeight || 500;
328
+ return this.selfPropsObj._contentHeight === undefined
329
+ ? undefined
330
+ : this.selfPropsObj._contentHeight || 500;
328
331
  },
329
332
  showRequired () {
330
333
  return this.selfPropsObj._showRequired;