(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21734a"],{c678:function(e,t,n){"use strict";n.r(t);var l=n("7a23");function o(e,t,n,o,r,i){return e.type?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:1,style:Object(l["normalizeStyle"])(e.currentTitleStyle)},Object(l["toDisplayString"])(e.content||e.translateValueByKey("请输入标题名称")),5)):(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,class:Object(l["normalizeClass"])(["internal-title-component",e.dom.class]),style:Object(l["normalizeStyle"])(e.dom.style)},Object(l["toDisplayString"])(e.content||e.translateValueByKey("请输入标题名称")),7))}var r,i,c=n("ffad"),a=n("49c67"),s=n("6251"),b=n("6fde");(function(e){e["RIGHT"]="right",e["MIDDLE"]="center",e["LEFT"]="left"})(r||(r={})),function(e){e["STYLE01"]="STYLE01",e["STYLE02"]="STYLE02",e["STYLE03"]="STYLE03",e["CUSTOM"]="CUSTOM"}(i||(i={}));const d={[i.STYLE01]:Object(b["Qb"])("title-style-1.png?x-oss-process=image/resize,m_lfit,h_800"),[i.STYLE02]:Object(b["Qb"])("title-style-2.png?x-oss-process=image/resize,m_lfit,h_800"),[i.STYLE03]:Object(b["Qb"])("title-style-3.png?x-oss-process=image/resize,m_lfit,h_800")},g="linear-gradient(90deg, rgba(2,94,254,0.00) 0%, rgba(3,93,255,0.30) 49%, rgba(3,93,255,0.00) 100%)";var p=Object(l["defineComponent"])({inheritAttrs:!1,props:Object.assign(Object.assign({},s["d"]),{content:{type:String,default:""},align:{type:String,default:"MIDDLE"},fontSize:{type:[String,Number],default:30},fontWeight:{type:Boolean,default:!1},fontColor:{type:String,default:"#ffffff"},backgroundColor:{type:String,default:g},titleStyle:{type:String,default:i.STYLE01}}),setup(e){const t=Object(l["ref"])("1"),n=Object(l["computed"])(()=>{const t=d[e.titleStyle];return{background:`url(${t})`,width:e.width+"px",height:e.height+"px","line-height":e.height+"px","background-repeat":"no-repeat","background-size":"100% 100%","text-align":"center","font-size":" 30px",color:"#FFFFFF"}}),o=Object(l["computed"])(()=>{const t=Object(a["k"])(e.borderStyle,e.borderColor),n=Object.assign({width:e.width+"px","border-color":e.borderColor,"font-size":e.fontSize+"px","font-weight":e.fontWeight?"bold":"100",color:e.fontColor,"text-align":r[e.align],background:e.backgroundColor||g,"line-height":e.height+"px"},t.style);return{style:n,class:t.class}});return Object(l["watch"])(()=>e.titleStyle,e=>{e===i.STYLE01?t.value="1":e===i.STYLE02?t.value="2":e===i.STYLE03?t.value="3":e===i.CUSTOM&&(t.value=null)},{immediate:!0}),{dom:o,TitleStyle:i,currentTitleStyle:n,type:t,translateValueByKey:c["vf"]}}}),u=n("6b0d"),f=n.n(u);const y=f()(p,[["render",o]]);t["default"]=y}}]);