cnhis-design-vue 3.1.22-beta.8 → 3.1.22-beta.9
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/README.md +123 -123
- package/es/components/big-table/index.d.ts +0 -8
- package/es/components/big-table/src/BigTable.vue.d.ts +0 -8
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +4 -0
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-render/src/components/renderer/cascader.js +10 -7
- package/es/components/form-render/src/components/renderer/date.js +11 -4
- package/es/components/form-render/src/components/renderer/input.js +2 -2
- package/es/components/form-render/src/components/renderer/inputNumber.js +2 -2
- package/es/components/form-render/src/components/renderer/search.js +3 -3
- package/es/components/form-render/src/components/renderer/select.js +3 -3
- package/es/components/form-render/src/components/renderer/textarea.js +2 -2
- package/es/components/form-render/src/hooks/useCommonInjection2.js +6 -2
- package/es/components/form-render/src/utils/schema.d.ts +4 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/form-render/src/utils/schema2.js +9 -2
- package/es/components/iho-table/index.d.ts +229 -446
- package/es/components/iho-table/src/IhoTable.js +8 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +229 -446
- package/es/components/iho-table/src/components/IhoTableColumn.js +2 -1
- package/es/components/iho-table/src/constants/index.d.ts +4 -2
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/constants/index2.js +15 -2
- package/es/components/iho-table/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index2.js +42 -27
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -1
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks2.js +4 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +2 -1
- package/es/components/iho-table/src/plugins/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -0
- package/es/components/iho-table/src/plugins/index2.js +1 -0
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +10 -6
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index2.js +72 -0
- package/es/components/iho-table/src/types/index.d.ts +23 -9
- package/es/components/iho-table/src/types/pluginType.d.ts +4 -1
- package/es/components/iho-table/src/utils/index.d.ts +2 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/src/utils/index2.js +5 -1
- package/es/components/index.css +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent, provide, ref, computed, resolveComponent, openBlock, createElementBlock, createVNode, mergeProps, unref, withCtx, Fragment, renderList, createBlock } from 'vue';
|
|
2
2
|
import { watchDebounced } from '@vueuse/shared';
|
|
3
3
|
import { isArray } from 'lodash-es';
|
|
4
|
-
import { InjectionIhoTableEmits, InjectionIhoTableConfig } from './constants/index2.js';
|
|
5
|
-
import { createTableHooks,
|
|
4
|
+
import { VxeEventListenerNameList, InjectionIhoTableEmits, InjectionIhoTableConfig } from './constants/index2.js';
|
|
5
|
+
import { createTableHooks, createTableEventHandlers, applyTableConfigHooks, applyTableFieldHooks } from './hooks/tapHooks/index2.js';
|
|
6
|
+
import { getEventName } from './utils/index2.js';
|
|
6
7
|
import ColumnComponent from './components/IhoTableColumn.js';
|
|
7
8
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
8
9
|
|
|
@@ -16,9 +17,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
17
|
},
|
|
17
18
|
emits: [
|
|
18
19
|
"formChange",
|
|
19
|
-
"settingClick"
|
|
20
|
+
"settingClick",
|
|
21
|
+
...VxeEventListenerNameList.map(getEventName)
|
|
20
22
|
],
|
|
21
|
-
setup(__props, { emit: emits }) {
|
|
23
|
+
setup(__props, { expose, emit: emits }) {
|
|
22
24
|
const props = __props;
|
|
23
25
|
provide(InjectionIhoTableEmits, emits);
|
|
24
26
|
const vxeTableRef = ref();
|
|
@@ -36,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
38
|
return;
|
|
37
39
|
fieldListRef.value = applyTableFieldHooks(hooks, fieldList, config);
|
|
38
40
|
}
|
|
39
|
-
const eventHookHandler =
|
|
41
|
+
const eventHookHandler = createTableEventHandlers(hooks, configRef, vxeTableRef, emits);
|
|
40
42
|
const bindProperties = computed(() => ({ ...configRef.value, ...eventHookHandler }));
|
|
41
43
|
watchDebounced(() => props.tableConfig, (config) => {
|
|
42
44
|
updateConfigRef(config);
|
|
@@ -45,6 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
47
|
watchDebounced(() => props.fieldList, (fieldList) => {
|
|
46
48
|
updateFieldListRef(fieldList, configRef.value);
|
|
47
49
|
}, { immediate: true, flush: "post", deep: true, debounce: 50 });
|
|
50
|
+
expose({ tableRef: vxeTableRef });
|
|
48
51
|
return (_ctx, _cache) => {
|
|
49
52
|
const _component_vxe_table = resolveComponent("vxe-table");
|
|
50
53
|
return openBlock(), createElementBlock("section", _hoisted_1, [
|