You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
2.2 KiB
2 lines
2.2 KiB
var d=(e,c,t)=>new Promise((m,n)=>{var u=o=>{try{r(t.next(o))}catch(i){n(i)}},a=o=>{try{r(t.throw(o))}catch(i){n(i)}},r=o=>o.done?m(o.value):Promise.resolve(o.value).then(u,a);r((t=t.apply(e,c)).next())});import{S as w}from"./SelectHelper-5d9fefe7.js";import"./Tabs-ec1c48f8.js";import"./RadioGroup-a80e69a5.js";import M from"./InputTheme-b25bb000.js";import"./FormTheme-70eb47bf.js";import{d as E,r as p,P as I,bl as S,aT as B,aU as y,o as H,a as P,w as v,j as h,b}from"./index-f4658ae7.js";import{useDesignerStore as T}from"./form-77f01638.js";import $ from"./Events-141c34ea.js";import x from"./BSEntity-840a884b.js";import{N as K}from"./Spin-e6188bfa.js";import{u as N}from"./use-message-f27d95bf.js";const C=E({name:"UniversalHtml",components:{SelectHelper:w,NSpin:K},props:{widgetInfo:{type:Object,default:()=>{}}},setup(e){var i,f;const c=p(e.widgetInfo.title),t=p(""),m=T(),n=p(!1),u=N(),a=()=>d(this,null,function*(){try{n.value=!0;const s=m.mapExtList.find(_=>{var g;return _.MyPK===`${_.ExtType}_${(g=e.widgetInfo)==null?void 0:g.id}`});if(!s){t.value="\u6CA1\u6709\u627E\u5230\u6B64\u6587\u672C\u5757";return}const l=new x("BP.Sys.MapExt");l.setPK(s.MyPK),l.setVal("MyPK",s.MyPK),t.value=yield l.DoMethodReturnString("ReadBigNoteHtmlText"),n.value=!1}catch(s){u.error(s)}finally{n.value=!1}});I(()=>d(this,null,function*(){$.on("updateHtml",s=>d(this,null,function*(){var l;s===((l=e.widgetInfo)==null?void 0:l.id)&&(yield a())})),yield a()}));const o=S().query.FrmID;return{loading:n,label:c,htmlVal:t,InputTheme:M,settingUrl:`./EditFExtContral/60.BigNoteHtmlText.htm?EnName=BP.Sys.MapAttr&FrmID=${o}&KeyOfEn=${(f=(i=e.widgetInfo)==null?void 0:i.dto)==null?void 0:f.KeyOfEn}`}}});const U={class:"item"},D=["innerHTML"];function O(e,c,t,m,n,u){const a=y("n-spin"),r=y("select-helper");return H(),P(r,{widget:e.widgetInfo,"setting-url":e.settingUrl},{default:v(()=>[h("div",U,[b(a,{show:e.loading},{default:v(()=>[h("div",{class:"inner-html",innerHTML:e.htmlVal},null,8,D)]),_:1},8,["show"])])]),_:1},8,["widget","setting-url"])}const V=B(C,[["render",O],["__scopeId","data-v-4c99f5a1"]]),X=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));export{X as _};
|