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)
56 lines (55 loc) • 1.39 kB
JavaScript
import { defineComponent as p, inject as d, createVNode as r, Fragment as u, mergeProps as c } from "vue";
import { ElRate as w } from "element-plus";
import { powerfulTableComponentProp as f, isData as s, useREmit as x, isProperty as y } from "../../powerful-table/src/powerful-table-data.mjs";
import { SizeSymbol as R } from "../../keys.mjs";
const n = /* @__PURE__ */ p({
name: "PTRate",
props: {
...f,
prop: {
type: Object,
default: () => ({})
}
},
emits: ["return-emit", "component-emit"],
setup(e, {
emit: i
}) {
const o = s({
row: e.row,
index: e.index,
props: e.prop
}, e.prop.data), m = d(R), {
REmit: l,
event: a
} = x(i, "rate", {
row: e.row,
index: e.index,
props: e.prop
});
return () => r(u, null, [r(w, c({
size: m,
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) => {
l("change", ...t), a("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 z = n;
export {
z as PTRate,
n as default
};
//# sourceMappingURL=rate.mjs.map