@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,44 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { defaultNamespace as
|
|
3
|
-
import { useVirtualList as
|
|
4
|
-
const
|
|
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
|
|
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:
|
|
14
|
-
scaleTo:
|
|
15
|
-
}), (
|
|
13
|
+
scrollTo: f,
|
|
14
|
+
scaleTo: v
|
|
15
|
+
}), (x, C) => (s(), r(
|
|
16
16
|
"div",
|
|
17
17
|
a({
|
|
18
|
-
class: `${e(
|
|
19
|
-
}, e(
|
|
18
|
+
class: `${e(o)}-scale-virtual-list`
|
|
19
|
+
}, e(d)),
|
|
20
20
|
[
|
|
21
21
|
n(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
|
-
class:
|
|
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(
|
|
31
|
-
}, e(
|
|
30
|
+
class: `${e(o)}-scale-vittual-wrapper`
|
|
31
|
+
}, e(m)),
|
|
32
32
|
[
|
|
33
|
-
(
|
|
34
|
-
|
|
33
|
+
(s(!0), r(
|
|
34
|
+
P,
|
|
35
35
|
null,
|
|
36
|
-
|
|
37
|
-
key:
|
|
36
|
+
g(e(u), (t) => (s(), r("div", {
|
|
37
|
+
key: t.index
|
|
38
38
|
}, [
|
|
39
|
-
|
|
40
|
-
item:
|
|
41
|
-
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
|
-
|
|
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"),
|
|
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;
|