2 lines
39 KiB
JavaScript
2 lines
39 KiB
JavaScript
|
|
import{_ as e,r as t,w as a,a as n,c as l,o,b as i,d as s,t as u,e as r,v as d,f as p,F as c,g as v,h as f,i as g,j as m,k as y,n as x,l as b,m as h,p as w,q as S,P as z,s as k,u as A,x as C,y as P,z as F,A as D}from"./styles-YQqUhjjA.js";import"./pdfjs-DXqArq6h.js";import"./pdf-lib-AfLQbX6n.js";const V={key:0,class:"annotation-detail-panel"},U={class:"panel-header"},I={class:"detail-content"},N={class:"detail-row"},E={class:"label-preview"},R={class:"detail-row"},$={class:"detail-row"},j={class:"detail-row"},L={class:"detail-row"},O={class:"detail-row"},T={key:0,class:"detail-row"},_={key:1,class:"detail-row"},B={class:"detail-row"},M={class:"detail-row readonly"},J={class:"detail-row readonly"},X={style:{"margin-top":"16px","padding-top":"12px","border-top":"1px solid #e5e7eb"}},Y={style:{display:"flex","flex-direction":"column",gap:"8px"}},W={style:{display:"flex","flex-direction":"column",gap:"6px"}},G={key:0,style:{"margin-top":"12px","border-top":"1px solid #e5e7eb","padding-top":"10px"}},q={style:{"font-size":"12px","font-weight":"600",color:"#0369a1","margin-bottom":"6px"}},Z=["onClick"],H={style:{"font-size":"12px","font-weight":"600",color:"#0369a1"}},K={style:{display:"flex","align-items":"center",gap:"6px"}},Q={style:{"font-size":"11px",color:"#64748b"}},ee={style:{"font-size":"10px",color:"#94a3b8"}},te=["onClick"],ae={key:0,style:{padding:"6px 8px","max-height":"160px","overflow-y":"auto"}},ne={style:{background:"#f8fafc",border:"1px solid #e2e8f0","border-radius":"8px",padding:"10px 12px","margin-bottom":"12px"}},le={style:{display:"grid","grid-template-columns":"max-content 1fr","align-items":"center",gap:"6px 10px"}},oe={style:{display:"flex",gap:"12px"}},ie={style:{display:"flex","align-items":"center",gap:"4px","font-size":"12px",color:"#334155",cursor:"pointer"}},se={style:{display:"flex","align-items":"center",gap:"4px","font-size":"12px",color:"#334155",cursor:"pointer"}},ue={style:{display:"flex","align-items":"center",gap:"6px","font-size":"12px",color:"#334155",cursor:"pointer"}},re={style:{display:"flex","flex-direction":"column",gap:"4px"}},de={style:{display:"flex","align-items":"center",gap:"4px","font-size":"12px",color:"#334155",cursor:"pointer"}},pe={style:{display:"flex","align-items":"center",gap:"4px","font-size":"12px",color:"#334155",cursor:"pointer"}},ce={style:{display:"flex","align-items":"center",gap:"4px","font-size":"12px",color:"#334155",cursor:"pointer"}},ve={style:{display:"none","flex-direction":"column","margin-top":"24px","padding-top":"16px","border-top":"1px solid #e5e7eb"}},fe={style:{"margin-bottom":"12px"}},ge={style:{"margin-bottom":"12px"}},me=e({__name:"LeftPanel",props:{autoAnnotating:{type:Boolean,default:!1},selectedAnnotation:{type:Object,default:null},selectedAnnotationPage:{type:Number,default:null},selectedAnnotationIndex:{type:Number,default:null},annotationsJson:{type:String,default:"{}"},initialCsvData:{type:String,default:""},groups:{type:Array,default:()=>[]},groupMode:{type:Boolean,default:!1}},emits:["file-selected","open-pdf","save-pdf-editable","saveas-pdf-editable","export-pdf-embedded","save-pdf-final","export-csv","export-json","import-annotations","import-csv","import-image","undo-annotation","clear-page-annotations","delete-selected-annotation","apply-settings","update-annotation","delete-annotation","deselect-annotation","load-pdf-url","renumber-page-annotations","auto-annotate-page","toggle-group-mode","delete-group"],setup(e,{emit:h}){const w=e,S=h,z=t(0),k=t(""),A=t(""),C=t(10),P=t(!1),F=t(""),D=t(""),me=t("");function ye(){if(!w.selectedAnnotation)return;const e={...w.selectedAnnotation,displayValue:z.value,settings:{...w.selectedAnnotation.settings,prefix:k.value,suffix:A.value,fontSize:C.value},completed:P.value,completedTime:P.value?F.value:"",completedBy:P.value?D.value:"",note:me.value};S("update-annotation",e)}function xe(){confirm("确定要删除这个标注吗?")&&S("delete-annotation")}a(()=>w.selectedAnnotation,e=>{e&&(z.value=e.displayValue||0,k.value=e.settings?.prefix??"",A.value=e.settings?.suffix??"",C.value=e.settings?.
|