UNPKG

ant-design-x-vue

Version:

Craft AI-driven interfaces effortlessly

19 lines (18 loc) 401 B
import { computed as a } from "vue"; function p(u, e) { const o = (t, r) => { var n; return typeof e.value == "function" ? e.value(t, r) : e ? ((n = e.value) == null ? void 0 : n[t.role]) || {} : {}; }; return a(() => (u.value || []).map((t, r) => { const n = t.key ?? `preset_${r}`; return { ...o(t, r), ...t, key: n }; })); } export { p as default };