@king-one/antdv 1.0.24 → 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,17 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.26
4
+
5
+ ### Patch Changes
6
+
7
+ - feat:修改虚拟列表组件的 slot 传值
8
+
9
+ ## 1.0.25
10
+
11
+ ### Patch Changes
12
+
13
+ - fix: 修复虚拟列表组件
14
+
3
15
  ## 1.0.24
4
16
 
5
17
  ### Patch Changes
@@ -1,44 +1,44 @@
1
- import { defineComponent as x, openBlock as t, createElementBlock as s, mergeProps as a, unref as e, createElementVNode as n, normalizeClass as _, Fragment as $, renderList as k, renderSlot as P } from "vue";
2
- import { defaultNamespace as l } from "../../../hooks/use-namespace/index.mjs";
3
- import { useVirtualList as g } from "../hooks/useVirtualList.mjs";
4
- const L = /* @__PURE__ */ x({
1
+ import { defineComponent as _, toRefs as $, openBlock as s, createElementBlock as r, mergeProps as a, unref as e, createElementVNode as n, normalizeClass as k, Fragment as P, renderList as g, renderSlot as w } from "vue";
2
+ import { defaultNamespace as o } from "../../../hooks/use-namespace/index.mjs";
3
+ import { useVirtualList as B } from "../hooks/useVirtualList.mjs";
4
+ const T = /* @__PURE__ */ _({
5
5
  __name: "scale-virtual-list",
6
6
  props: {
7
7
  list: {},
8
8
  option: {}
9
9
  },
10
10
  setup(i, { expose: c }) {
11
- const o = i, { list: p, containerProps: u, wrapperProps: d, scrollTo: m, scaleTo: f } = g(o.list, o.option);
11
+ const l = i, { list: p } = $(l), { list: u, containerProps: d, wrapperProps: m, scrollTo: f, scaleTo: v } = B(p, l.option);
12
12
  return c({
13
- scrollTo: m,
14
- scaleTo: f
15
- }), (v, w) => (t(), s(
13
+ scrollTo: f,
14
+ scaleTo: v
15
+ }), (x, C) => (s(), r(
16
16
  "div",
17
17
  a({
18
- class: `${e(l)}-scale-virtual-list`
19
- }, e(u)),
18
+ class: `${e(o)}-scale-virtual-list`
19
+ }, e(d)),
20
20
  [
21
21
  n(
22
22
  "div",
23
23
  {
24
- class: _(`${e(l)}-scale-virtual-list-container`)
24
+ class: k(`${e(o)}-scale-virtual-list-container`)
25
25
  },
26
26
  [
27
27
  n(
28
28
  "div",
29
29
  a({
30
- class: `${e(l)}-scale-vittual-wrapper`
31
- }, e(d)),
30
+ class: `${e(o)}-scale-vittual-wrapper`
31
+ }, e(m)),
32
32
  [
33
- (t(!0), s(
34
- $,
33
+ (s(!0), r(
34
+ P,
35
35
  null,
36
- k(e(p), (r) => (t(), s("div", {
37
- key: r.index
36
+ g(e(u), (t) => (s(), r("div", {
37
+ key: t.index
38
38
  }, [
39
- P(v.$slots, "default", {
40
- item: r,
41
- index: r.index
39
+ w(x.$slots, "default", {
40
+ item: t,
41
+ index: t.index
42
42
  })
43
43
  ]))),
44
44
  128
@@ -59,5 +59,5 @@ const L = /* @__PURE__ */ x({
59
59
  }
60
60
  });
61
61
  export {
62
- L as default
62
+ T as default
63
63
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../../hooks/use-namespace/index.js"),d=require("../hooks/useVirtualList.js"),f=e.defineComponent({__name:"scale-virtual-list",props:{list:{},option:{}},setup(s,{expose:n}){const l=s,{list:a,containerProps:o,wrapperProps:c,scrollTo:i,scaleTo:u}=d.useVirtualList(l.list,l.option);return n({scrollTo:i,scaleTo:u}),(p,m)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:`${e.unref(t.defaultNamespace)}-scale-virtual-list`},e.unref(o)),[e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(t.defaultNamespace)}-scale-virtual-list-container`)},[e.createElementVNode("div",e.mergeProps({class:`${e.unref(t.defaultNamespace)}-scale-vittual-wrapper`},e.unref(c)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),r=>(e.openBlock(),e.createElementBlock("div",{key:r.index},[e.renderSlot(p.$slots,"default",{item:r,index:r.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.24",
4
+ "version": "1.0.26",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",