@king-one/antdv 1.0.25 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.26
4
+
5
+ ### Patch Changes
6
+
7
+ - feat:修改虚拟列表组件的 slot 传值
8
+
3
9
  ## 1.0.25
4
10
 
5
11
  ### Patch Changes
@@ -37,7 +37,7 @@ const T = /* @__PURE__ */ _({
37
37
  key: t.index
38
38
  }, [
39
39
  w(x.$slots, "default", {
40
- item: t.data,
40
+ item: t,
41
41
  index: t.index
42
42
  })
43
43
  ]))),
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../hooks/use-namespace/index.js"),m=require("../hooks/useVirtualList.js"),f=e.defineComponent({__name:"scale-virtual-list",props:{list:{},option:{}},setup(l,{expose:n}){const s=l,{list:a}=e.toRefs(s),{list:o,containerProps:c,wrapperProps:i,scrollTo:u,scaleTo:p}=m.useVirtualList(a,s.option);return n({scrollTo:u,scaleTo:p}),(d,v)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:`${e.unref(r.defaultNamespace)}-scale-virtual-list`},e.unref(c)),[e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(r.defaultNamespace)}-scale-virtual-list-container`)},[e.createElementVNode("div",e.mergeProps({class:`${e.unref(r.defaultNamespace)}-scale-vittual-wrapper`},e.unref(i)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),t=>(e.openBlock(),e.createElementBlock("div",{key:t.index},[e.renderSlot(d.$slots,"default",{item:t.data,index:t.index})]))),128))],16)],2)],16))}});exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../hooks/use-namespace/index.js"),f=require("../hooks/useVirtualList.js"),m=e.defineComponent({__name:"scale-virtual-list",props:{list:{},option:{}},setup(l,{expose:n}){const s=l,{list:o}=e.toRefs(s),{list:a,containerProps:c,wrapperProps:i,scrollTo:u,scaleTo:p}=f.useVirtualList(o,s.option);return n({scrollTo:u,scaleTo:p}),(d,v)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:`${e.unref(r.defaultNamespace)}-scale-virtual-list`},e.unref(c)),[e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(r.defaultNamespace)}-scale-virtual-list-container`)},[e.createElementVNode("div",e.mergeProps({class:`${e.unref(r.defaultNamespace)}-scale-vittual-wrapper`},e.unref(i)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),t=>(e.openBlock(),e.createElementBlock("div",{key:t.index},[e.renderSlot(d.$slots,"default",{item:t,index:t.index})]))),128))],16)],2)],16))}});exports.default=m;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "1.0.25",
4
+ "version": "1.0.26",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",