@juzhenfe/page-model 3.22.4 → 3.22.6
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/components/buttons-renderer/components/button-item-render/index.vue.d.ts +66 -0
- package/dist/components/buttons-renderer/index.vue.d.ts +40 -0
- package/dist/components/buttons-renderer/utils/index.d.ts +2 -2
- package/dist/components/column-filter-tools/index.vue.d.ts +10 -0
- package/dist/components/column-sort-tools/index.vue.d.ts +10 -0
- package/dist/components/draggable-list/index.vue.d.ts +25 -0
- package/dist/components/editable-table/components/column-tools/index.vue.d.ts +11 -0
- package/dist/components/editable-table/components/column-tools/setting.vue.d.ts +9 -0
- package/dist/components/editable-table/components/table-cell/index.vue.d.ts +16 -0
- package/dist/components/editable-table/index.d.ts +13 -14
- package/dist/components/editable-table/index.vue.d.ts +74 -0
- package/dist/components/form/components/col-container/components/module-container/index.vue.d.ts +30 -0
- package/dist/components/form/components/col-container/components/section-title-els/index.vue.d.ts +24 -0
- package/dist/components/form/components/col-container/components/tabs-mode-container/index.vue.d.ts +32 -0
- package/dist/components/form/components/col-container/index.vue.d.ts +24 -0
- package/dist/components/form/components/column-tools/setting.vue.d.ts +11 -0
- package/dist/components/form/components/column-tools/use-setting.d.ts +14 -14
- package/dist/components/form/components/container-component/index.vue.d.ts +22 -0
- package/dist/components/form/components/section-config/merge.d.ts +3 -3
- package/dist/components/form/components/section-config/use.d.ts +14 -14
- package/dist/components/form/constructor.d.ts +79 -80
- package/dist/components/form/index.d.ts +2 -3
- package/dist/components/form/index.vue.d.ts +19 -0
- package/dist/components/form/type.d.ts +2 -0
- package/dist/components/form/utils/save-columns.d.ts +30 -30
- package/dist/components/form/utils/use-form-els.d.ts +4 -4
- package/dist/components/form-container/components/dialog-mode/index.vue.d.ts +29 -0
- package/dist/components/form-container/components/drawer-mode/index.vue.d.ts +29 -0
- package/dist/components/form-container/components/full-page/index.vue.d.ts +29 -0
- package/dist/components/form-container/index.vue.d.ts +27 -0
- package/dist/components/form-dialog/index.vue.d.ts +30 -0
- package/dist/components/form-dialog/use-move.d.ts +19 -19
- package/dist/components/form-drawer/index.vue.d.ts +35 -0
- package/dist/components/form-item-renderer/index.vue.d.ts +75 -0
- package/dist/components/line-clamp-tools/index.vue.d.ts +9 -0
- package/dist/components/normal-tab/index.vue.d.ts +17 -0
- package/dist/components/normal-tab/type.d.ts +2 -0
- package/dist/components/page-model/components/selectable-operate/index.vue.d.ts +16 -0
- package/dist/components/page-model/components/top-tabs/constructor.d.ts +9 -10
- package/dist/components/page-model/components/top-tabs/index.vue.d.ts +21 -0
- package/dist/components/page-model/constructor.d.ts +156 -157
- package/dist/components/page-model/index.d.ts +4 -6
- package/dist/components/page-model/index.vue.d.ts +118 -0
- package/dist/components/page-model/patches/patch-config-urls.d.ts +2 -2
- package/dist/components/page-model/patches/patch-default-config.d.ts +2 -2
- package/dist/components/page-model/patches/patch-selectable.d.ts +2 -2
- package/dist/components/page-model/patches/patch-size.d.ts +2 -2
- package/dist/components/page-model/patches/patch-table-dragable.d.ts +2 -2
- package/dist/components/page-model/patches/patch-user-config.d.ts +2 -2
- package/dist/components/page-model/type.d.ts +6 -0
- package/dist/components/page-model/utils/default-config.d.ts +1 -1
- package/dist/components/page-model/utils/default-excel-export-config.d.ts +1 -1
- package/dist/components/page-model/utils/default-style-config.d.ts +1 -1
- package/dist/components/page-model/utils/default-text-config.d.ts +1 -1
- package/dist/components/page-model/utils/default-user-setting.d.ts +1 -1
- package/dist/components/page-model/utils/error-handler.d.ts +1 -1
- package/dist/components/page-model/utils/manager-controller.d.ts +47 -48
- package/dist/components/page-model/utils/patch-config.d.ts +1 -2
- package/dist/components/page-model/utils/use-auth-buttons.d.ts +7 -8
- package/dist/components/page-model/utils/use-keyboard-event.d.ts +9 -9
- package/dist/components/scenes-tab/index.vue.d.ts +5 -0
- package/dist/components/search-form/components/search-form-full/index.vue.d.ts +16 -0
- package/dist/components/search-form/constructor.d.ts +21 -22
- package/dist/components/search-form/index.vue.d.ts +19 -0
- package/dist/components/search-form/use-detect-item-width.d.ts +5 -6
- package/dist/components/simple-popover/index.vue.d.ts +29 -0
- package/dist/components/table/components/column-tools/index.vue.d.ts +10 -0
- package/dist/components/table/components/column-tools/setting.vue.d.ts +17 -0
- package/dist/components/table/components/column-tools/use-setting.d.ts +14 -14
- package/dist/components/table/components/column-tools/use-user-config.d.ts +14 -14
- package/dist/components/table/components/column-tools/use-user-show-row-config.d.ts +35 -35
- package/dist/components/table/components/column-tools/user-config.vue.d.ts +11 -0
- package/dist/components/table/components/context-column-summary/index.vue.d.ts +13 -0
- package/dist/components/table/components/context-menu/index.vue.d.ts +35 -0
- package/dist/components/table/components/empty-data/index.vue.d.ts +7 -0
- package/dist/components/table/components/export-form/index.vue.d.ts +13 -0
- package/dist/components/table/components/export-form/use.d.ts +16 -17
- package/dist/components/table/components/selections-table/index.vue.d.ts +10 -0
- package/dist/components/table/components/selections-table/use.d.ts +15 -15
- package/dist/components/table/components/table-column/components/filter-zone/index.vue.d.ts +9 -0
- package/dist/components/table/components/table-column/components/filter-zone/utils/index.d.ts +69 -69
- package/dist/components/table/components/table-column/index.vue.d.ts +7 -0
- package/dist/components/table/components/table-v2/index.vue.d.ts +20 -0
- package/dist/components/table/components/table-wrap/index.vue.d.ts +24 -0
- package/dist/components/table/constructor.d.ts +344 -345
- package/dist/components/table/index.vue.d.ts +30 -0
- package/dist/components/table/type.d.ts +2 -0
- package/dist/components/table/utils/save-column-filter.d.ts +2 -2
- package/dist/components/table/utils/save-column-sort.d.ts +2 -2
- package/dist/components/table/utils/save-columns.d.ts +38 -38
- package/dist/components/table/utils/save-config.d.ts +6 -6
- package/dist/components/table/utils/use-column-drag.d.ts +8 -8
- package/dist/components/table/utils/use-listen-scroll.d.ts +5 -6
- package/dist/components/table/utils/use-static-summary.d.ts +11 -12
- package/dist/components/table/utils/use-table-config-change.d.ts +5 -6
- package/dist/components/table/utils/use-table-els.d.ts +4 -5
- package/dist/components/table-cell-renderer/index.vue.d.ts +58 -0
- package/dist/components/table-toolsbox/index.vue.d.ts +24 -0
- package/dist/index.es.js +1809 -1803
- package/dist/index.umd.js +2 -2
- package/dist/main.d.ts +14 -13
- package/dist/types/common.d.ts +25 -0
- package/dist/types/form-item-types/cascader.d.ts +2 -0
- package/dist/types/form-item-types/color-picker.d.ts +21 -20
- package/dist/types/form-item-types/date-picker.d.ts +45 -41
- package/dist/types/form-item-types/input-number.d.ts +2 -0
- package/dist/types/form-item-types/input.d.ts +2 -0
- package/dist/types/form-item-types/jz-cascader.d.ts +3 -0
- package/dist/types/form-item-types/jz-city-picker.d.ts +3 -0
- package/dist/types/form-item-types/rate.d.ts +30 -29
- package/dist/types/form-item-types/select-v2.d.ts +2 -0
- package/dist/types/form-item-types/slider.d.ts +31 -31
- package/dist/types/form-item-types/switch.d.ts +13 -9
- package/dist/types/form-item-types/time-picker.d.ts +40 -36
- package/dist/types/form-item-types/time-select.d.ts +30 -26
- package/dist/utils/config-saver.d.ts +51 -51
- package/dist/utils/define-config.d.ts +2 -3
- package/dist/utils/event-chain.d.ts +9 -9
- package/dist/utils/event-emitter.d.ts +7 -7
- package/dist/utils/index.d.ts +101 -102
- package/dist/utils/infinite-table.d.ts +49 -49
- package/dist/utils/manager.d.ts +13 -14
- package/dist/utils/provide-keys.d.ts +20 -20
- package/dist/utils/reflect/index.d.ts +14 -15
- package/dist/utils/reflect/reflect-collector.d.ts +25 -25
- package/dist/utils/resize.d.ts +2 -3
- package/package.json +9 -7
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export { useAuthButtons };
|
|
2
|
+
/**
|
|
3
|
+
* 使用授权按钮
|
|
4
|
+
*/
|
|
5
|
+
declare function useAuthButtons(props: any, injectValue?: string[] | Ref<string[]>): {
|
|
6
|
+
authButtons: import('vue').ComputedRef<any>;
|
|
7
|
+
};
|
|
8
|
+
export { useAuthButtons };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 监听键盘事件
|
|
3
|
-
* @returns
|
|
4
|
-
*/
|
|
5
|
-
export declare const useKeyBoardEvent: () => {
|
|
6
|
-
useKeyboardEvents: {
|
|
7
|
-
onMouseenter: (...rest: any[]) => void;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 监听键盘事件
|
|
3
|
+
* @returns
|
|
4
|
+
*/
|
|
5
|
+
export declare const useKeyBoardEvent: () => {
|
|
6
|
+
useKeyboardEvents: {
|
|
7
|
+
onMouseenter: (...rest: any[]) => void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {
|
|
4
|
+
getValue: () => {};
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as SearchFormManager } from '../../constructor';
|
|
2
|
+
type Opts = {
|
|
3
|
+
formData: AnyObject;
|
|
4
|
+
context: any;
|
|
5
|
+
formEls: any[];
|
|
6
|
+
searchFormManager: SearchFormManager;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {
|
|
9
|
+
show: (opts: Opts) => void;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
filter: (formData: AnyObject) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
13
|
+
onFilter?: (formData: AnyObject) => any;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { default as IManager } from '../../utils/manager';
|
|
2
2
|
import { ComponentPublicInstance } from 'vue';
|
|
3
3
|
import { default as PageModelManager } from '../page-model/constructor';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
get
|
|
11
|
-
get
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
4
|
+
export default class SearchFormManager extends IManager {
|
|
5
|
+
propsConfig?: PageModel.SearchForm;
|
|
6
|
+
formData: AnyObject;
|
|
7
|
+
isExpanded: boolean;
|
|
8
|
+
constructor(form?: PageModel.SearchForm);
|
|
9
|
+
get form(): PageModel.SearchForm<any, any>;
|
|
10
|
+
get size(): PageModel.Size;
|
|
11
|
+
get expandMode(): PageModel.SearchFormExpandMode;
|
|
12
|
+
refreshPage(): void;
|
|
13
|
+
getReqParams(): {};
|
|
14
|
+
init(): void;
|
|
15
|
+
getInitialFormData(): {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
};
|
|
18
|
+
setInitialFormData(): void;
|
|
19
|
+
toggleExpand(): void;
|
|
20
|
+
updateContext(context: ComponentPublicInstance): void;
|
|
21
|
+
isUpdateConfig: boolean;
|
|
22
|
+
onConfigUpdated(): void;
|
|
23
|
+
register(manager: PageModelManager): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as PageModelManager } from '../page-model/constructor';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
5
|
+
form?: PageModel.SearchForm;
|
|
6
|
+
manager?: PageModelManager;
|
|
7
|
+
}, {
|
|
8
|
+
doSearchFormLayout: () => void;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
10
|
+
form?: PageModel.SearchForm;
|
|
11
|
+
manager?: PageModelManager;
|
|
12
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
13
|
+
default?: (props: {}) => any;
|
|
14
|
+
}>;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
2
|
+
export declare const useDetectItemWidth: (searchFormRef: Ref<HTMLDivElement>, totalShowFormEls: any[]) => {
|
|
3
|
+
showFormELsCount: Ref<number, number>;
|
|
4
|
+
showMoreButton: Ref<boolean, boolean>;
|
|
5
|
+
doSearchFormLayout: () => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* 宽度
|
|
6
|
+
*/
|
|
7
|
+
width?: number;
|
|
8
|
+
/**
|
|
9
|
+
* 位置
|
|
10
|
+
*/
|
|
11
|
+
placement?: "left" | "right";
|
|
12
|
+
/**
|
|
13
|
+
* zIndex
|
|
14
|
+
*/
|
|
15
|
+
zIndex?: number;
|
|
16
|
+
}, {
|
|
17
|
+
show: (element: HTMLElement | DOMRect) => void;
|
|
18
|
+
hide: () => void;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, any, string, import('vue').PublicProps, any, {
|
|
20
|
+
width: number;
|
|
21
|
+
placement: "left" | "right";
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
23
|
+
default?: (props: {}) => any;
|
|
24
|
+
}>;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
els: PageModel.TableBaseItem[];
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
"save-columns": (columns: PageModel.TableBaseItem<any, any>[]) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
+
"onSave-columns"?: (columns: PageModel.TableBaseItem<any, any>[]) => any;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
4
|
+
onlyShow?: boolean;
|
|
5
|
+
}, {
|
|
6
|
+
show: (els: PageModel.TableBaseItem[]) => void;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
closed: () => any;
|
|
9
|
+
submit: (els: PageModel.TableBaseItem<any, any>[]) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
11
|
+
onlyShow?: boolean;
|
|
12
|
+
}> & Readonly<{
|
|
13
|
+
onClosed?: () => any;
|
|
14
|
+
onSubmit?: (els: PageModel.TableBaseItem<any, any>[]) => any;
|
|
15
|
+
}>, {
|
|
16
|
+
onlyShow: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 使用字段表格列组件
|
|
3
|
-
* @return
|
|
4
|
-
* @columnToolsSettingRef 表格列组件的ref
|
|
5
|
-
* @isRenderColumnToolsSetting 是否渲染
|
|
6
|
-
* @showColumnToolsSetting 显示选择表格
|
|
7
|
-
* @onColumnToolsSettingClosed 表格关闭的回调
|
|
8
|
-
*/
|
|
9
|
-
export declare const useColumnToolsSetting: () => {
|
|
10
|
-
isRenderColumnToolsSetting: import('vue').Ref<boolean, boolean>;
|
|
11
|
-
columnToolsSettingRef: import('vue').Ref<any, any>;
|
|
12
|
-
showColumnToolsSetting: (els: PageModel.TableBaseItem[]) => void;
|
|
13
|
-
onColumnToolsSettingClosed: () => void;
|
|
14
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 使用字段表格列组件
|
|
3
|
+
* @return
|
|
4
|
+
* @columnToolsSettingRef 表格列组件的ref
|
|
5
|
+
* @isRenderColumnToolsSetting 是否渲染
|
|
6
|
+
* @showColumnToolsSetting 显示选择表格
|
|
7
|
+
* @onColumnToolsSettingClosed 表格关闭的回调
|
|
8
|
+
*/
|
|
9
|
+
export declare const useColumnToolsSetting: () => {
|
|
10
|
+
isRenderColumnToolsSetting: import('vue').Ref<boolean, boolean>;
|
|
11
|
+
columnToolsSettingRef: import('vue').Ref<any, any>;
|
|
12
|
+
showColumnToolsSetting: (els: PageModel.TableBaseItem[]) => void;
|
|
13
|
+
onColumnToolsSettingClosed: () => void;
|
|
14
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 使用字段用户配置组件
|
|
3
|
-
* @return
|
|
4
|
-
* @userConfigRef 用户配置组件的ref
|
|
5
|
-
* @isRenderUserConfig 是否渲染
|
|
6
|
-
* @showUserConfig 显示选择表格
|
|
7
|
-
* @onUserConfigClosed 表格关闭的回调
|
|
8
|
-
*/
|
|
9
|
-
export declare const useUserConfig: () => {
|
|
10
|
-
isRenderUserConfig: import('vue').Ref<boolean, boolean>;
|
|
11
|
-
userConfigRef: import('vue').Ref<any, any>;
|
|
12
|
-
showUserConfig: (els: PageModel.PageModelUserConfig) => void;
|
|
13
|
-
onUserConfigClosed: () => void;
|
|
14
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 使用字段用户配置组件
|
|
3
|
+
* @return
|
|
4
|
+
* @userConfigRef 用户配置组件的ref
|
|
5
|
+
* @isRenderUserConfig 是否渲染
|
|
6
|
+
* @showUserConfig 显示选择表格
|
|
7
|
+
* @onUserConfigClosed 表格关闭的回调
|
|
8
|
+
*/
|
|
9
|
+
export declare const useUserConfig: () => {
|
|
10
|
+
isRenderUserConfig: import('vue').Ref<boolean, boolean>;
|
|
11
|
+
userConfigRef: import('vue').Ref<any, any>;
|
|
12
|
+
showUserConfig: (els: PageModel.PageModelUserConfig) => void;
|
|
13
|
+
onUserConfigClosed: () => void;
|
|
14
|
+
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 使用用户私人配置
|
|
3
|
-
*/
|
|
4
|
-
export declare const rowShowRowsOption: import('vue').Ref<{
|
|
5
|
-
label: string;
|
|
6
|
-
value: number;
|
|
7
|
-
}[], {
|
|
8
|
-
label: string;
|
|
9
|
-
value: number;
|
|
10
|
-
}[] | {
|
|
11
|
-
label: string;
|
|
12
|
-
value: number;
|
|
13
|
-
}[]>;
|
|
14
|
-
export declare const useUserShowRowConfig: (tableEls: any[]) => {
|
|
15
|
-
rowShowRowsOption: import('vue').Ref<{
|
|
16
|
-
label: string;
|
|
17
|
-
value: number;
|
|
18
|
-
}[], {
|
|
19
|
-
label: string;
|
|
20
|
-
value: number;
|
|
21
|
-
}[] | {
|
|
22
|
-
label: string;
|
|
23
|
-
value: number;
|
|
24
|
-
}[]>;
|
|
25
|
-
userConfig: import('vue').Ref<{
|
|
26
|
-
showRowNumbers?: number;
|
|
27
|
-
searchOnValueChange?: boolean;
|
|
28
|
-
enterSearch?: boolean;
|
|
29
|
-
}, PageModel.PageModelUserConfig | {
|
|
30
|
-
showRowNumbers?: number;
|
|
31
|
-
searchOnValueChange?: boolean;
|
|
32
|
-
enterSearch?: boolean;
|
|
33
|
-
}>;
|
|
34
|
-
updateUserConfig: (config: PageModel.PageModelUserConfig) => void;
|
|
35
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 使用用户私人配置
|
|
3
|
+
*/
|
|
4
|
+
export declare const rowShowRowsOption: import('vue').Ref<{
|
|
5
|
+
label: string;
|
|
6
|
+
value: number;
|
|
7
|
+
}[], {
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
}[] | {
|
|
11
|
+
label: string;
|
|
12
|
+
value: number;
|
|
13
|
+
}[]>;
|
|
14
|
+
export declare const useUserShowRowConfig: (tableEls: any[]) => {
|
|
15
|
+
rowShowRowsOption: import('vue').Ref<{
|
|
16
|
+
label: string;
|
|
17
|
+
value: number;
|
|
18
|
+
}[], {
|
|
19
|
+
label: string;
|
|
20
|
+
value: number;
|
|
21
|
+
}[] | {
|
|
22
|
+
label: string;
|
|
23
|
+
value: number;
|
|
24
|
+
}[]>;
|
|
25
|
+
userConfig: import('vue').Ref<{
|
|
26
|
+
showRowNumbers?: number;
|
|
27
|
+
searchOnValueChange?: boolean;
|
|
28
|
+
enterSearch?: boolean;
|
|
29
|
+
}, PageModel.PageModelUserConfig | {
|
|
30
|
+
showRowNumbers?: number;
|
|
31
|
+
searchOnValueChange?: boolean;
|
|
32
|
+
enterSearch?: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
updateUserConfig: (config: PageModel.PageModelUserConfig) => void;
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {
|
|
4
|
+
show: (config: PageModel.PageModelUserConfig) => void;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
closed: () => any;
|
|
7
|
+
submit: (config: PageModel.PageModelUserConfig) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
9
|
+
onClosed?: () => any;
|
|
10
|
+
onSubmit?: (config: PageModel.PageModelUserConfig) => any;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
els: PageModel.TableBaseItem[];
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {
|
|
5
|
+
show: (event: MouseEvent, columnProp: string) => void;
|
|
6
|
+
hide: () => void;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
"save-columns": (columns: PageModel.TableBaseItem<any, any>[]) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
+
"onSave-columns"?: (columns: PageModel.TableBaseItem<any, any>[]) => any;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare var __VLS_24: {
|
|
2
|
+
item: any;
|
|
3
|
+
index: any;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_24) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {
|
|
9
|
+
show: (event: MouseEvent, opt: {
|
|
10
|
+
els: any[];
|
|
11
|
+
context?: any;
|
|
12
|
+
executeData?: any[];
|
|
13
|
+
}) => void;
|
|
14
|
+
hide: () => void;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
+
add: (...args: any[]) => any;
|
|
17
|
+
custom: (event: string, ...rest: any[]) => any;
|
|
18
|
+
del: (...args: any[]) => any;
|
|
19
|
+
upd: (...args: any[]) => any;
|
|
20
|
+
import: (...args: any[]) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
22
|
+
onAdd?: (...args: any[]) => any;
|
|
23
|
+
onCustom?: (event: string, ...rest: any[]) => any;
|
|
24
|
+
onDel?: (...args: any[]) => any;
|
|
25
|
+
onUpd?: (...args: any[]) => any;
|
|
26
|
+
onImport?: (...args: any[]) => any;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
4
|
+
text?: string;
|
|
5
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
+
text?: string;
|
|
7
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as TableManager } from '../../constructor';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {
|
|
3
|
+
show: (data: {
|
|
4
|
+
els: PageModel.TableBaseItem[];
|
|
5
|
+
manager: TableManager;
|
|
6
|
+
}) => void;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
closed: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
10
|
+
onClosed?: () => any;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { default as TableManager } from '../../constructor';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
10
|
-
* @
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
2
|
+
export type ExportFormUseData = {
|
|
3
|
+
els: PageModel.TableBaseItem[];
|
|
4
|
+
manager: TableManager;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* 使用多选的表格数据管理
|
|
8
|
+
* @return
|
|
9
|
+
* @exportFormRef 选择表格的ref
|
|
10
|
+
* @showExportForm 显示选择表格
|
|
11
|
+
*/
|
|
12
|
+
export declare const useExportForm: () => {
|
|
13
|
+
isRenderExportForm: import('vue').Ref<boolean, boolean>;
|
|
14
|
+
exportFormRef: import('vue').Ref<any, any>;
|
|
15
|
+
showExportForm: (data: ExportFormUseData) => void;
|
|
16
|
+
onExportFormClosed: () => void;
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SelectionsTableUseData } from './use';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {
|
|
5
|
+
show: (useData: SelectionsTableUseData) => void;
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
closed: () => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
9
|
+
onClosed?: () => any;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export
|
|
2
|
-
tableManager: any;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* 使用多选的表格数据管理
|
|
6
|
-
* @return
|
|
7
|
-
* @selectionsTableRef 选择表格的ref
|
|
8
|
-
* @showSelectionsTable 显示选择表格
|
|
9
|
-
*/
|
|
10
|
-
export declare const useSelectionsTable: () => {
|
|
11
|
-
isRenderSelectionsTable: import('vue').Ref<boolean, boolean>;
|
|
12
|
-
selectionsTableRef: import('vue').Ref<any, any>;
|
|
13
|
-
showSelectionsTable: (data: SelectionsTableUseData) => void;
|
|
14
|
-
onSelectionsTableClosed: () => void;
|
|
15
|
-
};
|
|
1
|
+
export type SelectionsTableUseData = {
|
|
2
|
+
tableManager: any;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* 使用多选的表格数据管理
|
|
6
|
+
* @return
|
|
7
|
+
* @selectionsTableRef 选择表格的ref
|
|
8
|
+
* @showSelectionsTable 显示选择表格
|
|
9
|
+
*/
|
|
10
|
+
export declare const useSelectionsTable: () => {
|
|
11
|
+
isRenderSelectionsTable: import('vue').Ref<boolean, boolean>;
|
|
12
|
+
selectionsTableRef: import('vue').Ref<any, any>;
|
|
13
|
+
showSelectionsTable: (data: SelectionsTableUseData) => void;
|
|
14
|
+
onSelectionsTableClosed: () => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as TableManager } from '../../../../constructor';
|
|
2
|
+
type Props = {
|
|
3
|
+
tableManager: TableManager;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {
|
|
6
|
+
show: (column: PageModel.TableBaseItem<any>) => Promise<void>;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, any, string, import('vue').PublicProps, any, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
package/dist/components/table/components/table-column/components/filter-zone/utils/index.d.ts
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 筛选工具
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* 过滤的类型
|
|
6
|
-
*/
|
|
7
|
-
export declare enum FilterItemTypeEnum {
|
|
8
|
-
文字 = "string",
|
|
9
|
-
数字 = "number",
|
|
10
|
-
日期 = "date",
|
|
11
|
-
布尔值 = "boolean",
|
|
12
|
-
多选值 = "list",
|
|
13
|
-
单选值 = "select"
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* 比较模式
|
|
17
|
-
*/
|
|
18
|
-
export declare enum FilterMatchModeEnum {
|
|
19
|
-
包含 = "contain",
|
|
20
|
-
不包含 = "notContain",
|
|
21
|
-
开始于 = "StartsWith",
|
|
22
|
-
结束于 = "EndsWith",
|
|
23
|
-
等于 = "eq",
|
|
24
|
-
不等于 = "neq",
|
|
25
|
-
大于 = "gt",
|
|
26
|
-
小于 = "lt",
|
|
27
|
-
大于等于 = "ge",
|
|
28
|
-
小于等于 = "le",
|
|
29
|
-
是null值 = "isNull",
|
|
30
|
-
不是null值 = "isNotNull",
|
|
31
|
-
是空字符串 = "isEmptyString",
|
|
32
|
-
不是空字符串 = "isNotEmptyString",
|
|
33
|
-
是空值 = "isEmpty",
|
|
34
|
-
不是空值 = "isNotEmpty"
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* 比较选项
|
|
38
|
-
*/
|
|
39
|
-
export declare let compareOptions: {
|
|
40
|
-
string: {
|
|
41
|
-
label: string;
|
|
42
|
-
value: FilterMatchModeEnum;
|
|
43
|
-
}[];
|
|
44
|
-
number: {
|
|
45
|
-
label: string;
|
|
46
|
-
value: FilterMatchModeEnum;
|
|
47
|
-
}[];
|
|
48
|
-
date: {
|
|
49
|
-
label: string;
|
|
50
|
-
value: FilterMatchModeEnum;
|
|
51
|
-
}[];
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* 修改比较选项
|
|
55
|
-
*/
|
|
56
|
-
export declare const updateCompareOptions: (_compareOptions: {
|
|
57
|
-
[key: string]: {
|
|
58
|
-
label: string;
|
|
59
|
-
value: any;
|
|
60
|
-
}[];
|
|
61
|
-
}) => void;
|
|
62
|
-
/**
|
|
63
|
-
* 不需要值的选项
|
|
64
|
-
*/
|
|
65
|
-
export declare let noValueOptions: FilterMatchModeEnum[];
|
|
66
|
-
/**
|
|
67
|
-
* 修改不需要值的选项
|
|
68
|
-
*/
|
|
69
|
-
export declare const updateCompareNoValueOptions: (_noValueOptions: string[]) => void;
|
|
1
|
+
/**
|
|
2
|
+
* 筛选工具
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 过滤的类型
|
|
6
|
+
*/
|
|
7
|
+
export declare enum FilterItemTypeEnum {
|
|
8
|
+
文字 = "string",
|
|
9
|
+
数字 = "number",
|
|
10
|
+
日期 = "date",
|
|
11
|
+
布尔值 = "boolean",
|
|
12
|
+
多选值 = "list",
|
|
13
|
+
单选值 = "select"
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 比较模式
|
|
17
|
+
*/
|
|
18
|
+
export declare enum FilterMatchModeEnum {
|
|
19
|
+
包含 = "contain",
|
|
20
|
+
不包含 = "notContain",
|
|
21
|
+
开始于 = "StartsWith",
|
|
22
|
+
结束于 = "EndsWith",
|
|
23
|
+
等于 = "eq",
|
|
24
|
+
不等于 = "neq",
|
|
25
|
+
大于 = "gt",
|
|
26
|
+
小于 = "lt",
|
|
27
|
+
大于等于 = "ge",
|
|
28
|
+
小于等于 = "le",
|
|
29
|
+
是null值 = "isNull",
|
|
30
|
+
不是null值 = "isNotNull",
|
|
31
|
+
是空字符串 = "isEmptyString",
|
|
32
|
+
不是空字符串 = "isNotEmptyString",
|
|
33
|
+
是空值 = "isEmpty",
|
|
34
|
+
不是空值 = "isNotEmpty"
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 比较选项
|
|
38
|
+
*/
|
|
39
|
+
export declare let compareOptions: {
|
|
40
|
+
string: {
|
|
41
|
+
label: string;
|
|
42
|
+
value: FilterMatchModeEnum;
|
|
43
|
+
}[];
|
|
44
|
+
number: {
|
|
45
|
+
label: string;
|
|
46
|
+
value: FilterMatchModeEnum;
|
|
47
|
+
}[];
|
|
48
|
+
date: {
|
|
49
|
+
label: string;
|
|
50
|
+
value: FilterMatchModeEnum;
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* 修改比较选项
|
|
55
|
+
*/
|
|
56
|
+
export declare const updateCompareOptions: (_compareOptions: {
|
|
57
|
+
[key: string]: {
|
|
58
|
+
label: string;
|
|
59
|
+
value: any;
|
|
60
|
+
}[];
|
|
61
|
+
}) => void;
|
|
62
|
+
/**
|
|
63
|
+
* 不需要值的选项
|
|
64
|
+
*/
|
|
65
|
+
export declare let noValueOptions: FilterMatchModeEnum[];
|
|
66
|
+
/**
|
|
67
|
+
* 修改不需要值的选项
|
|
68
|
+
*/
|
|
69
|
+
export declare const updateCompareNoValueOptions: (_noValueOptions: string[]) => void;
|