cnhis-design-vue 3.1.22-beta.0 → 3.1.22-beta.2

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 (56) hide show
  1. package/es/components/big-table/index2.js +0 -2
  2. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +7 -6
  3. package/es/components/field-set/index.d.ts +4 -3
  4. package/es/components/field-set/src/FieldSet.js +9 -4
  5. package/es/components/field-set/src/FieldSet.vue.d.ts +4 -3
  6. package/es/components/form-render/src/components/renderer/combination.d.ts +7 -0
  7. package/es/components/form-render/src/components/renderer/combination.js +4 -1
  8. package/es/components/grid/index2.js +0 -2
  9. package/es/components/iho-table/index.d.ts +4011 -11
  10. package/es/components/iho-table/index2.js +1 -0
  11. package/es/components/iho-table/src/IhoTable.js +13 -5
  12. package/es/components/iho-table/src/IhoTable.vue.d.ts +4011 -11
  13. package/es/components/iho-table/src/constants/index.d.ts +5 -0
  14. package/es/components/iho-table/src/constants/index.js +1 -1
  15. package/es/components/iho-table/src/constants/index2.js +66 -1
  16. package/es/components/iho-table/src/hooks/index.js +1 -1
  17. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -0
  18. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  19. package/es/components/iho-table/src/hooks/tapHooks/index2.js +34 -3
  20. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +14 -0
  21. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks2.js +39 -1
  22. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +61 -60
  23. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks2.js +3 -1
  24. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +1 -1
  25. package/es/components/iho-table/src/plugins/index.js +7 -5
  26. package/es/components/iho-table/src/plugins/index2.js +7 -5
  27. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +2 -0
  28. package/es/components/iho-table/src/plugins/rendererPlugins/index.d.ts +2 -5
  29. package/es/components/iho-table/src/plugins/rendererPlugins/index.js +7 -5
  30. package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.d.ts +1 -0
  31. package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.js +1 -0
  32. package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.d.ts +1 -0
  33. package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.js +44 -0
  34. package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.d.ts → widgets/checkRendererPlugin.d.ts} +1 -1
  35. package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.js → widgets/checkRendererPlugin.js} +2 -2
  36. package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.d.ts → widgets/colorRendererPlugin.d.ts} +1 -1
  37. package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.js → widgets/colorRendererPlugin.js} +6 -8
  38. package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.d.ts → widgets/defaultRendererPlugin.d.ts} +1 -1
  39. package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.js → widgets/defaultRendererPlugin.js} +4 -4
  40. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.d.ts +6 -0
  41. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.js +6 -0
  42. package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.d.ts → widgets/labelRendererPlugin.d.ts} +1 -1
  43. package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.js → widgets/labelRendererPlugin.js} +3 -3
  44. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +2 -0
  45. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +89 -0
  46. package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.d.ts → widgets/seqRendererPlugin.d.ts} +1 -1
  47. package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.js → widgets/seqRendererPlugin.js} +3 -3
  48. package/es/components/iho-table/src/types/index.d.ts +7 -0
  49. package/es/components/iho-table/src/types/pluginType.d.ts +14 -0
  50. package/es/components/iho-table/src/utils/index.d.ts +1 -0
  51. package/es/components/iho-table/src/utils/index.js +1 -1
  52. package/es/components/iho-table/src/utils/index2.js +12 -1
  53. package/package.json +3 -3
  54. package/es/shared/utils/loadVxe.d.ts +0 -2
  55. package/es/shared/utils/loadVxe.js +0 -1
  56. package/es/shared/utils/loadVxe2.js +0 -12
@@ -1,6 +1,7 @@
1
1
  import { COMPONENT_NAMESPACE } from '../../shared/global/variable2.js';
2
2
  import { safeComponentRegister } from '../../shared/utils/index2.js';
3
3
  import 'lodash-es';
4
+ import './src/constants/index2.js';
4
5
  import '../../shared/utils/tapable/SyncHook.js';
5
6
  import '../../shared/utils/tapable/SyncBailHook.js';
6
7
  import '../../shared/utils/tapable/SyncWaterfallHook.js';
@@ -1,8 +1,8 @@
1
- import { defineComponent, provide, ref, openBlock, createElementBlock, createVNode, unref, mergeProps, withCtx, Fragment, renderList, createBlock } from 'vue';
1
+ import { defineComponent, provide, ref, computed, openBlock, createElementBlock, createVNode, unref, mergeProps, withCtx, Fragment, renderList, createBlock } from 'vue';
2
2
  import { watchDebounced } from '@vueuse/shared';
3
3
  import { Table } from 'vxe-table';
4
4
  import { InjectionIhoTableEmits, InjectionIhoTableConfig } from './constants/index2.js';
5
- import { createTableHooks, applyTableConfigHooks, applyTableFieldHooks } from './hooks/tapHooks/index2.js';
5
+ import { createTableHooks, applyTableEventHooks, applyTableConfigHooks, applyTableFieldHooks } from './hooks/tapHooks/index2.js';
6
6
  import 'lodash-es';
7
7
  import IhoTableColumn from './components/IhoTableColumn.js';
8
8
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
@@ -15,14 +15,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  fieldList: { type: Array, required: true },
16
16
  tableData: { type: Array, default: () => [] }
17
17
  },
18
- emits: ["settingClick"],
18
+ emits: [
19
+ "formChange",
20
+ "settingClick"
21
+ ],
19
22
  setup(__props, { emit: emits }) {
20
23
  const props = __props;
21
24
  provide(InjectionIhoTableEmits, emits);
22
25
  const hooks = createTableHooks();
23
- const configRef = ref();
26
+ const configRef = ref({});
24
27
  provide(InjectionIhoTableConfig, configRef);
25
28
  const fieldListRef = ref([]);
29
+ const eventHookHandler = computed(() => applyTableEventHooks(hooks, configRef.value));
30
+ const bindProperties = computed(() => ({ ...configRef.value, ...eventHookHandler.value }));
26
31
  watchDebounced(() => props.tableConfig, (config) => {
27
32
  configRef.value = applyTableConfigHooks(hooks, config || {});
28
33
  }, { immediate: true, flush: "post", deep: true, debounce: 50 });
@@ -31,7 +36,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
36
  }, { immediate: true, flush: "post", deep: true, debounce: 50 });
32
37
  return (_ctx, _cache) => {
33
38
  return openBlock(), createElementBlock("section", _hoisted_1, [
34
- createVNode(unref(Table), mergeProps(configRef.value, { data: __props.tableData }), {
39
+ createVNode(unref(Table), mergeProps(unref(bindProperties), {
40
+ eventHookHandler: "",
41
+ data: __props.tableData
42
+ }), {
35
43
  default: withCtx(() => [
36
44
  (openBlock(true), createElementBlock(Fragment, null, renderList(fieldListRef.value, (field) => {
37
45
  return openBlock(), createBlock(unref(IhoTableColumn), {