vft 0.0.166 → 0.0.168
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/component.js +84 -81
- package/es/components/backtop/backtop.vue2.js +3 -2
- package/es/components/button/use-button.js +3 -3
- package/es/components/context-menu/context-menu.vue2.js +3 -2
- package/es/components/footer-layout/footer-layout.vue2.js +3 -2
- package/es/components/header-layout/header-layout.vue2.js +3 -2
- package/es/components/icon/icon.vue.d.ts +1 -12
- package/es/components/icon/index.d.ts +1 -2
- package/es/components/icon/types.d.ts +12 -0
- package/es/components/icon/types.js +1 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +190 -187
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/menu/menu-item.vue2.js +3 -2
- package/es/components/menu/sub-menu.vue2.js +3 -2
- package/es/components/modal/modal-footer-action.vue2.js +3 -2
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +3 -2
- package/es/components/result/result.vue2.js +3 -2
- package/es/components/side-menu/side-menu.vue2.js +3 -2
- package/es/components/super-form/component-map.js +11 -10
- package/es/components/super-form/super-form-action.vue2.js +3 -2
- package/es/components/super-form/super-form-item.vue2.js +3 -2
- package/es/components/super-form/super-form.vue2.js +3 -2
- package/es/components/table/field.js +19 -18
- package/es/components/tabs/tab-nav.vue2.js +3 -2
- package/es/components/timeline/index.d.ts +263 -0
- package/es/components/timeline/index.js +16 -0
- package/es/components/timeline/style/css.d.ts +1 -0
- package/es/components/timeline/style/css.js +2 -0
- package/es/components/timeline/style/index.d.ts +1 -0
- package/es/components/timeline/style/index.js +2 -0
- package/es/components/timeline/timeline-item.vue.d.ts +31 -0
- package/es/components/timeline/timeline-item.vue.js +4 -0
- package/es/components/timeline/timeline-item.vue2.js +83 -0
- package/es/components/timeline/timeline.vue.d.ts +2 -0
- package/es/components/timeline/timeline.vue.js +4 -0
- package/es/components/timeline/timeline.vue2.js +20 -0
- package/es/components/timeline-item/style/css.d.ts +1 -0
- package/es/components/timeline-item/style/css.js +2 -0
- package/es/components/timeline-item/style/index.d.ts +1 -0
- package/es/components/timeline-item/style/index.js +2 -0
- package/es/index.js +295 -292
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/component.cjs +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue.d.ts +1 -12
- package/lib/components/icon/index.d.ts +1 -2
- package/lib/components/icon/types.cjs +1 -0
- package/lib/components/icon/types.d.ts +12 -0
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/timeline/index.cjs +1 -0
- package/lib/components/timeline/index.d.ts +263 -0
- package/lib/components/timeline/style/css.cjs +1 -0
- package/lib/components/timeline/style/css.d.ts +1 -0
- package/lib/components/timeline/style/index.cjs +1 -0
- package/lib/components/timeline/style/index.d.ts +1 -0
- package/lib/components/timeline/timeline-item.vue.cjs +1 -0
- package/lib/components/timeline/timeline-item.vue.d.ts +31 -0
- package/lib/components/timeline/timeline-item.vue2.cjs +1 -0
- package/lib/components/timeline/timeline.vue.cjs +1 -0
- package/lib/components/timeline/timeline.vue.d.ts +2 -0
- package/lib/components/timeline/timeline.vue2.cjs +1 -0
- package/lib/components/timeline-item/style/css.cjs +1 -0
- package/lib/components/timeline-item/style/css.d.ts +1 -0
- package/lib/components/timeline-item/style/index.cjs +1 -0
- package/lib/components/timeline-item/style/index.d.ts +1 -0
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +4 -4
- package/web-types.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { defineComponent as c, openBlock as s, createElementBlock as a, normalizeClass as l, unref as o, createElementVNode as n, normalizeStyle as f, createBlock as r, withCtx as y, resolveDynamicComponent as k, createCommentVNode as m, renderSlot as d, toDisplayString as p } from "vue";
|
|
2
|
+
import { VftIcon as v } from "../icon/index.js";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import "@vft/utils";
|
|
5
|
+
import "../../utils/ns-cover.js";
|
|
6
|
+
import "lodash";
|
|
7
|
+
import { useNamespace as h } from "../../hooks/use-namespace/index.js";
|
|
8
|
+
import "@popperjs/core";
|
|
9
|
+
import "../../hooks/use-z-index/index.js";
|
|
10
|
+
const B = c({
|
|
11
|
+
name: "vft-timeline-item"
|
|
12
|
+
}), D = /* @__PURE__ */ c({
|
|
13
|
+
...B,
|
|
14
|
+
props: {
|
|
15
|
+
timestamp: {},
|
|
16
|
+
hideTimestamp: { type: Boolean, default: !1 },
|
|
17
|
+
center: { type: Boolean, default: !1 },
|
|
18
|
+
placement: { default: "bottom" },
|
|
19
|
+
type: {},
|
|
20
|
+
color: {},
|
|
21
|
+
size: { default: "normal" },
|
|
22
|
+
icon: { default: "" },
|
|
23
|
+
hollow: { type: Boolean, default: !1 }
|
|
24
|
+
},
|
|
25
|
+
setup(i) {
|
|
26
|
+
const e = h("timeline-item"), u = computed(() => [
|
|
27
|
+
e.e("node"),
|
|
28
|
+
e.em("node", i.size || ""),
|
|
29
|
+
e.em("node", i.type || ""),
|
|
30
|
+
e.is("hollow", i.hollow)
|
|
31
|
+
]);
|
|
32
|
+
return (t, C) => (s(), a("li", {
|
|
33
|
+
class: l([o(e).b(), { [o(e).e("center")]: t.center }])
|
|
34
|
+
}, [
|
|
35
|
+
n("div", {
|
|
36
|
+
class: l(o(e).e("tail"))
|
|
37
|
+
}, null, 2),
|
|
38
|
+
t.$slots.dot ? m("", !0) : (s(), a("div", {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: l(o(u)),
|
|
41
|
+
style: f({
|
|
42
|
+
backgroundColor: t.color
|
|
43
|
+
})
|
|
44
|
+
}, [
|
|
45
|
+
t.icon ? (s(), r(o(v), {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: l(o(e).e("icon"))
|
|
48
|
+
}, {
|
|
49
|
+
default: y(() => [
|
|
50
|
+
(s(), r(k(t.icon)))
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["class"])) : m("", !0)
|
|
54
|
+
], 6)),
|
|
55
|
+
t.$slots.dot ? (s(), a("div", {
|
|
56
|
+
key: 1,
|
|
57
|
+
class: l(o(e).e("dot"))
|
|
58
|
+
}, [
|
|
59
|
+
d(t.$slots, "dot")
|
|
60
|
+
], 2)) : m("", !0),
|
|
61
|
+
n("div", {
|
|
62
|
+
class: l(o(e).e("wrapper"))
|
|
63
|
+
}, [
|
|
64
|
+
!t.hideTimestamp && t.placement === "top" ? (s(), a("div", {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: l([o(e).e("timestamp"), o(e).is("top")])
|
|
67
|
+
}, p(t.timestamp), 3)) : m("", !0),
|
|
68
|
+
n("div", {
|
|
69
|
+
class: l(o(e).e("content"))
|
|
70
|
+
}, [
|
|
71
|
+
d(t.$slots, "default")
|
|
72
|
+
], 2),
|
|
73
|
+
!t.hideTimestamp && t.placement === "bottom" ? (s(), a("div", {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: l([o(e).e("timestamp"), o(e).is("bottom")])
|
|
76
|
+
}, p(t.timestamp), 3)) : m("", !0)
|
|
77
|
+
], 2)
|
|
78
|
+
], 2));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
D as default
|
|
83
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent as o, renderSlot as r } from "vue";
|
|
2
|
+
import "@vueuse/core";
|
|
3
|
+
import "@vft/utils";
|
|
4
|
+
import "../../utils/ns-cover.js";
|
|
5
|
+
import "lodash";
|
|
6
|
+
import { useNamespace as i } from "../../hooks/use-namespace/index.js";
|
|
7
|
+
import "@popperjs/core";
|
|
8
|
+
import "../../hooks/use-z-index/index.js";
|
|
9
|
+
const _ = /* @__PURE__ */ o({
|
|
10
|
+
__name: "timeline",
|
|
11
|
+
setup(m) {
|
|
12
|
+
const e = i("timeline"), t = useSlots();
|
|
13
|
+
return provide("timeline", t), () => h("ul", {
|
|
14
|
+
class: [e.b()]
|
|
15
|
+
}, [r(t, "default")]);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
_ as default
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/vft-timeline-item.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'vft/theme-style/src/timeline-item.scss';
|