vft 0.0.168 → 0.0.169
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/es/components/timeline/timeline-item.vue2.js +13 -13
- package/es/components/timeline/timeline.vue2.js +8 -8
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/timeline/timeline-item.vue2.cjs +1 -1
- package/lib/components/timeline/timeline.vue2.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +5 -5
- package/web-types.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as s, createElementBlock as a, normalizeClass as l, unref as o, createElementVNode as n, normalizeStyle as
|
|
2
|
-
import { VftIcon as
|
|
1
|
+
import { defineComponent as c, computed as f, openBlock as s, createElementBlock as a, normalizeClass as l, unref as o, createElementVNode as n, normalizeStyle as y, createBlock as r, withCtx as v, resolveDynamicComponent as k, createCommentVNode as m, renderSlot as d, toDisplayString as p } from "vue";
|
|
2
|
+
import { VftIcon as h } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
5
5
|
import "../../utils/ns-cover.js";
|
|
6
6
|
import "lodash";
|
|
7
|
-
import { useNamespace as
|
|
7
|
+
import { useNamespace as B } from "../../hooks/use-namespace/index.js";
|
|
8
8
|
import "@popperjs/core";
|
|
9
9
|
import "../../hooks/use-z-index/index.js";
|
|
10
|
-
const
|
|
10
|
+
const C = c({
|
|
11
11
|
name: "vft-timeline-item"
|
|
12
|
-
}),
|
|
13
|
-
...
|
|
12
|
+
}), E = /* @__PURE__ */ c({
|
|
13
|
+
...C,
|
|
14
14
|
props: {
|
|
15
15
|
timestamp: {},
|
|
16
16
|
hideTimestamp: { type: Boolean, default: !1 },
|
|
@@ -23,13 +23,13 @@ const B = c({
|
|
|
23
23
|
hollow: { type: Boolean, default: !1 }
|
|
24
24
|
},
|
|
25
25
|
setup(i) {
|
|
26
|
-
const e =
|
|
26
|
+
const e = B("timeline-item"), u = f(() => [
|
|
27
27
|
e.e("node"),
|
|
28
28
|
e.em("node", i.size || ""),
|
|
29
29
|
e.em("node", i.type || ""),
|
|
30
30
|
e.is("hollow", i.hollow)
|
|
31
31
|
]);
|
|
32
|
-
return (t,
|
|
32
|
+
return (t, b) => (s(), a("li", {
|
|
33
33
|
class: l([o(e).b(), { [o(e).e("center")]: t.center }])
|
|
34
34
|
}, [
|
|
35
35
|
n("div", {
|
|
@@ -37,16 +37,16 @@ const B = c({
|
|
|
37
37
|
}, null, 2),
|
|
38
38
|
t.$slots.dot ? m("", !0) : (s(), a("div", {
|
|
39
39
|
key: 0,
|
|
40
|
-
class: l(
|
|
41
|
-
style:
|
|
40
|
+
class: l(u.value),
|
|
41
|
+
style: y({
|
|
42
42
|
backgroundColor: t.color
|
|
43
43
|
})
|
|
44
44
|
}, [
|
|
45
|
-
t.icon ? (s(), r(o(
|
|
45
|
+
t.icon ? (s(), r(o(h), {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: l(o(e).e("icon"))
|
|
48
48
|
}, {
|
|
49
|
-
default:
|
|
49
|
+
default: v(() => [
|
|
50
50
|
(s(), r(k(t.icon)))
|
|
51
51
|
]),
|
|
52
52
|
_: 1
|
|
@@ -79,5 +79,5 @@ const B = c({
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
E as default
|
|
83
83
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
1
|
+
import { defineComponent as o, useSlots as r, provide as i, h as m, renderSlot as s } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
5
|
import "lodash";
|
|
6
|
-
import { useNamespace as
|
|
6
|
+
import { useNamespace as n } from "../../hooks/use-namespace/index.js";
|
|
7
7
|
import "@popperjs/core";
|
|
8
8
|
import "../../hooks/use-z-index/index.js";
|
|
9
|
-
const
|
|
9
|
+
const b = /* @__PURE__ */ o({
|
|
10
10
|
__name: "timeline",
|
|
11
|
-
setup(
|
|
12
|
-
const e =
|
|
13
|
-
return
|
|
11
|
+
setup(p) {
|
|
12
|
+
const e = n("timeline"), t = r();
|
|
13
|
+
return i("timeline", t), () => m("ul", {
|
|
14
14
|
class: [e.b()]
|
|
15
|
-
}, [
|
|
15
|
+
}, [s(t, "default")]);
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
b as default
|
|
20
20
|
};
|
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"),a=require("../icon/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash");const r=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const s=e.defineComponent({name:"vft-timeline-item"}),i=e.defineComponent({...s,props:{timestamp:{},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{default:"bottom"},type:{},color:{},size:{default:"normal"},icon:{default:""},hollow:{type:Boolean,default:!1}},setup(l){const o=r.useNamespace("timeline-item"),n=computed(()=>[o.e("node"),o.em("node",l.size||""),o.em("node",l.type||""),o.is("hollow",l.hollow)]);return(t,m)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([e.unref(o).b(),{[e.unref(o).e("center")]:t.center}])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("tail"))},null,2),t.$slots.dot?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../icon/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash");const r=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const s=e.defineComponent({name:"vft-timeline-item"}),i=e.defineComponent({...s,props:{timestamp:{},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{default:"bottom"},type:{},color:{},size:{default:"normal"},icon:{default:""},hollow:{type:Boolean,default:!1}},setup(l){const o=r.useNamespace("timeline-item"),n=e.computed(()=>[o.e("node"),o.em("node",l.size||""),o.em("node",l.type||""),o.is("hollow",l.hollow)]);return(t,m)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([e.unref(o).b(),{[e.unref(o).e("center")]:t.center}])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("tail"))},null,2),t.$slots.dot?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.value),style:e.normalizeStyle({backgroundColor:t.color})},[t.icon?(e.openBlock(),e.createBlock(e.unref(a.VftIcon),{key:0,class:e.normalizeClass(e.unref(o).e("icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))]),_:1},8,["class"])):e.createCommentVNode("",!0)],6)),t.$slots.dot?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).e("dot"))},[e.renderSlot(t.$slots,"dot")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("wrapper"))},[!t.hideTimestamp&&t.placement==="top"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(o).e("timestamp"),e.unref(o).is("top")])},e.toDisplayString(t.timestamp),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("content"))},[e.renderSlot(t.$slots,"default")],2),!t.hideTimestamp&&t.placement==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(o).e("timestamp"),e.unref(o).is("bottom")])},e.toDisplayString(t.timestamp),3)):e.createCommentVNode("",!0)],2)],2))}});exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash");const u=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const i=e.defineComponent({__name:"timeline",setup(s){const t=u.useNamespace("timeline"),r=e.useSlots();return e.provide("timeline",r),()=>e.h("ul",{class:[t.b()]},[e.renderSlot(r,"default")])}});exports.default=i;
|
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.169";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.169",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"qrcode": "1.5.3",
|
|
55
55
|
"resize-detector": "0.3.0",
|
|
56
56
|
"sortablejs": "1.15.0",
|
|
57
|
-
"@vft/directives": "0.0.29",
|
|
58
57
|
"@vft/router": "0.0.46",
|
|
59
|
-
"@vft/constants": "0.0.65",
|
|
60
|
-
"@vft/store": "0.0.37",
|
|
61
58
|
"@vft/use": "0.0.44",
|
|
62
|
-
"@vft/
|
|
59
|
+
"@vft/store": "0.0.37",
|
|
60
|
+
"@vft/constants": "0.0.65",
|
|
61
|
+
"@vft/utils": "0.0.68",
|
|
62
|
+
"@vft/directives": "0.0.29"
|
|
63
63
|
},
|
|
64
64
|
"vetur": {
|
|
65
65
|
"tags": "tags.json",
|