UNPKG

y-design-ssr

Version:

SSR component library of YUI with Vue3

29 lines (28 loc) 554 B
import { ref as l, reactive as i } from "vue"; const n = { "pull-refresh": { pulling: "下拉刷新...", loosing: "释放刷新...", loading: "数据加载中...", success: "数据已更新", failed: "数据跟新失败,请稍后再试" }, "form-item": { validateMessage: "请输入正确内容" } }, s = l("zh-CN"), a = i({ "zh-CN": n }), d = { text() { return a[s.value]; }, use(e, t) { s.value = e, this.add({ [e]: t }); }, add(e = {}) { Object.assign(a, e); } }; export { d as default };