"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BB7fFseo.cjs"),c=n=>(e.pushScopeId("data-v-f49720f0"),n=n(),e.popScopeId(),n),u={key:0,class:"editor-pagination"},p={class:"line-row"},m=c(()=>e.createBaseVNode("div",{class:"line"},null,-1)),_={class:"info"},v=c(()=>e.createBaseVNode("div",{class:"line"},null,-1)),f={key:1,class:"input-pagination"},g=c(()=>e.createBaseVNode("div",{class:"line-row"},null,-1)),y={key:0,class:"title"},k={key:1,class:"desc"},V=e.defineComponent({__name:"Pagination",setup(n){const a=e.inject("editable"),t=e.inject("widgetStore"),r=e.computed(()=>!a||!t.isActive),s=e.computed({get:()=>t.attrs.title,set:l=>{t.updateAttr("title",l||"")}}),o=e.computed({get:()=>t.attrs.desc,set:l=>{t.updateAttr("desc",l||"")}});return(l,i)=>e.unref(a)?(e.openBlock(),e.createElementBlock("div",u,[e.createBaseVNode("div",p,[m,e.createBaseVNode("div",_,e.toDisplayString(`第${e.unref(t).index+1}页（共${e.unref(e.groupedWidgets).paginationList.length}页）`),1),v]),e.createVNode(e.unref(e.ElInput),{class:"title",modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=d=>s.value=d),type:"textarea",autosize:{minRows:1,maxRows:999},placeholder:"点击输入分页标题",readonly:!e.unref(a),resize:"none","input-style":{padding:"10px",fontSize:"16px",color:"#1a1a1a",scrollbarWidth:"none",...r.value&&{boxShadow:"none",background:"transparent"}}},null,8,["modelValue","readonly","input-style"]),e.unref(t).isActive||o.value?(e.openBlock(),e.createBlock(e.unref(e.ElInput),{key:0,class:"desc",modelValue:o.value,"onUpdate:modelValue":i[1]||(i[1]=d=>o.value=d),type:"textarea",autosize:{minRows:1,maxRows:999},placeholder:"点击输入分页提示",readonly:!e.unref(a),resize:"none","input-style":{padding:"8px 10px",fontSize:"14px",color:"#767676",scrollbarWidth:"none",...r.value&&{boxShadow:"none",background:"transparent"}}},null,8,["modelValue","readonly","input-style"])):e.createCommentVNode("",!0),e.createVNode(e._sfc_main$2)])):(e.openBlock(),e.createElementBlock("div",f,[g,s.value?(e.openBlock(),e.createElementBlock("div",y,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",k,e.toDisplayString(o.value),1)):e.createCommentVNode("",!0)]))}}),h=e._export_sfc(V,[["__scopeId","data-v-f49720f0"]]);exports.default=h;
