iv-npm 1.0.47 → 1.1.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.0.47",
3
+ "version": "1.1.0",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -24,3 +24,46 @@ app.use(ivUi)
24
24
 
25
25
 
26
26
 
27
+ ## 组织架构/部门下拉
28
+
29
+ - 组件API
30
+
31
+ ```js
32
+ {
33
+ method: "GET",
34
+ url:'/api/identity/users/allOrganizationByUser',
35
+ params:{type:1},
36
+ }
37
+ ```
38
+
39
+
40
+
41
+
42
+ - 示例
43
+
44
+ ```vue
45
+ <template>
46
+ <IVMrpOrgDropdown
47
+ v-model:value="Detail.organizationId"
48
+ :params="{type:1}"
49
+ :data="{name:123}"
50
+ :replaceFields="{
51
+ children: "children",
52
+ label: "displayName",
53
+ key: "id",
54
+ value: "id",
55
+ }"
56
+ />
57
+ </template>
58
+ <script setup lang="ts">
59
+ import { IVMrpOrgDropdown } from "iv-npm/packages/ui";
60
+ </script>
61
+ ```
62
+
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 |
69
+