index.8026035a.js 1.5 KB

1
  1. import{d as c,c as s,F as f,q as o}from"./index.332c7f08.js";const a="_finishResult_1jfdh_1",h="_finishContainer_1jfdh_5",r="_finishContent_1jfdh_10",l="_scoreNums_1jfdh_14",u="_scoreName_1jfdh_24",_="_scoreResult_1jfdh_33",d="_finishFail_1jfdh_38",m="_finishPractice_1jfdh_43",C="_finishBtnGroup_1jfdh_48",R="_finishLeft_1jfdh_54",j="_finishRight_1jfdh_55";var i={finishResult:a,finishContainer:h,finishContent:r,scoreNums:l,scoreName:u,scoreResult:_,finishFail:d,finishPractice:m,finishBtnGroup:C,finishLeft:R,finishRight:j},v=c({name:"result-mode",props:{confirmButtonText:{type:String,default:"\u53BB\u7EC3\u4E60"},cancelButtonText:{type:String,default:"\u6211\u77E5\u9053\u4E86"},status:{type:String,default:"SUCCESS"},result:{type:Object,default:()=>({tips:"\u606D\u559C\u4F60\uFF0C\u6D4B\u9A8C\u901A\u8FC7\uFF01",score:0,examName:""})}},emits:["close","conform"],setup(t,{slots:n,emit:e}){return()=>s("div",{class:[i.finishResult,t.status==="FAIL"&&i.finishFail,t.status==="PRACTICE"&&i.finishPractice]},[s("div",{class:i.finishContainer},[s("div",{class:i.finishContent},[n.content?n.content():s(f,null,[s("div",{class:i.scoreNums},[t.result.score,s("span",null,[o("\u5206")])]),s("div",{class:i.scoreName},[t.result.examName]),s("div",{class:i.scoreResult},[t.result.tips])])])]),s("div",{class:i.finishBtnGroup},[s("div",{class:i.finishLeft,onClick:()=>e("close")},[t.cancelButtonText]),s("div",{class:i.finishRight,onClick:()=>e("conform")},[t.confirmButtonText])])])}});export{v as R};