UNPKG

tyh-ui2

Version:

The next generation ui component library of tyh-ui is based on vue3 Version, fully embrace vue3.

19 lines (18 loc) 534 B
import { defineComponent as n, openBlock as o, createElementBlock as t, toDisplayString as s, renderSlot as a } from "vue"; import { Props as l } from "./index2.js"; const p = ["value"], r = { key: 0 }, _ = { key: 1 }, i = n({ name: "TyhOption" }), f = /* @__PURE__ */ n({ ...i, props: l, setup(u) { return (e, c) => (o(), t("option", { value: e.value }, [ e.label ? (o(), t("span", r, s(e.label), 1)) : (o(), t("span", _, [ a(e.$slots, "default") ])) ], 8, p)); } }); export { f as default };