iv-npm 1.0.13 → 1.0.14
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/README.md +49 -3
- package/package.json +46 -46
- package/packages/shared/README.md +16 -0
- package/packages/shared/dist/types/index.d.ts +5 -4
- package/packages/shared/dist/types/index.js +0 -16
- package/packages/shared/dist/types/index.mjs +0 -9
- package/packages/shared/dist/utils/index.d.ts +8 -3
- package/packages/shared/package.json +22 -33
- package/packages/ui/README.md +26 -0
- package/packages/ui/dist/index.cjs.css +91 -83
- package/packages/ui/dist/index.cjs.js +96 -9
- package/packages/ui/dist/index.esm.css +91 -83
- package/packages/ui/dist/index.esm.js +96 -10
- package/packages/ui/package.json +55 -55
- package/pnpm-lock.yaml +5502 -5502
|
@@ -1,83 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
padding
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
body
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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,102 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
script.
|
|
80
|
-
|
|
79
|
+
script$1.__file = "src/function-ui/component/IVMrpModal.vue";
|
|
80
|
+
|
|
81
|
+
var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
|
|
82
|
+
"class": "text-[#0000006D] text-[14px]"
|
|
83
|
+
}, "所属组织", -1
|
|
84
|
+
/* HOISTED */
|
|
85
|
+
);
|
|
86
|
+
var script = /*#__PURE__*/defineComponent({
|
|
87
|
+
__name: 'IVMrpOrgDropdown',
|
|
88
|
+
props: {
|
|
89
|
+
data: {
|
|
90
|
+
type: Object,
|
|
91
|
+
required: true
|
|
92
|
+
},
|
|
93
|
+
value: {
|
|
94
|
+
type: null,
|
|
95
|
+
required: true
|
|
96
|
+
},
|
|
97
|
+
replaceFields: {
|
|
98
|
+
type: Object,
|
|
99
|
+
required: false
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
emits: ["update:value"],
|
|
103
|
+
setup: function setup(__props, _a) {
|
|
104
|
+
var _b;
|
|
105
|
+
|
|
106
|
+
var emit = _a.emit;
|
|
107
|
+
var props = __props;
|
|
108
|
+
var replaceFields = ref((_b = props.replaceFields) !== null && _b !== void 0 ? _b : {
|
|
109
|
+
children: "children",
|
|
110
|
+
label: "displayName",
|
|
111
|
+
key: "id",
|
|
112
|
+
value: "id"
|
|
113
|
+
}); // const dataV = tranListToTreeData(props.data:types);
|
|
114
|
+
|
|
115
|
+
var inputV = computed({
|
|
116
|
+
get: function get() {
|
|
117
|
+
return props.value;
|
|
118
|
+
},
|
|
119
|
+
set: function set(value) {
|
|
120
|
+
emit("update:value", value);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
return function (_ctx, _cache) {
|
|
124
|
+
var _component_a_tree_select = resolveComponent("a-tree-select");
|
|
125
|
+
|
|
126
|
+
var _component_a_form_item = resolveComponent("a-form-item");
|
|
127
|
+
|
|
128
|
+
return openBlock(), createBlock(_component_a_form_item, {
|
|
129
|
+
name: "organizationId",
|
|
130
|
+
rules: [{
|
|
131
|
+
required: true,
|
|
132
|
+
message: '请选择所属组织'
|
|
133
|
+
}]
|
|
134
|
+
}, {
|
|
135
|
+
label: withCtx(function () {
|
|
136
|
+
return [_hoisted_1];
|
|
137
|
+
}),
|
|
138
|
+
"default": withCtx(function () {
|
|
139
|
+
return [createVNode(_component_a_tree_select, {
|
|
140
|
+
value: unref(inputV),
|
|
141
|
+
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
142
|
+
return isRef(inputV) ? inputV.value = $event : null;
|
|
143
|
+
}),
|
|
144
|
+
"tree-data": __props.data,
|
|
145
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
146
|
+
return triggerNode.parentNode;
|
|
147
|
+
},
|
|
148
|
+
placeholder: "请选择",
|
|
149
|
+
showArrow: "",
|
|
150
|
+
treeDefaultExpandAll: "",
|
|
151
|
+
style: {
|
|
152
|
+
"width": "300px"
|
|
153
|
+
},
|
|
154
|
+
replaceFields: replaceFields.value
|
|
155
|
+
}, null, 8
|
|
156
|
+
/* PROPS */
|
|
157
|
+
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
158
|
+
}),
|
|
159
|
+
_: 1
|
|
160
|
+
/* STABLE */
|
|
161
|
+
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
script.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
|
|
81
168
|
|
|
82
169
|
/*
|
|
83
170
|
* @Author: Mr.Cong Wei
|
|
84
171
|
* @Date: 2022-08-08 18:47:06
|
|
85
|
-
* @LastEditTime: 2022-08-09 11:
|
|
172
|
+
* @LastEditTime: 2022-08-09 14:11:28
|
|
86
173
|
*/
|
|
87
|
-
|
|
88
|
-
var components = [script];
|
|
174
|
+
var components = [script$1, script];
|
|
89
175
|
installComponents(); // 单独引用
|
|
90
176
|
|
|
91
177
|
function installComponents() {
|
|
@@ -107,4 +193,4 @@ var cAll = {
|
|
|
107
193
|
install: install
|
|
108
194
|
};
|
|
109
195
|
|
|
110
|
-
export { script as IVMrpModal, cAll as default };
|
|
196
|
+
export { script$1 as IVMrpModal, script as IVMrpOrgDropdown, cAll as default };
|
package/packages/ui/package.json
CHANGED
|
@@ -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
|
+
}
|