vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
21 lines (20 loc) • 552 B
JavaScript
import { defineComponent as i, createElementBlock as p, openBlock as s, unref as e, toDisplayString as m } from "vue";
import { useTimeAgo as r } from "./hook/useTimeAgo.mjs";
const l = ["title"], d = /* @__PURE__ */ i({
name: "TimeAgo",
__name: "index",
props: {
time: {},
autoUpdate: { type: Boolean, default: !1 }
},
setup(t) {
const o = t, { fullTime: n, relativeTime: a } = r(o);
return (c, f) => (s(), p("span", {
class: "app-time-ago",
title: e(n)
}, m(e(a)), 9, l));
}
});
export {
d as default
};