iv-npm 1.0.39 → 1.0.42

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.0.39",
3
+ "version": "1.0.42",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -598,7 +598,7 @@ var script = /*#__PURE__*/vue.defineComponent({
598
598
  },
599
599
  params: {
600
600
  type: Object,
601
- required: true
601
+ required: false
602
602
  },
603
603
  replaceFields: {
604
604
  type: Object,
@@ -619,6 +619,13 @@ var script = /*#__PURE__*/vue.defineComponent({
619
619
  vue.onBeforeMount(function () {
620
620
  getData();
621
621
  });
622
+ /**
623
+ * 侦听器-------------------------------------
624
+ * */
625
+
626
+ vue.watch(props, function () {
627
+ console.log(props, "11111111111111111111111122222222222222222222");
628
+ });
622
629
  /**
623
630
  * 获取数据-------------------------------------
624
631
  * */
@@ -626,25 +633,24 @@ var script = /*#__PURE__*/vue.defineComponent({
626
633
  var dataV = vue.ref();
627
634
 
628
635
  var getData = /*#__PURE__*/function () {
629
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
630
- var _option,
631
- _a,
632
- _yield$formatHTTP,
633
- items,
634
- _args = arguments;
636
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_option) {
637
+ var _a, _b, _yield$formatHTTP, items;
635
638
 
636
639
  return _regeneratorRuntime().wrap(function _callee$(_context) {
637
640
  while (1) {
638
641
  switch (_context.prev = _context.next) {
639
642
  case 0:
640
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {
641
- params: assign(props.params, {
642
- type: 1
643
- })
644
- };
643
+ if (_option === void 0) {
644
+ _option = {
645
+ params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
646
+ type: 1
647
+ })
648
+ };
649
+ }
650
+
645
651
  _context.next = 3;
646
652
  return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
647
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
653
+ data: (_b = _option.data) !== null && _b !== void 0 ? _b : null
648
654
  }, API_OPTION.getIVMrpOrgDropdown.option)));
649
655
 
650
656
  case 3:
@@ -660,7 +666,7 @@ var script = /*#__PURE__*/vue.defineComponent({
660
666
  }, _callee);
661
667
  }));
662
668
 
663
- return function getData() {
669
+ return function getData(_x) {
664
670
  return _ref2.apply(this, arguments);
665
671
  };
666
672
  }();
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, onBeforeMount, computed, unref, isRef, createElementVNode } from 'vue';
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, onBeforeMount, watch, computed, unref, isRef, createElementVNode } from 'vue';
2
2
 
3
3
  var _hoisted_1$1 = /*#__PURE__*/createTextVNode("npm包");
4
4
  /**
@@ -594,7 +594,7 @@ var script = /*#__PURE__*/defineComponent({
594
594
  },
595
595
  params: {
596
596
  type: Object,
597
- required: true
597
+ required: false
598
598
  },
599
599
  replaceFields: {
600
600
  type: Object,
@@ -615,6 +615,13 @@ var script = /*#__PURE__*/defineComponent({
615
615
  onBeforeMount(function () {
616
616
  getData();
617
617
  });
618
+ /**
619
+ * 侦听器-------------------------------------
620
+ * */
621
+
622
+ watch(props, function () {
623
+ console.log(props, "11111111111111111111111122222222222222222222");
624
+ });
618
625
  /**
619
626
  * 获取数据-------------------------------------
620
627
  * */
@@ -622,25 +629,24 @@ var script = /*#__PURE__*/defineComponent({
622
629
  var dataV = ref();
623
630
 
624
631
  var getData = /*#__PURE__*/function () {
625
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
626
- var _option,
627
- _a,
628
- _yield$formatHTTP,
629
- items,
630
- _args = arguments;
632
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_option) {
633
+ var _a, _b, _yield$formatHTTP, items;
631
634
 
632
635
  return _regeneratorRuntime().wrap(function _callee$(_context) {
633
636
  while (1) {
634
637
  switch (_context.prev = _context.next) {
635
638
  case 0:
636
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {
637
- params: assign(props.params, {
638
- type: 1
639
- })
640
- };
639
+ if (_option === void 0) {
640
+ _option = {
641
+ params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
642
+ type: 1
643
+ })
644
+ };
645
+ }
646
+
641
647
  _context.next = 3;
642
648
  return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
643
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
649
+ data: (_b = _option.data) !== null && _b !== void 0 ? _b : null
644
650
  }, API_OPTION.getIVMrpOrgDropdown.option)));
645
651
 
646
652
  case 3:
@@ -656,7 +662,7 @@ var script = /*#__PURE__*/defineComponent({
656
662
  }, _callee);
657
663
  }));
658
664
 
659
- return function getData() {
665
+ return function getData(_x) {
660
666
  return _ref2.apply(this, arguments);
661
667
  };
662
668
  }();
@@ -598,7 +598,7 @@
598
598
  },
599
599
  params: {
600
600
  type: Object,
601
- required: true
601
+ required: false
602
602
  },
603
603
  replaceFields: {
604
604
  type: Object,
@@ -619,6 +619,13 @@
619
619
  vue.onBeforeMount(function () {
620
620
  getData();
621
621
  });
622
+ /**
623
+ * 侦听器-------------------------------------
624
+ * */
625
+
626
+ vue.watch(props, function () {
627
+ console.log(props, "11111111111111111111111122222222222222222222");
628
+ });
622
629
  /**
623
630
  * 获取数据-------------------------------------
624
631
  * */
@@ -626,25 +633,24 @@
626
633
  var dataV = vue.ref();
627
634
 
628
635
  var getData = /*#__PURE__*/function () {
629
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
630
- var _option,
631
- _a,
632
- _yield$formatHTTP,
633
- items,
634
- _args = arguments;
636
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_option) {
637
+ var _a, _b, _yield$formatHTTP, items;
635
638
 
636
639
  return _regeneratorRuntime().wrap(function _callee$(_context) {
637
640
  while (1) {
638
641
  switch (_context.prev = _context.next) {
639
642
  case 0:
640
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {
641
- params: assign(props.params, {
642
- type: 1
643
- })
644
- };
643
+ if (_option === void 0) {
644
+ _option = {
645
+ params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
646
+ type: 1
647
+ })
648
+ };
649
+ }
650
+
645
651
  _context.next = 3;
646
652
  return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
647
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
653
+ data: (_b = _option.data) !== null && _b !== void 0 ? _b : null
648
654
  }, API_OPTION.getIVMrpOrgDropdown.option)));
649
655
 
650
656
  case 3:
@@ -660,7 +666,7 @@
660
666
  }, _callee);
661
667
  }));
662
668
 
663
- return function getData() {
669
+ return function getData(_x) {
664
670
  return _ref2.apply(this, arguments);
665
671
  };
666
672
  }();