@cmstops/pro-compo 0.3.25 → 0.3.26

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.
@@ -50,7 +50,7 @@ const _sfc_main = defineComponent({
50
50
  showFolder: { type: Boolean },
51
51
  preview: { type: Boolean }
52
52
  },
53
- emits: ["confirm", "clickDir", "clickItem", "loadMore"],
53
+ emits: ["clickDir", "clickItem", "loadMore"],
54
54
  setup(__props, { emit: __emit }) {
55
55
  const props = __props;
56
56
  const isFold = ref(true);
@@ -65,15 +65,12 @@ const _sfc_main = defineComponent({
65
65
  { immediate: true }
66
66
  );
67
67
  const emit = __emit;
68
- const confirm = (itemData) => {
69
- selectedData.value = [itemData];
70
- emit("confirm", selectedData.value);
71
- };
72
68
  const selectedData = ref([]);
73
69
  const _changeDirectory = (item) => {
74
70
  emit("clickDir", item);
75
71
  };
76
72
  const _clickFileItem = (item) => {
73
+ selectedData.value = [item];
77
74
  emit("clickItem", item);
78
75
  };
79
76
  const _loadFileMore = () => {
@@ -166,7 +163,7 @@ const _sfc_main = defineComponent({
166
163
  createVNode(_sfc_main$1, {
167
164
  "item-data": item,
168
165
  preview: _ctx.preview,
169
- onConfirm: confirm
166
+ onConfirm: _clickFileItem
170
167
  }, null, 8, ["item-data", "preview"])
171
168
  ]),
172
169
  createElementVNode("h4", null, [
@@ -51,7 +51,7 @@ const _sfc_main = vue.defineComponent({
51
51
  showFolder: { type: Boolean },
52
52
  preview: { type: Boolean }
53
53
  },
54
- emits: ["confirm", "clickDir", "clickItem", "loadMore"],
54
+ emits: ["clickDir", "clickItem", "loadMore"],
55
55
  setup(__props, { emit: __emit }) {
56
56
  const props = __props;
57
57
  const isFold = vue.ref(true);
@@ -66,15 +66,12 @@ const _sfc_main = vue.defineComponent({
66
66
  { immediate: true }
67
67
  );
68
68
  const emit = __emit;
69
- const confirm = (itemData) => {
70
- selectedData.value = [itemData];
71
- emit("confirm", selectedData.value);
72
- };
73
69
  const selectedData = vue.ref([]);
74
70
  const _changeDirectory = (item) => {
75
71
  emit("clickDir", item);
76
72
  };
77
73
  const _clickFileItem = (item) => {
74
+ selectedData.value = [item];
78
75
  emit("clickItem", item);
79
76
  };
80
77
  const _loadFileMore = () => {
@@ -167,7 +164,7 @@ const _sfc_main = vue.defineComponent({
167
164
  vue.createVNode(index, {
168
165
  "item-data": item,
169
166
  preview: _ctx.preview,
170
- onConfirm: confirm
167
+ onConfirm: _clickFileItem
171
168
  }, null, 8, ["item-data", "preview"])
172
169
  ]),
173
170
  vue.createElementVNode("h4", null, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",