@unizhen/ui 0.0.1 → 0.0.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/lib/components/actionButton/factory.d.ts +3 -3
- package/lib/components/actionButton/function.d.ts +2 -2
- package/lib/components/actionButton/index.d.ts +2 -2
- package/lib/components/actionButton/index.vue.d.ts +4 -4
- package/lib/components/actionButton/interface.d.ts +4 -4
- package/lib/components/back/index.d.ts +1 -1
- package/lib/components/camera/index.d.ts +1 -1
- package/lib/components/circle/index.d.ts +1 -1
- package/lib/components/create.d.ts +3 -3
- package/lib/components/form/draggable.vue.d.ts +13 -13
- package/lib/components/form/index.d.ts +6 -6
- package/lib/components/form/index.vue.d.ts +13 -13
- package/lib/components/form/interface.d.ts +20 -20
- package/lib/components/form/item.vue.d.ts +6 -6
- package/lib/components/form/upload.vue.d.ts +4 -4
- package/lib/components/icon/index.d.ts +1 -1
- package/lib/components/numberRoll/index.d.ts +1 -1
- package/lib/components/preset.d.ts +2 -2
- package/lib/components/searchBar/components/index.d.ts +1 -1
- package/lib/components/searchBar/index.d.ts +3 -3
- package/lib/components/searchBar/index.vue.d.ts +12 -12
- package/lib/components/searchBar/interface.d.ts +14 -14
- package/lib/components/searchBar/mobile.vue.d.ts +12 -12
- package/lib/components/spin/index.d.ts +1 -1
- package/lib/components/table/child.vue.d.ts +4 -4
- package/lib/components/table/child_quest.vue.d.ts +4 -4
- package/lib/components/table/drawer.vue.d.ts +1 -1
- package/lib/components/table/factory.d.ts +5 -5
- package/lib/components/table/index.d.ts +6 -6
- package/lib/components/table/index.vue.d.ts +21 -21
- package/lib/components/table/interface.d.ts +17 -17
- package/lib/components/table/mobile.vue.d.ts +1 -1
- package/lib/components/thumbnail/index.d.ts +1 -1
- package/lib/components/wrap/index.d.ts +1 -1
- package/lib/ui.css +1 -1
- package/lib/ui.js +1485 -1485
- package/package.json +1 -1
- package/volar.d.ts +12 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, Ref, VNodeChild, ComponentOptionsMixin, PublicProps, Component, ComputedRef, ComponentProvideOptions, SlotsType, CSSProperties, HTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, VNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { IUzSearchBars } from './interface';
|
|
3
3
|
import { ObjectKey, Fn } from 'components/interface';
|
|
4
4
|
import { Depth } from 'naive-ui/es/icon/src/Icon';
|
|
5
5
|
import { Theme } from 'naive-ui/es/_mixins';
|
|
@@ -16,7 +16,7 @@ import { TreeMate, TreeNode, CheckStrategy, Key } from 'treemate';
|
|
|
16
16
|
import { Size, OnUpdateValue } from 'naive-ui/es/input/src/interface';
|
|
17
17
|
import { InternalRenderBody } from 'naive-ui/es/popover/src/interface';
|
|
18
18
|
import { TriggerEventHandlers } from 'naive-ui/es/popover/src/Popover';
|
|
19
|
-
import {
|
|
19
|
+
import { IUzFormItem } from '..';
|
|
20
20
|
import { ScrollTo, ScrollBy } from 'naive-ui/es/_internal/scrollbar/src/Scrollbar';
|
|
21
21
|
import { Size, OnUpdateValue } from 'naive-ui/es/input-number/src/interface';
|
|
22
22
|
import { Value, FormattedValue, DefaultTime, Shortcuts, IsDateDisabled, IsTimeDisabled, FirstDayOfWeek, OnConfirm, OnUpdateFormattedValue, OnUpdateValue, PanelRef } from 'naive-ui/es/date-picker/src/interface';
|
|
@@ -36,7 +36,7 @@ import { MenuRenderOption, MenuIgnoredOption } from 'naive-ui/es/menu/src/interf
|
|
|
36
36
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
37
37
|
data: {
|
|
38
38
|
required: true;
|
|
39
|
-
type: PropType<
|
|
39
|
+
type: PropType<IUzSearchBars>;
|
|
40
40
|
default: () => never[];
|
|
41
41
|
};
|
|
42
42
|
id: {
|
|
@@ -553,7 +553,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
553
553
|
unique: number;
|
|
554
554
|
fieldValueRule?: string | undefined;
|
|
555
555
|
sourceFn: string;
|
|
556
|
-
})[],
|
|
556
|
+
})[], IUzSearchBars | ({
|
|
557
557
|
defaultValue?: string | undefined;
|
|
558
558
|
key: string;
|
|
559
559
|
input: "input";
|
|
@@ -1068,7 +1068,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1068
1068
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:loading")[], "on-update:value" | "update:loading", PublicProps, Readonly< ExtractPropTypes<{
|
|
1069
1069
|
data: {
|
|
1070
1070
|
required: true;
|
|
1071
|
-
type: PropType<
|
|
1071
|
+
type: PropType<IUzSearchBars>;
|
|
1072
1072
|
default: () => never[];
|
|
1073
1073
|
};
|
|
1074
1074
|
id: {
|
|
@@ -1092,7 +1092,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1092
1092
|
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
1093
1093
|
}>, {
|
|
1094
1094
|
loading: boolean;
|
|
1095
|
-
data:
|
|
1095
|
+
data: IUzSearchBars;
|
|
1096
1096
|
cache: number;
|
|
1097
1097
|
id: string;
|
|
1098
1098
|
cols: number;
|
|
@@ -4835,10 +4835,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4835
4835
|
internalExtraClass: string[];
|
|
4836
4836
|
arrow: boolean | undefined;
|
|
4837
4837
|
}, SlotsType<PopoverSlots>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
4838
|
-
|
|
4838
|
+
UzFormItem: DefineComponent<ExtractPropTypes<{
|
|
4839
4839
|
item: {
|
|
4840
4840
|
required: true;
|
|
4841
|
-
type: PropType<
|
|
4841
|
+
type: PropType< IUzFormItem>;
|
|
4842
4842
|
default: () => {};
|
|
4843
4843
|
};
|
|
4844
4844
|
formValue: {
|
|
@@ -4862,9 +4862,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4862
4862
|
isMobile: ComputedRef<boolean>;
|
|
4863
4863
|
showDropdown: Ref<boolean, boolean>;
|
|
4864
4864
|
dropdownOptions: Ref<any[], any[]>;
|
|
4865
|
-
updateValue: (item:
|
|
4865
|
+
updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
|
|
4866
4866
|
selectFallback: (value: any) => any | boolean;
|
|
4867
|
-
showPlaceholder: (item:
|
|
4867
|
+
showPlaceholder: (item: IUzFormItem) => any;
|
|
4868
4868
|
checkDisabled: () => boolean;
|
|
4869
4869
|
checkClearable: () => any;
|
|
4870
4870
|
checkReadonly: () => boolean;
|
|
@@ -4875,7 +4875,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4875
4875
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
4876
4876
|
item: {
|
|
4877
4877
|
required: true;
|
|
4878
|
-
type: PropType<
|
|
4878
|
+
type: PropType< IUzFormItem>;
|
|
4879
4879
|
default: () => {};
|
|
4880
4880
|
};
|
|
4881
4881
|
formValue: {
|
|
@@ -4899,7 +4899,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4899
4899
|
disabled: boolean;
|
|
4900
4900
|
clearable: boolean;
|
|
4901
4901
|
status: number;
|
|
4902
|
-
item:
|
|
4902
|
+
item: IUzFormItem;
|
|
4903
4903
|
formValue: ObjectKey;
|
|
4904
4904
|
}, {}, {
|
|
4905
4905
|
NIcon: DefineComponent<ExtractPropTypes<{
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IUzFormItemInput, IUzFormItemNumber, IUzFormItemDatePicker, IUzFormItemSelect, IUzFormItemCascader, IUzFormItemTime } from '../form/interface';
|
|
2
2
|
import { SelectGroupOption } from 'naive-ui';
|
|
3
3
|
type SelectOption = any;
|
|
4
4
|
export type SelectMixedOption = SelectOption | SelectGroupOption;
|
|
5
5
|
type unUse = 'rule' | 'edit';
|
|
6
6
|
type unUseGroup = 'rule' | 'edit' | 'label' | 'key';
|
|
7
|
-
export interface Input extends Omit<
|
|
7
|
+
export interface Input extends Omit<IUzFormItemInput, unUse> {
|
|
8
8
|
defaultValue?: string;
|
|
9
9
|
}
|
|
10
|
-
export interface InputNumber extends Omit<
|
|
10
|
+
export interface InputNumber extends Omit<IUzFormItemNumber, unUse> {
|
|
11
11
|
defaultValue?: number;
|
|
12
12
|
}
|
|
13
|
-
export interface InputDatePicker extends Omit<
|
|
13
|
+
export interface InputDatePicker extends Omit<IUzFormItemDatePicker, unUse> {
|
|
14
14
|
defaultValue?: number | [number, number];
|
|
15
15
|
}
|
|
16
|
-
export interface InputSelect extends Omit<
|
|
16
|
+
export interface InputSelect extends Omit<IUzFormItemSelect, unUse> {
|
|
17
17
|
defaultValue?: string | number | Array<string | number>;
|
|
18
18
|
}
|
|
19
|
-
export interface InputCascader extends Omit<
|
|
19
|
+
export interface InputCascader extends Omit<IUzFormItemCascader, unUse> {
|
|
20
20
|
defaultValue?: string | number | Array<string | number>;
|
|
21
21
|
}
|
|
22
|
-
export interface InputTime extends Omit<
|
|
22
|
+
export interface InputTime extends Omit<IUzFormItemTime, unUse> {
|
|
23
23
|
defaultValue?: number;
|
|
24
24
|
}
|
|
25
|
-
export interface GInput extends Omit<
|
|
25
|
+
export interface GInput extends Omit<IUzFormItemInput, unUseGroup> {
|
|
26
26
|
defaultValue?: string;
|
|
27
27
|
}
|
|
28
|
-
export interface GInputNumber extends Omit<
|
|
28
|
+
export interface GInputNumber extends Omit<IUzFormItemNumber, unUseGroup> {
|
|
29
29
|
defaultValue?: number;
|
|
30
30
|
}
|
|
31
|
-
export interface GInputDatePicker extends Omit<
|
|
31
|
+
export interface GInputDatePicker extends Omit<IUzFormItemDatePicker, unUseGroup> {
|
|
32
32
|
defaultValue?: number | [number, number];
|
|
33
33
|
}
|
|
34
|
-
export interface GInputSelect extends Omit<
|
|
34
|
+
export interface GInputSelect extends Omit<IUzFormItemSelect, unUseGroup> {
|
|
35
35
|
defaultValue?: string | number | Array<string | number>;
|
|
36
36
|
}
|
|
37
|
-
export interface GInputCascader extends Omit<
|
|
37
|
+
export interface GInputCascader extends Omit<IUzFormItemCascader, unUseGroup> {
|
|
38
38
|
defaultValue?: string | number | Array<string | number>;
|
|
39
39
|
}
|
|
40
|
-
export interface GInputTime extends Omit<
|
|
40
|
+
export interface GInputTime extends Omit<IUzFormItemTime, unUseGroup> {
|
|
41
41
|
defaultValue?: number;
|
|
42
42
|
}
|
|
43
43
|
export type ISearchBar = Input | InputNumber | InputDatePicker | InputSelect | InputCascader | InputTime;
|
|
44
|
-
export type
|
|
44
|
+
export type IUzSearchBars = ISearchBar[];
|
|
45
45
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, Ref, VNodeChild, ComponentOptionsMixin, PublicProps, Component, ComputedRef, ComponentProvideOptions, SlotsType, CSSProperties, TextareaHTMLAttributes, InputHTMLAttributes, HTMLAttributes, VNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { IUzSearchBars } from './interface';
|
|
3
3
|
import { ObjectKey, Fn } from 'components/interface';
|
|
4
4
|
import { Depth } from 'naive-ui/es/icon/src/Icon';
|
|
5
5
|
import { Theme } from 'naive-ui/es/_mixins';
|
|
@@ -11,7 +11,7 @@ import { RtlItem } from 'naive-ui/es/config-provider/src/internal-interface';
|
|
|
11
11
|
import { ButtonSlots, DrawerPlacement, ThemeCommonVars, DrawerContentSlots, SelectOption, FormValidationStatus, InputSlots, SelectFilter, PopoverPlacement, PopoverProps, SelectRenderTag, SelectNodeProps, SelectGroupOption, SelectSlots, InputNumberSlots, TimePickerProps, FollowerPlacement, DatePickerSlots, SwitchSlots, ColorPickerSlots, CheckboxInst, CascaderOption, CascaderSlots, PopoverInst, PopoverTrigger, Placement, TooltipSlots, DropdownMenuProps, DropdownNodeProps, MenuOption, MenuGroupOption } from 'naive-ui';
|
|
12
12
|
import { VResizeObserverOnResize, FollowerInst, FollowerPlacement, VVirtualListScrollTo } from 'vueuc';
|
|
13
13
|
import { Size, OnUpdateValue } from 'naive-ui/es/input/src/interface';
|
|
14
|
-
import {
|
|
14
|
+
import { IUzFormItem } from '..';
|
|
15
15
|
import { ScrollTo, ScrollBy } from 'naive-ui/es/_internal/scrollbar/src/Scrollbar';
|
|
16
16
|
import { SelectMixedOption, Value, Size, SelectFallbackOption, OnUpdateValue, SelectIgnoredOption, SelectBaseOption, ValueAtom } from 'naive-ui/es/select/src/interface';
|
|
17
17
|
import { RenderLabel, RenderOption } from 'naive-ui/es/_internal/select-menu/src/interface';
|
|
@@ -35,7 +35,7 @@ import { MenuRenderOption, MenuIgnoredOption } from 'naive-ui/es/menu/src/interf
|
|
|
35
35
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
36
36
|
data: {
|
|
37
37
|
required: true;
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<IUzSearchBars>;
|
|
39
39
|
default: () => never[];
|
|
40
40
|
};
|
|
41
41
|
id: {
|
|
@@ -549,7 +549,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
549
549
|
unique: number;
|
|
550
550
|
fieldValueRule?: string | undefined;
|
|
551
551
|
sourceFn: string;
|
|
552
|
-
})[],
|
|
552
|
+
})[], IUzSearchBars | ({
|
|
553
553
|
defaultValue?: string | undefined;
|
|
554
554
|
key: string;
|
|
555
555
|
input: "input";
|
|
@@ -1051,7 +1051,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1051
1051
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:loading")[], "on-update:value" | "update:loading", PublicProps, Readonly< ExtractPropTypes<{
|
|
1052
1052
|
data: {
|
|
1053
1053
|
required: true;
|
|
1054
|
-
type: PropType<
|
|
1054
|
+
type: PropType<IUzSearchBars>;
|
|
1055
1055
|
default: () => never[];
|
|
1056
1056
|
};
|
|
1057
1057
|
id: {
|
|
@@ -1071,7 +1071,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1071
1071
|
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
1072
1072
|
}>, {
|
|
1073
1073
|
loading: boolean;
|
|
1074
|
-
data:
|
|
1074
|
+
data: IUzSearchBars;
|
|
1075
1075
|
cache: number;
|
|
1076
1076
|
id: string;
|
|
1077
1077
|
}, {}, {
|
|
@@ -3687,10 +3687,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
3687
3687
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3688
3688
|
Refresh: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
3689
3689
|
Search: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
3690
|
-
|
|
3690
|
+
UzFormItem: DefineComponent<ExtractPropTypes<{
|
|
3691
3691
|
item: {
|
|
3692
3692
|
required: true;
|
|
3693
|
-
type: PropType<
|
|
3693
|
+
type: PropType< IUzFormItem>;
|
|
3694
3694
|
default: () => {};
|
|
3695
3695
|
};
|
|
3696
3696
|
formValue: {
|
|
@@ -3714,9 +3714,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
3714
3714
|
isMobile: ComputedRef<boolean>;
|
|
3715
3715
|
showDropdown: Ref<boolean, boolean>;
|
|
3716
3716
|
dropdownOptions: Ref<any[], any[]>;
|
|
3717
|
-
updateValue: (item:
|
|
3717
|
+
updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
|
|
3718
3718
|
selectFallback: (value: any) => any | boolean;
|
|
3719
|
-
showPlaceholder: (item:
|
|
3719
|
+
showPlaceholder: (item: IUzFormItem) => any;
|
|
3720
3720
|
checkDisabled: () => boolean;
|
|
3721
3721
|
checkClearable: () => any;
|
|
3722
3722
|
checkReadonly: () => boolean;
|
|
@@ -3727,7 +3727,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
3727
3727
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
3728
3728
|
item: {
|
|
3729
3729
|
required: true;
|
|
3730
|
-
type: PropType<
|
|
3730
|
+
type: PropType< IUzFormItem>;
|
|
3731
3731
|
default: () => {};
|
|
3732
3732
|
};
|
|
3733
3733
|
formValue: {
|
|
@@ -3751,7 +3751,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
3751
3751
|
disabled: boolean;
|
|
3752
3752
|
clearable: boolean;
|
|
3753
3753
|
status: number;
|
|
3754
|
-
item:
|
|
3754
|
+
item: IUzFormItem;
|
|
3755
3755
|
formValue: ObjectKey;
|
|
3756
3756
|
}, {}, {
|
|
3757
3757
|
NIcon: DefineComponent<ExtractPropTypes<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UzSpin } from './index.vue';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, VNodeChild, ComputedRef, SlotsType, ComponentProvideOptions, Component } from 'vue';
|
|
2
2
|
import { ObjectKey } from '../interface';
|
|
3
|
-
import {
|
|
3
|
+
import { IUzFormItemSubTable } from '../form';
|
|
4
4
|
import { Size, Type } from 'naive-ui/es/button/src/interface';
|
|
5
5
|
import { MaybeArray } from 'naive-ui/es/_utils';
|
|
6
6
|
import { Theme } from 'naive-ui/es/_mixins';
|
|
@@ -20,7 +20,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
20
20
|
};
|
|
21
21
|
item: {
|
|
22
22
|
required: true;
|
|
23
|
-
type: PropType<
|
|
23
|
+
type: PropType<IUzFormItemSubTable>;
|
|
24
24
|
default: () => {};
|
|
25
25
|
};
|
|
26
26
|
status: {
|
|
@@ -48,7 +48,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
48
48
|
};
|
|
49
49
|
item: {
|
|
50
50
|
required: true;
|
|
51
|
-
type: PropType<
|
|
51
|
+
type: PropType<IUzFormItemSubTable>;
|
|
52
52
|
default: () => {};
|
|
53
53
|
};
|
|
54
54
|
status: {
|
|
@@ -60,7 +60,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
60
60
|
}>, {
|
|
61
61
|
value: any[];
|
|
62
62
|
status: number;
|
|
63
|
-
item:
|
|
63
|
+
item: IUzFormItemSubTable;
|
|
64
64
|
}, {}, {
|
|
65
65
|
NButton: DefineComponent<ExtractPropTypes<{
|
|
66
66
|
readonly color: StringConstructor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, VNodeChild, ComputedRef, SlotsType, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { ObjectKey } from '../interface';
|
|
3
|
-
import {
|
|
3
|
+
import { IUzFormItemSubTable } from '../form';
|
|
4
4
|
import { TableBaseColumn, ColumnKey, TableColumns, RowData, DataTableHeightForRow, RenderExpandIcon, DataTableOnLoad, OnUpdateSorter, OnUpdateFilters, OnUpdateCheckedRowKeys, OnUpdateExpandedRowKeys, FilterState, SortOrder, CsvOptionsType, MainTableRef, TmNode } from 'naive-ui/es/data-table/src/interface';
|
|
5
5
|
import { PaginationProps } from 'naive-ui/es/pagination';
|
|
6
6
|
import { CreateRowClassName, CreateRowProps, CreateRowKey, CreateSummary, DataTableRowKey, PopoverProps, ScrollbarProps, DataTableGetCsvCell, DataTableGetCsvHeader, PaginationProps, ThemeCommonVars, TableColumns, RowData, DataTableSlots } from 'naive-ui';
|
|
@@ -17,7 +17,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
17
17
|
};
|
|
18
18
|
item: {
|
|
19
19
|
required: true;
|
|
20
|
-
type: PropType<
|
|
20
|
+
type: PropType<IUzFormItemSubTable>;
|
|
21
21
|
default: () => {};
|
|
22
22
|
};
|
|
23
23
|
}>, {
|
|
@@ -37,13 +37,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
37
37
|
};
|
|
38
38
|
item: {
|
|
39
39
|
required: true;
|
|
40
|
-
type: PropType<
|
|
40
|
+
type: PropType<IUzFormItemSubTable>;
|
|
41
41
|
default: () => {};
|
|
42
42
|
};
|
|
43
43
|
}>> & Readonly<{
|
|
44
44
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
}>, {
|
|
46
|
-
item:
|
|
46
|
+
item: IUzFormItemSubTable;
|
|
47
47
|
formValue: ObjectKey;
|
|
48
48
|
}, {}, {
|
|
49
49
|
NDataTable: DefineComponent<ExtractPropTypes<{
|
|
@@ -2362,7 +2362,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
2362
2362
|
rotate: boolean;
|
|
2363
2363
|
spinning: boolean;
|
|
2364
2364
|
}, SlotsType<SpinSlots>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2365
|
-
|
|
2365
|
+
UzOcr: DefineComponent<{}, {
|
|
2366
2366
|
ocrRef: Ref<any, any>;
|
|
2367
2367
|
text: Ref<string[], string[]>;
|
|
2368
2368
|
ocrText: Ref<string, string>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ObjectKey, Fn } from '../interface';
|
|
2
2
|
import { ITrigger, ITableOptions } from './interface';
|
|
3
|
-
import {
|
|
3
|
+
import { IUzFormItem, IUzFormItems, ISearch } from '../form';
|
|
4
4
|
import { VNodeChild } from 'vue';
|
|
5
5
|
export declare function fnClearFetchMap(): void;
|
|
6
6
|
export declare function fnGetTableData(id: string): Promise<ObjectKey>;
|
|
7
|
-
export declare const fnTableSimplify: (columns:
|
|
7
|
+
export declare const fnTableSimplify: (columns: IUzFormItems) => {
|
|
8
8
|
i: "number" | "color" | "group" | "input" | "select" | "time" | "switch" | "upload" | "date" | "auto" | "cascader" | "checkbox" | "divider" | "filling" | "subTable";
|
|
9
9
|
l: string;
|
|
10
10
|
k: string;
|
|
@@ -97,13 +97,13 @@ export declare const fnOptionSimplify: (option: ITableOptions) => {
|
|
|
97
97
|
r: string;
|
|
98
98
|
};
|
|
99
99
|
export declare const fnOptionReduction: (simplify?: ObjectKey) => ITableOptions;
|
|
100
|
-
export declare function fnPrepareFormData(items:
|
|
100
|
+
export declare function fnPrepareFormData(items: IUzFormItems, formData?: ObjectKey | any[], formValues?: () => ObjectKey): Promise<{
|
|
101
101
|
form: ObjectKey;
|
|
102
102
|
formDefaultValue: ObjectKey;
|
|
103
103
|
fillingDefaultValue: ObjectKey;
|
|
104
104
|
fillingDefaultArray: ObjectKey[];
|
|
105
105
|
}>;
|
|
106
|
-
export declare function fnPrepareTableData(items:
|
|
106
|
+
export declare function fnPrepareTableData(items: IUzFormItems, child?: boolean, status?: number, formValues?: () => void, modules?: {}): Promise<{
|
|
107
107
|
tableColumns: any[];
|
|
108
108
|
search: {
|
|
109
109
|
input: "number" | "color" | "group" | "input" | "select" | "time" | "date" | "auto" | "cascader" | "checkbox" | "filling";
|
|
@@ -114,7 +114,7 @@ export declare function fnPrepareTableData(items: IQxFormItems, child?: boolean,
|
|
|
114
114
|
placeholder: string | (() => string);
|
|
115
115
|
filterable: boolean;
|
|
116
116
|
type: any;
|
|
117
|
-
children:
|
|
117
|
+
children: IUzFormItem[];
|
|
118
118
|
} | {
|
|
119
119
|
placeholder: string | (() => string);
|
|
120
120
|
filterable: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
1
|
+
export { default as UzTable } from './index.vue';
|
|
2
|
+
export { default as UzTableChild } from './child.vue';
|
|
3
|
+
export { default as UzTableQuestChild } from './child_quest.vue';
|
|
4
|
+
export { default as UzTableDrawer } from './drawer.vue';
|
|
5
|
+
export { default as UzTableMobile } from './mobile.vue';
|
|
6
6
|
export { fnTableSimplify, fnTableReduction, fnTriggersSimplify, fnTriggersReduction, fnOptionSimplify, fnOptionReduction, fnGetTableData, fnPrepareFormData, fnPrepareTableData } from './factory';
|
|
7
|
-
export type {
|
|
7
|
+
export type { IUzTableSearch, IUzDataTableColumn, IUzDataTableColumns, IUzDataTableColumnEdit } from './interface';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, Ref, VNodeChild, ComputedRef, ComponentOptionsMixin, PublicProps, SlotsType, ComponentProvideOptions, CSSProperties, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, InputHTMLAttributes } from 'vue';
|
|
2
2
|
import { DataTableSortState, PaginationInfo, CreateRowClassName, CreateRowProps, CreateRowKey, CreateSummary, DataTableRowKey, PopoverProps, ScrollbarProps, DataTableGetCsvCell, DataTableGetCsvHeader, PaginationProps, ThemeCommonVars, TableColumns, RowData, DataTableSlots, PopoverTrigger, PopoverPlacement, PopoverSlots, ButtonSlots, DrawerPlacement, DrawerContentSlots, CheckboxInst, SpinSlots, PopoverInst, EllipsisSlots, UploadFileInfo, UploadOnChange, UploadOnRemove, UploadOnFinish, UploadOnDownload, UploadSettledFileInfo, ImageGroupProps } from 'naive-ui';
|
|
3
3
|
import { ObjectKey, Fn } from '../interface';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { IUzTableQuery, ITableOptions } from './interface';
|
|
5
|
+
import { IUzSearchBars } from '../searchBar';
|
|
6
|
+
import { IUzActionButton } from '../actionButton';
|
|
7
|
+
import { IUzFormItems } from '../form';
|
|
8
8
|
import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
|
|
9
9
|
import { TableBaseColumn, ColumnKey, TableColumns, RowData, DataTableHeightForRow, RenderExpandIcon, DataTableOnLoad, OnUpdateSorter, OnUpdateFilters, OnUpdateCheckedRowKeys, OnUpdateExpandedRowKeys, FilterState, SortOrder, CsvOptionsType, MainTableRef, TmNode } from 'naive-ui/es/data-table/src/interface';
|
|
10
10
|
import { PaginationProps } from 'naive-ui/es/pagination';
|
|
@@ -83,15 +83,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
83
83
|
default: boolean;
|
|
84
84
|
};
|
|
85
85
|
columns: {
|
|
86
|
-
type: PropType<
|
|
86
|
+
type: PropType<IUzFormItems>;
|
|
87
87
|
default: undefined;
|
|
88
88
|
};
|
|
89
89
|
actions: {
|
|
90
|
-
type: PropType<
|
|
90
|
+
type: PropType<IUzActionButton[]>;
|
|
91
91
|
default: undefined;
|
|
92
92
|
};
|
|
93
93
|
suffixes: {
|
|
94
|
-
type: PropType<
|
|
94
|
+
type: PropType<IUzActionButton[]>;
|
|
95
95
|
default: undefined;
|
|
96
96
|
};
|
|
97
97
|
summary: {
|
|
@@ -189,7 +189,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
189
189
|
prefix?: ((info: PaginationInfo) => VNodeChild) | undefined;
|
|
190
190
|
suffix?: ((info: PaginationInfo) => VNodeChild) | undefined;
|
|
191
191
|
};
|
|
192
|
-
},
|
|
192
|
+
}, IUzTableQuery | {
|
|
193
193
|
[x: string]: any;
|
|
194
194
|
query: {
|
|
195
195
|
page: number;
|
|
@@ -700,7 +700,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
700
700
|
unique: number;
|
|
701
701
|
fieldValueRule?: string | undefined;
|
|
702
702
|
sourceFn: string;
|
|
703
|
-
})[],
|
|
703
|
+
})[], IUzSearchBars | ({
|
|
704
704
|
defaultValue?: string | undefined;
|
|
705
705
|
key: string;
|
|
706
706
|
input: "input";
|
|
@@ -1250,7 +1250,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1250
1250
|
footer?: boolean | undefined;
|
|
1251
1251
|
width?: string | undefined;
|
|
1252
1252
|
action?: string | undefined;
|
|
1253
|
-
})[],
|
|
1253
|
+
})[], IUzActionButton[] | ({
|
|
1254
1254
|
type: "normal";
|
|
1255
1255
|
key: string;
|
|
1256
1256
|
disabled?: (boolean | ((rowData?: ObjectKey, rowIndex?: number) => boolean) | string) | undefined;
|
|
@@ -1305,7 +1305,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1305
1305
|
pageSorter: (options: DataTableSortState | DataTableSortState | null) => void;
|
|
1306
1306
|
pinChange: (element: any) => void;
|
|
1307
1307
|
showChange: (element: any) => void;
|
|
1308
|
-
submit: (value:
|
|
1308
|
+
submit: (value: IUzTableQuery) => void;
|
|
1309
1309
|
handleAdd: () => void;
|
|
1310
1310
|
handleColumnChange: () => void;
|
|
1311
1311
|
handleCheckRowKeys: (keys: Array<string | number>, rows: ObjectKey[], meta: {
|
|
@@ -1315,7 +1315,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1315
1315
|
drawerCancel: () => void;
|
|
1316
1316
|
drawerSubmit: () => void;
|
|
1317
1317
|
checkRole: (key: string) => boolean;
|
|
1318
|
-
handleSuffixClick: (item:
|
|
1318
|
+
handleSuffixClick: (item: IUzActionButton) => void;
|
|
1319
1319
|
rebuild: () => Promise<void>;
|
|
1320
1320
|
summaryFn: (pageData: ObjectKey) => any;
|
|
1321
1321
|
handleMobileCheckRowKeys: (keys: Array<string | number>, rows: ObjectKey[]) => void;
|
|
@@ -1379,15 +1379,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1379
1379
|
default: boolean;
|
|
1380
1380
|
};
|
|
1381
1381
|
columns: {
|
|
1382
|
-
type: PropType<
|
|
1382
|
+
type: PropType<IUzFormItems>;
|
|
1383
1383
|
default: undefined;
|
|
1384
1384
|
};
|
|
1385
1385
|
actions: {
|
|
1386
|
-
type: PropType<
|
|
1386
|
+
type: PropType<IUzActionButton[]>;
|
|
1387
1387
|
default: undefined;
|
|
1388
1388
|
};
|
|
1389
1389
|
suffixes: {
|
|
1390
|
-
type: PropType<
|
|
1390
|
+
type: PropType<IUzActionButton[]>;
|
|
1391
1391
|
default: undefined;
|
|
1392
1392
|
};
|
|
1393
1393
|
summary: {
|
|
@@ -1441,11 +1441,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1441
1441
|
summary: Fn<any, any>;
|
|
1442
1442
|
height: string | number;
|
|
1443
1443
|
options: ITableOptions;
|
|
1444
|
-
columns:
|
|
1444
|
+
columns: IUzFormItems;
|
|
1445
1445
|
fetch: Fn<any, any>;
|
|
1446
1446
|
id: string;
|
|
1447
1447
|
selection: 1 | 2;
|
|
1448
|
-
actions:
|
|
1448
|
+
actions: IUzActionButton[];
|
|
1449
1449
|
child: boolean;
|
|
1450
1450
|
maxHeight: string | number;
|
|
1451
1451
|
minHeight: string | number;
|
|
@@ -1460,7 +1460,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1460
1460
|
deleteFetch: Fn<any, any>;
|
|
1461
1461
|
ruleFetch: Fn<any, any>;
|
|
1462
1462
|
addFetch: boolean | Fn<any, any>;
|
|
1463
|
-
suffixes:
|
|
1463
|
+
suffixes: IUzActionButton[];
|
|
1464
1464
|
searchCols: number;
|
|
1465
1465
|
}, {}, {
|
|
1466
1466
|
NDataTable: DefineComponent<ExtractPropTypes<{
|
|
@@ -11363,7 +11363,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
11363
11363
|
modelValue: unknown[];
|
|
11364
11364
|
componentData: Record<string, any>;
|
|
11365
11365
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
11366
|
-
|
|
11366
|
+
UzSpin: DefineComponent<ExtractPropTypes<{
|
|
11367
11367
|
value: {
|
|
11368
11368
|
type: PropType<boolean>;
|
|
11369
11369
|
default: boolean;
|
|
@@ -13160,7 +13160,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
13160
13160
|
readonly tooltip: boolean | PopoverProps;
|
|
13161
13161
|
}, SlotsType<EllipsisSlots>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
13162
13162
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
13163
|
-
|
|
13163
|
+
UzOcr: DefineComponent<{}, {
|
|
13164
13164
|
ocrRef: Ref<any, any>;
|
|
13165
13165
|
text: Ref<string[], string[]>;
|
|
13166
13166
|
ocrText: Ref<string, string>;
|
|
@@ -16603,7 +16603,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
16603
16603
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
16604
16604
|
Copy: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
16605
16605
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
16606
|
-
|
|
16606
|
+
UzIcon: DefineComponent<ExtractPropTypes<{
|
|
16607
16607
|
icon: {
|
|
16608
16608
|
required: true;
|
|
16609
16609
|
type: PropType<string | any>;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
2
|
import { Query } from '../interface';
|
|
3
|
-
import {
|
|
3
|
+
import { IUzFormItemInput, IUzFormItemNumber, IUzFormItemDatePicker, IUzFormItemSelect, IUzFormItemCascader, IUzFormItemTime } from '../form/interface';
|
|
4
4
|
import { SelectGroupOption } from 'naive-ui';
|
|
5
5
|
type SelectOption = any;
|
|
6
|
-
type TableColumnTitle<T = InternalRowData> = string | ((column:
|
|
6
|
+
type TableColumnTitle<T = InternalRowData> = string | ((column: IUzDataTableColumns<T>) => VNodeChild);
|
|
7
7
|
type ColumnKey = string | number;
|
|
8
8
|
type InternalRowData = Record<string, unknown>;
|
|
9
|
-
export type
|
|
9
|
+
export type IUzTableQuery = {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
query: Query;
|
|
12
12
|
};
|
|
13
13
|
export type SelectMixedOption = SelectOption | SelectGroupOption;
|
|
14
14
|
type unUse = 'rule' | 'edit' | 'label' | 'key';
|
|
15
|
-
export interface Input extends Omit<
|
|
15
|
+
export interface Input extends Omit<IUzFormItemInput, unUse> {
|
|
16
16
|
}
|
|
17
|
-
export interface InputNumber extends Omit<
|
|
17
|
+
export interface InputNumber extends Omit<IUzFormItemNumber, unUse> {
|
|
18
18
|
}
|
|
19
|
-
export interface InputDatePicker extends Omit<
|
|
19
|
+
export interface InputDatePicker extends Omit<IUzFormItemDatePicker, unUse> {
|
|
20
20
|
}
|
|
21
|
-
export interface InputSelect extends Omit<
|
|
21
|
+
export interface InputSelect extends Omit<IUzFormItemSelect, unUse> {
|
|
22
22
|
}
|
|
23
|
-
export interface InputCascader extends Omit<
|
|
23
|
+
export interface InputCascader extends Omit<IUzFormItemCascader, unUse> {
|
|
24
24
|
}
|
|
25
|
-
export interface InputTime extends Omit<
|
|
25
|
+
export interface InputTime extends Omit<IUzFormItemTime, unUse> {
|
|
26
26
|
}
|
|
27
|
-
export type
|
|
28
|
-
export interface
|
|
27
|
+
export type IUzTableSearch = Input | InputNumber | InputDatePicker | InputSelect | InputCascader | InputTime;
|
|
28
|
+
export interface IUzDataTableColumnType {
|
|
29
29
|
type?: 'selection' | 'expand';
|
|
30
30
|
multiple?: boolean;
|
|
31
31
|
options: string[];
|
|
32
32
|
}
|
|
33
|
-
export interface
|
|
33
|
+
export interface IUzDataTableColumnBase<T = InternalRowData> {
|
|
34
34
|
title?: TableColumnTitle<T>;
|
|
35
35
|
align?: 'left' | 'right' | 'center' | null;
|
|
36
36
|
titleAlign?: 'left' | 'right' | 'center' | null;
|
|
@@ -50,11 +50,11 @@ export interface IQxDataTableColumnBase<T = InternalRowData> {
|
|
|
50
50
|
maxWidth?: string | number;
|
|
51
51
|
render?: string | ((rowData: T, rowIndex: number) => VNodeChild);
|
|
52
52
|
source?: string;
|
|
53
|
-
search?:
|
|
53
|
+
search?: IUzTableSearch;
|
|
54
54
|
}
|
|
55
|
-
export type
|
|
56
|
-
export type
|
|
57
|
-
export interface
|
|
55
|
+
export type IUzDataTableColumn<T = InternalRowData> = IUzDataTableColumnBase<T> | IUzDataTableColumnType;
|
|
56
|
+
export type IUzDataTableColumns<T = InternalRowData> = Array<IUzDataTableColumn<T>>;
|
|
57
|
+
export interface IUzDataTableColumnEdit {
|
|
58
58
|
title: string;
|
|
59
59
|
key: string;
|
|
60
60
|
align: 'left' | 'right' | 'center' | null;
|
|
@@ -76,7 +76,7 @@ export interface IQxDataTableColumnEdit {
|
|
|
76
76
|
maxWidth?: string | number;
|
|
77
77
|
render?: string;
|
|
78
78
|
source: string;
|
|
79
|
-
search?:
|
|
79
|
+
search?: IUzTableSearch;
|
|
80
80
|
}
|
|
81
81
|
export type ITableOptions = {
|
|
82
82
|
index: 0 | 1;
|
|
@@ -4043,7 +4043,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4043
4043
|
readonly disabled: boolean | undefined;
|
|
4044
4044
|
readonly defaultValue: string | number | boolean | null;
|
|
4045
4045
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
4046
|
-
|
|
4046
|
+
UzTableMobileList: DefineComponent<ExtractPropTypes<{
|
|
4047
4047
|
tableData: {
|
|
4048
4048
|
type: PropType< ObjectKey>;
|
|
4049
4049
|
default: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UzThumbnail } from './index.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UzWrap } from './index.vue';
|