@veltra/desktop 1.7.12 → 1.7.13
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/batch-edit/helper.d.ts +1 -2
- package/dist/components/condition-editor/core/evaluator.d.ts +4 -5
- package/dist/components/contextmenu/api.d.ts +1 -2
- package/dist/components/contextmenu/di.d.ts +2 -3
- package/dist/components/loading/directive.d.ts +1 -2
- package/dist/components/message/message.d.ts +1 -2
- package/dist/components/message-confirm/message-confirm.d.ts +1 -2
- package/dist/components/notification/notification.d.ts +1 -2
- package/dist/components/table/node/col.js +19 -0
- package/dist/components/table/node/col.js.map +1 -1
- package/dist/components/table/table-cell.js +2 -0
- package/dist/components/table/table-cell.js.map +1 -1
- package/dist/components/table/table-foot.js +2 -0
- package/dist/components/table/table-foot.js.map +1 -1
- package/dist/components/table/table-head.js +1 -0
- package/dist/components/table/table-head.js.map +1 -1
- package/dist/components/table/table-row.js +2 -0
- package/dist/components/table/table-row.js.map +1 -1
- package/dist/components/table/use-columns.d.ts +1 -2
- package/dist/index.d.ts +2 -2
- package/dist/install.d.ts +3 -3
- package/dist/types/action.d.ts +7 -8
- package/dist/types/animation.d.ts +4 -5
- package/dist/types/auto-complete.d.ts +4 -5
- package/dist/types/badge.d.ts +4 -5
- package/dist/types/batch-edit.d.ts +9 -10
- package/dist/types/breadcrumb.d.ts +6 -7
- package/dist/types/button.d.ts +5 -6
- package/dist/types/calendar.d.ts +7 -8
- package/dist/types/card.d.ts +7 -8
- package/dist/types/cascade.d.ts +6 -7
- package/dist/types/check-tag.d.ts +4 -5
- package/dist/types/checkbox-group.d.ts +3 -4
- package/dist/types/checkbox.d.ts +5 -6
- package/dist/types/code-editor.d.ts +5 -6
- package/dist/types/collapse.d.ts +6 -7
- package/dist/types/condition-editor.d.ts +11 -12
- package/dist/types/contextmenu.d.ts +5 -6
- package/dist/types/css-transition.d.ts +4 -5
- package/dist/types/date-panel.d.ts +3 -4
- package/dist/types/date-picker.d.ts +5 -6
- package/dist/types/date-range-picker.d.ts +6 -7
- package/dist/types/dialog.d.ts +5 -6
- package/dist/types/drawer.d.ts +6 -7
- package/dist/types/dropdown.d.ts +4 -5
- package/dist/types/dual-nav.d.ts +6 -7
- package/dist/types/empty.d.ts +4 -5
- package/dist/types/expression-editor.d.ts +6 -7
- package/dist/types/file-picker.d.ts +4 -5
- package/dist/types/file-viewer.d.ts +6 -7
- package/dist/types/float-button.d.ts +5 -6
- package/dist/types/form-item.d.ts +3 -4
- package/dist/types/form.d.ts +4 -5
- package/dist/types/gantt-chart.d.ts +4 -5
- package/dist/types/grid-input.d.ts +4 -5
- package/dist/types/grid.d.ts +7 -8
- package/dist/types/group-input.d.ts +4 -5
- package/dist/types/group-nav.d.ts +3 -4
- package/dist/types/icon.d.ts +3 -4
- package/dist/types/image-cropper.d.ts +9 -10
- package/dist/types/index.d.ts +2 -2
- package/dist/types/input.d.ts +4 -5
- package/dist/types/layout.d.ts +4 -5
- package/dist/types/list.d.ts +4 -5
- package/dist/types/loading.d.ts +5 -6
- package/dist/types/message-confirm.d.ts +8 -9
- package/dist/types/message.d.ts +8 -9
- package/dist/types/multi-auto-complete.d.ts +4 -5
- package/dist/types/multi-select.d.ts +4 -5
- package/dist/types/multi-tree-select.d.ts +4 -5
- package/dist/types/nav.d.ts +5 -6
- package/dist/types/node-render.d.ts +2 -3
- package/dist/types/notification.d.ts +8 -9
- package/dist/types/number-input.d.ts +3 -4
- package/dist/types/number-range-input.d.ts +4 -5
- package/dist/types/number.d.ts +3 -4
- package/dist/types/paginator.d.ts +4 -5
- package/dist/types/palette.d.ts +7 -8
- package/dist/types/password-input.d.ts +4 -5
- package/dist/types/pop-confirm.d.ts +4 -5
- package/dist/types/pop.d.ts +4 -5
- package/dist/types/progress-nodes.d.ts +4 -5
- package/dist/types/progress.d.ts +4 -5
- package/dist/types/quick-batch-edit.d.ts +4 -5
- package/dist/types/radio-group.d.ts +4 -5
- package/dist/types/radio.d.ts +4 -5
- package/dist/types/rich-text-editor.d.ts +6 -7
- package/dist/types/scroll.d.ts +5 -6
- package/dist/types/segment.d.ts +5 -6
- package/dist/types/select.d.ts +4 -5
- package/dist/types/slider.d.ts +4 -5
- package/dist/types/steps.d.ts +5 -6
- package/dist/types/switch.d.ts +4 -5
- package/dist/types/table-editor.d.ts +4 -5
- package/dist/types/table.d.ts +23 -13
- package/dist/types/tabs.d.ts +13 -14
- package/dist/types/tag.d.ts +3 -4
- package/dist/types/text-editor.d.ts +5 -6
- package/dist/types/text.d.ts +4 -5
- package/dist/types/textarea.d.ts +4 -5
- package/dist/types/theme.d.ts +3 -4
- package/dist/types/tip.d.ts +6 -7
- package/dist/types/tree-select.d.ts +4 -5
- package/dist/types/tree.d.ts +6 -6
- package/dist/types/watermark.d.ts +4 -5
- package/package.json +5 -5
- package/src/components/table/__test__/column-style.test.ts +67 -0
- package/src/components/table/node/col.ts +30 -1
- package/src/components/table/table-cell.vue +7 -2
- package/src/components/table/table-foot.vue +2 -0
- package/src/components/table/table-head.tsx +1 -0
- package/src/components/table/table-row.tsx +2 -0
- package/src/types/table.ts +12 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSize, DeconstructValue } from "@veltra/utils";
|
|
2
2
|
//#region src/types/breadcrumb.d.ts
|
|
3
3
|
/** 面包屑单项 */
|
|
4
|
-
interface BreadcrumbItem {
|
|
4
|
+
export interface BreadcrumbItem {
|
|
5
5
|
/** 展示文案 */
|
|
6
6
|
title: string;
|
|
7
7
|
/** 存在时渲染为 `<a>`,由浏览器处理导航 */
|
|
@@ -10,7 +10,7 @@ interface BreadcrumbItem {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
}
|
|
12
12
|
/** 面包屑组件属性 */
|
|
13
|
-
interface BreadcrumbProps {
|
|
13
|
+
export interface BreadcrumbProps {
|
|
14
14
|
/** 路径项,顺序为从一级到末级 */
|
|
15
15
|
items: BreadcrumbItem[];
|
|
16
16
|
/** 尺寸 */
|
|
@@ -22,21 +22,20 @@ interface BreadcrumbProps {
|
|
|
22
22
|
lastLinked?: boolean;
|
|
23
23
|
}
|
|
24
24
|
/** `item` 插槽作用域 */
|
|
25
|
-
interface BreadcrumbSlotScope {
|
|
25
|
+
export interface BreadcrumbSlotScope {
|
|
26
26
|
item: BreadcrumbItem;
|
|
27
27
|
index: number;
|
|
28
28
|
isLast: boolean;
|
|
29
29
|
}
|
|
30
30
|
/** 面包屑组件事件 */
|
|
31
|
-
interface BreadcrumbEmits {
|
|
31
|
+
export interface BreadcrumbEmits {
|
|
32
32
|
/**
|
|
33
33
|
* 可交互项(无 `href` 的链式项)被点击时触发;有 `href` 时不触发(走原生导航)
|
|
34
34
|
*/
|
|
35
35
|
(e: 'click', item: BreadcrumbItem, index: number, ev: Event): void;
|
|
36
36
|
}
|
|
37
37
|
/** @internal */
|
|
38
|
-
interface _BreadcrumbExposed {}
|
|
39
|
-
type BreadcrumbExposed = DeconstructValue<_BreadcrumbExposed>;
|
|
38
|
+
export interface _BreadcrumbExposed {}
|
|
39
|
+
export type BreadcrumbExposed = DeconstructValue<_BreadcrumbExposed>;
|
|
40
40
|
//#endregion
|
|
41
|
-
export { BreadcrumbEmits, BreadcrumbExposed, BreadcrumbItem, BreadcrumbProps, BreadcrumbSlotScope, _BreadcrumbExposed };
|
|
42
41
|
//# sourceMappingURL=breadcrumb.d.ts.map
|
package/dist/types/button.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { Component, ShallowRef } from "vue";
|
|
|
2
2
|
import { ColorType, ComponentProps, DeconstructValue } from "@veltra/utils";
|
|
3
3
|
//#region src/types/button.d.ts
|
|
4
4
|
/** 按钮类型 */
|
|
5
|
-
type ButtonType = ColorType;
|
|
5
|
+
export type ButtonType = ColorType;
|
|
6
6
|
/**
|
|
7
7
|
* 按钮属性类型
|
|
8
8
|
* @description 组件不注入默认 `aria-label`:可访问名来自默认插槽文本,
|
|
9
9
|
* 或你自己传入的 `aria-label`(透传到根元素);只有图标的按钮必须自行传 `aria-label`
|
|
10
10
|
*/
|
|
11
|
-
interface ButtonProps extends ComponentProps {
|
|
11
|
+
export interface ButtonProps extends ComponentProps {
|
|
12
12
|
/** 按钮类型 */
|
|
13
13
|
type?: ButtonType;
|
|
14
14
|
/** 是否以文本形式展示 */
|
|
@@ -32,16 +32,15 @@ interface ButtonProps extends ComponentProps {
|
|
|
32
32
|
/** 事件是否传播(冒泡或者捕获) */
|
|
33
33
|
propagate?: boolean;
|
|
34
34
|
}
|
|
35
|
-
interface ButtonEmits {
|
|
35
|
+
export interface ButtonEmits {
|
|
36
36
|
/** 点击事件 */
|
|
37
37
|
(name: 'click', e: MouseEvent): void;
|
|
38
38
|
}
|
|
39
39
|
/** 在组件内部引用 */
|
|
40
|
-
interface _ButtonExposed {
|
|
40
|
+
export interface _ButtonExposed {
|
|
41
41
|
el: ShallowRef<HTMLButtonElement | undefined>;
|
|
42
42
|
}
|
|
43
43
|
/** 按钮暴露的属性和方法 */
|
|
44
|
-
type ButtonExposed = DeconstructValue<_ButtonExposed>;
|
|
44
|
+
export type ButtonExposed = DeconstructValue<_ButtonExposed>;
|
|
45
45
|
//#endregion
|
|
46
|
-
export { ButtonEmits, ButtonExposed, ButtonProps, ButtonType, _ButtonExposed };
|
|
47
46
|
//# sourceMappingURL=button.d.ts.map
|
package/dist/types/calendar.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DeconstructValue } from "@veltra/utils";
|
|
|
2
2
|
import { Dater } from "@cat-kit/core";
|
|
3
3
|
//#region src/types/calendar.d.ts
|
|
4
4
|
/** day接口 */
|
|
5
|
-
interface CalendarDay {
|
|
5
|
+
export interface CalendarDay {
|
|
6
6
|
date: Dater;
|
|
7
7
|
/** 是否今日 */
|
|
8
8
|
isToday?: boolean;
|
|
@@ -11,7 +11,7 @@ interface CalendarDay {
|
|
|
11
11
|
/** 是否禁止选择 */
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
}
|
|
14
|
-
interface CalendarMonth {
|
|
14
|
+
export interface CalendarMonth {
|
|
15
15
|
date: Dater;
|
|
16
16
|
/** 是否禁止选择 */
|
|
17
17
|
disabled?: boolean;
|
|
@@ -20,7 +20,7 @@ interface CalendarMonth {
|
|
|
20
20
|
/** 月份 */
|
|
21
21
|
month: number;
|
|
22
22
|
}
|
|
23
|
-
interface CalendarYear {
|
|
23
|
+
export interface CalendarYear {
|
|
24
24
|
date: Dater;
|
|
25
25
|
/** 是否禁止选择 */
|
|
26
26
|
disabled?: boolean;
|
|
@@ -28,17 +28,16 @@ interface CalendarYear {
|
|
|
28
28
|
year: number;
|
|
29
29
|
}
|
|
30
30
|
/** 日历组件属性 */
|
|
31
|
-
interface CalendarProps {
|
|
31
|
+
export interface CalendarProps {
|
|
32
32
|
modelValue?: string;
|
|
33
33
|
}
|
|
34
34
|
/** 日历组件定义的事件 */
|
|
35
|
-
interface CalendarEmits {
|
|
35
|
+
export interface CalendarEmits {
|
|
36
36
|
(e: 'update:modelValue', value: string): void;
|
|
37
37
|
}
|
|
38
38
|
/** 日历组件暴露的属性和方法(组件内部使用) */
|
|
39
|
-
interface _CalendarExposed {}
|
|
39
|
+
export interface _CalendarExposed {}
|
|
40
40
|
/** 日历组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
41
|
-
type CalendarExposed = DeconstructValue<_CalendarExposed>;
|
|
41
|
+
export type CalendarExposed = DeconstructValue<_CalendarExposed>;
|
|
42
42
|
//#endregion
|
|
43
|
-
export { CalendarDay, CalendarEmits, CalendarExposed, CalendarMonth, CalendarProps, CalendarYear, _CalendarExposed };
|
|
44
43
|
//# sourceMappingURL=calendar.d.ts.map
|
package/dist/types/card.d.ts
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { ComponentProps, DeconstructValue } from "@veltra/utils";
|
|
2
2
|
//#region src/types/card.d.ts
|
|
3
3
|
/** 卡片组件属性 */
|
|
4
|
-
interface CardProps extends ComponentProps {
|
|
4
|
+
export interface CardProps extends ComponentProps {
|
|
5
5
|
/** 宽度 */
|
|
6
6
|
width?: string | number;
|
|
7
7
|
/** 融合样式,卡片不再有阴影 */
|
|
8
8
|
integrate?: boolean;
|
|
9
9
|
}
|
|
10
|
-
interface CardActionProps {
|
|
10
|
+
export interface CardActionProps {
|
|
11
11
|
/** 右对齐 */
|
|
12
12
|
alignRight?: boolean;
|
|
13
13
|
}
|
|
14
|
-
interface CardContentProps {
|
|
14
|
+
export interface CardContentProps {
|
|
15
15
|
/** 封面模式 */
|
|
16
16
|
cover?: boolean;
|
|
17
17
|
}
|
|
18
|
-
interface CardCoverProps {
|
|
18
|
+
export interface CardCoverProps {
|
|
19
19
|
/** 封面图片地址 */
|
|
20
20
|
src: string;
|
|
21
21
|
/** 封面高度 */
|
|
22
22
|
height?: string | number;
|
|
23
23
|
}
|
|
24
|
-
interface CardEmits {}
|
|
25
|
-
interface _CardExposed {}
|
|
26
|
-
type CardExposed = DeconstructValue<_CardExposed>;
|
|
24
|
+
export interface CardEmits {}
|
|
25
|
+
export interface _CardExposed {}
|
|
26
|
+
export type CardExposed = DeconstructValue<_CardExposed>;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { CardActionProps, CardContentProps, CardCoverProps, CardEmits, CardExposed, CardProps, _CardExposed };
|
|
29
28
|
//# sourceMappingURL=card.d.ts.map
|
package/dist/types/cascade.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
import { TreeNode } from "@cat-kit/core";
|
|
3
3
|
//#region src/types/cascade.d.ts
|
|
4
|
-
interface CascadeNode<Data extends Record<string, any> = Record<string, any>> extends TreeNode<Data, CascadeNode<Data>> {
|
|
4
|
+
export interface CascadeNode<Data extends Record<string, any> = Record<string, any>> extends TreeNode<Data, CascadeNode<Data>> {
|
|
5
5
|
visible: boolean;
|
|
6
6
|
value: string;
|
|
7
7
|
label: string;
|
|
8
8
|
}
|
|
9
9
|
/** 级联选择器组件属性 */
|
|
10
|
-
interface CascadeProps extends FormComponentProps {
|
|
10
|
+
export interface CascadeProps extends FormComponentProps {
|
|
11
11
|
/**
|
|
12
12
|
* 分隔符
|
|
13
13
|
* @default '/'
|
|
@@ -47,12 +47,12 @@ interface CascadeProps extends FormComponentProps {
|
|
|
47
47
|
filterable?: boolean;
|
|
48
48
|
visibilityLimit?: number;
|
|
49
49
|
}
|
|
50
|
-
interface PanelItem {
|
|
50
|
+
export interface PanelItem {
|
|
51
51
|
key: number;
|
|
52
52
|
nodes: CascadeNode[];
|
|
53
53
|
}
|
|
54
54
|
/** 级联选择器组件定义的事件 */
|
|
55
|
-
interface CascadeEmits {
|
|
55
|
+
export interface CascadeEmits {
|
|
56
56
|
/** 触发更新 label 事件 */
|
|
57
57
|
(e: 'update:label', label?: string | string[]): void;
|
|
58
58
|
(e: 'update:modelValue', value?: string | string[]): void;
|
|
@@ -65,9 +65,8 @@ interface CascadeEmits {
|
|
|
65
65
|
(e: 'clear'): void;
|
|
66
66
|
}
|
|
67
67
|
/** 级联选择器组件暴露的属性和方法(组件内部使用) */
|
|
68
|
-
interface _CascadeExposed {}
|
|
68
|
+
export interface _CascadeExposed {}
|
|
69
69
|
/** 级联选择器组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
70
|
-
type CascadeExposed = DeconstructValue<_CascadeExposed>;
|
|
70
|
+
export type CascadeExposed = DeconstructValue<_CascadeExposed>;
|
|
71
71
|
//#endregion
|
|
72
|
-
export { CascadeEmits, CascadeExposed, CascadeNode, CascadeProps, PanelItem, _CascadeExposed };
|
|
73
72
|
//# sourceMappingURL=cascade.d.ts.map
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { DeconstructValue } from "@veltra/utils";
|
|
2
2
|
//#region src/types/check-tag.d.ts
|
|
3
3
|
/** check-tag组件属性 */
|
|
4
|
-
interface CheckTagProps {
|
|
4
|
+
export interface CheckTagProps {
|
|
5
5
|
modelValue?: boolean;
|
|
6
6
|
checked?: boolean;
|
|
7
7
|
}
|
|
8
8
|
/** check-tag组件定义的事件 */
|
|
9
|
-
interface CheckTagEmits {
|
|
9
|
+
export interface CheckTagEmits {
|
|
10
10
|
(e: 'update:modelValue', value: boolean): void;
|
|
11
11
|
}
|
|
12
12
|
/** check-tag组件暴露的属性和方法(组件内部使用) */
|
|
13
|
-
interface _CheckTagExposed {}
|
|
13
|
+
export interface _CheckTagExposed {}
|
|
14
14
|
/** check-tag组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
15
|
-
type CheckTagExposed = DeconstructValue<_CheckTagExposed>;
|
|
15
|
+
export type CheckTagExposed = DeconstructValue<_CheckTagExposed>;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { CheckTagEmits, CheckTagExposed, CheckTagProps, _CheckTagExposed };
|
|
18
17
|
//# sourceMappingURL=check-tag.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/checkbox-group.d.ts
|
|
3
3
|
/** 复选框组, 用来选择一组数据组件属性 */
|
|
4
|
-
interface CheckboxGroupProps extends FormComponentProps {
|
|
4
|
+
export interface CheckboxGroupProps extends FormComponentProps {
|
|
5
5
|
/** 值 */
|
|
6
6
|
modelValue?: Array<any>;
|
|
7
7
|
/** 复选框项 */
|
|
@@ -14,11 +14,10 @@ interface CheckboxGroupProps extends FormComponentProps {
|
|
|
14
14
|
block?: boolean;
|
|
15
15
|
}
|
|
16
16
|
/** 复选框组, 用来选择一组数据组件属性 */
|
|
17
|
-
interface CheckboxGroupEmits {
|
|
17
|
+
export interface CheckboxGroupEmits {
|
|
18
18
|
(e: 'update:modelValue', value: Array<any>): void;
|
|
19
19
|
}
|
|
20
20
|
/** 复选框组, 用来选择一组数据暴露的属性和方法 */
|
|
21
|
-
interface CheckboxGroupExposed {}
|
|
21
|
+
export interface CheckboxGroupExposed {}
|
|
22
22
|
//#endregion
|
|
23
|
-
export { CheckboxGroupEmits, CheckboxGroupExposed, CheckboxGroupProps };
|
|
24
23
|
//# sourceMappingURL=checkbox-group.d.ts.map
|
package/dist/types/checkbox.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ColorType, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/checkbox.d.ts
|
|
3
3
|
/** 复选框组件属性 */
|
|
4
|
-
interface CheckboxProps extends FormComponentProps {
|
|
4
|
+
export interface CheckboxProps extends FormComponentProps {
|
|
5
5
|
/** 部分选中 */
|
|
6
6
|
indeterminate?: boolean;
|
|
7
7
|
/** 是否选中 */
|
|
8
8
|
modelValue?: boolean;
|
|
9
9
|
}
|
|
10
|
-
interface CheckboxButtonProps extends FormComponentProps {
|
|
10
|
+
export interface CheckboxButtonProps extends FormComponentProps {
|
|
11
11
|
/** 是否选中 */
|
|
12
12
|
modelValue?: boolean;
|
|
13
13
|
/** 是否圆角 */
|
|
@@ -15,16 +15,15 @@ interface CheckboxButtonProps extends FormComponentProps {
|
|
|
15
15
|
/** 类型 */
|
|
16
16
|
type?: ColorType;
|
|
17
17
|
}
|
|
18
|
-
interface CheckboxEmits {
|
|
18
|
+
export interface CheckboxEmits {
|
|
19
19
|
(name: 'update:modelValue', checked: boolean): void;
|
|
20
20
|
(name: 'change', checked: boolean, e: MouseEvent): void;
|
|
21
21
|
}
|
|
22
|
-
interface CheckboxButtonEmits {
|
|
22
|
+
export interface CheckboxButtonEmits {
|
|
23
23
|
(name: 'update:modelValue', checked: boolean): void;
|
|
24
24
|
(name: 'change', checked: boolean): void;
|
|
25
25
|
}
|
|
26
26
|
/** 复选框暴露的属性和方法 */
|
|
27
|
-
interface CheckboxExposed {}
|
|
27
|
+
export interface CheckboxExposed {}
|
|
28
28
|
//#endregion
|
|
29
|
-
export { CheckboxButtonEmits, CheckboxButtonProps, CheckboxEmits, CheckboxExposed, CheckboxProps };
|
|
30
29
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/code-editor.d.ts
|
|
3
|
-
type CodeEditorLang = 'js' | 'sql' | 'java' | 'json' | 'markdown' | 'spel' | 'bash' | 'powershell';
|
|
3
|
+
export type CodeEditorLang = 'js' | 'sql' | 'java' | 'json' | 'markdown' | 'spel' | 'bash' | 'powershell';
|
|
4
4
|
/** 代码编辑器组件属性(不支持 `size`) */
|
|
5
|
-
interface CodeEditorProps extends Omit<FormComponentProps, 'size'> {
|
|
5
|
+
export interface CodeEditorProps extends Omit<FormComponentProps, 'size'> {
|
|
6
6
|
modelValue?: string;
|
|
7
7
|
/**
|
|
8
8
|
* 可选语言列表。长度大于 1 时在顶部工具栏显示内置语言选择器;
|
|
@@ -26,16 +26,15 @@ interface CodeEditorProps extends Omit<FormComponentProps, 'size'> {
|
|
|
26
26
|
defaultLines?: number;
|
|
27
27
|
}
|
|
28
28
|
/** 代码编辑器组件定义的事件 */
|
|
29
|
-
interface CodeEditorEmits {
|
|
29
|
+
export interface CodeEditorEmits {
|
|
30
30
|
(e: 'update:modelValue', value: string): void;
|
|
31
31
|
(e: 'update:lang', value: CodeEditorLang | undefined): void;
|
|
32
32
|
/** 在编辑器失焦且内容有变更时触发 */
|
|
33
33
|
(e: 'change', value: string): void;
|
|
34
34
|
}
|
|
35
35
|
/** 代码编辑器组件暴露的属性和方法(组件内部使用) */
|
|
36
|
-
interface _CodeEditorExposed {}
|
|
36
|
+
export interface _CodeEditorExposed {}
|
|
37
37
|
/** 代码编辑器组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
38
|
-
type CodeEditorExposed = DeconstructValue<_CodeEditorExposed>;
|
|
38
|
+
export type CodeEditorExposed = DeconstructValue<_CodeEditorExposed>;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { CodeEditorEmits, CodeEditorExposed, CodeEditorLang, CodeEditorProps, _CodeEditorExposed };
|
|
41
40
|
//# sourceMappingURL=code-editor.d.ts.map
|
package/dist/types/collapse.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { Component } from "vue";
|
|
|
2
2
|
import { ComponentProps } from "@veltra/utils";
|
|
3
3
|
//#region src/types/collapse.d.ts
|
|
4
4
|
/** Collapse 项的唯一标识 */
|
|
5
|
-
type CollapseValue = string | number;
|
|
5
|
+
export type CollapseValue = string | number;
|
|
6
6
|
/** Collapse modelValue:手风琴模式为单值,普通模式为数组(也兼容传入单值) */
|
|
7
|
-
type CollapseModelValue = CollapseValue | CollapseValue[];
|
|
7
|
+
export type CollapseModelValue = CollapseValue | CollapseValue[];
|
|
8
8
|
/** Collapse 组件属性 */
|
|
9
|
-
interface CollapseProps extends ComponentProps {
|
|
9
|
+
export interface CollapseProps extends ComponentProps {
|
|
10
10
|
/** 当前展开项的 value(单个或多个) */
|
|
11
11
|
modelValue?: CollapseModelValue;
|
|
12
12
|
/**
|
|
@@ -25,13 +25,13 @@ interface CollapseProps extends ComponentProps {
|
|
|
25
25
|
*/
|
|
26
26
|
expandIcon?: Component;
|
|
27
27
|
}
|
|
28
|
-
interface CollapseEmits {
|
|
28
|
+
export interface CollapseEmits {
|
|
29
29
|
(e: 'update:modelValue', value: CollapseModelValue): void;
|
|
30
30
|
/** 当前展开项变更时触发 */
|
|
31
31
|
(e: 'change', value: CollapseModelValue): void;
|
|
32
32
|
}
|
|
33
33
|
/** CollapseItem 组件属性 */
|
|
34
|
-
interface CollapseItemProps {
|
|
34
|
+
export interface CollapseItemProps {
|
|
35
35
|
/**
|
|
36
36
|
* 唯一标识;在 `UCollapse` 内使用时必填。
|
|
37
37
|
* 独立使用时可选。
|
|
@@ -59,11 +59,10 @@ interface CollapseItemProps {
|
|
|
59
59
|
*/
|
|
60
60
|
destroyOnCollapse?: boolean;
|
|
61
61
|
}
|
|
62
|
-
interface CollapseItemEmits {
|
|
62
|
+
export interface CollapseItemEmits {
|
|
63
63
|
(e: 'update:modelValue', value: boolean): void;
|
|
64
64
|
/** 展开状态变更时触发(仅独立使用) */
|
|
65
65
|
(e: 'change', value: boolean): void;
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
export { CollapseEmits, CollapseItemEmits, CollapseItemProps, CollapseModelValue, CollapseProps, CollapseValue };
|
|
69
68
|
//# sourceMappingURL=collapse.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { VariableItem } from "./expression-editor.js";
|
|
|
2
2
|
import { ComponentSize, DeconstructValue } from "@veltra/utils";
|
|
3
3
|
//#region src/types/condition-editor.d.ts
|
|
4
4
|
/** 字段定义 */
|
|
5
|
-
interface ConditionField {
|
|
5
|
+
export interface ConditionField {
|
|
6
6
|
label: string;
|
|
7
7
|
value: string;
|
|
8
8
|
type: 'string' | 'number' | 'boolean' | 'date' | 'enum';
|
|
@@ -12,7 +12,7 @@ interface ConditionField {
|
|
|
12
12
|
}[];
|
|
13
13
|
}
|
|
14
14
|
/** 条件右侧值:常量或变量引用 */
|
|
15
|
-
type ConditionValue = {
|
|
15
|
+
export type ConditionValue = {
|
|
16
16
|
kind: 'constant';
|
|
17
17
|
value: string;
|
|
18
18
|
} | {
|
|
@@ -20,16 +20,16 @@ type ConditionValue = {
|
|
|
20
20
|
name: string;
|
|
21
21
|
};
|
|
22
22
|
/** 单行条件叶子节点 */
|
|
23
|
-
interface ConditionLeaf {
|
|
23
|
+
export interface ConditionLeaf {
|
|
24
24
|
type: 'condition';
|
|
25
25
|
field: string;
|
|
26
26
|
operator: string;
|
|
27
27
|
value: ConditionValue;
|
|
28
28
|
}
|
|
29
29
|
/** 行间逻辑连接符 */
|
|
30
|
-
type ConditionConnector = 'and' | 'or';
|
|
30
|
+
export type ConditionConnector = 'and' | 'or';
|
|
31
31
|
/** 条件组节点 —— 与叶子节点通过 children 统一编排 */
|
|
32
|
-
interface ConditionGroup {
|
|
32
|
+
export interface ConditionGroup {
|
|
33
33
|
type: 'group';
|
|
34
34
|
children: ConditionNode[];
|
|
35
35
|
/**
|
|
@@ -41,10 +41,10 @@ interface ConditionGroup {
|
|
|
41
41
|
connectors: ConditionConnector[];
|
|
42
42
|
}
|
|
43
43
|
/** 树节点:叶子或分组 */
|
|
44
|
-
type ConditionNode = ConditionLeaf | ConditionGroup;
|
|
44
|
+
export type ConditionNode = ConditionLeaf | ConditionGroup;
|
|
45
45
|
/** 顶层表达式 = 根分组 */
|
|
46
|
-
type ConditionExpression = ConditionGroup;
|
|
47
|
-
interface ConditionEditorProps {
|
|
46
|
+
export type ConditionExpression = ConditionGroup;
|
|
47
|
+
export interface ConditionEditorProps {
|
|
48
48
|
modelValue?: ConditionExpression;
|
|
49
49
|
fields?: ConditionField[];
|
|
50
50
|
variables?: VariableItem[];
|
|
@@ -52,11 +52,10 @@ interface ConditionEditorProps {
|
|
|
52
52
|
disabled?: boolean;
|
|
53
53
|
readonly?: boolean;
|
|
54
54
|
}
|
|
55
|
-
interface ConditionEditorEmits {
|
|
55
|
+
export interface ConditionEditorEmits {
|
|
56
56
|
(e: 'update:modelValue', value: ConditionExpression): void;
|
|
57
57
|
}
|
|
58
|
-
interface _ConditionEditorExposed {}
|
|
59
|
-
type ConditionEditorExposed = DeconstructValue<_ConditionEditorExposed>;
|
|
58
|
+
export interface _ConditionEditorExposed {}
|
|
59
|
+
export type ConditionEditorExposed = DeconstructValue<_ConditionEditorExposed>;
|
|
60
60
|
//#endregion
|
|
61
|
-
export { ConditionConnector, ConditionEditorEmits, ConditionEditorExposed, ConditionEditorProps, ConditionExpression, ConditionField, ConditionGroup, ConditionLeaf, ConditionNode, ConditionValue, _ConditionEditorExposed };
|
|
62
61
|
//# sourceMappingURL=condition-editor.d.ts.map
|
|
@@ -4,7 +4,7 @@ import { ComponentProps, DeconstructValue } from "@veltra/utils";
|
|
|
4
4
|
/**
|
|
5
5
|
* 右键菜单项
|
|
6
6
|
*/
|
|
7
|
-
interface ContextmenuItem {
|
|
7
|
+
export interface ContextmenuItem {
|
|
8
8
|
/** 菜单名称(divider 时可空) */
|
|
9
9
|
label?: string;
|
|
10
10
|
/** 菜单描述 */
|
|
@@ -25,7 +25,7 @@ interface ContextmenuItem {
|
|
|
25
25
|
keepOpen?: boolean;
|
|
26
26
|
}
|
|
27
27
|
/** 鼠标右键菜单组件属性 */
|
|
28
|
-
interface ContextmenuProps extends ComponentProps {
|
|
28
|
+
export interface ContextmenuProps extends ComponentProps {
|
|
29
29
|
/** 鼠标位置 */
|
|
30
30
|
mousePosition: {
|
|
31
31
|
x: number;
|
|
@@ -40,13 +40,12 @@ interface ContextmenuProps extends ComponentProps {
|
|
|
40
40
|
menus: ContextmenuItem[] | (() => ContextmenuItem[]);
|
|
41
41
|
}
|
|
42
42
|
/** 鼠标右键菜单组件定义的事件 */
|
|
43
|
-
interface ContextmenuEmits {
|
|
43
|
+
export interface ContextmenuEmits {
|
|
44
44
|
(e: 'destroy'): void;
|
|
45
45
|
}
|
|
46
46
|
/** 鼠标右键菜单组件暴露的属性和方法(组件内部使用) */
|
|
47
|
-
interface _ContextmenuExposed {}
|
|
47
|
+
export interface _ContextmenuExposed {}
|
|
48
48
|
/** 鼠标右键菜单组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
49
|
-
type ContextmenuExposed = DeconstructValue<_ContextmenuExposed>;
|
|
49
|
+
export type ContextmenuExposed = DeconstructValue<_ContextmenuExposed>;
|
|
50
50
|
//#endregion
|
|
51
|
-
export { ContextmenuEmits, ContextmenuExposed, ContextmenuItem, ContextmenuProps, _ContextmenuExposed };
|
|
52
51
|
//# sourceMappingURL=contextmenu.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DeconstructValue } from "@veltra/utils";
|
|
2
2
|
//#region src/types/css-transition.d.ts
|
|
3
3
|
/** 过渡组件属性 */
|
|
4
|
-
interface CssTransitionProps {
|
|
4
|
+
export interface CssTransitionProps {
|
|
5
5
|
/** 类名称,和vue的transition组件类似 */
|
|
6
6
|
name: string;
|
|
7
7
|
/** 是否激活 */
|
|
8
8
|
active?: boolean;
|
|
9
9
|
}
|
|
10
10
|
/** 过渡组件定义的事件 */
|
|
11
|
-
interface CssTransitionEmits {
|
|
11
|
+
export interface CssTransitionEmits {
|
|
12
12
|
/** 过渡进入动画结束 */
|
|
13
13
|
(e: 'after-enter'): void;
|
|
14
14
|
/** 过渡离开动画结束 */
|
|
@@ -19,7 +19,7 @@ interface CssTransitionEmits {
|
|
|
19
19
|
(e: 'enter-canceled'): void;
|
|
20
20
|
}
|
|
21
21
|
/** 过渡组件暴露的属性和方法(组件内部使用) */
|
|
22
|
-
interface _CssTransitionExposed {
|
|
22
|
+
export interface _CssTransitionExposed {
|
|
23
23
|
/**
|
|
24
24
|
* 切换过渡状态
|
|
25
25
|
* @param active 是否激活. true激活,false未激活
|
|
@@ -32,7 +32,6 @@ interface _CssTransitionExposed {
|
|
|
32
32
|
toggle(activeAction: (active: boolean) => boolean): void;
|
|
33
33
|
}
|
|
34
34
|
/** 过渡组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
35
|
-
type CssTransitionExposed = DeconstructValue<_CssTransitionExposed>;
|
|
35
|
+
export type CssTransitionExposed = DeconstructValue<_CssTransitionExposed>;
|
|
36
36
|
//#endregion
|
|
37
|
-
export { CssTransitionEmits, CssTransitionExposed, CssTransitionProps, _CssTransitionExposed };
|
|
38
37
|
//# sourceMappingURL=css-transition.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormComponentProps } from "@veltra/utils";
|
|
2
2
|
import { Dater } from "@cat-kit/core";
|
|
3
3
|
//#region src/types/date-panel.d.ts
|
|
4
|
-
type PanelType = 'day' | 'month' | 'year';
|
|
5
|
-
interface DatePanelProps {
|
|
4
|
+
export type PanelType = 'day' | 'month' | 'year';
|
|
5
|
+
export interface DatePanelProps {
|
|
6
6
|
date?: Dater;
|
|
7
7
|
rangeDate?: [Dater, Dater];
|
|
8
8
|
range?: boolean;
|
|
@@ -10,10 +10,9 @@ interface DatePanelProps {
|
|
|
10
10
|
type?: 'date' | 'month' | 'year';
|
|
11
11
|
size?: FormComponentProps['size'];
|
|
12
12
|
}
|
|
13
|
-
interface DatePanelEmits {
|
|
13
|
+
export interface DatePanelEmits {
|
|
14
14
|
(e: 'select:date', date: Dater): void;
|
|
15
15
|
(e: 'select:range-date', rangeDate?: [Dater, Dater]): void;
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
|
-
export { DatePanelEmits, DatePanelProps, PanelType };
|
|
19
18
|
//# sourceMappingURL=date-panel.d.ts.map
|
|
@@ -2,9 +2,9 @@ import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
|
2
2
|
import { Dater } from "@cat-kit/core";
|
|
3
3
|
//#region src/types/date-picker.d.ts
|
|
4
4
|
/** 绑定值类型 */
|
|
5
|
-
type DatePickerDataType = 'date' | 'timestamp' | 'string';
|
|
5
|
+
export type DatePickerDataType = 'date' | 'timestamp' | 'string';
|
|
6
6
|
/** date-picker组件属性 */
|
|
7
|
-
interface DatePickerProps extends FormComponentProps {
|
|
7
|
+
export interface DatePickerProps extends FormComponentProps {
|
|
8
8
|
modelValue?: string | number | Date;
|
|
9
9
|
/** 占位 */
|
|
10
10
|
placeholder?: string;
|
|
@@ -25,14 +25,13 @@ interface DatePickerProps extends FormComponentProps {
|
|
|
25
25
|
clearable?: boolean;
|
|
26
26
|
}
|
|
27
27
|
/** date-picker组件定义的事件 */
|
|
28
|
-
interface DatePickerEmits {
|
|
28
|
+
export interface DatePickerEmits {
|
|
29
29
|
(e: 'update:modelValue', value?: string | number | Date): void;
|
|
30
30
|
(e: 'change', date?: Date): void;
|
|
31
31
|
}
|
|
32
32
|
/** date-picker组件暴露的属性和方法(组件内部使用) */
|
|
33
|
-
interface _DatePickerExposed {}
|
|
33
|
+
export interface _DatePickerExposed {}
|
|
34
34
|
/** date-picker组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
35
|
-
type DatePickerExposed = DeconstructValue<_DatePickerExposed>;
|
|
35
|
+
export type DatePickerExposed = DeconstructValue<_DatePickerExposed>;
|
|
36
36
|
//#endregion
|
|
37
|
-
export { DatePickerDataType, DatePickerEmits, DatePickerExposed, DatePickerProps, _DatePickerExposed };
|
|
38
37
|
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -2,11 +2,11 @@ import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
|
2
2
|
import { Dater } from "@cat-kit/core";
|
|
3
3
|
//#region src/types/date-range-picker.d.ts
|
|
4
4
|
/** 绑定值类型 */
|
|
5
|
-
type DateRangePickerDataType = 'date' | 'timestamp' | 'string';
|
|
5
|
+
export type DateRangePickerDataType = 'date' | 'timestamp' | 'string';
|
|
6
6
|
/** 日期范围绑定值 */
|
|
7
|
-
type DateRangeValue = [string, string] | [number, number] | [Date, Date];
|
|
7
|
+
export type DateRangeValue = [string, string] | [number, number] | [Date, Date];
|
|
8
8
|
/** date-range-picker组件属性 */
|
|
9
|
-
interface DateRangePickerProps extends FormComponentProps {
|
|
9
|
+
export interface DateRangePickerProps extends FormComponentProps {
|
|
10
10
|
modelValue?: DateRangeValue;
|
|
11
11
|
/** 占位 */
|
|
12
12
|
placeholder?: [string, string];
|
|
@@ -27,14 +27,13 @@ interface DateRangePickerProps extends FormComponentProps {
|
|
|
27
27
|
clearable?: boolean;
|
|
28
28
|
}
|
|
29
29
|
/** date-range-picker组件定义的事件 */
|
|
30
|
-
interface DateRangePickerEmits {
|
|
30
|
+
export interface DateRangePickerEmits {
|
|
31
31
|
(e: 'update:modelValue', value?: DateRangeValue): void;
|
|
32
32
|
(e: 'change', dates?: [Date, Date]): void;
|
|
33
33
|
}
|
|
34
34
|
/** date-range-picker组件暴露的属性和方法(组件内部使用) */
|
|
35
|
-
interface _DateRangePickerExposed {}
|
|
35
|
+
export interface _DateRangePickerExposed {}
|
|
36
36
|
/** date-range-picker组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
37
|
-
type DateRangePickerExposed = DeconstructValue<_DateRangePickerExposed>;
|
|
37
|
+
export type DateRangePickerExposed = DeconstructValue<_DateRangePickerExposed>;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { DateRangePickerDataType, DateRangePickerEmits, DateRangePickerExposed, DateRangePickerProps, DateRangeValue, _DateRangePickerExposed };
|
|
40
39
|
//# sourceMappingURL=date-range-picker.d.ts.map
|
package/dist/types/dialog.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentSize, DeconstructValue } from "@veltra/utils";
|
|
2
2
|
//#region src/types/dialog.d.ts
|
|
3
3
|
/** 对话框过渡动画名称 */
|
|
4
|
-
type DialogTransition = 'fade-scale';
|
|
4
|
+
export type DialogTransition = 'fade-scale';
|
|
5
5
|
/** 对话框组件属性 */
|
|
6
|
-
interface DialogProps {
|
|
6
|
+
export interface DialogProps {
|
|
7
7
|
/** 显示或隐藏 */
|
|
8
8
|
modelValue?: boolean;
|
|
9
9
|
/** 弹框标题,header的别名 */
|
|
@@ -20,19 +20,18 @@ interface DialogProps {
|
|
|
20
20
|
transition?: DialogTransition;
|
|
21
21
|
}
|
|
22
22
|
/** 对话框组件定义的事件 */
|
|
23
|
-
interface DialogEmits {
|
|
23
|
+
export interface DialogEmits {
|
|
24
24
|
/** 更新对话框的显示 */
|
|
25
25
|
(e: 'update:modelValue', visible: boolean): void;
|
|
26
26
|
/** 对话框完全关闭后触发的事件 */
|
|
27
27
|
(e: 'closed'): void;
|
|
28
28
|
}
|
|
29
29
|
/** 对话框组件暴露的属性和方法(组件内部使用) */
|
|
30
|
-
interface _DialogExposed {
|
|
30
|
+
export interface _DialogExposed {
|
|
31
31
|
/** 关闭对话框 */
|
|
32
32
|
close: () => void;
|
|
33
33
|
}
|
|
34
34
|
/** 对话框组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
35
|
-
type DialogExposed = DeconstructValue<_DialogExposed>;
|
|
35
|
+
export type DialogExposed = DeconstructValue<_DialogExposed>;
|
|
36
36
|
//#endregion
|
|
37
|
-
export { DialogEmits, DialogExposed, DialogProps, DialogTransition, _DialogExposed };
|
|
38
37
|
//# sourceMappingURL=dialog.d.ts.map
|