iv-npm 1.0.44 → 1.0.47
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/index.cjs.js +53 -26
- package/packages/ui/dist/index.esm.js +54 -27
- package/packages/ui/dist/index.umd.js +53 -26
package/package.json
CHANGED
|
@@ -616,21 +616,26 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
616
616
|
* 生命周期-------------------------------------
|
|
617
617
|
* */
|
|
618
618
|
|
|
619
|
-
vue.onBeforeMount(function () {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
619
|
+
vue.onBeforeMount(function () {// getData();
|
|
620
|
+
}); // watch(props, () => {
|
|
621
|
+
// console.log(
|
|
622
|
+
// props.params,
|
|
623
|
+
// "props11111111111111111111111122222222222222222222"
|
|
624
|
+
// );
|
|
625
|
+
// });
|
|
626
|
+
// watch(
|
|
627
|
+
// () => props.params,
|
|
628
|
+
// () => {
|
|
629
|
+
// console.log(
|
|
630
|
+
// props.params,
|
|
631
|
+
// "props.params11111111111111111111111122222222222222222222"
|
|
632
|
+
// );
|
|
633
|
+
// },
|
|
634
|
+
// {
|
|
635
|
+
// deep: true,
|
|
636
|
+
// }
|
|
637
|
+
// );
|
|
625
638
|
|
|
626
|
-
vue.watch(props, function () {
|
|
627
|
-
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
628
|
-
});
|
|
629
|
-
vue.watch(function () {
|
|
630
|
-
return props.params;
|
|
631
|
-
}, function () {
|
|
632
|
-
console.log(props.params, "props.params11111111111111111111111122222222222222222222");
|
|
633
|
-
});
|
|
634
639
|
/**
|
|
635
640
|
* 获取数据-------------------------------------
|
|
636
641
|
* */
|
|
@@ -638,24 +643,21 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
638
643
|
var dataV = vue.ref();
|
|
639
644
|
|
|
640
645
|
var getData = /*#__PURE__*/function () {
|
|
641
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(
|
|
642
|
-
var
|
|
646
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
647
|
+
var _option,
|
|
648
|
+
_a,
|
|
649
|
+
_yield$formatHTTP,
|
|
650
|
+
items,
|
|
651
|
+
_args = arguments;
|
|
643
652
|
|
|
644
653
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
645
654
|
while (1) {
|
|
646
655
|
switch (_context.prev = _context.next) {
|
|
647
656
|
case 0:
|
|
648
|
-
|
|
649
|
-
_option = {
|
|
650
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
651
|
-
type: 1
|
|
652
|
-
})
|
|
653
|
-
};
|
|
654
|
-
}
|
|
655
|
-
|
|
657
|
+
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
656
658
|
_context.next = 3;
|
|
657
659
|
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
658
|
-
data: (
|
|
660
|
+
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
659
661
|
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
660
662
|
|
|
661
663
|
case 3:
|
|
@@ -671,7 +673,7 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
671
673
|
}, _callee);
|
|
672
674
|
}));
|
|
673
675
|
|
|
674
|
-
return function getData(
|
|
676
|
+
return function getData() {
|
|
675
677
|
return _ref2.apply(this, arguments);
|
|
676
678
|
};
|
|
677
679
|
}();
|
|
@@ -694,6 +696,31 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
694
696
|
emit("update:value", value);
|
|
695
697
|
}
|
|
696
698
|
});
|
|
699
|
+
/**
|
|
700
|
+
* 侦听器-------------------------------------
|
|
701
|
+
* */
|
|
702
|
+
|
|
703
|
+
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
704
|
+
var _a;
|
|
705
|
+
|
|
706
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
707
|
+
while (1) {
|
|
708
|
+
switch (_context2.prev = _context2.next) {
|
|
709
|
+
case 0:
|
|
710
|
+
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
711
|
+
getData({
|
|
712
|
+
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
713
|
+
type: 1
|
|
714
|
+
})
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
case 2:
|
|
718
|
+
case "end":
|
|
719
|
+
return _context2.stop();
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}, _callee2);
|
|
723
|
+
})));
|
|
697
724
|
return function (_ctx, _cache) {
|
|
698
725
|
var _component_a_tree_select = vue.resolveComponent("a-tree-select");
|
|
699
726
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, onBeforeMount,
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, onBeforeMount, computed, watchEffect, unref, isRef, createElementVNode } from 'vue';
|
|
2
2
|
|
|
3
3
|
var _hoisted_1$1 = /*#__PURE__*/createTextVNode("npm包");
|
|
4
4
|
/**
|
|
@@ -612,21 +612,26 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
612
612
|
* 生命周期-------------------------------------
|
|
613
613
|
* */
|
|
614
614
|
|
|
615
|
-
onBeforeMount(function () {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
615
|
+
onBeforeMount(function () {// getData();
|
|
616
|
+
}); // watch(props, () => {
|
|
617
|
+
// console.log(
|
|
618
|
+
// props.params,
|
|
619
|
+
// "props11111111111111111111111122222222222222222222"
|
|
620
|
+
// );
|
|
621
|
+
// });
|
|
622
|
+
// watch(
|
|
623
|
+
// () => props.params,
|
|
624
|
+
// () => {
|
|
625
|
+
// console.log(
|
|
626
|
+
// props.params,
|
|
627
|
+
// "props.params11111111111111111111111122222222222222222222"
|
|
628
|
+
// );
|
|
629
|
+
// },
|
|
630
|
+
// {
|
|
631
|
+
// deep: true,
|
|
632
|
+
// }
|
|
633
|
+
// );
|
|
621
634
|
|
|
622
|
-
watch(props, function () {
|
|
623
|
-
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
624
|
-
});
|
|
625
|
-
watch(function () {
|
|
626
|
-
return props.params;
|
|
627
|
-
}, function () {
|
|
628
|
-
console.log(props.params, "props.params11111111111111111111111122222222222222222222");
|
|
629
|
-
});
|
|
630
635
|
/**
|
|
631
636
|
* 获取数据-------------------------------------
|
|
632
637
|
* */
|
|
@@ -634,24 +639,21 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
634
639
|
var dataV = ref();
|
|
635
640
|
|
|
636
641
|
var getData = /*#__PURE__*/function () {
|
|
637
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(
|
|
638
|
-
var
|
|
642
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
643
|
+
var _option,
|
|
644
|
+
_a,
|
|
645
|
+
_yield$formatHTTP,
|
|
646
|
+
items,
|
|
647
|
+
_args = arguments;
|
|
639
648
|
|
|
640
649
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
641
650
|
while (1) {
|
|
642
651
|
switch (_context.prev = _context.next) {
|
|
643
652
|
case 0:
|
|
644
|
-
|
|
645
|
-
_option = {
|
|
646
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
647
|
-
type: 1
|
|
648
|
-
})
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
|
|
653
|
+
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
652
654
|
_context.next = 3;
|
|
653
655
|
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
654
|
-
data: (
|
|
656
|
+
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
655
657
|
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
656
658
|
|
|
657
659
|
case 3:
|
|
@@ -667,7 +669,7 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
667
669
|
}, _callee);
|
|
668
670
|
}));
|
|
669
671
|
|
|
670
|
-
return function getData(
|
|
672
|
+
return function getData() {
|
|
671
673
|
return _ref2.apply(this, arguments);
|
|
672
674
|
};
|
|
673
675
|
}();
|
|
@@ -690,6 +692,31 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
690
692
|
emit("update:value", value);
|
|
691
693
|
}
|
|
692
694
|
});
|
|
695
|
+
/**
|
|
696
|
+
* 侦听器-------------------------------------
|
|
697
|
+
* */
|
|
698
|
+
|
|
699
|
+
watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
700
|
+
var _a;
|
|
701
|
+
|
|
702
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
703
|
+
while (1) {
|
|
704
|
+
switch (_context2.prev = _context2.next) {
|
|
705
|
+
case 0:
|
|
706
|
+
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
707
|
+
getData({
|
|
708
|
+
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
709
|
+
type: 1
|
|
710
|
+
})
|
|
711
|
+
});
|
|
712
|
+
|
|
713
|
+
case 2:
|
|
714
|
+
case "end":
|
|
715
|
+
return _context2.stop();
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}, _callee2);
|
|
719
|
+
})));
|
|
693
720
|
return function (_ctx, _cache) {
|
|
694
721
|
var _component_a_tree_select = resolveComponent("a-tree-select");
|
|
695
722
|
|
|
@@ -616,21 +616,26 @@
|
|
|
616
616
|
* 生命周期-------------------------------------
|
|
617
617
|
* */
|
|
618
618
|
|
|
619
|
-
vue.onBeforeMount(function () {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
619
|
+
vue.onBeforeMount(function () {// getData();
|
|
620
|
+
}); // watch(props, () => {
|
|
621
|
+
// console.log(
|
|
622
|
+
// props.params,
|
|
623
|
+
// "props11111111111111111111111122222222222222222222"
|
|
624
|
+
// );
|
|
625
|
+
// });
|
|
626
|
+
// watch(
|
|
627
|
+
// () => props.params,
|
|
628
|
+
// () => {
|
|
629
|
+
// console.log(
|
|
630
|
+
// props.params,
|
|
631
|
+
// "props.params11111111111111111111111122222222222222222222"
|
|
632
|
+
// );
|
|
633
|
+
// },
|
|
634
|
+
// {
|
|
635
|
+
// deep: true,
|
|
636
|
+
// }
|
|
637
|
+
// );
|
|
625
638
|
|
|
626
|
-
vue.watch(props, function () {
|
|
627
|
-
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
628
|
-
});
|
|
629
|
-
vue.watch(function () {
|
|
630
|
-
return props.params;
|
|
631
|
-
}, function () {
|
|
632
|
-
console.log(props.params, "props.params11111111111111111111111122222222222222222222");
|
|
633
|
-
});
|
|
634
639
|
/**
|
|
635
640
|
* 获取数据-------------------------------------
|
|
636
641
|
* */
|
|
@@ -638,24 +643,21 @@
|
|
|
638
643
|
var dataV = vue.ref();
|
|
639
644
|
|
|
640
645
|
var getData = /*#__PURE__*/function () {
|
|
641
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(
|
|
642
|
-
var
|
|
646
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
647
|
+
var _option,
|
|
648
|
+
_a,
|
|
649
|
+
_yield$formatHTTP,
|
|
650
|
+
items,
|
|
651
|
+
_args = arguments;
|
|
643
652
|
|
|
644
653
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
645
654
|
while (1) {
|
|
646
655
|
switch (_context.prev = _context.next) {
|
|
647
656
|
case 0:
|
|
648
|
-
|
|
649
|
-
_option = {
|
|
650
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
651
|
-
type: 1
|
|
652
|
-
})
|
|
653
|
-
};
|
|
654
|
-
}
|
|
655
|
-
|
|
657
|
+
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
656
658
|
_context.next = 3;
|
|
657
659
|
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
658
|
-
data: (
|
|
660
|
+
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
659
661
|
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
660
662
|
|
|
661
663
|
case 3:
|
|
@@ -671,7 +673,7 @@
|
|
|
671
673
|
}, _callee);
|
|
672
674
|
}));
|
|
673
675
|
|
|
674
|
-
return function getData(
|
|
676
|
+
return function getData() {
|
|
675
677
|
return _ref2.apply(this, arguments);
|
|
676
678
|
};
|
|
677
679
|
}();
|
|
@@ -694,6 +696,31 @@
|
|
|
694
696
|
emit("update:value", value);
|
|
695
697
|
}
|
|
696
698
|
});
|
|
699
|
+
/**
|
|
700
|
+
* 侦听器-------------------------------------
|
|
701
|
+
* */
|
|
702
|
+
|
|
703
|
+
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
704
|
+
var _a;
|
|
705
|
+
|
|
706
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
707
|
+
while (1) {
|
|
708
|
+
switch (_context2.prev = _context2.next) {
|
|
709
|
+
case 0:
|
|
710
|
+
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
711
|
+
getData({
|
|
712
|
+
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
713
|
+
type: 1
|
|
714
|
+
})
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
case 2:
|
|
718
|
+
case "end":
|
|
719
|
+
return _context2.stop();
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}, _callee2);
|
|
723
|
+
})));
|
|
697
724
|
return function (_ctx, _cache) {
|
|
698
725
|
var _component_a_tree_select = vue.resolveComponent("a-tree-select");
|
|
699
726
|
|