el-plus-powerful-table
Version:
## [DOCS](https://peng-xiao-shuai.github.io/vite-vue-admin-docs/zh-CN/component_directive/component/powerful-table-doc.html)
52 lines (51 loc) • 1.3 kB
JavaScript
import { defineComponent as a, inject as u, createVNode as r, Fragment as c, mergeProps as d } from "vue";
import { ElRate as s } from "element-plus";
import { powerfulTableComponentProp as f, useREmit as w, isProperty as y } from "../../powerful-table/src/powerful-table-data.mjs";
import { SizeSymbol as R } from "../../keys.mjs";
const n = /* @__PURE__ */ a({
name: "PTRate",
props: {
...f,
prop: {
type: Object,
default: () => ({})
}
},
emits: ["return-emit", "component-emit"],
setup(e, {
emit: m
}) {
const o = e.prop.data, l = u(R), {
REmit: i,
event: p
} = w(m, "rate", {
row: e.row,
index: e.index,
props: e.prop
});
return () => r(c, null, [r(s, d({
size: l,
modelValue: e.row[e.prop.prop],
"onUpdate:modelValue": (t) => e.row[e.prop.prop] = t,
disabled: !0,
"allow-half": !0,
style: (o == null ? void 0 : o.style) || {},
onChange: (...t) => {
i("change", ...t), p("change", ...t);
}
}, y({
row: e.row,
index: e.index,
props: e.prop
}, o == null ? void 0 : o.property)), null)]);
}
});
n.install = (e) => {
e.component(n.name, n);
};
const h = n;
export {
h as PTRate,
n as default
};
//# sourceMappingURL=rate.mjs.map