UNPKG

@artmate/chat

Version:

**开箱即用的AI组件库(基于 Vue3 + ElementPlus)**

15 lines (14 loc) 284 B
import { ref as o } from "vue"; function a(e) { const c = o(0), t = o( typeof e == "function" ? e() : e ); function f(n) { const u = typeof n == "function" ? n(t.value) : n; t.value = u, c.value += 1; } return [t, f, () => t.value]; } export { a as default };