@ttkj/avue 2.10.12 → 2.10.14
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +163 -130
- package/lib/avue.min.js +13 -5
- package/package.json +4 -2
- package/types/crud/index.d.ts +2 -1
- package/types/crud/refs/header-search.d.ts +18 -0
- package/types/form/index.d.ts +2 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ttkj/avue",
|
3
|
-
"version": "2.10.
|
3
|
+
"version": "2.10.14",
|
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.
|
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"
|
package/types/crud/index.d.ts
CHANGED
@@ -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:
|
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
|
+
}
|
package/types/form/index.d.ts
CHANGED