@ajaxjs/ui 1.7.1 → 1.7.3
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/dist/ajaxjs-ui.es.js +941 -939
- package/dist/ajaxjs-ui.umd.js +16 -16
- package/dist/types/components/tree-table/tree-selector.vue.d.ts +6 -1
- package/dist/types/components/tree-table/tree-table.vue.d.ts +148 -0
- package/dist/types/index.d.ts +235 -0
- package/dist/ui.css +1 -1
- package/package.json +2 -6
- package/dist/types/components/permission/permission-type.d.ts +0 -28
- package/dist/types/components/permission/role-type.d.ts +0 -44
- package/dist/types/components/tree-table/index.d.ts +0 -131
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
components: {
|
|
3
|
-
TreeSelector: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
-
treeJson: {
|
|
5
|
-
type: ArrayConstructor;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
}>, {}, {
|
|
9
|
-
data: never[];
|
|
10
|
-
selectId: number;
|
|
11
|
-
}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
-
treeJson: {
|
|
13
|
-
type: ArrayConstructor;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
-
};
|
|
18
|
-
props: {
|
|
19
|
-
name: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
require: boolean;
|
|
22
|
-
};
|
|
23
|
-
list: {
|
|
24
|
-
type: ArrayConstructor;
|
|
25
|
-
default(): never[];
|
|
26
|
-
};
|
|
27
|
-
api: {
|
|
28
|
-
type: ObjectConstructor;
|
|
29
|
-
require: boolean;
|
|
30
|
-
};
|
|
31
|
-
formFields: {
|
|
32
|
-
type: ArrayConstructor;
|
|
33
|
-
default(): never[];
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
data(): {
|
|
37
|
-
isCreateTop: boolean;
|
|
38
|
-
isUpdate: boolean;
|
|
39
|
-
edit: {
|
|
40
|
-
isShowEdit: boolean;
|
|
41
|
-
row: {};
|
|
42
|
-
parent: string;
|
|
43
|
-
parentId: number;
|
|
44
|
-
};
|
|
45
|
-
columns16: any[];
|
|
46
|
-
data: ({
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
age: number;
|
|
50
|
-
address: string;
|
|
51
|
-
_showChildren?: undefined;
|
|
52
|
-
children?: undefined;
|
|
53
|
-
} | {
|
|
54
|
-
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
age: number;
|
|
57
|
-
address: string;
|
|
58
|
-
_showChildren: boolean;
|
|
59
|
-
children: ({
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
age: number;
|
|
63
|
-
address: string;
|
|
64
|
-
children?: undefined;
|
|
65
|
-
} | {
|
|
66
|
-
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
age: number;
|
|
69
|
-
address: string;
|
|
70
|
-
children: {
|
|
71
|
-
id: string;
|
|
72
|
-
name: string;
|
|
73
|
-
age: number;
|
|
74
|
-
address: string;
|
|
75
|
-
}[];
|
|
76
|
-
})[];
|
|
77
|
-
})[];
|
|
78
|
-
};
|
|
79
|
-
mounted(): void;
|
|
80
|
-
methods: {
|
|
81
|
-
getData(): void;
|
|
82
|
-
/**
|
|
83
|
-
* 新建子节点
|
|
84
|
-
*
|
|
85
|
-
* @param name 父节点的名称
|
|
86
|
-
* @param id 父节点的 id
|
|
87
|
-
*/
|
|
88
|
-
createTreeNode(name: string, id: number, parentId: number): void;
|
|
89
|
-
/**
|
|
90
|
-
* 编辑节点
|
|
91
|
-
*
|
|
92
|
-
* @param name 父节点的名称
|
|
93
|
-
* @param id 父节点的 id
|
|
94
|
-
*/
|
|
95
|
-
editTreeNode(row: any): void;
|
|
96
|
-
/**
|
|
97
|
-
* 创建顶级节点
|
|
98
|
-
*/
|
|
99
|
-
createTop(): void;
|
|
100
|
-
/**
|
|
101
|
-
* 保存
|
|
102
|
-
*/
|
|
103
|
-
save(): void;
|
|
104
|
-
delTreeNode({ id }: {
|
|
105
|
-
id: any;
|
|
106
|
-
}): void;
|
|
107
|
-
delAllTreeNode(): void;
|
|
108
|
-
};
|
|
109
|
-
computed: {
|
|
110
|
-
getTitle(): string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
export default _default;
|
|
114
|
-
/**
|
|
115
|
-
* 树节点
|
|
116
|
-
*/
|
|
117
|
-
export type TreeMap = {
|
|
118
|
-
id: number;
|
|
119
|
-
/**
|
|
120
|
-
* 父 id,输入时候必填
|
|
121
|
-
*/
|
|
122
|
-
parentId: number;
|
|
123
|
-
/**
|
|
124
|
-
* iView Table 控件的展开属性
|
|
125
|
-
*/
|
|
126
|
-
_showChildren: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* 子节点,生成 Tree 之后出现
|
|
129
|
-
*/
|
|
130
|
-
children?: TreeMap[];
|
|
131
|
-
};
|