UNPKG

@opensig/opendesign

Version:

<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>

20 lines (19 loc) 375 B
import { defineComponent, h } from "vue"; const HtmlTag = defineComponent({ name: "HtmlTag", props: { tag: { type: String, default: "div" } }, setup(props, { slots, attrs }) { return () => { var _a; return h(props.tag, attrs, (_a = slots.default) == null ? void 0 : _a.call(slots)); }; } }); export { HtmlTag as default };