@veltra/desktop 1.7.11 → 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.
Files changed (134) hide show
  1. package/dist/components/batch-edit/batch-edit-form.js +2 -6
  2. package/dist/components/batch-edit/batch-edit-form.js.map +1 -1
  3. package/dist/components/batch-edit/batch-edit.js +0 -1
  4. package/dist/components/batch-edit/batch-edit.js.map +1 -1
  5. package/dist/components/batch-edit/helper.d.ts +1 -2
  6. package/dist/components/condition-editor/core/evaluator.d.ts +4 -5
  7. package/dist/components/contextmenu/api.d.ts +1 -2
  8. package/dist/components/contextmenu/di.d.ts +2 -3
  9. package/dist/components/form/form.js.map +1 -1
  10. package/dist/components/form/form.vue_vue_type_script_setup_true_lang.js +12 -13
  11. package/dist/components/form/form.vue_vue_type_script_setup_true_lang.js.map +1 -1
  12. package/dist/components/form/use-node-interceptor.js +31 -3
  13. package/dist/components/form/use-node-interceptor.js.map +1 -1
  14. package/dist/components/form-item/form-item.js.map +1 -1
  15. package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js +1 -2
  16. package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
  17. package/dist/components/loading/directive.d.ts +1 -2
  18. package/dist/components/message/message.d.ts +1 -2
  19. package/dist/components/message-confirm/message-confirm.d.ts +1 -2
  20. package/dist/components/notification/notification.d.ts +1 -2
  21. package/dist/components/table/node/col.js +19 -0
  22. package/dist/components/table/node/col.js.map +1 -1
  23. package/dist/components/table/table-cell.js +2 -0
  24. package/dist/components/table/table-cell.js.map +1 -1
  25. package/dist/components/table/table-foot.js +2 -0
  26. package/dist/components/table/table-foot.js.map +1 -1
  27. package/dist/components/table/table-head.js +1 -0
  28. package/dist/components/table/table-head.js.map +1 -1
  29. package/dist/components/table/table-row.js +2 -0
  30. package/dist/components/table/table-row.js.map +1 -1
  31. package/dist/components/table/use-columns.d.ts +1 -2
  32. package/dist/index.d.ts +2 -2
  33. package/dist/install.d.ts +3 -3
  34. package/dist/types/action.d.ts +7 -8
  35. package/dist/types/animation.d.ts +4 -5
  36. package/dist/types/auto-complete.d.ts +4 -5
  37. package/dist/types/badge.d.ts +4 -5
  38. package/dist/types/batch-edit.d.ts +9 -12
  39. package/dist/types/breadcrumb.d.ts +6 -7
  40. package/dist/types/button.d.ts +5 -6
  41. package/dist/types/calendar.d.ts +7 -8
  42. package/dist/types/card.d.ts +7 -8
  43. package/dist/types/cascade.d.ts +6 -7
  44. package/dist/types/check-tag.d.ts +4 -5
  45. package/dist/types/checkbox-group.d.ts +3 -4
  46. package/dist/types/checkbox.d.ts +5 -6
  47. package/dist/types/code-editor.d.ts +5 -6
  48. package/dist/types/collapse.d.ts +6 -7
  49. package/dist/types/condition-editor.d.ts +11 -12
  50. package/dist/types/contextmenu.d.ts +5 -6
  51. package/dist/types/css-transition.d.ts +4 -5
  52. package/dist/types/date-panel.d.ts +3 -4
  53. package/dist/types/date-picker.d.ts +5 -6
  54. package/dist/types/date-range-picker.d.ts +6 -7
  55. package/dist/types/dialog.d.ts +5 -6
  56. package/dist/types/drawer.d.ts +6 -7
  57. package/dist/types/dropdown.d.ts +4 -5
  58. package/dist/types/dual-nav.d.ts +6 -7
  59. package/dist/types/empty.d.ts +4 -5
  60. package/dist/types/expression-editor.d.ts +6 -7
  61. package/dist/types/file-picker.d.ts +4 -5
  62. package/dist/types/file-viewer.d.ts +6 -7
  63. package/dist/types/float-button.d.ts +5 -6
  64. package/dist/types/form-item.d.ts +3 -4
  65. package/dist/types/form.d.ts +4 -7
  66. package/dist/types/gantt-chart.d.ts +4 -5
  67. package/dist/types/grid-input.d.ts +4 -5
  68. package/dist/types/grid.d.ts +7 -8
  69. package/dist/types/group-input.d.ts +4 -5
  70. package/dist/types/group-nav.d.ts +3 -4
  71. package/dist/types/icon.d.ts +3 -4
  72. package/dist/types/image-cropper.d.ts +9 -10
  73. package/dist/types/index.d.ts +2 -2
  74. package/dist/types/input.d.ts +4 -5
  75. package/dist/types/layout.d.ts +4 -5
  76. package/dist/types/list.d.ts +4 -5
  77. package/dist/types/loading.d.ts +5 -6
  78. package/dist/types/message-confirm.d.ts +8 -9
  79. package/dist/types/message.d.ts +8 -9
  80. package/dist/types/multi-auto-complete.d.ts +4 -5
  81. package/dist/types/multi-select.d.ts +4 -5
  82. package/dist/types/multi-tree-select.d.ts +4 -5
  83. package/dist/types/nav.d.ts +5 -6
  84. package/dist/types/node-render.d.ts +2 -3
  85. package/dist/types/notification.d.ts +8 -9
  86. package/dist/types/number-input.d.ts +3 -4
  87. package/dist/types/number-range-input.d.ts +4 -5
  88. package/dist/types/number.d.ts +3 -4
  89. package/dist/types/paginator.d.ts +4 -5
  90. package/dist/types/palette.d.ts +7 -8
  91. package/dist/types/password-input.d.ts +4 -5
  92. package/dist/types/pop-confirm.d.ts +4 -5
  93. package/dist/types/pop.d.ts +4 -5
  94. package/dist/types/progress-nodes.d.ts +4 -5
  95. package/dist/types/progress.d.ts +4 -5
  96. package/dist/types/quick-batch-edit.d.ts +4 -5
  97. package/dist/types/radio-group.d.ts +4 -5
  98. package/dist/types/radio.d.ts +4 -5
  99. package/dist/types/rich-text-editor.d.ts +6 -7
  100. package/dist/types/scroll.d.ts +5 -6
  101. package/dist/types/segment.d.ts +5 -6
  102. package/dist/types/select.d.ts +4 -5
  103. package/dist/types/slider.d.ts +4 -5
  104. package/dist/types/steps.d.ts +5 -6
  105. package/dist/types/switch.d.ts +4 -5
  106. package/dist/types/table-editor.d.ts +4 -5
  107. package/dist/types/table.d.ts +23 -13
  108. package/dist/types/tabs.d.ts +13 -14
  109. package/dist/types/tag.d.ts +3 -4
  110. package/dist/types/text-editor.d.ts +5 -6
  111. package/dist/types/text.d.ts +4 -5
  112. package/dist/types/textarea.d.ts +4 -5
  113. package/dist/types/theme.d.ts +3 -4
  114. package/dist/types/tip.d.ts +6 -7
  115. package/dist/types/tree-select.d.ts +4 -5
  116. package/dist/types/tree.d.ts +6 -6
  117. package/dist/types/watermark.d.ts +4 -5
  118. package/package.json +5 -5
  119. package/src/components/batch-edit/__test__/batch-edit.test.ts +0 -138
  120. package/src/components/batch-edit/batch-edit-form.vue +2 -16
  121. package/src/components/form/__test__/form.test.ts +125 -33
  122. package/src/components/form/form.vue +10 -11
  123. package/src/components/form/use-node-interceptor.ts +36 -2
  124. package/src/components/form-item/__test__/form-item.test.ts +1 -10
  125. package/src/components/form-item/form-item.vue +2 -9
  126. package/src/components/table/__test__/column-style.test.ts +67 -0
  127. package/src/components/table/node/col.ts +30 -1
  128. package/src/components/table/table-cell.vue +7 -2
  129. package/src/components/table/table-foot.vue +2 -0
  130. package/src/components/table/table-head.tsx +1 -0
  131. package/src/components/table/table-row.tsx +2 -0
  132. package/src/types/batch-edit.ts +0 -2
  133. package/src/types/form.ts +0 -2
  134. package/src/types/table.ts +12 -0
@@ -1,17 +1,16 @@
1
1
  import { DeconstructValue } from "@veltra/utils";
2
2
  //#region src/types/multi-auto-complete.d.ts
3
3
  /** 多量自动完成组件组件属性 */
4
- interface MultiAutoCompleteProps {
4
+ export interface MultiAutoCompleteProps {
5
5
  modelValue?: string;
6
6
  }
7
7
  /** 多量自动完成组件组件定义的事件 */
8
- interface MultiAutoCompleteEmits {
8
+ export interface MultiAutoCompleteEmits {
9
9
  (e: 'update:modelValue', value: string): void;
10
10
  }
11
11
  /** 多量自动完成组件组件暴露的属性和方法(组件内部使用) */
12
- interface _MultiAutoCompleteExposed {}
12
+ export interface _MultiAutoCompleteExposed {}
13
13
  /** 多量自动完成组件组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
14
- type MultiAutoCompleteExposed = DeconstructValue<_MultiAutoCompleteExposed>;
14
+ export type MultiAutoCompleteExposed = DeconstructValue<_MultiAutoCompleteExposed>;
15
15
  //#endregion
16
- export { MultiAutoCompleteEmits, MultiAutoCompleteExposed, MultiAutoCompleteProps, _MultiAutoCompleteExposed };
17
16
  //# sourceMappingURL=multi-auto-complete.d.ts.map
@@ -2,7 +2,7 @@ import { CSSProperties } from "vue";
2
2
  import { DeconstructValue, FormComponentProps } from "@veltra/utils";
3
3
  //#region src/types/multi-select.d.ts
4
4
  /** multi-select组件属性 */
5
- interface MultiSelectProps extends FormComponentProps {
5
+ export interface MultiSelectProps extends FormComponentProps {
6
6
  /** 绑定值 */
7
7
  modelValue?: Array<any>;
8
8
  /** 列表选项 */
@@ -36,14 +36,13 @@ interface MultiSelectProps extends FormComponentProps {
36
36
  creatable?: boolean;
37
37
  }
38
38
  /** multi-select组件定义的事件 */
39
- interface MultiSelectEmits {
39
+ export interface MultiSelectEmits {
40
40
  (e: 'update:modelValue', value: Array<any>): void;
41
41
  (e: 'change', options: Record<string, any>[]): void;
42
42
  }
43
43
  /** multi-select组件暴露的属性和方法(组件内部使用) */
44
- interface _MultiSelectExposed {}
44
+ export interface _MultiSelectExposed {}
45
45
  /** multi-select组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
46
- type MultiSelectExposed = DeconstructValue<_MultiSelectExposed>;
46
+ export type MultiSelectExposed = DeconstructValue<_MultiSelectExposed>;
47
47
  //#endregion
48
- export { MultiSelectEmits, MultiSelectExposed, MultiSelectProps, _MultiSelectExposed };
49
48
  //# sourceMappingURL=multi-select.d.ts.map
@@ -3,7 +3,7 @@ import { CSSProperties } from "vue";
3
3
  import { DeconstructValue, FormComponentProps } from "@veltra/utils";
4
4
  //#region src/types/multi-tree-select.d.ts
5
5
  /** 树形多选组件组件属性 */
6
- interface MultiTreeSelectProps extends FormComponentProps, Omit<TreeProps, 'selected' | 'checked' | 'selectable' | 'checkable'> {
6
+ export interface MultiTreeSelectProps extends FormComponentProps, Omit<TreeProps, 'selected' | 'checked' | 'selectable' | 'checkable'> {
7
7
  modelValue?: (string | number)[];
8
8
  /**自定义占位文字 */
9
9
  placeholder?: string;
@@ -35,15 +35,14 @@ interface MultiTreeSelectProps extends FormComponentProps, Omit<TreeProps, 'sele
35
35
  contentClass?: unknown;
36
36
  }
37
37
  /** 树形多选组件组件定义的事件 */
38
- interface MultiTreeSelectEmits {
38
+ export interface MultiTreeSelectEmits {
39
39
  (e: 'clear'): void;
40
40
  (e: 'update:modelValue', value: any[]): void;
41
41
  (e: 'change', checked: Record<string, any>[]): void;
42
42
  }
43
43
  /** 树形多选组件组件暴露的属性和方法(组件内部使用) */
44
- interface _MultiTreeSelectExposed {}
44
+ export interface _MultiTreeSelectExposed {}
45
45
  /** 树形多选组件组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
46
- type MultiTreeSelectExposed = DeconstructValue<_MultiTreeSelectExposed>;
46
+ export type MultiTreeSelectExposed = DeconstructValue<_MultiTreeSelectExposed>;
47
47
  //#endregion
48
- export { MultiTreeSelectEmits, MultiTreeSelectExposed, MultiTreeSelectProps, _MultiTreeSelectExposed };
49
48
  //# sourceMappingURL=multi-tree-select.d.ts.map
@@ -2,7 +2,7 @@ import { DefineComponent } from "vue";
2
2
  import { DeconstructValue } from "@veltra/utils";
3
3
  //#region src/types/nav.d.ts
4
4
  /** 导航项 */
5
- interface NavItem {
5
+ export interface NavItem {
6
6
  /** 图标 */
7
7
  icon?: string | DefineComponent;
8
8
  /** 导航标题 */
@@ -21,7 +21,7 @@ interface NavItem {
21
21
  [key: string]: any;
22
22
  }
23
23
  /** 导航组件属性 */
24
- interface NavProps {
24
+ export interface NavProps {
25
25
  /** 当前路径 */
26
26
  currentPath?: string;
27
27
  /** 是否折叠 */
@@ -30,18 +30,17 @@ interface NavProps {
30
30
  menus?: NavItem[];
31
31
  }
32
32
  /** 导航组件定义的事件 */
33
- interface NavEmits {
33
+ export interface NavEmits {
34
34
  (e: 'item-click', item: NavItem): void;
35
35
  }
36
36
  /** 导航组件暴露的属性和方法(组件内部使用) */
37
- interface _NavExposed {
37
+ export interface _NavExposed {
38
38
  /** 展开所有含子级的导航项 */
39
39
  expandAll: () => void;
40
40
  /** 折叠所有导航项 */
41
41
  collapseAll: () => void;
42
42
  }
43
43
  /** 导航组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
44
- type NavExposed = DeconstructValue<_NavExposed>;
44
+ export type NavExposed = DeconstructValue<_NavExposed>;
45
45
  //#endregion
46
- export { NavEmits, NavExposed, NavItem, NavProps, _NavExposed };
47
46
  //# sourceMappingURL=nav.d.ts.map
@@ -1,11 +1,10 @@
1
1
  import { VNode } from "vue";
2
2
  //#region src/types/node-render.d.ts
3
3
  /** 虚拟dom渲染组件属性 */
4
- interface NodeRenderProps {
4
+ export interface NodeRenderProps {
5
5
  content: null | undefined | Array<VNode> | VNode;
6
6
  }
7
7
  /** 虚拟dom渲染暴露的属性和方法 */
8
- interface NodeRenderExposed {}
8
+ export interface NodeRenderExposed {}
9
9
  //#endregion
10
- export { NodeRenderExposed, NodeRenderProps };
11
10
  //# sourceMappingURL=node-render.d.ts.map
@@ -2,9 +2,9 @@ import { AppContext, DefineComponent } from "vue";
2
2
  import { ColorType, ComponentSize, DeconstructValue } from "@veltra/utils";
3
3
  //#region src/types/notification.d.ts
4
4
  /** 通知弹出位置 */
5
- type NotificationPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
5
+ export type NotificationPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
6
6
  /** 通知组件属性 */
7
- interface NotificationProps {
7
+ export interface NotificationProps {
8
8
  /** 标题 */
9
9
  title?: string;
10
10
  /** 内容 */
@@ -26,7 +26,7 @@ interface NotificationProps {
26
26
  size?: ComponentSize;
27
27
  }
28
28
  /** 通知调用选项 */
29
- interface NotificationOptions extends NotificationProps {
29
+ export interface NotificationOptions extends NotificationProps {
30
30
  /** 弹出位置 */
31
31
  position?: NotificationPosition;
32
32
  /** 距离屏幕边缘的偏移, 单位px */
@@ -41,7 +41,7 @@ interface NotificationOptions extends NotificationProps {
41
41
  onClosed?: () => void;
42
42
  }
43
43
  /** 通知实例 */
44
- interface NotificationInstance {
44
+ export interface NotificationInstance {
45
45
  /** 唯一标识 */
46
46
  id: string;
47
47
  /** 手动关闭 */
@@ -51,7 +51,7 @@ interface NotificationInstance {
51
51
  }
52
52
  type NotificationShortcutConfig = Omit<NotificationOptions, 'type' | 'message'>;
53
53
  /** 通知函数式 API */
54
- interface Notification {
54
+ export interface Notification {
55
55
  /** 创建通知 */
56
56
  (options: NotificationOptions | string): NotificationInstance;
57
57
  /** 主要通知 */
@@ -70,14 +70,13 @@ interface Notification {
70
70
  _context: AppContext | null;
71
71
  }
72
72
  /** 通知组件定义的事件 */
73
- interface NotificationEmits {
73
+ export interface NotificationEmits {
74
74
  (e: 'close'): void;
75
75
  (e: 'action', evt: MouseEvent): void;
76
76
  }
77
77
  /** 通知组件暴露的属性和方法(组件内部使用) */
78
- interface _NotificationExposed {}
78
+ export interface _NotificationExposed {}
79
79
  /** 通知组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
80
- type NotificationExposed = DeconstructValue<_NotificationExposed>;
80
+ export type NotificationExposed = DeconstructValue<_NotificationExposed>;
81
81
  //#endregion
82
- export { Notification, NotificationEmits, NotificationExposed, NotificationInstance, NotificationOptions, NotificationPosition, NotificationProps, _NotificationExposed };
83
82
  //# sourceMappingURL=notification.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { InputProps } from "./input.js";
2
2
  //#region src/types/number-input.d.ts
3
3
  /** 数字输入组件属性 */
4
- interface NumberInputProps extends Omit<InputProps, 'modelValue'> {
4
+ export interface NumberInputProps extends Omit<InputProps, 'modelValue'> {
5
5
  modelValue?: number;
6
6
  /** 是否为货币模式 */
7
7
  currency?: boolean;
@@ -21,13 +21,12 @@ interface NumberInputProps extends Omit<InputProps, 'modelValue'> {
21
21
  multiple?: number;
22
22
  }
23
23
  /** 数字输入组件定义的事件 */
24
- interface NumberInputEmits {
24
+ export interface NumberInputEmits {
25
25
  (event: 'update:modelValue', value?: number): void;
26
26
  (event: 'change', value?: number): void;
27
27
  (event: 'clear'): void;
28
28
  }
29
29
  /** 数字输入组件暴露的属性和方法 */
30
- interface NumberInputExposed {}
30
+ export interface NumberInputExposed {}
31
31
  //#endregion
32
- export { NumberInputEmits, NumberInputExposed, NumberInputProps };
33
32
  //# sourceMappingURL=number-input.d.ts.map
@@ -1,9 +1,9 @@
1
1
  import { NumberInputProps } from "./number-input.js";
2
2
  //#region src/types/number-range-input.d.ts
3
3
  /** 数字范围 [起始, 结束] */
4
- type NumberRangeTuple = [number | undefined, number | undefined];
4
+ export type NumberRangeTuple = [number | undefined, number | undefined];
5
5
  /** 数字范围输入组件属性 */
6
- interface NumberRangeInputProps extends Omit<NumberInputProps, 'modelValue' | 'placeholder'> {
6
+ export interface NumberRangeInputProps extends Omit<NumberInputProps, 'modelValue' | 'placeholder'> {
7
7
  modelValue?: NumberRangeTuple;
8
8
  /** 与 `modelValue[0]` 同步,可用 `v-model:start` */
9
9
  start?: number;
@@ -17,14 +17,13 @@ interface NumberRangeInputProps extends Omit<NumberInputProps, 'modelValue' | 'p
17
17
  separator?: string;
18
18
  }
19
19
  /** 数字范围输入组件事件 */
20
- interface NumberRangeInputEmits {
20
+ export interface NumberRangeInputEmits {
21
21
  (event: 'update:modelValue', value: NumberRangeTuple): void;
22
22
  (event: 'update:start', value: number | undefined): void;
23
23
  (event: 'update:end', value: number | undefined): void;
24
24
  (event: 'change', value: NumberRangeTuple): void;
25
25
  }
26
26
  /** 数字范围输入组件暴露 */
27
- interface NumberRangeInputExposed {}
27
+ export interface NumberRangeInputExposed {}
28
28
  //#endregion
29
- export { NumberRangeInputEmits, NumberRangeInputExposed, NumberRangeInputProps, NumberRangeTuple };
30
29
  //# sourceMappingURL=number-range-input.d.ts.map
@@ -1,6 +1,6 @@
1
1
  //#region src/types/number.d.ts
2
2
  /** 数字组件属性 */
3
- interface NumberProps {
3
+ export interface NumberProps {
4
4
  /** 数字数值 */
5
5
  value: number;
6
6
  /**
@@ -25,9 +25,8 @@ interface NumberProps {
25
25
  minPrecision?: number;
26
26
  }
27
27
  /** 数字组件定义的事件 */
28
- interface NumberEmits {}
28
+ export interface NumberEmits {}
29
29
  /** 数字组件暴露的属性和方法 */
30
- interface NumberExposed {}
30
+ export interface NumberExposed {}
31
31
  //#endregion
32
- export { NumberEmits, NumberExposed, NumberProps };
33
32
  //# sourceMappingURL=number.d.ts.map
@@ -2,7 +2,7 @@ import { ShallowRef } from "vue";
2
2
  import { DeconstructValue } from "@veltra/utils";
3
3
  //#region src/types/paginator.d.ts
4
4
  /** 分页器组件组件属性 */
5
- interface PaginatorProps {
5
+ export interface PaginatorProps {
6
6
  /** 当前处于第几页 */
7
7
  pageNumber?: number;
8
8
  /** 每页显示的数量 */
@@ -17,18 +17,17 @@ interface PaginatorProps {
17
17
  simple?: boolean;
18
18
  }
19
19
  /** 分页器组件组件定义的事件 */
20
- interface PaginatorEmits {
20
+ export interface PaginatorEmits {
21
21
  (e: 'update:pageNumber', value: number): void;
22
22
  (e: 'change:pageNumber', value: number): void;
23
23
  (e: 'update:pageSize', value: number): void;
24
24
  (e: 'change:pageSize', value: number): void;
25
25
  }
26
26
  /** 分页器组件组件暴露的属性和方法(组件内部使用) */
27
- interface _PaginatorExposed {
27
+ export interface _PaginatorExposed {
28
28
  el: ShallowRef<HTMLElement | undefined>;
29
29
  }
30
30
  /** 分页器组件组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
31
- type PaginatorExposed = DeconstructValue<_PaginatorExposed>;
31
+ export type PaginatorExposed = DeconstructValue<_PaginatorExposed>;
32
32
  //#endregion
33
- export { PaginatorEmits, PaginatorExposed, PaginatorProps, _PaginatorExposed };
34
33
  //# sourceMappingURL=paginator.d.ts.map
@@ -1,33 +1,32 @@
1
1
  import { DeconstructValue, FormComponentProps } from "@veltra/utils";
2
2
  //#region src/types/palette.d.ts
3
3
  /** 色调 */
4
- interface PaletteRGB {
4
+ export interface PaletteRGB {
5
5
  r: number;
6
6
  g: number;
7
7
  b: number;
8
8
  }
9
9
  /** 饱和度 亮度 */
10
- interface PaletteHSV {
10
+ export interface PaletteHSV {
11
11
  h: number;
12
12
  s: number;
13
13
  v: number;
14
14
  }
15
15
  /** 调色盘组件颜色类型 */
16
- type PaletteColorType = 'HEX' | 'RGB';
16
+ export type PaletteColorType = 'HEX' | 'RGB';
17
17
  /** 调色盘组件属性 */
18
- interface PaletteProps extends FormComponentProps {
18
+ export interface PaletteProps extends FormComponentProps {
19
19
  modelValue?: string;
20
20
  disabled?: boolean;
21
21
  readonly?: boolean;
22
22
  }
23
23
  /** 调色盘组件定义的事件 */
24
- interface PaletteEmits {
24
+ export interface PaletteEmits {
25
25
  (e: 'update:modelValue', value: string): void;
26
26
  }
27
27
  /** 调色盘组件暴露的属性和方法(组件内部使用) */
28
- interface _PaletteExposed {}
28
+ export interface _PaletteExposed {}
29
29
  /** 调色盘组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
30
- type PaletteExposed = DeconstructValue<_PaletteExposed>;
30
+ export type PaletteExposed = DeconstructValue<_PaletteExposed>;
31
31
  //#endregion
32
- export { PaletteColorType, PaletteEmits, PaletteExposed, PaletteHSV, PaletteProps, PaletteRGB, _PaletteExposed };
33
32
  //# sourceMappingURL=palette.d.ts.map
@@ -2,17 +2,16 @@ import { InputProps } from "./input.js";
2
2
  import { DeconstructValue } from "@veltra/utils";
3
3
  //#region src/types/password-input.d.ts
4
4
  /** 密码输入组件属性 */
5
- interface PasswordInputProps extends InputProps {
5
+ export interface PasswordInputProps extends InputProps {
6
6
  modelValue?: string;
7
7
  }
8
8
  /** 密码输入组件定义的事件 */
9
- interface PasswordInputEmits {
9
+ export interface PasswordInputEmits {
10
10
  (e: 'update:modelValue', value: string): void;
11
11
  }
12
12
  /** 密码输入组件暴露的属性和方法(组件内部使用) */
13
- interface _PasswordInputExposed {}
13
+ export interface _PasswordInputExposed {}
14
14
  /** 密码输入组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
15
- type PasswordInputExposed = DeconstructValue<_PasswordInputExposed>;
15
+ export type PasswordInputExposed = DeconstructValue<_PasswordInputExposed>;
16
16
  //#endregion
17
- export { PasswordInputEmits, PasswordInputExposed, PasswordInputProps, _PasswordInputExposed };
18
17
  //# sourceMappingURL=password-input.d.ts.map
@@ -3,7 +3,7 @@ import { Component } from "vue";
3
3
  import { DeconstructValue } from "@veltra/utils";
4
4
  //#region src/types/pop-confirm.d.ts
5
5
  /** 气泡确认框组件属性 */
6
- interface PopConfirmProps extends Pick<TipProps, 'alignment' | 'direction' | 'trigger' | 'contentTag'> {
6
+ export interface PopConfirmProps extends Pick<TipProps, 'alignment' | 'direction' | 'trigger' | 'contentTag'> {
7
7
  /**文字 */
8
8
  title?: string;
9
9
  /**icon 图标*/
@@ -20,16 +20,15 @@ interface PopConfirmProps extends Pick<TipProps, 'alignment' | 'direction' | 'tr
20
20
  cancelText?: string;
21
21
  }
22
22
  /** 气泡确认框组件定义的事件 */
23
- interface PopConfirmEmits {
23
+ export interface PopConfirmEmits {
24
24
  /** 确认事件 */
25
25
  (event: 'confirm'): void;
26
26
  /** 取消事件 */
27
27
  (event: 'cancel'): void;
28
28
  }
29
29
  /** 气泡确认框组件暴露的属性和方法(组件内部使用) */
30
- interface _PopConfirmExposed {}
30
+ export interface _PopConfirmExposed {}
31
31
  /** 气泡确认框组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
32
- type PopConfirmExposed = DeconstructValue<_PopConfirmExposed>;
32
+ export type PopConfirmExposed = DeconstructValue<_PopConfirmExposed>;
33
33
  //#endregion
34
- export { PopConfirmEmits, PopConfirmExposed, PopConfirmProps, _PopConfirmExposed };
35
34
  //# sourceMappingURL=pop-confirm.d.ts.map
@@ -1,17 +1,16 @@
1
1
  import { DeconstructValue } from "@veltra/utils";
2
2
  //#region src/types/pop.d.ts
3
3
  /** 气泡弹框组件属性 */
4
- interface PopProps {
4
+ export interface PopProps {
5
5
  modelValue?: string;
6
6
  }
7
7
  /** 气泡弹框组件定义的事件 */
8
- interface PopEmits {
8
+ export interface PopEmits {
9
9
  (e: 'update:modelValue', value: string): void;
10
10
  }
11
11
  /** 气泡弹框组件暴露的属性和方法(组件内部使用) */
12
- interface _PopExposed {}
12
+ export interface _PopExposed {}
13
13
  /** 气泡弹框组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
14
- type PopExposed = DeconstructValue<_PopExposed>;
14
+ export type PopExposed = DeconstructValue<_PopExposed>;
15
15
  //#endregion
16
- export { PopEmits, PopExposed, PopProps, _PopExposed };
17
16
  //# sourceMappingURL=pop.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { ColorType, DeconstructValue } from "@veltra/utils";
2
2
  //#region src/types/progress-nodes.d.ts
3
3
  /** 进度节点组件属性 */
4
- interface ProgressNodesProps {
4
+ export interface ProgressNodesProps {
5
5
  /** 当前选中节点的值 */
6
6
  modelValue?: string | number;
7
7
  /** 节点列表 */
@@ -18,16 +18,15 @@ interface ProgressNodesProps {
18
18
  valueKey?: string;
19
19
  }
20
20
  /** 进度节点组件定义的事件 */
21
- interface ProgressNodesEmits {
21
+ export interface ProgressNodesEmits {
22
22
  /** 点击节点时触发 */
23
23
  (e: 'click', node: Record<string, any>, index: number): void;
24
24
  /** 更新选中值时触发 */
25
25
  (e: 'update:modelValue', value: string | number): void;
26
26
  }
27
27
  /** 进度节点组件暴露的属性和方法(组件内部使用) */
28
- interface _ProgressNodesExposed {}
28
+ export interface _ProgressNodesExposed {}
29
29
  /** 进度节点组件暴露的属性和方法(组件外部使用, 引用的值会被自动解构) */
30
- type ProgressNodesExposed = DeconstructValue<_ProgressNodesExposed>;
30
+ export type ProgressNodesExposed = DeconstructValue<_ProgressNodesExposed>;
31
31
  //#endregion
32
- export { ProgressNodesEmits, ProgressNodesExposed, ProgressNodesProps, _ProgressNodesExposed };
33
32
  //# sourceMappingURL=progress-nodes.d.ts.map
@@ -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
@@ -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
@@ -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