@vtj/ui 0.8.34 → 0.8.35
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/dist/index.mjs +9518 -9359
- package/dist/index.umd.js +12 -12
- package/package.json +3 -3
- package/types/components/grid/Grid.d.ts +15 -5
- package/types/components/grid/hooks/useProps.d.ts +1 -1
- package/types/components/grid/props.d.ts +8 -2
- package/types/components/grid/renderers/components/SelectFilter.d.ts +18 -0
- package/types/components/grid/renderers/input.d.ts +3 -0
- package/types/components/grid/renderers/interceptors.d.ts +1 -0
- package/types/components/grid/renderers/link.d.ts +1 -0
- package/types/components/grid/renderers/select.d.ts +1 -0
- package/types/components/grid/renderers/shared.d.ts +3 -0
- package/types/components/grid/renderers/tag.d.ts +1 -0
- package/types/components/grid/renderers/text.d.ts +1 -0
- package/types/components/grid/types.d.ts +4 -0
- package/types/components/grid/utils.d.ts +2 -0
- package/types/version.d.ts +2 -2
- /package/types/components/grid/renderers/{cell/index.d.ts → actions.d.ts} +0 -0
- /package/types/components/grid/renderers/{edit → components}/DateEdit.d.ts +0 -0
- /package/types/components/grid/renderers/{filter → components}/DateFilter.d.ts +0 -0
- /package/types/components/grid/renderers/{edit → components}/InputEdit.d.ts +0 -0
- /package/types/components/grid/renderers/{filter → components}/InputFilter.d.ts +0 -0
- /package/types/components/grid/renderers/{edit → components}/SelectEdit.d.ts +0 -0
- /package/types/components/grid/renderers/{edit/index.d.ts → date.d.ts} +0 -0
- /package/types/components/grid/renderers/{filter/index.d.ts → image.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.35",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=16.0.0"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"sortablejs": "~1.15.2",
|
|
13
13
|
"vxe-table": "~4.6.16",
|
|
14
14
|
"vxe-table-plugin-menus": "~4.0.3",
|
|
15
|
-
"@vtj/
|
|
16
|
-
"@vtj/
|
|
15
|
+
"@vtj/icons": "~0.8.35",
|
|
16
|
+
"@vtj/utils": "~0.8.35"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/qrcode": "^1.5.5",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VxeGridInstance, GridColumns, GridCustomInfo, GridCellRenders, GridSortableEvent } from './types';
|
|
1
|
+
import { VxeGridInstance, GridColumns, GridCustomInfo, GridCellRenders, GridEditRenders, GridFilterRenders, GridSortableEvent } from './types';
|
|
2
2
|
import { DefineComponent, PropType, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
3
|
import { Options } from 'sortablejs';
|
|
4
4
|
import { VxeTableDataRow, VxeTableConstructor, VxeGridConstructor } from 'vxe-table';
|
|
@@ -23,7 +23,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
23
23
|
type: PropType<(id: string) => Promise< GridCustomInfo>>;
|
|
24
24
|
};
|
|
25
25
|
saveCustom: {
|
|
26
|
-
type: PropType<(info: GridCustomInfo) => Promise<any>>;
|
|
26
|
+
type: PropType<(info: GridCustomInfo) => Promise<any>>; /**
|
|
27
|
+
* 新增行,并激活编辑状态
|
|
28
|
+
*/
|
|
27
29
|
};
|
|
28
30
|
resizable: {
|
|
29
31
|
type: BooleanConstructor;
|
|
@@ -52,7 +54,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
52
54
|
type: PropType<GridCellRenders>;
|
|
53
55
|
};
|
|
54
56
|
editRenders: {
|
|
55
|
-
type:
|
|
57
|
+
type: PropType<GridEditRenders>;
|
|
58
|
+
};
|
|
59
|
+
filterRenders: {
|
|
60
|
+
type: PropType<GridFilterRenders>;
|
|
56
61
|
};
|
|
57
62
|
editable: {
|
|
58
63
|
type: BooleanConstructor;
|
|
@@ -106,7 +111,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
106
111
|
type: PropType<(id: string) => Promise< GridCustomInfo>>;
|
|
107
112
|
};
|
|
108
113
|
saveCustom: {
|
|
109
|
-
type: PropType<(info: GridCustomInfo) => Promise<any>>;
|
|
114
|
+
type: PropType<(info: GridCustomInfo) => Promise<any>>; /**
|
|
115
|
+
* 新增行,并激活编辑状态
|
|
116
|
+
*/
|
|
110
117
|
};
|
|
111
118
|
resizable: {
|
|
112
119
|
type: BooleanConstructor;
|
|
@@ -135,7 +142,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
135
142
|
type: PropType<GridCellRenders>;
|
|
136
143
|
};
|
|
137
144
|
editRenders: {
|
|
138
|
-
type:
|
|
145
|
+
type: PropType<GridEditRenders>;
|
|
146
|
+
};
|
|
147
|
+
filterRenders: {
|
|
148
|
+
type: PropType<GridFilterRenders>;
|
|
139
149
|
};
|
|
140
150
|
editable: {
|
|
141
151
|
type: BooleanConstructor;
|
|
@@ -12,6 +12,7 @@ export declare function useProps(props: GridProps, slots: string[], emit: Emits<
|
|
|
12
12
|
scrollY: any;
|
|
13
13
|
toolbarConfig: any;
|
|
14
14
|
filterConfig: any;
|
|
15
|
+
sortConfig: any;
|
|
15
16
|
keepSource: boolean;
|
|
16
17
|
editConfig: any;
|
|
17
18
|
mouseConfig: any;
|
|
@@ -59,7 +60,6 @@ export declare function useProps(props: GridProps, slots: string[], emit: Emits<
|
|
|
59
60
|
resizeConfig?: import("vxe-table").VxeTablePropTypes.ResizeConfig | undefined;
|
|
60
61
|
resizableConfig?: import("vxe-table").VxeTablePropTypes.ResizableConfig<VxeTableDataRow> | undefined;
|
|
61
62
|
seqConfig?: import("vxe-table").VxeTablePropTypes.SeqConfig<VxeTableDataRow> | undefined;
|
|
62
|
-
sortConfig?: import("vxe-table").VxeTablePropTypes.SortConfig<VxeTableDataRow> | undefined;
|
|
63
63
|
radioConfig?: import("vxe-table").VxeTablePropTypes.RadioConfig<VxeTableDataRow> | undefined;
|
|
64
64
|
checkboxConfig?: import("vxe-table").VxeTablePropTypes.CheckboxConfig<VxeTableDataRow> | undefined;
|
|
65
65
|
tooltipConfig?: import("vxe-table").VxeTablePropTypes.TooltipConfig<VxeTableDataRow> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType, InjectionKey, ComponentInternalInstance } from 'vue';
|
|
2
|
-
import { GridColumns, GridCustomInfo, VxeGridPropTypes, GridCellRenders } from './types';
|
|
2
|
+
import { GridColumns, GridCustomInfo, VxeGridPropTypes, GridCellRenders, GridEditRenders, GridFilterRenders } from './types';
|
|
3
3
|
import { Options } from 'sortablejs';
|
|
4
4
|
|
|
5
5
|
export declare const gridProps: {
|
|
@@ -100,7 +100,13 @@ export declare const gridProps: {
|
|
|
100
100
|
* 编辑状态单元格渲染器
|
|
101
101
|
*/
|
|
102
102
|
editRenders: {
|
|
103
|
-
type:
|
|
103
|
+
type: PropType<GridEditRenders>;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* 过滤器渲染器
|
|
107
|
+
*/
|
|
108
|
+
filterRenders: {
|
|
109
|
+
type: PropType<GridFilterRenders>;
|
|
104
110
|
};
|
|
105
111
|
/**
|
|
106
112
|
* 开启支持编辑模式
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VxeGlobalRendererHandles } from '../../types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
export interface Props {
|
|
5
|
+
params: VxeGlobalRendererHandles.RenderFilterParams;
|
|
6
|
+
renderOpts: VxeGlobalRendererHandles.RenderFilterOptions;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -34,6 +34,10 @@ export type GridEditRender = VxeColumnPropTypes.EditRender & {
|
|
|
34
34
|
props: ((params: VxeGlobalRendererHandles.RenderEditParams) => Record<string, any>) | Record<string, any>;
|
|
35
35
|
};
|
|
36
36
|
export type GridEditRenders = Record<string, string | GridEditRender>;
|
|
37
|
+
export type GridFilterRender = VxeColumnPropTypes.FilterRender & {
|
|
38
|
+
props: ((params: VxeGlobalRendererHandles.RenderFilterParams) => Record<string, any>) | Record<string, any>;
|
|
39
|
+
};
|
|
40
|
+
export type GridFilterRenders = Record<string, string | GridFilterRender>;
|
|
37
41
|
export type GridProps = ComponentPropsType<typeof gridProps>;
|
|
38
42
|
export type GridEmits = {
|
|
39
43
|
rowSort: [e: GridSortableEvent];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
1
2
|
import { default as Sortable } from 'sortablejs';
|
|
2
3
|
import { RendererOptions, VxeTableDataRow } from 'vxe-table';
|
|
3
4
|
import { GridSortableOptions, VxeGridInstance, GridEmits, GridSortableEvent, VxeTableDefines, GridColumns, GridCustomInfo, VxeGlobalRendererHandles, VxeGlobalInterceptorHandles } from './types';
|
|
@@ -18,3 +19,4 @@ export declare function createCellRenderProps(renderOpts: VxeGlobalRendererHandl
|
|
|
18
19
|
};
|
|
19
20
|
export declare function registerRender(name: string, options: RendererOptions): void;
|
|
20
21
|
export declare function registerInterceptor(name: VxeGlobalInterceptorHandles.Type, callback: VxeGlobalInterceptorHandles.InterceptorCallback): void;
|
|
22
|
+
export declare function registerComponents(app: App, components?: any[]): void;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/ui
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.34
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.34";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|