iv-npm 1.3.8 → 1.4.2
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 +2 -2
- package/packages/shared/dist/utils/index.d.ts +1 -1
- package/packages/shared/dist/utils/index.mjs +5 -1
- package/packages/ui/dist/api/api.config.d.ts +10 -0
- package/packages/ui/dist/business-ui/component/IVAccessoryTypeSelector.d.ts +171 -0
- package/packages/ui/dist/business-ui/component/IVMaterialTypeSelector.d.ts +171 -0
- package/packages/ui/dist/business-ui/index.d.ts +3 -1
- package/packages/ui/dist/index.cjs.js +1 -1
- package/packages/ui/dist/index.d.ts +2 -2
- package/packages/ui/dist/index.esm.js +2 -2
- package/packages/ui/dist/index.umd.js +1 -1
- package/packages/ui/dist/index.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iv-npm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "公共通用包",
|
|
5
5
|
"author": "Mr.Cong",
|
|
6
6
|
"license": "ISC",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "turbo run build",
|
|
11
11
|
"build:pkg": "pnpm run prepare -r",
|
|
12
|
-
"push": "npm run changeVersion
|
|
12
|
+
"push": "npm run changeVersion & turbo run build & npm publish",
|
|
13
13
|
"changeVersion": "node ./scripts/changeVersion.js",
|
|
14
14
|
"changeVersion1": "node ./scripts/changeVersion.js level1",
|
|
15
15
|
"changeVersion2": "node ./scripts/changeVersion.js level2"
|
|
@@ -48,7 +48,7 @@ declare function buildURL(url: string, params: any): string;
|
|
|
48
48
|
|
|
49
49
|
declare function apiConfiger(config: any): any;
|
|
50
50
|
|
|
51
|
-
declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL";
|
|
51
|
+
declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL";
|
|
52
52
|
declare function hostConfiger(key: HostKey): string;
|
|
53
53
|
|
|
54
54
|
declare type formatType = {
|
|
@@ -142,7 +142,8 @@ function hostConfiger(key) {
|
|
|
142
142
|
const devHost = {
|
|
143
143
|
BASE_URL: "https://basis.nacho.cn",
|
|
144
144
|
MRP_URL: "https://mrp.nacho.cn",
|
|
145
|
-
MRP2_URL: "https://mrp2.nacho.cn"
|
|
145
|
+
MRP2_URL: "https://mrp2.nacho.cn",
|
|
146
|
+
ASSET_URL: "https://gateway.nacho.cn"
|
|
146
147
|
};
|
|
147
148
|
if (process.env.NODE_ENV == "development")
|
|
148
149
|
return devHost[key];
|
|
@@ -157,6 +158,9 @@ function hostConfiger(key) {
|
|
|
157
158
|
case "MRP2_URL":
|
|
158
159
|
preString = "mrp2";
|
|
159
160
|
break;
|
|
161
|
+
case "ASSET_URL":
|
|
162
|
+
preString = "gateway";
|
|
163
|
+
break;
|
|
160
164
|
default:
|
|
161
165
|
throw new Error("no matching arguments\uFF01");
|
|
162
166
|
}
|
|
@@ -209,6 +209,16 @@ declare const API_OPTION: {
|
|
|
209
209
|
};
|
|
210
210
|
baseUrl: string;
|
|
211
211
|
};
|
|
212
|
+
getAccessoryType: {
|
|
213
|
+
url: string;
|
|
214
|
+
option: {
|
|
215
|
+
headers: {
|
|
216
|
+
[props: string]: any;
|
|
217
|
+
};
|
|
218
|
+
method: string;
|
|
219
|
+
};
|
|
220
|
+
baseUrl: string;
|
|
221
|
+
};
|
|
212
222
|
};
|
|
213
223
|
export declare const formatHTTP: (fetch: any) => Promise<any>;
|
|
214
224
|
export declare const formatUrl: (base: string, api: string, params?: object) => string;
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
default: () => {
|
|
21
|
+
children: string;
|
|
22
|
+
label: string;
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
selectable: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
inputStyle: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
formItemStyle: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
labelCol: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
default: () => {
|
|
40
|
+
span: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
wrapperCol: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
required: false;
|
|
46
|
+
default: () => {
|
|
47
|
+
span: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
isRequired: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
required: true;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
multiple: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
isTitle: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
placeholder: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
required: false;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
title: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
required: false;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
name: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
83
|
+
value: {
|
|
84
|
+
type: null;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
params: {
|
|
88
|
+
type: ObjectConstructor;
|
|
89
|
+
required: false;
|
|
90
|
+
};
|
|
91
|
+
data: {
|
|
92
|
+
type: ObjectConstructor;
|
|
93
|
+
required: false;
|
|
94
|
+
};
|
|
95
|
+
replaceFields: {
|
|
96
|
+
type: null;
|
|
97
|
+
required: false;
|
|
98
|
+
default: () => {
|
|
99
|
+
children: string;
|
|
100
|
+
label: string;
|
|
101
|
+
key: string;
|
|
102
|
+
value: string;
|
|
103
|
+
selectable: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
inputStyle: {
|
|
107
|
+
type: ObjectConstructor;
|
|
108
|
+
required: true;
|
|
109
|
+
};
|
|
110
|
+
formItemStyle: {
|
|
111
|
+
type: ObjectConstructor;
|
|
112
|
+
required: false;
|
|
113
|
+
};
|
|
114
|
+
labelCol: {
|
|
115
|
+
type: ObjectConstructor;
|
|
116
|
+
required: false;
|
|
117
|
+
default: () => {
|
|
118
|
+
span: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
wrapperCol: {
|
|
122
|
+
type: ObjectConstructor;
|
|
123
|
+
required: false;
|
|
124
|
+
default: () => {
|
|
125
|
+
span: number;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
isRequired: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
required: true;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
multiple: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
required: false;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
isTitle: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
required: false;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
placeholder: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
required: false;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
title: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
required: false;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
name: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
required: false;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
}>> & {
|
|
159
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
160
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
replaceFields: any;
|
|
163
|
+
labelCol: Record<string, any>;
|
|
164
|
+
wrapperCol: Record<string, any>;
|
|
165
|
+
multiple: boolean;
|
|
166
|
+
isTitle: boolean;
|
|
167
|
+
placeholder: string;
|
|
168
|
+
title: string;
|
|
169
|
+
name: string;
|
|
170
|
+
}>;
|
|
171
|
+
export default _default;
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
default: () => {
|
|
21
|
+
children: string;
|
|
22
|
+
label: string;
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
selectable: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
inputStyle: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
formItemStyle: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
labelCol: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
default: () => {
|
|
40
|
+
span: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
wrapperCol: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
required: false;
|
|
46
|
+
default: () => {
|
|
47
|
+
span: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
isRequired: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
required: true;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
multiple: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
isTitle: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
placeholder: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
required: false;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
title: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
required: false;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
name: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
required: false;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
83
|
+
value: {
|
|
84
|
+
type: null;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
params: {
|
|
88
|
+
type: ObjectConstructor;
|
|
89
|
+
required: false;
|
|
90
|
+
};
|
|
91
|
+
data: {
|
|
92
|
+
type: ObjectConstructor;
|
|
93
|
+
required: false;
|
|
94
|
+
};
|
|
95
|
+
replaceFields: {
|
|
96
|
+
type: null;
|
|
97
|
+
required: false;
|
|
98
|
+
default: () => {
|
|
99
|
+
children: string;
|
|
100
|
+
label: string;
|
|
101
|
+
key: string;
|
|
102
|
+
value: string;
|
|
103
|
+
selectable: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
inputStyle: {
|
|
107
|
+
type: ObjectConstructor;
|
|
108
|
+
required: true;
|
|
109
|
+
};
|
|
110
|
+
formItemStyle: {
|
|
111
|
+
type: ObjectConstructor;
|
|
112
|
+
required: false;
|
|
113
|
+
};
|
|
114
|
+
labelCol: {
|
|
115
|
+
type: ObjectConstructor;
|
|
116
|
+
required: false;
|
|
117
|
+
default: () => {
|
|
118
|
+
span: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
wrapperCol: {
|
|
122
|
+
type: ObjectConstructor;
|
|
123
|
+
required: false;
|
|
124
|
+
default: () => {
|
|
125
|
+
span: number;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
isRequired: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
required: true;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
multiple: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
required: false;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
isTitle: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
required: false;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
placeholder: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
required: false;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
title: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
required: false;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
name: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
required: false;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
}>> & {
|
|
159
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
160
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
replaceFields: any;
|
|
163
|
+
labelCol: Record<string, any>;
|
|
164
|
+
wrapperCol: Record<string, any>;
|
|
165
|
+
multiple: boolean;
|
|
166
|
+
isTitle: boolean;
|
|
167
|
+
placeholder: string;
|
|
168
|
+
title: string;
|
|
169
|
+
name: string;
|
|
170
|
+
}>;
|
|
171
|
+
export default _default;
|
|
@@ -6,6 +6,7 @@ import IVPostDropdown from "./component/IVPostDropdown.vue";
|
|
|
6
6
|
import IVManagDropdown from "./component/IVManagDropdown.vue";
|
|
7
7
|
import IVRateDropdown from "./component/IVRateDropdown.vue";
|
|
8
8
|
import IVUnitDropdown from "./component/IVUnitDropdown.vue";
|
|
9
|
+
import IVMaterialTypeSelector from "./component/IVMaterialTypeSelector.vue";
|
|
9
10
|
import IVMaterialTypeDropdown from "./component/IVMaterialTypeDropdown.vue";
|
|
10
11
|
import IVProjectSelector from "./component/IVProjectSelector.vue";
|
|
11
12
|
import IVProduceProjectSelector from "./component/IVProduceProjectSelector.vue";
|
|
@@ -16,8 +17,9 @@ import IVFileUpload from "./component/IVFileUpload.vue";
|
|
|
16
17
|
import IVTimeSelector from "./component/IVTimeSelector.vue";
|
|
17
18
|
import IVClientSelector from "./component/IVClientSelector.vue";
|
|
18
19
|
import IVPaytypeSelector from "./component/IVPaytypeSelector.vue";
|
|
20
|
+
import IVAccessoryTypeSelector from "./component/IVAccessoryTypeSelector.vue";
|
|
19
21
|
import IVUserSelector from "./component/IVUserSelector.vue";
|
|
20
22
|
import IVVendorSelector from "./component/IVVendorSelector.vue";
|
|
21
23
|
import IVMaterialSelector from "./component/IVMaterialSelector.vue";
|
|
22
24
|
import IVContractSelector from "./component/IVContractSelector.vue";
|
|
23
|
-
export { IVOrgDropdown, IVProdBaseDropdown, IVLineDropdown, IVSetofbookDropdown, IVPostDropdown, IVManagDropdown, IVRateDropdown, IVUnitDropdown, IVMaterialTypeDropdown, IVProjectSelector, IVProduceProjectSelector, IVMainContractSelector, IVInnerContractSelector, IVOuterContractSelector, IVFileUpload, IVTimeSelector, IVClientSelector, IVPaytypeSelector, IVUserSelector, IVVendorSelector, IVMaterialSelector, IVContractSelector, };
|
|
25
|
+
export { IVOrgDropdown, IVProdBaseDropdown, IVLineDropdown, IVSetofbookDropdown, IVPostDropdown, IVManagDropdown, IVRateDropdown, IVUnitDropdown, IVMaterialTypeSelector, IVMaterialTypeDropdown, IVProjectSelector, IVProduceProjectSelector, IVMainContractSelector, IVInnerContractSelector, IVOuterContractSelector, IVFileUpload, IVTimeSelector, IVClientSelector, IVPaytypeSelector, IVUserSelector, IVVendorSelector, IVMaterialSelector, IVContractSelector, IVAccessoryTypeSelector, };
|