import { defineComponent, withCtx, createVNode, createTextVNode, createBlock, openBlock, Fragment, renderList, toDisplayString, mergeProps, useSSRContext } from 'vue';
import { ssrRenderComponent, ssrRenderList, ssrInterpolate } from 'vue/server-renderer';
import { V as VTable } from './VTable-CfOk5VYL.mjs';
import { V as VRow, a as VCol } from './VRow-MQIguEmB.mjs';
import { B as VCard, C as VCardText } from './server.mjs';
import '../nitro/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'devalue';
import '@unhead/ssr';
import 'unhead';
import '@unhead/shared';
import 'pinia';
import 'vue-router';
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
__name: "DemoSimpleTableBasics",
__ssrInlineRender: true,
setup(__props) {
const desserts = [
{
dessert: "Frozen Yogurt",
calories: 159,
fat: 6,
carbs: 24,
protein: 4
},
{
dessert: "Ice cream sandwich",
calories: 237,
fat: 6,
carbs: 24,
protein: 4
},
{
dessert: "Eclair",
calories: 262,
fat: 6,
carbs: 24,
protein: 4
},
{
dessert: "Cupcake",
calories: 305,
fat: 6,
carbs: 24,
protein: 4
},
{
dessert: "Gingerbread",
calories: 356,
fat: 6,
carbs: 24,
protein: 4
}
];
return (_ctx, _push, _parent, _attrs) => {
_push(ssrRenderComponent(VTable, _attrs, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(` Desserts (100g Servings) calories Fat(g) Carbs(g) protein(g)
theme prop to switch table to the dark theme. `);
} else {
return [
createTextVNode(" use "),
createVNode("code", null, "theme"),
createTextVNode(" prop to switch table to the dark theme. ")
];
}
}),
_: 1
}, _parent4, _scopeId3));
_push4(ssrRenderComponent(_sfc_main$1, null, null, _parent4, _scopeId3));
} else {
return [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" use "),
createVNode("code", null, "theme"),
createTextVNode(" prop to switch table to the dark theme. ")
]),
_: 1
}),
createVNode(_sfc_main$1)
];
}
}),
_: 1
}, _parent3, _scopeId2));
} else {
return [
createVNode(VCard, { title: "Theme" }, {
default: withCtx(() => [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" use "),
createVNode("code", null, "theme"),
createTextVNode(" prop to switch table to the dark theme. ")
]),
_: 1
}),
createVNode(_sfc_main$1)
]),
_: 1
})
];
}
}),
_: 1
}, _parent2, _scopeId));
_push2(ssrRenderComponent(VCol, { cols: "12" }, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(VCard, { title: "Density" }, {
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
if (_push4) {
_push4(ssrRenderComponent(VCardText, null, {
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
if (_push5) {
_push5(` You can show a dense version of the table by using the density prop. `);
} else {
return [
createTextVNode(" You can show a dense version of the table by using the "),
createVNode("code", null, "density"),
createTextVNode(" prop. ")
];
}
}),
_: 1
}, _parent4, _scopeId3));
_push4(ssrRenderComponent(_sfc_main$4, null, null, _parent4, _scopeId3));
} else {
return [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" You can show a dense version of the table by using the "),
createVNode("code", null, "density"),
createTextVNode(" prop. ")
]),
_: 1
}),
createVNode(_sfc_main$4)
];
}
}),
_: 1
}, _parent3, _scopeId2));
} else {
return [
createVNode(VCard, { title: "Density" }, {
default: withCtx(() => [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" You can show a dense version of the table by using the "),
createVNode("code", null, "density"),
createTextVNode(" prop. ")
]),
_: 1
}),
createVNode(_sfc_main$4)
]),
_: 1
})
];
}
}),
_: 1
}, _parent2, _scopeId));
_push2(ssrRenderComponent(VCol, { cols: "12" }, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(VCard, { title: "Height" }, {
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
if (_push4) {
_push4(ssrRenderComponent(VCardText, null, {
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
if (_push5) {
_push5(` You can set the height of the table by using the height prop. `);
} else {
return [
createTextVNode(" You can set the height of the table by using the "),
createVNode("code", null, "height"),
createTextVNode(" prop. ")
];
}
}),
_: 1
}, _parent4, _scopeId3));
_push4(ssrRenderComponent(_sfc_main$2, null, null, _parent4, _scopeId3));
} else {
return [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" You can set the height of the table by using the "),
createVNode("code", null, "height"),
createTextVNode(" prop. ")
]),
_: 1
}),
createVNode(_sfc_main$2)
];
}
}),
_: 1
}, _parent3, _scopeId2));
} else {
return [
createVNode(VCard, { title: "Height" }, {
default: withCtx(() => [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" You can set the height of the table by using the "),
createVNode("code", null, "height"),
createTextVNode(" prop. ")
]),
_: 1
}),
createVNode(_sfc_main$2)
]),
_: 1
})
];
}
}),
_: 1
}, _parent2, _scopeId));
_push2(ssrRenderComponent(VCol, { cols: "12" }, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(VCard, { title: "Fixed Header" }, {
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
if (_push4) {
_push4(ssrRenderComponent(VCardText, null, {
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
if (_push5) {
_push5(` You can fix the header of table by using the fixed-header prop. `);
} else {
return [
createTextVNode(" You can fix the header of table by using the "),
createVNode("code", null, "fixed-header"),
createTextVNode(" prop. ")
];
}
}),
_: 1
}, _parent4, _scopeId3));
_push4(ssrRenderComponent(_sfc_main$3, null, null, _parent4, _scopeId3));
} else {
return [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" You can fix the header of table by using the "),
createVNode("code", null, "fixed-header"),
createTextVNode(" prop. ")
]),
_: 1
}),
createVNode(_sfc_main$3)
];
}
}),
_: 1
}, _parent3, _scopeId2));
} else {
return [
createVNode(VCard, { title: "Fixed Header" }, {
default: withCtx(() => [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" You can fix the header of table by using the "),
createVNode("code", null, "fixed-header"),
createTextVNode(" prop. ")
]),
_: 1
}),
createVNode(_sfc_main$3)
]),
_: 1
})
];
}
}),
_: 1
}, _parent2, _scopeId));
} else {
return [
createVNode(VCol, { cols: "12" }, {
default: withCtx(() => [
createVNode(VCard, { title: "Basic" }, {
default: withCtx(() => [
createVNode(_sfc_main$5)
]),
_: 1
})
]),
_: 1
}),
createVNode(VCol, { cols: "12" }, {
default: withCtx(() => [
createVNode(VCard, { title: "Theme" }, {
default: withCtx(() => [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" use "),
createVNode("code", null, "theme"),
createTextVNode(" prop to switch table to the dark theme. ")
]),
_: 1
}),
createVNode(_sfc_main$1)
]),
_: 1
})
]),
_: 1
}),
createVNode(VCol, { cols: "12" }, {
default: withCtx(() => [
createVNode(VCard, { title: "Density" }, {
default: withCtx(() => [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" You can show a dense version of the table by using the "),
createVNode("code", null, "density"),
createTextVNode(" prop. ")
]),
_: 1
}),
createVNode(_sfc_main$4)
]),
_: 1
})
]),
_: 1
}),
createVNode(VCol, { cols: "12" }, {
default: withCtx(() => [
createVNode(VCard, { title: "Height" }, {
default: withCtx(() => [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" You can set the height of the table by using the "),
createVNode("code", null, "height"),
createTextVNode(" prop. ")
]),
_: 1
}),
createVNode(_sfc_main$2)
]),
_: 1
})
]),
_: 1
}),
createVNode(VCol, { cols: "12" }, {
default: withCtx(() => [
createVNode(VCard, { title: "Fixed Header" }, {
default: withCtx(() => [
createVNode(VCardText, null, {
default: withCtx(() => [
createTextVNode(" You can fix the header of table by using the "),
createVNode("code", null, "fixed-header"),
createTextVNode(" prop. ")
]),
_: 1
}),
createVNode(_sfc_main$3)
]),
_: 1
})
]),
_: 1
})
];
}
}),
_: 1
}, _parent));
};
}
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
const ssrContext = useSSRContext();
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/tables.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export { _sfc_main as default };