iv-npm 1.0.13 → 1.0.16

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.
@@ -1,83 +1,91 @@
1
- @charset "UTF-8";
2
- /* 模态框 */
3
- body .detail-class[data-v-3e4642c0] {
4
- top: -50px;
5
- }
6
-
7
- /* body .ant-modal{
8
- width: 84vw!important;
9
- height: 80vh!important;
10
- } */
11
- body .module-class .ant-modal-header[data-v-3e4642c0] {
12
- padding: 0;
13
- }
14
-
15
- body .module-class .ant-modal-body[data-v-3e4642c0] {
16
- position: relative;
17
- padding: 100px 0 100px 100px;
18
- }
19
-
20
- body .detail-class .ant-modal-body[data-v-3e4642c0] {
21
- overflow: auto;
22
- padding: 0 0 30px 0;
23
- }
24
-
25
- body .module-class.not-padding .ant-modal-body[data-v-3e4642c0] {
26
- position: relative;
27
- padding: 0;
28
- }
29
-
30
- body .module-class.pwd .ant-modal-body[data-v-3e4642c0] {
31
- position: relative;
32
- padding: 100px 0;
33
- }
34
-
35
- .ant-scrolling-effect[data-v-3e4642c0] {
36
- width: 100% !important;
37
- }
38
-
39
- /* 组件模态框 */
40
- body .module-class.modal-components .ant-modal[data-v-3e4642c0] {
41
- top: 5%;
42
- left: 0px;
43
- margin-left: 5%;
44
- margin-right: 5%;
45
- height: 40%;
46
- width: auto !important;
47
- }
48
-
49
- body .module-class.modal-components .ant-modal .ant-modal-content[data-v-3e4642c0] {
50
- height: 100%;
51
- }
52
-
53
- body .module-class .ant-modal-content[data-v-3e4642c0] {
54
- box-sizing: border-box;
55
- border-radius: 10px;
56
- overflow: hidden;
57
- /* border: 5px solid #f1f1f1; */
58
- }
59
-
60
- body .module-class.modal-components .ant-modal .ant-modal-content .ant-modal-body[data-v-3e4642c0] {
61
- height: 100%;
62
- overflow-y: auto;
63
- }
64
-
65
- body .module-class.modal-components .ant-modal .ant-modal-content .ant-modal-body[data-v-3e4642c0]::-webkit-scrollbar {
66
- width: 15px;
67
- height: 20px;
68
- }
69
-
70
- body .module-class.modal-components .ant-modal .ant-modal-content .ant-modal-body[data-v-3e4642c0]::-webkit-scrollbar-track {
71
- border-radius: 100vh;
72
- background: #f7f4ed;
73
- }
74
-
75
- body .module-class.modal-components .ant-modal .ant-modal-content .ant-modal-body[data-v-3e4642c0]::-webkit-scrollbar-thumb {
76
- background: #e0cbcb;
77
- border-radius: 100vh;
78
- border: 3px solid #f6f7ed;
79
- }
80
-
81
- body .module-class.modal-components .ant-modal .ant-modal-content .ant-modal-body[data-v-3e4642c0]::-webkit-scrollbar-thumb:hover {
82
- background: #c0a0b9;
83
- }
1
+ /* 模态框 */
2
+ body .detail-class {
3
+ top: -50px;
4
+ }
5
+ /* body .ant-modal{
6
+ width: 84vw!important;
7
+ height: 80vh!important;
8
+ } */
9
+ body .module-class .ant-modal-header {
10
+ padding: 0;
11
+ }
12
+ body .module-class .ant-modal-body {
13
+ position: relative;
14
+ padding: 100px 0 100px 100px;
15
+ }
16
+
17
+ body .detail-class .ant-modal-body {
18
+ overflow: auto;
19
+ padding: 0 0 30px 0;
20
+ }
21
+
22
+ body .module-class.not-padding .ant-modal-body {
23
+ position: relative;
24
+ padding: 0;
25
+ }
26
+ body .module-class.pwd .ant-modal-body {
27
+ position: relative;
28
+ padding: 100px 0;
29
+ }
30
+
31
+ .ant-scrolling-effect {
32
+ width: 100% !important;
33
+ }
34
+ /* 组件模态框 */
35
+ body .module-class.modal-components .ant-modal {
36
+ top: 5%;
37
+ left: 0px;
38
+ margin-left: 5%;
39
+ margin-right: 5%;
40
+ height: 40%;
41
+ width: auto !important;
42
+ }
43
+ body .module-class.modal-components .ant-modal .ant-modal-content {
44
+ height: 100%;
45
+ }
46
+ body .module-class .ant-modal-content {
47
+ box-sizing: border-box;
48
+ border-radius: 10px;
49
+ overflow: hidden;
50
+ /* border: 5px solid #f1f1f1; */
51
+ }
52
+ body
53
+ .module-class.modal-components
54
+ .ant-modal
55
+ .ant-modal-content
56
+ .ant-modal-body {
57
+ height: 100%;
58
+ overflow-y: auto;
59
+ }
60
+ body
61
+ .module-class.modal-components
62
+ .ant-modal
63
+ .ant-modal-content
64
+ .ant-modal-body::-webkit-scrollbar {
65
+ width: 15px;
66
+ height: 20px;
67
+ }
68
+ body
69
+ .module-class.modal-components
70
+ .ant-modal
71
+ .ant-modal-content
72
+ .ant-modal-body::-webkit-scrollbar-track {
73
+ border-radius: 100vh;
74
+ background: #f7f4ed;
75
+ }
76
+ body
77
+ .module-class.modal-components
78
+ .ant-modal
79
+ .ant-modal-content
80
+ .ant-modal-body::-webkit-scrollbar-thumb {
81
+ background: #e0cbcb;
82
+ border-radius: 100vh;
83
+ border: 3px solid #f6f7ed;
84
+ }
85
+ body
86
+ .module-class.modal-components
87
+ .ant-modal
88
+ .ant-modal-content
89
+ .ant-modal-body::-webkit-scrollbar-thumb:hover {
90
+ background: #c0a0b9;
91
+ }
@@ -1,6 +1,6 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode } from 'vue';
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, computed, unref, isRef, createElementVNode } from 'vue';
2
2
 
3
- var _hoisted_1 = /*#__PURE__*/createTextVNode("npm包");
3
+ var _hoisted_1$1 = /*#__PURE__*/createTextVNode("npm包");
4
4
  /**
5
5
  * show:Boolean 是否显示弹窗 v-model:show="Visible"
6
6
  *
@@ -15,7 +15,7 @@ var _hoisted_1 = /*#__PURE__*/createTextVNode("npm包");
15
15
  *
16
16
  * */
17
17
 
18
- var script = /*#__PURE__*/defineComponent({
18
+ var script$1 = /*#__PURE__*/defineComponent({
19
19
  __name: 'IVMrpModal',
20
20
  props: {
21
21
  show: {
@@ -55,7 +55,7 @@ var script = /*#__PURE__*/defineComponent({
55
55
  }, {
56
56
  title: withCtx(function () {
57
57
  return [renderSlot(_ctx.$slots, "title", {}, function () {
58
- return [_hoisted_1];
58
+ return [_hoisted_1$1];
59
59
  })];
60
60
  }),
61
61
  closeIcon: withCtx(function () {
@@ -76,16 +76,130 @@ var script = /*#__PURE__*/defineComponent({
76
76
  }
77
77
  });
78
78
 
79
- script.__scopeId = "data-v-3e4642c0";
80
- script.__file = "src/function-ui/component/IVMrpModal.vue";
79
+ script$1.__file = "src/function-ui/component/IVMrpModal.vue";
80
+
81
+ // utils/arr/tree.ts
82
+
83
+ function _loadChildren(obj, list) {
84
+ var arr = list.filter(function (x) {
85
+ return x.parentId == obj.id;
86
+ });
87
+ if (!arr.length) return;
88
+ obj.children = arr;
89
+ obj.children.forEach(function (x) {
90
+ _loadChildren(x, list);
91
+ });
92
+ return obj;
93
+ }
94
+
95
+ function tranListToTreeData(list) {
96
+ var results = list.filter(function (x) {
97
+ return x.parentId == null;
98
+ });
99
+ results.forEach(function (x) {
100
+ return _loadChildren(x, list);
101
+ });
102
+ return results;
103
+ }
104
+
105
+ var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
106
+ "class": "text-[#0000006D] text-[14px]"
107
+ }, "所属组织", -1
108
+ /* HOISTED */
109
+ );
110
+ var script = /*#__PURE__*/defineComponent({
111
+ __name: 'IVMrpOrgDropdown',
112
+ props: {
113
+ data: {
114
+ type: Array,
115
+ required: true
116
+ },
117
+ value: {
118
+ type: null,
119
+ required: true
120
+ },
121
+ replaceFields: {
122
+ type: Object,
123
+ required: false
124
+ }
125
+ },
126
+ emits: ["update:value"],
127
+ setup: function setup(__props, _a) {
128
+ var _b;
129
+
130
+ var emit = _a.emit;
131
+ var props = __props;
132
+ var replaceFields = ref((_b = props.replaceFields) !== null && _b !== void 0 ? _b : {
133
+ children: "children",
134
+ label: "displayName",
135
+ key: "id",
136
+ value: "id"
137
+ });
138
+ var dataV = computed(function () {
139
+ console.log(props.data, "npm-------------------------------props.data,");
140
+ console.log(dataV, "npm-------------------------------dataV");
141
+ return tranListToTreeData(props.data);
142
+ });
143
+ var inputV = computed({
144
+ get: function get() {
145
+ return props.value;
146
+ },
147
+ set: function set(value) {
148
+ emit("update:value", value);
149
+ }
150
+ });
151
+ return function (_ctx, _cache) {
152
+ var _component_a_tree_select = resolveComponent("a-tree-select");
153
+
154
+ var _component_a_form_item = resolveComponent("a-form-item");
155
+
156
+ return openBlock(), createBlock(_component_a_form_item, {
157
+ name: "organizationId",
158
+ rules: [{
159
+ required: true,
160
+ message: '请选择所属组织'
161
+ }]
162
+ }, {
163
+ label: withCtx(function () {
164
+ return [_hoisted_1];
165
+ }),
166
+ "default": withCtx(function () {
167
+ return [createVNode(_component_a_tree_select, {
168
+ value: unref(inputV),
169
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
170
+ return isRef(inputV) ? inputV.value = $event : null;
171
+ }),
172
+ "tree-data": unref(dataV),
173
+ getPopupContainer: function getPopupContainer(triggerNode) {
174
+ return triggerNode.parentNode;
175
+ },
176
+ placeholder: "请选择",
177
+ showArrow: "",
178
+ treeDefaultExpandAll: "",
179
+ style: {
180
+ "width": "300px"
181
+ },
182
+ replaceFields: replaceFields.value
183
+ }, null, 8
184
+ /* PROPS */
185
+ , ["value", "tree-data", "getPopupContainer", "replaceFields"])];
186
+ }),
187
+ _: 1
188
+ /* STABLE */
189
+
190
+ });
191
+ };
192
+ }
193
+ });
194
+
195
+ script.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
81
196
 
82
197
  /*
83
198
  * @Author: Mr.Cong Wei
84
199
  * @Date: 2022-08-08 18:47:06
85
- * @LastEditTime: 2022-08-09 11:16:28
200
+ * @LastEditTime: 2022-08-09 14:11:28
86
201
  */
87
-
88
- var components = [script];
202
+ var components = [script$1, script];
89
203
  installComponents(); // 单独引用
90
204
 
91
205
  function installComponents() {
@@ -107,4 +221,4 @@ var cAll = {
107
221
  install: install
108
222
  };
109
223
 
110
- export { script as IVMrpModal, cAll as default };
224
+ export { script$1 as IVMrpModal, script as IVMrpOrgDropdown, cAll as default };
@@ -1,55 +1,55 @@
1
- {
2
- "name": "@IVNPM/ui",
3
- "version": "1.0.0",
4
- "description": "IVNPM/ui",
5
- "scripts": {
6
- "start": "npm run dev",
7
- "dev": "rollup --config rollup.config.js --watch",
8
- "build": "rollup --config rollup.config.js",
9
- "prepare": "npm run build"
10
- },
11
- "main": "dist/index.esm.js",
12
- "module": "dist/index.esm.js",
13
- "files": [
14
- "index.js",
15
- "dist"
16
- ],
17
- "publishConfig": {
18
- "access": "public",
19
- "registry": "https://registry.npmjs.org/"
20
- },
21
- "peerDependencies": {
22
- "ant-design-vue": "^3.2.5",
23
- "typescript": "^4.7.4",
24
- "vue": "^3.2.25"
25
- },
26
- "devDependencies": {
27
- "@IVNPM/shared": "workspace:*",
28
- "@babel/core": "^7.18.10",
29
- "@babel/node": "^7.18.10",
30
- "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
31
- "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
32
- "@babel/plugin-transform-runtime": "^7.18.10",
33
- "@babel/preset-env": "^7.18.10",
34
- "@babel/runtime": "^7.18.9",
35
- "@rollup/plugin-babel": "^5.3.1",
36
- "@rollup/plugin-commonjs": "^22.0.2",
37
- "@rollup/plugin-node-resolve": "^13.3.0",
38
- "@types/node": "^18.6.4",
39
- "@vue/compiler-sfc": "^3.2.37",
40
- "ant-design-vue": "^3.2.11",
41
- "node-sass": "^7.0.1",
42
- "postcss": "^8.4.16",
43
- "rollup": "^2.77.2",
44
- "rollup-plugin-postcss": "^4.0.2",
45
- "rollup-plugin-typescript2": "^0.32.1",
46
- "rollup-plugin-vue": "^6.0.0",
47
- "sass": "^1.54.3",
48
- "tslib": "^2.4.0",
49
- "typescript": "^4.7.4",
50
- "vue": "^3.2.37"
51
- },
52
- "keywords": [],
53
- "author": "",
54
- "license": "ISC"
55
- }
1
+ {
2
+ "name": "@IVNPM/ui",
3
+ "version": "1.0.0",
4
+ "description": "IVNPM/ui",
5
+ "scripts": {
6
+ "start": "npm run dev",
7
+ "dev": "rollup --config rollup.config.js --watch",
8
+ "build": "rollup --config rollup.config.js",
9
+ "prepare": "npm run build"
10
+ },
11
+ "main": "dist/index.esm.js",
12
+ "module": "dist/index.esm.js",
13
+ "files": [
14
+ "index.js",
15
+ "dist"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "registry": "https://registry.npmjs.org/"
20
+ },
21
+ "peerDependencies": {
22
+ "ant-design-vue": "^3.2.5",
23
+ "typescript": "^4.7.4",
24
+ "vue": "^3.2.25"
25
+ },
26
+ "devDependencies": {
27
+ "@IVNPM/shared": "workspace:*",
28
+ "@babel/core": "^7.18.10",
29
+ "@babel/node": "^7.18.10",
30
+ "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
31
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
32
+ "@babel/plugin-transform-runtime": "^7.18.10",
33
+ "@babel/preset-env": "^7.18.10",
34
+ "@babel/runtime": "^7.18.9",
35
+ "@rollup/plugin-babel": "^5.3.1",
36
+ "@rollup/plugin-commonjs": "^22.0.2",
37
+ "@rollup/plugin-node-resolve": "^13.3.0",
38
+ "@types/node": "^18.6.4",
39
+ "@vue/compiler-sfc": "^3.2.37",
40
+ "ant-design-vue": "^3.2.11",
41
+ "node-sass": "^7.0.1",
42
+ "postcss": "^8.4.16",
43
+ "rollup": "^2.77.2",
44
+ "rollup-plugin-postcss": "^4.0.2",
45
+ "rollup-plugin-typescript2": "^0.32.1",
46
+ "rollup-plugin-vue": "^6.0.0",
47
+ "sass": "^1.54.3",
48
+ "tslib": "^2.4.0",
49
+ "typescript": "^4.7.4",
50
+ "vue": "^3.2.37"
51
+ },
52
+ "keywords": [],
53
+ "author": "",
54
+ "license": "ISC"
55
+ }