cnhis-design-vue 3.1.33-beta.10 → 3.1.33-beta.13
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/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +6 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
- package/package.json +2 -2
|
@@ -529,7 +529,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
529
529
|
editTrigger: state.editConfig.trigger
|
|
530
530
|
};
|
|
531
531
|
if (["date", "time"].includes(formType)) {
|
|
532
|
-
propsData.formattedValue = row[col.columnName];
|
|
532
|
+
propsData.formattedValue = row[col.columnName] || void 0;
|
|
533
533
|
} else if (formatMap) {
|
|
534
534
|
propsData.value = row[formatMap.value];
|
|
535
535
|
} else {
|
|
@@ -35,7 +35,7 @@ var EditInput = defineComponent({
|
|
|
35
35
|
const {
|
|
36
36
|
formRef
|
|
37
37
|
} = useCommon(props, attrs);
|
|
38
|
-
const __value = ref(attrs.value);
|
|
38
|
+
const __value = ref(props.type === "number" ? attrs.value || void 0 : attrs.value);
|
|
39
39
|
const commData = {
|
|
40
40
|
row: props.row,
|
|
41
41
|
column: props.col,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cloneDeep, isString, isFunction, isArray } from 'lodash-es';
|
|
1
|
+
import { cloneDeep, isString, isFunction, pick, isArray } from 'lodash-es';
|
|
2
2
|
import { isObject } from '@vue/shared';
|
|
3
3
|
|
|
4
4
|
const REMOVE_PROPERTY = Symbol("remove property");
|
|
@@ -139,6 +139,11 @@ function useColumnConfigAdaptor() {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
|
+
result.componentProps = Object.assign(
|
|
143
|
+
{},
|
|
144
|
+
result.componentProps,
|
|
145
|
+
pick(result, ["options", "multiple", "isDateDisabled"])
|
|
146
|
+
);
|
|
142
147
|
return result;
|
|
143
148
|
function valueTransfer(value, rule) {
|
|
144
149
|
var _a, _b;
|
|
@@ -12,13 +12,14 @@ function createRowGroupList(rowGroupSetting, fieldList, getKey = (field) => fiel
|
|
|
12
12
|
if (!isArray(groupSetting.list) || !groupSetting.list.length)
|
|
13
13
|
return;
|
|
14
14
|
const children = [];
|
|
15
|
+
let currentGroupItem = null;
|
|
15
16
|
groupSetting.list.forEach((fieldName, idx) => {
|
|
16
|
-
const groupIdx = groupIndexSearcher(fieldName, result);
|
|
17
|
+
const groupIdx = groupIndexSearcher(fieldName, result, currentGroupItem);
|
|
17
18
|
if (!~groupIdx)
|
|
18
19
|
return;
|
|
19
20
|
children.push(result[groupIdx]);
|
|
20
21
|
if (idx === 0) {
|
|
21
|
-
result.splice(groupIdx, 1, { fieldName: groupSetting.title, children });
|
|
22
|
+
result.splice(groupIdx, 1, currentGroupItem = { fieldName: groupSetting.title, children });
|
|
22
23
|
} else {
|
|
23
24
|
result.splice(groupIdx, 1);
|
|
24
25
|
}
|
|
@@ -26,8 +27,10 @@ function createRowGroupList(rowGroupSetting, fieldList, getKey = (field) => fiel
|
|
|
26
27
|
});
|
|
27
28
|
});
|
|
28
29
|
return result;
|
|
29
|
-
function groupIndexSearcher(fieldName, groupList) {
|
|
30
|
-
return groupList.findIndex(
|
|
30
|
+
function groupIndexSearcher(fieldName, groupList, currentGroupItem) {
|
|
31
|
+
return groupList.findIndex(
|
|
32
|
+
(group) => group !== currentGroupItem && (isObject(group) ? group.fieldName : group) === fieldName
|
|
33
|
+
);
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
function groupTraverser(groupList, replacer) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.33-beta.
|
|
3
|
+
"version": "3.1.33-beta.13",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "2ffdc7d8612c26b671ff9e546ddda15f0da24f29"
|
|
65
65
|
}
|