iv-npm 1.1.20 → 1.1.21

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.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -39,13 +39,15 @@ var script$9 = /*#__PURE__*/vue.defineComponent({
39
39
  }, function () {
40
40
  return console.log(props.show);
41
41
  });
42
- var isShow = vue.ref(props.show);
43
-
44
- function cancel() {
45
- emit("update:show", false);
46
- emit("cancelHandle", false);
47
- }
48
-
42
+ var inputV = vue.computed({
43
+ get: function get() {
44
+ return props.show;
45
+ },
46
+ set: function set(value) {
47
+ emit("update:show", value);
48
+ emit("cancelHandle", value);
49
+ }
50
+ });
49
51
  return function (_ctx, _cache) {
50
52
  var _component_close_circle_outlined = vue.resolveComponent("close-circle-outlined");
51
53
 
@@ -53,11 +55,10 @@ var script$9 = /*#__PURE__*/vue.defineComponent({
53
55
 
54
56
  return vue.openBlock(), vue.createBlock(_component_a_modal, {
55
57
  wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
56
- visible: isShow.value,
58
+ visible: vue.unref(inputV),
57
59
  "onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
58
- return isShow.value = $event;
60
+ return vue.isRef(inputV) ? inputV.value = $event : null;
59
61
  }),
60
- onCancel: cancel,
61
62
  destroyOnClose: "",
62
63
  footer: null
63
64
  }, {
@@ -709,7 +710,6 @@ var script$8 = /*#__PURE__*/vue.defineComponent({
709
710
 
710
711
  vue.onMounted(function () {
711
712
  var div = document.querySelector(".mrpTable");
712
- console.log(div);
713
713
  mrpTableOffsetWidth.value = div.offsetWidth; // 监听滚动条位置
714
714
 
715
715
  window.addEventListener("scroll", scrollTop, true);
@@ -1,4 +1,4 @@
1
- import { defineComponent, watch, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, onMounted, onBeforeUnmount, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, renderList, normalizeClass, createTextVNode, toDisplayString, unref, pushScopeId, popScopeId, createStaticVNode, reactive, computed, watchEffect, isRef, onBeforeMount, withKeys, withModifiers } from 'vue';
1
+ import { defineComponent, watch, 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, watchEffect, onBeforeMount, withKeys, withModifiers } from 'vue';
2
2
 
3
3
  /**
4
4
  * show:Boolean 是否显示弹窗 v-model:show="Visible"
@@ -35,13 +35,15 @@ var script$9 = /*#__PURE__*/defineComponent({
35
35
  }, function () {
36
36
  return console.log(props.show);
37
37
  });
38
- var isShow = ref(props.show);
39
-
40
- function cancel() {
41
- emit("update:show", false);
42
- emit("cancelHandle", false);
43
- }
44
-
38
+ var inputV = computed({
39
+ get: function get() {
40
+ return props.show;
41
+ },
42
+ set: function set(value) {
43
+ emit("update:show", value);
44
+ emit("cancelHandle", value);
45
+ }
46
+ });
45
47
  return function (_ctx, _cache) {
46
48
  var _component_close_circle_outlined = resolveComponent("close-circle-outlined");
47
49
 
@@ -49,11 +51,10 @@ var script$9 = /*#__PURE__*/defineComponent({
49
51
 
50
52
  return openBlock(), createBlock(_component_a_modal, {
51
53
  wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
52
- visible: isShow.value,
54
+ visible: unref(inputV),
53
55
  "onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
54
- return isShow.value = $event;
56
+ return isRef(inputV) ? inputV.value = $event : null;
55
57
  }),
56
- onCancel: cancel,
57
58
  destroyOnClose: "",
58
59
  footer: null
59
60
  }, {
@@ -705,7 +706,6 @@ var script$8 = /*#__PURE__*/defineComponent({
705
706
 
706
707
  onMounted(function () {
707
708
  var div = document.querySelector(".mrpTable");
708
- console.log(div);
709
709
  mrpTableOffsetWidth.value = div.offsetWidth; // 监听滚动条位置
710
710
 
711
711
  window.addEventListener("scroll", scrollTop, true);
@@ -39,13 +39,15 @@
39
39
  }, function () {
40
40
  return console.log(props.show);
41
41
  });
42
- var isShow = vue.ref(props.show);
43
-
44
- function cancel() {
45
- emit("update:show", false);
46
- emit("cancelHandle", false);
47
- }
48
-
42
+ var inputV = vue.computed({
43
+ get: function get() {
44
+ return props.show;
45
+ },
46
+ set: function set(value) {
47
+ emit("update:show", value);
48
+ emit("cancelHandle", value);
49
+ }
50
+ });
49
51
  return function (_ctx, _cache) {
50
52
  var _component_close_circle_outlined = vue.resolveComponent("close-circle-outlined");
51
53
 
@@ -53,11 +55,10 @@
53
55
 
54
56
  return vue.openBlock(), vue.createBlock(_component_a_modal, {
55
57
  wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
56
- visible: isShow.value,
58
+ visible: vue.unref(inputV),
57
59
  "onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
58
- return isShow.value = $event;
60
+ return vue.isRef(inputV) ? inputV.value = $event : null;
59
61
  }),
60
- onCancel: cancel,
61
62
  destroyOnClose: "",
62
63
  footer: null
63
64
  }, {
@@ -709,7 +710,6 @@
709
710
 
710
711
  vue.onMounted(function () {
711
712
  var div = document.querySelector(".mrpTable");
712
- console.log(div);
713
713
  mrpTableOffsetWidth.value = div.offsetWidth; // 监听滚动条位置
714
714
 
715
715
  window.addEventListener("scroll", scrollTop, true);