@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,6 +1,6 @@
|
|
|
1
1
|
import { ObjectKey, Fn } from '../interface';
|
|
2
|
-
import {
|
|
3
|
-
export declare const fnActionSimplify: (button:
|
|
2
|
+
import { IUzActionButton } from './interface';
|
|
3
|
+
export declare const fnActionSimplify: (button: IUzActionButton[]) => ({
|
|
4
4
|
t: number;
|
|
5
5
|
k: string;
|
|
6
6
|
d: string | boolean | ((rowData?: ObjectKey, rowIndex?: number) => boolean) | undefined;
|
|
@@ -38,4 +38,4 @@ export declare const fnActionSimplify: (button: IQxActionButton[]) => ({
|
|
|
38
38
|
z: string | Fn<any, any> | undefined;
|
|
39
39
|
}[];
|
|
40
40
|
})[];
|
|
41
|
-
export declare const fnActionReduction: (simplify: ObjectKey[]) =>
|
|
41
|
+
export declare const fnActionReduction: (simplify: ObjectKey[]) => IUzActionButton[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fn, ObjectKey } from '../interface';
|
|
2
|
-
import {
|
|
2
|
+
import { IUzActionButton } from './interface';
|
|
3
3
|
import { VNodeChild } from 'vue';
|
|
4
4
|
export declare const fnRenderAction: ({ buttons, rowData, callback, tableId, hProps }: {
|
|
5
|
-
buttons:
|
|
5
|
+
buttons: IUzActionButton[];
|
|
6
6
|
rowData?: ObjectKey;
|
|
7
7
|
callback?: Fn;
|
|
8
8
|
tableId?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UzActionButton } from './index.vue';
|
|
2
2
|
export { fnRenderAction } from './function';
|
|
3
3
|
export { fnActionSimplify, fnActionReduction } from './factory';
|
|
4
|
-
export type {
|
|
4
|
+
export type { IUzActionButton, IUzActionButtonBase } from './interface';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, VNodeChild, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { IUzActionButton } from './interface';
|
|
3
3
|
import { ObjectKey } from 'components/interface';
|
|
4
4
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
5
|
data: {
|
|
6
6
|
required: true;
|
|
7
|
-
type: PropType<
|
|
7
|
+
type: PropType<IUzActionButton[]>;
|
|
8
8
|
default: () => never[];
|
|
9
9
|
};
|
|
10
10
|
rowData: {
|
|
@@ -27,7 +27,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
27
27
|
}>, () => VNodeChild, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
28
28
|
data: {
|
|
29
29
|
required: true;
|
|
30
|
-
type: PropType<
|
|
30
|
+
type: PropType<IUzActionButton[]>;
|
|
31
31
|
default: () => never[];
|
|
32
32
|
};
|
|
33
33
|
rowData: {
|
|
@@ -48,7 +48,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
}>> & Readonly<{}>, {
|
|
51
|
-
data:
|
|
51
|
+
data: IUzActionButton[];
|
|
52
52
|
rowData: ObjectKey;
|
|
53
53
|
hProps: {
|
|
54
54
|
quaternary?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fn, ObjectKey } from '../interface';
|
|
2
|
-
export interface
|
|
2
|
+
export interface IUzActionButtonBase {
|
|
3
3
|
type: 'normal';
|
|
4
4
|
key: string;
|
|
5
5
|
disabled?: boolean | ((rowData?: ObjectKey, rowIndex?: number) => boolean) | string;
|
|
@@ -15,9 +15,9 @@ export interface IQxActionButtonBase {
|
|
|
15
15
|
action?: string;
|
|
16
16
|
onClick?: Fn | string;
|
|
17
17
|
}
|
|
18
|
-
interface
|
|
18
|
+
interface IUzActionButtonGroup extends Omit<IUzActionButtonBase, 'confirmText' | 'tooltipText' | 'onClick' | 'type'> {
|
|
19
19
|
type: 'group';
|
|
20
|
-
children:
|
|
20
|
+
children: IUzActionButtonBase[];
|
|
21
21
|
}
|
|
22
|
-
export type
|
|
22
|
+
export type IUzActionButton = IUzActionButtonBase | IUzActionButtonGroup;
|
|
23
23
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UzBack } from './index.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UzCamera } from './index.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UzCircle } from './index.vue';
|
|
@@ -7,12 +7,12 @@ export interface InstallOptions {
|
|
|
7
7
|
language?: boolean;
|
|
8
8
|
local?: 'en-US' | 'zh-CN' | 'fr-FR';
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface UzInstance {
|
|
11
11
|
version: string;
|
|
12
12
|
install: (app: App, options?: InstallOptions) => void;
|
|
13
13
|
}
|
|
14
|
-
interface
|
|
14
|
+
interface UzCreateOptions {
|
|
15
15
|
components?: ComponentType[];
|
|
16
16
|
}
|
|
17
|
-
declare function create({ components }?:
|
|
17
|
+
declare function create({ components }?: UzCreateOptions): UzInstance;
|
|
18
18
|
export default create;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, Ref, VNodeChild, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CSSProperties, LabelHTMLAttributes, ComputedRef, StyleValue, SlotsType, Component, TextareaHTMLAttributes, InputHTMLAttributes, HTMLAttributes, VNode, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { IUzFormItems, IUzFormItem } from './interface';
|
|
3
3
|
import { ObjectKey, Fn } from '../interface';
|
|
4
4
|
import { LabelAlign, LabelPlacement, Size, FormValidateMessages, FormItemValidate, FormItemInternalValidate } from 'naive-ui/es/form/src/interface';
|
|
5
5
|
import { FormRules, FormInst, FormItemRule, ButtonSlots, SelectOption, FormValidationStatus, ThemeCommonVars, 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';
|
|
@@ -35,7 +35,7 @@ import { MenuRenderOption, MenuIgnoredOption } from 'naive-ui/es/menu/src/interf
|
|
|
35
35
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
36
36
|
items: {
|
|
37
37
|
required: true;
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<IUzFormItems>;
|
|
39
39
|
default: () => never[];
|
|
40
40
|
};
|
|
41
41
|
value: {
|
|
@@ -2383,7 +2383,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
2383
2383
|
multiple: boolean;
|
|
2384
2384
|
tab: boolean;
|
|
2385
2385
|
};
|
|
2386
|
-
})[],
|
|
2386
|
+
})[], IUzFormItems | ({
|
|
2387
2387
|
input: "group";
|
|
2388
2388
|
params: {
|
|
2389
2389
|
placeholder: "";
|
|
@@ -4703,15 +4703,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4703
4703
|
linkFn: Ref<string, string>;
|
|
4704
4704
|
formItemIndex: Ref<[number, number], [number, number]>;
|
|
4705
4705
|
onDragChange: () => void;
|
|
4706
|
-
onModeClick: (item:
|
|
4706
|
+
onModeClick: (item: IUzFormItem, index: number, indexChild?: number) => void;
|
|
4707
4707
|
onCancel: () => void;
|
|
4708
4708
|
onDelete: () => void;
|
|
4709
|
-
sourceAdd: (element:
|
|
4709
|
+
sourceAdd: (element: IUzFormItem, index: number) => void;
|
|
4710
4710
|
refreshOption: (data: ObjectKey) => void;
|
|
4711
4711
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "on-select" | "on-change")[], "update:value" | "on-select" | "on-change", PublicProps, Readonly< ExtractPropTypes<{
|
|
4712
4712
|
items: {
|
|
4713
4713
|
required: true;
|
|
4714
|
-
type: PropType<
|
|
4714
|
+
type: PropType<IUzFormItems>;
|
|
4715
4715
|
default: () => never[];
|
|
4716
4716
|
};
|
|
4717
4717
|
value: {
|
|
@@ -4751,7 +4751,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4751
4751
|
value: ObjectKey;
|
|
4752
4752
|
inline: boolean;
|
|
4753
4753
|
status: number;
|
|
4754
|
-
items:
|
|
4754
|
+
items: IUzFormItems;
|
|
4755
4755
|
labelWidth: string | number;
|
|
4756
4756
|
labelAlign: "left" | "right";
|
|
4757
4757
|
labelPlacement: "left" | "top";
|
|
@@ -6876,10 +6876,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6876
6876
|
readonly vertical: boolean;
|
|
6877
6877
|
readonly titlePlacement: "left" | "right" | "center";
|
|
6878
6878
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
6879
|
-
|
|
6879
|
+
UzFormItem: DefineComponent<ExtractPropTypes<{
|
|
6880
6880
|
item: {
|
|
6881
6881
|
required: true;
|
|
6882
|
-
type: PropType<
|
|
6882
|
+
type: PropType<IUzFormItem>;
|
|
6883
6883
|
default: () => {};
|
|
6884
6884
|
};
|
|
6885
6885
|
formValue: {
|
|
@@ -6903,9 +6903,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6903
6903
|
isMobile: ComputedRef<boolean>;
|
|
6904
6904
|
showDropdown: Ref<boolean, boolean>;
|
|
6905
6905
|
dropdownOptions: Ref<any[], any[]>;
|
|
6906
|
-
updateValue: (item:
|
|
6906
|
+
updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
|
|
6907
6907
|
selectFallback: (value: any) => any | boolean;
|
|
6908
|
-
showPlaceholder: (item:
|
|
6908
|
+
showPlaceholder: (item: IUzFormItem) => any;
|
|
6909
6909
|
checkDisabled: () => boolean;
|
|
6910
6910
|
checkClearable: () => any;
|
|
6911
6911
|
checkReadonly: () => boolean;
|
|
@@ -6916,7 +6916,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6916
6916
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
6917
6917
|
item: {
|
|
6918
6918
|
required: true;
|
|
6919
|
-
type: PropType<
|
|
6919
|
+
type: PropType<IUzFormItem>;
|
|
6920
6920
|
default: () => {};
|
|
6921
6921
|
};
|
|
6922
6922
|
formValue: {
|
|
@@ -6940,7 +6940,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6940
6940
|
disabled: boolean;
|
|
6941
6941
|
clearable: boolean;
|
|
6942
6942
|
status: number;
|
|
6943
|
-
item:
|
|
6943
|
+
item: IUzFormItem;
|
|
6944
6944
|
formValue: ObjectKey;
|
|
6945
6945
|
}, {}, {
|
|
6946
6946
|
NIcon: DefineComponent<ExtractPropTypes<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export type {
|
|
1
|
+
export { default as UzForm } from './index.vue';
|
|
2
|
+
export { default as UzFormItem } from './item.vue';
|
|
3
|
+
export { default as UzDraggableForm } from './draggable.vue';
|
|
4
|
+
export { default as UzFormItemUpload } from './upload.vue';
|
|
5
|
+
export { default as UzFormItemImage } from './image.vue';
|
|
6
|
+
export type { IUzFormItemBase, IUzFormItemGroup, IUzFormItem, IUzFormItems, IUzFormItemInput, IUzFormItemAuto, IUzFormItemNumber, IUzFormItemDatePicker, IUzFormItemTime, IUzFormItemSelect, IUzFormItemCascader, IUzFormItemSwitch, IUzFormItemUpload, IUzFormItemDivider, IUzFormItemColor, IUzFormItemCheckbox, IUzFormItemSubTable, IUzFormItemFilling, ITable, ISearch, IForm } from './interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, Ref, VNodeChild, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CSSProperties, LabelHTMLAttributes, StyleValue, SlotsType, Component, TextareaHTMLAttributes, InputHTMLAttributes, HTMLAttributes, VNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { IUzFormItems, IUzFormItem } from './interface';
|
|
3
3
|
import { ObjectKey, Fn } from '../interface';
|
|
4
4
|
import { LabelAlign, LabelPlacement, Size, FormValidateMessages, FormItemValidate, FormItemInternalValidate } from 'naive-ui/es/form/src/interface';
|
|
5
5
|
import { FormRules, FormInst, FormItemRule, ButtonSlots, SelectOption, FormValidationStatus, ThemeCommonVars, 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';
|
|
@@ -35,7 +35,7 @@ import { MenuRenderOption, MenuIgnoredOption } from 'naive-ui/es/menu/src/interf
|
|
|
35
35
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
36
36
|
items: {
|
|
37
37
|
required: true;
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<IUzFormItems>;
|
|
39
39
|
default: () => never[];
|
|
40
40
|
};
|
|
41
41
|
value: {
|
|
@@ -2383,7 +2383,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
2383
2383
|
multiple: boolean;
|
|
2384
2384
|
tab: boolean;
|
|
2385
2385
|
};
|
|
2386
|
-
})[],
|
|
2386
|
+
})[], IUzFormItems | ({
|
|
2387
2387
|
input: "group";
|
|
2388
2388
|
params: {
|
|
2389
2389
|
placeholder: "";
|
|
@@ -4702,14 +4702,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4702
4702
|
link: Ref<string, string>;
|
|
4703
4703
|
linkFn: Ref<string, string>;
|
|
4704
4704
|
isMobile: ComputedRef<boolean>;
|
|
4705
|
-
sourceAdd: (element:
|
|
4706
|
-
itemShow: (element:
|
|
4705
|
+
sourceAdd: (element: IUzFormItem, index: number) => void;
|
|
4706
|
+
itemShow: (element: IUzFormItem) => boolean | undefined;
|
|
4707
4707
|
setSpan: (span?: number) => string | undefined;
|
|
4708
4708
|
refreshOption: (data: ObjectKey) => void;
|
|
4709
4709
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
4710
4710
|
items: {
|
|
4711
4711
|
required: true;
|
|
4712
|
-
type: PropType<
|
|
4712
|
+
type: PropType<IUzFormItems>;
|
|
4713
4713
|
default: () => never[];
|
|
4714
4714
|
};
|
|
4715
4715
|
value: {
|
|
@@ -4745,7 +4745,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4745
4745
|
value: ObjectKey;
|
|
4746
4746
|
inline: boolean;
|
|
4747
4747
|
status: number;
|
|
4748
|
-
items:
|
|
4748
|
+
items: IUzFormItems;
|
|
4749
4749
|
labelWidth: string | number;
|
|
4750
4750
|
labelAlign: "left" | "right";
|
|
4751
4751
|
labelPlacement: "left" | "top";
|
|
@@ -6870,10 +6870,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6870
6870
|
opacity5Depth: string;
|
|
6871
6871
|
}, any>>>;
|
|
6872
6872
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
6873
|
-
|
|
6873
|
+
UzFormItem: DefineComponent<ExtractPropTypes<{
|
|
6874
6874
|
item: {
|
|
6875
6875
|
required: true;
|
|
6876
|
-
type: PropType<
|
|
6876
|
+
type: PropType<IUzFormItem>;
|
|
6877
6877
|
default: () => {};
|
|
6878
6878
|
};
|
|
6879
6879
|
formValue: {
|
|
@@ -6897,9 +6897,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6897
6897
|
isMobile: ComputedRef<boolean>;
|
|
6898
6898
|
showDropdown: Ref<boolean, boolean>;
|
|
6899
6899
|
dropdownOptions: Ref<any[], any[]>;
|
|
6900
|
-
updateValue: (item:
|
|
6900
|
+
updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
|
|
6901
6901
|
selectFallback: (value: any) => any | boolean;
|
|
6902
|
-
showPlaceholder: (item:
|
|
6902
|
+
showPlaceholder: (item: IUzFormItem) => any;
|
|
6903
6903
|
checkDisabled: () => boolean;
|
|
6904
6904
|
checkClearable: () => any;
|
|
6905
6905
|
checkReadonly: () => boolean;
|
|
@@ -6910,7 +6910,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6910
6910
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
6911
6911
|
item: {
|
|
6912
6912
|
required: true;
|
|
6913
|
-
type: PropType<
|
|
6913
|
+
type: PropType<IUzFormItem>;
|
|
6914
6914
|
default: () => {};
|
|
6915
6915
|
};
|
|
6916
6916
|
formValue: {
|
|
@@ -6934,7 +6934,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6934
6934
|
disabled: boolean;
|
|
6935
6935
|
clearable: boolean;
|
|
6936
6936
|
status: number;
|
|
6937
|
-
item:
|
|
6937
|
+
item: IUzFormItem;
|
|
6938
6938
|
formValue: ObjectKey;
|
|
6939
6939
|
}, {}, {
|
|
6940
6940
|
NIcon: DefineComponent<ExtractPropTypes<{
|
|
@@ -2,7 +2,7 @@ import { Fn, ObjectKey } from '../interface';
|
|
|
2
2
|
import { VNodeChild } from 'vue';
|
|
3
3
|
import { SelectGroupOption } from 'naive-ui';
|
|
4
4
|
type SelectOption = any;
|
|
5
|
-
export interface
|
|
5
|
+
export interface IUzDataTableColumnType {
|
|
6
6
|
type?: 'selection' | 'expand';
|
|
7
7
|
multiple?: boolean;
|
|
8
8
|
options: string[];
|
|
@@ -71,7 +71,7 @@ export interface ITable<T = InternalRowData> {
|
|
|
71
71
|
};
|
|
72
72
|
render: string | ((rowData: T, rowIndex: number) => VNodeChild);
|
|
73
73
|
}
|
|
74
|
-
export interface
|
|
74
|
+
export interface IUzFormItemBase {
|
|
75
75
|
label: string | (() => string);
|
|
76
76
|
key: string;
|
|
77
77
|
dbType: string;
|
|
@@ -83,14 +83,14 @@ export interface IQxFormItemBase {
|
|
|
83
83
|
form: IForm;
|
|
84
84
|
search: ISearch;
|
|
85
85
|
}
|
|
86
|
-
export interface
|
|
86
|
+
export interface IUzFormItemGroup extends IUzFormItemBase {
|
|
87
87
|
input: 'group';
|
|
88
88
|
params: {
|
|
89
89
|
placeholder: '';
|
|
90
|
-
children:
|
|
90
|
+
children: IUzFormItem[];
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
export interface
|
|
93
|
+
export interface IUzFormItemInput extends IUzFormItemBase {
|
|
94
94
|
input: 'input';
|
|
95
95
|
params: {
|
|
96
96
|
placeholder: string;
|
|
@@ -103,7 +103,7 @@ export interface IQxFormItemInput extends IQxFormItemBase {
|
|
|
103
103
|
suffix?: string;
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
export interface
|
|
106
|
+
export interface IUzFormItemAuto extends IUzFormItemBase {
|
|
107
107
|
input: 'auto';
|
|
108
108
|
params: {
|
|
109
109
|
placeholder: string;
|
|
@@ -117,7 +117,7 @@ export interface IQxFormItemAuto extends IQxFormItemBase {
|
|
|
117
117
|
suffix?: string;
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
-
export interface
|
|
120
|
+
export interface IUzFormItemNumber extends IUzFormItemBase {
|
|
121
121
|
input: 'number';
|
|
122
122
|
params: {
|
|
123
123
|
placeholder: string;
|
|
@@ -133,7 +133,7 @@ export interface IQxFormItemNumber extends IQxFormItemBase {
|
|
|
133
133
|
suffix?: string;
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
export interface
|
|
136
|
+
export interface IUzFormItemDatePicker extends IUzFormItemBase {
|
|
137
137
|
input: 'date';
|
|
138
138
|
params: {
|
|
139
139
|
placeholder: string;
|
|
@@ -150,7 +150,7 @@ export interface IQxFormItemDatePicker extends IQxFormItemBase {
|
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
export interface
|
|
153
|
+
export interface IUzFormItemSelect extends IUzFormItemBase {
|
|
154
154
|
input: 'select';
|
|
155
155
|
params: {
|
|
156
156
|
placeholder: string;
|
|
@@ -168,7 +168,7 @@ export interface IQxFormItemSelect extends IQxFormItemBase {
|
|
|
168
168
|
}) => VNodeChild;
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
export interface
|
|
171
|
+
export interface IUzFormItemCascader extends IUzFormItemBase {
|
|
172
172
|
input: 'cascader';
|
|
173
173
|
params: {
|
|
174
174
|
placeholder: string;
|
|
@@ -178,14 +178,14 @@ export interface IQxFormItemCascader extends IQxFormItemBase {
|
|
|
178
178
|
multiple?: boolean;
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
export interface
|
|
181
|
+
export interface IUzFormItemColor extends IUzFormItemBase {
|
|
182
182
|
input: 'color';
|
|
183
183
|
params: {
|
|
184
184
|
placeholder: string;
|
|
185
185
|
clearable: boolean;
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
export interface
|
|
188
|
+
export interface IUzFormItemCheckbox extends IUzFormItemBase {
|
|
189
189
|
input: 'checkbox';
|
|
190
190
|
params: {
|
|
191
191
|
placeholder: string;
|
|
@@ -193,7 +193,7 @@ export interface IQxFormItemCheckbox extends IQxFormItemBase {
|
|
|
193
193
|
options: (() => Promise<Array<ObjectKey>>) | Array<ObjectKey>;
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
export interface
|
|
196
|
+
export interface IUzFormItemTime extends IUzFormItemBase {
|
|
197
197
|
input: 'time';
|
|
198
198
|
params: {
|
|
199
199
|
placeholder: string;
|
|
@@ -201,7 +201,7 @@ export interface IQxFormItemTime extends IQxFormItemBase {
|
|
|
201
201
|
format?: string;
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
export interface
|
|
204
|
+
export interface IUzFormItemUpload extends IUzFormItemBase {
|
|
205
205
|
input: 'upload';
|
|
206
206
|
params: {
|
|
207
207
|
placeholder: string;
|
|
@@ -211,7 +211,7 @@ export interface IQxFormItemUpload extends IQxFormItemBase {
|
|
|
211
211
|
max?: number | null;
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
export interface
|
|
214
|
+
export interface IUzFormItemSwitch extends IUzFormItemBase {
|
|
215
215
|
input: 'switch';
|
|
216
216
|
params: {
|
|
217
217
|
placeholder: string;
|
|
@@ -220,7 +220,7 @@ export interface IQxFormItemSwitch extends IQxFormItemBase {
|
|
|
220
220
|
unchecked?: string;
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
export interface
|
|
223
|
+
export interface IUzFormItemDivider extends IUzFormItemBase {
|
|
224
224
|
input: 'divider';
|
|
225
225
|
params: {
|
|
226
226
|
placeholder: string;
|
|
@@ -228,7 +228,7 @@ export interface IQxFormItemDivider extends IQxFormItemBase {
|
|
|
228
228
|
placement: 'left' | 'right' | 'center';
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
export interface
|
|
231
|
+
export interface IUzFormItemFilling extends IUzFormItemBase {
|
|
232
232
|
input: 'filling';
|
|
233
233
|
params: {
|
|
234
234
|
placeholder: string;
|
|
@@ -236,7 +236,7 @@ export interface IQxFormItemFilling extends IQxFormItemBase {
|
|
|
236
236
|
parentKey: string;
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
export interface
|
|
239
|
+
export interface IUzFormItemSubTable extends IUzFormItemBase {
|
|
240
240
|
input: 'subTable';
|
|
241
241
|
params: {
|
|
242
242
|
placeholder: string;
|
|
@@ -257,6 +257,6 @@ export interface IQxFormItemSubTable extends IQxFormItemBase {
|
|
|
257
257
|
deleteFn?: string;
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
export type
|
|
261
|
-
export type
|
|
260
|
+
export type IUzFormItem = IUzFormItemGroup | IUzFormItemInput | IUzFormItemAuto | IUzFormItemNumber | IUzFormItemDatePicker | IUzFormItemSelect | IUzFormItemCascader | IUzFormItemTime | IUzFormItemColor | IUzFormItemSwitch | IUzFormItemUpload | IUzFormItemDivider | IUzFormItemCheckbox | IUzFormItemSubTable | IUzFormItemFilling;
|
|
261
|
+
export type IUzFormItems = IUzFormItem[];
|
|
262
262
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType, VNodeChild, DefineComponent, ExtractPropTypes, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, Component, ComponentProvideOptions, TextareaHTMLAttributes, InputHTMLAttributes, SlotsType, HTMLAttributes, CSSProperties, VNode } from 'vue';
|
|
2
2
|
import { SelectOption, FormValidationStatus, ThemeCommonVars, 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';
|
|
3
|
-
import {
|
|
3
|
+
import { IUzFormItem } from './interface';
|
|
4
4
|
import { ObjectKey } from '../interface';
|
|
5
5
|
import { Depth } from 'naive-ui/es/icon/src/Icon';
|
|
6
6
|
import { Theme } from 'naive-ui/es/_mixins';
|
|
@@ -33,7 +33,7 @@ import { MenuRenderOption, MenuIgnoredOption } from 'naive-ui/es/menu/src/interf
|
|
|
33
33
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
34
34
|
item: {
|
|
35
35
|
required: true;
|
|
36
|
-
type: PropType<
|
|
36
|
+
type: PropType<IUzFormItem>;
|
|
37
37
|
default: () => {};
|
|
38
38
|
};
|
|
39
39
|
formValue: {
|
|
@@ -57,9 +57,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
57
57
|
isMobile: ComputedRef<boolean>;
|
|
58
58
|
showDropdown: Ref<boolean, boolean>;
|
|
59
59
|
dropdownOptions: Ref<any[], any[]>;
|
|
60
|
-
updateValue: (item:
|
|
60
|
+
updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
|
|
61
61
|
selectFallback: (value: any) => any | boolean;
|
|
62
|
-
showPlaceholder: (item:
|
|
62
|
+
showPlaceholder: (item: IUzFormItem) => any;
|
|
63
63
|
checkDisabled: () => boolean;
|
|
64
64
|
checkClearable: () => any;
|
|
65
65
|
checkReadonly: () => boolean;
|
|
@@ -70,7 +70,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
70
70
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
71
71
|
item: {
|
|
72
72
|
required: true;
|
|
73
|
-
type: PropType<
|
|
73
|
+
type: PropType<IUzFormItem>;
|
|
74
74
|
default: () => {};
|
|
75
75
|
};
|
|
76
76
|
formValue: {
|
|
@@ -94,7 +94,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
94
94
|
disabled: boolean;
|
|
95
95
|
clearable: boolean;
|
|
96
96
|
status: number;
|
|
97
|
-
item:
|
|
97
|
+
item: IUzFormItem;
|
|
98
98
|
formValue: ObjectKey;
|
|
99
99
|
}, {}, {
|
|
100
100
|
NIcon: DefineComponent<ExtractPropTypes<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, CSSProperties, InputHTMLAttributes, ComputedRef, ComponentProvideOptions, VNodeChild, SlotsType, Component, ImgHTMLAttributes } from 'vue';
|
|
2
2
|
import { UploadFileInfo, UploadOnChange, UploadOnRemove, UploadOnFinish, UploadOnDownload, UploadSettledFileInfo, ImageGroupProps, ThemeCommonVars, ButtonSlots, ImageRenderToolbar, ImageSlots, PopoverTrigger, PopoverPlacement, PopoverSlots, ButtonProps, Placement, PopconfirmSlots } from 'naive-ui';
|
|
3
|
-
import {
|
|
3
|
+
import { IUzFormItemUpload } from './interface';
|
|
4
4
|
import { ObjectKey } from '../interface';
|
|
5
5
|
import { CustomRequest, FuncOrRecordOrUndef, OnError, OnRetry, OnBeforeUpload, OnUpdateFileList, ListType, OnPreview, ShouldUseThumbnailUrl, CreateThumbnailUrl, RenderIcon } from 'naive-ui/es/upload/src/interface';
|
|
6
6
|
import { MaybeArray } from 'naive-ui/es/_utils';
|
|
@@ -23,7 +23,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
23
23
|
};
|
|
24
24
|
item: {
|
|
25
25
|
required: true;
|
|
26
|
-
type: PropType<
|
|
26
|
+
type: PropType<IUzFormItemUpload>;
|
|
27
27
|
default: () => {};
|
|
28
28
|
};
|
|
29
29
|
status: {
|
|
@@ -47,7 +47,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
47
47
|
};
|
|
48
48
|
item: {
|
|
49
49
|
required: true;
|
|
50
|
-
type: PropType<
|
|
50
|
+
type: PropType<IUzFormItemUpload>;
|
|
51
51
|
default: () => {};
|
|
52
52
|
};
|
|
53
53
|
status: {
|
|
@@ -59,7 +59,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
59
59
|
}>, {
|
|
60
60
|
value: string | ObjectKey | null;
|
|
61
61
|
status: number;
|
|
62
|
-
item:
|
|
62
|
+
item: IUzFormItemUpload;
|
|
63
63
|
}, {}, {
|
|
64
64
|
NUpload: DefineComponent<ExtractPropTypes<{
|
|
65
65
|
readonly name: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UzNumberRoll } from './index.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UzInstance, InstallOptions } from './create';
|
|
2
2
|
import { App } from 'vue';
|
|
3
|
-
declare const QXUI:
|
|
3
|
+
declare const QXUI: UzInstance;
|
|
4
4
|
export default QXUI;
|
|
5
5
|
export declare const install: (app: App, options?: InstallOptions) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as UzTimePickRange } from './timePickRange.vue';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
3
|
-
export type { ISearchBar,
|
|
1
|
+
export { default as UzSearchBar } from './index.vue';
|
|
2
|
+
export { default as UzSearchMobileBar } from './mobile.vue';
|
|
3
|
+
export type { ISearchBar, IUzSearchBars } from './interface';
|