@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
package/dist/types/progress.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorType, DeconstructValue } from "@veltra/utils";
|
|
2
2
|
//#region src/types/progress.d.ts
|
|
3
3
|
/** progress组件属性 */
|
|
4
|
-
interface ProgressProps {
|
|
4
|
+
export interface ProgressProps {
|
|
5
5
|
/** 类型 */
|
|
6
6
|
type: ColorType | ((percentage: number) => ColorType);
|
|
7
7
|
/** 圆形进度条尺寸 */
|
|
@@ -12,11 +12,10 @@ interface ProgressProps {
|
|
|
12
12
|
circle?: boolean;
|
|
13
13
|
}
|
|
14
14
|
/** progress组件定义的事件 */
|
|
15
|
-
interface ProgressEmits {}
|
|
15
|
+
export interface ProgressEmits {}
|
|
16
16
|
/** progress组件暴露的属性和方法(组件内部使用) */
|
|
17
|
-
interface _ProgressExposed {}
|
|
17
|
+
export interface _ProgressExposed {}
|
|
18
18
|
/** progress组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
19
|
-
type ProgressExposed = DeconstructValue<_ProgressExposed>;
|
|
19
|
+
export type ProgressExposed = DeconstructValue<_ProgressExposed>;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { ProgressEmits, ProgressExposed, ProgressProps, _ProgressExposed };
|
|
22
21
|
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { DeconstructValue } from "@veltra/utils";
|
|
2
2
|
//#region src/types/quick-batch-edit.d.ts
|
|
3
3
|
/** 快速批量编辑组件属性 */
|
|
4
|
-
interface QuickBatchEditProps {
|
|
4
|
+
export interface QuickBatchEditProps {
|
|
5
5
|
modelValue?: string;
|
|
6
6
|
}
|
|
7
7
|
/** 快速批量编辑组件定义的事件 */
|
|
8
|
-
interface QuickBatchEditEmits {
|
|
8
|
+
export interface QuickBatchEditEmits {
|
|
9
9
|
(e: 'update:modelValue', value: string): void;
|
|
10
10
|
}
|
|
11
11
|
/** 快速批量编辑组件暴露的属性和方法(组件内部使用) */
|
|
12
|
-
interface _QuickBatchEditExposed {}
|
|
12
|
+
export interface _QuickBatchEditExposed {}
|
|
13
13
|
/** 快速批量编辑组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
14
|
-
type QuickBatchEditExposed = DeconstructValue<_QuickBatchEditExposed>;
|
|
14
|
+
export type QuickBatchEditExposed = DeconstructValue<_QuickBatchEditExposed>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { QuickBatchEditEmits, QuickBatchEditExposed, QuickBatchEditProps, _QuickBatchEditExposed };
|
|
17
16
|
//# sourceMappingURL=quick-batch-edit.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/radio-group.d.ts
|
|
3
3
|
/** 单选框默认父组件组件属性 */
|
|
4
|
-
interface RadioGroupProps extends FormComponentProps {
|
|
4
|
+
export interface RadioGroupProps extends FormComponentProps {
|
|
5
5
|
/** 值 */
|
|
6
6
|
modelValue?: any;
|
|
7
7
|
/** 单选框项 */
|
|
@@ -24,16 +24,15 @@ interface RadioGroupProps extends FormComponentProps {
|
|
|
24
24
|
block?: boolean;
|
|
25
25
|
}
|
|
26
26
|
/** 单选框默认父组件组件定义的事件 */
|
|
27
|
-
interface RadioGroupEmits {
|
|
27
|
+
export interface RadioGroupEmits {
|
|
28
28
|
/** 值更新 */
|
|
29
29
|
(e: 'update:modelValue', modelValue: any): void;
|
|
30
30
|
/** 选项更新事件 */
|
|
31
31
|
(e: 'change', item: Record<string, any>): void;
|
|
32
32
|
}
|
|
33
33
|
/** 单选框默认父组件组件暴露的属性和方法(组件内部使用) */
|
|
34
|
-
interface _RadioGroupExposed {}
|
|
34
|
+
export interface _RadioGroupExposed {}
|
|
35
35
|
/** 单选框默认父组件组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
36
|
-
type RadioGroupExposed = DeconstructValue<_RadioGroupExposed>;
|
|
36
|
+
export type RadioGroupExposed = DeconstructValue<_RadioGroupExposed>;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { RadioGroupEmits, RadioGroupExposed, RadioGroupProps, _RadioGroupExposed };
|
|
39
38
|
//# sourceMappingURL=radio-group.d.ts.map
|
package/dist/types/radio.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/radio.d.ts
|
|
3
3
|
/** 单选框组件属性 */
|
|
4
|
-
interface RadioProps extends FormComponentProps {
|
|
4
|
+
export interface RadioProps extends FormComponentProps {
|
|
5
5
|
/** 单选框值 */
|
|
6
6
|
value?: any;
|
|
7
7
|
/** 文本 */
|
|
@@ -12,15 +12,14 @@ interface RadioProps extends FormComponentProps {
|
|
|
12
12
|
modelValue?: any;
|
|
13
13
|
}
|
|
14
14
|
/** 单选框组件定义的事件 */
|
|
15
|
-
interface RadioEmits {
|
|
15
|
+
export interface RadioEmits {
|
|
16
16
|
(e: 'update:modelValue', value: any): void;
|
|
17
17
|
}
|
|
18
18
|
/** 单选框组件暴露的属性和方法(组件内部使用) */
|
|
19
|
-
interface _RadioExposed {
|
|
19
|
+
export interface _RadioExposed {
|
|
20
20
|
change: (isChecked: boolean) => void;
|
|
21
21
|
}
|
|
22
22
|
/** 单选框组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
23
|
-
type RadioExposed = DeconstructValue<_RadioExposed>;
|
|
23
|
+
export type RadioExposed = DeconstructValue<_RadioExposed>;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { RadioEmits, RadioExposed, RadioProps, _RadioExposed };
|
|
26
25
|
//# sourceMappingURL=radio.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/rich-text-editor.d.ts
|
|
3
3
|
/** 富文本数据格式 */
|
|
4
|
-
type RichTextFormat = 'html' | 'json';
|
|
4
|
+
export type RichTextFormat = 'html' | 'json';
|
|
5
5
|
/** 工具栏项 */
|
|
6
|
-
type ToolbarItem = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'heading' | 'bullet-list' | 'ordered-list' | 'blockquote' | 'code-block' | 'link' | 'undo' | 'redo' | '|';
|
|
6
|
+
export type ToolbarItem = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'heading' | 'bullet-list' | 'ordered-list' | 'blockquote' | 'code-block' | 'link' | 'undo' | 'redo' | '|';
|
|
7
7
|
/** 富文本编辑器组件属性 */
|
|
8
|
-
interface RichTextEditorProps extends FormComponentProps {
|
|
8
|
+
export interface RichTextEditorProps extends FormComponentProps {
|
|
9
9
|
modelValue?: string;
|
|
10
10
|
/** 数据格式:html 或 json */
|
|
11
11
|
format?: RichTextFormat;
|
|
@@ -15,13 +15,12 @@ interface RichTextEditorProps extends FormComponentProps {
|
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
}
|
|
17
17
|
/** 富文本编辑器组件定义的事件 */
|
|
18
|
-
interface RichTextEditorEmits {
|
|
18
|
+
export interface RichTextEditorEmits {
|
|
19
19
|
(e: 'update:modelValue', value: string): void;
|
|
20
20
|
}
|
|
21
21
|
/** 富文本编辑器组件暴露的属性和方法(组件内部使用) */
|
|
22
|
-
interface _RichTextEditorExposed {}
|
|
22
|
+
export interface _RichTextEditorExposed {}
|
|
23
23
|
/** 富文本编辑器组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
24
|
-
type RichTextEditorExposed = DeconstructValue<_RichTextEditorExposed>;
|
|
24
|
+
export type RichTextEditorExposed = DeconstructValue<_RichTextEditorExposed>;
|
|
25
25
|
//#endregion
|
|
26
|
-
export { RichTextEditorEmits, RichTextEditorExposed, RichTextEditorProps, RichTextFormat, ToolbarItem, _RichTextEditorExposed };
|
|
27
26
|
//# sourceMappingURL=rich-text-editor.d.ts.map
|
package/dist/types/scroll.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ShallowRef } from "vue";
|
|
2
2
|
import { DeconstructValue } from "@veltra/utils";
|
|
3
3
|
//#region src/types/scroll.d.ts
|
|
4
|
-
type ScrollPosition = {
|
|
4
|
+
export type ScrollPosition = {
|
|
5
5
|
/** 横向位置 */
|
|
6
6
|
x?: number;
|
|
7
7
|
/** 纵向位置 */
|
|
@@ -16,7 +16,7 @@ type ScrollPosition = {
|
|
|
16
16
|
ch?: number;
|
|
17
17
|
};
|
|
18
18
|
/** 滚动条组件属性 */
|
|
19
|
-
interface ScrollProps {
|
|
19
|
+
export interface ScrollProps {
|
|
20
20
|
/**
|
|
21
21
|
* 容器元素标签名
|
|
22
22
|
* @default div
|
|
@@ -47,13 +47,13 @@ interface ScrollProps {
|
|
|
47
47
|
/** 拖拽防抖时间 */
|
|
48
48
|
dragDebounce?: number;
|
|
49
49
|
}
|
|
50
|
-
interface ScrollEmits {
|
|
50
|
+
export interface ScrollEmits {
|
|
51
51
|
/** 滚动事件 */
|
|
52
52
|
(e: 'scroll', position: Required<ScrollPosition>): void;
|
|
53
53
|
/** 尺寸调整事件 */
|
|
54
54
|
(e: 'resize', targets: HTMLElement[]): void;
|
|
55
55
|
}
|
|
56
|
-
interface _ScrollExposed {
|
|
56
|
+
export interface _ScrollExposed {
|
|
57
57
|
/**
|
|
58
58
|
* 滚动至
|
|
59
59
|
* @param position 位置
|
|
@@ -70,7 +70,6 @@ interface _ScrollExposed {
|
|
|
70
70
|
/** 滚动容器元素引用 */
|
|
71
71
|
el: ShallowRef<HTMLElement | undefined>;
|
|
72
72
|
}
|
|
73
|
-
type ScrollExposed = DeconstructValue<_ScrollExposed>;
|
|
73
|
+
export type ScrollExposed = DeconstructValue<_ScrollExposed>;
|
|
74
74
|
//#endregion
|
|
75
|
-
export { ScrollEmits, ScrollExposed, ScrollPosition, ScrollProps, _ScrollExposed };
|
|
76
75
|
//# sourceMappingURL=scroll.d.ts.map
|
package/dist/types/segment.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/segment.d.ts
|
|
3
3
|
/** 分段单选选项 */
|
|
4
|
-
type SegmentItem = Record<string, any>;
|
|
4
|
+
export type SegmentItem = Record<string, any>;
|
|
5
5
|
/** 分段单选组件属性 */
|
|
6
|
-
interface SegmentProps extends FormComponentProps {
|
|
6
|
+
export interface SegmentProps extends FormComponentProps {
|
|
7
7
|
/** 绑定值 */
|
|
8
8
|
modelValue?: any;
|
|
9
9
|
/** 选项列表 */
|
|
@@ -26,16 +26,15 @@ interface SegmentProps extends FormComponentProps {
|
|
|
26
26
|
block?: boolean;
|
|
27
27
|
}
|
|
28
28
|
/** 分段单选组件事件 */
|
|
29
|
-
interface SegmentEmits {
|
|
29
|
+
export interface SegmentEmits {
|
|
30
30
|
/** 绑定值更新 */
|
|
31
31
|
(e: 'update:modelValue', modelValue: any): void;
|
|
32
32
|
/** 选中项切换事件 */
|
|
33
33
|
(e: 'change', item: SegmentItem): void;
|
|
34
34
|
}
|
|
35
35
|
/** 分段单选组件暴露的属性和方法(组件内部使用) */
|
|
36
|
-
interface _SegmentExposed {}
|
|
36
|
+
export interface _SegmentExposed {}
|
|
37
37
|
/** 分段单选组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
38
|
-
type SegmentExposed = DeconstructValue<_SegmentExposed>;
|
|
38
|
+
export type SegmentExposed = DeconstructValue<_SegmentExposed>;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { SegmentEmits, SegmentExposed, SegmentItem, SegmentProps, _SegmentExposed };
|
|
41
40
|
//# sourceMappingURL=segment.d.ts.map
|
package/dist/types/select.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CSSProperties, ShallowRef } from "vue";
|
|
|
2
2
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
3
3
|
//#region src/types/select.d.ts
|
|
4
4
|
/** 选择器组件属性 */
|
|
5
|
-
interface SelectProps extends FormComponentProps {
|
|
5
|
+
export interface SelectProps extends FormComponentProps {
|
|
6
6
|
/** 绑定值 */
|
|
7
7
|
modelValue?: any;
|
|
8
8
|
/**
|
|
@@ -51,7 +51,7 @@ interface SelectProps extends FormComponentProps {
|
|
|
51
51
|
gap?: number;
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
interface SelectEmits {
|
|
54
|
+
export interface SelectEmits {
|
|
55
55
|
/**
|
|
56
56
|
* 选中项文案变化(单向通知,用于同步父级冗余字段)
|
|
57
57
|
* @description 展示始终由 options 推导,请用 `@update:text` 而非 `v-model:text`
|
|
@@ -60,11 +60,10 @@ interface SelectEmits {
|
|
|
60
60
|
(e: 'update:modelValue', modelValue?: any): void;
|
|
61
61
|
(e: 'change', option?: Record<string, any>): void;
|
|
62
62
|
}
|
|
63
|
-
interface _SelectExposed {
|
|
63
|
+
export interface _SelectExposed {
|
|
64
64
|
/** 信息文本 */
|
|
65
65
|
infoText: ShallowRef<string | number>;
|
|
66
66
|
}
|
|
67
|
-
type SelectExposed = DeconstructValue<_SelectExposed>;
|
|
67
|
+
export type SelectExposed = DeconstructValue<_SelectExposed>;
|
|
68
68
|
//#endregion
|
|
69
|
-
export { SelectEmits, SelectExposed, SelectProps, _SelectExposed };
|
|
70
69
|
//# sourceMappingURL=select.d.ts.map
|
package/dist/types/slider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/slider.d.ts
|
|
3
3
|
/** 滑块组件属性 */
|
|
4
|
-
interface SliderProps<T extends number | [number, number]> extends FormComponentProps {
|
|
4
|
+
export interface SliderProps<T extends number | [number, number]> extends FormComponentProps {
|
|
5
5
|
modelValue?: T;
|
|
6
6
|
/**
|
|
7
7
|
* 最小值
|
|
@@ -25,13 +25,12 @@ interface SliderProps<T extends number | [number, number]> extends FormComponent
|
|
|
25
25
|
vertical?: boolean;
|
|
26
26
|
}
|
|
27
27
|
/** 滑块组件定义的事件 */
|
|
28
|
-
interface SliderEmits<T extends number | [number, number]> {
|
|
28
|
+
export interface SliderEmits<T extends number | [number, number]> {
|
|
29
29
|
(e: 'update:modelValue', value: T): void;
|
|
30
30
|
}
|
|
31
31
|
/** 滑块组件暴露的属性和方法(组件内部使用) */
|
|
32
|
-
interface _SliderExposed {}
|
|
32
|
+
export interface _SliderExposed {}
|
|
33
33
|
/** 滑块组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
34
|
-
type SliderExposed = DeconstructValue<_SliderExposed>;
|
|
34
|
+
export type SliderExposed = DeconstructValue<_SliderExposed>;
|
|
35
35
|
//#endregion
|
|
36
|
-
export { SliderEmits, SliderExposed, SliderProps, _SliderExposed };
|
|
37
36
|
//# sourceMappingURL=slider.d.ts.map
|
package/dist/types/steps.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorType, ComponentSize, DeconstructValue } from "@veltra/utils";
|
|
2
2
|
//#region src/types/steps.d.ts
|
|
3
3
|
/** 步骤组件组件属性 */
|
|
4
|
-
interface StepsProps {
|
|
4
|
+
export interface StepsProps {
|
|
5
5
|
/**
|
|
6
6
|
* 当前步骤项,默认为步骤的索引
|
|
7
7
|
*/
|
|
@@ -40,12 +40,12 @@ interface StepsProps {
|
|
|
40
40
|
finishedStepType?: ColorType;
|
|
41
41
|
}
|
|
42
42
|
/** 步骤项插槽作用域 */
|
|
43
|
-
interface StepsSlotScope {
|
|
43
|
+
export interface StepsSlotScope {
|
|
44
44
|
item: Record<string, any>;
|
|
45
45
|
index: number;
|
|
46
46
|
}
|
|
47
47
|
/** 步骤组件组件定义的事件 */
|
|
48
|
-
interface StepsEmits {
|
|
48
|
+
export interface StepsEmits {
|
|
49
49
|
/**
|
|
50
50
|
* 当前步骤项变更
|
|
51
51
|
*/
|
|
@@ -56,9 +56,8 @@ interface StepsEmits {
|
|
|
56
56
|
(e: 'item-click', item: Record<string, any>, index: number): void;
|
|
57
57
|
}
|
|
58
58
|
/** 步骤组件组件暴露的属性和方法(组件内部使用) */
|
|
59
|
-
interface _StepsExposed {}
|
|
59
|
+
export interface _StepsExposed {}
|
|
60
60
|
/** 步骤组件组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
61
|
-
type StepsExposed = DeconstructValue<_StepsExposed>;
|
|
61
|
+
export type StepsExposed = DeconstructValue<_StepsExposed>;
|
|
62
62
|
//#endregion
|
|
63
|
-
export { StepsEmits, StepsExposed, StepsProps, StepsSlotScope, _StepsExposed };
|
|
64
63
|
//# sourceMappingURL=steps.d.ts.map
|
package/dist/types/switch.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/switch.d.ts
|
|
3
3
|
/** 开关组件属性 */
|
|
4
|
-
interface SwitchProps extends FormComponentProps {
|
|
4
|
+
export interface SwitchProps extends FormComponentProps {
|
|
5
5
|
/** 开关状态 */
|
|
6
6
|
modelValue?: boolean;
|
|
7
7
|
/** 打开时显示的文字 */
|
|
@@ -10,14 +10,13 @@ interface SwitchProps extends FormComponentProps {
|
|
|
10
10
|
inactiveText?: string;
|
|
11
11
|
}
|
|
12
12
|
/** 开关组件定义的事件 */
|
|
13
|
-
interface SwitchEmits {
|
|
13
|
+
export interface SwitchEmits {
|
|
14
14
|
(e: 'update:modelValue', value: boolean): void;
|
|
15
15
|
(e: 'change', value: boolean): void;
|
|
16
16
|
}
|
|
17
17
|
/** 开关组件暴露的属性和方法(组件内部使用) */
|
|
18
|
-
interface _SwitchExposed {}
|
|
18
|
+
export interface _SwitchExposed {}
|
|
19
19
|
/** 开关组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
20
|
-
type SwitchExposed = DeconstructValue<_SwitchExposed>;
|
|
20
|
+
export type SwitchExposed = DeconstructValue<_SwitchExposed>;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { SwitchEmits, SwitchExposed, SwitchProps, _SwitchExposed };
|
|
23
22
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -2,18 +2,17 @@ import { TableProps } from "./table.js";
|
|
|
2
2
|
import { DeconstructValue } from "@veltra/utils";
|
|
3
3
|
//#region src/types/table-editor.d.ts
|
|
4
4
|
/** 表格型编辑器组件属性 */
|
|
5
|
-
interface TableEditorProps extends Omit<TableProps, 'data'> {
|
|
5
|
+
export interface TableEditorProps extends Omit<TableProps, 'data'> {
|
|
6
6
|
/** 表格数据 */
|
|
7
7
|
modelValue?: any[];
|
|
8
8
|
}
|
|
9
9
|
/** 表格型编辑器组件定义的事件 */
|
|
10
|
-
interface TableEditorEmits {
|
|
10
|
+
export interface TableEditorEmits {
|
|
11
11
|
(e: 'update:modelValue', value: any[]): void;
|
|
12
12
|
}
|
|
13
13
|
/** 表格型编辑器组件暴露的属性和方法(组件内部使用) */
|
|
14
|
-
interface _TableEditorExposed {}
|
|
14
|
+
export interface _TableEditorExposed {}
|
|
15
15
|
/** 表格型编辑器组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
16
|
-
type TableEditorExposed = DeconstructValue<_TableEditorExposed>;
|
|
16
|
+
export type TableEditorExposed = DeconstructValue<_TableEditorExposed>;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { TableEditorEmits, TableEditorExposed, TableEditorProps, _TableEditorExposed };
|
|
19
18
|
//# sourceMappingURL=table-editor.d.ts.map
|
package/dist/types/table.d.ts
CHANGED
|
@@ -2,11 +2,15 @@ import { ShallowRef, Slots, VNode } from "vue";
|
|
|
2
2
|
import { ComponentSize, DeconstructValue, RenderReturn } from "@veltra/utils";
|
|
3
3
|
import { Forest, TreeNode } from "@cat-kit/core";
|
|
4
4
|
//#region src/types/table.d.ts
|
|
5
|
-
type TableColumnAlign = 'left' | 'center' | 'right';
|
|
5
|
+
export type TableColumnAlign = 'left' | 'center' | 'right';
|
|
6
|
+
export interface TableColumnStyle {
|
|
7
|
+
color?: string;
|
|
8
|
+
fontSize?: number | string;
|
|
9
|
+
}
|
|
6
10
|
/**
|
|
7
11
|
* 合计上下文
|
|
8
12
|
*/
|
|
9
|
-
interface TableSummaryContext {
|
|
13
|
+
export interface TableSummaryContext {
|
|
10
14
|
/** 总数 */
|
|
11
15
|
total: number;
|
|
12
16
|
/** 所有行数据 */
|
|
@@ -16,7 +20,7 @@ interface TableSummaryContext {
|
|
|
16
20
|
/** 当前列 */
|
|
17
21
|
column: TableColumnNode;
|
|
18
22
|
}
|
|
19
|
-
interface TableColumn {
|
|
23
|
+
export interface TableColumn {
|
|
20
24
|
/** 列的唯一键 */
|
|
21
25
|
key: string;
|
|
22
26
|
/** 列的名称 */
|
|
@@ -44,6 +48,10 @@ interface TableColumn {
|
|
|
44
48
|
* @default 'left'
|
|
45
49
|
*/
|
|
46
50
|
align?: TableColumnAlign;
|
|
51
|
+
/** 表体/表尾单元格样式 */
|
|
52
|
+
style?: TableColumnStyle;
|
|
53
|
+
/** 表头单元格样式,未指定时取 style */
|
|
54
|
+
headerStyle?: TableColumnStyle;
|
|
47
55
|
/** 列渲染 */
|
|
48
56
|
render?: (scope: TableColumnRenderContext) => RenderReturn;
|
|
49
57
|
/** 子列 */
|
|
@@ -55,7 +63,7 @@ interface TableColumn {
|
|
|
55
63
|
[key: string]: any;
|
|
56
64
|
}
|
|
57
65
|
/** 表格组件属性 */
|
|
58
|
-
interface TableProps {
|
|
66
|
+
export interface TableProps {
|
|
59
67
|
size?: ComponentSize;
|
|
60
68
|
/** 表格数据 */
|
|
61
69
|
data?: Record<string, any>[];
|
|
@@ -129,7 +137,7 @@ interface TableProps {
|
|
|
129
137
|
/** 文本溢出省略 */
|
|
130
138
|
textEllipsis?: boolean;
|
|
131
139
|
}
|
|
132
|
-
interface TableRow extends TreeNode<Record<string, any>> {
|
|
140
|
+
export interface TableRow extends TreeNode<Record<string, any>> {
|
|
133
141
|
/** 是否展开 */
|
|
134
142
|
expanded: boolean;
|
|
135
143
|
/** 操作中 */
|
|
@@ -149,7 +157,7 @@ interface TableRow extends TreeNode<Record<string, any>> {
|
|
|
149
157
|
/** 是否为展开行 */
|
|
150
158
|
isExpandRow: boolean;
|
|
151
159
|
}
|
|
152
|
-
interface TableColumnNode extends TreeNode<TableColumn> {
|
|
160
|
+
export interface TableColumnNode extends TreeNode<TableColumn> {
|
|
153
161
|
/** 子列 */
|
|
154
162
|
children?: TableColumnNode[] | undefined;
|
|
155
163
|
/** 父列 */
|
|
@@ -159,6 +167,9 @@ interface TableColumnNode extends TreeNode<TableColumn> {
|
|
|
159
167
|
key: string;
|
|
160
168
|
name: string;
|
|
161
169
|
align: TableColumnAlign;
|
|
170
|
+
headerAlign: TableColumnAlign;
|
|
171
|
+
cellStyle?: Record<string, string>;
|
|
172
|
+
headerCellStyle?: Record<string, string>;
|
|
162
173
|
width: number | undefined;
|
|
163
174
|
minWidth: number | undefined;
|
|
164
175
|
fixed: 'left' | 'right' | undefined;
|
|
@@ -169,7 +180,7 @@ interface TableColumnNode extends TreeNode<TableColumn> {
|
|
|
169
180
|
/**
|
|
170
181
|
* 列渲染函数参数上下文
|
|
171
182
|
*/
|
|
172
|
-
interface TableColumnRenderContext {
|
|
183
|
+
export interface TableColumnRenderContext {
|
|
173
184
|
/** 行 */
|
|
174
185
|
row: TableRow;
|
|
175
186
|
/** 行数据 */
|
|
@@ -180,21 +191,21 @@ interface TableColumnRenderContext {
|
|
|
180
191
|
val: any;
|
|
181
192
|
}
|
|
182
193
|
/** 表格列插槽作用域 */
|
|
183
|
-
interface TableColumnSlotsScope extends TableColumnRenderContext {
|
|
194
|
+
export interface TableColumnSlotsScope extends TableColumnRenderContext {
|
|
184
195
|
/** 交互模型 */
|
|
185
196
|
model: {
|
|
186
197
|
modelValue: any;
|
|
187
198
|
'onUpdate:modelValue': (val: any) => void;
|
|
188
199
|
};
|
|
189
200
|
}
|
|
190
|
-
interface TableRowSlotsScope {
|
|
201
|
+
export interface TableRowSlotsScope {
|
|
191
202
|
row: TableRow;
|
|
192
203
|
rowData: Record<string, any>;
|
|
193
204
|
columns: TableColumnNode[];
|
|
194
205
|
index: number;
|
|
195
206
|
}
|
|
196
207
|
/** 表格组件定义的事件 */
|
|
197
|
-
interface TableEmits<DataItem extends Record<string, any> = Record<string, any>> {
|
|
208
|
+
export interface TableEmits<DataItem extends Record<string, any> = Record<string, any>> {
|
|
198
209
|
/** 多选 */
|
|
199
210
|
(e: 'update:checked', value: DataItem[]): void;
|
|
200
211
|
/** 单选 */
|
|
@@ -213,7 +224,7 @@ interface TableEmits<DataItem extends Record<string, any> = Record<string, any>>
|
|
|
213
224
|
(e: 'update:current', row?: TableRow): void;
|
|
214
225
|
}
|
|
215
226
|
/** 表格组件暴露的属性和方法(组件内部使用) */
|
|
216
|
-
interface _TableExposed {
|
|
227
|
+
export interface _TableExposed {
|
|
217
228
|
el: ShallowRef<HTMLElement | undefined>;
|
|
218
229
|
/** 清除选中的项 */
|
|
219
230
|
clearChecked: () => void;
|
|
@@ -225,7 +236,6 @@ interface _TableExposed {
|
|
|
225
236
|
getSummaryRow: () => Record<string, any>;
|
|
226
237
|
}
|
|
227
238
|
/** 表格组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
228
|
-
type TableExposed = DeconstructValue<_TableExposed>;
|
|
239
|
+
export type TableExposed = DeconstructValue<_TableExposed>;
|
|
229
240
|
//#endregion
|
|
230
|
-
export { TableColumn, TableColumnAlign, TableColumnNode, TableColumnRenderContext, TableColumnSlotsScope, TableEmits, TableExposed, TableProps, TableRow, TableRowSlotsScope, TableSummaryContext, _TableExposed };
|
|
231
241
|
//# sourceMappingURL=table.d.ts.map
|
package/dist/types/tabs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, ComponentSize } from "@veltra/utils";
|
|
2
2
|
//#region src/types/tabs.d.ts
|
|
3
|
-
type TabItem = {
|
|
3
|
+
export type TabItem = {
|
|
4
4
|
/**
|
|
5
5
|
* 标题名称
|
|
6
6
|
* @description 如果不穿则以key为名称
|
|
@@ -19,7 +19,7 @@ type TabItem = {
|
|
|
19
19
|
closable?: boolean;
|
|
20
20
|
};
|
|
21
21
|
/** 水平标签栏(top/bottom)属性 */
|
|
22
|
-
interface TabsHorizontalProps {
|
|
22
|
+
export interface TabsHorizontalProps {
|
|
23
23
|
/** 组件尺寸 */
|
|
24
24
|
size?: ComponentSize;
|
|
25
25
|
/** 当前激活的标签 key */
|
|
@@ -50,7 +50,7 @@ interface TabsHorizontalProps {
|
|
|
50
50
|
position?: 'top' | 'bottom';
|
|
51
51
|
}
|
|
52
52
|
/** 垂直标签栏(left/right)属性 */
|
|
53
|
-
interface TabsVerticalProps {
|
|
53
|
+
export interface TabsVerticalProps {
|
|
54
54
|
/** 组件尺寸 */
|
|
55
55
|
size?: ComponentSize;
|
|
56
56
|
/** 当前激活的标签 key */
|
|
@@ -75,19 +75,19 @@ interface TabsVerticalProps {
|
|
|
75
75
|
position?: 'left' | 'right';
|
|
76
76
|
}
|
|
77
77
|
/** 水平标签栏事件 */
|
|
78
|
-
interface TabsHorizontalEmits {
|
|
78
|
+
export interface TabsHorizontalEmits {
|
|
79
79
|
(e: 'update:modelValue', value: string): void;
|
|
80
80
|
(e: 'click', item: TabItem, index: number): void;
|
|
81
81
|
(e: 'close', item: TabItem, index: number): void;
|
|
82
82
|
}
|
|
83
83
|
/** 垂直标签栏事件 */
|
|
84
|
-
interface TabsVerticalEmits {
|
|
84
|
+
export interface TabsVerticalEmits {
|
|
85
85
|
(e: 'update:modelValue', value: string): void;
|
|
86
86
|
(e: 'click', item: TabItem, index: number): void;
|
|
87
87
|
(e: 'close', item: TabItem, index: number): void;
|
|
88
88
|
}
|
|
89
89
|
/** 标签页组件组件属性 */
|
|
90
|
-
interface TabsProps extends ComponentProps {
|
|
90
|
+
export interface TabsProps extends ComponentProps {
|
|
91
91
|
/** 当前激活的标签 key */
|
|
92
92
|
modelValue?: string;
|
|
93
93
|
/** 标签项 */
|
|
@@ -118,23 +118,22 @@ interface TabsProps extends ComponentProps {
|
|
|
118
118
|
keepAlive?: boolean;
|
|
119
119
|
}
|
|
120
120
|
/** 标签页组件组件定义的事件 */
|
|
121
|
-
interface TabsEmits {
|
|
121
|
+
export interface TabsEmits {
|
|
122
122
|
(e: 'update:modelValue', value: string): void;
|
|
123
123
|
(e: 'click', item: TabItem, index: number): void;
|
|
124
124
|
(e: 'close', item: TabItem, index: number): void;
|
|
125
125
|
}
|
|
126
126
|
/** 标签页组件暴露的属性和方法(组件内部使用) */
|
|
127
|
-
interface _TabsExposed {}
|
|
127
|
+
export interface _TabsExposed {}
|
|
128
128
|
/** 标签页组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
129
|
-
interface TabsExposed {}
|
|
129
|
+
export interface TabsExposed {}
|
|
130
130
|
/** 水平标签栏暴露的属性和方法(组件内部使用) */
|
|
131
|
-
interface _TabsHorizontalExposed {}
|
|
131
|
+
export interface _TabsHorizontalExposed {}
|
|
132
132
|
/** 水平标签栏暴露的属性和方法(组件外部使用) */
|
|
133
|
-
interface TabsHorizontalExposed {}
|
|
133
|
+
export interface TabsHorizontalExposed {}
|
|
134
134
|
/** 垂直标签栏暴露的属性和方法(组件内部使用) */
|
|
135
|
-
interface _TabsVerticalExposed {}
|
|
135
|
+
export interface _TabsVerticalExposed {}
|
|
136
136
|
/** 垂直标签栏暴露的属性和方法(组件外部使用) */
|
|
137
|
-
interface TabsVerticalExposed {}
|
|
137
|
+
export interface TabsVerticalExposed {}
|
|
138
138
|
//#endregion
|
|
139
|
-
export { TabItem, TabsEmits, TabsExposed, TabsHorizontalEmits, TabsHorizontalExposed, TabsHorizontalProps, TabsProps, TabsVerticalEmits, TabsVerticalExposed, TabsVerticalProps, _TabsExposed, _TabsHorizontalExposed, _TabsVerticalExposed };
|
|
140
139
|
//# sourceMappingURL=tabs.d.ts.map
|
package/dist/types/tag.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorType, ComponentSize } from "@veltra/utils";
|
|
2
2
|
//#region src/types/tag.d.ts
|
|
3
3
|
/** 标签组件属性 */
|
|
4
|
-
interface TagProps {
|
|
4
|
+
export interface TagProps {
|
|
5
5
|
type?: ColorType;
|
|
6
6
|
/** 是否可移除 */
|
|
7
7
|
closable?: boolean;
|
|
@@ -12,10 +12,9 @@ interface TagProps {
|
|
|
12
12
|
/** 深色 */
|
|
13
13
|
dark?: boolean;
|
|
14
14
|
}
|
|
15
|
-
interface TagEmits {
|
|
15
|
+
export interface TagEmits {
|
|
16
16
|
(e: 'close'): void;
|
|
17
17
|
}
|
|
18
|
-
interface TagExposed {}
|
|
18
|
+
export interface TagExposed {}
|
|
19
19
|
//#endregion
|
|
20
|
-
export { TagEmits, TagExposed, TagProps };
|
|
21
20
|
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { DeconstructValue, FormComponentProps } from "@veltra/utils";
|
|
2
2
|
//#region src/types/text-editor.d.ts
|
|
3
3
|
/** text-editor组件属性 */
|
|
4
|
-
interface BarType {
|
|
4
|
+
export interface BarType {
|
|
5
5
|
content: string;
|
|
6
6
|
bar: string;
|
|
7
7
|
}
|
|
8
|
-
interface TextEditorProps extends FormComponentProps {
|
|
8
|
+
export interface TextEditorProps extends FormComponentProps {
|
|
9
9
|
modelValue?: string;
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
toolbar?: BarType[];
|
|
12
12
|
}
|
|
13
13
|
/** text-editor组件定义的事件 */
|
|
14
|
-
interface TextEditorEmits {
|
|
14
|
+
export interface TextEditorEmits {
|
|
15
15
|
(e: 'update:modelValue', value: string): void;
|
|
16
16
|
}
|
|
17
17
|
/** text-editor组件暴露的属性和方法(组件内部使用) */
|
|
18
|
-
interface _TextEditorExposed {}
|
|
18
|
+
export interface _TextEditorExposed {}
|
|
19
19
|
/** text-editor组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
20
|
-
type TextEditorExposed = DeconstructValue<_TextEditorExposed>;
|
|
20
|
+
export type TextEditorExposed = DeconstructValue<_TextEditorExposed>;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { BarType, TextEditorEmits, TextEditorExposed, TextEditorProps, _TextEditorExposed };
|
|
23
22
|
//# sourceMappingURL=text-editor.d.ts.map
|
package/dist/types/text.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/types/text.d.ts
|
|
2
2
|
/** 文本组件属性 */
|
|
3
|
-
interface TextProps {
|
|
3
|
+
export interface TextProps {
|
|
4
4
|
/** 使用预设文本类型, 默认content正文 */
|
|
5
5
|
as?: 'main-title' | 'title' | 'sub-title' | 'content' | 'additional';
|
|
6
6
|
/** 文本大小, 与as同时指定时会覆盖as */
|
|
@@ -17,13 +17,12 @@ interface TextProps {
|
|
|
17
17
|
highlight?: string | string[];
|
|
18
18
|
}
|
|
19
19
|
/** 文本组件定义的事件 */
|
|
20
|
-
interface TextEmits {
|
|
20
|
+
export interface TextEmits {
|
|
21
21
|
(e: 'update:modelValue', value: string): void;
|
|
22
22
|
}
|
|
23
23
|
/** 文本组件暴露的属性和方法(组件内部使用) */
|
|
24
|
-
interface _TextExposed {}
|
|
24
|
+
export interface _TextExposed {}
|
|
25
25
|
/** 文本组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
|
|
26
|
-
interface TextExposed {}
|
|
26
|
+
export interface TextExposed {}
|
|
27
27
|
//#endregion
|
|
28
|
-
export { TextEmits, TextExposed, TextProps, _TextExposed };
|
|
29
28
|
//# sourceMappingURL=text.d.ts.map
|