@vtj/designer 0.10.5 → 0.10.6

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 (59) hide show
  1. package/dist/index.mjs +4 -4
  2. package/package.json +7 -7
  3. package/types/components/binders/event.d.ts +2 -46
  4. package/types/components/binders/variable.d.ts +2 -46
  5. package/types/components/editor/Editor.d.ts +1 -3
  6. package/types/components/editor/index.d.ts +1 -3
  7. package/types/components/regions/actions.d.ts +2 -33
  8. package/types/components/regions/apps.d.ts +2 -33
  9. package/types/components/regions/brand.d.ts +2 -33
  10. package/types/components/regions/empty.d.ts +1 -1
  11. package/types/components/regions/index.d.ts +11 -259
  12. package/types/components/regions/preview.d.ts +2 -33
  13. package/types/components/regions/settings.d.ts +2 -33
  14. package/types/components/regions/status.d.ts +2 -33
  15. package/types/components/regions/toolbar.d.ts +2 -33
  16. package/types/components/regions/workspace.d.ts +2 -33
  17. package/types/components/setters/css.d.ts +2 -46
  18. package/types/components/setters/file.d.ts +1 -1
  19. package/types/components/setters/function.d.ts +2 -46
  20. package/types/components/setters/icon.d.ts +1 -1
  21. package/types/components/setters/index.d.ts +10 -140
  22. package/types/components/setters/json.d.ts +2 -46
  23. package/types/components/setters/section.d.ts +1 -1
  24. package/types/components/setters/slider.d.ts +1 -1
  25. package/types/components/setters/tag.d.ts +1 -1
  26. package/types/components/setters/vanIcon/index.d.ts +1 -1
  27. package/types/components/shared/binder.d.ts +70 -742
  28. package/types/components/shared/box.d.ts +45 -13
  29. package/types/components/shared/item.d.ts +143 -13
  30. package/types/components/shared/panel.d.ts +72 -15
  31. package/types/components/shared/tabs.d.ts +37 -13
  32. package/types/components/shared/viewer.d.ts +2 -766
  33. package/types/components/shared/viewport.d.ts +29 -13
  34. package/types/components/skeleton.d.ts +2 -180
  35. package/types/components/widgets/about/index.d.ts +1 -1
  36. package/types/components/widgets/actions/coder.d.ts +1 -1
  37. package/types/components/widgets/actions/index.d.ts +1 -1
  38. package/types/components/widgets/apis/base-info.d.ts +1 -1
  39. package/types/components/widgets/apis/form.d.ts +2 -1520
  40. package/types/components/widgets/apis/jsonp-options.d.ts +1 -1
  41. package/types/components/widgets/apis/mock-template.d.ts +1 -1
  42. package/types/components/widgets/apis/request-settings.d.ts +1 -1
  43. package/types/components/widgets/css/index.d.ts +2 -46
  44. package/types/components/widgets/designer/actions.d.ts +1 -1
  45. package/types/components/widgets/designer/index.d.ts +1 -4
  46. package/types/components/widgets/docs/index.d.ts +2 -101
  47. package/types/components/widgets/empty/index.d.ts +1 -1
  48. package/types/components/widgets/index.d.ts +11 -342
  49. package/types/components/widgets/market/index.d.ts +2 -101
  50. package/types/components/widgets/previewer/index.d.ts +1 -4
  51. package/types/components/widgets/raw/index.d.ts +2 -46
  52. package/types/components/widgets/schema/index.d.ts +2 -46
  53. package/types/components/widgets/scripts/group.d.ts +51 -983
  54. package/types/components/widgets/scripts/lifeCycles.d.ts +2 -46
  55. package/types/components/widgets/style/JsonMode.d.ts +2 -46
  56. package/types/components/widgets/style/positioning.d.ts +1 -3
  57. package/types/components/widgets/style/spacing-input.d.ts +2 -255
  58. package/types/components/widgets/style/spacing.d.ts +1 -4
  59. package/types/version.d.ts +2 -2
@@ -1,4 +1,6 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { XContainer, XAction } from '@vtj/ui';
2
+ import { MoreFilled } from '@vtj/icons';
3
+ import { Raw, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComputedRef } from 'vue';
2
4
  export interface Props {
3
5
  name: string;
4
6
  title: string;
@@ -8,15 +10,45 @@ export interface Props {
8
10
  tag?: string;
9
11
  tagType?: 'warning' | 'success' | 'danger' | 'primary';
10
12
  }
11
- declare function __VLS_template(): {
12
- attrs: Partial<{}>;
13
- slots: {
14
- default?(_: {}): any;
15
- };
16
- refs: {};
17
- rootEl: HTMLDivElement;
18
- };
19
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const menus: {
14
+ label: string;
15
+ command: string;
16
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
17
+ }[];
18
+ declare const onCommand: (item: any) => void;
19
+ declare const classes: ComputedRef<{
20
+ 'is-active': boolean;
21
+ 'is-draggable': boolean;
22
+ }>;
23
+ declare const onDragStart: () => void;
24
+ declare const onDragEnd: () => void;
25
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
26
+ declare var __VLS_5: {};
27
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
28
+ default?: (props: typeof __VLS_5) => any;
29
+ }>;
30
+ declare const __VLS_self: DefineComponent<Props, {
31
+ XContainer: typeof XContainer;
32
+ XAction: typeof XAction;
33
+ MoreFilled: typeof MoreFilled;
34
+ menus: typeof menus;
35
+ onCommand: typeof onCommand;
36
+ classes: typeof classes;
37
+ onDragStart: typeof onDragStart;
38
+ onDragEnd: typeof onDragEnd;
39
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
40
+ copy: (...args: any[]) => void;
41
+ dragend: (...args: any[]) => void;
42
+ dragstart: (...args: any[]) => void;
43
+ edit: (...args: any[]) => void;
44
+ remove: (...args: any[]) => void;
45
+ }, string, PublicProps, Readonly<Props> & Readonly<{
46
+ onCopy?: ((...args: any[]) => any) | undefined;
47
+ onDragend?: ((...args: any[]) => any) | undefined;
48
+ onDragstart?: ((...args: any[]) => any) | undefined;
49
+ onEdit?: ((...args: any[]) => any) | undefined;
50
+ onRemove?: ((...args: any[]) => any) | undefined;
51
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
20
52
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
53
  copy: (...args: any[]) => void;
22
54
  dragend: (...args: any[]) => void;
@@ -29,10 +61,10 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
29
61
  onDragstart?: ((...args: any[]) => any) | undefined;
30
62
  onEdit?: ((...args: any[]) => any) | undefined;
31
63
  onRemove?: ((...args: any[]) => any) | undefined;
32
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
33
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
64
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
65
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
66
  export default _default;
35
- type __VLS_WithTemplateSlots<T, S> = T & {
67
+ type __VLS_WithSlots<T, S> = T & {
36
68
  new (): {
37
69
  $slots: S;
38
70
  };
@@ -1,4 +1,7 @@
1
- import { Raw, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { XContainer, XAction, XIcon } from '@vtj/ui';
2
+ import { MoreFilled } from '@vtj/icons';
3
+ import { ElSwitch, ElTag } from 'element-plus';
4
+ import { Raw, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, Ref, ComputedRef } from 'vue';
2
5
  declare const builtInActions: {
3
6
  add: {
4
7
  label: string;
@@ -65,16 +68,143 @@ export interface Props {
65
68
  actionInMore?: boolean;
66
69
  textTags?: string[];
67
70
  }
68
- declare function __VLS_template(): {
69
- attrs: Partial<{}>;
70
- slots: {
71
- default?(_: {}): any;
72
- status?(_: {}): any;
73
- };
74
- refs: {};
75
- rootEl: any;
76
- };
77
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
71
+ declare const switchValue: Ref<boolean, boolean>;
72
+ declare const currentActions: ComputedRef<({
73
+ label: string;
74
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
75
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
76
+ } | {
77
+ label: string;
78
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
79
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
80
+ } | {
81
+ label: string;
82
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
83
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
84
+ } | {
85
+ label: string;
86
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
87
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
88
+ } | {
89
+ label: string;
90
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
91
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
92
+ } | {
93
+ label: string;
94
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
95
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
96
+ } | {
97
+ label: string;
98
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
99
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
100
+ } | {
101
+ label: string;
102
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
103
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
104
+ } | {
105
+ label: string;
106
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
107
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
108
+ } | {
109
+ label: string;
110
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
111
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
112
+ } | {
113
+ label: string;
114
+ divided: boolean;
115
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
116
+ name: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
117
+ })[]>;
118
+ declare const moreMenus: ComputedRef<({
119
+ label: string;
120
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
121
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
122
+ } | {
123
+ label: string;
124
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
125
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
126
+ } | {
127
+ label: string;
128
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
129
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
130
+ } | {
131
+ label: string;
132
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
133
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
134
+ } | {
135
+ label: string;
136
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
137
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
138
+ } | {
139
+ label: string;
140
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
141
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
142
+ } | {
143
+ label: string;
144
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
145
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
146
+ } | {
147
+ label: string;
148
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
149
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
150
+ } | {
151
+ label: string;
152
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
153
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
154
+ } | {
155
+ label: string;
156
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
157
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
158
+ } | {
159
+ label: string;
160
+ divided: boolean;
161
+ icon: Raw<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
162
+ command: "add" | "visible" | "share" | "copy" | "edit" | "remove" | "lock" | "unlock" | "invisible" | "home" | "saveToBlock";
163
+ })[]>;
164
+ declare const classes: ComputedRef<{
165
+ 'is-background': boolean;
166
+ 'is-border': boolean;
167
+ 'is-active': boolean;
168
+ 'is-hover': boolean;
169
+ 'is-small': boolean;
170
+ }>;
171
+ declare const onClick: () => void;
172
+ declare const onAction: (name: string) => Promise<void>;
173
+ declare const onMoreCommand: (item: any) => void;
174
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
175
+ declare var __VLS_14: {}, __VLS_52: {};
176
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
177
+ default?: (props: typeof __VLS_14) => any;
178
+ } & {
179
+ status?: (props: typeof __VLS_52) => any;
180
+ }>;
181
+ declare const __VLS_self: DefineComponent<Props, {
182
+ XContainer: typeof XContainer;
183
+ XAction: typeof XAction;
184
+ XIcon: typeof XIcon;
185
+ MoreFilled: typeof MoreFilled;
186
+ ElSwitch: typeof ElSwitch;
187
+ ElTag: typeof ElTag;
188
+ switchValue: typeof switchValue;
189
+ currentActions: typeof currentActions;
190
+ moreMenus: typeof moreMenus;
191
+ classes: typeof classes;
192
+ onClick: typeof onClick;
193
+ onAction: typeof onAction;
194
+ onMoreCommand: typeof onMoreCommand;
195
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
196
+ click: (...args: any[]) => void;
197
+ switch: (...args: any[]) => void;
198
+ "update:modelValue": (...args: any[]) => void;
199
+ action: (...args: any[]) => void;
200
+ }, string, PublicProps, Readonly<Props> & Readonly<{
201
+ onClick?: ((...args: any[]) => any) | undefined;
202
+ onSwitch?: ((...args: any[]) => any) | undefined;
203
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
204
+ onAction?: ((...args: any[]) => any) | undefined;
205
+ }>, {
206
+ actions: Array<keyof typeof builtInActions>;
207
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
78
208
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
79
209
  click: (...args: any[]) => void;
80
210
  switch: (...args: any[]) => void;
@@ -88,9 +218,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
88
218
  }>, {
89
219
  actions: Array<keyof typeof builtInActions>;
90
220
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
91
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
221
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
92
222
  export default _default;
93
- type __VLS_WithTemplateSlots<T, S> = T & {
223
+ type __VLS_WithSlots<T, S> = T & {
94
224
  new (): {
95
225
  $slots: S;
96
226
  };
@@ -1,5 +1,6 @@
1
- import { ActionMenuItem } from '@vtj/ui';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { XPanel, XAction, ActionMenuItem } from '@vtj/ui';
2
+ import { VtjIconPlus, Delete, VtjIconSave, EditPen, ArrowDown, ArrowUp, VtjIconRefresh } from '@vtj/icons';
3
+ import { Ref, ComputedRef, DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentProvideOptions, PublicProps } from 'vue';
3
4
  export interface Props {
4
5
  title?: string;
5
6
  subtitle?: string;
@@ -13,17 +14,73 @@ export interface Props {
13
14
  collapsable?: boolean;
14
15
  menus?: ActionMenuItem[];
15
16
  }
16
- declare function __VLS_template(): {
17
- attrs: Partial<{}>;
18
- slots: {
19
- actions?(_: {}): any;
20
- default?(_: {}): any;
21
- footer?(_: {}): any;
22
- };
23
- refs: {};
24
- rootEl: any;
25
- };
26
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const collapsed: Ref<boolean, boolean>;
18
+ declare const classes: ComputedRef<{
19
+ 'is-collapsed': boolean;
20
+ }>;
21
+ declare const onClickRefresh: () => void;
22
+ declare const onClickPlus: () => void;
23
+ declare const onClickEdit: () => void;
24
+ declare const onClickRemove: () => void;
25
+ declare const onClickSave: () => void;
26
+ declare const onPlusCommand: (item: ActionMenuItem) => void;
27
+ declare const header: ComputedRef<{
28
+ content: string | undefined;
29
+ subtitle: string | undefined;
30
+ icon: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly< ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
31
+ onClickBack: (() => void) | undefined;
32
+ onClick: (() => void) | undefined;
33
+ } | null>;
34
+ declare const setCollapsed: (value: boolean) => void;
35
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
36
+ declare var __VLS_63: {}, __VLS_65: {}, __VLS_67: {};
37
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
38
+ actions?: (props: typeof __VLS_63) => any;
39
+ } & {
40
+ default?: (props: typeof __VLS_65) => any;
41
+ } & {
42
+ footer?: (props: typeof __VLS_67) => any;
43
+ }>;
44
+ declare const __VLS_self: DefineComponent<Props, {
45
+ XPanel: typeof XPanel;
46
+ XAction: typeof XAction;
47
+ VtjIconPlus: typeof VtjIconPlus;
48
+ Delete: typeof Delete;
49
+ VtjIconSave: typeof VtjIconSave;
50
+ EditPen: typeof EditPen;
51
+ ArrowDown: typeof ArrowDown;
52
+ ArrowUp: typeof ArrowUp;
53
+ VtjIconRefresh: typeof VtjIconRefresh;
54
+ collapsed: typeof collapsed;
55
+ classes: typeof classes;
56
+ onClickRefresh: typeof onClickRefresh;
57
+ onClickPlus: typeof onClickPlus;
58
+ onClickEdit: typeof onClickEdit;
59
+ onClickRemove: typeof onClickRemove;
60
+ onClickSave: typeof onClickSave;
61
+ onPlusCommand: typeof onPlusCommand;
62
+ header: typeof header;
63
+ setCollapsed: typeof setCollapsed;
64
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
65
+ command: (...args: any[]) => void;
66
+ refresh: (...args: any[]) => void;
67
+ plus: (...args: any[]) => void;
68
+ back: (...args: any[]) => void;
69
+ edit: (...args: any[]) => void;
70
+ remove: (...args: any[]) => void;
71
+ save: (...args: any[]) => void;
72
+ }, string, PublicProps, Readonly<Props> & Readonly<{
73
+ onCommand?: ((...args: any[]) => any) | undefined;
74
+ onRefresh?: ((...args: any[]) => any) | undefined;
75
+ onPlus?: ((...args: any[]) => any) | undefined;
76
+ onBack?: ((...args: any[]) => any) | undefined;
77
+ onEdit?: ((...args: any[]) => any) | undefined;
78
+ onRemove?: ((...args: any[]) => any) | undefined;
79
+ onSave?: ((...args: any[]) => any) | undefined;
80
+ }>, {
81
+ header: boolean;
82
+ menus: ActionMenuItem[];
83
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
27
84
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
85
  command: (...args: any[]) => void;
29
86
  refresh: (...args: any[]) => void;
@@ -44,9 +101,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
44
101
  header: boolean;
45
102
  menus: ActionMenuItem[];
46
103
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
47
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
104
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
48
105
  export default _default;
49
- type __VLS_WithTemplateSlots<T, S> = T & {
106
+ type __VLS_WithSlots<T, S> = T & {
50
107
  new (): {
51
108
  $slots: S;
52
109
  };
@@ -1,5 +1,6 @@
1
- import { TabsItem, ActionMenuItem } from '@vtj/ui';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { XPanel, XTabs, XAction, TabsItem, ActionMenuItem } from '@vtj/ui';
2
+ import { MoreFilled, VtjIconCheck } from '@vtj/icons';
3
+ import { Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
4
  export interface Props {
4
5
  items?: TabsItem[];
5
6
  menus?: ActionMenuItem[];
@@ -7,15 +8,38 @@ export interface Props {
7
8
  stretch?: boolean;
8
9
  checkable?: boolean;
9
10
  }
10
- declare function __VLS_template(): {
11
- attrs: Partial<{}>;
12
- slots: {
13
- default?(_: {}): any;
14
- };
15
- refs: {};
16
- rootEl: any;
17
- };
18
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const currentTab: Ref<string | number, string | number>;
12
+ declare const handleCommand: (command: any) => void;
13
+ declare const handelTabRemove: (name: any) => void;
14
+ declare const onTabActionClick: (e: any) => void;
15
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
16
+ declare var __VLS_27: {};
17
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
18
+ default?: (props: typeof __VLS_27) => any;
19
+ }>;
20
+ declare const __VLS_self: DefineComponent<Props, {
21
+ XPanel: typeof XPanel;
22
+ XTabs: typeof XTabs;
23
+ XAction: typeof XAction;
24
+ MoreFilled: typeof MoreFilled;
25
+ VtjIconCheck: typeof VtjIconCheck;
26
+ currentTab: typeof currentTab;
27
+ handleCommand: typeof handleCommand;
28
+ handelTabRemove: typeof handelTabRemove;
29
+ onTabActionClick: typeof onTabActionClick;
30
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
31
+ command: (...args: any[]) => void;
32
+ "update:modelValue": (...args: any[]) => void;
33
+ remove: (...args: any[]) => void;
34
+ "action-click": (...args: any[]) => void;
35
+ }, string, PublicProps, Readonly<Props> & Readonly<{
36
+ onCommand?: ((...args: any[]) => any) | undefined;
37
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
38
+ onRemove?: ((...args: any[]) => any) | undefined;
39
+ "onAction-click"?: ((...args: any[]) => any) | undefined;
40
+ }>, {
41
+ items: TabsItem[];
42
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
43
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
44
  command: (...args: any[]) => void;
21
45
  "update:modelValue": (...args: any[]) => void;
@@ -29,9 +53,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
29
53
  }>, {
30
54
  items: TabsItem[];
31
55
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
32
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
33
57
  export default _default;
34
- type __VLS_WithTemplateSlots<T, S> = T & {
58
+ type __VLS_WithSlots<T, S> = T & {
35
59
  new (): {
36
60
  $slots: S;
37
61
  };