ocn-vue-components
Version:
A collection of Vue 3 components with @vorms/core
34 lines (33 loc) • 755 B
JavaScript
import { openBlock as t, createElementBlock as r, Fragment as n, createElementVNode as c, toDisplayString as u, renderList as i } from "vue";
const s = {
scope: "row",
class: "px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white"
}, m = {
__name: "TableData",
props: {
headers: {
type: Object,
required: !0
},
item: {
type: Object,
required: !0
},
index: {
type: Number,
required: !0
}
},
setup(e) {
return (d, l) => (t(), r(n, null, [
c("th", s, u(e.index + 1), 1),
(t(!0), r(n, null, i(e.headers, (o, a) => (t(), r("td", {
class: "px-6 py-4",
key: a
}, u(e.item[a]), 1))), 128))
], 64));
}
};
export {
m as default
};