iv-npm 1.1.7 → 1.1.8
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 +1 -1
- package/packages/shared/dist/utils/index.d.ts +3 -1
- package/packages/shared/dist/utils/index.mjs +6 -0
- package/packages/ui/README.md +41 -1
- package/packages/ui/dist/api/api.config.d.ts +4 -0
- package/packages/ui/dist/business-ui/component/IVMrpLineDropdown.d.ts +2 -2
- package/packages/ui/dist/business-ui/component/IVMrpOrgDropdown.d.ts +2 -2
- package/packages/ui/dist/business-ui/component/IVMrpPostDropdown.d.ts +53 -0
- package/packages/ui/dist/business-ui/component/IVMrpProdBaseDropdown.d.ts +2 -2
- package/packages/ui/dist/business-ui/component/IVMrpSetofbookDropdown.d.ts +2 -2
- package/packages/ui/dist/business-ui/index.d.ts +2 -1
- package/packages/ui/dist/index.cjs.js +279 -51
- package/packages/ui/dist/index.d.ts +2 -2
- package/packages/ui/dist/index.esm.js +275 -48
- package/packages/ui/dist/index.umd.js +279 -51
- package/packages/ui/dist/index.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -34,4 +34,6 @@ declare const assign: {
|
|
|
34
34
|
(target: object, ...sources: any[]): any;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
declare function filterOptionHeadle(input: string, option: any): any;
|
|
38
|
+
|
|
39
|
+
export { arrToTree, assign, filterOptionHeadle, findTree, isObject, isPlainObject, tranListToTreeData };
|
|
@@ -62,9 +62,15 @@ var isObject = (val) => val !== null && typeof val === "object";
|
|
|
62
62
|
|
|
63
63
|
// utils/obj/cache.ts
|
|
64
64
|
var assign = Object.assign;
|
|
65
|
+
|
|
66
|
+
// utils/input/index.ts
|
|
67
|
+
function filterOptionHeadle(input, option) {
|
|
68
|
+
return option.label && option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
69
|
+
}
|
|
65
70
|
export {
|
|
66
71
|
arrToTree,
|
|
67
72
|
assign,
|
|
73
|
+
filterOptionHeadle,
|
|
68
74
|
findTree,
|
|
69
75
|
isObject,
|
|
70
76
|
isPlainObject,
|
package/packages/ui/README.md
CHANGED
|
@@ -148,4 +148,44 @@ app.use(ivUi)
|
|
|
148
148
|
|
|
149
149
|
| props |
|
|
150
150
|
| -------- |
|
|
151
|
-
| 参考生产基地下拉 |
|
|
151
|
+
| 参考生产基地下拉 |
|
|
152
|
+
|
|
153
|
+
## 账套下拉
|
|
154
|
+
|
|
155
|
+
> <IVMrpSetofbookDropdown/>
|
|
156
|
+
|
|
157
|
+
- 组件API
|
|
158
|
+
|
|
159
|
+
```js
|
|
160
|
+
{
|
|
161
|
+
method: "GET",
|
|
162
|
+
url:'/api/basis-management/setOfBook/all',
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
- 示例
|
|
170
|
+
|
|
171
|
+
```vue
|
|
172
|
+
<template>
|
|
173
|
+
<IVMrpSetofbookDropdown
|
|
174
|
+
v-model:value="Detail.lineIds"
|
|
175
|
+
:params="{type:1}"
|
|
176
|
+
:data="{name:123}"
|
|
177
|
+
:fieldNames="{
|
|
178
|
+
label: "displayName",
|
|
179
|
+
value: "id",
|
|
180
|
+
}"
|
|
181
|
+
/>
|
|
182
|
+
</template>
|
|
183
|
+
<script setup lang="ts">
|
|
184
|
+
import { IVMrpSetofbookDropdown } from "iv-npm/packages/ui";
|
|
185
|
+
</script>
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
| props | describe | type |
|
|
189
|
+
| ------------ | -------- | ------------------- |
|
|
190
|
+
| multiple | 是否多选 | Boolean,defind:true |
|
|
191
|
+
| 其余参考参考生产基地下拉 | | |
|
|
@@ -16,6 +16,10 @@ declare const API_OPTION: {
|
|
|
16
16
|
url: string;
|
|
17
17
|
option: any;
|
|
18
18
|
};
|
|
19
|
+
getIVMrpPostDropdown: {
|
|
20
|
+
url: string;
|
|
21
|
+
option: any;
|
|
22
|
+
};
|
|
19
23
|
};
|
|
20
24
|
export declare const formatHTTP: (fetch: any) => Promise<any>;
|
|
21
25
|
export declare const formatUrl: (base: string, api: string, params: object) => string;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
fieldNames: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
-
default: {
|
|
20
|
+
default: () => {
|
|
21
21
|
label: string;
|
|
22
22
|
value: string;
|
|
23
23
|
};
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
fieldNames: {
|
|
41
41
|
type: null;
|
|
42
42
|
required: false;
|
|
43
|
-
default: {
|
|
43
|
+
default: () => {
|
|
44
44
|
label: string;
|
|
45
45
|
value: string;
|
|
46
46
|
};
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
replaceFields: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
-
default: {
|
|
20
|
+
default: () => {
|
|
21
21
|
children: string;
|
|
22
22
|
label: string;
|
|
23
23
|
key: string;
|
|
@@ -42,7 +42,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
42
|
replaceFields: {
|
|
43
43
|
type: null;
|
|
44
44
|
required: false;
|
|
45
|
-
default: {
|
|
45
|
+
default: () => {
|
|
46
46
|
children: string;
|
|
47
47
|
label: string;
|
|
48
48
|
key: string;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件定义-------------------------------------
|
|
3
|
+
* */
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
value: {
|
|
6
|
+
type: null;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
params: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
required: false;
|
|
12
|
+
};
|
|
13
|
+
data: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
};
|
|
17
|
+
fieldNames: {
|
|
18
|
+
type: null;
|
|
19
|
+
required: false;
|
|
20
|
+
default: () => {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
value: {
|
|
29
|
+
type: null;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
params: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
data: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
fieldNames: {
|
|
41
|
+
type: null;
|
|
42
|
+
required: false;
|
|
43
|
+
default: () => {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}>> & {
|
|
49
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
fieldNames: any;
|
|
52
|
+
}>;
|
|
53
|
+
export default _default;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
fieldNames: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
-
default: {
|
|
20
|
+
default: () => {
|
|
21
21
|
label: string;
|
|
22
22
|
value: string;
|
|
23
23
|
};
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
fieldNames: {
|
|
41
41
|
type: null;
|
|
42
42
|
required: false;
|
|
43
|
-
default: {
|
|
43
|
+
default: () => {
|
|
44
44
|
label: string;
|
|
45
45
|
value: string;
|
|
46
46
|
};
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
replaceFields: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
-
default: {
|
|
20
|
+
default: () => {
|
|
21
21
|
children: string;
|
|
22
22
|
label: string;
|
|
23
23
|
key: string;
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
replaceFields: {
|
|
48
48
|
type: null;
|
|
49
49
|
required: false;
|
|
50
|
-
default: {
|
|
50
|
+
default: () => {
|
|
51
51
|
children: string;
|
|
52
52
|
label: string;
|
|
53
53
|
key: string;
|
|
@@ -2,4 +2,5 @@ import IVMrpOrgDropdown from "./component/IVMrpOrgDropdown.vue";
|
|
|
2
2
|
import IVMrpProdBaseDropdown from "./component/IVMrpProdBaseDropdown.vue";
|
|
3
3
|
import IVMrpLineDropdown from "./component/IVMrpLineDropdown.vue";
|
|
4
4
|
import IVMrpSetofbookDropdown from "./component/IVMrpSetofbookDropdown.vue";
|
|
5
|
-
|
|
5
|
+
import IVMrpPostDropdown from "./component/IVMrpPostDropdown.vue";
|
|
6
|
+
export { IVMrpOrgDropdown, IVMrpProdBaseDropdown, IVMrpLineDropdown, IVMrpSetofbookDropdown, IVMrpPostDropdown, };
|