@wfrog/vc-ui 1.5.2 → 1.5.3

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.
@@ -96,6 +96,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
96
  stop: "",
97
97
  onClick: ($event) => emits("modify", item.value, item)
98
98
  }, null, 8, ["onClick"])) : createCommentVNode("", true),
99
+ renderSlot(_ctx.$slots, "action", {
100
+ data: item,
101
+ index
102
+ }),
99
103
  __props.actions.includes("remove") ? (openBlock(), createBlock(Component$3, {
100
104
  key: 2,
101
105
  title: "删除",
@@ -6,6 +6,10 @@ declare function __VLS_template(): {
6
6
  data: IExplorerListItem<any>;
7
7
  index: number;
8
8
  }): any;
9
+ action?(_: {
10
+ data: IExplorerListItem<any>;
11
+ index: number;
12
+ }): any;
9
13
  };
10
14
  refs: {};
11
15
  rootEl: any;
@@ -116,6 +116,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
116
116
  stop: "",
117
117
  onClick: ($event) => emits("modify", node.data.value, node)
118
118
  }, null, 8, ["onClick"])) : createCommentVNode("", true),
119
+ renderSlot(_ctx.$slots, "action", {
120
+ data: node.data,
121
+ index: node.index
122
+ }),
119
123
  __props.actions.includes("remove") ? (openBlock(), createBlock(Component$3, {
120
124
  key: 2,
121
125
  confirm: __props.confirmParams(node),
@@ -9,6 +9,10 @@ declare function __VLS_template(): {
9
9
  data: any;
10
10
  index: any;
11
11
  }): any;
12
+ action?(_: {
13
+ data: any;
14
+ index: any;
15
+ }): any;
12
16
  };
13
17
  refs: {
14
18
  treeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfrog/vc-ui",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "packageManager": "pnpm@10.20.0",
5
5
  "description": "vue3 组件库 vc-ui",
6
6
  "author": "wellfrog",
@@ -1,5 +0,0 @@
1
- interface IPropType {
2
- name: string;
3
- }
4
- declare const _default: import('vue').DefineComponent<IPropType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IPropType> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
- export default _default;