UNPKG

el-plus-powerful-form

Version:

## [DOCS](https://peng-xiao-shuai.github.io/vite-vue-admin-docs/zh-CN/component_directive/component/powerful-form-doc.html)

41 lines (40 loc) 1.17 kB
import { defineComponent as f, computed as d, createVNode as r, Fragment as u, mergeProps as i } from "vue"; import { ElRate as c } from "element-plus"; import { componentProps as I, useEvent as D, isProperty as x } from "../powerful-form/src/form-view-data.mjs"; const g = /* @__PURE__ */ f({ name: "FRate", props: I(), emits: ["update:modelValue"], setup(e, { emit: n }) { const m = d(() => e.formItem.data), { event: l } = D({ formData: e.formData, index: e.index, formItem: e.formItem }); return () => { var a, o; return r(u, null, [r(c, i({ modelValue: e.formData[e.formItem.prop], "onUpdate:modelValue": (t) => e.formData[e.formItem.prop] = t, style: ((a = m.value) == null ? void 0 : a.style) || {}, "allow-half": !0, onChange: (t) => { n("update:modelValue", t), l("change", t); } }, x({ formData: e.formData, index: e.index, formItem: e.formItem }, (o = m.value) == null ? void 0 : o.property)), null)]); }; } }); export { g as FRate, g as default }; //# sourceMappingURL=f-rate.mjs.map