cnhis-design-vue 3.1.22-beta.2.1 → 3.1.22-beta.3.1
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/iho-table/index.d.ts +13 -12
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/index2.js +7 -4
- package/es/components/iho-table/src/IhoTable.js +3 -3
- package/es/components/iho-table/src/IhoTable.vue.d.ts +0 -1
- package/es/components/iho-table/src/components/IhoTableColumn.js +3 -3
- package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
- package/es/components/iho-table/src/hooks/useTablePlugin2.js +2 -3
- package/es/components/iho-table/src/types/pluginType.d.ts +11 -2
- package/es/components/index.js +1 -1
- package/es/components/index2.js +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
|
+
import { IhoTableInstance } from '../../../es/components/iho-table/src/types';
|
|
2
3
|
export * from './src/hooks/useTablePlugin';
|
|
3
4
|
export * from './src/types';
|
|
5
|
+
export declare const useIhoTablePresetPlugins: (instance: IhoTableInstance) => void;
|
|
4
6
|
declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
5
7
|
tableConfig: {
|
|
6
|
-
type: import("vue").PropType<import("
|
|
8
|
+
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").IhoTableConfig>;
|
|
7
9
|
};
|
|
8
10
|
fieldList: {
|
|
9
|
-
type: import("vue").PropType<import("
|
|
11
|
+
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").LowCodeTableFieldItem[]>;
|
|
10
12
|
required: true;
|
|
11
13
|
};
|
|
12
14
|
tableData: {
|
|
@@ -16,10 +18,10 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
16
18
|
}, {
|
|
17
19
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
18
20
|
tableConfig: {
|
|
19
|
-
type: import("vue").PropType<import("
|
|
21
|
+
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").IhoTableConfig>;
|
|
20
22
|
};
|
|
21
23
|
fieldList: {
|
|
22
|
-
type: import("vue").PropType<import("
|
|
24
|
+
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").LowCodeTableFieldItem[]>;
|
|
23
25
|
required: true;
|
|
24
26
|
};
|
|
25
27
|
tableData: {
|
|
@@ -32,9 +34,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
32
34
|
}>>;
|
|
33
35
|
emits: (event: "formChange" | "settingClick", ...args: any[]) => void;
|
|
34
36
|
hooks: Readonly<{
|
|
35
|
-
configHooks: import("
|
|
36
|
-
fieldHooks: import("
|
|
37
|
-
eventHooks: import("
|
|
37
|
+
configHooks: import("../../../es/components/iho-table/src/types").AbstractConfigHooks;
|
|
38
|
+
fieldHooks: import("../../../es/components/iho-table/src/types").AbstractFieldHooks;
|
|
39
|
+
eventHooks: import("../../../es/components/iho-table/src/types").AbstractEventHooks;
|
|
38
40
|
}>;
|
|
39
41
|
configRef: import("vue").Ref<{
|
|
40
42
|
[x: string]: unknown;
|
|
@@ -4671,24 +4673,23 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4671
4673
|
} | undefined;
|
|
4672
4674
|
params?: any;
|
|
4673
4675
|
}>;
|
|
4674
|
-
VxeTable: import("vxe-table").VXEComponent<import("vxe-table").VxeTableProps<any>, import("vxe-table").VxeTableEventProps>;
|
|
4675
4676
|
IhoTableColumn: import("vue").DefineComponent<{
|
|
4676
4677
|
field: {
|
|
4677
|
-
type: import("vue").PropType<import("
|
|
4678
|
+
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").IhoTableFieldItem>;
|
|
4678
4679
|
required: true;
|
|
4679
4680
|
};
|
|
4680
4681
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4681
4682
|
field: {
|
|
4682
|
-
type: import("vue").PropType<import("
|
|
4683
|
+
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").IhoTableFieldItem>;
|
|
4683
4684
|
required: true;
|
|
4684
4685
|
};
|
|
4685
4686
|
}>>, {}>;
|
|
4686
4687
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "settingClick")[], "formChange" | "settingClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4687
4688
|
tableConfig: {
|
|
4688
|
-
type: import("vue").PropType<import("
|
|
4689
|
+
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").IhoTableConfig>;
|
|
4689
4690
|
};
|
|
4690
4691
|
fieldList: {
|
|
4691
|
-
type: import("vue").PropType<import("
|
|
4692
|
+
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").LowCodeTableFieldItem[]>;
|
|
4692
4693
|
required: true;
|
|
4693
4694
|
};
|
|
4694
4695
|
tableData: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from './index2.js';
|
|
1
|
+
export { default, useIhoTablePresetPlugins } from './index2.js';
|
|
2
2
|
export { defineTablePlugin, useTablePlugin } from './src/hooks/useTablePlugin2.js';
|
|
3
3
|
export { AbstractConfigHooks, AbstractEventHooks, AbstractFieldHooks } from './src/types/pluginType2.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable2.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index2.js';
|
|
3
|
+
import script from './src/IhoTable.js';
|
|
4
|
+
import * as index from './src/plugins/index2.js';
|
|
3
5
|
import 'lodash-es';
|
|
4
6
|
import './src/constants/index2.js';
|
|
5
7
|
import '../../shared/utils/tapable/SyncHook.js';
|
|
@@ -14,13 +16,14 @@ import '../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
|
14
16
|
import '../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
15
17
|
import { useTablePlugin } from './src/hooks/useTablePlugin2.js';
|
|
16
18
|
export { defineTablePlugin, useTablePlugin } from './src/hooks/useTablePlugin2.js';
|
|
17
|
-
import script from './src/IhoTable.js';
|
|
18
|
-
import * as index from './src/plugins/index2.js';
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
const { use } = useTablePlugin();
|
|
21
|
+
const useIhoTablePresetPlugins = (instance) => {
|
|
22
|
+
use(Object.values(index).map((plugin) => plugin()), instance);
|
|
23
|
+
};
|
|
21
24
|
const IhoTable = script;
|
|
22
25
|
IhoTable.install = function(app) {
|
|
23
26
|
safeComponentRegister(app, IhoTable, COMPONENT_NAMESPACE + "IhoTable");
|
|
24
27
|
};
|
|
25
28
|
|
|
26
|
-
export { IhoTable as default };
|
|
29
|
+
export { IhoTable as default, useIhoTablePresetPlugins };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineComponent, provide, ref, computed, openBlock, createElementBlock, createVNode,
|
|
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
|
-
import { Table } from 'vxe-table';
|
|
4
3
|
import { InjectionIhoTableEmits, InjectionIhoTableConfig } from './constants/index2.js';
|
|
5
4
|
import { createTableHooks, applyTableEventHooks, applyTableConfigHooks, applyTableFieldHooks } from './hooks/tapHooks/index2.js';
|
|
6
5
|
import 'lodash-es';
|
|
@@ -35,8 +34,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
34
|
fieldListRef.value = applyTableFieldHooks(hooks, fieldList, configRef.value || {});
|
|
36
35
|
}, { immediate: true, flush: "post", deep: true, debounce: 50 });
|
|
37
36
|
return (_ctx, _cache) => {
|
|
37
|
+
const _component_vxe_table = resolveComponent("vxe-table");
|
|
38
38
|
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
39
|
-
createVNode(
|
|
39
|
+
createVNode(_component_vxe_table, mergeProps(unref(bindProperties), {
|
|
40
40
|
eventHookHandler: "",
|
|
41
41
|
data: __props.tableData
|
|
42
42
|
}), {
|
|
@@ -4671,7 +4671,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4671
4671
|
} | undefined;
|
|
4672
4672
|
params?: any;
|
|
4673
4673
|
}>;
|
|
4674
|
-
VxeTable: import("vxe-table").VXEComponent<import("vxe-table").VxeTableProps<any>, import("vxe-table").VxeTableEventProps>;
|
|
4675
4674
|
IhoTableColumn: import("vue").DefineComponent<{
|
|
4676
4675
|
field: {
|
|
4677
4676
|
type: PropType<IhoTableFieldItem>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createVNode } from 'vue';
|
|
2
|
-
import { Column } from 'vxe-table';
|
|
1
|
+
import { defineComponent, resolveComponent, createVNode } from 'vue';
|
|
3
2
|
|
|
4
3
|
var IhoTableColumn = defineComponent({
|
|
5
4
|
name: "IhoTableColumn",
|
|
@@ -10,7 +9,8 @@ var IhoTableColumn = defineComponent({
|
|
|
10
9
|
}
|
|
11
10
|
},
|
|
12
11
|
setup(props) {
|
|
13
|
-
|
|
12
|
+
const VxeColumn = resolveComponent("vxe-column");
|
|
13
|
+
return () => createVNode(VxeColumn, props.field, null);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArrayAble } from '../../../../../es/shared/types';
|
|
2
|
-
import { TablePlugin } from '../../../../../es/components/iho-table/src/types';
|
|
2
|
+
import { IhoTableInstance, TablePlugin } from '../../../../../es/components/iho-table/src/types';
|
|
3
3
|
export declare function useTablePlugin(): {
|
|
4
|
-
use: (plugin: ArrayAble<TablePlugin
|
|
4
|
+
use: (plugin: ArrayAble<TablePlugin>, instance: IhoTableInstance) => {
|
|
5
5
|
use: any;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { arrayed } from '../../../../shared/utils/index2.js';
|
|
2
2
|
import { isFunction } from 'lodash-es';
|
|
3
|
-
import VXETable from 'vxe-table';
|
|
4
3
|
import { createTableHooks } from './tapHooks/index2.js';
|
|
5
4
|
|
|
6
5
|
function useTablePlugin() {
|
|
7
6
|
const hooks = createTableHooks();
|
|
8
|
-
function use(plugin) {
|
|
7
|
+
function use(plugin, instance) {
|
|
9
8
|
arrayed(plugin).forEach(({ vxe, apply }) => {
|
|
10
|
-
isFunction(vxe) && vxe(
|
|
9
|
+
isFunction(vxe) && vxe(instance);
|
|
11
10
|
isFunction(apply) && apply(hooks);
|
|
12
11
|
});
|
|
13
12
|
return { use };
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { ArrayAble } from '../../../../../es/shared/types';
|
|
2
2
|
import { AsyncParallelHook, SyncWaterfallHook } from '../../../../../es/shared/utils/tapable';
|
|
3
|
-
import
|
|
3
|
+
import { VxeGlobalCommands, VxeGlobalFormats, VxeGlobalHooks, VxeGlobalMenus, VxeGlobalRenderer } from 'vxe-table';
|
|
4
4
|
import { VxeTableEventProps, VxeTableEvents } from 'vxe-table/types/table';
|
|
5
|
+
import { VxeGlobalInterceptor } from 'vxe-table/types/v-x-e-table';
|
|
5
6
|
import { IhoTableConfig, IhoTableFieldItem } from '.';
|
|
7
|
+
export declare type IhoTableInstance = {
|
|
8
|
+
interceptor: VxeGlobalInterceptor;
|
|
9
|
+
renderer: VxeGlobalRenderer;
|
|
10
|
+
commands: VxeGlobalCommands;
|
|
11
|
+
formats: VxeGlobalFormats;
|
|
12
|
+
menus: VxeGlobalMenus;
|
|
13
|
+
hooks: VxeGlobalHooks;
|
|
14
|
+
};
|
|
6
15
|
export declare type TablePlugin = {
|
|
7
16
|
name: string;
|
|
8
|
-
vxe?(xeTable:
|
|
17
|
+
vxe?(xeTable: IhoTableInstance): void;
|
|
9
18
|
apply?(hooks: TableHooks): void;
|
|
10
19
|
};
|
|
11
20
|
export declare type TableHooks = Readonly<{
|
package/es/components/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export { default as CFabricChart } from './fabric-chart/index2.js';
|
|
|
16
16
|
export { default as CShortcutProvider } from './shortcut-provider/index2.js';
|
|
17
17
|
export { default as CShortcutSetter } from './shortcut-setter/index2.js';
|
|
18
18
|
export { default as CFormConfig } from './form-config/index2.js';
|
|
19
|
-
export { default as CIhoTable } from './iho-table/index2.js';
|
|
19
|
+
export { default as CIhoTable, useIhoTablePresetPlugins } from './iho-table/index2.js';
|
|
20
20
|
export { useFieldListAdaptor } from './form-render/src/hooks/useFieldListAdaptor2.js';
|
|
21
21
|
export { useFormRequest } from './form-render/src/hooks/useFormRequest2.js';
|
|
22
22
|
export { useCommonLog } from './form-render/src/hooks/useCommonLog2.js';
|
package/es/components/index2.js
CHANGED
|
@@ -39,7 +39,7 @@ export { default as CShortcutSetter } from './shortcut-setter/index2.js';
|
|
|
39
39
|
import FormConfig from './form-config/index2.js';
|
|
40
40
|
export { default as CFormConfig } from './form-config/index2.js';
|
|
41
41
|
import IhoTable from './iho-table/index2.js';
|
|
42
|
-
export { default as CIhoTable } from './iho-table/index2.js';
|
|
42
|
+
export { default as CIhoTable, useIhoTablePresetPlugins } from './iho-table/index2.js';
|
|
43
43
|
|
|
44
44
|
const components = {
|
|
45
45
|
CGrid: Grid,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.22-beta.
|
|
3
|
+
"version": "3.1.22-beta.3.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"iOS 7",
|
|
67
67
|
"last 3 iOS versions"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "f02d3812d3b50bc13419b882c46a76446a6cdea1"
|
|
70
70
|
}
|