urit-qf-ui 0.0.6 → 0.1.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/dist/components/Demo.vue.d.ts +2 -0
- package/dist/components/UCascader.vue.d.ts +40 -0
- package/dist/components/UDate.vue.d.ts +47 -0
- package/dist/components/{USelect/USelect.vue.d.ts → UDict.vue.d.ts} +6 -7
- package/dist/components/{UInput/UInput.vue.d.ts → UInput.vue.d.ts} +5 -6
- package/dist/components/UToggle.vue.d.ts +54 -0
- package/dist/index.d.ts +15 -5
- package/dist/index.js +60962 -4951
- package/dist/index.umd.cjs +93 -1
- package/dist/qf/event-bus.d.ts +7 -0
- package/dist/qf/http.d.ts +26 -0
- package/dist/qf/interface.d.ts +22 -0
- package/dist/qf/mqtt-adapter.d.ts +9 -0
- package/dist/qf/qf.d.ts +21 -0
- package/dist/show/UCascaderShow.vue.d.ts +11 -0
- package/dist/show/UDateShow.vue.d.ts +15 -0
- package/dist/{components/LayoutOne.vue.d.ts → show/UDictShow.vue.d.ts} +4 -2
- package/dist/show/UFieldView.vue.d.ts +24 -0
- package/dist/show/UInputShow.vue.d.ts +10 -0
- package/dist/show/UToggleShow.vue.d.ts +12 -0
- package/dist/style.css +1 -1
- package/dist/ts/constant.d.ts +11 -0
- package/dist/ts/dict.d.ts +61 -0
- package/dist/ts/form-render.d.ts +29 -0
- package/dist/ts/http.d.ts +13 -0
- package/dist/ts/model.d.ts +149 -0
- package/dist/ts/notify.d.ts +36 -0
- package/dist/ts/table-data-service.d.ts +30 -0
- package/dist/ts/table-render.d.ts +123 -0
- package/dist/uform/FormContainer.vue.d.ts +35 -0
- package/dist/uform/FormField.vue.d.ts +16 -0
- package/dist/uform/FormGrid.vue.d.ts +24 -0
- package/dist/uform/FormRender.vue.d.ts +104 -0
- package/dist/uform/TableDetail.vue.d.ts +15 -0
- package/dist/uform/TableGrid.vue.d.ts +30 -0
- package/dist/uform/TablePagination.vue.d.ts +14 -0
- package/dist/uform/TableRender.vue.d.ts +120 -0
- package/dist/uform/TableSearch.vue.d.ts +15 -0
- package/dist/uform/TableToolbar.vue.d.ts +39 -0
- package/package.json +8 -4
- package/dist/ufrom/URender.vue.d.ts +0 -17
- package/dist/ufrom/types.d.ts +0 -6
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { QfOptions } from './interface.ts';
|
|
2
|
+
export declare class Http {
|
|
3
|
+
private axiosInstance;
|
|
4
|
+
private baseUrl;
|
|
5
|
+
constructor(options: QfOptions);
|
|
6
|
+
/**
|
|
7
|
+
* POST 请求
|
|
8
|
+
*/
|
|
9
|
+
Post(url: string, data?: any): Promise<any>;
|
|
10
|
+
/**
|
|
11
|
+
* GET 请求
|
|
12
|
+
*/
|
|
13
|
+
Get(url: string, params?: any): Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* DELETE 请求
|
|
16
|
+
*/
|
|
17
|
+
Delete(url: string, params?: any): Promise<any>;
|
|
18
|
+
/**
|
|
19
|
+
* PUT 请求
|
|
20
|
+
*/
|
|
21
|
+
Put(url: string, data?: any): Promise<any>;
|
|
22
|
+
/**
|
|
23
|
+
* 下载文件
|
|
24
|
+
*/
|
|
25
|
+
Download(url: string, params?: any): Promise<any>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface QfInterface {
|
|
2
|
+
StartQf(options: QfOptions): Promise<void>;
|
|
3
|
+
On(event: string, callback: any): void;
|
|
4
|
+
Emit(event: string, data: any): void;
|
|
5
|
+
Off(event: string, callback: any): void;
|
|
6
|
+
Post<T>(url: string, data: any): Promise<T>;
|
|
7
|
+
Get<T>(url: string, params: any): Promise<T>;
|
|
8
|
+
Delete<T>(url: string, params: any): Promise<T>;
|
|
9
|
+
Put<T>(url: string, data: any): Promise<T>;
|
|
10
|
+
Download<T>(url: string, params?: any): Promise<T>;
|
|
11
|
+
RegNotice(topic: string, cb: (data: any) => void): void;
|
|
12
|
+
}
|
|
13
|
+
export interface QfOptions {
|
|
14
|
+
module: string;
|
|
15
|
+
useMqtt: boolean;
|
|
16
|
+
baseUrl: string;
|
|
17
|
+
mqttUrl: string;
|
|
18
|
+
userName: string;
|
|
19
|
+
password: string;
|
|
20
|
+
keepAlive: number;
|
|
21
|
+
reconnectPeriod: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventBus } from './event-bus.ts';
|
|
2
|
+
import { QfOptions } from './interface.ts';
|
|
3
|
+
export declare class MqttAdapter {
|
|
4
|
+
private mqttClient;
|
|
5
|
+
private eventBus;
|
|
6
|
+
constructor(bus: EventBus, options: QfOptions);
|
|
7
|
+
connect(opt: QfOptions): Promise<void>;
|
|
8
|
+
randomStr(length: number): string;
|
|
9
|
+
}
|
package/dist/qf/qf.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Http } from './http';
|
|
2
|
+
import { QfInterface, QfOptions } from './interface';
|
|
3
|
+
import { EventBus } from './event-bus';
|
|
4
|
+
import { MqttAdapter } from './mqtt-adapter';
|
|
5
|
+
export declare class Qf implements QfInterface {
|
|
6
|
+
EventBus: EventBus;
|
|
7
|
+
WebApi: Http;
|
|
8
|
+
Mqtt: MqttAdapter;
|
|
9
|
+
options: QfOptions;
|
|
10
|
+
constructor();
|
|
11
|
+
StartQf(options: QfOptions): Promise<void>;
|
|
12
|
+
On(event: string, callback: any): void;
|
|
13
|
+
Emit(event: string, data: any): void;
|
|
14
|
+
Off(event: string, callback: any): void;
|
|
15
|
+
Post(url: string, data?: any): Promise<any>;
|
|
16
|
+
Get(url: string, params?: any): Promise<any>;
|
|
17
|
+
Delete(url: string, params?: any): Promise<any>;
|
|
18
|
+
Put(url: string, data?: any): Promise<any>;
|
|
19
|
+
Download(url: string, params?: any): Promise<any>;
|
|
20
|
+
RegNotice(topic: string, cb: (data: any) => void): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
cascaderKey?: string;
|
|
4
|
+
separator?: string;
|
|
5
|
+
showRawValue?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
8
|
+
separator: string;
|
|
9
|
+
showRawValue: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
mode?: 'single' | 'multiple' | 'range';
|
|
4
|
+
locale?: 'zh-CN' | 'en-US';
|
|
5
|
+
format?: string;
|
|
6
|
+
separator?: string;
|
|
7
|
+
rangeSeparator?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
mode: "single" | "multiple" | "range";
|
|
11
|
+
locale: "zh-CN" | "en-US";
|
|
12
|
+
separator: string;
|
|
13
|
+
rangeSeparator: string;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
dictType?: string;
|
|
4
|
+
defaultText?: string;
|
|
3
5
|
}
|
|
4
6
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
5
|
-
|
|
7
|
+
defaultText: string;
|
|
6
8
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
9
|
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
type?: 'input' | 'dict' | 'switch' | 'cascader' | 'date' | 'text';
|
|
3
|
+
modelValue?: any;
|
|
4
|
+
dictType?: string;
|
|
5
|
+
mode?: 'single' | 'multiple' | 'range';
|
|
6
|
+
locale?: 'zh-CN' | 'en-US';
|
|
7
|
+
format?: string;
|
|
8
|
+
text?: string;
|
|
9
|
+
trueText?: string;
|
|
10
|
+
falseText?: string;
|
|
11
|
+
useYesNo?: boolean;
|
|
12
|
+
cascaderKey?: string;
|
|
13
|
+
multiline?: boolean;
|
|
14
|
+
defaultText?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
|
+
type: "input" | "dict" | "switch" | "cascader" | "date" | "text";
|
|
18
|
+
locale: "zh-CN" | "en-US";
|
|
19
|
+
trueText: string;
|
|
20
|
+
falseText: string;
|
|
21
|
+
useYesNo: boolean;
|
|
22
|
+
defaultText: string;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
multiline?: boolean;
|
|
4
|
+
maxLines?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
+
multiline: boolean;
|
|
8
|
+
maxLines: number;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
trueText?: string;
|
|
4
|
+
falseText?: string;
|
|
5
|
+
useYesNo?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
8
|
+
trueText: string;
|
|
9
|
+
falseText: string;
|
|
10
|
+
useYesNo: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|