@zyui/components 1.0.59 → 1.0.60

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.
@@ -27,6 +27,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
27
27
  type: ArrayConstructor;
28
28
  default: () => never[];
29
29
  };
30
+ customMenuItems: {
31
+ type: ArrayConstructor;
32
+ default: () => never[];
33
+ };
30
34
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
35
  formData: import('vue').PropType<any>;
32
36
  nodes: import('vue').PropType<any>;
@@ -51,11 +55,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
51
55
  type: ArrayConstructor;
52
56
  default: () => never[];
53
57
  };
58
+ customMenuItems: {
59
+ type: ArrayConstructor;
60
+ default: () => never[];
61
+ };
54
62
  }>> & Readonly<{}>, {
55
63
  renderType: RenderType;
56
64
  disabledNodes: unknown[];
57
65
  editorId: string;
58
66
  inputTypes: unknown[];
67
+ customMenuItems: unknown[];
59
68
  dynamicNodes: unknown[];
60
69
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
61
70
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -1,10 +1,19 @@
1
1
  import { Ref } from 'vue';
2
2
  import { NodeItem, RenderType } from './type';
3
3
 
4
+ export type CustomMenuItem = {
5
+ label: string;
6
+ icon?: string;
7
+ value?: string;
8
+ children?: CustomMenuItem[];
9
+ getDefaultProps?: () => any;
10
+ handler?: () => void;
11
+ };
4
12
  type NodesEditorContext = {
5
13
  renderType: RenderType;
6
14
  modelValue: Ref<string>;
7
15
  inputTypes: any[];
16
+ customMenuItems?: CustomMenuItem[];
8
17
  nodes: Ref<any[]>;
9
18
  updateNodes: (nodes: any[]) => void;
10
19
  formData: any;
@@ -88,6 +88,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
88
88
  type: ArrayConstructor;
89
89
  default: () => never[];
90
90
  };
91
+ customMenuItems: {
92
+ type: ArrayConstructor;
93
+ default: () => never[];
94
+ };
91
95
  enableFormatToolbar: {
92
96
  type: BooleanConstructor;
93
97
  default: boolean;
@@ -191,6 +195,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
191
195
  type: ArrayConstructor;
192
196
  default: () => never[];
193
197
  };
198
+ customMenuItems: {
199
+ type: ArrayConstructor;
200
+ default: () => never[];
201
+ };
194
202
  enableFormatToolbar: {
195
203
  type: BooleanConstructor;
196
204
  default: boolean;
@@ -212,6 +220,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
212
220
  enableFormatToolbar: boolean;
213
221
  inputTypes: unknown[];
214
222
  nodesGroups: unknown[];
223
+ customMenuItems: unknown[];
215
224
  dynamicNodes: unknown[];
216
225
  pagesize: string;
217
226
  showTableOperationButtons: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyui/components",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",