cnhis-design-vue 3.1.33-beta.18 → 3.1.33-beta.19
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 -4
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
- package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -0
- package/es/components/iho-table/src/types/index.d.ts +3 -0
- package/package.json +2 -2
|
@@ -2309,10 +2309,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2309
2309
|
"mouse-config": {
|
|
2310
2310
|
selected: ((_a = _ctx.columnConfig.keyboardConfig) == null ? void 0 : _a.isEdit) ? true : false
|
|
2311
2311
|
},
|
|
2312
|
-
"tree-config":
|
|
2313
|
-
...unref(treeConfig) || {},
|
|
2314
|
-
...unref(getAttr)("tree-config")
|
|
2315
|
-
},
|
|
2312
|
+
"tree-config": unref(treeConfig),
|
|
2316
2313
|
"row-class-name": getRowClassName,
|
|
2317
2314
|
"row-config": {
|
|
2318
2315
|
...state.rowConfig,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnyObject } from '../../../../../../es/shared/types';
|
|
2
|
+
export declare const useCommon: (props: AnyObject, attrs: AnyObject, isTriggerClick?: boolean) => {
|
|
2
3
|
formRef: import("vue").Ref<HTMLElement | null>;
|
|
3
4
|
isShow: import("vue").Ref<boolean>;
|
|
4
5
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { ref, onMounted } from 'vue';
|
|
2
2
|
|
|
3
|
-
const useCommon = (props, attrs) => {
|
|
3
|
+
const useCommon = (props, attrs, isTriggerClick = false) => {
|
|
4
4
|
const formRef = ref(null);
|
|
5
5
|
const isShow = ref(false);
|
|
6
6
|
onMounted(() => {
|
|
7
|
-
var _a;
|
|
7
|
+
var _a, _b, _c;
|
|
8
8
|
if (attrs.editTrigger !== "manual") {
|
|
9
|
-
(
|
|
9
|
+
if (isTriggerClick) {
|
|
10
|
+
(_b = (_a = formRef.value) == null ? void 0 : _a.handleTriggerClick) == null ? void 0 : _b.call(_a);
|
|
11
|
+
} else {
|
|
12
|
+
(_c = formRef.value) == null ? void 0 : _c.focus();
|
|
13
|
+
}
|
|
10
14
|
isShow.value = true;
|
|
11
15
|
}
|
|
12
16
|
});
|
|
@@ -17,6 +17,7 @@ function lowCodeFieldAdaptorPlugin() {
|
|
|
17
17
|
showOverflow: Reflect.has(_field, "showOverflow") ? _field.showOverflow : "tooltip",
|
|
18
18
|
visible: _field.isShow !== IHO_TABLE_NUMBER_STATUS.NEGATIVE,
|
|
19
19
|
width: _field.colWidth,
|
|
20
|
+
slots: { ..._field.slots, default: _field.slotFn, header: _field.headerSlotFn },
|
|
20
21
|
...pick(_field, ["title", "treeNode", "resizable"])
|
|
21
22
|
};
|
|
22
23
|
settingObjAdaptor(result, _field);
|
|
@@ -59,6 +59,9 @@ export declare type LowCodeTableFieldItem = {
|
|
|
59
59
|
showOverflow: VxeTableDefines.ColumnInfo['showOverflow'];
|
|
60
60
|
options: AnyObject[];
|
|
61
61
|
annotation: boolean;
|
|
62
|
+
slots: IhoTableFieldItem['slots'];
|
|
63
|
+
slotFn: NonNullable<IhoTableFieldItem['slots']>['default'];
|
|
64
|
+
headerSlotFn: NonNullable<IhoTableFieldItem['slots']>['header'];
|
|
62
65
|
filterDefaultValue: Partial<{
|
|
63
66
|
checked: string[];
|
|
64
67
|
sortStatus: 0 | 1 | 2;
|
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.19",
|
|
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": "f36b2e6f635d0f56e11ef1c107c493623cedc322"
|
|
65
65
|
}
|