@juzhenfe/page-model 3.9.49 → 3.10.0

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.
@@ -1,5 +1,4 @@
1
1
  /// <reference path="../../types/common.d.ts" />
2
- /// <reference path="../action-tools/type.d.ts" />
3
2
  /// <reference path="./components/top-tabs/type.d.ts" />
4
3
  /// <reference path="../search-form/type.d.ts" />
5
4
  /// <reference path="../table/type.d.ts" />
@@ -79,14 +78,6 @@ declare global {
79
78
  * 删除接口、详情接口参数构建方式,path参与路径,params参数请求
80
79
  */
81
80
  urlMode?: UrlMode;
82
-
83
- /**
84
- * 是否自动添加新增按钮
85
- */
86
- isAutoAddButton?: boolean;
87
-
88
- // 是否自动添加导入按钮
89
- isAutoImportButton?: boolean;
90
81
 
91
82
  // 获取地址
92
83
  getUrl?: string;
@@ -169,9 +160,6 @@ declare global {
169
160
  // 顶部布局参数,包含tab栏等
170
161
  tabs?: Tabs;
171
162
 
172
- // 顶部按钮数据
173
- action?: Action;
174
-
175
163
  // config事件
176
164
  events?: {
177
165
  [key: string]: (this: PageModelManager, ...rest: any[]) => any;
@@ -22,11 +22,6 @@ declare namespace PageModel {
22
22
  // 表单数据变化回调
23
23
  onFormDataChange?: (this: CTX, data: MODEL) => void;
24
24
 
25
- // 高级筛选
26
- useFilter?: boolean;
27
- filters?: {
28
- url: string;
29
- }
30
25
  /**
31
26
  * 是否值变化检索
32
27
  */
@@ -3,6 +3,7 @@
3
3
  import { PaginationProps } from "element-plus";
4
4
  import { Sort } from "element-plus/es/components/table/src/table/defaults";
5
5
  import TableManagerDefault from './constructor'
6
+ import { Component, ComponentPublicInstance } from "vue";
6
7
 
7
8
  declare global {
8
9
  namespace PageModel {
@@ -151,6 +152,14 @@ declare global {
151
152
  * 工具箱
152
153
  */
153
154
  toolbox?: ('export' | 'fullscreen' | 'colunm-tool')[]
155
+ /**
156
+ * 扩展工具栏
157
+ */
158
+ extendsToolbox?: {
159
+ icon: Component;
160
+ text?: string;
161
+ event: string;
162
+ }[]
154
163
  }
155
164
  }
156
165
  }
@@ -3,22 +3,42 @@ declare const _sfc_main: import("vue").DefineComponent<{
3
3
  type: any;
4
4
  required: true;
5
5
  };
6
+ extendsToolbox: {
7
+ type: any;
8
+ required: true;
9
+ };
6
10
  }, {
7
- emit: (event: "fullscreen" | "export" | "show-column-tool", ...args: any[]) => void;
8
- handleExport: () => void;
9
- handleToggleFullscreen: () => void;
10
- handleShowColumnTool: (e: Event) => void;
11
- readonly FullScreen: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
12
- readonly Download: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
13
- readonly Tools: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
14
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("fullscreen" | "export" | "show-column-tool")[], "fullscreen" | "export" | "show-column-tool", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ props: any;
12
+ emit: (event: "custom-event", ...args: any[]) => void;
13
+ innerTools: {
14
+ export: {
15
+ icon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
16
+ text: string;
17
+ event: string;
18
+ };
19
+ fullscreen: {
20
+ icon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
21
+ text: string;
22
+ event: string;
23
+ };
24
+ "colunm-tool": {
25
+ icon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
26
+ text: string;
27
+ event: string;
28
+ };
29
+ };
30
+ showToolbox: import("vue").ComputedRef<any>;
31
+ handleClickTool: (index: number, e: Event) => void;
32
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "custom-event"[], "custom-event", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
33
  toolbox: {
16
34
  type: any;
17
35
  required: true;
18
36
  };
37
+ extendsToolbox: {
38
+ type: any;
39
+ required: true;
40
+ };
19
41
  }>> & {
20
- onExport?: (...args: any[]) => any;
21
- onFullscreen?: (...args: any[]) => any;
22
- "onShow-column-tool"?: (...args: any[]) => any;
42
+ "onCustom-event"?: (...args: any[]) => any;
23
43
  }, {}, {}>;
24
44
  export default _sfc_main;