UNPKG

mine-h5-ui

Version:

一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍

25 lines (24 loc) 640 B
import { defineComponent as f, openBlock as i, createElementBlock as a, unref as o, renderSlot as p } from "vue"; import { useHandler as d } from "./hooks.js"; const S = /* @__PURE__ */ f({ name: "MeForm", __name: "index", props: { model: { default: () => ({}) }, rules: { default: () => [] } }, emits: ["submit"], setup(m, { emit: n }) { const r = n, s = m, { onSubmit: e } = d(s, r); return (l, t) => (i(), a("form", { class: "me-form", onSubmit: t[0] || (t[0] = //@ts-ignore (...u) => o(e) && o(e)(...u)) }, [ p(l.$slots, "default") ], 32)); } }); export { S as default };