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.
Files changed (50) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +0 -8
  3. package/es/components/big-table/src/BigTable.vue.d.ts +0 -8
  4. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +4 -0
  5. package/es/components/big-table/style/index.css +1 -1
  6. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  7. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  8. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  9. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  10. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  11. package/es/components/form-render/src/components/renderer/cascader.js +10 -7
  12. package/es/components/form-render/src/components/renderer/date.js +11 -4
  13. package/es/components/form-render/src/components/renderer/input.js +2 -2
  14. package/es/components/form-render/src/components/renderer/inputNumber.js +2 -2
  15. package/es/components/form-render/src/components/renderer/search.js +3 -3
  16. package/es/components/form-render/src/components/renderer/select.js +3 -3
  17. package/es/components/form-render/src/components/renderer/textarea.js +2 -2
  18. package/es/components/form-render/src/hooks/useCommonInjection2.js +6 -2
  19. package/es/components/form-render/src/utils/schema.d.ts +4 -1
  20. package/es/components/form-render/src/utils/schema.js +1 -1
  21. package/es/components/form-render/src/utils/schema2.js +9 -2
  22. package/es/components/iho-table/index.d.ts +229 -446
  23. package/es/components/iho-table/src/IhoTable.js +8 -5
  24. package/es/components/iho-table/src/IhoTable.vue.d.ts +229 -446
  25. package/es/components/iho-table/src/components/IhoTableColumn.js +2 -1
  26. package/es/components/iho-table/src/constants/index.d.ts +4 -2
  27. package/es/components/iho-table/src/constants/index.js +1 -1
  28. package/es/components/iho-table/src/constants/index2.js +15 -2
  29. package/es/components/iho-table/src/hooks/index.js +1 -1
  30. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -2
  31. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  32. package/es/components/iho-table/src/hooks/tapHooks/index2.js +42 -27
  33. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -1
  34. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks2.js +4 -1
  35. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +2 -1
  36. package/es/components/iho-table/src/plugins/index.d.ts +1 -0
  37. package/es/components/iho-table/src/plugins/index.js +1 -0
  38. package/es/components/iho-table/src/plugins/index2.js +1 -0
  39. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +10 -6
  40. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -0
  41. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -0
  42. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index2.js +72 -0
  43. package/es/components/iho-table/src/types/index.d.ts +23 -9
  44. package/es/components/iho-table/src/types/pluginType.d.ts +4 -1
  45. package/es/components/iho-table/src/utils/index.d.ts +2 -0
  46. package/es/components/iho-table/src/utils/index.js +1 -1
  47. package/es/components/iho-table/src/utils/index2.js +5 -1
  48. package/es/components/index.css +1 -1
  49. package/es/shared/utils/tapable/index.d.ts +139 -0
  50. 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, applyTableEventHooks, applyTableConfigHooks, applyTableFieldHooks } from './hooks/tapHooks/index2.js';
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 = applyTableEventHooks(hooks, configRef, vxeTableRef);
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, [