UNPKG

dk-plus

Version:
43 lines (42 loc) 1.46 kB
import d from "./index2.js"; import { resolveComponent as m, openBlock as o, createElementBlock as r, Fragment as u, renderList as k, normalizeClass as c, createVNode as p, toDisplayString as l, createCommentVNode as a } from "vue"; import f from "../../_virtual/index.js"; const v = { class: "dk-rate", role: "slider" }, y = ["onMouseover", "onClick"], C = { key: 0, class: "dk-rate__text" }, _ = { key: 1, class: "dk-rate__text" }; function h(e, t, M, $, V, z) { const i = m("dk-icon"); return o(), r("div", v, [ (o(), r("div", { key: e.timestampTime, class: "dk-rate_list" }, [ (o(!0), r(u, null, k(e.markList, (S, s) => (o(), r("div", { key: s, class: c(["dk-rate_star", { "dk-rate_star-readonly": e.readonly }, { "dk-rate_star_forbidden": e.readonly }]), onMouseout: t[0] || (t[0] = (...n) => e.onMouseout && e.onMouseout(...n)), onMouseover: (n) => e.onMouseover(s + 1), onClick: (n) => e.handleClick(s + 1) }, [ p(i, { icon: e.icon, color: e.modelValue > s ? e.selectColor : e.noSelectColor, size: e.iconSize }, null, 8, ["icon", "color", "size"]) ], 42, y))), 128)) ])), e.showScore ? (o(), r("span", C, l(e.modelValue), 1)) : a("", !0), e.showText ? (o(), r("span", _, l(e.showText[e.modelValue - 1]), 1)) : a("", !0) ]); } const B = /* @__PURE__ */ f(d, [["render", h]]); export { B as default };