UNPKG

tyh-ui2

Version:

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

33 lines (32 loc) 878 B
import { defineComponent as n, withDirectives as d, openBlock as p, createElementBlock as c, unref as l, renderSlot as i, vModelSelect as f, createCommentVNode as V } from "vue"; import { Props as y } from "./index2.js"; const _ = ["name"], h = n({ name: "TyhSelect" }), S = /* @__PURE__ */ n({ ...h, props: y, emits: ["update:modelValue"], setup(r, { emit: s }) { const a = r, t = new Proxy(a, { set() { return !0; } }), u = (e) => { s("update:modelValue", e.target.value); }; return (e, o) => e.$slots.default ? d((p(), c("select", { key: 0, "onUpdate:modelValue": o[0] || (o[0] = (m) => l(t).modelValue = m), class: "tyh-select", name: e.name, onInput: u }, [ i(e.$slots, "default") ], 40, _)), [ [f, l(t).modelValue] ]) : V("", !0); } }); export { S as default };