iv-npm 1.1.19 → 1.1.22
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/ui/dist/business-ui/component/IVMrpOrgDropdown.d.ts +25 -0
- package/packages/ui/dist/business-ui/component/IVMrpUserSelector.d.ts +0 -2
- package/packages/ui/dist/function-ui/component/IVMrpTable.d.ts +11 -0
- package/packages/ui/dist/index.cjs.css +71 -1
- package/packages/ui/dist/index.cjs.js +50 -26
- package/packages/ui/dist/index.esm.css +71 -1
- package/packages/ui/dist/index.esm.js +51 -27
- package/packages/ui/dist/index.umd.css +71 -1
- package/packages/ui/dist/index.umd.js +50 -26
- package/packages/ui/dist/index.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -24,6 +24,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
value: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
inputStyle: {
|
|
28
|
+
type: ObjectConstructor;
|
|
29
|
+
required: true;
|
|
30
|
+
default: () => {
|
|
31
|
+
width: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
isRequired: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
27
39
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
40
|
[key: string]: any;
|
|
29
41
|
}>, 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<{
|
|
@@ -49,10 +61,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
61
|
value: string;
|
|
50
62
|
};
|
|
51
63
|
};
|
|
64
|
+
inputStyle: {
|
|
65
|
+
type: ObjectConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
default: () => {
|
|
68
|
+
width: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
isRequired: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
required: true;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
52
76
|
}>> & {
|
|
53
77
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
54
78
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
55
79
|
}, {
|
|
56
80
|
replaceFields: any;
|
|
81
|
+
inputStyle: Record<string, any>;
|
|
57
82
|
}>;
|
|
58
83
|
export default _default;
|
|
@@ -5,7 +5,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
show: {
|
|
6
6
|
type: BooleanConstructor;
|
|
7
7
|
required: true;
|
|
8
|
-
default: boolean;
|
|
9
8
|
};
|
|
10
9
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
10
|
[key: string]: any;
|
|
@@ -13,7 +12,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
12
|
show: {
|
|
14
13
|
type: BooleanConstructor;
|
|
15
14
|
required: true;
|
|
16
|
-
default: boolean;
|
|
17
15
|
};
|
|
18
16
|
}>> & {
|
|
19
17
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
@@ -27,6 +27,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
type: NumberConstructor;
|
|
28
28
|
required: false;
|
|
29
29
|
};
|
|
30
|
+
isTableControl: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
required: false;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
30
35
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
36
|
[key: string]: any;
|
|
32
37
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onPageChange" | "onShowSizeChange" | "upth")[], "onPageChange" | "onShowSizeChange" | "upth", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -58,11 +63,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
63
|
type: NumberConstructor;
|
|
59
64
|
required: false;
|
|
60
65
|
};
|
|
66
|
+
isTableControl: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
required: false;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
61
71
|
}>> & {
|
|
62
72
|
onOnPageChange?: ((...args: any[]) => any) | undefined;
|
|
63
73
|
onOnShowSizeChange?: ((...args: any[]) => any) | undefined;
|
|
64
74
|
onUpth?: ((...args: any[]) => any) | undefined;
|
|
65
75
|
}, {
|
|
66
76
|
col: boolean;
|
|
77
|
+
isTableControl: boolean;
|
|
67
78
|
}>;
|
|
68
79
|
export default _default;
|
|
@@ -200,4 +200,74 @@ body .detail-class {
|
|
|
200
200
|
.ant-modal-content
|
|
201
201
|
.ant-modal-body::-webkit-scrollbar-thumb:hover {
|
|
202
202
|
background: #c0a0b9;
|
|
203
|
-
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* 表格 */
|
|
206
|
+
|
|
207
|
+
.active {
|
|
208
|
+
background-color: #bd9e55;
|
|
209
|
+
font-size: 13px;
|
|
210
|
+
color: white;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:deep(.ant-btn-primary) {
|
|
214
|
+
background: #006ab2;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:deep(.ant-image) {
|
|
218
|
+
margin: 0 2px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.center-center {
|
|
222
|
+
position: absolute;
|
|
223
|
+
top: 50%;
|
|
224
|
+
left: 50%;
|
|
225
|
+
transform: translate(-50%, -50%);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.table-cell {
|
|
229
|
+
height: 60px;
|
|
230
|
+
border: 1px solid #d9d9d9;
|
|
231
|
+
padding: 5px;
|
|
232
|
+
word-break: break-all;
|
|
233
|
+
color: #333;
|
|
234
|
+
font-size: 13px;
|
|
235
|
+
font-weight: 400;
|
|
236
|
+
text-align: center;
|
|
237
|
+
}
|
|
238
|
+
.table-footer {
|
|
239
|
+
position: relative;
|
|
240
|
+
display: table-footer-group;
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 200px;
|
|
243
|
+
border: 1px solid #d9d9d9;
|
|
244
|
+
|
|
245
|
+
}
|
|
246
|
+
.table-footer .centent {
|
|
247
|
+
position: absolute;
|
|
248
|
+
top: 50%;
|
|
249
|
+
left: 50%;
|
|
250
|
+
transform: translate(-50%, -50%);
|
|
251
|
+
font-size: 14px;
|
|
252
|
+
text-align: center;
|
|
253
|
+
color: rgba(0, 0, 0, 0.25);
|
|
254
|
+
}
|
|
255
|
+
table {
|
|
256
|
+
border-collapse: collapse;
|
|
257
|
+
}
|
|
258
|
+
#top {
|
|
259
|
+
position: fixed;
|
|
260
|
+
top: 65px;
|
|
261
|
+
z-index: 999;
|
|
262
|
+
}
|
|
263
|
+
.pagination {
|
|
264
|
+
position: fixed;
|
|
265
|
+
bottom: -80px;
|
|
266
|
+
z-index: 999;
|
|
267
|
+
height: 45px;
|
|
268
|
+
background-color: #fff;
|
|
269
|
+
}
|
|
270
|
+
.mrpTable {
|
|
271
|
+
position: relative;
|
|
272
|
+
margin-bottom: 80px;
|
|
273
|
+
}
|
|
@@ -34,14 +34,15 @@ var script$9 = /*#__PURE__*/vue.defineComponent({
|
|
|
34
34
|
setup: function setup(__props, _ref) {
|
|
35
35
|
var emit = _ref.emit;
|
|
36
36
|
var props = __props;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
var inputV = vue.computed({
|
|
38
|
+
get: function get() {
|
|
39
|
+
return props.show;
|
|
40
|
+
},
|
|
41
|
+
set: function set(value) {
|
|
42
|
+
emit("update:show", value);
|
|
43
|
+
emit("cancelHandle", value);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
45
46
|
return function (_ctx, _cache) {
|
|
46
47
|
var _component_close_circle_outlined = vue.resolveComponent("close-circle-outlined");
|
|
47
48
|
|
|
@@ -49,11 +50,10 @@ var script$9 = /*#__PURE__*/vue.defineComponent({
|
|
|
49
50
|
|
|
50
51
|
return vue.openBlock(), vue.createBlock(_component_a_modal, {
|
|
51
52
|
wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
|
|
52
|
-
visible:
|
|
53
|
+
visible: vue.unref(inputV),
|
|
53
54
|
"onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
|
|
54
|
-
return
|
|
55
|
+
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
55
56
|
}),
|
|
56
|
-
onCancel: cancel,
|
|
57
57
|
destroyOnClose: "",
|
|
58
58
|
footer: null
|
|
59
59
|
}, {
|
|
@@ -641,6 +641,11 @@ var script$8 = /*#__PURE__*/vue.defineComponent({
|
|
|
641
641
|
setHeight: {
|
|
642
642
|
type: Number,
|
|
643
643
|
required: false
|
|
644
|
+
},
|
|
645
|
+
isTableControl: {
|
|
646
|
+
type: Boolean,
|
|
647
|
+
required: false,
|
|
648
|
+
"default": true
|
|
644
649
|
}
|
|
645
650
|
},
|
|
646
651
|
emits: ["onPageChange", "onShowSizeChange", "upth"],
|
|
@@ -705,7 +710,6 @@ var script$8 = /*#__PURE__*/vue.defineComponent({
|
|
|
705
710
|
|
|
706
711
|
vue.onMounted(function () {
|
|
707
712
|
var div = document.querySelector(".mrpTable");
|
|
708
|
-
console.log(div);
|
|
709
713
|
mrpTableOffsetWidth.value = div.offsetWidth; // 监听滚动条位置
|
|
710
714
|
|
|
711
715
|
window.addEventListener("scroll", scrollTop, true);
|
|
@@ -763,13 +767,14 @@ var script$8 = /*#__PURE__*/vue.defineComponent({
|
|
|
763
767
|
/* UNKEYED_FRAGMENT */
|
|
764
768
|
))])], 4
|
|
765
769
|
/* STYLE */
|
|
766
|
-
), vue.
|
|
770
|
+
), __props.isTableControl ? (vue.openBlock(), vue.createBlock(vue.unref(script$7), {
|
|
771
|
+
key: 0,
|
|
767
772
|
setHeight: __props.setHeight,
|
|
768
773
|
onDensity: density,
|
|
769
774
|
onChangeS: tableControlChange
|
|
770
775
|
}, null, 8
|
|
771
776
|
/* PROPS */
|
|
772
|
-
, ["setHeight"])])) : vue.createCommentVNode("v-if", true), vue.createElementVNode("div", _hoisted_8$1, [vue.createElementVNode("table", _hoisted_9$1, [vue.createElementVNode("tr", null, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.dataTh, function (item, index) {
|
|
777
|
+
, ["setHeight"])) : vue.createCommentVNode("v-if", true)])) : vue.createCommentVNode("v-if", true), vue.createElementVNode("div", _hoisted_8$1, [vue.createElementVNode("table", _hoisted_9$1, [vue.createElementVNode("tr", null, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.dataTh, function (item, index) {
|
|
773
778
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
774
779
|
key: index
|
|
775
780
|
}, [item.show ? (vue.openBlock(), vue.createElementBlock("th", {
|
|
@@ -869,13 +874,14 @@ var script$8 = /*#__PURE__*/vue.defineComponent({
|
|
|
869
874
|
))]);
|
|
870
875
|
}), 128
|
|
871
876
|
/* KEYED_FRAGMENT */
|
|
872
|
-
)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]), vue.
|
|
877
|
+
)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]), __props.isTableControl ? (vue.openBlock(), vue.createBlock(vue.unref(script$7), {
|
|
878
|
+
key: 0,
|
|
873
879
|
setHeight: __props.setHeight,
|
|
874
880
|
onDensity: density,
|
|
875
881
|
onChangeS: tableControlChange
|
|
876
882
|
}, null, 8
|
|
877
883
|
/* PROPS */
|
|
878
|
-
, ["setHeight"])]), vue.createCommentVNode(" 分页 "), __props.totalPages ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
884
|
+
, ["setHeight"])) : vue.createCommentVNode("v-if", true)]), vue.createCommentVNode(" 分页 "), __props.totalPages ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
879
885
|
key: 1,
|
|
880
886
|
"class": "flex justify-center h-full mt-4 mb-20 pagination",
|
|
881
887
|
style: vue.normalizeStyle({
|
|
@@ -1358,6 +1364,20 @@ var script$6 = /*#__PURE__*/vue.defineComponent({
|
|
|
1358
1364
|
value: "id"
|
|
1359
1365
|
};
|
|
1360
1366
|
}
|
|
1367
|
+
},
|
|
1368
|
+
inputStyle: {
|
|
1369
|
+
type: Object,
|
|
1370
|
+
required: true,
|
|
1371
|
+
"default": function _default() {
|
|
1372
|
+
return {
|
|
1373
|
+
width: "300px"
|
|
1374
|
+
};
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1377
|
+
isRequired: {
|
|
1378
|
+
type: Boolean,
|
|
1379
|
+
required: true,
|
|
1380
|
+
"default": true
|
|
1361
1381
|
}
|
|
1362
1382
|
},
|
|
1363
1383
|
emits: ["update:value", "change"],
|
|
@@ -1448,7 +1468,7 @@ var script$6 = /*#__PURE__*/vue.defineComponent({
|
|
|
1448
1468
|
return vue.openBlock(), vue.createBlock(_component_a_form_item, {
|
|
1449
1469
|
name: "organizationId",
|
|
1450
1470
|
rules: [{
|
|
1451
|
-
required:
|
|
1471
|
+
required: __props.isRequired,
|
|
1452
1472
|
message: '请选择所属组织'
|
|
1453
1473
|
}]
|
|
1454
1474
|
}, {
|
|
@@ -1470,21 +1490,21 @@ var script$6 = /*#__PURE__*/vue.defineComponent({
|
|
|
1470
1490
|
showSearch: "",
|
|
1471
1491
|
"filter-option": vue.unref(filterOptionHeadle),
|
|
1472
1492
|
treeDefaultExpandAll: "",
|
|
1473
|
-
style:
|
|
1474
|
-
"width": "300px"
|
|
1475
|
-
},
|
|
1493
|
+
style: vue.normalizeStyle(__props.inputStyle),
|
|
1476
1494
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1477
1495
|
return _ctx.$emit('change', $event);
|
|
1478
1496
|
}),
|
|
1479
1497
|
replaceFields: __props.replaceFields
|
|
1480
1498
|
}, null, 8
|
|
1481
1499
|
/* PROPS */
|
|
1482
|
-
, ["value", "tree-data", "getPopupContainer", "filter-option", "replaceFields"])];
|
|
1500
|
+
, ["value", "tree-data", "getPopupContainer", "filter-option", "style", "replaceFields"])];
|
|
1483
1501
|
}),
|
|
1484
1502
|
_: 1
|
|
1485
1503
|
/* STABLE */
|
|
1486
1504
|
|
|
1487
|
-
}
|
|
1505
|
+
}, 8
|
|
1506
|
+
/* PROPS */
|
|
1507
|
+
, ["rules"]);
|
|
1488
1508
|
};
|
|
1489
1509
|
}
|
|
1490
1510
|
});
|
|
@@ -2284,15 +2304,13 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
2284
2304
|
props: {
|
|
2285
2305
|
show: {
|
|
2286
2306
|
type: Boolean,
|
|
2287
|
-
required: true
|
|
2288
|
-
"default": false
|
|
2307
|
+
required: true
|
|
2289
2308
|
}
|
|
2290
2309
|
},
|
|
2291
2310
|
emits: ["update:show", "getItem"],
|
|
2292
2311
|
setup: function setup(__props, _ref) {
|
|
2293
2312
|
var emit = _ref.emit;
|
|
2294
2313
|
var props = __props;
|
|
2295
|
-
console.log(props.show);
|
|
2296
2314
|
/**
|
|
2297
2315
|
* 搜索-------------------------------------
|
|
2298
2316
|
* */
|
|
@@ -2512,6 +2530,7 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
2512
2530
|
"onUpdate:show": _cache[5] || (_cache[5] = function ($event) {
|
|
2513
2531
|
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
2514
2532
|
}),
|
|
2533
|
+
isTableControl: false,
|
|
2515
2534
|
"remove-padding": false
|
|
2516
2535
|
}, {
|
|
2517
2536
|
title: vue.withCtx(function () {
|
|
@@ -2523,7 +2542,12 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
2523
2542
|
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
2524
2543
|
return formData.organizationId = $event;
|
|
2525
2544
|
}),
|
|
2526
|
-
onChange: onSearch
|
|
2545
|
+
onChange: onSearch,
|
|
2546
|
+
"is-required": false,
|
|
2547
|
+
"input-style": {
|
|
2548
|
+
width: '178px',
|
|
2549
|
+
marginRight: '15px'
|
|
2550
|
+
}
|
|
2527
2551
|
}, null, 8
|
|
2528
2552
|
/* PROPS */
|
|
2529
2553
|
, ["value"]), vue.createVNode(vue.unref(script$4), {
|
|
@@ -200,4 +200,74 @@ body .detail-class {
|
|
|
200
200
|
.ant-modal-content
|
|
201
201
|
.ant-modal-body::-webkit-scrollbar-thumb:hover {
|
|
202
202
|
background: #c0a0b9;
|
|
203
|
-
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* 表格 */
|
|
206
|
+
|
|
207
|
+
.active {
|
|
208
|
+
background-color: #bd9e55;
|
|
209
|
+
font-size: 13px;
|
|
210
|
+
color: white;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:deep(.ant-btn-primary) {
|
|
214
|
+
background: #006ab2;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:deep(.ant-image) {
|
|
218
|
+
margin: 0 2px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.center-center {
|
|
222
|
+
position: absolute;
|
|
223
|
+
top: 50%;
|
|
224
|
+
left: 50%;
|
|
225
|
+
transform: translate(-50%, -50%);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.table-cell {
|
|
229
|
+
height: 60px;
|
|
230
|
+
border: 1px solid #d9d9d9;
|
|
231
|
+
padding: 5px;
|
|
232
|
+
word-break: break-all;
|
|
233
|
+
color: #333;
|
|
234
|
+
font-size: 13px;
|
|
235
|
+
font-weight: 400;
|
|
236
|
+
text-align: center;
|
|
237
|
+
}
|
|
238
|
+
.table-footer {
|
|
239
|
+
position: relative;
|
|
240
|
+
display: table-footer-group;
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 200px;
|
|
243
|
+
border: 1px solid #d9d9d9;
|
|
244
|
+
|
|
245
|
+
}
|
|
246
|
+
.table-footer .centent {
|
|
247
|
+
position: absolute;
|
|
248
|
+
top: 50%;
|
|
249
|
+
left: 50%;
|
|
250
|
+
transform: translate(-50%, -50%);
|
|
251
|
+
font-size: 14px;
|
|
252
|
+
text-align: center;
|
|
253
|
+
color: rgba(0, 0, 0, 0.25);
|
|
254
|
+
}
|
|
255
|
+
table {
|
|
256
|
+
border-collapse: collapse;
|
|
257
|
+
}
|
|
258
|
+
#top {
|
|
259
|
+
position: fixed;
|
|
260
|
+
top: 65px;
|
|
261
|
+
z-index: 999;
|
|
262
|
+
}
|
|
263
|
+
.pagination {
|
|
264
|
+
position: fixed;
|
|
265
|
+
bottom: -80px;
|
|
266
|
+
z-index: 999;
|
|
267
|
+
height: 45px;
|
|
268
|
+
background-color: #fff;
|
|
269
|
+
}
|
|
270
|
+
.mrpTable {
|
|
271
|
+
position: relative;
|
|
272
|
+
margin-bottom: 80px;
|
|
273
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, isRef, withCtx, renderSlot, createVNode, ref, onMounted, onBeforeUnmount, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, renderList, normalizeClass, createTextVNode, toDisplayString, pushScopeId, popScopeId, createStaticVNode, reactive, watch, watchEffect, onBeforeMount, withKeys, withModifiers } from 'vue';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* show:Boolean 是否显示弹窗 v-model:show="Visible"
|
|
@@ -30,14 +30,15 @@ var script$9 = /*#__PURE__*/defineComponent({
|
|
|
30
30
|
setup: function setup(__props, _ref) {
|
|
31
31
|
var emit = _ref.emit;
|
|
32
32
|
var props = __props;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
var inputV = computed({
|
|
34
|
+
get: function get() {
|
|
35
|
+
return props.show;
|
|
36
|
+
},
|
|
37
|
+
set: function set(value) {
|
|
38
|
+
emit("update:show", value);
|
|
39
|
+
emit("cancelHandle", value);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
41
42
|
return function (_ctx, _cache) {
|
|
42
43
|
var _component_close_circle_outlined = resolveComponent("close-circle-outlined");
|
|
43
44
|
|
|
@@ -45,11 +46,10 @@ var script$9 = /*#__PURE__*/defineComponent({
|
|
|
45
46
|
|
|
46
47
|
return openBlock(), createBlock(_component_a_modal, {
|
|
47
48
|
wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
|
|
48
|
-
visible:
|
|
49
|
+
visible: unref(inputV),
|
|
49
50
|
"onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
|
|
50
|
-
return
|
|
51
|
+
return isRef(inputV) ? inputV.value = $event : null;
|
|
51
52
|
}),
|
|
52
|
-
onCancel: cancel,
|
|
53
53
|
destroyOnClose: "",
|
|
54
54
|
footer: null
|
|
55
55
|
}, {
|
|
@@ -637,6 +637,11 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
637
637
|
setHeight: {
|
|
638
638
|
type: Number,
|
|
639
639
|
required: false
|
|
640
|
+
},
|
|
641
|
+
isTableControl: {
|
|
642
|
+
type: Boolean,
|
|
643
|
+
required: false,
|
|
644
|
+
"default": true
|
|
640
645
|
}
|
|
641
646
|
},
|
|
642
647
|
emits: ["onPageChange", "onShowSizeChange", "upth"],
|
|
@@ -701,7 +706,6 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
701
706
|
|
|
702
707
|
onMounted(function () {
|
|
703
708
|
var div = document.querySelector(".mrpTable");
|
|
704
|
-
console.log(div);
|
|
705
709
|
mrpTableOffsetWidth.value = div.offsetWidth; // 监听滚动条位置
|
|
706
710
|
|
|
707
711
|
window.addEventListener("scroll", scrollTop, true);
|
|
@@ -759,13 +763,14 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
759
763
|
/* UNKEYED_FRAGMENT */
|
|
760
764
|
))])], 4
|
|
761
765
|
/* STYLE */
|
|
762
|
-
),
|
|
766
|
+
), __props.isTableControl ? (openBlock(), createBlock(unref(script$7), {
|
|
767
|
+
key: 0,
|
|
763
768
|
setHeight: __props.setHeight,
|
|
764
769
|
onDensity: density,
|
|
765
770
|
onChangeS: tableControlChange
|
|
766
771
|
}, null, 8
|
|
767
772
|
/* PROPS */
|
|
768
|
-
, ["setHeight"])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_8$1, [createElementVNode("table", _hoisted_9$1, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataTh, function (item, index) {
|
|
773
|
+
, ["setHeight"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_8$1, [createElementVNode("table", _hoisted_9$1, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataTh, function (item, index) {
|
|
769
774
|
return openBlock(), createElementBlock(Fragment, {
|
|
770
775
|
key: index
|
|
771
776
|
}, [item.show ? (openBlock(), createElementBlock("th", {
|
|
@@ -865,13 +870,14 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
865
870
|
))]);
|
|
866
871
|
}), 128
|
|
867
872
|
/* KEYED_FRAGMENT */
|
|
868
|
-
)) : (openBlock(), createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]),
|
|
873
|
+
)) : (openBlock(), createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]), __props.isTableControl ? (openBlock(), createBlock(unref(script$7), {
|
|
874
|
+
key: 0,
|
|
869
875
|
setHeight: __props.setHeight,
|
|
870
876
|
onDensity: density,
|
|
871
877
|
onChangeS: tableControlChange
|
|
872
878
|
}, null, 8
|
|
873
879
|
/* PROPS */
|
|
874
|
-
, ["setHeight"])]), createCommentVNode(" 分页 "), __props.totalPages ? (openBlock(), createElementBlock("div", {
|
|
880
|
+
, ["setHeight"])) : createCommentVNode("v-if", true)]), createCommentVNode(" 分页 "), __props.totalPages ? (openBlock(), createElementBlock("div", {
|
|
875
881
|
key: 1,
|
|
876
882
|
"class": "flex justify-center h-full mt-4 mb-20 pagination",
|
|
877
883
|
style: normalizeStyle({
|
|
@@ -1354,6 +1360,20 @@ var script$6 = /*#__PURE__*/defineComponent({
|
|
|
1354
1360
|
value: "id"
|
|
1355
1361
|
};
|
|
1356
1362
|
}
|
|
1363
|
+
},
|
|
1364
|
+
inputStyle: {
|
|
1365
|
+
type: Object,
|
|
1366
|
+
required: true,
|
|
1367
|
+
"default": function _default() {
|
|
1368
|
+
return {
|
|
1369
|
+
width: "300px"
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
isRequired: {
|
|
1374
|
+
type: Boolean,
|
|
1375
|
+
required: true,
|
|
1376
|
+
"default": true
|
|
1357
1377
|
}
|
|
1358
1378
|
},
|
|
1359
1379
|
emits: ["update:value", "change"],
|
|
@@ -1444,7 +1464,7 @@ var script$6 = /*#__PURE__*/defineComponent({
|
|
|
1444
1464
|
return openBlock(), createBlock(_component_a_form_item, {
|
|
1445
1465
|
name: "organizationId",
|
|
1446
1466
|
rules: [{
|
|
1447
|
-
required:
|
|
1467
|
+
required: __props.isRequired,
|
|
1448
1468
|
message: '请选择所属组织'
|
|
1449
1469
|
}]
|
|
1450
1470
|
}, {
|
|
@@ -1466,21 +1486,21 @@ var script$6 = /*#__PURE__*/defineComponent({
|
|
|
1466
1486
|
showSearch: "",
|
|
1467
1487
|
"filter-option": unref(filterOptionHeadle),
|
|
1468
1488
|
treeDefaultExpandAll: "",
|
|
1469
|
-
style:
|
|
1470
|
-
"width": "300px"
|
|
1471
|
-
},
|
|
1489
|
+
style: normalizeStyle(__props.inputStyle),
|
|
1472
1490
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1473
1491
|
return _ctx.$emit('change', $event);
|
|
1474
1492
|
}),
|
|
1475
1493
|
replaceFields: __props.replaceFields
|
|
1476
1494
|
}, null, 8
|
|
1477
1495
|
/* PROPS */
|
|
1478
|
-
, ["value", "tree-data", "getPopupContainer", "filter-option", "replaceFields"])];
|
|
1496
|
+
, ["value", "tree-data", "getPopupContainer", "filter-option", "style", "replaceFields"])];
|
|
1479
1497
|
}),
|
|
1480
1498
|
_: 1
|
|
1481
1499
|
/* STABLE */
|
|
1482
1500
|
|
|
1483
|
-
}
|
|
1501
|
+
}, 8
|
|
1502
|
+
/* PROPS */
|
|
1503
|
+
, ["rules"]);
|
|
1484
1504
|
};
|
|
1485
1505
|
}
|
|
1486
1506
|
});
|
|
@@ -2280,15 +2300,13 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
2280
2300
|
props: {
|
|
2281
2301
|
show: {
|
|
2282
2302
|
type: Boolean,
|
|
2283
|
-
required: true
|
|
2284
|
-
"default": false
|
|
2303
|
+
required: true
|
|
2285
2304
|
}
|
|
2286
2305
|
},
|
|
2287
2306
|
emits: ["update:show", "getItem"],
|
|
2288
2307
|
setup: function setup(__props, _ref) {
|
|
2289
2308
|
var emit = _ref.emit;
|
|
2290
2309
|
var props = __props;
|
|
2291
|
-
console.log(props.show);
|
|
2292
2310
|
/**
|
|
2293
2311
|
* 搜索-------------------------------------
|
|
2294
2312
|
* */
|
|
@@ -2508,6 +2526,7 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
2508
2526
|
"onUpdate:show": _cache[5] || (_cache[5] = function ($event) {
|
|
2509
2527
|
return isRef(inputV) ? inputV.value = $event : null;
|
|
2510
2528
|
}),
|
|
2529
|
+
isTableControl: false,
|
|
2511
2530
|
"remove-padding": false
|
|
2512
2531
|
}, {
|
|
2513
2532
|
title: withCtx(function () {
|
|
@@ -2519,7 +2538,12 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
2519
2538
|
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
2520
2539
|
return formData.organizationId = $event;
|
|
2521
2540
|
}),
|
|
2522
|
-
onChange: onSearch
|
|
2541
|
+
onChange: onSearch,
|
|
2542
|
+
"is-required": false,
|
|
2543
|
+
"input-style": {
|
|
2544
|
+
width: '178px',
|
|
2545
|
+
marginRight: '15px'
|
|
2546
|
+
}
|
|
2523
2547
|
}, null, 8
|
|
2524
2548
|
/* PROPS */
|
|
2525
2549
|
, ["value"]), createVNode(unref(script$4), {
|
|
@@ -200,4 +200,74 @@ body .detail-class {
|
|
|
200
200
|
.ant-modal-content
|
|
201
201
|
.ant-modal-body::-webkit-scrollbar-thumb:hover {
|
|
202
202
|
background: #c0a0b9;
|
|
203
|
-
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* 表格 */
|
|
206
|
+
|
|
207
|
+
.active {
|
|
208
|
+
background-color: #bd9e55;
|
|
209
|
+
font-size: 13px;
|
|
210
|
+
color: white;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:deep(.ant-btn-primary) {
|
|
214
|
+
background: #006ab2;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:deep(.ant-image) {
|
|
218
|
+
margin: 0 2px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.center-center {
|
|
222
|
+
position: absolute;
|
|
223
|
+
top: 50%;
|
|
224
|
+
left: 50%;
|
|
225
|
+
transform: translate(-50%, -50%);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.table-cell {
|
|
229
|
+
height: 60px;
|
|
230
|
+
border: 1px solid #d9d9d9;
|
|
231
|
+
padding: 5px;
|
|
232
|
+
word-break: break-all;
|
|
233
|
+
color: #333;
|
|
234
|
+
font-size: 13px;
|
|
235
|
+
font-weight: 400;
|
|
236
|
+
text-align: center;
|
|
237
|
+
}
|
|
238
|
+
.table-footer {
|
|
239
|
+
position: relative;
|
|
240
|
+
display: table-footer-group;
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 200px;
|
|
243
|
+
border: 1px solid #d9d9d9;
|
|
244
|
+
|
|
245
|
+
}
|
|
246
|
+
.table-footer .centent {
|
|
247
|
+
position: absolute;
|
|
248
|
+
top: 50%;
|
|
249
|
+
left: 50%;
|
|
250
|
+
transform: translate(-50%, -50%);
|
|
251
|
+
font-size: 14px;
|
|
252
|
+
text-align: center;
|
|
253
|
+
color: rgba(0, 0, 0, 0.25);
|
|
254
|
+
}
|
|
255
|
+
table {
|
|
256
|
+
border-collapse: collapse;
|
|
257
|
+
}
|
|
258
|
+
#top {
|
|
259
|
+
position: fixed;
|
|
260
|
+
top: 65px;
|
|
261
|
+
z-index: 999;
|
|
262
|
+
}
|
|
263
|
+
.pagination {
|
|
264
|
+
position: fixed;
|
|
265
|
+
bottom: -80px;
|
|
266
|
+
z-index: 999;
|
|
267
|
+
height: 45px;
|
|
268
|
+
background-color: #fff;
|
|
269
|
+
}
|
|
270
|
+
.mrpTable {
|
|
271
|
+
position: relative;
|
|
272
|
+
margin-bottom: 80px;
|
|
273
|
+
}
|
|
@@ -34,14 +34,15 @@
|
|
|
34
34
|
setup: function setup(__props, _ref) {
|
|
35
35
|
var emit = _ref.emit;
|
|
36
36
|
var props = __props;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
var inputV = vue.computed({
|
|
38
|
+
get: function get() {
|
|
39
|
+
return props.show;
|
|
40
|
+
},
|
|
41
|
+
set: function set(value) {
|
|
42
|
+
emit("update:show", value);
|
|
43
|
+
emit("cancelHandle", value);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
45
46
|
return function (_ctx, _cache) {
|
|
46
47
|
var _component_close_circle_outlined = vue.resolveComponent("close-circle-outlined");
|
|
47
48
|
|
|
@@ -49,11 +50,10 @@
|
|
|
49
50
|
|
|
50
51
|
return vue.openBlock(), vue.createBlock(_component_a_modal, {
|
|
51
52
|
wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
|
|
52
|
-
visible:
|
|
53
|
+
visible: vue.unref(inputV),
|
|
53
54
|
"onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
|
|
54
|
-
return
|
|
55
|
+
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
55
56
|
}),
|
|
56
|
-
onCancel: cancel,
|
|
57
57
|
destroyOnClose: "",
|
|
58
58
|
footer: null
|
|
59
59
|
}, {
|
|
@@ -641,6 +641,11 @@
|
|
|
641
641
|
setHeight: {
|
|
642
642
|
type: Number,
|
|
643
643
|
required: false
|
|
644
|
+
},
|
|
645
|
+
isTableControl: {
|
|
646
|
+
type: Boolean,
|
|
647
|
+
required: false,
|
|
648
|
+
"default": true
|
|
644
649
|
}
|
|
645
650
|
},
|
|
646
651
|
emits: ["onPageChange", "onShowSizeChange", "upth"],
|
|
@@ -705,7 +710,6 @@
|
|
|
705
710
|
|
|
706
711
|
vue.onMounted(function () {
|
|
707
712
|
var div = document.querySelector(".mrpTable");
|
|
708
|
-
console.log(div);
|
|
709
713
|
mrpTableOffsetWidth.value = div.offsetWidth; // 监听滚动条位置
|
|
710
714
|
|
|
711
715
|
window.addEventListener("scroll", scrollTop, true);
|
|
@@ -763,13 +767,14 @@
|
|
|
763
767
|
/* UNKEYED_FRAGMENT */
|
|
764
768
|
))])], 4
|
|
765
769
|
/* STYLE */
|
|
766
|
-
), vue.
|
|
770
|
+
), __props.isTableControl ? (vue.openBlock(), vue.createBlock(vue.unref(script$7), {
|
|
771
|
+
key: 0,
|
|
767
772
|
setHeight: __props.setHeight,
|
|
768
773
|
onDensity: density,
|
|
769
774
|
onChangeS: tableControlChange
|
|
770
775
|
}, null, 8
|
|
771
776
|
/* PROPS */
|
|
772
|
-
, ["setHeight"])])) : vue.createCommentVNode("v-if", true), vue.createElementVNode("div", _hoisted_8$1, [vue.createElementVNode("table", _hoisted_9$1, [vue.createElementVNode("tr", null, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.dataTh, function (item, index) {
|
|
777
|
+
, ["setHeight"])) : vue.createCommentVNode("v-if", true)])) : vue.createCommentVNode("v-if", true), vue.createElementVNode("div", _hoisted_8$1, [vue.createElementVNode("table", _hoisted_9$1, [vue.createElementVNode("tr", null, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.dataTh, function (item, index) {
|
|
773
778
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
774
779
|
key: index
|
|
775
780
|
}, [item.show ? (vue.openBlock(), vue.createElementBlock("th", {
|
|
@@ -869,13 +874,14 @@
|
|
|
869
874
|
))]);
|
|
870
875
|
}), 128
|
|
871
876
|
/* KEYED_FRAGMENT */
|
|
872
|
-
)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]), vue.
|
|
877
|
+
)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]), __props.isTableControl ? (vue.openBlock(), vue.createBlock(vue.unref(script$7), {
|
|
878
|
+
key: 0,
|
|
873
879
|
setHeight: __props.setHeight,
|
|
874
880
|
onDensity: density,
|
|
875
881
|
onChangeS: tableControlChange
|
|
876
882
|
}, null, 8
|
|
877
883
|
/* PROPS */
|
|
878
|
-
, ["setHeight"])]), vue.createCommentVNode(" 分页 "), __props.totalPages ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
884
|
+
, ["setHeight"])) : vue.createCommentVNode("v-if", true)]), vue.createCommentVNode(" 分页 "), __props.totalPages ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
879
885
|
key: 1,
|
|
880
886
|
"class": "flex justify-center h-full mt-4 mb-20 pagination",
|
|
881
887
|
style: vue.normalizeStyle({
|
|
@@ -1358,6 +1364,20 @@
|
|
|
1358
1364
|
value: "id"
|
|
1359
1365
|
};
|
|
1360
1366
|
}
|
|
1367
|
+
},
|
|
1368
|
+
inputStyle: {
|
|
1369
|
+
type: Object,
|
|
1370
|
+
required: true,
|
|
1371
|
+
"default": function _default() {
|
|
1372
|
+
return {
|
|
1373
|
+
width: "300px"
|
|
1374
|
+
};
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1377
|
+
isRequired: {
|
|
1378
|
+
type: Boolean,
|
|
1379
|
+
required: true,
|
|
1380
|
+
"default": true
|
|
1361
1381
|
}
|
|
1362
1382
|
},
|
|
1363
1383
|
emits: ["update:value", "change"],
|
|
@@ -1448,7 +1468,7 @@
|
|
|
1448
1468
|
return vue.openBlock(), vue.createBlock(_component_a_form_item, {
|
|
1449
1469
|
name: "organizationId",
|
|
1450
1470
|
rules: [{
|
|
1451
|
-
required:
|
|
1471
|
+
required: __props.isRequired,
|
|
1452
1472
|
message: '请选择所属组织'
|
|
1453
1473
|
}]
|
|
1454
1474
|
}, {
|
|
@@ -1470,21 +1490,21 @@
|
|
|
1470
1490
|
showSearch: "",
|
|
1471
1491
|
"filter-option": vue.unref(filterOptionHeadle),
|
|
1472
1492
|
treeDefaultExpandAll: "",
|
|
1473
|
-
style:
|
|
1474
|
-
"width": "300px"
|
|
1475
|
-
},
|
|
1493
|
+
style: vue.normalizeStyle(__props.inputStyle),
|
|
1476
1494
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1477
1495
|
return _ctx.$emit('change', $event);
|
|
1478
1496
|
}),
|
|
1479
1497
|
replaceFields: __props.replaceFields
|
|
1480
1498
|
}, null, 8
|
|
1481
1499
|
/* PROPS */
|
|
1482
|
-
, ["value", "tree-data", "getPopupContainer", "filter-option", "replaceFields"])];
|
|
1500
|
+
, ["value", "tree-data", "getPopupContainer", "filter-option", "style", "replaceFields"])];
|
|
1483
1501
|
}),
|
|
1484
1502
|
_: 1
|
|
1485
1503
|
/* STABLE */
|
|
1486
1504
|
|
|
1487
|
-
}
|
|
1505
|
+
}, 8
|
|
1506
|
+
/* PROPS */
|
|
1507
|
+
, ["rules"]);
|
|
1488
1508
|
};
|
|
1489
1509
|
}
|
|
1490
1510
|
});
|
|
@@ -2284,15 +2304,13 @@
|
|
|
2284
2304
|
props: {
|
|
2285
2305
|
show: {
|
|
2286
2306
|
type: Boolean,
|
|
2287
|
-
required: true
|
|
2288
|
-
"default": false
|
|
2307
|
+
required: true
|
|
2289
2308
|
}
|
|
2290
2309
|
},
|
|
2291
2310
|
emits: ["update:show", "getItem"],
|
|
2292
2311
|
setup: function setup(__props, _ref) {
|
|
2293
2312
|
var emit = _ref.emit;
|
|
2294
2313
|
var props = __props;
|
|
2295
|
-
console.log(props.show);
|
|
2296
2314
|
/**
|
|
2297
2315
|
* 搜索-------------------------------------
|
|
2298
2316
|
* */
|
|
@@ -2512,6 +2530,7 @@
|
|
|
2512
2530
|
"onUpdate:show": _cache[5] || (_cache[5] = function ($event) {
|
|
2513
2531
|
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
2514
2532
|
}),
|
|
2533
|
+
isTableControl: false,
|
|
2515
2534
|
"remove-padding": false
|
|
2516
2535
|
}, {
|
|
2517
2536
|
title: vue.withCtx(function () {
|
|
@@ -2523,7 +2542,12 @@
|
|
|
2523
2542
|
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
2524
2543
|
return formData.organizationId = $event;
|
|
2525
2544
|
}),
|
|
2526
|
-
onChange: onSearch
|
|
2545
|
+
onChange: onSearch,
|
|
2546
|
+
"is-required": false,
|
|
2547
|
+
"input-style": {
|
|
2548
|
+
width: '178px',
|
|
2549
|
+
marginRight: '15px'
|
|
2550
|
+
}
|
|
2527
2551
|
}, null, 8
|
|
2528
2552
|
/* PROPS */
|
|
2529
2553
|
, ["value"]), vue.createVNode(vue.unref(script$4), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../../shared/dist/utils/index.mjs","../src/business-ui/component/icon/SelectorIcon.vue?vue&type=template&id=0b124b76&lang.js"],"sourcesContent":["// utils/arr/tree.ts\nfunction arrToTree(list, parentMark, childrenMark) {\n let result = [], temp;\n for (let i = 0; i < list.length; i++) {\n if (!list[i][parentMark]) {\n temp = list.filter(\n (item) => item[parentMark] === list[i][childrenMark]\n );\n if (temp.length > 0) {\n list[i].children = temp;\n }\n result.push(list[i]);\n }\n }\n return result;\n}\nfunction _loadChildren(obj, list) {\n const arr = list.filter((x) => x.parentId == obj.id);\n if (!arr.length)\n return;\n obj.children = arr;\n obj.children.forEach((x) => {\n _loadChildren(x, list);\n });\n return obj;\n}\nfunction tranListToTreeData(list) {\n const results = list.filter((x) => x.parentId == null);\n results.forEach((x) => _loadChildren(x, list));\n return results;\n}\nfunction findTree(id, list, idName) {\n let result;\n if (!list.length)\n return;\n const fn = (id2, list2, idName2) => {\n list2.find((_e) => {\n if (_e[idName2] === id2) {\n result = _e;\n } else if (_e.children && _e.children.length !== 0)\n return fn(id2, _e.children, idName2);\n });\n };\n fn(id, list, idName);\n return result;\n}\n\n// utils/obj/judge.ts\nfunction isPlainObject(obj) {\n let proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = {}.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && {}.hasOwnProperty.toString.call(Ctor) === {}.hasOwnProperty.toString.call(Object);\n}\nvar isObject = (val) => val !== null && typeof val === \"object\";\nfunction isDate(val) {\n return toString.call(val) === \"[object Date]\";\n}\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== \"undefined\" && val instanceof URLSearchParams;\n}\n\n// utils/obj/cache.ts\nvar assign = Object.assign;\n\n// utils/input/index.ts\nfunction filterOptionHeadle(input, option) {\n return option.label && option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;\n}\n\n// utils/buildUrl.ts\nfunction encode(val) {\n return encodeURIComponent(val).replace(/%40/g, \"@\").replace(/%3A/gi, \":\").replace(/%24/g, \"$\").replace(/%2C/gi, \",\").replace(/%20/g, \"+\").replace(/%5B/gi, \"[\").replace(/%5D/gi, \"]\");\n}\nfunction buildURL(url, params) {\n if (!params) {\n return url;\n }\n if (isURLSearchParams(params)) {\n return url += (url.includes(\"?\") ? \"&\" : \"?\") + params.toString();\n }\n const parts = [];\n Object.keys(params).forEach((key) => {\n const val = params[key];\n if (val === null || typeof val === \"undefined\") {\n return;\n }\n let tempVal = [];\n if (Array.isArray(val)) {\n tempVal = val;\n key = key + \"[]\";\n } else {\n tempVal = [val];\n }\n tempVal.forEach((temp) => {\n if (isDate(temp)) {\n temp = val.toString();\n } else if (isObject(temp)) {\n temp = JSON.stringify(temp);\n }\n parts.push(`${encode(key)}=${encode(temp)}`);\n });\n });\n const hashmarkIndex = url.indexOf(\"#\");\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.includes(\"?\") ? \"&\" : \"?\") + parts.join(\"&\");\n return url;\n}\nexport {\n arrToTree,\n assign,\n buildURL as buildUrl,\n filterOptionHeadle,\n findTree,\n isDate,\n isObject,\n isPlainObject,\n isURLSearchParams,\n tranListToTreeData\n};\n","<!--\r\n * @Author: Mr.Cong Wei\r\n * @Date: 2022-08-11 09:51:33\r\n * @LastEditTime: 2022-08-11 09:52:04\r\n-->\r\n<template>\r\n <div class=\"relative mt-[8px] w-[30px] h-[23px]\">\r\n <svg\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n version=\"1.1\"\r\n width=\"23px\"\r\n height=\"23px\"\r\n class=\"absolute\"\r\n >\r\n <g transform=\"matrix(1 0 0 1 -256 -275 )\">\r\n <path\r\n d=\"M 2.8482972136223452 0 C 1.2746130030959648 0.028482972136316675 0 1.3030959752322815 0 2.8767801857584345 L 0 20.151702786377655 C 0 21.725386996904035 1.2746130030959648 23 2.8482972136223452 23 L 20.123219814241565 23 C 21.69690402476772 23 22.971517027863683 21.725386996904035 23 20.151702786377655 L 23 2.8767801857584345 C 22.971517027863683 1.3030959752322815 21.69690402476772 0.028482972136316675 20.123219814241565 0 L 2.8482972136223452 0 Z \"\r\n fill-rule=\"nonzero\"\r\n fill=\"#bd9e55\"\r\n stroke=\"none\"\r\n transform=\"matrix(1 0 0 1 256 275 )\"\r\n />\r\n </g>\r\n </svg>\r\n <svg\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n version=\"1.1\"\r\n width=\"23px\"\r\n height=\"23px\"\r\n class=\"absolute left-[7px] bottom-[7px]\"\r\n >\r\n <g transform=\"matrix(1 0 0 1 -263 -268 )\">\r\n <path\r\n d=\"M 2.8767801857584345 0 C 1.3030959752322815 0 0.028482972136316675 1.2746130030959648 0.028482972136316675 2.8482972136223452 L 0.028482972136316675 4.870588235294008 C 0.028482972136316675 5.027244582043295 0.15665634674928697 5.155417956656265 0.31331269349834656 5.155417956656265 L 14.426625386996877 5.155417956656265 C 16.306501547987637 5.155417956656265 17.844582043343735 6.693498452012363 17.844582043343735 8.573374613003125 L 17.844582043343735 22.686687306501653 C 17.844582043343735 22.843343653250713 17.972755417956705 22.971517027863683 18.129411764705992 22.971517027863683 L 20.151702786377655 22.971517027863683 C 21.725386996904035 22.971517027863683 23 21.69690402476772 23 20.123219814241565 L 23 2.8482972136223452 C 23 1.2746130030959648 21.725386996904035 0 20.151702786377655 0 L 2.8767801857584345 0 Z \"\r\n fill-rule=\"nonzero\"\r\n fill=\"#bd9e55\"\r\n stroke=\"none\"\r\n transform=\"matrix(1 0 0 1 263 268 )\"\r\n />\r\n </g>\r\n </svg>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\"></script>\r\n\r\n<style scoped></style>\r\n"],"names":["_loadChildren","obj","list","arr","filter","x","parentId","id","length","children","forEach","tranListToTreeData","results","isObject","val","isDate","toString","call","isURLSearchParams","URLSearchParams","assign","Object","filterOptionHeadle","input","option","label","toLowerCase","indexOf","encode","encodeURIComponent","replace","buildURL","url","params","includes","parts","keys","key","tempVal","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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../../shared/dist/utils/index.mjs","../src/business-ui/component/icon/SelectorIcon.vue?vue&type=template&id=0b124b76&lang.js"],"sourcesContent":["// utils/arr/tree.ts\nfunction arrToTree(list, parentMark, childrenMark) {\n let result = [], temp;\n for (let i = 0; i < list.length; i++) {\n if (!list[i][parentMark]) {\n temp = list.filter(\n (item) => item[parentMark] === list[i][childrenMark]\n );\n if (temp.length > 0) {\n list[i].children = temp;\n }\n result.push(list[i]);\n }\n }\n return result;\n}\nfunction _loadChildren(obj, list) {\n const arr = list.filter((x) => x.parentId == obj.id);\n if (!arr.length)\n return;\n obj.children = arr;\n obj.children.forEach((x) => {\n _loadChildren(x, list);\n });\n return obj;\n}\nfunction tranListToTreeData(list) {\n const results = list.filter((x) => x.parentId == null);\n results.forEach((x) => _loadChildren(x, list));\n return results;\n}\nfunction findTree(id, list, idName) {\n let result;\n if (!list.length)\n return;\n const fn = (id2, list2, idName2) => {\n list2.find((_e) => {\n if (_e[idName2] === id2) {\n result = _e;\n } else if (_e.children && _e.children.length !== 0)\n return fn(id2, _e.children, idName2);\n });\n };\n fn(id, list, idName);\n return result;\n}\n\n// utils/obj/judge.ts\nfunction isPlainObject(obj) {\n let proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = {}.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && {}.hasOwnProperty.toString.call(Ctor) === {}.hasOwnProperty.toString.call(Object);\n}\nvar isObject = (val) => val !== null && typeof val === \"object\";\nfunction isDate(val) {\n return toString.call(val) === \"[object Date]\";\n}\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== \"undefined\" && val instanceof URLSearchParams;\n}\n\n// utils/obj/cache.ts\nvar assign = Object.assign;\n\n// utils/input/index.ts\nfunction filterOptionHeadle(input, option) {\n return option.label && option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;\n}\n\n// utils/buildUrl.ts\nfunction encode(val) {\n return encodeURIComponent(val).replace(/%40/g, \"@\").replace(/%3A/gi, \":\").replace(/%24/g, \"$\").replace(/%2C/gi, \",\").replace(/%20/g, \"+\").replace(/%5B/gi, \"[\").replace(/%5D/gi, \"]\");\n}\nfunction buildURL(url, params) {\n if (!params) {\n return url;\n }\n if (isURLSearchParams(params)) {\n return url += (url.includes(\"?\") ? \"&\" : \"?\") + params.toString();\n }\n const parts = [];\n Object.keys(params).forEach((key) => {\n const val = params[key];\n if (val === null || typeof val === \"undefined\") {\n return;\n }\n let tempVal = [];\n if (Array.isArray(val)) {\n tempVal = val;\n key = key + \"[]\";\n } else {\n tempVal = [val];\n }\n tempVal.forEach((temp) => {\n if (isDate(temp)) {\n temp = val.toString();\n } else if (isObject(temp)) {\n temp = JSON.stringify(temp);\n }\n parts.push(`${encode(key)}=${encode(temp)}`);\n });\n });\n const hashmarkIndex = url.indexOf(\"#\");\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.includes(\"?\") ? \"&\" : \"?\") + parts.join(\"&\");\n return url;\n}\nexport {\n arrToTree,\n assign,\n buildURL as buildUrl,\n filterOptionHeadle,\n findTree,\n isDate,\n isObject,\n isPlainObject,\n isURLSearchParams,\n tranListToTreeData\n};\n","<!--\r\n * @Author: Mr.Cong Wei\r\n * @Date: 2022-08-11 09:51:33\r\n * @LastEditTime: 2022-08-11 09:52:04\r\n-->\r\n<template>\r\n <div class=\"relative mt-[8px] w-[30px] h-[23px]\">\r\n <svg\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n version=\"1.1\"\r\n width=\"23px\"\r\n height=\"23px\"\r\n class=\"absolute\"\r\n >\r\n <g transform=\"matrix(1 0 0 1 -256 -275 )\">\r\n <path\r\n d=\"M 2.8482972136223452 0 C 1.2746130030959648 0.028482972136316675 0 1.3030959752322815 0 2.8767801857584345 L 0 20.151702786377655 C 0 21.725386996904035 1.2746130030959648 23 2.8482972136223452 23 L 20.123219814241565 23 C 21.69690402476772 23 22.971517027863683 21.725386996904035 23 20.151702786377655 L 23 2.8767801857584345 C 22.971517027863683 1.3030959752322815 21.69690402476772 0.028482972136316675 20.123219814241565 0 L 2.8482972136223452 0 Z \"\r\n fill-rule=\"nonzero\"\r\n fill=\"#bd9e55\"\r\n stroke=\"none\"\r\n transform=\"matrix(1 0 0 1 256 275 )\"\r\n />\r\n </g>\r\n </svg>\r\n <svg\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n version=\"1.1\"\r\n width=\"23px\"\r\n height=\"23px\"\r\n class=\"absolute left-[7px] bottom-[7px]\"\r\n >\r\n <g transform=\"matrix(1 0 0 1 -263 -268 )\">\r\n <path\r\n d=\"M 2.8767801857584345 0 C 1.3030959752322815 0 0.028482972136316675 1.2746130030959648 0.028482972136316675 2.8482972136223452 L 0.028482972136316675 4.870588235294008 C 0.028482972136316675 5.027244582043295 0.15665634674928697 5.155417956656265 0.31331269349834656 5.155417956656265 L 14.426625386996877 5.155417956656265 C 16.306501547987637 5.155417956656265 17.844582043343735 6.693498452012363 17.844582043343735 8.573374613003125 L 17.844582043343735 22.686687306501653 C 17.844582043343735 22.843343653250713 17.972755417956705 22.971517027863683 18.129411764705992 22.971517027863683 L 20.151702786377655 22.971517027863683 C 21.725386996904035 22.971517027863683 23 21.69690402476772 23 20.123219814241565 L 23 2.8482972136223452 C 23 1.2746130030959648 21.725386996904035 0 20.151702786377655 0 L 2.8767801857584345 0 Z \"\r\n fill-rule=\"nonzero\"\r\n fill=\"#bd9e55\"\r\n stroke=\"none\"\r\n transform=\"matrix(1 0 0 1 263 268 )\"\r\n />\r\n </g>\r\n </svg>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\"></script>\r\n\r\n<style scoped></style>\r\n"],"names":["_loadChildren","obj","list","arr","filter","x","parentId","id","length","children","forEach","tranListToTreeData","results","isObject","val","isDate","toString","call","isURLSearchParams","URLSearchParams","assign","Object","filterOptionHeadle","input","option","label","toLowerCase","indexOf","encode","encodeURIComponent","replace","buildURL","url","params","includes","parts","keys","key","tempVal","Array","isArray","temp","JSON","stringify","push","hashmarkIndex","slice","join","_hoisted_1","xmlns","version","d","fill","stroke","transform"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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