@king-one/antdv 1.0.43 → 1.0.45
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 +12 -0
- package/dist/es/components/pro-area/hooks/use-pro-area.mjs +3 -3
- package/dist/es/components/pro-area/index.mjs +5 -5
- package/dist/es/components/scale-virtual-list/component/scale-virtual-list.vue2.mjs +38 -30
- package/dist/es/index.mjs +6 -6
- package/dist/lib/components/pro-area/hooks/use-pro-area.js +1 -1
- package/dist/lib/components/pro-area/index.js +1 -1
- package/dist/lib/components/scale-virtual-list/component/scale-virtual-list.vue2.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/types/components/pro-area/hooks/use-pro-area.d.ts +1 -1
- package/dist/types/components/scale-virtual-list/component/scale-virtual-list.vue.d.ts +17 -3
- package/dist/types/components/scale-virtual-list/component/types.d.ts +1 -0
- package/dist/types/components/scale-virtual-list/index.d.ts +37 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as o } from "vue";
|
|
2
|
-
import { proAreaApis as
|
|
2
|
+
import { proAreaApis as t } from "../apis/pro-area.api.mjs";
|
|
3
3
|
function n() {
|
|
4
4
|
const r = o([]);
|
|
5
|
-
return
|
|
5
|
+
return t.areaTree().then((e) => {
|
|
6
6
|
r.value = e.data;
|
|
7
7
|
}), { ops: r };
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
-
n as
|
|
10
|
+
n as useProArea
|
|
11
11
|
};
|
|
@@ -2,12 +2,12 @@ import { withInstall as r } from "../utils/install.mjs";
|
|
|
2
2
|
import "./src/ProArea.vue.mjs";
|
|
3
3
|
import "./style/index.mjs";
|
|
4
4
|
import { ProAreaProps as s } from "./src/types.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { useProArea as l } from "./hooks/use-pro-area.mjs";
|
|
6
6
|
import o from "./src/ProArea.vue2.mjs";
|
|
7
|
-
const
|
|
7
|
+
const a = r(o);
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
a as KProArea,
|
|
10
10
|
s as ProAreaProps,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
a as default,
|
|
12
|
+
l as useProArea
|
|
13
13
|
};
|
|
@@ -1,48 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { defaultNamespace as
|
|
3
|
-
import { useVirtualList as
|
|
4
|
-
const z = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as P, toRefs as g, openBlock as r, createElementBlock as l, mergeProps as i, unref as e, createElementVNode as n, normalizeClass as c, Fragment as w, renderList as B, renderSlot as E } from "vue";
|
|
2
|
+
import { defaultNamespace as s } from "../../../hooks/use-namespace/index.mjs";
|
|
3
|
+
import { useVirtualList as L } from "../hooks/useVirtualList.mjs";
|
|
4
|
+
const z = /* @__PURE__ */ P({
|
|
5
5
|
__name: "scale-virtual-list",
|
|
6
6
|
props: {
|
|
7
7
|
list: {},
|
|
8
|
-
option: {}
|
|
8
|
+
option: {},
|
|
9
|
+
itemClassName: { default: `${s}-scale-virtual-item` }
|
|
9
10
|
},
|
|
10
11
|
emits: ["update:state"],
|
|
11
|
-
setup(p, { expose:
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
scrollTo:
|
|
15
|
-
scaleTo:
|
|
16
|
-
state:
|
|
17
|
-
}),
|
|
12
|
+
setup(p, { expose: m, emit: u }) {
|
|
13
|
+
const o = p, d = u, { list: f } = g(o), { list: v, containerProps: $, wrapperProps: x, scrollTo: C, scaleTo: N, state: _, onUpdate: k } = L(f, o.option);
|
|
14
|
+
return m({
|
|
15
|
+
scrollTo: C,
|
|
16
|
+
scaleTo: N,
|
|
17
|
+
state: _
|
|
18
|
+
}), k((t) => d("update:state", t)), (t, T) => (r(), l(
|
|
18
19
|
"div",
|
|
19
|
-
|
|
20
|
-
class: `${e(
|
|
21
|
-
}, e(
|
|
20
|
+
i({
|
|
21
|
+
class: `${e(s)}-scale-virtual-list`
|
|
22
|
+
}, e($)),
|
|
22
23
|
[
|
|
23
|
-
|
|
24
|
+
n(
|
|
24
25
|
"div",
|
|
25
26
|
{
|
|
26
|
-
class:
|
|
27
|
+
class: c(`${e(s)}-scale-virtual-list-container`)
|
|
27
28
|
},
|
|
28
29
|
[
|
|
29
|
-
|
|
30
|
+
n(
|
|
30
31
|
"div",
|
|
31
|
-
|
|
32
|
-
class: `${e(
|
|
32
|
+
i({
|
|
33
|
+
class: `${e(s)}-scale-vittual-wrapper`
|
|
33
34
|
}, e(x)),
|
|
34
35
|
[
|
|
35
|
-
(r(!0),
|
|
36
|
-
|
|
36
|
+
(r(!0), l(
|
|
37
|
+
w,
|
|
37
38
|
null,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
B(e(v), (a) => (r(), l(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
key: a.index,
|
|
43
|
+
class: c(t.itemClassName)
|
|
44
|
+
},
|
|
45
|
+
[
|
|
46
|
+
E(t.$slots, "default", {
|
|
47
|
+
item: a,
|
|
48
|
+
index: a.index
|
|
49
|
+
})
|
|
50
|
+
],
|
|
51
|
+
2
|
|
52
|
+
/* CLASS */
|
|
53
|
+
))),
|
|
46
54
|
128
|
|
47
55
|
/* KEYED_FRAGMENT */
|
|
48
56
|
))
|
package/dist/es/index.mjs
CHANGED
|
@@ -7,8 +7,8 @@ import { collapseProps as l } from "./components/collapse-transtion/src/types.mj
|
|
|
7
7
|
import { KCollapseTranstion as i } from "./components/collapse-transtion/index.mjs";
|
|
8
8
|
import { useProModal as u, useProModalInit as c } from "./components/pro-modal/hooks/useProModal.mjs";
|
|
9
9
|
import { ProModalProps as d } from "./components/pro-modal/src/types.mjs";
|
|
10
|
-
import { KProModal as
|
|
11
|
-
import { TitleProps as
|
|
10
|
+
import { KProModal as M } from "./components/pro-modal/index.mjs";
|
|
11
|
+
import { TitleProps as A } from "./components/pro-title/src/types.mjs";
|
|
12
12
|
import { KProTitle as k } from "./components/pro-title/index.mjs";
|
|
13
13
|
import { scrollbarProps as S } from "./components/scroll-bar/src/types.mjs";
|
|
14
14
|
import { KScrollBar as y } from "./components/scroll-bar/index.mjs";
|
|
@@ -18,14 +18,14 @@ import { KProTag as j } from "./components/pro-tag/index.mjs";
|
|
|
18
18
|
import { ProPickerProps as v } from "./components/pro-picker/src/types.mjs";
|
|
19
19
|
import { KProPicker as z } from "./components/pro-picker/index.mjs";
|
|
20
20
|
import { ProAreaProps as E } from "./components/pro-area/src/types.mjs";
|
|
21
|
-
import {
|
|
21
|
+
import { useProArea as H } from "./components/pro-area/hooks/use-pro-area.mjs";
|
|
22
22
|
import { KProArea as N } from "./components/pro-area/index.mjs";
|
|
23
23
|
import { useProForm as Q, useProFormInit as R } from "./hooks/useProForm.mjs";
|
|
24
24
|
export {
|
|
25
25
|
i as KCollapseTranstion,
|
|
26
26
|
x as KForm,
|
|
27
27
|
N as KProArea,
|
|
28
|
-
|
|
28
|
+
M as KProModal,
|
|
29
29
|
z as KProPicker,
|
|
30
30
|
j as KProTag,
|
|
31
31
|
k as KProTitle,
|
|
@@ -34,13 +34,13 @@ export {
|
|
|
34
34
|
E as ProAreaProps,
|
|
35
35
|
d as ProModalProps,
|
|
36
36
|
v as ProPickerProps,
|
|
37
|
-
|
|
37
|
+
A as TitleProps,
|
|
38
38
|
l as collapseProps,
|
|
39
39
|
o as default,
|
|
40
40
|
f as formType,
|
|
41
41
|
V as proTagProps,
|
|
42
42
|
S as scrollbarProps,
|
|
43
|
-
H as
|
|
43
|
+
H as useProArea,
|
|
44
44
|
Q as useProForm,
|
|
45
45
|
R as useProFormInit,
|
|
46
46
|
u as useProModal,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("../apis/pro-area.api.js");function a(){const e=o.ref([]);return t.proAreaApis.areaTree().then(r=>{e.value=r.data}),{ops:e}}exports.useProArea=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../utils/install.js");require("./src/ProArea.vue.js");require("./style/index.js");const t=require("./src/types.js"),u=require("./hooks/use-pro-area.js"),o=require("./src/ProArea.vue2.js"),e=r.withInstall(o.default);exports.ProAreaProps=t.ProAreaProps;exports.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../utils/install.js");require("./src/ProArea.vue.js");require("./style/index.js");const t=require("./src/types.js"),u=require("./hooks/use-pro-area.js"),o=require("./src/ProArea.vue2.js"),e=r.withInstall(o.default);exports.ProAreaProps=t.ProAreaProps;exports.useProArea=u.useProArea;exports.KProArea=e;exports.default=e;
|
|
@@ -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"),s=require("../../../hooks/use-namespace/index.js"),k=require("../hooks/useVirtualList.js"),B=e.defineComponent({__name:"scale-virtual-list",props:{list:{},option:{},itemClassName:{default:`${s.defaultNamespace}-scale-virtual-item`}},emits:["update:state"],setup(r,{expose:n,emit:o}){const l=r,i=o,{list:c}=e.toRefs(l),{list:u,containerProps:p,wrapperProps:d,scrollTo:m,scaleTo:f,state:v,onUpdate:N}=k.useVirtualList(c,l.option);return n({scrollTo:m,scaleTo:f,state:v}),N(t=>i("update:state",t)),(t,_)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:`${e.unref(s.defaultNamespace)}-scale-virtual-list`},e.unref(p)),[e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(s.defaultNamespace)}-scale-virtual-list-container`)},[e.createElementVNode("div",e.mergeProps({class:`${e.unref(s.defaultNamespace)}-scale-vittual-wrapper`},e.unref(d)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),a=>(e.openBlock(),e.createElementBlock("div",{key:a.index,class:e.normalizeClass(t.itemClassName)},[e.renderSlot(t.$slots,"default",{item:a,index:a.index})],2))),128))],16)],2)],16))}});exports.default=B;
|
package/dist/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const s=require("./components/form/component/form.js"),i=require("./components/form/index.js"),t=require("./components/collapse-transtion/src/types.js"),P=require("./components/collapse-transtion/index.js"),r=require("./components/pro-modal/hooks/useProModal.js"),u=require("./components/pro-modal/src/types.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const s=require("./components/form/component/form.js"),i=require("./components/form/index.js"),t=require("./components/collapse-transtion/src/types.js"),P=require("./components/collapse-transtion/index.js"),r=require("./components/pro-modal/hooks/useProModal.js"),u=require("./components/pro-modal/src/types.js"),l=require("./components/pro-modal/index.js"),n=require("./components/pro-title/src/types.js"),a=require("./components/pro-title/index.js"),c=require("./components/scroll-bar/src/types.js"),p=require("./components/scroll-bar/index.js"),d=require("./components/scale-virtual-list/index.js"),q=require("./components/pro-tag/src/types.js"),K=require("./components/pro-tag/index.js"),$=require("./components/pro-picker/src/types.js"),T=require("./components/pro-picker/index.js"),m=require("./components/pro-area/src/types.js"),M=require("./components/pro-area/hooks/use-pro-area.js"),y=require("./components/pro-area/index.js"),e=require("./hooks/useProForm.js");exports.default=o.default;exports.formType=s.formType;exports.KForm=i.KForm;exports.collapseProps=t.collapseProps;exports.KCollapseTranstion=P.KCollapseTranstion;exports.useProModal=r.useProModal;exports.useProModalInit=r.useProModalInit;exports.ProModalProps=u.ProModalProps;exports.KProModal=l.KProModal;exports.TitleProps=n.TitleProps;exports.KProTitle=a.KProTitle;exports.scrollbarProps=c.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.KScaleVirtualList=d.KScaleVirtualList;exports.proTagProps=q.proTagProps;exports.KProTag=K.KProTag;exports.ProPickerProps=$.ProPickerProps;exports.KProPicker=T.KProPicker;exports.ProAreaProps=m.ProAreaProps;exports.useProArea=M.useProArea;exports.KProArea=y.KProArea;exports.useProForm=e.useProForm;exports.useProFormInit=e.useProFormInit;
|
|
@@ -7,17 +7,28 @@ declare function __VLS_template(): {
|
|
|
7
7
|
attrs: Partial<{}>;
|
|
8
8
|
};
|
|
9
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<VirtualListProps>, {
|
|
10
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<VirtualListProps>, {
|
|
11
|
+
itemClassName: string;
|
|
12
|
+
}>, {
|
|
11
13
|
scrollTo: (index: number) => void;
|
|
12
14
|
scaleTo: (s: number) => void;
|
|
13
15
|
state: Ref<UseVirtualListState>;
|
|
14
16
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
17
|
"update:state": (state: UseVirtualListState | null) => void;
|
|
16
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<VirtualListProps
|
|
18
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<VirtualListProps>, {
|
|
19
|
+
itemClassName: string;
|
|
20
|
+
}>>> & {
|
|
17
21
|
"onUpdate:state"?: ((state: UseVirtualListState | null) => any) | undefined;
|
|
18
|
-
}, {
|
|
22
|
+
}, {
|
|
23
|
+
itemClassName: string;
|
|
24
|
+
}, {}>;
|
|
19
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
26
|
export default _default;
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
21
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
33
|
type __VLS_TypePropsToOption<T> = {
|
|
23
34
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -32,3 +43,6 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
32
43
|
$slots: S;
|
|
33
44
|
};
|
|
34
45
|
};
|
|
46
|
+
type __VLS_PrettifyLocal<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
@@ -6,13 +6,17 @@ export * from './style/index';
|
|
|
6
6
|
export * from './component/types';
|
|
7
7
|
export declare const KScaleVirtualList: SFCWithInstall<{
|
|
8
8
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
9
|
+
option: {
|
|
10
|
+
type: PropType<UseVirtualListOptions>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
9
13
|
list: {
|
|
10
14
|
type: PropType<any[]>;
|
|
11
15
|
required: true;
|
|
12
16
|
};
|
|
13
|
-
|
|
14
|
-
type: PropType<
|
|
15
|
-
|
|
17
|
+
itemClassName: {
|
|
18
|
+
type: PropType<string>;
|
|
19
|
+
default: string;
|
|
16
20
|
};
|
|
17
21
|
}>> & {
|
|
18
22
|
"onUpdate:state"?: ((state: UseVirtualListState | null) => any) | undefined;
|
|
@@ -23,17 +27,23 @@ export declare const KScaleVirtualList: SFCWithInstall<{
|
|
|
23
27
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
28
|
"update:state": (state: UseVirtualListState | null) => void;
|
|
25
29
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
30
|
+
option: {
|
|
31
|
+
type: PropType<UseVirtualListOptions>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
26
34
|
list: {
|
|
27
35
|
type: PropType<any[]>;
|
|
28
36
|
required: true;
|
|
29
37
|
};
|
|
30
|
-
|
|
31
|
-
type: PropType<
|
|
32
|
-
|
|
38
|
+
itemClassName: {
|
|
39
|
+
type: PropType<string>;
|
|
40
|
+
default: string;
|
|
33
41
|
};
|
|
34
42
|
}>> & {
|
|
35
43
|
"onUpdate:state"?: ((state: UseVirtualListState | null) => any) | undefined;
|
|
36
|
-
}, {
|
|
44
|
+
}, {
|
|
45
|
+
itemClassName: string;
|
|
46
|
+
}, true, {}, {}, {
|
|
37
47
|
P: {};
|
|
38
48
|
B: {};
|
|
39
49
|
D: {};
|
|
@@ -41,13 +51,17 @@ export declare const KScaleVirtualList: SFCWithInstall<{
|
|
|
41
51
|
M: {};
|
|
42
52
|
Defaults: {};
|
|
43
53
|
}, Readonly< ExtractPropTypes<{
|
|
54
|
+
option: {
|
|
55
|
+
type: PropType<UseVirtualListOptions>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
44
58
|
list: {
|
|
45
59
|
type: PropType<any[]>;
|
|
46
60
|
required: true;
|
|
47
61
|
};
|
|
48
|
-
|
|
49
|
-
type: PropType<
|
|
50
|
-
|
|
62
|
+
itemClassName: {
|
|
63
|
+
type: PropType<string>;
|
|
64
|
+
default: string;
|
|
51
65
|
};
|
|
52
66
|
}>> & {
|
|
53
67
|
"onUpdate:state"?: ((state: UseVirtualListState | null) => any) | undefined;
|
|
@@ -55,18 +69,24 @@ export declare const KScaleVirtualList: SFCWithInstall<{
|
|
|
55
69
|
scrollTo: (index: number) => void;
|
|
56
70
|
scaleTo: (s: number) => void;
|
|
57
71
|
state: Ref<UseVirtualListState>;
|
|
58
|
-
}, {}, {}, {}, {
|
|
72
|
+
}, {}, {}, {}, {
|
|
73
|
+
itemClassName: string;
|
|
74
|
+
}>;
|
|
59
75
|
__isFragment?: never;
|
|
60
76
|
__isTeleport?: never;
|
|
61
77
|
__isSuspense?: never;
|
|
62
78
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
79
|
+
option: {
|
|
80
|
+
type: PropType<UseVirtualListOptions>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
63
83
|
list: {
|
|
64
84
|
type: PropType<any[]>;
|
|
65
85
|
required: true;
|
|
66
86
|
};
|
|
67
|
-
|
|
68
|
-
type: PropType<
|
|
69
|
-
|
|
87
|
+
itemClassName: {
|
|
88
|
+
type: PropType<string>;
|
|
89
|
+
default: string;
|
|
70
90
|
};
|
|
71
91
|
}>> & {
|
|
72
92
|
"onUpdate:state"?: ((state: UseVirtualListState | null) => any) | undefined;
|
|
@@ -76,7 +96,9 @@ export declare const KScaleVirtualList: SFCWithInstall<{
|
|
|
76
96
|
state: Ref<UseVirtualListState>;
|
|
77
97
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
78
98
|
"update:state": (state: UseVirtualListState | null) => void;
|
|
79
|
-
}, string, {
|
|
99
|
+
}, string, {
|
|
100
|
+
itemClassName: string;
|
|
101
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
80
102
|
$slots: Readonly< VirtualListSlot> & VirtualListSlot;
|
|
81
103
|
})>;
|
|
82
104
|
export default KScaleVirtualList;
|