iv-npm 1.1.51 → 1.1.52

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.
Files changed (33) hide show
  1. package/README.md +9 -9
  2. package/package.json +1 -1
  3. package/packages/shared/package.json +25 -25
  4. package/packages/ui/README.md +47 -82
  5. package/packages/ui/dist/api/api.config.d.ts +17 -12
  6. package/packages/ui/dist/business-ui/component/IVInnerContractSelector.d.ts +155 -0
  7. package/packages/ui/dist/business-ui/component/IVLineDropdown.d.ts +155 -0
  8. package/packages/ui/dist/business-ui/component/IVManagDropdown.d.ts +141 -0
  9. package/packages/ui/dist/business-ui/component/IVMaterialSelector.d.ts +20 -0
  10. package/packages/ui/dist/business-ui/component/IVMaterialTypeDropdown.d.ts +158 -0
  11. package/packages/ui/dist/business-ui/component/IVOrgDropdown.d.ts +152 -0
  12. package/packages/ui/dist/business-ui/component/IVPostDropdown.d.ts +148 -0
  13. package/packages/ui/dist/business-ui/component/IVProdBaseDropdown.d.ts +154 -0
  14. package/packages/ui/dist/business-ui/component/IVRateDropdown.d.ts +46 -0
  15. package/packages/ui/dist/business-ui/component/IVSetofbookDropdown.d.ts +158 -0
  16. package/packages/ui/dist/business-ui/component/IVUnitDropdown.d.ts +64 -0
  17. package/packages/ui/dist/business-ui/component/IVUserSelector.d.ts +20 -0
  18. package/packages/ui/dist/business-ui/component/IVVendorSelector.d.ts +20 -0
  19. package/packages/ui/dist/business-ui/index.d.ts +14 -13
  20. package/packages/ui/dist/function-ui/component/IVModal.d.ts +41 -0
  21. package/packages/ui/dist/function-ui/component/IVTable.d.ts +79 -0
  22. package/packages/ui/dist/function-ui/component/IVTableControl.d.ts +17 -0
  23. package/packages/ui/dist/function-ui/index.d.ts +4 -4
  24. package/packages/ui/dist/index.cjs.css +1 -1
  25. package/packages/ui/dist/index.cjs.js +372 -134
  26. package/packages/ui/dist/index.d.ts +3 -3
  27. package/packages/ui/dist/index.esm.css +1 -1
  28. package/packages/ui/dist/index.esm.js +357 -120
  29. package/packages/ui/dist/index.umd.css +1 -1
  30. package/packages/ui/dist/index.umd.js +372 -134
  31. package/packages/ui/dist/index.umd.js.map +1 -1
  32. package/packages/ui/package.json +60 -60
  33. package/pnpm-lock.yaml +9 -19
package/README.md CHANGED
@@ -3,10 +3,12 @@
3
3
  * @Date: 2022-08-09 13:41:52
4
4
  * @LastEditTime: 2022-08-09 14:14:15
5
5
  -->
6
+
6
7
  # iv-npm
7
8
 
8
- 使用pnpm+workspace+turborepo实现的monorepo管理方式的公共npm包
9
- 项目使用pnpm作为包管理工具。请自行全局下载。
9
+ 使用 pnpm+workspace+turborepo 实现的 monorepo 管理方式的公共 npm
10
+ 项目使用 pnpm 作为包管理工具。请自行全局下载。
11
+
10
12
  ## 安装依赖
11
13
 
12
14
  > cd packages\shared
@@ -18,7 +20,7 @@
18
20
 
19
21
  ## 发布
20
22
 
21
- 在登陆过npm情况下,发布需要修改**根下version**,并关闭所有的private属性。
23
+ 在登陆过 npm 情况下,发布需要修改**根下 version**,并关闭所有的 private 属性。
22
24
 
23
25
  > npm publish
24
26
 
@@ -29,24 +31,22 @@
29
31
  ```ts
30
32
  // main.ts
31
33
  import ivUi from "iv-npm/packages/ui";
32
- app.use(ivUi)
34
+ app.use(ivUi);
33
35
  ```
34
36
 
35
37
  ```vue
36
38
  // UI组件使用方法
37
39
  <template>
38
- <IVMrpModal v-model:show="Visible"></IVMrpModal>
40
+ <IVModal v-model:show="Visible"></IVModal>
39
41
  </template>
40
42
  <script setup lang="ts">
41
- import { IVMrpModal } from "iv-npm/packages/ui";
43
+ import { IVModal } from "iv-npm/packages/ui";
42
44
  </script>
43
45
  ```
44
46
 
45
47
  ```vue
46
48
  // 工具函数使用方法
47
49
  <script setup lang="ts">
48
- import { findTree } from "iv-npm/packages/shared/utils";
50
+ import { findTree } from "iv-npm/packages/shared/utils";
49
51
  </script>
50
-
51
52
  ```
52
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -1,25 +1,25 @@
1
- {
2
- "name": "@IVNPM/shared",
3
- "version": "1.0.0",
4
- "description": "IVNPM/shared",
5
- "scripts": {
6
- "prepare": "npm run build",
7
- "dev": "tsup --watch",
8
- "build": "tsup"
9
- },
10
- "main": "dist/utils/index.mjs",
11
- "module": "dist/utils/index.mjs",
12
- "types": "dist/utils/index.d.ts",
13
- "files": [
14
- "index.js",
15
- "dist"
16
- ],
17
- "author": "Mr.Cong",
18
- "license": "ISC",
19
- "devDependencies": {
20
- "tsup": "^6.2.1"
21
- },
22
- "peerDependencies": {
23
- "ant-design-vue": "^3.2.5"
24
- }
25
- }
1
+ {
2
+ "name": "@IVNPM/shared",
3
+ "version": "1.0.0",
4
+ "description": "IVNPM/shared",
5
+ "scripts": {
6
+ "prepare": "npm run build",
7
+ "dev": "tsup --watch",
8
+ "build": "tsup"
9
+ },
10
+ "main": "dist/utils/index.mjs",
11
+ "module": "dist/utils/index.mjs",
12
+ "types": "dist/utils/index.d.ts",
13
+ "files": [
14
+ "index.js",
15
+ "dist"
16
+ ],
17
+ "author": "Mr.Cong",
18
+ "license": "ISC",
19
+ "devDependencies": {
20
+ "tsup": "^6.2.1"
21
+ },
22
+ "peerDependencies": {
23
+ "ant-design-vue": "^3.2.5"
24
+ }
25
+ }
@@ -1,6 +1,6 @@
1
1
  # @IVNPM/ui
2
2
 
3
- ui工具包
3
+ ui 工具包
4
4
 
5
5
  ## 快速开始
6
6
 
@@ -9,26 +9,24 @@ ui工具包
9
9
  ```ts
10
10
  // main.ts
11
11
  import ivUi from "iv-npm/packages/ui";
12
- app.use(ivUi)
12
+ app.use(ivUi);
13
13
  ```
14
14
 
15
15
  ```vue
16
16
  // UI组件使用方法
17
17
  <template>
18
- <IVMrpModal v-model:show="Visible"></IVMrpModal>
18
+ <IVModal v-model:show="Visible"></IVModal>
19
19
  </template>
20
20
  <script setup lang="ts">
21
- import { IVMrpModal } from "iv-npm/packages/ui";
21
+ import { IVModal } from "iv-npm/packages/ui";
22
22
  </script>
23
23
  ```
24
24
 
25
-
26
-
27
25
  ## 组织架构/部门下拉
28
26
 
29
- > <IVMrpOrgDropdown />
27
+ > <IVOrgDropdown />
30
28
 
31
- - 组件API
29
+ - 组件 API
32
30
 
33
31
  ```js
34
32
  {
@@ -40,49 +38,40 @@ app.use(ivUi)
40
38
 
41
39
 
42
40
 
43
-
44
41
  - 示例
45
42
 
46
43
  ```vue
47
44
  <template>
48
- <IVMrpOrgDropdown
49
- v-model:value="Detail.organizationId"
50
- :params="{type:1}"
51
- :data="{name:123}"
52
- :replaceFields="{
53
- children: "children",
54
- label: "displayName",
55
- key: "id",
56
- value: "id",
57
- }"
58
- />
45
+ <IVOrgDropdown v-model:value="Detail.organizationId" :params="{type:1}"
46
+ :data="{name:123}" :replaceFields="{ children: "children", label:
47
+ "displayName", key: "id", value: "id", }" />
59
48
  </template>
60
49
  <script setup lang="ts">
61
- import { IVMrpOrgDropdown } from "iv-npm/packages/ui";
50
+ import { IVOrgDropdown } from "iv-npm/packages/ui";
62
51
  </script>
63
52
  ```
64
53
 
65
- | props | describe | type |
66
- | ------------- | ---------------------- | ---------------- |
67
- | v-model:value | 绑定值 | any |
68
- | params | GET请求参数(响应式,值改变会触发接口) | object |
69
- | data | POST请求参数(响应式,值改变会触发接口) | object |
70
- | fieldNames | 指定value,label字段名 | FieldNames,存在默认值 |
71
- | inputStyle | input样式 | object |
72
- | formItemStyle | 表单formItem的样式 | object |
73
- | labelCol | 表单formItem的labelCol | object |
74
- | wrapperCol | 表单formItem的wrapperCol | object |
75
- | isRequired | 是否必填 | boolean |
76
- | multiple | 是否多选 | boolean |
77
- | isTitle | 是否显示标题 | boolean |
78
- | placeholder | 预览文字 | string |
79
- | title | 标题 | string |
54
+ | props | describe | type |
55
+ | ------------- | --------------------------------------- | --------------------- |
56
+ | v-model:value | 绑定值 | any |
57
+ | params | GET 请求参数(响应式,值改变会触发接口) | object |
58
+ | data | POST 请求参数(响应式,值改变会触发接口) | object |
59
+ | fieldNames | 指定 value,label 字段名 | FieldNames,存在默认值 |
60
+ | inputStyle | input 样式 | object |
61
+ | formItemStyle | 表单 formItem 的样式 | object |
62
+ | labelCol | 表单 formItem labelCol | object |
63
+ | wrapperCol | 表单 formItem wrapperCol | object |
64
+ | isRequired | 是否必填 | boolean |
65
+ | multiple | 是否多选 | boolean |
66
+ | isTitle | 是否显示标题 | boolean |
67
+ | placeholder | 预览文字 | string |
68
+ | title | 标题 | string |
80
69
 
81
70
  ## 生产基地下拉
82
71
 
83
- > <IVMrpProdBaseDropdown/>
72
+ > <IVProdBaseDropdown/>
84
73
 
85
- - 组件API
74
+ - 组件 API
86
75
 
87
76
  ```js
88
77
  {
@@ -93,35 +82,27 @@ app.use(ivUi)
93
82
 
94
83
 
95
84
 
96
-
97
85
  - 示例
98
86
 
99
87
  ```vue
100
88
  <template>
101
- <IVMrpProdBaseDropdown
102
- v-model:value="Detail.organizationIds"
103
- :params="{type:1}"
104
- :data="{name:123}"
105
- :fieldNames="{
106
- label: "displayName",
107
- value: "id",
108
- }"
109
- />
89
+ <IVProdBaseDropdown v-model:value="Detail.organizationIds" :params="{type:1}"
90
+ :data="{name:123}" :fieldNames="{ label: "displayName", value: "id", }" />
110
91
  </template>
111
92
  <script setup lang="ts">
112
- import { IVMrpProdBaseDropdown } from "iv-npm/packages/ui";
93
+ import { IVProdBaseDropdown } from "iv-npm/packages/ui";
113
94
  </script>
114
95
  ```
115
96
 
116
- | props |
117
- | --------- |
97
+ | props |
98
+ | ----------------- |
118
99
  | 组织架构/部门下拉 |
119
100
 
120
101
  ## 条线下拉
121
102
 
122
- > <IVMrpLineDropdown/>
103
+ > <IVLineDropdown/>
123
104
 
124
- - 组件API
105
+ - 组件 API
125
106
 
126
107
  ```js
127
108
  {
@@ -132,35 +113,27 @@ app.use(ivUi)
132
113
 
133
114
 
134
115
 
135
-
136
116
  - 示例
137
117
 
138
118
  ```vue
139
119
  <template>
140
- <IVMrpLineDropdown
141
- v-model:value="Detail.lineIds"
142
- :params="{type:1}"
143
- :data="{name:123}"
144
- :fieldNames="{
145
- label: "displayName",
146
- value: "id",
147
- }"
148
- />
120
+ <IVLineDropdown v-model:value="Detail.lineIds" :params="{type:1}"
121
+ :data="{name:123}" :fieldNames="{ label: "displayName", value: "id", }" />
149
122
  </template>
150
123
  <script setup lang="ts">
151
- import { IVMrpLineDropdown } from "iv-npm/packages/ui";
124
+ import { IVLineDropdown } from "iv-npm/packages/ui";
152
125
  </script>
153
126
  ```
154
127
 
155
- | props |
156
- | --------- |
128
+ | props |
129
+ | ----------------- |
157
130
  | 组织架构/部门下拉 |
158
131
 
159
132
  ## 账套下拉
160
133
 
161
- > <IVMrpSetofbookDropdown/>
134
+ > <IVSetofbookDropdown/>
162
135
 
163
- - 组件API
136
+ - 组件 API
164
137
 
165
138
  ```js
166
139
  {
@@ -171,26 +144,18 @@ app.use(ivUi)
171
144
 
172
145
 
173
146
 
174
-
175
147
  - 示例
176
148
 
177
149
  ```vue
178
150
  <template>
179
- <IVMrpSetofbookDropdown
180
- v-model:value="Detail.lineIds"
181
- :params="{type:1}"
182
- :data="{name:123}"
183
- :fieldNames="{
184
- label: "displayName",
185
- value: "id",
186
- }"
187
- />
151
+ <IVSetofbookDropdown v-model:value="Detail.lineIds" :params="{type:1}"
152
+ :data="{name:123}" :fieldNames="{ label: "displayName", value: "id", }" />
188
153
  </template>
189
154
  <script setup lang="ts">
190
- import { IVMrpSetofbookDropdown } from "iv-npm/packages/ui";
155
+ import { IVSetofbookDropdown } from "iv-npm/packages/ui";
191
156
  </script>
192
157
  ```
193
158
 
194
- | props |
195
- | --------- |
196
- | 组织架构/部门下拉 |
159
+ | props |
160
+ | ----------------- |
161
+ | 组织架构/部门下拉 |
@@ -1,60 +1,65 @@
1
1
  declare const API_OPTION: {
2
- getIVMrpOrgDropdown: {
2
+ getIVOrgDropdown: {
3
3
  url: string;
4
4
  option: any;
5
5
  baseUrl: string;
6
6
  };
7
- getIVMrpProdBaseDropdown: {
7
+ getIVProdBaseDropdown: {
8
8
  url: string;
9
9
  option: any;
10
10
  baseUrl: string;
11
11
  };
12
- getIVMrpLineDropdown: {
12
+ getIVLineDropdown: {
13
13
  url: string;
14
14
  option: any;
15
15
  baseUrl: string;
16
16
  };
17
- getIVMrpSetofbookDropdown: {
17
+ getIVSetofbookDropdown: {
18
18
  url: string;
19
19
  option: any;
20
20
  baseUrl: string;
21
21
  };
22
- getIVMrpPostDropdown: {
22
+ getIVPostDropdown: {
23
23
  url: string;
24
24
  option: any;
25
25
  baseUrl: string;
26
26
  };
27
- getIVMrpUserSelector: {
27
+ getIVUserSelector: {
28
28
  url: string;
29
29
  option: any;
30
30
  baseUrl: string;
31
31
  };
32
- getIVMrpVendorSelector: {
32
+ getIVVendorSelector: {
33
33
  url: string;
34
34
  option: any;
35
35
  baseUrl: string;
36
36
  };
37
- getIVMrpVendorSelector_VendorType: {
37
+ getIVVendorSelector_VendorType: {
38
38
  url: string;
39
39
  option: any;
40
40
  baseUrl: string;
41
41
  };
42
- getIVMrpManagDropdown: {
42
+ getIVManagDropdown: {
43
43
  url: string;
44
44
  option: any;
45
45
  baseUrl: string;
46
46
  };
47
- getIVMrpUnitDropdown: {
47
+ getIVUnitDropdown: {
48
48
  url: string;
49
49
  option: any;
50
50
  baseUrl: string;
51
51
  };
52
- getIVMrpMaterialSelector: {
52
+ getIVMaterialSelector: {
53
53
  url: string;
54
54
  option: any;
55
55
  baseUrl: string;
56
56
  };
57
- getIVMrpMaterialTypeDropdown: {
57
+ getIVMaterialTypeDropdown: {
58
+ url: string;
59
+ option: any;
60
+ baseUrl: string;
61
+ };
62
+ getIVInnerContractSelector: {
58
63
  url: string;
59
64
  option: any;
60
65
  baseUrl: string;
@@ -0,0 +1,155 @@
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
+ inputStyle: {
26
+ type: ObjectConstructor;
27
+ required: false;
28
+ default: () => {
29
+ width: string;
30
+ };
31
+ };
32
+ formItemStyle: {
33
+ type: ObjectConstructor;
34
+ required: false;
35
+ };
36
+ labelCol: {
37
+ type: ObjectConstructor;
38
+ required: false;
39
+ };
40
+ wrapperCol: {
41
+ type: ObjectConstructor;
42
+ required: false;
43
+ default: () => {
44
+ span: number;
45
+ };
46
+ };
47
+ multiple: {
48
+ type: BooleanConstructor;
49
+ required: false;
50
+ default: boolean;
51
+ };
52
+ isRequired: {
53
+ type: BooleanConstructor;
54
+ required: false;
55
+ default: boolean;
56
+ };
57
+ isTitle: {
58
+ type: BooleanConstructor;
59
+ required: false;
60
+ default: boolean;
61
+ };
62
+ placeholder: {
63
+ type: StringConstructor;
64
+ required: false;
65
+ default: string;
66
+ };
67
+ title: {
68
+ type: StringConstructor;
69
+ required: false;
70
+ default: string;
71
+ };
72
+ }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
73
+ [key: string]: any;
74
+ }>, 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<{
75
+ value: {
76
+ type: null;
77
+ required: true;
78
+ };
79
+ params: {
80
+ type: ObjectConstructor;
81
+ required: false;
82
+ };
83
+ data: {
84
+ type: ObjectConstructor;
85
+ required: false;
86
+ };
87
+ fieldNames: {
88
+ type: null;
89
+ required: false;
90
+ default: () => {
91
+ label: string;
92
+ value: string;
93
+ };
94
+ };
95
+ inputStyle: {
96
+ type: ObjectConstructor;
97
+ required: false;
98
+ default: () => {
99
+ width: string;
100
+ };
101
+ };
102
+ formItemStyle: {
103
+ type: ObjectConstructor;
104
+ required: false;
105
+ };
106
+ labelCol: {
107
+ type: ObjectConstructor;
108
+ required: false;
109
+ };
110
+ wrapperCol: {
111
+ type: ObjectConstructor;
112
+ required: false;
113
+ default: () => {
114
+ span: number;
115
+ };
116
+ };
117
+ multiple: {
118
+ type: BooleanConstructor;
119
+ required: false;
120
+ default: boolean;
121
+ };
122
+ isRequired: {
123
+ type: BooleanConstructor;
124
+ required: false;
125
+ default: boolean;
126
+ };
127
+ isTitle: {
128
+ type: BooleanConstructor;
129
+ required: false;
130
+ default: boolean;
131
+ };
132
+ placeholder: {
133
+ type: StringConstructor;
134
+ required: false;
135
+ default: string;
136
+ };
137
+ title: {
138
+ type: StringConstructor;
139
+ required: false;
140
+ default: string;
141
+ };
142
+ }>> & {
143
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
144
+ onChange?: ((...args: any[]) => any) | undefined;
145
+ }, {
146
+ fieldNames: any;
147
+ inputStyle: Record<string, any>;
148
+ wrapperCol: Record<string, any>;
149
+ multiple: boolean;
150
+ isRequired: boolean;
151
+ isTitle: boolean;
152
+ placeholder: string;
153
+ title: string;
154
+ }>;
155
+ export default _default;