iv-npm 1.1.3 → 1.1.6
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/ui/README.md +89 -7
- package/packages/ui/dist/api/api.config.d.ts +8 -0
- package/packages/ui/dist/business-ui/component/IVMrpLineDropdown.d.ts +43 -0
- package/packages/ui/dist/business-ui/component/IVMrpOrgDropdown.d.ts +43 -0
- package/packages/ui/dist/business-ui/component/IVMrpProdBaseDropdown.d.ts +43 -0
- package/packages/ui/dist/business-ui/component/IVMrpSetofbookDropdown.d.ts +43 -0
- package/packages/ui/dist/business-ui/index.d.ts +3 -1
- package/packages/ui/dist/function-ui/component/IVMrpModal.d.ts +41 -0
- package/packages/ui/dist/index.cjs.js +1303 -0
- package/packages/ui/dist/index.d.ts +2 -2
- package/packages/ui/dist/index.esm.js +1295 -0
- package/packages/ui/dist/index.umd.js +1305 -4
- package/packages/ui/dist/index.umd.js.map +1 -1
package/package.json
CHANGED
package/packages/ui/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
ui工具包
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 快速开始
|
|
6
6
|
|
|
7
7
|
> npm i iv-npm
|
|
8
8
|
|
|
@@ -26,6 +26,8 @@ app.use(ivUi)
|
|
|
26
26
|
|
|
27
27
|
## 组织架构/部门下拉
|
|
28
28
|
|
|
29
|
+
> <IVMrpOrgDropdown />
|
|
30
|
+
|
|
29
31
|
- 组件API
|
|
30
32
|
|
|
31
33
|
```js
|
|
@@ -60,10 +62,90 @@ app.use(ivUi)
|
|
|
60
62
|
</script>
|
|
61
63
|
```
|
|
62
64
|
|
|
63
|
-
| props | describe | type
|
|
64
|
-
| ------------- | ------------------------------ |
|
|
65
|
-
| v-model:value | 绑定值 | any
|
|
66
|
-
| params | GET请求参数(响应式,值改变会触发接口) | object
|
|
67
|
-
| data | POST请求参数(响应式,值改变会触发接口) | object
|
|
68
|
-
| replaceFields | 指定value,key,label, children字段名 | ReplaceFields |
|
|
65
|
+
| props | describe | type |
|
|
66
|
+
| ------------- | ------------------------------ | ------------------- |
|
|
67
|
+
| v-model:value | 绑定值 | any |
|
|
68
|
+
| params | GET请求参数(响应式,值改变会触发接口) | object |
|
|
69
|
+
| data | POST请求参数(响应式,值改变会触发接口) | object |
|
|
70
|
+
| replaceFields | 指定value,key,label, children字段名 | ReplaceFields,存在默认值 |
|
|
71
|
+
|
|
72
|
+
## 生产基地下拉
|
|
73
|
+
|
|
74
|
+
> <IVMrpProdBaseDropdown/>
|
|
75
|
+
|
|
76
|
+
- 组件API
|
|
77
|
+
|
|
78
|
+
```js
|
|
79
|
+
{
|
|
80
|
+
method: "GET",
|
|
81
|
+
url:'/api/basis-management/production-base/all',
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
- 示例
|
|
89
|
+
|
|
90
|
+
```vue
|
|
91
|
+
<template>
|
|
92
|
+
<IVMrpProdBaseDropdown
|
|
93
|
+
v-model:value="Detail.organizationIds"
|
|
94
|
+
:params="{type:1}"
|
|
95
|
+
:data="{name:123}"
|
|
96
|
+
:fieldNames="{
|
|
97
|
+
label: "displayName",
|
|
98
|
+
value: "id",
|
|
99
|
+
}"
|
|
100
|
+
/>
|
|
101
|
+
</template>
|
|
102
|
+
<script setup lang="ts">
|
|
103
|
+
import { IVMrpProdBaseDropdown } from "iv-npm/packages/ui";
|
|
104
|
+
</script>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
| props | describe | type |
|
|
108
|
+
| ------------- | ---------------------- | ---------------- |
|
|
109
|
+
| v-model:value | 绑定值 | any |
|
|
110
|
+
| params | GET请求参数(响应式,值改变会触发接口) | object |
|
|
111
|
+
| data | POST请求参数(响应式,值改变会触发接口) | object |
|
|
112
|
+
| fieldNames | 指定value,label字段名 | FieldNames,存在默认值 |
|
|
113
|
+
|
|
114
|
+
## 条线下拉
|
|
115
|
+
|
|
116
|
+
> <IVMrpLineDropdown/>
|
|
117
|
+
|
|
118
|
+
- 组件API
|
|
119
|
+
|
|
120
|
+
```js
|
|
121
|
+
{
|
|
122
|
+
method: "GET",
|
|
123
|
+
url:'/api/basis-management/production-base/all',
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
- 示例
|
|
131
|
+
|
|
132
|
+
```vue
|
|
133
|
+
<template>
|
|
134
|
+
<IVMrpLineDropdown
|
|
135
|
+
v-model:value="Detail.lineIds"
|
|
136
|
+
:params="{type:1}"
|
|
137
|
+
:data="{name:123}"
|
|
138
|
+
:fieldNames="{
|
|
139
|
+
label: "displayName",
|
|
140
|
+
value: "id",
|
|
141
|
+
}"
|
|
142
|
+
/>
|
|
143
|
+
</template>
|
|
144
|
+
<script setup lang="ts">
|
|
145
|
+
import { IVMrpLineDropdown } from "iv-npm/packages/ui";
|
|
146
|
+
</script>
|
|
147
|
+
```
|
|
69
148
|
|
|
149
|
+
| props |
|
|
150
|
+
| -------- |
|
|
151
|
+
| 参考生产基地下拉 |
|
|
@@ -8,6 +8,14 @@ declare const API_OPTION: {
|
|
|
8
8
|
url: string;
|
|
9
9
|
option: any;
|
|
10
10
|
};
|
|
11
|
+
getIVMrpLineDropdown: {
|
|
12
|
+
url: string;
|
|
13
|
+
option: any;
|
|
14
|
+
};
|
|
15
|
+
getIVMrpSetofbookDropdown: {
|
|
16
|
+
url: string;
|
|
17
|
+
option: any;
|
|
18
|
+
};
|
|
11
19
|
};
|
|
12
20
|
export declare const formatHTTP: (fetch: any) => Promise<any>;
|
|
13
21
|
export declare const formatUrl: (base: string, api: string, params: object) => string;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
};
|
|
21
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
value: {
|
|
25
|
+
type: null;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
params: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
data: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
fieldNames: {
|
|
37
|
+
type: null;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
}>> & {
|
|
41
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
replaceFields: {
|
|
18
|
+
type: null;
|
|
19
|
+
required: false;
|
|
20
|
+
};
|
|
21
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
value: {
|
|
25
|
+
type: null;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
params: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
data: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
replaceFields: {
|
|
37
|
+
type: null;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
}>> & {
|
|
41
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
};
|
|
21
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
value: {
|
|
25
|
+
type: null;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
params: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
data: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
fieldNames: {
|
|
37
|
+
type: null;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
}>> & {
|
|
41
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
replaceFields: {
|
|
18
|
+
type: null;
|
|
19
|
+
required: false;
|
|
20
|
+
};
|
|
21
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
value: {
|
|
25
|
+
type: null;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
params: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
data: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
replaceFields: {
|
|
37
|
+
type: null;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
}>> & {
|
|
41
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import IVMrpOrgDropdown from "./component/IVMrpOrgDropdown.vue";
|
|
2
2
|
import IVMrpProdBaseDropdown from "./component/IVMrpProdBaseDropdown.vue";
|
|
3
|
-
|
|
3
|
+
import IVMrpLineDropdown from "./component/IVMrpLineDropdown.vue";
|
|
4
|
+
import IVMrpSetofbookDropdown from "./component/IVMrpSetofbookDropdown.vue";
|
|
5
|
+
export { IVMrpOrgDropdown, IVMrpProdBaseDropdown, IVMrpLineDropdown, IVMrpSetofbookDropdown, };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* show:Boolean 是否显示弹窗 v-model:show="Visible"
|
|
3
|
+
*
|
|
4
|
+
* remove-padding:Boolean 是否需要弹窗内边距(defult:true)
|
|
5
|
+
* 内边距 padding: 100px 0 100px 100px;
|
|
6
|
+
*
|
|
7
|
+
* @cancelHandle:Function 关闭时触发事件
|
|
8
|
+
*
|
|
9
|
+
* v-slot:title 弹窗头部
|
|
10
|
+
*
|
|
11
|
+
* v-slot:body 弹窗主体
|
|
12
|
+
*
|
|
13
|
+
* */
|
|
14
|
+
declare const _default: import("vue").DefineComponent<{
|
|
15
|
+
show: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
removePadding: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "cancelHandle")[], "update:show" | "cancelHandle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
show: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
removePadding: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
}>> & {
|
|
35
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
onCancelHandle?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
show: boolean;
|
|
39
|
+
removePadding: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
export default _default;
|