"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BB7fFseo.cjs"),n=require("./index-YwS-u3iG.cjs"),s={class:"rate-setting"},u=e.defineComponent({__name:"RatingSetting",setup(f){const a=["fill-star","fill-like","fill-love","fill-flower","fill-paw","fill-shit","fill-smile","fill-dot"],r=l=>{e.setRatingAttrs("iconName",l)};return(l,o)=>{const c=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",s,[e.createVNode(e.unref(n.TitleRow),null,{default:e.withCtx(()=>[e.createTextVNode("评分设置")]),_:1}),e.createVNode(e.unref(n.Row),{label:"量级设置"},{default:e.withCtx(()=>[e.createVNode(e.unref(e.ElSelect),{class:"rate-range-select","model-value":e.unref(e.activeWidgetAttrs).range,onChange:o[0]||(o[0]=t=>e.unref(e.setRatingAttrs)("range",t))},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t>2?(e.openBlock(),e.createBlock(e.unref(e.ElOption),{key:t,value:t},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t),1)]),_:2},1032,["value"])):e.createCommentVNode("",!0)],64))),64))]),_:1},8,["model-value"])]),_:1}),e.createVNode(e.unref(n.Row),{wrap:"",label:"外观"},{default:e.withCtx(()=>[e.createVNode(e.unref(e.ElButtonGroup),null,{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,(t,i)=>e.createVNode(e.unref(e.ElButton),{class:e.normalizeClass(["rate-icon-btn",{"rate-icon-btn-active":e.unref(e.activeWidgetAttrs).iconName===t}]),key:`rate-icon-${i}`,onClick:m=>r(t)},{default:e.withCtx(()=>[e.createVNode(c,{name:`${t}-ac`,style:{"font-size":"22px"}},null,8,["name"])]),_:2},1032,["class","onClick"])),64))]),_:1})]),_:1})])}}}),d=e._export_sfc(u,[["__scopeId","data-v-cdd1b827"]]);exports.default=d;
