@cmstops/pro-compo 0.1.22 → 0.1.24

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.
@@ -73,13 +73,13 @@ const _sfc_main = defineComponent({
73
73
  });
74
74
  const _parmas = { ..._form };
75
75
  Object.keys(_parmas).forEach((key) => {
76
- var _a, _b;
77
- if (((_b = (_a = _parmas[key]) == null ? void 0 : _a.range) == null ? void 0 : _b.length) > 0) {
76
+ if (typeof _parmas[key] === "object" && Object.prototype.hasOwnProperty.call(_parmas[key], "range")) {
78
77
  delete _parmas[key];
79
78
  }
80
79
  });
81
80
  Object.keys(_parmas).forEach((key) => {
82
- if (_parmas[key] === columnsMap.value[key].defaultValue) {
81
+ var _a;
82
+ if (_parmas[key] === ((_a = columnsMap.value[key]) == null ? void 0 : _a.defaultValue)) {
83
83
  delete _parmas[key];
84
84
  }
85
85
  });
@@ -79,6 +79,7 @@ const _sfc_main = defineComponent({
79
79
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dataList.value = $event),
80
80
  animation: 150,
81
81
  sort: unref(dragalbeProps),
82
+ "item-key": "id",
82
83
  onChange: sortChange,
83
84
  onStart: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("dragstart"))
84
85
  }, {
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, onMounted, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, toDisplayString, createCommentVNode, createElementVNode, renderSlot } from "vue";
1
+ import { defineComponent, ref, onMounted, unref, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, toDisplayString, createCommentVNode, createElementVNode, renderSlot } from "vue";
2
2
  function __variableDynamicImportRuntime0__(path) {
3
3
  switch (path) {
4
4
  case "./svg/acount.vue":
@@ -53,7 +53,7 @@ const _sfc_main = defineComponent({
53
53
  },
54
54
  setup(__props) {
55
55
  const props = __props;
56
- const dynamicComponent = ref(null);
56
+ let dynamicComponent = null;
57
57
  const tipMap = ref({
58
58
  add: "\u6DFB\u52A0\u5185\u5BB9",
59
59
  acount: "\u6682\u65E0\u8D26\u53F7",
@@ -71,21 +71,22 @@ const _sfc_main = defineComponent({
71
71
  });
72
72
  const loadComponent = async (componentName) => {
73
73
  const component = await __variableDynamicImportRuntime0__(`./svg/${componentName}.vue`);
74
- dynamicComponent.value = component.default;
74
+ dynamicComponent = component.default;
75
75
  };
76
76
  onMounted(() => {
77
77
  loadComponent(props.type);
78
78
  });
79
79
  return (_ctx, _cache) => {
80
- return openBlock(), createElementBlock("div", {
80
+ return unref(dynamicComponent) ? (openBlock(), createElementBlock("div", {
81
+ key: 0,
81
82
  class: normalizeClass(["empty-data-container", { small: _ctx.size === "small" }])
82
83
  }, [
83
- (openBlock(), createBlock(resolveDynamicComponent(dynamicComponent.value))),
84
+ (openBlock(), createBlock(resolveDynamicComponent(unref(dynamicComponent)))),
84
85
  !_ctx.noTip ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(_ctx.customTip ? _ctx.customTip : tipMap.value[_ctx.type]), 1)) : createCommentVNode("v-if", true),
85
86
  createElementVNode("div", _hoisted_2, [
86
87
  renderSlot(_ctx.$slots, "extra")
87
88
  ])
88
- ], 2);
89
+ ], 2)) : createCommentVNode("v-if", true);
89
90
  };
90
91
  }
91
92
  });
@@ -74,13 +74,13 @@ const _sfc_main = vue.defineComponent({
74
74
  });
75
75
  const _parmas = { ..._form };
76
76
  Object.keys(_parmas).forEach((key) => {
77
- var _a, _b;
78
- if (((_b = (_a = _parmas[key]) == null ? void 0 : _a.range) == null ? void 0 : _b.length) > 0) {
77
+ if (typeof _parmas[key] === "object" && Object.prototype.hasOwnProperty.call(_parmas[key], "range")) {
79
78
  delete _parmas[key];
80
79
  }
81
80
  });
82
81
  Object.keys(_parmas).forEach((key) => {
83
- if (_parmas[key] === columnsMap.value[key].defaultValue) {
82
+ var _a;
83
+ if (_parmas[key] === ((_a = columnsMap.value[key]) == null ? void 0 : _a.defaultValue)) {
84
84
  delete _parmas[key];
85
85
  }
86
86
  });
@@ -84,6 +84,7 @@ const _sfc_main = vue.defineComponent({
84
84
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dataList.value = $event),
85
85
  animation: 150,
86
86
  sort: vue.unref(dragalbeProps),
87
+ "item-key": "id",
87
88
  onChange: sortChange,
88
89
  onStart: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("dragstart"))
89
90
  }, {
@@ -85,7 +85,7 @@ const _sfc_main = vue.defineComponent({
85
85
  },
86
86
  setup(__props) {
87
87
  const props = __props;
88
- const dynamicComponent = vue.ref(null);
88
+ let dynamicComponent = null;
89
89
  const tipMap = vue.ref({
90
90
  add: "\u6DFB\u52A0\u5185\u5BB9",
91
91
  acount: "\u6682\u65E0\u8D26\u53F7",
@@ -103,21 +103,22 @@ const _sfc_main = vue.defineComponent({
103
103
  });
104
104
  const loadComponent = async (componentName) => {
105
105
  const component = await __variableDynamicImportRuntime0__(`./svg/${componentName}.vue`);
106
- dynamicComponent.value = component.default;
106
+ dynamicComponent = component.default;
107
107
  };
108
108
  vue.onMounted(() => {
109
109
  loadComponent(props.type);
110
110
  });
111
111
  return (_ctx, _cache) => {
112
- return vue.openBlock(), vue.createElementBlock("div", {
112
+ return vue.unref(dynamicComponent) ? (vue.openBlock(), vue.createElementBlock("div", {
113
+ key: 0,
113
114
  class: vue.normalizeClass(["empty-data-container", { small: _ctx.size === "small" }])
114
115
  }, [
115
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(dynamicComponent.value))),
116
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(dynamicComponent)))),
116
117
  !_ctx.noTip ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, vue.toDisplayString(_ctx.customTip ? _ctx.customTip : tipMap.value[_ctx.type]), 1)) : vue.createCommentVNode("v-if", true),
117
118
  vue.createElementVNode("div", _hoisted_2, [
118
119
  vue.renderSlot(_ctx.$slots, "extra")
119
120
  ])
120
- ], 2);
121
+ ], 2)) : vue.createCommentVNode("v-if", true);
121
122
  };
122
123
  }
123
124
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",