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
1.9 KiB

import{S as c}from"./SelectHelper-5d9fefe7.js";import"./Tabs-ec1c48f8.js";import"./RadioGroup-a80e69a5.js";import _ from"./InputTheme-b25bb000.js";import"./FormTheme-70eb47bf.js";import{decodeExtraParams as f}from"./ParamUtils-cdc24dd6.js";import{D as o}from"./DataType-33901a1c.js";import{DBEnums as r}from"./DatabaseFormItem-4f3fa884.js";import{d as u,r as y,u as T,aT as I,aU as i,o as g,a as D,w as m,b as M,dU as S,dV as A,j as U}from"./index-f4658ae7.js";import{N as b}from"./FormItem-104f9f94.js";const w=u({name:"CustomizeExt",components:{NFormItem:b,SelectHelper:c},props:{widgetInfo:{type:Object,default:()=>{}}},setup(a){var p;const n=y(a.widgetInfo.title),t=T(a).widgetInfo.dto,s=t.AtPara;let e=f(s).get("EnName");return(e===""||e==null||e==null)&&(e="TS.FrmUI.MapAttrString",t.MyDataType===o.AppInt&&[r.DDL,r.RadioBtn].includes(t.UIContralType)&&(e="TS.FrmUI.MapAttrEnum"),t.MyDataType===o.AppBoolean&&(e="TS.FrmUI.MapAttrBoolean"),(t.MyDataType===o.AppInt||t.MyDataType===o.AppFloat||t.MyDataType===o.AppDouble)&&(e="TS.FrmUI.MapAttrNum"),t.MyDataType===o.AppString&&[r.DDL].includes(t.UIContralType)&&(e="TS.FrmUI.MapAttrSFSQL",e="TS.FrmUI.MapAttrSFTable"),t.MyDataType===o.AppDate&&t.MyDataType===o.AppDateTime&&(e="TS.FrmUI.MapAttrDT")),{label:n,InputTheme:_,settingUrl:`../../Comm/EnOnly.htm?EnName=${e}&PKVal=${(p=a.widgetInfo)==null?void 0:p.id}&s=${Math.random()}`}}});const F=a=>(S("data-v-273d7917"),a=a(),A(),a),h=F(()=>U("div",{class:"item"},"\u6269\u5C55\u63A7\u4EF6",-1));function E(a,n,t,s,l,e){const p=i("n-form-item"),d=i("select-helper");return g(),D(d,{widget:a.widgetInfo,"setting-url":a.settingUrl},{default:m(()=>[M(p,{label:a.widgetInfo.title,"show-feedback":!1},{default:m(()=>[h]),_:1},8,["label"])]),_:1},8,["widget","setting-url"])}const C=I(w,[["render",E],["__scopeId","data-v-273d7917"]]),k=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"}));export{k as _};