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.
- package/es/components/big-table/index2.js +0 -2
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +7 -6
- package/es/components/field-set/index.d.ts +4 -3
- package/es/components/field-set/src/FieldSet.js +9 -4
- package/es/components/field-set/src/FieldSet.vue.d.ts +4 -3
- package/es/components/form-render/src/components/renderer/combination.d.ts +7 -0
- package/es/components/form-render/src/components/renderer/combination.js +4 -1
- package/es/components/grid/index2.js +0 -2
- package/es/components/iho-table/index.d.ts +4011 -11
- package/es/components/iho-table/index2.js +1 -0
- package/es/components/iho-table/src/IhoTable.js +13 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +4011 -11
- package/es/components/iho-table/src/constants/index.d.ts +5 -0
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/constants/index2.js +66 -1
- package/es/components/iho-table/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index2.js +34 -3
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +14 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks2.js +39 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +61 -60
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks2.js +3 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +7 -5
- package/es/components/iho-table/src/plugins/index2.js +7 -5
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/index.d.ts +2 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/index.js +7 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.js +44 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.d.ts → widgets/checkRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.js → widgets/checkRendererPlugin.js} +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.d.ts → widgets/colorRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.js → widgets/colorRendererPlugin.js} +6 -8
- package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.d.ts → widgets/defaultRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.js → widgets/defaultRendererPlugin.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.d.ts +6 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.js +6 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.d.ts → widgets/labelRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.js → widgets/labelRendererPlugin.js} +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +89 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.d.ts → widgets/seqRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.js → widgets/seqRendererPlugin.js} +3 -3
- package/es/components/iho-table/src/types/index.d.ts +7 -0
- package/es/components/iho-table/src/types/pluginType.d.ts +14 -0
- package/es/components/iho-table/src/utils/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/src/utils/index2.js +12 -1
- package/package.json +3 -3
- package/es/shared/utils/loadVxe.d.ts +0 -2
- package/es/shared/utils/loadVxe.js +0 -1
- 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: [
|
|
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(
|
|
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), {
|