@aplus-frontend/ui 7.19.0-beta.1 → 7.19.0-beta.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/es/src/ag-grid/context.mjs +1 -1
- package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/form-item.vue.mjs +1 -0
- package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/index.vue.mjs +9 -8
- package/es/src/ag-grid/hooks/use-columns.mjs +31 -23
- package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
- package/es/src/ag-grid/index.vue.d.ts +2 -4
- package/es/src/ag-grid/index.vue.mjs +353 -335
- package/es/src/ag-grid/interface.d.ts +40 -1
- package/es/src/ag-grid/utils.d.ts +18 -0
- package/es/src/ag-grid/utils.mjs +39 -18
- package/es/src/ap-field/cascader/use-options.d.ts +4 -4
- package/es/src/ap-field/date/index.vue.d.ts +0 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +0 -1
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/text/password.vue.d.ts +4 -4
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/context.mjs +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/item/index.vue.d.ts +6 -6
- package/es/src/ap-form/item-group/helper.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +9 -11
- package/es/src/ap-form/items/date-range/index.vue.d.ts +13 -15
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/provider/context.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/utils/table.mjs +2 -2
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +2 -2
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/components/setting/context.d.ts +1 -1
- package/es/src/ap-table/components/setting/context.mjs +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue.mjs +119 -109
- package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
- package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
- package/es/src/ap-table/constants.d.ts +20 -22
- package/es/src/ap-table/context.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +9 -9
- package/es/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
- package/es/src/ap-table/hooks/use-table-template-storage.mjs +94 -88
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-download/hooks/index.mjs +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +1 -3
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-keep-alive/hook.mjs +1 -1
- package/es/src/business/ap-keep-alive/utils.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/es/src/business/ap-view/ap-view.vue.d.ts +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +87 -81
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
- package/es/src/business/ap-view/hooks/use-send-to-url.mjs +46 -30
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
- package/es/src/business/ap-view/index.d.ts +3 -3
- package/es/src/business/ap-view/interface.d.ts +7 -1
- package/es/src/check-card/context.mjs +1 -1
- package/es/src/config-provider/constants.mjs +1 -1
- package/es/src/config-provider/hooks/use-locale.mjs +1 -1
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
- package/es/src/config-provider/hooks/use-token.mjs +1 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/utils.mjs +1 -1
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/context.mjs +1 -1
- package/es/src/time-ago/useTimeAgo.mjs +1 -1
- package/es/src/type.d.ts +1 -0
- package/es/src/utils/slot.mjs +1 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
- package/lib/src/ag-grid/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +40 -1
- package/lib/src/ag-grid/utils.d.ts +18 -0
- package/lib/src/ag-grid/utils.js +1 -1
- package/lib/src/ap-field/cascader/use-options.d.ts +4 -4
- package/lib/src/ap-field/date/index.vue.d.ts +0 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +0 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/text/password.vue.d.ts +4 -4
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/item/index.vue.d.ts +6 -6
- package/lib/src/ap-form/items/date/index.vue.d.ts +9 -11
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +13 -15
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/components/setting/context.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
- package/lib/src/ap-table/constants.d.ts +20 -22
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
- package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
- package/lib/src/business/ap-view/hooks/use-send-to-url.js +1 -1
- package/lib/src/business/ap-view/index.d.ts +3 -3
- package/lib/src/business/ap-view/interface.d.ts +7 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/time-ago/useTimeAgo.js +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableProps } from '@aplus-frontend/antdv';
|
|
2
2
|
import { SortOrder, TableRowSelection } from '@aplus-frontend/antdv/es/table/interface';
|
|
3
|
-
import { AgColumn, ColDef, GridApi, ICellRendererParams, IRowNode, IsFullWidthRowParams, RedrawRowsParams, RefreshCellsParams, RowClassRules, RowHeightParams, RowPinnedType, ScrollDirection, ThemeDefaultParams } from 'ag-grid-community';
|
|
3
|
+
import { AgColumn, ColDef, ColumnState, GridApi, ICellRendererParams, IRowNode, IsFullWidthRowParams, RedrawRowsParams, RefreshCellsParams, RowClassRules, RowHeightParams, RowPinnedType, ScrollDirection, ThemeDefaultParams } from 'ag-grid-community';
|
|
4
4
|
import { ComputedRef, CSSProperties, VNode } from 'vue';
|
|
5
5
|
import { ApFormSearchFormPopoverSorterItem, ApFormSearchFormProps } from '../ap-form/interface';
|
|
6
6
|
import { InternalPagingType } from '../ap-table/hooks/use-table-paging-ng';
|
|
@@ -370,6 +370,11 @@ export type AgGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<Re
|
|
|
370
370
|
* @description 详见https://www.ag-grid.com/vue-data-grid/row-animation/
|
|
371
371
|
*/
|
|
372
372
|
animateRows?: boolean;
|
|
373
|
+
/**
|
|
374
|
+
* 插件列表
|
|
375
|
+
* @since 7.19.0
|
|
376
|
+
*/
|
|
377
|
+
plugins?: AgGridPluginType[];
|
|
373
378
|
};
|
|
374
379
|
export type AgGridExpose<SearchParamsType = Recordable, RecordType = any> = {
|
|
375
380
|
/**
|
|
@@ -520,3 +525,37 @@ export type AgGridSlots<RecordType> = {
|
|
|
520
525
|
column: Omit<AgColumn, keyof AgGridColumnType> & AgGridColumnType;
|
|
521
526
|
}) => void;
|
|
522
527
|
};
|
|
528
|
+
export interface AgGridPluginType {
|
|
529
|
+
/**
|
|
530
|
+
* AgGrid 初始化完成
|
|
531
|
+
* @param api
|
|
532
|
+
* @returns
|
|
533
|
+
*/
|
|
534
|
+
init?: (api: GridApi) => void;
|
|
535
|
+
/**
|
|
536
|
+
* 列配置变化后应用前
|
|
537
|
+
* @param columns 列配置
|
|
538
|
+
* @param prevColumns 之前的列配置
|
|
539
|
+
* @returns
|
|
540
|
+
*/
|
|
541
|
+
beforeColumnsChange?: (columns: AgGridColumnType[], prevColumns?: AgGridColumnType[]) => void | AgGridColumnType[] | Promise<void | AgGridColumnType[]>;
|
|
542
|
+
/**
|
|
543
|
+
* 应用列状态之前
|
|
544
|
+
* @param columnState 即将应用的列配置
|
|
545
|
+
* @returns
|
|
546
|
+
*/
|
|
547
|
+
beforeApplyColumnState?: (columnState: ColumnState[]) => void | ColumnState[] | Promise<void | ColumnState[]>;
|
|
548
|
+
/**
|
|
549
|
+
* 查询表单参数变更后
|
|
550
|
+
* @param params
|
|
551
|
+
* @returns
|
|
552
|
+
*/
|
|
553
|
+
searchParamsChange?: (params: Recordable) => void;
|
|
554
|
+
/**
|
|
555
|
+
* 列宽拖动变化后
|
|
556
|
+
* @param key 列唯一标识
|
|
557
|
+
* @param width 当前列宽
|
|
558
|
+
* @returns
|
|
559
|
+
*/
|
|
560
|
+
onColumnResized?: (key: string, width: number) => void;
|
|
561
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { GridOptions } from 'ag-grid-community';
|
|
2
|
+
import { Awaitable } from '../type';
|
|
2
3
|
import { EditableAgGridFormItemProps } from './editable/interface';
|
|
4
|
+
import { AgGridPluginType } from './interface';
|
|
3
5
|
export declare function mergeProps(...options: GridOptions[]): GridOptions<any>;
|
|
4
6
|
/**
|
|
5
7
|
* 将尺寸单位px去掉
|
|
@@ -15,3 +17,19 @@ export declare function pxToNumber(value?: string | number, defaultValue?: numbe
|
|
|
15
17
|
*/
|
|
16
18
|
export declare function getStringKey(key?: string | number): string | undefined;
|
|
17
19
|
export declare function getShadowName(name: EditableAgGridFormItemProps['name']): string;
|
|
20
|
+
/**
|
|
21
|
+
* 运行副作用钩子
|
|
22
|
+
* @param plugins
|
|
23
|
+
* @param pick
|
|
24
|
+
* @param args
|
|
25
|
+
*/
|
|
26
|
+
export declare function runEffectHooks<T extends any[]>(plugins: AgGridPluginType[], pick: (p: AgGridPluginType) => ((...args: T) => Awaitable<void>) | undefined, ...args: T): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* 串形运行钩子
|
|
29
|
+
* @param plugins
|
|
30
|
+
* @param initialValue
|
|
31
|
+
* @param pick
|
|
32
|
+
* @param args
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare function runPipelineHooks<T, TArgs extends any[]>(plugins: AgGridPluginType[], initialValue: Awaited<T>, pick: (p: AgGridPluginType) => ((value: Awaited<T>, ...args: TArgs) => Awaitable<Awaited<T> | void>) | undefined, ...args: TArgs): Promise<Awaited<T>>;
|
package/es/src/ag-grid/utils.mjs
CHANGED
|
@@ -1,28 +1,49 @@
|
|
|
1
|
-
import { isNumber as
|
|
2
|
-
function m(...
|
|
3
|
-
return
|
|
1
|
+
import { isNumber as f, isArray as u } from "lodash-unified";
|
|
2
|
+
function m(...n) {
|
|
3
|
+
return n.reduce((t, r) => ({ ...t, ...r }), {});
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
if (!r)
|
|
7
|
-
return t;
|
|
8
|
-
if (typeof r == "number")
|
|
9
|
-
return r;
|
|
10
|
-
const n = r.match(/^(-?\d+(?:\.\d+)?)px$/);
|
|
5
|
+
function g(n, t = 0) {
|
|
11
6
|
if (!n)
|
|
12
7
|
return t;
|
|
13
|
-
|
|
8
|
+
if (typeof n == "number")
|
|
9
|
+
return n;
|
|
10
|
+
const r = n.match(/^(-?\d+(?:\.\d+)?)px$/);
|
|
11
|
+
if (!r)
|
|
12
|
+
return t;
|
|
13
|
+
const o = parseFloat(r[1]);
|
|
14
14
|
return o > 0 ? o : t;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return
|
|
16
|
+
function h(n) {
|
|
17
|
+
return f(n) ? String(n) : n;
|
|
18
|
+
}
|
|
19
|
+
let p = 0;
|
|
20
|
+
function d(n) {
|
|
21
|
+
return `_${u(n) ? n.join("_") : String(n)}_${p++}`;
|
|
22
|
+
}
|
|
23
|
+
async function x(n, t, ...r) {
|
|
24
|
+
for (const o of n) {
|
|
25
|
+
const i = t(o);
|
|
26
|
+
i && await i(...r);
|
|
27
|
+
}
|
|
18
28
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
async function N(n, t, r, ...o) {
|
|
30
|
+
let i = t;
|
|
31
|
+
for (const s of n) {
|
|
32
|
+
const c = r(s);
|
|
33
|
+
if (c)
|
|
34
|
+
try {
|
|
35
|
+
const e = await c(i, ...o);
|
|
36
|
+
e !== void 0 && (i = e);
|
|
37
|
+
} catch {
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return i;
|
|
22
41
|
}
|
|
23
42
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
43
|
+
d as getShadowName,
|
|
44
|
+
h as getStringKey,
|
|
26
45
|
m as mergeProps,
|
|
27
|
-
|
|
46
|
+
g as pxToNumber,
|
|
47
|
+
x as runEffectHooks,
|
|
48
|
+
N as runPipelineHooks
|
|
28
49
|
};
|
|
@@ -7,17 +7,17 @@ export declare const useOptions: (props: ApFieldCascaderProps) => {
|
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
isLeaf?: boolean | undefined;
|
|
9
9
|
loading?: boolean | undefined;
|
|
10
|
-
children?: any[] | undefined;
|
|
10
|
+
children?: /*elided*/ any[] | undefined;
|
|
11
11
|
label?: any;
|
|
12
|
-
value?:
|
|
12
|
+
value?: string | number | null | undefined;
|
|
13
13
|
disabled?: boolean | undefined;
|
|
14
14
|
}[] | undefined, CascaderOptionType[] | {
|
|
15
15
|
[x: string]: any;
|
|
16
16
|
isLeaf?: boolean | undefined;
|
|
17
17
|
loading?: boolean | undefined;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
label?: any;
|
|
20
|
-
value?:
|
|
20
|
+
value?: string | number | null | undefined;
|
|
21
21
|
disabled?: boolean | undefined;
|
|
22
22
|
}[] | undefined>;
|
|
23
23
|
request: (selectOptions?: DefaultOptionType[], clear?: boolean) => Promise<void>;
|
|
@@ -8,7 +8,6 @@ import { MonthCellRender } from '@aplus-frontend/antdv/es/vc-picker/panels/Month
|
|
|
8
8
|
import { FocusEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
9
9
|
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
10
10
|
import { PickerLocale } from '@aplus-frontend/antdv/es/date-picker/generatePicker';
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
13
12
|
import { DateRender } from '@aplus-frontend/antdv/es/vc-picker/panels/DatePanel/DateBody';
|
|
14
13
|
import { FieldMode } from '..';
|
|
@@ -8,7 +8,6 @@ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
8
8
|
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
9
9
|
import { FocusEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
10
10
|
import { PickerLocale } from '@aplus-frontend/antdv/es/date-picker/generatePicker';
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
13
12
|
import { FieldMode } from '..';
|
|
14
13
|
import { LiteralUnion } from '../../type';
|
|
@@ -6,13 +6,13 @@ export declare const useSelectOptions: (props: ApFieldSelectProps) => {
|
|
|
6
6
|
options: Ref<{
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
label?: any;
|
|
9
|
-
value?:
|
|
9
|
+
value?: string | number | null | undefined;
|
|
10
10
|
children?: Omit<DefaultOptionType, "children">[] | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
}[], DefaultOptionType[] | {
|
|
13
13
|
[x: string]: any;
|
|
14
14
|
label?: any;
|
|
15
|
-
value?:
|
|
15
|
+
value?: string | number | null | undefined;
|
|
16
16
|
children?: Omit<DefaultOptionType, "children">[] | undefined;
|
|
17
17
|
disabled?: boolean | undefined;
|
|
18
18
|
}[]>;
|
|
@@ -122,7 +122,7 @@ declare function __VLS_template(): {
|
|
|
122
122
|
handleReset: PropType<MouseEventHandler>;
|
|
123
123
|
addonBefore: VueTypeValidableDef<any>;
|
|
124
124
|
addonAfter: VueTypeValidableDef<any>;
|
|
125
|
-
prefix: VueTypeValidableDef<any>;
|
|
125
|
+
prefix: ** @type { [typeof __VLS_components.Flex, typeof __VLS_components.Flex, ] } */).VueTypeValidableDef<any>;
|
|
126
126
|
suffix: VueTypeValidableDef<any>;
|
|
127
127
|
clearIcon: VueTypeValidableDef<any>;
|
|
128
128
|
allowClear: {
|
|
@@ -260,7 +260,7 @@ declare function __VLS_template(): {
|
|
|
260
260
|
handleReset: PropType<MouseEventHandler>;
|
|
261
261
|
addonBefore: VueTypeValidableDef<any>;
|
|
262
262
|
addonAfter: VueTypeValidableDef<any>;
|
|
263
|
-
prefix: VueTypeValidableDef<any>;
|
|
263
|
+
prefix: ** @type { [typeof __VLS_components.Flex, typeof __VLS_components.Flex, ] } */).VueTypeValidableDef<any>;
|
|
264
264
|
suffix: VueTypeValidableDef<any>;
|
|
265
265
|
clearIcon: VueTypeValidableDef<any>;
|
|
266
266
|
allowClear: {
|
|
@@ -417,7 +417,7 @@ declare const __VLS_component: DefineComponent<ApFieldTextPasswordProps, {
|
|
|
417
417
|
handleReset: PropType<MouseEventHandler>;
|
|
418
418
|
addonBefore: VueTypeValidableDef<any>;
|
|
419
419
|
addonAfter: VueTypeValidableDef<any>;
|
|
420
|
-
prefix: VueTypeValidableDef<any>;
|
|
420
|
+
prefix: ** @type { [typeof __VLS_components.Flex, typeof __VLS_components.Flex, ] } */).VueTypeValidableDef<any>;
|
|
421
421
|
suffix: VueTypeValidableDef<any>;
|
|
422
422
|
clearIcon: VueTypeValidableDef<any>;
|
|
423
423
|
allowClear: {
|
|
@@ -555,7 +555,7 @@ declare const __VLS_component: DefineComponent<ApFieldTextPasswordProps, {
|
|
|
555
555
|
handleReset: PropType<MouseEventHandler>;
|
|
556
556
|
addonBefore: VueTypeValidableDef<any>;
|
|
557
557
|
addonAfter: VueTypeValidableDef<any>;
|
|
558
|
-
prefix: VueTypeValidableDef<any>;
|
|
558
|
+
prefix: ** @type { [typeof __VLS_components.Flex, typeof __VLS_components.Flex, ] } */).VueTypeValidableDef<any>;
|
|
559
559
|
suffix: VueTypeValidableDef<any>;
|
|
560
560
|
clearIcon: VueTypeValidableDef<any>;
|
|
561
561
|
allowClear: {
|
|
@@ -8,14 +8,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
checkable?: boolean | undefined;
|
|
10
10
|
disableCheckbox?: boolean | undefined;
|
|
11
|
-
children?: any[] | undefined;
|
|
11
|
+
children?: /*elided*/ any[] | undefined;
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: any;
|
|
14
14
|
value?: RawValueType | undefined;
|
|
15
15
|
title?: any;
|
|
16
16
|
label?: any;
|
|
17
17
|
key?: Key | undefined;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
20
|
checkable?: boolean | undefined;
|
|
21
21
|
disableCheckbox?: boolean | undefined;
|
|
@@ -24,14 +24,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
24
24
|
disabled?: boolean | undefined;
|
|
25
25
|
checkable?: boolean | undefined;
|
|
26
26
|
disableCheckbox?: boolean | undefined;
|
|
27
|
-
children?: any[] | undefined;
|
|
27
|
+
children?: /*elided*/ any[] | undefined;
|
|
28
28
|
} | {
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
value?: RawValueType | undefined;
|
|
31
31
|
title?: any;
|
|
32
32
|
label?: any;
|
|
33
33
|
key?: Key | undefined;
|
|
34
|
-
children?: any[] | undefined;
|
|
34
|
+
children?: /*elided*/ any[] | undefined;
|
|
35
35
|
disabled?: boolean | undefined;
|
|
36
36
|
checkable?: boolean | undefined;
|
|
37
37
|
disableCheckbox?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign,
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
3
|
import { ApFormProps, UpdateModelOptimizeFn, WatchFunc, ApFormInternalInstance } from './interface';
|
|
4
4
|
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
@@ -7,7 +7,6 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
9
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
declare function __VLS_template(): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
3
|
import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
|
|
4
4
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
@@ -7,7 +7,6 @@ import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
|
7
7
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
@@ -119,7 +118,7 @@ declare function __VLS_template(): {
|
|
|
119
118
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
120
119
|
readonly initialValues?: Recordable | undefined;
|
|
121
120
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
122
|
-
readonly syncToUrl?:
|
|
121
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
123
122
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
124
123
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
125
124
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1090,7 +1089,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1090
1089
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1091
1090
|
readonly initialValues?: Recordable | undefined;
|
|
1092
1091
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1093
|
-
readonly syncToUrl?:
|
|
1092
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1094
1093
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1095
1094
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
1096
1095
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -446,7 +446,7 @@ declare function __VLS_template(): {
|
|
|
446
446
|
default: string | number | ColSize;
|
|
447
447
|
};
|
|
448
448
|
xxl: {
|
|
449
|
-
type: PropType<string | number | ColSize>;
|
|
449
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).ColSize>;
|
|
450
450
|
default: string | number | ColSize;
|
|
451
451
|
};
|
|
452
452
|
prefixCls: StringConstructor;
|
|
@@ -548,7 +548,7 @@ declare function __VLS_template(): {
|
|
|
548
548
|
default: string | number | ColSize;
|
|
549
549
|
};
|
|
550
550
|
xxl: {
|
|
551
|
-
type: PropType<string | number | ColSize>;
|
|
551
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).ColSize>;
|
|
552
552
|
default: string | number | ColSize;
|
|
553
553
|
};
|
|
554
554
|
prefixCls: StringConstructor;
|
|
@@ -704,7 +704,7 @@ declare function __VLS_template(): {
|
|
|
704
704
|
default: string | number | ColSize;
|
|
705
705
|
};
|
|
706
706
|
xxl: {
|
|
707
|
-
type: PropType<string | number | ColSize>;
|
|
707
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).ColSize>;
|
|
708
708
|
default: string | number | ColSize;
|
|
709
709
|
};
|
|
710
710
|
prefixCls: StringConstructor;
|
|
@@ -1241,7 +1241,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1241
1241
|
default: string | number | ColSize;
|
|
1242
1242
|
};
|
|
1243
1243
|
xxl: {
|
|
1244
|
-
type: PropType<string | number | ColSize>;
|
|
1244
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).ColSize>;
|
|
1245
1245
|
default: string | number | ColSize;
|
|
1246
1246
|
};
|
|
1247
1247
|
prefixCls: StringConstructor;
|
|
@@ -1343,7 +1343,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1343
1343
|
default: string | number | ColSize;
|
|
1344
1344
|
};
|
|
1345
1345
|
xxl: {
|
|
1346
|
-
type: PropType<string | number | ColSize>;
|
|
1346
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).ColSize>;
|
|
1347
1347
|
default: string | number | ColSize;
|
|
1348
1348
|
};
|
|
1349
1349
|
prefixCls: StringConstructor;
|
|
@@ -1499,7 +1499,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1499
1499
|
default: string | number | ColSize;
|
|
1500
1500
|
};
|
|
1501
1501
|
xxl: {
|
|
1502
|
-
type: PropType<string | number | ColSize>;
|
|
1502
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).ColSize>;
|
|
1503
1503
|
default: string | number | ColSize;
|
|
1504
1504
|
};
|
|
1505
1505
|
prefixCls: StringConstructor;
|
|
@@ -17,10 +17,10 @@ function i(r) {
|
|
|
17
17
|
}
|
|
18
18
|
function f(r) {
|
|
19
19
|
const t = [], n = r.filter(
|
|
20
|
-
(e) => e && i(e) && e.type !== Symbol.for("v-cmt")
|
|
20
|
+
(e) => e && i(e) && e.type !== /* @__PURE__ */ Symbol.for("v-cmt")
|
|
21
21
|
);
|
|
22
22
|
for (const e of n)
|
|
23
|
-
if (e.type === Symbol.for("v-fgt")) {
|
|
23
|
+
if (e.type === /* @__PURE__ */ Symbol.for("v-fgt")) {
|
|
24
24
|
const l = f(e.children);
|
|
25
25
|
t.push(...l);
|
|
26
26
|
} else if (u(e)) {
|
|
@@ -11,13 +11,11 @@ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
11
11
|
import { AlignType } from '@aplus-frontend/antdv/es/vc-align/interface';
|
|
12
12
|
import { DateRender } from '@aplus-frontend/antdv/es/vc-picker/panels/DatePanel/DateBody';
|
|
13
13
|
import { MonthCellRender } from '@aplus-frontend/antdv/es/vc-picker/panels/MonthPanel/MonthBody';
|
|
14
|
-
import { PanelMode, RangeValue, OnPanelChange, PresetDate,
|
|
14
|
+
import { PanelMode, RangeValue, OnPanelChange, PresetDate, CustomFormat, DisabledTimes, DisabledTime, PickerMode } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
15
15
|
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
16
16
|
import { LiteralUnion } from '../../../type';
|
|
17
17
|
import { ApFormatPresetType } from '../../../ap-field/date/interface';
|
|
18
|
-
import { DatePickerProps } from '@aplus-frontend/antdv';
|
|
19
18
|
import { ZoneAlias } from '@aplus-frontend/utils';
|
|
20
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
21
19
|
import { OnCleanup } from '@vue/reactivity';
|
|
22
20
|
declare function __VLS_template(): {
|
|
23
21
|
attrs: Partial<{}>;
|
|
@@ -69,7 +67,7 @@ declare function __VLS_template(): {
|
|
|
69
67
|
readonly onSelect?: ((value: Dayjs) => void) | undefined;
|
|
70
68
|
readonly open?: boolean | undefined;
|
|
71
69
|
readonly disabled?: boolean | undefined;
|
|
72
|
-
readonly direction?:
|
|
70
|
+
readonly direction?: "ltr" | "rtl" | undefined;
|
|
73
71
|
readonly placeholder?: string | undefined;
|
|
74
72
|
readonly id?: string | undefined;
|
|
75
73
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -106,19 +104,19 @@ declare function __VLS_template(): {
|
|
|
106
104
|
readonly showToday?: boolean | undefined;
|
|
107
105
|
readonly showTime?: boolean | SharedTimeProps<Dayjs> | undefined;
|
|
108
106
|
readonly valueFormat?: string | undefined;
|
|
109
|
-
readonly value?:
|
|
107
|
+
readonly value?: number | null | undefined;
|
|
110
108
|
readonly defaultValue?: number | undefined;
|
|
111
109
|
readonly 'onUpdate:value'?: (((ts: number | null) => void) & ((...args: any[]) => any)) | undefined;
|
|
112
110
|
readonly onChange?: ((ts: number | null, dayStr: string) => void) | undefined;
|
|
113
111
|
readonly onOk?: ((ts: number | null) => void) | undefined;
|
|
114
112
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
115
|
-
readonly shownFormat?:
|
|
113
|
+
readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
|
|
116
114
|
readonly formatBegins?: boolean | undefined;
|
|
117
115
|
readonly timezone?: ( ZoneAlias | {
|
|
118
116
|
label?: string;
|
|
119
117
|
value: ZoneAlias;
|
|
120
118
|
}[]) | undefined;
|
|
121
|
-
readonly disabledTime?:
|
|
119
|
+
readonly disabledTime?: ((date: Dayjs) => DisabledTimes) | undefined;
|
|
122
120
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
123
121
|
$attrs: {
|
|
124
122
|
[x: string]: unknown;
|
|
@@ -822,7 +820,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateProps, {
|
|
|
822
820
|
readonly onSelect?: ((value: Dayjs) => void) | undefined;
|
|
823
821
|
readonly open?: boolean | undefined;
|
|
824
822
|
readonly disabled?: boolean | undefined;
|
|
825
|
-
readonly direction?:
|
|
823
|
+
readonly direction?: "ltr" | "rtl" | undefined;
|
|
826
824
|
readonly placeholder?: string | undefined;
|
|
827
825
|
readonly id?: string | undefined;
|
|
828
826
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -859,19 +857,19 @@ declare const __VLS_component: DefineComponent<ApFormItemDateProps, {
|
|
|
859
857
|
readonly showToday?: boolean | undefined;
|
|
860
858
|
readonly showTime?: boolean | SharedTimeProps<Dayjs> | undefined;
|
|
861
859
|
readonly valueFormat?: string | undefined;
|
|
862
|
-
readonly value?:
|
|
860
|
+
readonly value?: number | null | undefined;
|
|
863
861
|
readonly defaultValue?: number | undefined;
|
|
864
862
|
readonly 'onUpdate:value'?: (((ts: number | null) => void) & ((...args: any[]) => any)) | undefined;
|
|
865
863
|
readonly onChange?: ((ts: number | null, dayStr: string) => void) | undefined;
|
|
866
864
|
readonly onOk?: ((ts: number | null) => void) | undefined;
|
|
867
865
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
868
|
-
readonly shownFormat?:
|
|
866
|
+
readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
|
|
869
867
|
readonly formatBegins?: boolean | undefined;
|
|
870
868
|
readonly timezone?: ( ZoneAlias | {
|
|
871
869
|
label?: string;
|
|
872
870
|
value: ZoneAlias;
|
|
873
871
|
}[]) | undefined;
|
|
874
|
-
readonly disabledTime?:
|
|
872
|
+
readonly disabledTime?: ((date: Dayjs) => DisabledTimes) | undefined;
|
|
875
873
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
876
874
|
$attrs: {
|
|
877
875
|
[x: string]: unknown;
|
|
@@ -9,15 +9,13 @@ import { PickerLocale } from '@aplus-frontend/antdv/es/date-picker/generatePicke
|
|
|
9
9
|
import { Variant } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
10
10
|
import { AlignType } from '@aplus-frontend/antdv/es/vc-align/interface';
|
|
11
11
|
import { Dayjs } from 'dayjs';
|
|
12
|
-
import { EventValue, DisabledTimes, RangeValue, PresetDate, PanelMode,
|
|
12
|
+
import { EventValue, DisabledTimes, RangeValue, CustomFormat, PresetDate, PanelMode, PickerMode } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
13
13
|
import { RangeDateRender, RangeType, RangeInfo } from '@aplus-frontend/antdv/es/vc-picker/RangePicker';
|
|
14
14
|
import { MonthCellRender } from '@aplus-frontend/antdv/es/vc-picker/panels/MonthPanel/MonthBody';
|
|
15
15
|
import { LiteralUnion } from '../../../type';
|
|
16
16
|
import { ApFormatPresetType } from '../../../ap-field/date/interface';
|
|
17
|
-
import { RangePickerProps } from '@aplus-frontend/antdv/es/date-picker';
|
|
18
17
|
import { ZoneAlias } from '@aplus-frontend/utils';
|
|
19
18
|
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
20
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
21
19
|
import { OnCleanup } from '@vue/reactivity';
|
|
22
20
|
declare function __VLS_template(): {
|
|
23
21
|
attrs: Partial<{}>;
|
|
@@ -66,8 +64,8 @@ declare function __VLS_template(): {
|
|
|
66
64
|
readonly onMouseup?: MouseEventHandler | undefined;
|
|
67
65
|
readonly open?: boolean | undefined;
|
|
68
66
|
readonly separator?: VueNode;
|
|
69
|
-
readonly disabled?:
|
|
70
|
-
readonly direction?:
|
|
67
|
+
readonly disabled?: boolean | [boolean, boolean] | undefined;
|
|
68
|
+
readonly direction?: "ltr" | "rtl" | undefined;
|
|
71
69
|
readonly placeholder?: [string, string] | undefined;
|
|
72
70
|
readonly id?: string | undefined;
|
|
73
71
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -102,7 +100,7 @@ declare function __VLS_template(): {
|
|
|
102
100
|
readonly ranges?: Record<string, [ EventValue<Dayjs>, EventValue<Dayjs>] | (() => [ EventValue<Dayjs>, EventValue<Dayjs>])> | undefined;
|
|
103
101
|
readonly allowEmpty?: [boolean, boolean] | undefined;
|
|
104
102
|
readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
|
|
105
|
-
readonly activePickerIndex?:
|
|
103
|
+
readonly activePickerIndex?: 0 | 1 | undefined;
|
|
106
104
|
readonly valueFormat?: string | undefined;
|
|
107
105
|
readonly value?: ( RangeValue<number> | null) | undefined;
|
|
108
106
|
readonly defaultValue?: RangeValue<number> | undefined;
|
|
@@ -110,13 +108,13 @@ declare function __VLS_template(): {
|
|
|
110
108
|
readonly onChange?: ((ts: RangeValue<number> | null, dayStr: [string, string]) => void) | undefined;
|
|
111
109
|
readonly onOk?: ((ts: RangeValue<number>) => void) | undefined;
|
|
112
110
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
113
|
-
readonly shownFormat?:
|
|
111
|
+
readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
|
|
114
112
|
readonly timezone?: ( ZoneAlias | {
|
|
115
113
|
label?: string;
|
|
116
114
|
value: ZoneAlias;
|
|
117
115
|
}[]) | undefined;
|
|
118
116
|
readonly readModeSeparator?: any;
|
|
119
|
-
readonly presets?:
|
|
117
|
+
readonly presets?: true | PresetDate<RangeValue<Dayjs>>[] | {
|
|
120
118
|
thisWeek?: boolean;
|
|
121
119
|
lastWeek?: boolean;
|
|
122
120
|
last7Days?: boolean;
|
|
@@ -128,7 +126,7 @@ declare function __VLS_template(): {
|
|
|
128
126
|
lastQuarter?: boolean;
|
|
129
127
|
thisYear?: boolean;
|
|
130
128
|
lastYear?: boolean;
|
|
131
|
-
};
|
|
129
|
+
} | undefined;
|
|
132
130
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
133
131
|
$attrs: {
|
|
134
132
|
[x: string]: unknown;
|
|
@@ -874,8 +872,8 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
874
872
|
readonly onMouseup?: MouseEventHandler | undefined;
|
|
875
873
|
readonly open?: boolean | undefined;
|
|
876
874
|
readonly separator?: VueNode;
|
|
877
|
-
readonly disabled?:
|
|
878
|
-
readonly direction?:
|
|
875
|
+
readonly disabled?: boolean | [boolean, boolean] | undefined;
|
|
876
|
+
readonly direction?: "ltr" | "rtl" | undefined;
|
|
879
877
|
readonly placeholder?: [string, string] | undefined;
|
|
880
878
|
readonly id?: string | undefined;
|
|
881
879
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -910,7 +908,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
910
908
|
readonly ranges?: Record<string, [ EventValue<Dayjs>, EventValue<Dayjs>] | (() => [ EventValue<Dayjs>, EventValue<Dayjs>])> | undefined;
|
|
911
909
|
readonly allowEmpty?: [boolean, boolean] | undefined;
|
|
912
910
|
readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
|
|
913
|
-
readonly activePickerIndex?:
|
|
911
|
+
readonly activePickerIndex?: 0 | 1 | undefined;
|
|
914
912
|
readonly valueFormat?: string | undefined;
|
|
915
913
|
readonly value?: ( RangeValue<number> | null) | undefined;
|
|
916
914
|
readonly defaultValue?: RangeValue<number> | undefined;
|
|
@@ -918,13 +916,13 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
918
916
|
readonly onChange?: ((ts: RangeValue<number> | null, dayStr: [string, string]) => void) | undefined;
|
|
919
917
|
readonly onOk?: ((ts: RangeValue<number>) => void) | undefined;
|
|
920
918
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
921
|
-
readonly shownFormat?:
|
|
919
|
+
readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
|
|
922
920
|
readonly timezone?: ( ZoneAlias | {
|
|
923
921
|
label?: string;
|
|
924
922
|
value: ZoneAlias;
|
|
925
923
|
}[]) | undefined;
|
|
926
924
|
readonly readModeSeparator?: any;
|
|
927
|
-
readonly presets?:
|
|
925
|
+
readonly presets?: true | PresetDate<RangeValue<Dayjs>>[] | {
|
|
928
926
|
thisWeek?: boolean;
|
|
929
927
|
lastWeek?: boolean;
|
|
930
928
|
last7Days?: boolean;
|
|
@@ -936,7 +934,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
936
934
|
lastQuarter?: boolean;
|
|
937
935
|
thisYear?: boolean;
|
|
938
936
|
lastYear?: boolean;
|
|
939
|
-
};
|
|
937
|
+
} | undefined;
|
|
940
938
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
941
939
|
$attrs: {
|
|
942
940
|
[x: string]: unknown;
|
|
@@ -4,7 +4,6 @@ import { ComponentInternalInstance, VNode, VNodeProps, AllowedComponentProps, Co
|
|
|
4
4
|
import { FieldMode, ApFieldNumberProps } from '../../..';
|
|
5
5
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
6
6
|
import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
-
import { InputNumberProps } from '@aplus-frontend/antdv';
|
|
8
7
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
9
8
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
10
9
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
@@ -81,7 +80,7 @@ declare function __VLS_template(): {
|
|
|
81
80
|
offset: ValueType;
|
|
82
81
|
type: "up" | "down";
|
|
83
82
|
}) => void) | undefined;
|
|
84
|
-
readonly inputMode?:
|
|
83
|
+
readonly inputMode?: "input" | "spinner" | undefined;
|
|
85
84
|
readonly thousands?: boolean | undefined;
|
|
86
85
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
87
86
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -603,7 +602,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
603
602
|
offset: ValueType;
|
|
604
603
|
type: "up" | "down";
|
|
605
604
|
}) => void) | undefined;
|
|
606
|
-
readonly inputMode?:
|
|
605
|
+
readonly inputMode?: "input" | "spinner" | undefined;
|
|
607
606
|
readonly thousands?: boolean | undefined;
|
|
608
607
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
609
608
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|