iv-npm 1.0.2 → 1.0.5
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 +1 -1
- package/packages/shared/package.json +0 -6
- package/packages/ui/dist/index.cjs.js +29 -0
- package/packages/ui/dist/index.esm.js +29 -1
- package/packages/ui/package.json +3 -2
- package/packages/ui/dist/vue/index.cjs.css +0 -83
- package/packages/ui/dist/vue/index.cjs.js +0 -83
- package/packages/ui/dist/vue/index.esm.css +0 -83
- package/packages/ui/dist/vue/index.esm.js +0 -79
package/package.json
CHANGED
|
@@ -23,12 +23,6 @@
|
|
|
23
23
|
"./utils": {
|
|
24
24
|
"import": "./dist/utils/index.mjs",
|
|
25
25
|
"require": "./dist/utils/index.js"
|
|
26
|
-
},
|
|
27
|
-
"./configs/*.json": "./configs/*.json",
|
|
28
|
-
"./configs/*": {
|
|
29
|
-
"require": "./dist/configs/*.js",
|
|
30
|
-
"import": "./dist/configs/*.mjs",
|
|
31
|
-
"types": "./dist/configs/*.d.ts"
|
|
32
26
|
}
|
|
33
27
|
},
|
|
34
28
|
"author": "Mr.Cong",
|
|
@@ -80,4 +80,33 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
80
80
|
script.__scopeId = "data-v-78262b33";
|
|
81
81
|
script.__file = "src/function-ui/component/MrpModal.vue";
|
|
82
82
|
|
|
83
|
+
/*
|
|
84
|
+
* @Author: Mr.Cong Wei
|
|
85
|
+
* @Date: 2022-08-08 18:47:06
|
|
86
|
+
* @LastEditTime: 2022-08-09 10:49:47
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
var components = [script];
|
|
90
|
+
installComponents(); // 单独引用
|
|
91
|
+
|
|
92
|
+
function installComponents() {
|
|
93
|
+
components.forEach(function (component) {
|
|
94
|
+
component.install = function (app) {
|
|
95
|
+
app.component(component.name, component);
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
} // 全局引用
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
var install = function install(app) {
|
|
102
|
+
components.forEach(function (component) {
|
|
103
|
+
app.component(component.name, component);
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
var cAll = {
|
|
108
|
+
install: install
|
|
109
|
+
};
|
|
110
|
+
|
|
83
111
|
exports.MrpModal = script;
|
|
112
|
+
exports["default"] = cAll;
|
|
@@ -76,4 +76,32 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
76
76
|
script.__scopeId = "data-v-78262b33";
|
|
77
77
|
script.__file = "src/function-ui/component/MrpModal.vue";
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
/*
|
|
80
|
+
* @Author: Mr.Cong Wei
|
|
81
|
+
* @Date: 2022-08-08 18:47:06
|
|
82
|
+
* @LastEditTime: 2022-08-09 10:49:47
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
var components = [script];
|
|
86
|
+
installComponents(); // 单独引用
|
|
87
|
+
|
|
88
|
+
function installComponents() {
|
|
89
|
+
components.forEach(function (component) {
|
|
90
|
+
component.install = function (app) {
|
|
91
|
+
app.component(component.name, component);
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
} // 全局引用
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
var install = function install(app) {
|
|
98
|
+
components.forEach(function (component) {
|
|
99
|
+
app.component(component.name, component);
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
var cAll = {
|
|
104
|
+
install: install
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export { script as MrpModal, cAll as default };
|
package/packages/ui/package.json
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"build": "rollup --config rollup.config.js",
|
|
9
9
|
"prepare": "npm run build"
|
|
10
10
|
},
|
|
11
|
-
"main": "index.js",
|
|
11
|
+
"main": "dist/index.esm.js",
|
|
12
|
+
"module": "dist/index.esm.js",
|
|
12
13
|
"files": [
|
|
13
14
|
"index.js",
|
|
14
15
|
"dist"
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"registry": "https://registry.npmjs.org/"
|
|
19
20
|
},
|
|
20
21
|
"browser": {
|
|
21
|
-
"./vue": "
|
|
22
|
+
"./vue": "dist/index.esm.js"
|
|
22
23
|
},
|
|
23
24
|
"exports": {
|
|
24
25
|
"./vue": {
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
/* 模态框 */
|
|
3
|
-
body .detail-class[data-v-443feb02] {
|
|
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-443feb02] {
|
|
12
|
-
padding: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
body .module-class .ant-modal-body[data-v-443feb02] {
|
|
16
|
-
position: relative;
|
|
17
|
-
padding: 100px 0 100px 100px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
body .detail-class .ant-modal-body[data-v-443feb02] {
|
|
21
|
-
overflow: auto;
|
|
22
|
-
padding: 0 0 30px 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
body .module-class.not-padding .ant-modal-body[data-v-443feb02] {
|
|
26
|
-
position: relative;
|
|
27
|
-
padding: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
body .module-class.pwd .ant-modal-body[data-v-443feb02] {
|
|
31
|
-
position: relative;
|
|
32
|
-
padding: 100px 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ant-scrolling-effect[data-v-443feb02] {
|
|
36
|
-
width: 100% !important;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* 组件模态框 */
|
|
40
|
-
body .module-class.modal-components .ant-modal[data-v-443feb02] {
|
|
41
|
-
top: 5%;
|
|
42
|
-
left: 0px;
|
|
43
|
-
margin-left: 5%;
|
|
44
|
-
margin-right: 5%;
|
|
45
|
-
height: 90%;
|
|
46
|
-
width: auto !important;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
body .module-class.modal-components .ant-modal .ant-modal-content[data-v-443feb02] {
|
|
50
|
-
height: 100%;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
body .module-class .ant-modal-content[data-v-443feb02] {
|
|
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-443feb02] {
|
|
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-443feb02]::-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-443feb02]::-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-443feb02]::-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-443feb02]::-webkit-scrollbar-thumb:hover {
|
|
82
|
-
background: #c0a0b9;
|
|
83
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* show:Boolean 是否显示弹窗 v-model:show="Visible"
|
|
9
|
-
*
|
|
10
|
-
* remove-padding:Boolean 是否需要弹窗内边距(defult:true)
|
|
11
|
-
* 内边距 padding: 100px 0 100px 100px;
|
|
12
|
-
*
|
|
13
|
-
* @cancelHandle:Function 关闭时触发事件
|
|
14
|
-
*
|
|
15
|
-
* v-slot:title 弹窗头部
|
|
16
|
-
*
|
|
17
|
-
* v-slot:body 弹窗主体
|
|
18
|
-
*
|
|
19
|
-
* */
|
|
20
|
-
|
|
21
|
-
var script = /*#__PURE__*/vue.defineComponent({
|
|
22
|
-
__name: 'MrpModal',
|
|
23
|
-
props: {
|
|
24
|
-
show: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
"default": false
|
|
27
|
-
},
|
|
28
|
-
removePadding: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
"default": true
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: ["update:show", "cancelHandle"],
|
|
34
|
-
setup: function setup(__props, _a) {
|
|
35
|
-
var emit = _a.emit;
|
|
36
|
-
var props = __props;
|
|
37
|
-
var isShow = vue.ref(props.show);
|
|
38
|
-
|
|
39
|
-
function cancel() {
|
|
40
|
-
emit("update:show", false);
|
|
41
|
-
emit("cancelHandle", false);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return function (_ctx, _cache) {
|
|
45
|
-
var _component_close_circle_outlined = vue.resolveComponent("close-circle-outlined");
|
|
46
|
-
|
|
47
|
-
var _component_a_modal = vue.resolveComponent("a-modal");
|
|
48
|
-
|
|
49
|
-
return vue.openBlock(), vue.createBlock(_component_a_modal, {
|
|
50
|
-
wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
|
|
51
|
-
visible: isShow.value,
|
|
52
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
|
|
53
|
-
return isShow.value = $event;
|
|
54
|
-
}),
|
|
55
|
-
onCancel: cancel,
|
|
56
|
-
destroyOnClose: "",
|
|
57
|
-
footer: null
|
|
58
|
-
}, {
|
|
59
|
-
title: vue.withCtx(function () {
|
|
60
|
-
return [vue.renderSlot(_ctx.$slots, "title")];
|
|
61
|
-
}),
|
|
62
|
-
closeIcon: vue.withCtx(function () {
|
|
63
|
-
return [vue.createVNode(_component_close_circle_outlined, {
|
|
64
|
-
"class": "text-[#006ab2] text-[30px]"
|
|
65
|
-
})];
|
|
66
|
-
}),
|
|
67
|
-
"default": vue.withCtx(function () {
|
|
68
|
-
return [vue.renderSlot(_ctx.$slots, "body")];
|
|
69
|
-
}),
|
|
70
|
-
_: 3
|
|
71
|
-
/* FORWARDED */
|
|
72
|
-
|
|
73
|
-
}, 8
|
|
74
|
-
/* PROPS */
|
|
75
|
-
, ["wrapClassName", "visible"]);
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
script.__scopeId = "data-v-443feb02";
|
|
81
|
-
script.__file = "component/MrpModal.vue";
|
|
82
|
-
|
|
83
|
-
exports.MrpModal = script;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
/* 模态框 */
|
|
3
|
-
body .detail-class[data-v-443feb02] {
|
|
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-443feb02] {
|
|
12
|
-
padding: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
body .module-class .ant-modal-body[data-v-443feb02] {
|
|
16
|
-
position: relative;
|
|
17
|
-
padding: 100px 0 100px 100px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
body .detail-class .ant-modal-body[data-v-443feb02] {
|
|
21
|
-
overflow: auto;
|
|
22
|
-
padding: 0 0 30px 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
body .module-class.not-padding .ant-modal-body[data-v-443feb02] {
|
|
26
|
-
position: relative;
|
|
27
|
-
padding: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
body .module-class.pwd .ant-modal-body[data-v-443feb02] {
|
|
31
|
-
position: relative;
|
|
32
|
-
padding: 100px 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ant-scrolling-effect[data-v-443feb02] {
|
|
36
|
-
width: 100% !important;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* 组件模态框 */
|
|
40
|
-
body .module-class.modal-components .ant-modal[data-v-443feb02] {
|
|
41
|
-
top: 5%;
|
|
42
|
-
left: 0px;
|
|
43
|
-
margin-left: 5%;
|
|
44
|
-
margin-right: 5%;
|
|
45
|
-
height: 90%;
|
|
46
|
-
width: auto !important;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
body .module-class.modal-components .ant-modal .ant-modal-content[data-v-443feb02] {
|
|
50
|
-
height: 100%;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
body .module-class .ant-modal-content[data-v-443feb02] {
|
|
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-443feb02] {
|
|
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-443feb02]::-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-443feb02]::-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-443feb02]::-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-443feb02]::-webkit-scrollbar-thumb:hover {
|
|
82
|
-
background: #c0a0b9;
|
|
83
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode } from 'vue';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* show:Boolean 是否显示弹窗 v-model:show="Visible"
|
|
5
|
-
*
|
|
6
|
-
* remove-padding:Boolean 是否需要弹窗内边距(defult:true)
|
|
7
|
-
* 内边距 padding: 100px 0 100px 100px;
|
|
8
|
-
*
|
|
9
|
-
* @cancelHandle:Function 关闭时触发事件
|
|
10
|
-
*
|
|
11
|
-
* v-slot:title 弹窗头部
|
|
12
|
-
*
|
|
13
|
-
* v-slot:body 弹窗主体
|
|
14
|
-
*
|
|
15
|
-
* */
|
|
16
|
-
|
|
17
|
-
var script = /*#__PURE__*/defineComponent({
|
|
18
|
-
__name: 'MrpModal',
|
|
19
|
-
props: {
|
|
20
|
-
show: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
"default": false
|
|
23
|
-
},
|
|
24
|
-
removePadding: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
"default": true
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
emits: ["update:show", "cancelHandle"],
|
|
30
|
-
setup: function setup(__props, _a) {
|
|
31
|
-
var emit = _a.emit;
|
|
32
|
-
var props = __props;
|
|
33
|
-
var isShow = ref(props.show);
|
|
34
|
-
|
|
35
|
-
function cancel() {
|
|
36
|
-
emit("update:show", false);
|
|
37
|
-
emit("cancelHandle", false);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return function (_ctx, _cache) {
|
|
41
|
-
var _component_close_circle_outlined = resolveComponent("close-circle-outlined");
|
|
42
|
-
|
|
43
|
-
var _component_a_modal = resolveComponent("a-modal");
|
|
44
|
-
|
|
45
|
-
return openBlock(), createBlock(_component_a_modal, {
|
|
46
|
-
wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
|
|
47
|
-
visible: isShow.value,
|
|
48
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
|
|
49
|
-
return isShow.value = $event;
|
|
50
|
-
}),
|
|
51
|
-
onCancel: cancel,
|
|
52
|
-
destroyOnClose: "",
|
|
53
|
-
footer: null
|
|
54
|
-
}, {
|
|
55
|
-
title: withCtx(function () {
|
|
56
|
-
return [renderSlot(_ctx.$slots, "title")];
|
|
57
|
-
}),
|
|
58
|
-
closeIcon: withCtx(function () {
|
|
59
|
-
return [createVNode(_component_close_circle_outlined, {
|
|
60
|
-
"class": "text-[#006ab2] text-[30px]"
|
|
61
|
-
})];
|
|
62
|
-
}),
|
|
63
|
-
"default": withCtx(function () {
|
|
64
|
-
return [renderSlot(_ctx.$slots, "body")];
|
|
65
|
-
}),
|
|
66
|
-
_: 3
|
|
67
|
-
/* FORWARDED */
|
|
68
|
-
|
|
69
|
-
}, 8
|
|
70
|
-
/* PROPS */
|
|
71
|
-
, ["wrapClassName", "visible"]);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
script.__scopeId = "data-v-443feb02";
|
|
77
|
-
script.__file = "component/MrpModal.vue";
|
|
78
|
-
|
|
79
|
-
export { script as MrpModal };
|