rtcpts 0.0.57 → 0.0.59
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/j-q-confirm-dialog/index.d.ts +16 -11
- package/dist/components/j-q-datetime/index.d.ts +8 -2
- package/dist/components/j-q-table/pagination.d.ts +19 -20
- package/dist/rtcpt-styles.css +1 -1
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +2589 -2575
- package/package.json +1 -1
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { QVueGlobals } from 'quasar';
|
|
2
|
+
import { JQConfirmDialogShowParams, IJQConfirmDialog } from './types';
|
|
3
|
+
export type { JQConfirmDialogShowParams, IJQConfirmDialog } from './types';
|
|
4
|
+
declare class GlobalConfirm implements IJQConfirmDialog {
|
|
5
|
+
/**
|
|
6
|
+
* 设置 Quasar 实例(在 rtcptInit 中调用)
|
|
7
|
+
*/
|
|
8
|
+
setQuasarInstance(instance: QVueGlobals): void;
|
|
9
|
+
/**
|
|
10
|
+
* 弹出自定义确认对话框,返回一个 Promise,resolve(true) 表示确定,resolve(false) 表示取消/关闭。
|
|
11
|
+
*/
|
|
12
|
+
show({ title, color, content, confirmButtonText, cancelButtonText, showCancelButton, isDelete, icon, showClose }: JQConfirmDialogShowParams): Promise<boolean>;
|
|
13
|
+
}
|
|
14
|
+
declare const globalConfirm: GlobalConfirm;
|
|
15
|
+
export default globalConfirm;
|
|
16
|
+
tent: {
|
|
12
17
|
type: StringConstructor;
|
|
13
18
|
default: string;
|
|
14
19
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef, Slot, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
import { QDateProps, QField, QFieldProps, QPopupProxy, QDate,
|
|
2
|
+
import { QDateProps, QField, QFieldProps, QPopupProxy, QDate, QSelect, QIcon, QBtn, ComponentConstructor } from 'quasar';
|
|
3
3
|
import { t } from '../../composables/useI18n.ts';
|
|
4
4
|
export interface TimeParts {
|
|
5
5
|
h: number;
|
|
@@ -71,6 +71,12 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
71
71
|
to: string;
|
|
72
72
|
}>;
|
|
73
73
|
currentSingleDate: Ref<string, string>;
|
|
74
|
+
hourOptions: string[];
|
|
75
|
+
minuteSecondOptions: string[];
|
|
76
|
+
timeSelectPopupStyle: {
|
|
77
|
+
height: string;
|
|
78
|
+
maxHeight: string;
|
|
79
|
+
};
|
|
74
80
|
fromH: WritableComputedRef<string, string>;
|
|
75
81
|
fromM: WritableComputedRef<string, string>;
|
|
76
82
|
fromS: WritableComputedRef<string, string>;
|
|
@@ -159,7 +165,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
159
165
|
QField: ComponentConstructor<QField>;
|
|
160
166
|
QPopupProxy: ComponentConstructor<QPopupProxy>;
|
|
161
167
|
QDate: ComponentConstructor<QDate>;
|
|
162
|
-
|
|
168
|
+
QSelect: ComponentConstructor<QSelect>;
|
|
163
169
|
QIcon: ComponentConstructor<QIcon>;
|
|
164
170
|
QBtn: ComponentConstructor<QBtn>;
|
|
165
171
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { t } from '../../composables/useI18n.ts';
|
|
4
|
-
export interface PaginationInfo {
|
|
1
|
+
export type PaginationParameter = Pick<Paginator, 'page' | 'rowsPerPage'>;
|
|
2
|
+
export interface Paginator {
|
|
5
3
|
page: number;
|
|
6
4
|
rowsPerPage: number;
|
|
7
5
|
rowsNumber: number;
|
|
8
6
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
export type UsePaginationOptions = {
|
|
8
|
+
page?: number;
|
|
9
|
+
rowsPerPage?: number;
|
|
10
|
+
rowsNumber?: number;
|
|
11
|
+
};
|
|
12
|
+
export type UsePaginationReturn = {
|
|
13
|
+
paginationInfo: Paginator;
|
|
14
|
+
getNum: () => number;
|
|
15
|
+
getPaginationParam: () => PaginationParameter;
|
|
16
|
+
setNum: (value?: number) => void;
|
|
17
|
+
setSize: (value?: number) => void;
|
|
18
|
+
setTotal: (value?: number) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const DEFAULT_ROWS_PER_PAGE = 15;
|
|
21
|
+
export declare const ROWS_PER_PAGE_OPTIONS: number[];
|
|
22
|
+
export declare function usePagination(options?: UsePaginationOptions): UsePaginationReturn;
|
|
23
|
+
rowsPerPage: number;
|
|
25
24
|
rowsNumber: number;
|
|
26
25
|
};
|
|
27
26
|
rowNumbersArr: number[];
|