projet-fin-etude-rapport/assets/NoteDisplay-b086c452.js
2023-09-06 22:54:14 +02:00

2 lines
1 KiB
JavaScript

import{d as c,i as u,a as d,o as n,f as s,E as l,g as r,t as a,_ as m}from"./index-621d9fd0.js";const f=["innerHTML"],k=["textContent"],v=["textContent"],y=c({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1}},emits:["click"],setup(p){const o=p;return u(d),(e,t)=>e.noteHtml?(n(),s("div",{key:0,class:l(["prose overflow-auto outline-none",o.class]),onClick:t[0]||(t[0]=i=>e.$emit("click")),innerHTML:e.noteHtml},null,10,f)):e.note?(n(),s("div",{key:1,class:l(["prose overflow-auto outline-none",o.class]),onClick:t[1]||(t[1]=i=>e.$emit("click"))},[r("p",{textContent:a(e.note)},null,8,k)],2)):(n(),s("div",{key:2,class:l(["prose overflow-auto outline-none opacity-50 italic",o.class]),onClick:t[2]||(t[2]=i=>e.$emit("click"))},[r("p",{textContent:a(o.placeholder||"No notes.")},null,8,v)],2))}}),N=m(y,[["__file","/home/laurent/Documents/Cours/ENSEEIHT/PFE/etude-biblio/slides/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{N};