UNPKG

@scalar/api-client

Version:

the open source API testing client

30 lines (29 loc) 897 B
import { defineComponent as c, computed as u, withDirectives as p, createElementBlock as m, openBlock as i, mergeProps as d, vModelText as f } from "vue"; const x = /* @__PURE__ */ c({ __name: "ServerVariablesTextbox", props: { value: {}, controls: {} }, emits: ["change"], setup(e, { emit: r }) { const a = e, n = r, o = u({ get: () => a.value, set: (t) => n("change", t) }); return (t, l) => p((i(), m("input", d({ "onUpdate:modelValue": l[0] || (l[0] = (s) => o.value = s) }, e.controls ? { ...t.$attrs, "aria-controls": e.controls } : {}, { autocomplete: "off", class: "text-c-1 w-full border-transparent px-1.5 py-1.25 -outline-offset-1 group-last/label:rounded-br-lg", placeholder: "value", spellcheck: "false", type: "text" }), null, 16)), [ [f, o.value] ]); } }); export { x as default };