@ttkj/avue 2.10.12 → 2.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttkj/avue",
3
- "version": "2.10.12",
3
+ "version": "2.10.13",
4
4
  "description": "A Magic Configurable Web Framework",
5
5
  "main": "lib/avue.min.js",
6
6
  "unpkg": "lib/avue.min.js",
@@ -29,9 +29,10 @@
29
29
  "devDependencies": {
30
30
  "@babel/core": "^7.13.14",
31
31
  "@babel/preset-env": "^7.13.12",
32
+ "@types/lodash": "^4.14.202",
32
33
  "axios": "^0.21.1",
33
34
  "babel-loader": "^8.2.2",
34
- "cross-env": "^3.1.3",
35
+ "cross-env": "^3.2.4",
35
36
  "css-loader": "^5.2.0",
36
37
  "element-ui": "^2.15.10",
37
38
  "eslint": "4.14.0",
@@ -59,6 +60,7 @@
59
60
  "dependencies": {
60
61
  "countup.js": "^1.9.3",
61
62
  "dayjs": "^1.10.4",
63
+ "lodash": "^4.17.21",
62
64
  "nprogress": "^0.2.0",
63
65
  "vue-cropper": "^0.5.8",
64
66
  "vuedraggable": "^2.24.3"
@@ -8,6 +8,7 @@ import { ElUploadInternalRawFile } from 'element-ui/types/upload';
8
8
  import { AvueComponent, Obj } from '../global';
9
9
  import { CrudOption } from './option';
10
10
  import { AvueCrudColumn } from './column';
11
+ import { AvueCrudHeaderSearch } from './refs/header-search';
11
12
  import { AvueCrudDialogForm } from './refs/dialog-form';
12
13
 
13
14
  /** 表单打开类型 */
@@ -36,7 +37,7 @@ export interface AvueCrudRefs<T = Obj> {
36
37
  * 搜索组件
37
38
  * @description 包含了search、prop+'SearchLabel'、prop+'Search'、searchMenu插槽
38
39
  */
39
- headerSearch: VNode;
40
+ headerSearch: AvueCrudHeaderSearch;
40
41
  /**
41
42
  * 顶部菜单组件
42
43
  * @description 包含了menuLeft和menuRight插槽
@@ -0,0 +1,18 @@
1
+ // 引入定义
2
+ import { FormOption } from '../../form/option';
3
+
4
+ export declare class AvueCrudHeaderSearch {
5
+ /** 搜索表单配置 */
6
+ readonly option: FormOption;
7
+ // ========== 方法 ==========
8
+ /** 搜索清空 */
9
+ resetChange(): void;
10
+ /** 搜索清空 */
11
+ searchReset(): void;
12
+ /** 切换搜索显示 */
13
+ handleSearchShow(): void;
14
+ /** 设置搜索是否显示 */
15
+ handleSearchCollapse(searchShow: boolean): void;
16
+ /** 判断是否显示搜索 */
17
+ dataFormat(): void;
18
+ }
@@ -24,6 +24,8 @@ export declare class AvueForm<T = Obj> extends AvueComponent {
24
24
  // ========== 方法 ==========
25
25
  /** 重新初始化(多数用于服务端加载或者更新网络字典) */
26
26
  init(): void;
27
+ /** 初始化表单 */
28
+ dataFormat(): void;
27
29
  /**
28
30
  * 获取prop的ref对象
29
31
  * @param prop 表单项的 prop 属性