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)
43 lines (42 loc) • 1.26 kB
JavaScript
import { defineComponent as f, computed as d, createVNode as n, 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: r
}) {
const m = d(() => e.formItem.data), {
event: l
} = D({
formData: e.formData,
index: e.index,
formItem: e.formItem
});
return () => {
var o, a;
return n(u, null, [n(c, i({
modelValue: e.formData[e.formItem.prop],
"onUpdate:modelValue": (t) => e.formData[e.formItem.prop] = t,
style: ((o = m.value) == null ? void 0 : o.style) || {},
"allow-half": !0,
onChange: (t) => {
r("update:modelValue", t), l("change", t), setTimeout(() => {
console.log(e.formData[e.formItem.prop], t);
}, 1e3);
}
}, x({
formData: e.formData,
index: e.index,
formItem: e.formItem
}, (a = m.value) == null ? void 0 : a.property)), null)]);
};
}
});
export {
g as FRate,
g as default
};
//# sourceMappingURL=f-rate.mjs.map