urit-qf-ui 0.2.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -22
- package/dist/components/UBaseInfo.vue.d.ts +22 -0
- package/dist/components/UCascader.vue.d.ts +22 -37
- package/dist/components/UDialog.vue.d.ts +94 -0
- package/dist/components/UForm.vue.d.ts +233 -0
- package/dist/components/UMenu.vue.d.ts +230 -11
- package/dist/components/UResults.vue.d.ts +23 -0
- package/dist/components/USearch.vue.d.ts +51 -0
- package/dist/components/UTable.vue.d.ts +54 -0
- package/dist/components/UTablePage.vue.d.ts +152 -0
- package/dist/index.d.ts +35 -20
- package/dist/index.js +3078 -3276
- package/dist/index.umd.cjs +1 -2
- package/dist/layout/UGrid.vue.d.ts +44 -0
- package/dist/model/base-info.d.ts +113 -0
- package/dist/model/cascader.d.ts +135 -0
- package/dist/model/form.d.ts +143 -0
- package/dist/model/grid.d.ts +53 -0
- package/dist/model/menu.d.ts +140 -0
- package/dist/model/results.d.ts +90 -0
- package/dist/model/search.d.ts +93 -0
- package/dist/model/table-page.d.ts +44 -0
- package/dist/model/table.d.ts +163 -0
- package/dist/parser/cascader.d.ts +35 -0
- package/dist/parser/form.d.ts +7 -0
- package/dist/parser/menu.d.ts +5 -0
- package/dist/parser/table-page.d.ts +15 -0
- package/dist/parser/yaml-parser.d.ts +41 -0
- package/dist/qf/http.d.ts +50 -28
- package/dist/qf/interface.d.ts +45 -4
- package/dist/qf/qf.d.ts +52 -6
- package/dist/style.css +1 -1
- package/dist/utils/base-info.d.ts +39 -0
- package/dist/utils/cascader.d.ts +45 -0
- package/dist/utils/form.d.ts +59 -0
- package/dist/utils/menu.d.ts +14 -0
- package/dist/utils/results.d.ts +38 -0
- package/dist/utils/search.d.ts +8 -0
- package/dist/utils/table.d.ts +16 -0
- package/package.json +1 -1
- package/dist/components/UDate.vue.d.ts +0 -47
- package/dist/components/UDict.vue.d.ts +0 -49
- package/dist/components/UInput.vue.d.ts +0 -52
- package/dist/components/UInputNumber.vue.d.ts +0 -52
- package/dist/components/UToggle.vue.d.ts +0 -54
- package/dist/show/UCascaderShow.vue.d.ts +0 -11
- package/dist/show/UDateShow.vue.d.ts +0 -15
- package/dist/show/UDictShow.vue.d.ts +0 -9
- package/dist/show/UFieldView.vue.d.ts +0 -24
- package/dist/show/UInputShow.vue.d.ts +0 -10
- package/dist/show/UToggleShow.vue.d.ts +0 -12
- package/dist/ts/constant.d.ts +0 -24
- package/dist/ts/dict.d.ts +0 -105
- package/dist/ts/form-render.d.ts +0 -30
- package/dist/ts/http.d.ts +0 -13
- package/dist/ts/model.d.ts +0 -202
- package/dist/ts/notify.d.ts +0 -42
- package/dist/ts/table-data-service.d.ts +0 -30
- package/dist/ts/table-render.d.ts +0 -210
- package/dist/uform/FormContainer.vue.d.ts +0 -37
- package/dist/uform/FormField.vue.d.ts +0 -16
- package/dist/uform/FormGrid.vue.d.ts +0 -24
- package/dist/uform/FormRender.vue.d.ts +0 -104
- package/dist/uform/TableDetail.vue.d.ts +0 -37
- package/dist/uform/TableGrid.vue.d.ts +0 -51
- package/dist/uform/TablePagination.vue.d.ts +0 -14
- package/dist/uform/TableRender.vue.d.ts +0 -618
- package/dist/uform/TableSearch.vue.d.ts +0 -38
- package/dist/uform/TableToolbar.vue.d.ts +0 -31
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FieldConfig, FormLayout } from '../ts/model';
|
|
2
|
-
interface Props {
|
|
3
|
-
fields: FieldConfig[];
|
|
4
|
-
layout: FormLayout;
|
|
5
|
-
}
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
default?(_: {
|
|
10
|
-
field: FieldConfig;
|
|
11
|
-
}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: HTMLDivElement;
|
|
15
|
-
};
|
|
16
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
showForm: (formId: string, query?: string) => Promise<unknown>;
|
|
3
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
4
|
-
formRef: ({
|
|
5
|
-
$: import('vue').ComponentInternalInstance;
|
|
6
|
-
$data: {};
|
|
7
|
-
$props: {
|
|
8
|
-
readonly model?: Record<string, any> | undefined;
|
|
9
|
-
readonly rules?: import('element-plus').FormRules | undefined;
|
|
10
|
-
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
11
|
-
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
12
|
-
readonly labelWidth?: string | number | undefined;
|
|
13
|
-
readonly labelSuffix?: string | undefined;
|
|
14
|
-
readonly inline?: boolean | undefined;
|
|
15
|
-
readonly inlineMessage?: boolean | undefined;
|
|
16
|
-
readonly statusIcon?: boolean | undefined;
|
|
17
|
-
readonly showMessage?: boolean | undefined;
|
|
18
|
-
readonly validateOnRuleChange?: boolean | undefined;
|
|
19
|
-
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
20
|
-
readonly scrollToError?: boolean | undefined;
|
|
21
|
-
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
22
|
-
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
23
|
-
readonly disabled?: boolean | undefined;
|
|
24
|
-
readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
25
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
26
|
-
$attrs: import('vue').Attrs;
|
|
27
|
-
$refs: {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
$slots: Readonly<{
|
|
31
|
-
[name: string]: globalThis.Slot | undefined;
|
|
32
|
-
}>;
|
|
33
|
-
$root: ComponentPublicInstance | null;
|
|
34
|
-
$parent: ComponentPublicInstance | null;
|
|
35
|
-
$host: Element | null;
|
|
36
|
-
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
37
|
-
$el: any;
|
|
38
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
39
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
40
|
-
}>, {
|
|
41
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
42
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
43
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
44
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
45
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
46
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
47
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
48
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
49
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
-
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
51
|
-
}, string, {
|
|
52
|
-
labelWidth: string | number;
|
|
53
|
-
labelPosition: "left" | "right" | "top";
|
|
54
|
-
requireAsteriskPosition: "left" | "right";
|
|
55
|
-
labelSuffix: string;
|
|
56
|
-
showMessage: boolean;
|
|
57
|
-
validateOnRuleChange: boolean;
|
|
58
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
59
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
60
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
61
|
-
created?: (() => void) | (() => void)[];
|
|
62
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
63
|
-
mounted?: (() => void) | (() => void)[];
|
|
64
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
65
|
-
updated?: (() => void) | (() => void)[];
|
|
66
|
-
activated?: (() => void) | (() => void)[];
|
|
67
|
-
deactivated?: (() => void) | (() => void)[];
|
|
68
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
69
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
70
|
-
destroyed?: (() => void) | (() => void)[];
|
|
71
|
-
unmounted?: (() => void) | (() => void)[];
|
|
72
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
73
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
74
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
75
|
-
};
|
|
76
|
-
$forceUpdate: () => void;
|
|
77
|
-
$nextTick: typeof import('vue').nextTick;
|
|
78
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
79
|
-
} & Readonly<{
|
|
80
|
-
labelWidth: string | number;
|
|
81
|
-
labelPosition: "left" | "right" | "top";
|
|
82
|
-
requireAsteriskPosition: "left" | "right";
|
|
83
|
-
labelSuffix: string;
|
|
84
|
-
showMessage: boolean;
|
|
85
|
-
validateOnRuleChange: boolean;
|
|
86
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
87
|
-
}> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
88
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
89
|
-
}>, "labelPosition" | "labelWidth" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & {
|
|
90
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
91
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
92
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
93
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
94
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
95
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
96
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
97
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
98
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
99
|
-
$slots: {
|
|
100
|
-
default?: (props: {}) => any;
|
|
101
|
-
};
|
|
102
|
-
}) | null;
|
|
103
|
-
}, any>;
|
|
104
|
-
export default _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { TableColumn } from '../ts/model';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
showHeader?: boolean;
|
|
4
|
-
title?: string;
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
rowData?: Record<string, any>;
|
|
7
|
-
columns?: TableColumn[];
|
|
8
|
-
emptyText?: string;
|
|
9
|
-
/**
|
|
10
|
-
* `detail-extra` 插槽与默认字段列表的关系:
|
|
11
|
-
* replace(默认)—— **二选一**:给了插槽就只渲染插槽,一个默认字段都不渲染
|
|
12
|
-
* append —— 旧行为:默认字段列表 + 插槽内容上下共存
|
|
13
|
-
*
|
|
14
|
-
* 页面上通过 TableRender 的 `detail-extra-mode` 传进来,一般不用直接设置。
|
|
15
|
-
*/
|
|
16
|
-
extraMode?: 'replace' | 'append';
|
|
17
|
-
};
|
|
18
|
-
declare function __VLS_template(): {
|
|
19
|
-
attrs: Partial<{}>;
|
|
20
|
-
slots: {
|
|
21
|
-
'detail-extra'?(_: {
|
|
22
|
-
rowData: Record<string, any> | undefined;
|
|
23
|
-
columns: TableColumn[] | undefined;
|
|
24
|
-
}): any;
|
|
25
|
-
};
|
|
26
|
-
refs: {};
|
|
27
|
-
rootEl: HTMLDivElement;
|
|
28
|
-
};
|
|
29
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
31
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
|
-
export default _default;
|
|
33
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
-
new (): {
|
|
35
|
-
$slots: S;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { TableActionPayload, TableButton, TableColumn } from '../ts/model';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
rows: any[];
|
|
4
|
-
columns: TableColumn[];
|
|
5
|
-
loading: boolean;
|
|
6
|
-
actions?: TableButton[];
|
|
7
|
-
actionsWidth?: number;
|
|
8
|
-
keyField?: string;
|
|
9
|
-
selection?: 'single' | 'multiple' | boolean;
|
|
10
|
-
dictData?: Record<string, Array<{
|
|
11
|
-
label: string;
|
|
12
|
-
value: any;
|
|
13
|
-
}>>;
|
|
14
|
-
activeKey?: string | number | null;
|
|
15
|
-
};
|
|
16
|
-
declare function __VLS_template(): {
|
|
17
|
-
attrs: Partial<{}>;
|
|
18
|
-
slots: Partial<Record<string, (_: {
|
|
19
|
-
row: import('element-plus/es/components/table/src/table/defaults.mjs').DefaultRow;
|
|
20
|
-
value: any;
|
|
21
|
-
column: any;
|
|
22
|
-
}) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
23
|
-
actions?(_: {
|
|
24
|
-
row: import('element-plus/es/components/table/src/table/defaults.mjs').DefaultRow;
|
|
25
|
-
actions: TableButton[];
|
|
26
|
-
}): any;
|
|
27
|
-
'actions-extra'?(_: {
|
|
28
|
-
row: import('element-plus/es/components/table/src/table/defaults.mjs').DefaultRow;
|
|
29
|
-
}): any;
|
|
30
|
-
default?(_: {}): any;
|
|
31
|
-
};
|
|
32
|
-
refs: {};
|
|
33
|
-
rootEl: any;
|
|
34
|
-
};
|
|
35
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
36
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
|
-
rowAction: (payload: TableActionPayload) => any;
|
|
38
|
-
rowClick: (row: any) => any;
|
|
39
|
-
selectionChange: (rows: any[]) => any;
|
|
40
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
41
|
-
onRowAction?: ((payload: TableActionPayload) => any) | undefined;
|
|
42
|
-
onRowClick?: ((row: any) => any) | undefined;
|
|
43
|
-
onSelectionChange?: ((rows: any[]) => any) | undefined;
|
|
44
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
45
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
|
-
export default _default;
|
|
47
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
-
new (): {
|
|
49
|
-
$slots: S;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
page: number;
|
|
3
|
-
pageSize: number;
|
|
4
|
-
total: number;
|
|
5
|
-
type?: 'page' | 'auto' | 'all';
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
"update:page": (page: number) => any;
|
|
9
|
-
"update:pageSize": (pageSize: number) => any;
|
|
10
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
12
|
-
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
-
export default _default;
|