@vue-ui-kit/ant 1.9.3 → 2.0.0

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 (38) hide show
  1. package/dist/cjs/index.js +4 -1
  2. package/dist/declarations/antProxy.d.ts +58 -20
  3. package/dist/es/index.js +8857 -2969
  4. package/dist/index.d.ts +5 -6
  5. package/dist/packages/components/PCanvasGrid.vue.d.ts +2 -0
  6. package/dist/packages/components/PCanvasTable.vue.d.ts +134 -0
  7. package/dist/packages/components/PForm.vue.d.ts +8 -14
  8. package/dist/packages/components/PFormCol.vue.d.ts +8 -13
  9. package/dist/packages/components/PFormGroup.vue.d.ts +16 -16
  10. package/dist/packages/components/PGrid.vue.d.ts +7 -27
  11. package/dist/packages/components/PGroupBlock.vue.d.ts +5 -7
  12. package/dist/packages/components/PromisePicker.vue.d.ts +8 -43
  13. package/dist/packages/components/RenderEditCell.d.ts +10 -0
  14. package/dist/packages/renders/TableInput.vue.d.ts +7 -26
  15. package/dist/packages/store/renderStore.d.ts +10 -58
  16. package/dist/packages/utils/AFormatters.d.ts +3 -13
  17. package/dist/packages/utils/treeHelper.d.ts +7 -7
  18. package/dist/style.scss +59 -35
  19. package/package.json +2 -1
  20. package/src/declarations/antProxy.ts +78 -22
  21. package/src/index.ts +15 -2
  22. package/src/packages/components/PCanvasGrid.vue +6 -0
  23. package/src/packages/components/PCanvasTable.vue +286 -0
  24. package/src/packages/components/PForm.vue +5 -5
  25. package/src/packages/components/PFormGroup.vue +1 -1
  26. package/src/packages/components/PGrid.vue +10 -5
  27. package/src/packages/components/PGroupBlock.vue +1 -1
  28. package/src/packages/components/PromisePicker.vue +19 -29
  29. package/src/packages/components/RenderAntCell.tsx +2 -2
  30. package/src/packages/components/RenderAntItem.tsx +2 -2
  31. package/src/packages/components/RenderDefaultSlots.tsx +1 -1
  32. package/src/packages/components/RenderEditCell.tsx +36 -0
  33. package/src/packages/components/RenderItemSlots.tsx +1 -1
  34. package/src/packages/components/RenderTitleSlots.tsx +1 -1
  35. package/src/packages/renders/TableInput.vue +1 -1
  36. package/src/packages/store/renderStore.tsx +44 -18
  37. package/src/packages/styles/index.scss +59 -31
  38. package/src/packages/utils/AFormatters.ts +3 -3
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { App } from 'vue';
2
2
  import { default as PForm } from './packages/components/PForm.vue';
3
3
  import { default as PGrid } from './packages/components/PGrid.vue';
4
+ import { default as PCanvasTable } from './packages/components/PCanvasTable.vue';
5
+ import { default as PCanvasGrid } from './packages/components/PCanvasGrid.vue';
4
6
  import { default as PFormGroup } from './packages/components/PFormGroup.vue';
5
7
  import { default as PGroupBlock } from './packages/components/PGroupBlock.vue';
6
8
  import { default as PromisePicker } from './packages/components/PromisePicker.vue';
@@ -10,15 +12,12 @@ import { setUIKitConfig, getUIKitConfig, resetUIKitConfig, UIKitConfig } from '.
10
12
  declare function setup(config?: Partial<UIKitConfig>): void;
11
13
  declare const _default: {
12
14
  install(app: App): void;
13
- addFormatter: (formatter: Record<string, (a: import('./Declarations/antProxy').CellFuncArg, ...args: any[]) => any>) => void;
14
- addRender: (name: string, { renderItemContent, renderDefault, }: {
15
- renderItemContent?: (options: import('./declarations/antProxy').RenderOptions, params: import('./declarations/antProxy').RenderFormParams, defaultHandler: Recordable) => any;
16
- renderDefault?: (options: import('./declarations/antProxy').RenderOptions, params: import('./declarations/antProxy').RenderTableParams, defaultHandler: Recordable) => any;
17
- }) => void;
15
+ addFormatter: (formatter: Record<string, (a: import('./declarations/antProxy').CellFuncArg, ...args: any[]) => any>) => void;
16
+ addRender: (name: string, { renderItemContent, renderDefault, renderEdit }: import('./packages/store/renderStore').RenderWorkshop) => void;
18
17
  setup: typeof setup;
19
18
  };
20
19
  export default _default;
21
20
  export * from './declarations/antProxy';
22
21
  export * from './packages/utils/core';
23
22
  export { setup, setUIKitConfig, getUIKitConfig, resetUIKitConfig, type UIKitConfig };
24
- export { PForm, PGrid, PFormGroup, PGroupBlock, PromisePicker, addFormatter, addRender };
23
+ export { PForm, PGrid, PCanvasTable, PCanvasGrid, PFormGroup, PGroupBlock, PromisePicker, addFormatter, addRender, };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,134 @@
1
+ import { default as Cell } from 'e-virt-table/dist/lib/Cell';
2
+ import { default as EVirtTable, Column as EVirtColumn, FormatterMethod } from 'e-virt-table';
3
+ import { CanvasTableProps } from '../../declarations/antProxy';
4
+ declare const _default: <T extends Recordable = Recordable, B extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onChange?: ((value: any[]) => any) | undefined;
7
+ readonly onReady?: ((value: EVirtTable) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onReady"> & CanvasTableProps<T, B> & Partial<{}>> & import('vue').PublicProps;
9
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
+ attrs: any;
11
+ slots: Partial<Record<string, (_: {
12
+ cell: Cell | import('e-virt-table/dist/lib/CellHeader').default;
13
+ formatter?: FormatterMethod;
14
+ formatterFooter?: FormatterMethod;
15
+ hoverIconName?: string;
16
+ operation: boolean;
17
+ align: import('e-virt-table').Align;
18
+ verticalAlign: import('e-virt-table').VerticalAlign;
19
+ fixed?: import('e-virt-table').Fixed;
20
+ type: import('e-virt-table').Type | "";
21
+ editorType: string;
22
+ editorProps: any;
23
+ cellType: import('e-virt-table').CellType;
24
+ level: number;
25
+ colspan: number;
26
+ rowspan: number;
27
+ mergeRow: boolean;
28
+ mergeCol: boolean;
29
+ relationRowKeys: string[];
30
+ relationColKeys: string[];
31
+ key: string;
32
+ column: EVirtColumn;
33
+ rowIndex: number;
34
+ colIndex: number;
35
+ rowKey: string;
36
+ row: any;
37
+ value: any;
38
+ render: import('e-virt-table').Render;
39
+ renderFooter: import('e-virt-table').Render;
40
+ style: any;
41
+ rules: import('e-virt-table/dist/lib/Validator').Rules | import('e-virt-table/dist/lib/Validator').Rule;
42
+ message: string;
43
+ text: string;
44
+ displayText: string;
45
+ visibleWidth: number;
46
+ visibleHeight: number;
47
+ isHasChanged: boolean;
48
+ drawX: number;
49
+ drawY: number;
50
+ drawCellBgColor: string;
51
+ drawCellSkyBgColor: string;
52
+ drawTextColor: string;
53
+ drawTextX: number;
54
+ drawTextY: number;
55
+ drawImageX: number;
56
+ drawImageY: number;
57
+ drawImageWidth: number;
58
+ drawImageHeight: number;
59
+ drawImageName: string;
60
+ drawImageSource?: HTMLImageElement;
61
+ ellipsis: boolean;
62
+ rowExpand: boolean;
63
+ rowHasChildren: boolean;
64
+ overflowTooltipShow: boolean;
65
+ selectorCellValueType: import('e-virt-table').SelectorCellValueType;
66
+ overflowTooltipMaxWidth: number;
67
+ overflowTooltipPlacement: import('e-virt-table').OverflowTooltipPlacement;
68
+ ctx: import('e-virt-table/dist/lib/Context').default;
69
+ x: number;
70
+ y: number;
71
+ width: number;
72
+ height: number;
73
+ } | {
74
+ cell: Cell | import('e-virt-table/dist/lib/CellHeader').default;
75
+ align: import('e-virt-table').Align;
76
+ verticalAlign: import('e-virt-table').VerticalAlign;
77
+ fixed?: import('e-virt-table').Fixed;
78
+ minWidth?: number;
79
+ maxWidth?: number;
80
+ widthFillDisable: boolean;
81
+ type: import('e-virt-table').Type | "";
82
+ operation: boolean;
83
+ editorType: string;
84
+ level: number;
85
+ text: string;
86
+ displayText: string;
87
+ colspan: number;
88
+ rowspan: number;
89
+ row: any;
90
+ key: string;
91
+ required: boolean;
92
+ readonly: boolean;
93
+ ellipsis: boolean;
94
+ overflowTooltipShow: boolean;
95
+ children: EVirtColumn[];
96
+ column: EVirtColumn;
97
+ colIndex: number;
98
+ rowKey: string;
99
+ rules?: import('e-virt-table/dist/lib/Validator').Rules | import('e-virt-table/dist/lib/Validator').Rule;
100
+ hasChildren: boolean;
101
+ render: import('e-virt-table').Render;
102
+ style: Partial<CSSStyleDeclaration>;
103
+ drawX: number;
104
+ drawY: number;
105
+ visibleWidth: number;
106
+ visibleHeight: number;
107
+ drawCellBgColor: string;
108
+ drawTextColor: string;
109
+ drawImageX: number;
110
+ drawImageY: number;
111
+ drawImageWidth: number;
112
+ drawImageHeight: number;
113
+ drawImageName: string;
114
+ drawImageSource: HTMLImageElement | undefined;
115
+ ctx: import('e-virt-table/dist/lib/Context').default;
116
+ x: number;
117
+ y: number;
118
+ width: number;
119
+ height: number;
120
+ cellType: import('e-virt-table').CellType;
121
+ }) => any>> & {
122
+ empty?(_: {}): any;
123
+ };
124
+ emit: {
125
+ (e: "change", value: any[]): void;
126
+ (e: "ready", value: EVirtTable): void;
127
+ };
128
+ }>) => import('vue').VNode & {
129
+ __ctx?: Awaited<typeof __VLS_setup>;
130
+ };
131
+ export default _default;
132
+ type __VLS_PrettifyLocal<T> = {
133
+ [K in keyof T]: T[K];
134
+ } & {};
@@ -1,28 +1,22 @@
1
1
  import { PFormProps } from '../../declarations/antProxy';
2
- declare const _default: <F = Recordable<any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
2
+ declare const _default: <F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onReset?: ((...args: any[]) => any) | undefined;
5
5
  readonly onApply?: ((...args: any[]) => any) | undefined;
6
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
7
- onReset?: ((...args: any[]) => any) | undefined;
8
- onApply?: ((...args: any[]) => any) | undefined;
9
- }>, never>, "onReset" | "onApply"> & (PFormProps<F> & {
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onApply"> & (PFormProps<F> & {
10
7
  data: F;
11
- })> & import('vue').PublicProps;
8
+ }) & Partial<{}>> & import('vue').PublicProps;
12
9
  expose(exposed: import('vue').ShallowUnwrapRef<{
13
10
  reset: () => void;
14
11
  $form: import('vue').ComputedRef<any>;
15
12
  }>): void;
16
13
  attrs: any;
17
- slots: ReturnType<() => {}>;
18
- emit: ((event: "reset" | "apply", ...args: any[]) => void) & {};
19
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
20
- [key: string]: any;
21
- }> & {
14
+ slots: {};
15
+ emit: (event: "reset" | "apply", ...args: any[]) => void;
16
+ }>) => import('vue').VNode & {
22
17
  __ctx?: Awaited<typeof __VLS_setup>;
23
18
  };
24
19
  export default _default;
25
-
26
- type __VLS_Prettify<T> = {
20
+ type __VLS_PrettifyLocal<T> = {
27
21
  [K in keyof T]: T[K];
28
22
  } & {};
@@ -1,28 +1,23 @@
1
1
  import { PFormItemProps } from '../../declarations/antProxy';
2
- declare const _default: <T extends Recordable = Recordable<any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
2
+ declare const _default: <T extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onTrigger?: ((cusFields?: string | string[] | undefined) => any) | undefined;
5
5
  readonly onReset?: (() => any) | undefined;
6
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
7
- onTrigger?: ((cusFields?: string | string[] | undefined) => any) | undefined;
8
- onReset?: (() => any) | undefined;
9
- }>, never>, "onReset" | "onTrigger"> & {
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onTrigger"> & {
10
7
  item: PFormItemProps<T>;
11
8
  formData: T;
12
- }> & import('vue').PublicProps;
9
+ } & Partial<{}>> & import('vue').PublicProps;
13
10
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
14
11
  attrs: any;
15
- slots: ReturnType<() => {}>;
12
+ slots: {};
16
13
  emit: {
17
14
  (e: "trigger", cusFields?: string | string[]): void;
18
15
  (e: "reset"): void;
19
- } & {};
20
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
21
- [key: string]: any;
22
- }> & {
16
+ };
17
+ }>) => import('vue').VNode & {
23
18
  __ctx?: Awaited<typeof __VLS_setup>;
24
19
  };
25
20
  export default _default;
26
- type __VLS_Prettify<T> = {
21
+ type __VLS_PrettifyLocal<T> = {
27
22
  [K in keyof T]: T[K];
28
23
  } & {};
@@ -1,12 +1,14 @@
1
1
  import { PFormGroupProps } from '../../declarations/antProxy';
2
- declare const _default: <F = Recordable<any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
4
- readonly "onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
5
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
6
- "onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
7
- }>, never>, "onUpdate:modelValue"> & ({
8
- modelValue?: any;
9
- } & PFormGroupProps<F>)> & import('vue').PublicProps;
2
+ declare const _default: <F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly "onUpdate:modelValue"?: ((value: Partial<F & {
5
+ __index: number;
6
+ }>[]) => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
8
+ modelValue?: Partial<F & {
9
+ __index: number;
10
+ }>[];
11
+ } & PFormGroupProps<F>) & Partial<{}>> & import('vue').PublicProps;
10
12
  expose(exposed: import('vue').ShallowUnwrapRef<{
11
13
  activeKey: import('vue').ComputedRef<number>;
12
14
  setActiveKey: (key: number) => void;
@@ -15,18 +17,16 @@ declare const _default: <F = Recordable<any>>(__VLS_props: NonNullable<Awaited<t
15
17
  validateFields: (__index: number, fields: string[], ignoreTabError?: boolean) => Promise<void>;
16
18
  }>): void;
17
19
  attrs: any;
18
- slots: ReturnType<() => {
20
+ slots: {
19
21
  rightExtra?(_: {}): any;
20
- }>;
21
- emit: {
22
- 'update:modelValue': [modelValue: any];
23
22
  };
24
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
25
- [key: string]: any;
26
- }> & {
23
+ emit: (evt: "update:modelValue", value: Partial<F & {
24
+ __index: number;
25
+ }>[]) => void;
26
+ }>) => import('vue').VNode & {
27
27
  __ctx?: Awaited<typeof __VLS_setup>;
28
28
  };
29
29
  export default _default;
30
- type __VLS_Prettify<T> = {
30
+ type __VLS_PrettifyLocal<T> = {
31
31
  [K in keyof T]: T[K];
32
32
  } & {};
@@ -1,6 +1,6 @@
1
1
  import { PGridProps } from '../../declarations/antProxy';
2
- declare const _default: <D = Recordable<any>, F = Recordable<any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
2
+ declare const _default: <D extends Recordable = Recordable, F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onPick?: ((data: {
5
5
  row: D;
6
6
  field: string;
@@ -18,25 +18,7 @@ declare const _default: <D = Recordable<any>, F = Recordable<any>>(__VLS_props:
18
18
  records: D[];
19
19
  }) => any) | undefined;
20
20
  readonly onResetQuery?: (() => any) | undefined;
21
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
22
- onPick?: ((data: {
23
- row: D;
24
- field: string;
25
- }) => any) | undefined;
26
- onToolbarButtonClick?: ((data: {
27
- data: D[];
28
- code: string;
29
- selectedKeys: Array<string | number>;
30
- records: D[];
31
- }) => any) | undefined;
32
- onToolbarToolClick?: ((data: {
33
- data: D[];
34
- code: string;
35
- selectedKeys: Array<string | number>;
36
- records: D[];
37
- }) => any) | undefined;
38
- onResetQuery?: (() => any) | undefined;
39
- }>, never>, "onPick" | "onToolbarButtonClick" | "onToolbarToolClick" | "onResetQuery"> & PGridProps<D, F>> & import('vue').PublicProps;
21
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onPick" | "onToolbarButtonClick" | "onToolbarToolClick" | "onResetQuery"> & PGridProps<D, F> & Partial<{}>> & import('vue').PublicProps;
40
22
  expose(exposed: import('vue').ShallowUnwrapRef<{
41
23
  commitProxy: {
42
24
  query: (this: any, ...args: any[]) => any;
@@ -54,7 +36,7 @@ declare const _default: <D = Recordable<any>, F = Recordable<any>>(__VLS_props:
54
36
  resizeTable: () => void;
55
37
  }>): void;
56
38
  attrs: any;
57
- slots: ReturnType<() => {}>;
39
+ slots: {};
58
40
  emit: {
59
41
  (event: "toolbarButtonClick", data: {
60
42
  data: D[];
@@ -73,13 +55,11 @@ declare const _default: <D = Recordable<any>, F = Recordable<any>>(__VLS_props:
73
55
  field: string;
74
56
  }): void;
75
57
  (event: "resetQuery"): void;
76
- } & {};
77
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
78
- [key: string]: any;
79
- }> & {
58
+ };
59
+ }>) => import('vue').VNode & {
80
60
  __ctx?: Awaited<typeof __VLS_setup>;
81
61
  };
82
62
  export default _default;
83
- type __VLS_Prettify<T> = {
63
+ type __VLS_PrettifyLocal<T> = {
84
64
  [K in keyof T]: T[K];
85
65
  } & {};
@@ -1,18 +1,16 @@
1
1
  import { PBlockProps } from '../../declarations/antProxy';
2
- declare const _default: <F = Recordable<any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{}>, never>, never> & PBlockProps<F>> & import('vue').PublicProps;
2
+ declare const _default: <F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & PBlockProps<F> & Partial<{}>> & import('vue').PublicProps;
4
4
  expose(exposed: import('vue').ShallowUnwrapRef<{
5
5
  $form: import('vue').ComputedRef<Recordable<any> | undefined>;
6
6
  }>): void;
7
7
  attrs: any;
8
- slots: ReturnType<() => {}>;
8
+ slots: {};
9
9
  emit: {};
10
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
11
- [key: string]: any;
12
- }> & {
10
+ }>) => import('vue').VNode & {
13
11
  __ctx?: Awaited<typeof __VLS_setup>;
14
12
  };
15
13
  export default _default;
16
- type __VLS_Prettify<T> = {
14
+ type __VLS_PrettifyLocal<T> = {
17
15
  [K in keyof T]: T[K];
18
16
  } & {};
@@ -1,44 +1,11 @@
1
- import { PropType } from 'vue';
2
- import { PGridInstance, PGridProps } from '../../declarations/antProxy';
3
- declare const _default: <D = Recordable<any>, F = Recordable<any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_Prettify<Pick<Partial<{
5
- title: string;
6
- width: string | number;
7
- bodyStyle: Record<string, any>;
8
- multipleAllowEmpty: boolean;
9
- }> & Omit<{
10
- readonly title: string;
11
- readonly width: string | number;
12
- readonly bodyStyle: Record<string, any>;
13
- readonly gridSetting: PGridProps<D, F>;
14
- readonly multipleAllowEmpty: boolean;
15
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
16
- gridSetting: {
17
- type: PropType<PGridProps<D, F>>;
18
- required: true;
19
- };
20
- title: {
21
- type: PropType<string>;
22
- default: string;
23
- };
24
- width: {
25
- type: PropType<string | number>;
26
- default: string;
27
- };
28
- multipleAllowEmpty: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- bodyStyle: {
33
- type: ObjectConstructor;
34
- default: () => {};
35
- };
36
- }>> & Readonly<{}>, "title" | "width" | "bodyStyle" | "multipleAllowEmpty">, "gridSetting" | ("title" | "width" | "bodyStyle" | "multipleAllowEmpty")> & {}> & import('vue').PublicProps;
1
+ import { PGridInstance, PromisePickerProps } from '../../declarations/antProxy';
2
+ declare const _default: <D extends Recordable = Recordable, F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & PromisePickerProps<D, F> & Partial<{}>> & import('vue').PublicProps;
37
4
  expose(exposed: import('vue').ShallowUnwrapRef<{
38
- pick: () => Promise<{
5
+ pick: () => Promise<D[] | {
39
6
  row: D;
40
7
  field?: string;
41
- } | D[]>;
8
+ }>;
42
9
  pickMultiple: () => Promise<D[] | {
43
10
  row: D;
44
11
  field?: string;
@@ -47,14 +14,12 @@ declare const _default: <D = Recordable<any>, F = Recordable<any>>(__VLS_props:
47
14
  hide: () => void;
48
15
  }>): void;
49
16
  attrs: any;
50
- slots: ReturnType<() => {}>;
17
+ slots: {};
51
18
  emit: {};
52
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
53
- [key: string]: any;
54
- }> & {
19
+ }>) => import('vue').VNode & {
55
20
  __ctx?: Awaited<typeof __VLS_setup>;
56
21
  };
57
22
  export default _default;
58
- type __VLS_Prettify<T> = {
23
+ type __VLS_PrettifyLocal<T> = {
59
24
  [K in keyof T]: T[K];
60
25
  } & {};
@@ -0,0 +1,10 @@
1
+ declare const _default: import('vue').DefineSetupFnComponent<{
2
+ cellRender: any;
3
+ renderTableParams: any;
4
+ }, "blur"[], {}, {
5
+ cellRender: any;
6
+ renderTableParams: any;
7
+ } & {
8
+ onBlur?: ((...args: any[]) => any) | undefined;
9
+ }, import('vue').PublicProps>;
10
+ export default _default;
@@ -1,8 +1,7 @@
1
- import { PropType } from 'vue';
2
1
  import { TableProps } from 'ant-design-vue';
3
2
  import { ColumnProps } from '../../declarations/antProxy';
4
- declare const _default: <D = Recordable<any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
- props: __VLS_Prettify<Pick<Partial<{
3
+ declare const _default: <D extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{
6
5
  tableConfig: TableProps<any>;
7
6
  modelValue: D[];
8
7
  editColumns: ColumnProps<Recordable<any>>[];
@@ -12,33 +11,15 @@ declare const _default: <D = Recordable<any>>(__VLS_props: NonNullable<Awaited<t
12
11
  readonly editColumns: ColumnProps<Recordable<any>>[];
13
12
  readonly onTrigger?: ((...args: any[]) => any) | undefined;
14
13
  readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
15
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
16
- modelValue: {
17
- type: PropType<D[]>;
18
- default: () => never[];
19
- };
20
- tableConfig: {
21
- type: PropType<TableProps>;
22
- default: () => {};
23
- };
24
- editColumns: {
25
- type: PropType<ColumnProps[]>;
26
- default: () => never[];
27
- };
28
- }>> & Readonly<{
29
- onTrigger?: ((...args: any[]) => any) | undefined;
30
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
- }>, "tableConfig" | "modelValue" | "editColumns">, "onTrigger" | "onUpdate:modelValue" | ("tableConfig" | "modelValue" | "editColumns")> & {}> & import('vue').PublicProps;
14
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "tableConfig" | "modelValue" | "editColumns">, "onTrigger" | "onUpdate:modelValue" | ("tableConfig" | "modelValue" | "editColumns")> & {} & Partial<{}>> & import('vue').PublicProps;
32
15
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
33
16
  attrs: any;
34
- slots: ReturnType<() => {}>;
35
- emit: ((event: "trigger" | "update:modelValue", ...args: any[]) => void) & {};
36
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
37
- [key: string]: any;
38
- }> & {
17
+ slots: {};
18
+ emit: (event: "trigger" | "update:modelValue", ...args: any[]) => void;
19
+ }>) => import('vue').VNode & {
39
20
  __ctx?: Awaited<typeof __VLS_setup>;
40
21
  };
41
22
  export default _default;
42
- type __VLS_Prettify<T> = {
23
+ type __VLS_PrettifyLocal<T> = {
43
24
  [K in keyof T]: T[K];
44
25
  } & {};
@@ -1,64 +1,16 @@
1
1
  import { RenderFormParams, RenderOptions, RenderTableParams } from '../../declarations/antProxy';
2
- export declare const addRender: (name: string, { renderItemContent, renderDefault, }: {
2
+ import { Ref } from 'vue';
3
+ export interface RenderWorkshop {
3
4
  renderItemContent?: (options: RenderOptions, params: RenderFormParams, defaultHandler: Recordable) => any;
4
5
  renderDefault?: (options: RenderOptions, params: RenderTableParams, defaultHandler: Recordable) => any;
5
- }) => void;
6
+ renderEdit?: (model: Ref<any>, options: RenderOptions, params: RenderTableParams, emit?: (e: 'blur', value: any) => void) => any;
7
+ }
8
+ interface RenderFactory {
9
+ [key: string]: RenderWorkshop;
10
+ }
11
+ export declare const addRender: (name: string, { renderItemContent, renderDefault, renderEdit }: RenderWorkshop) => void;
6
12
  declare const _default: {
7
- renders: {
8
- $button: {
9
- renderItemContent({ props, events }: RenderOptions, { data, field }: RenderFormParams, defaultHandler: {
10
- [key: string]: (...args: any[]) => any;
11
- }): import("vue/jsx-runtime").JSX.Element;
12
- renderDefault({ props, events }: RenderOptions, { row, field }: RenderTableParams, defaultHandler: {
13
- [key: string]: (...args: any[]) => any;
14
- }): import("vue/jsx-runtime").JSX.Element;
15
- };
16
- $buttons: {
17
- renderItemContent({ props, children }: RenderOptions, { data, field }: RenderFormParams, defaultHandler: {
18
- [key: string]: (...args: any[]) => any;
19
- }): import("vue/jsx-runtime").JSX.Element;
20
- renderDefault({ props, children }: RenderOptions, { data, row, field }: RenderTableParams, defaultHandler: {
21
- [key: string]: (...args: any[]) => any;
22
- }): import("vue/jsx-runtime").JSX.Element;
23
- };
24
- ButtonTree: {
25
- renderDefault({ children, props }: {
26
- children?: never[] | undefined;
27
- props?: Recordable<any> | undefined;
28
- }, params: RenderTableParams): import("vue/jsx-runtime").JSX.Element;
29
- };
30
- $radio: {
31
- renderItemContent({ props, events, options }: RenderOptions, { data, field }: RenderFormParams): import("vue/jsx-runtime").JSX.Element | null;
32
- renderDefault({ props, options }: RenderOptions, { row, field }: RenderTableParams): import("vue/jsx-runtime").JSX.Element | null;
33
- };
34
- $autoComplete: {
35
- renderItemContent({ props, events }: RenderOptions, { data, field }: RenderFormParams): import("vue/jsx-runtime").JSX.Element | null;
36
- };
37
- $switch: {
38
- renderItemContent({ props, events }: RenderOptions, { data, field }: RenderFormParams): import("vue/jsx-runtime").JSX.Element | null;
39
- };
40
- $checkbox: {
41
- renderItemContent({ props, options, events }: RenderOptions, { data, field }: RenderFormParams): import("vue/jsx-runtime").JSX.Element | null;
42
- renderDefault({ props, options }: RenderOptions, { row, field }: RenderTableParams): import("vue/jsx-runtime").JSX.Element | null;
43
- };
44
- $paragraph: {
45
- renderDefault({ props }: RenderOptions, { row, field }: RenderTableParams): import("vue/jsx-runtime").JSX.Element | null;
46
- };
47
- $tableInput: {
48
- renderItemContent({ props, handleTrigger }: RenderOptions, { data, field }: RenderFormParams): import("vue/jsx-runtime").JSX.Element | null;
49
- };
50
- PercentInput: {
51
- renderItemContent({ props, attrs }: RenderOptions, { data, field }: RenderFormParams): import("vue/jsx-runtime").JSX.Element | null;
52
- renderDefault({ props, attrs }: RenderOptions, { row, field }: RenderTableParams): (import("vue/jsx-runtime").JSX.Element | null)[] | null;
53
- };
54
- TreeSelect: {
55
- renderItemContent({ props }: RenderOptions, { data, field }: RenderFormParams): import("vue/jsx-runtime").JSX.Element | null;
56
- renderDefault({ props }: RenderOptions, { row, field }: RenderTableParams): import("vue/jsx-runtime").JSX.Element | null;
57
- };
58
- };
59
- addRender: (name: string, { renderItemContent, renderDefault, }: {
60
- renderItemContent?: (options: RenderOptions, params: RenderFormParams, defaultHandler: Recordable) => any;
61
- renderDefault?: (options: RenderOptions, params: RenderTableParams, defaultHandler: Recordable) => any;
62
- }) => void;
13
+ renders: RenderFactory;
14
+ addRender: (name: string, { renderItemContent, renderDefault, renderEdit }: RenderWorkshop) => void;
63
15
  };
64
16
  export default _default;
@@ -1,16 +1,6 @@
1
- import { CellFuncArg, ColumnProps } from '../../declarations/antProxy';
2
- export declare const antFormatters: {
3
- toString: ({ cellValue }: {
4
- cellValue: any;
5
- }) => any;
6
- formatByOptions: ({ cellValue }: {
7
- cellValue: any;
8
- }, options: IOption[], separator?: string) => string;
9
- formatSex: ({ cellValue }: {
10
- cellValue: any;
11
- }) => "-" | "男" | "女";
12
- };
13
- export declare const renderAntFormat: <D = Recordable<any>>(formatter: string | [string, ...Array<any>] | ((arg: CellFuncArg<D>) => any), { record, index, column, field, }: {
1
+ import { CellFuncArg, ColumnProps, PFormatter } from '../../declarations/antProxy';
2
+ export declare const antFormatters: PFormatter;
3
+ export declare const renderAntFormat: <D extends Recordable = Recordable>(formatter: string | [string, ...Array<any>] | ((arg: CellFuncArg<D>) => any), { record, index, column, field, }: {
14
4
  record: D;
15
5
  index: number;
16
6
  field?: string;
@@ -2,18 +2,18 @@ interface TreeConfig {
2
2
  children?: string;
3
3
  }
4
4
  export declare const eachTree: <T extends Recordable>(treeData: ((T | (T & {
5
- children?: (T & any)[] | undefined;
5
+ children?: (T & /*elided*/ any)[] | undefined;
6
6
  })) & {
7
7
  children?: ((T | (T & {
8
- children?: (T & any)[] | undefined;
9
- })) & any)[] | undefined;
8
+ children?: (T & /*elided*/ any)[] | undefined;
9
+ })) & /*elided*/ any)[] | undefined;
10
10
  })[], iterate: (item: T | (T & {
11
- children?: (T & any)[] | undefined;
11
+ children?: (T & /*elided*/ any)[] | undefined;
12
12
  }) | ((T | (T & {
13
- children?: (T & any)[] | undefined;
13
+ children?: (T & /*elided*/ any)[] | undefined;
14
14
  })) & {
15
15
  children?: ((T | (T & {
16
- children?: (T & any)[] | undefined;
17
- })) & any)[] | undefined;
16
+ children?: (T & /*elided*/ any)[] | undefined;
17
+ })) & /*elided*/ any)[] | undefined;
18
18
  })) => any, options?: TreeConfig, context?: any) => any;
19
19
  export {};