vft 0.0.319 → 0.0.321
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/dist/index.css +1 -1
- package/es/components/avatar-stack/avatar-stack.vue2.js +14 -15
- package/es/components/avatar-stack/index.d.ts +2 -2
- package/es/components/avatar-stack/types.d.ts +1 -6
- package/es/components/skeleton/style/css.d.ts +1 -0
- package/es/components/skeleton/style/css.js +1 -0
- package/es/components/skeleton/style/index.d.ts +1 -0
- package/es/components/skeleton/style/index.js +1 -0
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/avatar-stack/avatar-stack.vue2.cjs +1 -1
- package/lib/components/avatar-stack/index.d.ts +2 -2
- package/lib/components/avatar-stack/types.d.ts +1 -6
- package/lib/components/skeleton/style/css.cjs +1 -1
- package/lib/components/skeleton/style/css.d.ts +1 -0
- package/lib/components/skeleton/style/index.cjs +1 -1
- package/lib/components/skeleton/style/index.d.ts +1 -0
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +4 -4
- package/theme-style/index.css +1 -1
- package/theme-style/src/skeleton-item.scss +2 -0
- package/theme-style/vft-skeleton-item.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as z, computed as r, createElementBlock as
|
|
1
|
+
import { defineComponent as z, computed as r, createElementBlock as s, openBlock as n, normalizeStyle as d, normalizeClass as o, unref as t, createCommentVNode as g, Fragment as k, renderList as x, createVNode as v, withCtx as b, createTextVNode as V, toDisplayString as w } from "vue";
|
|
2
2
|
import { VftAvatar as f } from "../avatar/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
|
-
import { addUnit as
|
|
4
|
+
import { addUnit as i } from "@vft/utils";
|
|
5
5
|
import "../config-provider/hooks/use-global-config.js";
|
|
6
6
|
import { generateCssVars as N } from "../../utils/ns-cover.js";
|
|
7
7
|
import "lodash-es";
|
|
@@ -22,32 +22,31 @@ const M = z({
|
|
|
22
22
|
borderColor: { default: "white" }
|
|
23
23
|
},
|
|
24
24
|
setup(e) {
|
|
25
|
-
const a = B("avatar-stack"), u = r(() => e.avatars.slice(0, e.maxCount)),
|
|
25
|
+
const a = B("avatar-stack"), u = r(() => e.avatars.slice(0, e.maxCount)), m = r(() => e.avatars.length - e.maxCount), C = r(() => e.overlap !== void 0 ? e.overlap : Math.round(e.size / 3)), h = r(() => Math.max(12, Math.round(e.size * 0.25))), p = r(() => N(
|
|
26
26
|
{
|
|
27
|
-
"avatar-size":
|
|
28
|
-
overlap:
|
|
29
|
-
"font-size":
|
|
27
|
+
"avatar-size": i(e.size),
|
|
28
|
+
overlap: i(C.value),
|
|
29
|
+
"font-size": i(h.value),
|
|
30
30
|
"border-color": e.borderColor
|
|
31
31
|
},
|
|
32
32
|
"avatar-stack"
|
|
33
33
|
));
|
|
34
|
-
return (l, S) => (
|
|
34
|
+
return (l, S) => (n(), s("div", {
|
|
35
35
|
class: o(t(a).b()),
|
|
36
36
|
style: d(p.value)
|
|
37
37
|
}, [
|
|
38
|
-
(
|
|
39
|
-
key:
|
|
38
|
+
(n(!0), s(k, null, x(u.value, (y, c) => (n(), s("div", {
|
|
39
|
+
key: c,
|
|
40
40
|
class: o(t(a).e("item")),
|
|
41
|
-
style: d({ zIndex: u.value.length -
|
|
41
|
+
style: d({ zIndex: u.value.length - c })
|
|
42
42
|
}, [
|
|
43
43
|
v(t(f), {
|
|
44
|
-
src:
|
|
44
|
+
src: y,
|
|
45
45
|
size: l.size,
|
|
46
|
-
alt: i.name,
|
|
47
46
|
class: o(t(a).e("stacked-avatar"))
|
|
48
|
-
}, null, 8, ["src", "size", "
|
|
47
|
+
}, null, 8, ["src", "size", "class"])
|
|
49
48
|
], 6))), 128)),
|
|
50
|
-
l.showRemainCount &&
|
|
49
|
+
l.showRemainCount && m.value > 0 ? (n(), s("div", {
|
|
51
50
|
key: 0,
|
|
52
51
|
class: o([t(a).e("item"), t(a).e("remaining-count")]),
|
|
53
52
|
style: { zIndex: 0 }
|
|
@@ -57,7 +56,7 @@ const M = z({
|
|
|
57
56
|
class: o(t(a).e("remaining-avatar"))
|
|
58
57
|
}, {
|
|
59
58
|
default: b(() => [
|
|
60
|
-
V(" +" + w(
|
|
59
|
+
V(" +" + w(m.value), 1)
|
|
61
60
|
]),
|
|
62
61
|
_: 1
|
|
63
62
|
}, 8, ["size", "class"])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const VftAvatarStack: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
avatars: {
|
|
3
|
-
type: import("vue").PropType<
|
|
3
|
+
type: import("vue").PropType<string[]>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
maxCount: {
|
|
@@ -20,7 +20,7 @@ export declare const VftAvatarStack: import("vft/es/utils").SFCWithInstall<impor
|
|
|
20
20
|
};
|
|
21
21
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
avatars: {
|
|
23
|
-
type: import("vue").PropType<
|
|
23
|
+
type: import("vue").PropType<string[]>;
|
|
24
24
|
required: true;
|
|
25
25
|
};
|
|
26
26
|
maxCount: {
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../avatar/index.cjs");require("@vueuse/core");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../avatar/index.cjs");require("@vueuse/core");const n=require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");const v=require("../../utils/ns-cover.cjs");require("lodash-es");const f=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const z=e.defineComponent({name:"vft-avatar-stack"}),C=e.defineComponent({...z,props:{avatars:{default:()=>[]},maxCount:{default:5},size:{default:60},overlap:{},showRemainCount:{type:Boolean,default:!1},borderColor:{default:"white"}},setup(a){const t=f.useNamespace("avatar-stack"),l=e.computed(()=>a.avatars.slice(0,a.maxCount)),o=e.computed(()=>a.avatars.length-a.maxCount),i=e.computed(()=>a.overlap!==void 0?a.overlap:Math.round(a.size/3)),c=e.computed(()=>Math.max(12,Math.round(a.size*.25))),d=e.computed(()=>v.generateCssVars({"avatar-size":n.addUnit(a.size),overlap:n.addUnit(i.value),"font-size":n.addUnit(c.value),"border-color":a.borderColor},"avatar-stack"));return(r,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t).b()),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(m,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(e.unref(t).e("item")),style:e.normalizeStyle({zIndex:l.value.length-s})},[e.createVNode(e.unref(u.VftAvatar),{src:m,size:r.size,class:e.normalizeClass(e.unref(t).e("stacked-avatar"))},null,8,["src","size","class"])],6))),128)),r.showRemainCount&&o.value>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(t).e("item"),e.unref(t).e("remaining-count")]),style:{zIndex:0}},[e.createVNode(e.unref(u.VftAvatar),{size:r.size,class:e.normalizeClass(e.unref(t).e("remaining-avatar"))},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(o.value),1)]),_:1},8,["size","class"])],2)):e.createCommentVNode("",!0)],6))}});exports.default=C;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const VftAvatarStack: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
avatars: {
|
|
3
|
-
type: import("vue").PropType<
|
|
3
|
+
type: import("vue").PropType<string[]>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
maxCount: {
|
|
@@ -20,7 +20,7 @@ export declare const VftAvatarStack: import("vft/es/utils").SFCWithInstall<impor
|
|
|
20
20
|
};
|
|
21
21
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
avatars: {
|
|
23
|
-
type: import("vue").PropType<
|
|
23
|
+
type: import("vue").PropType<string[]>;
|
|
24
24
|
required: true;
|
|
25
25
|
};
|
|
26
26
|
maxCount: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-skeleton-item.css");require("vft/theme-style/vft-skeleton.css");
|
|
1
|
+
"use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-skeleton-item.css");require("vft/theme-style/vft-icon.css");require("vft/theme-style/vft-skeleton.css");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/skeleton-item.scss");require("vft/theme-style/src/skeleton.scss");
|
|
1
|
+
"use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/skeleton-item.scss");require("vft/theme-style/src/icon.scss");require("vft/theme-style/src/skeleton.scss");
|
package/lib/package.json.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.321";exports.version=e;
|
package/lib/package.json.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.321",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"sortablejs": "1.15.0",
|
|
57
57
|
"photoswipe": "5.4.4",
|
|
58
58
|
"@vft/router": "0.0.65",
|
|
59
|
-
"@vft/directives": "0.0.33",
|
|
60
|
-
"@vft/utils": "0.0.128",
|
|
61
59
|
"@vft/constants": "0.0.72",
|
|
60
|
+
"@vft/utils": "0.0.128",
|
|
61
|
+
"@vft/use": "0.0.76",
|
|
62
62
|
"@vft/store": "0.0.54",
|
|
63
|
-
"@vft/
|
|
63
|
+
"@vft/directives": "0.0.33"
|
|
64
64
|
},
|
|
65
65
|
"vetur": {
|
|
66
66
|
"tags": "tags.json",
|