@gct-paas/schema 0.1.4-dev.8 → 0.1.4-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.min.mjs +764 -103
- package/dist/index.min.cjs +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/constants/index.d.ts +5 -0
- package/es/constants/index.mjs +19 -0
- package/es/index.mjs +10 -1
- package/es/interface/common/data-linkage-config.d.ts +17 -0
- package/es/interface/designer.d.ts +7 -6
- package/es/interface/index.d.ts +5 -2
- package/es/interface/modal/i-modal.d.ts +1 -1
- package/es/interface/schema/index.d.ts +2 -0
- package/es/interface/schema/widget-props/i-button-props.d.ts +170 -0
- package/es/interface/schema/widget-props/i-display-props.d.ts +48 -0
- package/es/interface/schema/widget-props/i-form-container-props.d.ts +77 -0
- package/es/interface/schema/widget-props/i-form-input-props.d.ts +409 -0
- package/es/interface/schema/widget-props/i-layout-props.d.ts +77 -0
- package/es/interface/schema/widget-props/i-search-widget-props.d.ts +126 -0
- package/es/interface/schema/widget-props/i-table-column-props.d.ts +54 -0
- package/es/interface/schema/widget-props/i-table-props.d.ts +384 -0
- package/es/interface/schema/widget-props/index.d.ts +8 -0
- package/es/interface/schema/widget-types.d.ts +370 -0
- package/es/interface/widget/i-events.d.ts +2 -9
- package/es/interface/widget/i-hooks-and-misc.d.ts +1 -0
- package/es/interface/widget/i-props.d.ts +1 -0
- package/es/interface/widget/i-schemas.d.ts +4 -4
- package/es/interface/widget/i-styles.d.ts +1 -1
- package/es/interface/widget/index.d.ts +7 -2
- package/es/interface/widget-info/i-designer-item-hooks.d.ts +21 -0
- package/es/interface/widget-info/i-designer-schema-exports.d.ts +13 -0
- package/es/interface/widget-info/i-widget-info-item.d.ts +78 -0
- package/es/interface/widget-info/i-widget-info.d.ts +19 -0
- package/es/interface/widget-info/index.d.ts +4 -0
- package/es/schema/common-config/base-button-config.d.ts +3 -0
- package/es/schema/common-config/base-button-config.mjs +84 -0
- package/es/schema/common-config/button-editor-config.d.ts +4 -0
- package/es/schema/common-config/button-editor-config.mjs +206 -0
- package/es/schema/common-config/button-props-func.d.ts +5 -0
- package/es/schema/common-config/button-props-func.mjs +11 -0
- package/es/schema/common-config/common-field-editor-config.d.ts +10 -0
- package/es/schema/common-config/common-field-editor-config.mjs +61 -0
- package/es/schema/common-config/display-editor-config.d.ts +3 -0
- package/es/schema/common-config/display-editor-config.mjs +89 -0
- package/es/schema/common-config/permission-editor-config.d.ts +2 -0
- package/es/schema/common-config/permission-editor-config.mjs +23 -0
- package/es/schema/index.d.ts +9 -1
- package/es/schema/modal/modal-body.d.ts +2 -0
- package/es/schema/modal/modal-body.mjs +9 -0
- package/es/schema/modal/modal-footer.d.ts +2 -0
- package/es/schema/modal/modal-footer.mjs +9 -0
- package/es/schema/modal/modal.d.ts +8 -0
- package/es/schema/modal/modal.mjs +182 -0
- package/es/utils/index.d.ts +3 -2
- package/es/utils/schema/index.d.ts +34 -0
- package/es/utils/schema/index.mjs +44 -2
- package/es/utils/widget-info/widget-info.d.ts +104 -0
- package/es/utils/widget-info/widget-info.mjs +76 -0
- package/package.json +4 -4
package/dist/index.min.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("@gct-paas/core"),n=require("lodash-es"),S={position:"",top:"",left:"",right:"",bottom:"",width:"",height:"",backgroundColor:"",marginAll:"",marginTop:"",marginRight:"",marginBottom:"",marginLeft:"",paddingAll:"",paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",labelFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:a.TextDecoration.NONE,color:""},contentFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:a.TextDecoration.NONE,color:""},tagStyle:{color:"",tagType:a.TagTypeEnum.RADIUS},tagStyleOpen:!1,borderAll:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderLeft:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderRight:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderBottom:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTop:{borderStyle:a.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTopRightRadius:"0",borderTopLeftRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",borderAllRadius:"0"},h=["position","backgroundColor","bold","italic","textDecoration","color","borderStyle","borderColor"];function x(t,r,e){return t.type===e&&n.has(t,"preLocation")&&new RegExp(`^${r}_`).test(t.preLocation)}function g(t){return t+"px"}function o(t){return n.isEmpty(t)?"":`${t}px !important`}function p(t){return n.isEmpty(t)?"":`${t} !important`}function d(t){return!t||n.isEmpty(t.borderWidth)?"":`${t.borderWidth}px ${t.borderStyle||"solid"} ${t.borderColor||"transparent"} !important`}const T={fontAttrs:["fontWeight","fontSize","color","textDecorationLine","textAlign"],mapAttrs:{bold:{attr:"fontWeight",callback:t=>t?700:400},italic:{attr:"fontStyle",callback:t=>t?"italic":"normal"},textDecoration:{attr:"textDecorationLine"},fontSize:{attr:"fontSize",callback:t=>t?g(t):""},align:{attr:"textAlign"}}};function R(t,r=T){if(!t)return{};const e={};return Object.assign(e,n.pick(t,r.fontAttrs)),typeof r.mapAttrs=="object"&&Object.keys(r.mapAttrs).forEach(i=>{const{attr:l,callback:c}=r.mapAttrs[i];e[l]=typeof c=="function"?c(t[i]):t[i]}),e}function y(t={}){const r={};for(const e in t)r[e]=f(e,t[e]);return r}const L=["opacity","zIndex","fontWeight","lineHeight","letterSpacing","wordSpacing","textAlign","textDecoration","textTransform","fontStyle","textDecorationLine"];function f(t,r){return n.isNil(r)||n.isEmpty(r)?"":L.includes(t)?r+" !important":r+"px !important"}const b={left:"flex-start",center:"center",right:"flex-end",justify:"space-between"};function B(t){return b[t]||t}function m(t){return{position:p(t.position),top:o(t.top),left:o(t.left),right:o(t.right),bottom:o(t.bottom),width:o(t.width),height:o(t.height)}}function s(t){return{backgroundColor:p(t.backgroundColor),marginTop:o(t.marginTop),marginRight:o(t.marginRight),marginBottom:o(t.marginBottom),marginLeft:o(t.marginLeft),paddingTop:o(t.paddingTop),paddingRight:o(t.paddingRight),paddingBottom:o(t.paddingBottom),paddingLeft:o(t.paddingLeft)}}function u(t){return{borderLeft:d(t.borderLeft),borderRight:d(t.borderRight),borderBottom:d(t.borderBottom),borderTop:d(t.borderTop),borderTopRightRadius:o(t.borderTopRightRadius),borderTopLeftRadius:o(t.borderTopLeftRadius),borderBottomRightRadius:o(t.borderBottomRightRadius),borderBottomLeftRadius:o(t.borderBottomLeftRadius)}}function E(t,r=[]){const e={...m(t),...s(t),...u(t)};return r.forEach(i=>{delete e[i]}),Object.keys(e).forEach(i=>{const l=e[i];(n.isNil(l)||n.isEmpty(l))&&delete e[i]}),e}const F={install(){}};exports.ALIGN_TO_FLEX_MAP=b;exports.addImportant=p;exports.addPxUnit=o;exports.commonStyle=S;exports.default=F;exports.extractFontStyle=R;exports.formatBorder=d;exports.generateBorderStyles=u;exports.generatePositionStyles=m;exports.generateSpacingStyles=s;exports.generateWrapperStyle=E;exports.getCompPos=x;exports.makeStyleProp=f;exports.notNeedPxStyle=h;exports.propsToStyle=y;exports.pxToVw=g;exports.transAlign2flex=B;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("@gct-paas/core"),p=require("lodash-es"),B={id:"",type:o.BuiltinType.MODAL_BODY,children:[]},M={id:"",type:o.BuiltinType.MODAL_FOOTER,children:[]},N={id:"",platform:o.Platform.WEB,name:"sys.pageDesigner.modal",alias:"",modalName:"",type:o.BuiltinType.MODAL,js:"",css:"",children:[B,M],props:{modalTitle:"弹窗",unitType:"px",modalWidth:800,isSubTableModal:!1,bindSubTableId:"",createModalTitle:"新建弹窗",editModalTitle:"编辑弹窗",hasFooter:!0,openMode:"modal",mUnitType:"%",mModalWidth:80},style:{paddingAll:"16",paddingTop:"16",paddingRight:"16",paddingBottom:"16",paddingLeft:"16"},events:{},i18n:{},runJs:"",los:{},icon:"icon-motaikuang1",isField:!1},R=[{component:"text-editor",name:"modalTitle",label:"sys.pageDesigner.modalTitleName",group:o.PropGroup.BASIC,_config:{showCount:!0,maxlength:32},hidden:e=>e.props.isSubTableModal},{component:"input-unit-editor",name:{unitType:"unitType",modalWidth:"modalWidth"},label:"sys.pageDesigner.modalWidthProp",group:o.PropGroup.MODAL,hidden:e=>e.platform===o.Platform.MOBILE},{component:"input-unit-editor",name:{unitType:"mUnitType",modalWidth:"mModalWidth"},label:"sys.pageDesigner.modalHeightProp",group:o.PropGroup.MODAL,hidden:e=>e.platform!==o.Platform.MOBILE,_config:{filterUnitType:"px"}},{component:"text-editor",name:"createModalTitle",label:"sys.pageDesigner.createModalTitle",group:o.PropGroup.MODALTITLECONFIG,_config:{i18n:!0},hidden:e=>!e.props.isSubTableModal},{component:"text-editor",name:"editModalTitle",label:"sys.pageDesigner.editModalTitle",group:o.PropGroup.MODALTITLECONFIG,_config:{i18n:!0},hidden:e=>!e.props.isSubTableModal},{component:"select-editor",name:"openMode",label:"sys.appDesigner.openMode",group:o.PropGroup.MODAL,hidden:e=>e.platform!==o.Platform.WEB,_config:{options:()=>[{label:"打开弹窗页面",value:"modal"},{label:"右侧划入页面",value:"drawer"}]},changeCallback:(e,t)=>{t==="drawer"?(e.props.unitType="%",e.props.modalWidth=80):(e.props.unitType="px",e.props.modalWidth=800)}},{component:"switch-editor",name:"hasFooter",label:"sys.pageDesigner.operateButton",group:o.PropGroup.BUTTON,hidden:e=>e.props.isSubTableModal}],A=[{component:"color-editor",name:"backgroundColor",label:"sys.pageDesigner.backgroundColor",group:o.StyleGroup.BACKGROUND},{component:"margin-editor",group:o.StyleGroup.MARGIN,_config:{hiddenMarginOrPadding:"margin"}}],W=[{name:"onMounted",title:"sys.pageDesigner.onMounted",params:[]}],x=()=>{},G=e=>{e.children[0].id=o.buildShortUUID(e.children[0].type),e.children[1].id=o.buildShortUUID(e.children[1].type)},Y={basicProps:{key_label:"弹窗",alias_hidden:!0}},U=Object.freeze(Object.defineProperty({__proto__:null,beforeCreate:G,designerConfig:Y,eventList:W,propEditorList:R,runCallback:x,styleEditorList:A,widget:N},Symbol.toStringTag,{value:"Module"}));function l(e){return Object.prototype.hasOwnProperty.call(e.props,"model")?!e.props.model:Object.prototype.hasOwnProperty.call(e.props,"refForm")?!e.props.refForm:!1}const k={position:"",top:"",left:"",right:"",bottom:"",width:"",height:"",backgroundColor:"",marginAll:"",marginTop:"",marginRight:"",marginBottom:"",marginLeft:"",paddingAll:"",paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",labelFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:o.TextDecoration.NONE,color:""},contentFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:o.TextDecoration.NONE,color:""},tagStyle:{color:"",tagType:o.TagTypeEnum.RADIUS},tagStyleOpen:!1,borderAll:{borderStyle:o.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderLeft:{borderStyle:o.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderRight:{borderStyle:o.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderBottom:{borderStyle:o.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTop:{borderStyle:o.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTopRightRadius:"0",borderTopLeftRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",borderAllRadius:"0"},v=["position","backgroundColor","bold","italic","textDecoration","color","borderStyle","borderColor"],z=[o.FIELD_TYPE.TEXT,o.FIELD_TYPE.LONG_TEXT,o.FIELD_TYPE.INTEGER,o.FIELD_TYPE.LONG,o.FIELD_TYPE.DOUBLE,o.FIELD_TYPE.DECIMAL,o.FIELD_TYPE.BOOLEAN,o.FIELD_TYPE.DATE,o.FIELD_TYPE.TIME,o.FIELD_TYPE.DATE_TIME,o.FIELD_TYPE.USER,o.FIELD_TYPE.USER_MULTI,o.FIELD_TYPE.SERIAL],y={deviceConnectivity:!1,hidden:!1,componentDependency:{sortDependency:[],configDependency:{[o.Dependency_ENUM.HIDDEN]:{expression:""},[o.Dependency_ENUM.READONLY]:{expression:""},[o.Dependency_ENUM.DISABLED]:{expression:""},[o.Dependency_ENUM.REQUIRED]:{expression:""},[o.Dependency_ENUM.ASSIGNMENT]:{expression:"",strategy:o.ASSIGNMENTSTRATEGY_ENUM.alwaysCover}}}},j=[o.FIELD_TYPE.TEXT,o.FIELD_TYPE.LONG_TEXT,o.FIELD_TYPE.INTEGER,o.FIELD_TYPE.LONG,o.FIELD_TYPE.DOUBLE,o.FIELD_TYPE.DECIMAL,o.FIELD_TYPE.BOOLEAN,o.FIELD_TYPE.DATE,o.FIELD_TYPE.DATE_TIME,o.FIELD_TYPE.MASTERSLAVE],$=[{component:"dependency-editor",name:"componentDependency",label:"",group:o.PropGroup.COMPONENTDEPENDENCY,hidden:e=>e.materialType===o.MaterialEnum.MaterialEmbedTableField||e.type===o.FormComponents.Form&&e.preLocation?!0:l(e)||e.props.field==="operating_state_"},{component:"switch-editor",name:"notSubmitInHide",label:"sys.pageDesigner.submitWhenHidden",group:o.PropGroup.FIELD_CONFIG,hidden(e){return!e.isField||!e.props.field||e.props.bindFieldKey||e.props.fieldReadonly||e.materialType===o.MaterialEnum.cardListFormField||[o.FIELD_TYPE.EXPRESSION_CONDITION,o.FIELD_TYPE.SERIALRULE,o.FIELD_TYPE.LABEL_TEMPLATE].includes(e.props.fieldType)||!z.includes(e.props.fieldType)}},{component:"switch-editor",name:"deviceConnectivity",label:"sys.pageDesigner.deviceConnectivity",group:o.PropGroup.FIELD_CONFIG,hidden:e=>e.platform!==o.Platform.WEB||![o.MaterialEnum.MaterialFormField].includes(e.materialType)||!j.includes(e.props.fieldType)}];class b{events={};propEditors={};schema={};callback={};beforeCreate={};styleEditors={};designerConfig={};hooks={};whiteList={};blackList={}}const c=new b,u=new b,m=new b;function h(e){switch(e){case o.Platform.WEB:return c;case o.Platform.MOBILE:return u;case o.Platform.PAD:return m;default:return c}}function g(e,t,r){e.events[t]=r.eventList,e.hooks[t]=r.hooks,e.whiteList[t]=r.whiteList,e.blackList[t]=r.blackList,e.propEditors[t]=r.propEditorList,e.schema[t]=r.widget,e.callback[t]=r.runCallback,e.beforeCreate[t]=r.beforeCreate,e.styleEditors[t]=r.styleEditorList,e.designerConfig[t]=r.designerConfig}function X(e,t){g(c,t,e)}function H(e,t){g(u,t,e)}function K(e,t){g(m,t,e)}function E(e,t){if(t){const{type:r}=t.schema;e.events[r]=t.events,e.hooks[r]=t.hooks,e.whiteList[r]=t.whiteList,e.blackList[r]=t.blackList,e.propEditors[r]=t.propEditors,e.schema[r]=t.schema,e.callback[r]=t.callback,e.beforeCreate[r]=t.beforeCreate,e.styleEditors[r]=t.styleEditors,e.designerConfig[r]=t.designerConfig}}function V(e){E(c,e)}function q(e){E(u,e)}function J(e){E(m,e)}function Q(e,t,r){return e.type===r&&p.has(e,"preLocation")&&new RegExp(`^${t}_`).test(e.preLocation)}function D(e){return[o.MaterialEnum.MaterialFormField,o.MaterialEnum.MaterialSubTableModalField,o.MaterialEnum.DescriptionsFormField].includes(e.materialType)}function L(e){const t=/^\$\{(\S+)\}$/;for(const r in e){const i=e[r];t.test(i)&&(e[r]=o.t(i.match(t)?.[1]))}}function Z(e){const t=p.cloneDeep(e);t.id=o.buildShortUUID(t.type),t.alias=o.t(t.name),t.formItem&&(t.props.label=o.t(t.name));const r=h(t.platform);return r&&r.beforeCreate?.[t.type]?.(t),L(t.props),t}function I(e){return e.map(t=>({...t})).filter(t=>(t.props?.model||(t.children=t.children&&I(t.children)),f(t)))}const f=e=>!e.formItem;function P(e){return e+"px"}function n(e){return p.isEmpty(e)?"":`${e}px !important`}function T(e){return p.isEmpty(e)?"":`${e} !important`}function d(e){return!e||p.isEmpty(e.borderWidth)?"":`${e.borderWidth}px ${e.borderStyle||"solid"} ${e.borderColor||"transparent"} !important`}const w={fontAttrs:["fontWeight","fontSize","color","textDecorationLine","textAlign"],mapAttrs:{bold:{attr:"fontWeight",callback:e=>e?700:400},italic:{attr:"fontStyle",callback:e=>e?"italic":"normal"},textDecoration:{attr:"textDecorationLine"},fontSize:{attr:"fontSize",callback:e=>e?P(e):""},align:{attr:"textAlign"}}};function ee(e,t=w){if(!e)return{};const r={};return Object.assign(r,p.pick(e,t.fontAttrs)),typeof t.mapAttrs=="object"&&Object.keys(t.mapAttrs).forEach(i=>{const{attr:s,callback:a}=t.mapAttrs[i];r[s]=typeof a=="function"?a(e[i]):e[i]}),r}function oe(e={}){const t={};for(const r in e)t[r]=S(r,e[r]);return t}const te=["opacity","zIndex","fontWeight","lineHeight","letterSpacing","wordSpacing","textAlign","textDecoration","textTransform","fontStyle","textDecorationLine"];function S(e,t){return p.isNil(t)||p.isEmpty(t)?"":te.includes(e)?t+" !important":t+"px !important"}const F={left:"flex-start",center:"center",right:"flex-end",justify:"space-between"};function re(e){return F[e]||e}function _(e){return{position:T(e.position),top:n(e.top),left:n(e.left),right:n(e.right),bottom:n(e.bottom),width:n(e.width),height:n(e.height)}}function C(e){return{backgroundColor:T(e.backgroundColor),marginTop:n(e.marginTop),marginRight:n(e.marginRight),marginBottom:n(e.marginBottom),marginLeft:n(e.marginLeft),paddingTop:n(e.paddingTop),paddingRight:n(e.paddingRight),paddingBottom:n(e.paddingBottom),paddingLeft:n(e.paddingLeft)}}function O(e){return{borderLeft:d(e.borderLeft),borderRight:d(e.borderRight),borderBottom:d(e.borderBottom),borderTop:d(e.borderTop),borderTopRightRadius:n(e.borderTopRightRadius),borderTopLeftRadius:n(e.borderTopLeftRadius),borderBottomRightRadius:n(e.borderBottomRightRadius),borderBottomLeftRadius:n(e.borderBottomLeftRadius)}}function ne(e,t=[]){const r={..._(e),...C(e),...O(e)};return t.forEach(i=>{delete r[i]}),Object.keys(r).forEach(i=>{const s=r[i];(p.isNil(s)||p.isEmpty(s))&&delete r[i]}),r}const ie=({name:e,type:t,hiddenCallback:r,filterOptionsCallback:i,groupName:s})=>[{component:"bind-cmp-type-editor",name:e,label:"sys.pageDesigner.bindCmpStyleLabel",group:s||o.PropGroup.FIELD_CONFIG,hidden:r||(a=>[o.FIELD_TYPE.TEXT,o.FIELD_TYPE.USER,o.FIELD_TYPE.USER_MULTI,o.FIELD_TYPE.ORG,o.FIELD_TYPE.ORG_MULTI].includes(a.props.fieldType)&&(a.props.bindFieldKey||!D(a)||a.props.fieldReadonly)?!0:e==="selectType"&&a.platform!==o.Platform.WEB),_config:{bindCmpStyleKey:t,filterOptionsCallback:i},changeCallback(a){if(![o.FIELD_TYPE.BOOLEAN,o.FIELD_TYPE.USER,o.FIELD_TYPE.USER_MULTI,o.FIELD_TYPE.ORG,o.FIELD_TYPE.ORG_MULTI,o.FIELD_TYPE.DATA_TABLE_FORMULA].includes(a.props.fieldType)&&[o.FIELD_TYPE.EXPRESSION,o.FIELD_TYPE.AGG,o.FIELD_TYPE.INTEGER,o.FIELD_TYPE.LONG].includes(a.props.fieldType)){a.props.currency="¥",a.props.displayTimeType="d:h:m:s";return}}}],ae={disabled:!1,icon:"icon-park:all-application",iconColor:"",title:"${sys.pageDesigner.button}",buttonStyle:o.ButtonStyle.ORDINARY,confirm:!1,confirmText:"",hasIcon:!1,hasText:!0,type:o.ButtonType.PRIMARY,danger:!1,size:o.ButtonSize.DEFAULT,enableCustomColor:!1,backgroundColor:"",fontColor:"",...y},pe=[{component:"text-editor",name:"title",label:"sys.pageDesigner.buttonName",group:o.PropGroup.BASIC,_config:{i18n:!0,showCount:!0,maxlength:32},changeCallback:(e,t)=>{e.alias=t}},{component:"button-type-editor",name:{type:"type",danger:"danger",icon:"icon",label:"label",hasText:"hasText",hasIcon:"hasIcon"},label:"sys.pageDesigner.buttonType",group:o.PropGroup.BUTTON},{component:"icon-editor",name:{icon:"icon",iconColor:"iconColor"},label:"sys.pageDesigner.buttonIcon",group:o.PropGroup.BUTTON,hidden:e=>!e.props.hasIcon},{component:"radio-bgc-editor",name:"size",label:"sys.pageDesigner.buttonSize",group:o.PropGroup.BUTTON,_config:{options:Object.values(o.ButtonSize).map(e=>({value:e,label:"sys.pageDesigner."+e}))}}],le=[{component:"permission-editor",label:"",group:o.PropGroup.PERMISSION,hidden:e=>l(e)}],se={disabled:!1,buttonTheme:o.ButtonColorTheme.DEFAULT,buttonType:o.ButtonColorType.DEFAULT,icon:"",iconColor:"",confirm:!1,confirmText:"",buttonStyle:o.ButtonStyle.ORDINARY,enableCustomColor:!1,backgroundColor:"",fontColor:""},de=[{component:"button-type-editor",name:{type:"type",danger:"danger",icon:"icon",label:"label",hasText:"hasText",hasIcon:"hasIcon"},label:"sys.pageDesigner.buttonType",group:o.PropGroup.ButtonStyle,hidden:e=>l(e)},{component:"icon-editor",name:{icon:"icon",iconColor:"iconColor"},label:"sys.pageDesigner.buttonIcon",group:o.PropGroup.ButtonStyle,hidden:e=>!e.props.hasIcon||l(e),_config:{clearable:!1}},{component:"switch-editor",name:"enableCustomColor",label:"sys.pageDesigner.customBtnColor",group:o.PropGroup.ButtonStyle,hidden:e=>l(e)},{component:"button-color-editor",name:"fontColor",label:"sys.pageDesigner.buttonNameColor",group:o.PropGroup.ButtonStyle,_config:{isInRow:!0},hidden:e=>!e.props.enableCustomColor},{component:"button-color-editor",name:"backgroundColor",label:"sys.pageDesigner.buttonStyleColor",group:o.PropGroup.ButtonStyle,_config:{isInRow:!0},hidden:e=>!e.props.enableCustomColor||e.props.type==="link"},{component:"radio-bgc-editor",name:"size",label:"sys.pageDesigner.buttonSize",group:o.PropGroup.ButtonStyle,hidden:e=>l(e),_config:{options:Object.values(o.ButtonSize).map(e=>({value:e,label:"sys.pageDesigner."+e}))}},{component:"switch-editor",name:"confirm",label:"sys.pageDesigner.confirm",group:o.PropGroup.ButtonStyle,hidden:e=>l(e),_config:{tooltip:"sys.pageDesigner.buttonConfirm"}},{component:"texteare-editor",name:"confirmText",label:"sys.pageDesigner.regHint",group:o.PropGroup.ButtonStyle,_config:{i18n:!0,placeholder:"sys.pageDesigner.confirmTodo"},hidden:e=>!e.props.confirm||l(e)}],ce=[{component:"position-editor",name:"position",label:"sys.pageDesigner.position",group:o.StyleGroup.LAYOUT,hidden:e=>!!e.props.parentWidgetId||!!e.preLocation},{component:"margin-editor",group:o.StyleGroup.MARGIN,hidden:e=>!!e.props.parentWidgetId||!!e.preLocation,_config:{hiddenMarginOrPadding:"padding"}}],ue={install(){}};exports.ALIGN_TO_FLEX_MAP=F;exports.addImportant=T;exports.addPxUnit=n;exports.baseBtnEditor=pe;exports.baseBtnProp=ae;exports.buttonEditor=de;exports.buttonProps=se;exports.buttonStyleEditor=ce;exports.cloneWidget=Z;exports.commonStyle=k;exports.deepFindNotField=I;exports.default=ue;exports.displayEditor=$;exports.displayProps=y;exports.extractFontStyle=ee;exports.formatBorder=d;exports.generateBorderStyles=O;exports.generatePositionStyles=_;exports.generateSpacingStyles=C;exports.generateWrapperStyle=ne;exports.getBindCmpTypeEditor=ie;exports.getCompPos=Q;exports.getWidgetInfo=h;exports.hiddenButtonProps=l;exports.isFormFieldType=D;exports.makeStyleProp=S;exports.mobileWidgetInfo=u;exports.modalCfg=U;exports.notNeedPxStyle=v;exports.padWidgetInfo=m;exports.permissionEditor=le;exports.propsToStyle=oe;exports.pxToVw=P;exports.registerMobilePluginWidgetItem=q;exports.registerMobileWidgetItem=H;exports.registerPadPluginWidgetItem=J;exports.registerPadWidgetItem=K;exports.registerPluginWidgetItem=E;exports.registerWebPluginWidgetItem=V;exports.registerWebWidgetItem=X;exports.registerWidgetItem=g;exports.transAlign2flex=re;exports.transformI18n=L;exports.webWidgetInfo=c;
|
package/dist/index.system.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@gct-paas/core","lodash-es"],(function(c,D){"use strict";var a,m,l,s,d,u,f;return{setters:[n=>{a=n.BorderStyle,m=n.TagTypeEnum,l=n.TextDecoration},n=>{s=n.has,d=n.isEmpty,u=n.pick,f=n.isNil}],execute:(function(){c({addImportant:b,addPxUnit:o,extractFontStyle:y,formatBorder:p,generateBorderStyles:R,generatePositionStyles:T,generateSpacingStyles:x,generateWrapperStyle:C,getCompPos:F,makeStyleProp:S,propsToStyle:A,pxToVw:h,transAlign2flex:O});const n=c("commonStyle",{position:"",top:"",left:"",right:"",bottom:"",width:"",height:"",backgroundColor:"",marginAll:"",marginTop:"",marginRight:"",marginBottom:"",marginLeft:"",paddingAll:"",paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",labelFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:l.NONE,color:""},contentFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:l.NONE,color:""},tagStyle:{color:"",tagType:m.RADIUS},tagStyleOpen:!1,borderAll:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderLeft:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderRight:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderBottom:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTop:{borderStyle:a.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTopRightRadius:"0",borderTopLeftRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",borderAllRadius:"0"}),P=c("notNeedPxStyle",["position","backgroundColor","bold","italic","textDecoration","color","borderStyle","borderColor"]);function F(t,r,e){return t.type===e&&s(t,"preLocation")&&new RegExp(`^${r}_`).test(t.preLocation)}function h(t){return t+"px"}function o(t){return d(t)?"":`${t}px !important`}function b(t){return d(t)?"":`${t} !important`}function p(t){return!t||d(t.borderWidth)?"":`${t.borderWidth}px ${t.borderStyle||"solid"} ${t.borderColor||"transparent"} !important`}const N={fontAttrs:["fontWeight","fontSize","color","textDecorationLine","textAlign"],mapAttrs:{bold:{attr:"fontWeight",callback:t=>t?700:400},italic:{attr:"fontStyle",callback:t=>t?"italic":"normal"},textDecoration:{attr:"textDecorationLine"},fontSize:{attr:"fontSize",callback:t=>t?h(t):""},align:{attr:"textAlign"}}};function y(t,r=N){if(!t)return{};const e={};return Object.assign(e,u(t,r.fontAttrs)),typeof r.mapAttrs=="object"&&Object.keys(r.mapAttrs).forEach(i=>{const{attr:g,callback:L}=r.mapAttrs[i];e[g]=typeof L=="function"?L(t[i]):t[i]}),e}function A(t={}){const r={};for(const e in t)r[e]=S(e,t[e]);return r}const B=["opacity","zIndex","fontWeight","lineHeight","letterSpacing","wordSpacing","textAlign","textDecoration","textTransform","fontStyle","textDecorationLine"];function S(t,r){return f(r)||d(r)?"":B.includes(t)?r+" !important":r+"px !important"}const E=c("ALIGN_TO_FLEX_MAP",{left:"flex-start",center:"center",right:"flex-end",justify:"space-between"});function O(t){return E[t]||t}function T(t){return{position:b(t.position),top:o(t.top),left:o(t.left),right:o(t.right),bottom:o(t.bottom),width:o(t.width),height:o(t.height)}}function x(t){return{backgroundColor:b(t.backgroundColor),marginTop:o(t.marginTop),marginRight:o(t.marginRight),marginBottom:o(t.marginBottom),marginLeft:o(t.marginLeft),paddingTop:o(t.paddingTop),paddingRight:o(t.paddingRight),paddingBottom:o(t.paddingBottom),paddingLeft:o(t.paddingLeft)}}function R(t){return{borderLeft:p(t.borderLeft),borderRight:p(t.borderRight),borderBottom:p(t.borderBottom),borderTop:p(t.borderTop),borderTopRightRadius:o(t.borderTopRightRadius),borderTopLeftRadius:o(t.borderTopLeftRadius),borderBottomRightRadius:o(t.borderBottomRightRadius),borderBottomLeftRadius:o(t.borderBottomLeftRadius)}}function C(t,r=[]){const e={...T(t),...x(t),...R(t)};return r.forEach(i=>{delete e[i]}),Object.keys(e).forEach(i=>{const g=e[i];(f(g)||d(g))&&delete e[i]}),e}const W=c("default",{install(){}})})}}));
|
|
1
|
+
System.register(["@gct-paas/core","lodash-es"],(function(l,Ee){"use strict";var h,d,i,T,E,m,W,O,n,b,_,u,P,S,L,k,B,x,U,G,v,f,z,N;return{setters:[r=>{h=r.BuiltinType,d=r.Platform,i=r.PropGroup,T=r.StyleGroup,E=r.buildShortUUID,m=r.BorderStyle,W=r.TagTypeEnum,O=r.TextDecoration,n=r.FIELD_TYPE,b=r.Dependency_ENUM,_=r.ASSIGNMENTSTRATEGY_ENUM,u=r.MaterialEnum,P=r.FormComponents,S=r.t,L=r.ButtonSize,k=r.ButtonType,B=r.ButtonStyle,x=r.ButtonColorType,U=r.ButtonColorTheme},r=>{G=r.cloneDeep,v=r.has,f=r.isEmpty,z=r.pick,N=r.isNil}],execute:(function(){l({addImportant:M,addPxUnit:a,cloneWidget:ue,deepFindNotField:X,extractFontStyle:me,formatBorder:y,generateBorderStyles:q,generatePositionStyles:J,generateSpacingStyles:Q,generateWrapperStyle:he,getCompPos:ce,getWidgetInfo:j,hiddenButtonProps:c,isFormFieldType:Y,makeStyleProp:V,propsToStyle:be,pxToVw:K,registerMobilePluginWidgetItem:pe,registerMobileWidgetItem:ae,registerPadPluginWidgetItem:de,registerPadWidgetItem:le,registerPluginWidgetItem:I,registerWebPluginWidgetItem:se,registerWebWidgetItem:ie,registerWidgetItem:C,transAlign2flex:ye,transformI18n:$});const r={id:"",type:h.MODAL_BODY,children:[]},Z={id:"",type:h.MODAL_FOOTER,children:[]},w={id:"",platform:d.WEB,name:"sys.pageDesigner.modal",alias:"",modalName:"",type:h.MODAL,js:"",css:"",children:[r,Z],props:{modalTitle:"弹窗",unitType:"px",modalWidth:800,isSubTableModal:!1,bindSubTableId:"",createModalTitle:"新建弹窗",editModalTitle:"编辑弹窗",hasFooter:!0,openMode:"modal",mUnitType:"%",mModalWidth:80},style:{paddingAll:"16",paddingTop:"16",paddingRight:"16",paddingBottom:"16",paddingLeft:"16"},events:{},i18n:{},runJs:"",los:{},icon:"icon-motaikuang1",isField:!1},ee=[{component:"text-editor",name:"modalTitle",label:"sys.pageDesigner.modalTitleName",group:i.BASIC,_config:{showCount:!0,maxlength:32},hidden:e=>e.props.isSubTableModal},{component:"input-unit-editor",name:{unitType:"unitType",modalWidth:"modalWidth"},label:"sys.pageDesigner.modalWidthProp",group:i.MODAL,hidden:e=>e.platform===d.MOBILE},{component:"input-unit-editor",name:{unitType:"mUnitType",modalWidth:"mModalWidth"},label:"sys.pageDesigner.modalHeightProp",group:i.MODAL,hidden:e=>e.platform!==d.MOBILE,_config:{filterUnitType:"px"}},{component:"text-editor",name:"createModalTitle",label:"sys.pageDesigner.createModalTitle",group:i.MODALTITLECONFIG,_config:{i18n:!0},hidden:e=>!e.props.isSubTableModal},{component:"text-editor",name:"editModalTitle",label:"sys.pageDesigner.editModalTitle",group:i.MODALTITLECONFIG,_config:{i18n:!0},hidden:e=>!e.props.isSubTableModal},{component:"select-editor",name:"openMode",label:"sys.appDesigner.openMode",group:i.MODAL,hidden:e=>e.platform!==d.WEB,_config:{options:()=>[{label:"打开弹窗页面",value:"modal"},{label:"右侧划入页面",value:"drawer"}]},changeCallback:(e,t)=>{t==="drawer"?(e.props.unitType="%",e.props.modalWidth=80):(e.props.unitType="px",e.props.modalWidth=800)}},{component:"switch-editor",name:"hasFooter",label:"sys.pageDesigner.operateButton",group:i.BUTTON,hidden:e=>e.props.isSubTableModal}],te=[{component:"color-editor",name:"backgroundColor",label:"sys.pageDesigner.backgroundColor",group:T.BACKGROUND},{component:"margin-editor",group:T.MARGIN,_config:{hiddenMarginOrPadding:"margin"}}];l("modalCfg",Object.freeze(Object.defineProperty({__proto__:null,beforeCreate:e=>{e.children[0].id=E(e.children[0].type),e.children[1].id=E(e.children[1].type)},designerConfig:{basicProps:{key_label:"弹窗",alias_hidden:!0}},eventList:[{name:"onMounted",title:"sys.pageDesigner.onMounted",params:[]}],propEditorList:ee,runCallback:()=>{},styleEditorList:te,widget:w},Symbol.toStringTag,{value:"Module"})));function c(e){return Object.prototype.hasOwnProperty.call(e.props,"model")?!e.props.model:Object.prototype.hasOwnProperty.call(e.props,"refForm")?!e.props.refForm:!1}const Oe=l("commonStyle",{position:"",top:"",left:"",right:"",bottom:"",width:"",height:"",backgroundColor:"",marginAll:"",marginTop:"",marginRight:"",marginBottom:"",marginLeft:"",paddingAll:"",paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",labelFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:O.NONE,color:""},contentFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:O.NONE,color:""},tagStyle:{color:"",tagType:W.RADIUS},tagStyleOpen:!1,borderAll:{borderStyle:m.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderLeft:{borderStyle:m.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderRight:{borderStyle:m.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderBottom:{borderStyle:m.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTop:{borderStyle:m.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTopRightRadius:"0",borderTopLeftRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",borderAllRadius:"0"}),Be=l("notNeedPxStyle",["position","backgroundColor","bold","italic","textDecoration","color","borderStyle","borderColor"]),oe=[n.TEXT,n.LONG_TEXT,n.INTEGER,n.LONG,n.DOUBLE,n.DECIMAL,n.BOOLEAN,n.DATE,n.TIME,n.DATE_TIME,n.USER,n.USER_MULTI,n.SERIAL],ne=l("displayProps",{deviceConnectivity:!1,hidden:!1,componentDependency:{sortDependency:[],configDependency:{[b.HIDDEN]:{expression:""},[b.READONLY]:{expression:""},[b.DISABLED]:{expression:""},[b.REQUIRED]:{expression:""},[b.ASSIGNMENT]:{expression:"",strategy:_.alwaysCover}}}}),re=[n.TEXT,n.LONG_TEXT,n.INTEGER,n.LONG,n.DOUBLE,n.DECIMAL,n.BOOLEAN,n.DATE,n.DATE_TIME,n.MASTERSLAVE],Ne=l("displayEditor",[{component:"dependency-editor",name:"componentDependency",label:"",group:i.COMPONENTDEPENDENCY,hidden:e=>e.materialType===u.MaterialEmbedTableField||e.type===P.Form&&e.preLocation?!0:c(e)||e.props.field==="operating_state_"},{component:"switch-editor",name:"notSubmitInHide",label:"sys.pageDesigner.submitWhenHidden",group:i.FIELD_CONFIG,hidden(e){return!e.isField||!e.props.field||e.props.bindFieldKey||e.props.fieldReadonly||e.materialType===u.cardListFormField||[n.EXPRESSION_CONDITION,n.SERIALRULE,n.LABEL_TEMPLATE].includes(e.props.fieldType)||!oe.includes(e.props.fieldType)}},{component:"switch-editor",name:"deviceConnectivity",label:"sys.pageDesigner.deviceConnectivity",group:i.FIELD_CONFIG,hidden:e=>e.platform!==d.WEB||![u.MaterialFormField].includes(e.materialType)||!re.includes(e.props.fieldType)}]);class R{events={};propEditors={};schema={};callback={};beforeCreate={};styleEditors={};designerConfig={};hooks={};whiteList={};blackList={}}const D=l("webWidgetInfo",new R),A=l("mobileWidgetInfo",new R),F=l("padWidgetInfo",new R);function j(e){switch(e){case d.WEB:return D;case d.MOBILE:return A;case d.PAD:return F;default:return D}}function C(e,t,o){e.events[t]=o.eventList,e.hooks[t]=o.hooks,e.whiteList[t]=o.whiteList,e.blackList[t]=o.blackList,e.propEditors[t]=o.propEditorList,e.schema[t]=o.widget,e.callback[t]=o.runCallback,e.beforeCreate[t]=o.beforeCreate,e.styleEditors[t]=o.styleEditorList,e.designerConfig[t]=o.designerConfig}function ie(e,t){C(D,t,e)}function ae(e,t){C(A,t,e)}function le(e,t){C(F,t,e)}function I(e,t){if(t){const{type:o}=t.schema;e.events[o]=t.events,e.hooks[o]=t.hooks,e.whiteList[o]=t.whiteList,e.blackList[o]=t.blackList,e.propEditors[o]=t.propEditors,e.schema[o]=t.schema,e.callback[o]=t.callback,e.beforeCreate[o]=t.beforeCreate,e.styleEditors[o]=t.styleEditors,e.designerConfig[o]=t.designerConfig}}function se(e){I(D,e)}function pe(e){I(A,e)}function de(e){I(F,e)}function ce(e,t,o){return e.type===o&&v(e,"preLocation")&&new RegExp(`^${t}_`).test(e.preLocation)}function Y(e){return[u.MaterialFormField,u.MaterialSubTableModalField,u.DescriptionsFormField].includes(e.materialType)}function $(e){const t=/^\$\{(\S+)\}$/;for(const o in e){const s=e[o];t.test(s)&&(e[o]=S(s.match(t)?.[1]))}}function ue(e){const t=G(e);t.id=E(t.type),t.alias=S(t.name),t.formItem&&(t.props.label=S(t.name));const o=j(t.platform);return o&&o.beforeCreate?.[t.type]?.(t),$(t.props),t}function X(e){return e.map(t=>({...t})).filter(t=>(t.props?.model||(t.children=t.children&&X(t.children)),H(t)))}const H=e=>!e.formItem;function K(e){return e+"px"}function a(e){return f(e)?"":`${e}px !important`}function M(e){return f(e)?"":`${e} !important`}function y(e){return!e||f(e.borderWidth)?"":`${e.borderWidth}px ${e.borderStyle||"solid"} ${e.borderColor||"transparent"} !important`}const ge={fontAttrs:["fontWeight","fontSize","color","textDecorationLine","textAlign"],mapAttrs:{bold:{attr:"fontWeight",callback:e=>e?700:400},italic:{attr:"fontStyle",callback:e=>e?"italic":"normal"},textDecoration:{attr:"textDecorationLine"},fontSize:{attr:"fontSize",callback:e=>e?K(e):""},align:{attr:"textAlign"}}};function me(e,t=ge){if(!e)return{};const o={};return Object.assign(o,z(e,t.fontAttrs)),typeof t.mapAttrs=="object"&&Object.keys(t.mapAttrs).forEach(s=>{const{attr:g,callback:p}=t.mapAttrs[s];o[g]=typeof p=="function"?p(e[s]):e[s]}),o}function be(e={}){const t={};for(const o in e)t[o]=V(o,e[o]);return t}const fe=["opacity","zIndex","fontWeight","lineHeight","letterSpacing","wordSpacing","textAlign","textDecoration","textTransform","fontStyle","textDecorationLine"];function V(e,t){return N(t)||f(t)?"":fe.includes(e)?t+" !important":t+"px !important"}const Te=l("ALIGN_TO_FLEX_MAP",{left:"flex-start",center:"center",right:"flex-end",justify:"space-between"});function ye(e){return Te[e]||e}function J(e){return{position:M(e.position),top:a(e.top),left:a(e.left),right:a(e.right),bottom:a(e.bottom),width:a(e.width),height:a(e.height)}}function Q(e){return{backgroundColor:M(e.backgroundColor),marginTop:a(e.marginTop),marginRight:a(e.marginRight),marginBottom:a(e.marginBottom),marginLeft:a(e.marginLeft),paddingTop:a(e.paddingTop),paddingRight:a(e.paddingRight),paddingBottom:a(e.paddingBottom),paddingLeft:a(e.paddingLeft)}}function q(e){return{borderLeft:y(e.borderLeft),borderRight:y(e.borderRight),borderBottom:y(e.borderBottom),borderTop:y(e.borderTop),borderTopRightRadius:a(e.borderTopRightRadius),borderTopLeftRadius:a(e.borderTopLeftRadius),borderBottomRightRadius:a(e.borderBottomRightRadius),borderBottomLeftRadius:a(e.borderBottomLeftRadius)}}function he(e,t=[]){const o={...J(e),...Q(e),...q(e)};return t.forEach(s=>{delete o[s]}),Object.keys(o).forEach(s=>{const g=o[s];(N(g)||f(g))&&delete o[s]}),o}const Re=l("getBindCmpTypeEditor",({name:e,type:t,hiddenCallback:o,filterOptionsCallback:s,groupName:g})=>[{component:"bind-cmp-type-editor",name:e,label:"sys.pageDesigner.bindCmpStyleLabel",group:g||i.FIELD_CONFIG,hidden:o||(p=>[n.TEXT,n.USER,n.USER_MULTI,n.ORG,n.ORG_MULTI].includes(p.props.fieldType)&&(p.props.bindFieldKey||!Y(p)||p.props.fieldReadonly)?!0:e==="selectType"&&p.platform!==d.WEB),_config:{bindCmpStyleKey:t,filterOptionsCallback:s},changeCallback(p){if(![n.BOOLEAN,n.USER,n.USER_MULTI,n.ORG,n.ORG_MULTI,n.DATA_TABLE_FORMULA].includes(p.props.fieldType)&&[n.EXPRESSION,n.AGG,n.INTEGER,n.LONG].includes(p.props.fieldType)){p.props.currency="¥",p.props.displayTimeType="d:h:m:s";return}}}]),Ae=l("baseBtnProp",{disabled:!1,icon:"icon-park:all-application",iconColor:"",title:"${sys.pageDesigner.button}",buttonStyle:B.ORDINARY,confirm:!1,confirmText:"",hasIcon:!1,hasText:!0,type:k.PRIMARY,danger:!1,size:L.DEFAULT,enableCustomColor:!1,backgroundColor:"",fontColor:"",...ne}),Fe=l("baseBtnEditor",[{component:"text-editor",name:"title",label:"sys.pageDesigner.buttonName",group:i.BASIC,_config:{i18n:!0,showCount:!0,maxlength:32},changeCallback:(e,t)=>{e.alias=t}},{component:"button-type-editor",name:{type:"type",danger:"danger",icon:"icon",label:"label",hasText:"hasText",hasIcon:"hasIcon"},label:"sys.pageDesigner.buttonType",group:i.BUTTON},{component:"icon-editor",name:{icon:"icon",iconColor:"iconColor"},label:"sys.pageDesigner.buttonIcon",group:i.BUTTON,hidden:e=>!e.props.hasIcon},{component:"radio-bgc-editor",name:"size",label:"sys.pageDesigner.buttonSize",group:i.BUTTON,_config:{options:Object.values(L).map(e=>({value:e,label:"sys.pageDesigner."+e}))}}]),Me=l("permissionEditor",[{component:"permission-editor",label:"",group:i.PERMISSION,hidden:e=>c(e)}]),We=l("buttonProps",{disabled:!1,buttonTheme:U.DEFAULT,buttonType:x.DEFAULT,icon:"",iconColor:"",confirm:!1,confirmText:"",buttonStyle:B.ORDINARY,enableCustomColor:!1,backgroundColor:"",fontColor:""}),_e=l("buttonEditor",[{component:"button-type-editor",name:{type:"type",danger:"danger",icon:"icon",label:"label",hasText:"hasText",hasIcon:"hasIcon"},label:"sys.pageDesigner.buttonType",group:i.ButtonStyle,hidden:e=>c(e)},{component:"icon-editor",name:{icon:"icon",iconColor:"iconColor"},label:"sys.pageDesigner.buttonIcon",group:i.ButtonStyle,hidden:e=>!e.props.hasIcon||c(e),_config:{clearable:!1}},{component:"switch-editor",name:"enableCustomColor",label:"sys.pageDesigner.customBtnColor",group:i.ButtonStyle,hidden:e=>c(e)},{component:"button-color-editor",name:"fontColor",label:"sys.pageDesigner.buttonNameColor",group:i.ButtonStyle,_config:{isInRow:!0},hidden:e=>!e.props.enableCustomColor},{component:"button-color-editor",name:"backgroundColor",label:"sys.pageDesigner.buttonStyleColor",group:i.ButtonStyle,_config:{isInRow:!0},hidden:e=>!e.props.enableCustomColor||e.props.type==="link"},{component:"radio-bgc-editor",name:"size",label:"sys.pageDesigner.buttonSize",group:i.ButtonStyle,hidden:e=>c(e),_config:{options:Object.values(L).map(e=>({value:e,label:"sys.pageDesigner."+e}))}},{component:"switch-editor",name:"confirm",label:"sys.pageDesigner.confirm",group:i.ButtonStyle,hidden:e=>c(e),_config:{tooltip:"sys.pageDesigner.buttonConfirm"}},{component:"texteare-editor",name:"confirmText",label:"sys.pageDesigner.regHint",group:i.ButtonStyle,_config:{i18n:!0,placeholder:"sys.pageDesigner.confirmTodo"},hidden:e=>!e.props.confirm||c(e)}]),Pe=l("buttonStyleEditor",[{component:"position-editor",name:"position",label:"sys.pageDesigner.position",group:T.LAYOUT,hidden:e=>!!e.props.parentWidgetId||!!e.preLocation},{component:"margin-editor",group:T.MARGIN,hidden:e=>!!e.props.parentWidgetId||!!e.preLocation,_config:{hiddenMarginOrPadding:"padding"}}]),ke=l("default",{install(){}})})}}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FIELD_TYPE } from '@gct-paas/core';
|
|
2
|
+
|
|
3
|
+
const padVTableSupportEditFieldTypes = [
|
|
4
|
+
FIELD_TYPE.TEXT,
|
|
5
|
+
FIELD_TYPE.LONG_TEXT,
|
|
6
|
+
FIELD_TYPE.INTEGER,
|
|
7
|
+
FIELD_TYPE.LONG,
|
|
8
|
+
FIELD_TYPE.DOUBLE,
|
|
9
|
+
FIELD_TYPE.DECIMAL,
|
|
10
|
+
FIELD_TYPE.BOOLEAN,
|
|
11
|
+
FIELD_TYPE.DATE,
|
|
12
|
+
FIELD_TYPE.TIME,
|
|
13
|
+
FIELD_TYPE.DATE_TIME,
|
|
14
|
+
FIELD_TYPE.USER,
|
|
15
|
+
FIELD_TYPE.USER_MULTI,
|
|
16
|
+
FIELD_TYPE.SERIAL
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
export { padVTableSupportEditFieldTypes };
|
package/es/index.mjs
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import * as modal from './schema/modal/modal.mjs';
|
|
2
|
+
export { modal as modalCfg };
|
|
3
|
+
export { hiddenButtonProps } from './schema/common-config/button-props-func.mjs';
|
|
1
4
|
export { commonStyle, notNeedPxStyle } from './schema/common-config/common-style.mjs';
|
|
2
|
-
export {
|
|
5
|
+
export { displayEditor, displayProps } from './schema/common-config/display-editor-config.mjs';
|
|
6
|
+
export { getBindCmpTypeEditor } from './schema/common-config/common-field-editor-config.mjs';
|
|
7
|
+
export { baseBtnEditor, baseBtnProp } from './schema/common-config/base-button-config.mjs';
|
|
8
|
+
export { permissionEditor } from './schema/common-config/permission-editor-config.mjs';
|
|
9
|
+
export { buttonEditor, buttonProps, buttonStyleEditor } from './schema/common-config/button-editor-config.mjs';
|
|
10
|
+
export { cloneWidget, deepFindNotField, getCompPos, isFormFieldType, transformI18n } from './utils/schema/index.mjs';
|
|
3
11
|
export { ALIGN_TO_FLEX_MAP, addImportant, addPxUnit, extractFontStyle, formatBorder, generateBorderStyles, generatePositionStyles, generateSpacingStyles, generateWrapperStyle, makeStyleProp, propsToStyle, pxToVw, transAlign2flex } from './utils/schema-style/index.mjs';
|
|
12
|
+
export { getWidgetInfo, mobileWidgetInfo, padWidgetInfo, registerMobilePluginWidgetItem, registerMobileWidgetItem, registerPadPluginWidgetItem, registerPadWidgetItem, registerPluginWidgetItem, registerWebPluginWidgetItem, registerWebWidgetItem, registerWidgetItem, webWidgetInfo } from './utils/widget-info/widget-info.mjs';
|
|
4
13
|
|
|
5
14
|
const index = {
|
|
6
15
|
install() {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 数据联动连接项
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @interface LinkageItem
|
|
6
|
+
*/
|
|
7
|
+
export interface LinkageItem {
|
|
8
|
+
refModelKey: string;
|
|
9
|
+
refModelCategory: string;
|
|
10
|
+
modelKey: string;
|
|
11
|
+
modelCategory: string;
|
|
12
|
+
id: string;
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
end?: boolean;
|
|
16
|
+
reverse?: boolean;
|
|
17
|
+
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { pageLayoutModeEnum } from '@gct-paas/core';
|
|
2
2
|
import { LowCodeModal } from './modal';
|
|
3
3
|
import { LowCodeWidget } from './widget';
|
|
4
|
+
export interface IPageGlobalEvents {
|
|
5
|
+
/**页面加载公共事件ID */
|
|
6
|
+
pageMounted?: string;
|
|
7
|
+
/**页面离开公共事件ID */
|
|
8
|
+
pageDestroyed?: string;
|
|
9
|
+
}
|
|
4
10
|
export interface PageJson {
|
|
5
11
|
id: string;
|
|
6
12
|
key?: string;
|
|
@@ -21,12 +27,7 @@ export interface PageJson {
|
|
|
21
27
|
timestamp?: number;
|
|
22
28
|
newDesigner?: boolean;
|
|
23
29
|
/**全局页面事件 */
|
|
24
|
-
globalEvents:
|
|
25
|
-
/**页面加载公共事件ID */
|
|
26
|
-
pageMounted?: string;
|
|
27
|
-
/**页面离开公共事件ID */
|
|
28
|
-
pageDestroyed?: string;
|
|
29
|
-
};
|
|
30
|
+
globalEvents: IPageGlobalEvents;
|
|
30
31
|
permissions: Record<string, string | null>;
|
|
31
32
|
style: Partial<LowCodeWidget.BasicStyle>;
|
|
32
33
|
pageConfig: Partial<PageConfig>;
|
package/es/interface/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './modal';
|
|
1
|
+
export type { LinkageItem } from './common/data-linkage-config';
|
|
2
|
+
export type * from './modal';
|
|
3
|
+
export type * from './schema';
|
|
3
4
|
export type * from './widget';
|
|
5
|
+
export type * from './widget-info';
|
|
6
|
+
export type * from './designer';
|
|
@@ -32,7 +32,7 @@ export interface IModal {
|
|
|
32
32
|
/** CSS 样式代码 */
|
|
33
33
|
css: string;
|
|
34
34
|
/** 子组件:主体、底部、底部按钮容器 */
|
|
35
|
-
children: [IModalBody, IModalFooter, IModalBottomButton];
|
|
35
|
+
children: [IModalBody, IModalFooter, IModalBottomButton?];
|
|
36
36
|
/** 模态框属性配置 */
|
|
37
37
|
props: IModalProps;
|
|
38
38
|
/** 事件配置 */
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { ButtonColorType, ButtonColorTheme, ButtonStyle, ButtonSize, AGLINE_ENUMS, operateSysEnums, PrintModeEnums, TransactionMode, KeyMode, ResetRuleType, ButtonOpeEnum, openWindowEnums, ButtonTypeEnum } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeWidget } from '../..';
|
|
3
|
+
/** 按钮基础通用属性(不含 WidgetProps,用于 ButtonProps.basic) */
|
|
4
|
+
export interface ButtonBasicProps {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
buttonTheme: ButtonColorTheme;
|
|
7
|
+
buttonType: ButtonColorType;
|
|
8
|
+
icon: string;
|
|
9
|
+
iconColor: string;
|
|
10
|
+
/** 按钮样式 */
|
|
11
|
+
buttonStyle: ButtonStyle;
|
|
12
|
+
/** 开启二次确认 */
|
|
13
|
+
confirm: boolean;
|
|
14
|
+
/** 二次确认内容 */
|
|
15
|
+
confirmText: string;
|
|
16
|
+
enableCustomColor: boolean;
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
fontColor: string;
|
|
19
|
+
}
|
|
20
|
+
/** 基础按钮属性(所有按钮类的共同基类) */
|
|
21
|
+
export interface BaseButtonProps extends LowCodeWidget.WidgetProps {
|
|
22
|
+
/** 关联表单 */
|
|
23
|
+
refForm?: string;
|
|
24
|
+
/** 关联弹框 */
|
|
25
|
+
refModal?: string;
|
|
26
|
+
/** 关联列表 */
|
|
27
|
+
refList?: string;
|
|
28
|
+
/** 标题 */
|
|
29
|
+
title: string;
|
|
30
|
+
/** 二次确认 */
|
|
31
|
+
confirm?: boolean;
|
|
32
|
+
confirmText?: string;
|
|
33
|
+
/** 内置事件 */
|
|
34
|
+
innerEvent?: boolean;
|
|
35
|
+
/** 系统事件类型 */
|
|
36
|
+
sysMethedType?: operateSysEnums;
|
|
37
|
+
linkPage?: string;
|
|
38
|
+
/** 事件名称 */
|
|
39
|
+
eventName?: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
iconColor: string;
|
|
42
|
+
size: ButtonSize;
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
/** 是否显示按钮名称 */
|
|
45
|
+
hasText: boolean;
|
|
46
|
+
/** 是否显示图标 */
|
|
47
|
+
hasIcon: boolean;
|
|
48
|
+
/** 按钮 type */
|
|
49
|
+
type: string;
|
|
50
|
+
/** 是否是危险类型 */
|
|
51
|
+
danger: boolean;
|
|
52
|
+
/** 关联模型 */
|
|
53
|
+
model?: string;
|
|
54
|
+
i18nConfig?: string;
|
|
55
|
+
/** 按钮样式 */
|
|
56
|
+
buttonStyle?: ButtonStyle;
|
|
57
|
+
enableCustomColor: boolean;
|
|
58
|
+
backgroundColor?: string;
|
|
59
|
+
fontColor?: string;
|
|
60
|
+
/** 复制按钮需要排除的字段 */
|
|
61
|
+
excludeField?: string[];
|
|
62
|
+
/** 按钮所在位置 */
|
|
63
|
+
pos?: ButtonOpeEnum;
|
|
64
|
+
/** 将当前按钮的名称同步为弹框标题 */
|
|
65
|
+
syncBtnNameToModal?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/** 普通按钮(带 basic 配置)属性 */
|
|
68
|
+
export interface ButtonProps extends LowCodeWidget.WidgetProps {
|
|
69
|
+
title: string;
|
|
70
|
+
/** 关联表单 */
|
|
71
|
+
refForm?: string;
|
|
72
|
+
/** 关联列表 */
|
|
73
|
+
refList?: string;
|
|
74
|
+
basic: ButtonBasicProps;
|
|
75
|
+
}
|
|
76
|
+
/** 流程提交按钮属性 */
|
|
77
|
+
export interface ProcessButtonProps extends BaseButtonProps {
|
|
78
|
+
refModel?: string;
|
|
79
|
+
category?: string;
|
|
80
|
+
refProcess?: string;
|
|
81
|
+
refService?: string;
|
|
82
|
+
}
|
|
83
|
+
/** 审批按钮属性 */
|
|
84
|
+
export interface approveButtonProps extends BaseButtonProps {
|
|
85
|
+
action?: ButtonTypeEnum;
|
|
86
|
+
/** 不可删除 */
|
|
87
|
+
noDelete: boolean;
|
|
88
|
+
/** 不可编辑 */
|
|
89
|
+
noEdit: boolean;
|
|
90
|
+
processId: string;
|
|
91
|
+
refForm: string;
|
|
92
|
+
}
|
|
93
|
+
/** 重置按钮属性 */
|
|
94
|
+
export interface ResetButtonProps extends BaseButtonProps {
|
|
95
|
+
resetRule: ResetRuleType;
|
|
96
|
+
}
|
|
97
|
+
/** 表格审批按钮属性 */
|
|
98
|
+
export interface TableApproveButtonProps extends BaseButtonProps {
|
|
99
|
+
/** 打开方式 */
|
|
100
|
+
openType: openWindowEnums;
|
|
101
|
+
}
|
|
102
|
+
/** 标签打印按钮属性 */
|
|
103
|
+
export interface LabelPrintProps extends BaseButtonProps {
|
|
104
|
+
/** 打印方式 */
|
|
105
|
+
printMode: PrintModeEnums;
|
|
106
|
+
/** 打印模版 key 或者模版的引用类型 */
|
|
107
|
+
printKey: string | TransactionMode;
|
|
108
|
+
/** 打印服务 key */
|
|
109
|
+
serverKey: string;
|
|
110
|
+
/** 关联模型 */
|
|
111
|
+
refModel: string;
|
|
112
|
+
/** 标签模版类型 */
|
|
113
|
+
labelMode: KeyMode;
|
|
114
|
+
/** 打印机类型 */
|
|
115
|
+
printType: KeyMode;
|
|
116
|
+
/** 打印 key */
|
|
117
|
+
printVal: string;
|
|
118
|
+
/** 网络打印机类型 或者打印机 id */
|
|
119
|
+
printRefType: string | TransactionMode;
|
|
120
|
+
/** 引用关系配置 */
|
|
121
|
+
ruleConfig: IObject;
|
|
122
|
+
/** 打印机的关联配置 */
|
|
123
|
+
printRuleConfig: IObject;
|
|
124
|
+
/** 打印字段 */
|
|
125
|
+
printField?: string;
|
|
126
|
+
/** 关联的表单 */
|
|
127
|
+
refForm?: string;
|
|
128
|
+
}
|
|
129
|
+
/** 单据打印按钮属性 */
|
|
130
|
+
export interface DocumentPrintProps extends BaseButtonProps {
|
|
131
|
+
/** 单据模板值 */
|
|
132
|
+
documentKey: string | TransactionMode;
|
|
133
|
+
/** 打印方式 */
|
|
134
|
+
printMode: PrintModeEnums;
|
|
135
|
+
refModel?: string;
|
|
136
|
+
/** 模版规则 */
|
|
137
|
+
documentType: KeyMode;
|
|
138
|
+
/** 连接规则 */
|
|
139
|
+
ruleConfig: IObject;
|
|
140
|
+
/** 打印字段 */
|
|
141
|
+
printField: string;
|
|
142
|
+
}
|
|
143
|
+
/** 导出按钮属性 */
|
|
144
|
+
export interface ExportProps extends BaseButtonProps {
|
|
145
|
+
model: string;
|
|
146
|
+
templateKey: string;
|
|
147
|
+
timeout: number;
|
|
148
|
+
/** 关联表格 */
|
|
149
|
+
refTable?: string;
|
|
150
|
+
}
|
|
151
|
+
/** 按钮容器属性 */
|
|
152
|
+
export interface ButtonContainerProps extends LowCodeWidget.WidgetProps {
|
|
153
|
+
/** 按钮样式 */
|
|
154
|
+
buttonStyle: ButtonStyle;
|
|
155
|
+
/** 对齐方式 */
|
|
156
|
+
align: AGLINE_ENUMS;
|
|
157
|
+
/** 间距 */
|
|
158
|
+
margin: number;
|
|
159
|
+
/** 尺寸 */
|
|
160
|
+
size: ButtonSize;
|
|
161
|
+
/** 所属模型 */
|
|
162
|
+
model?: string;
|
|
163
|
+
}
|
|
164
|
+
/** 流程按钮容器属性 */
|
|
165
|
+
export interface ButtonProcessContainerProps extends ButtonContainerProps {
|
|
166
|
+
/** 关联的流程标签 */
|
|
167
|
+
refForm: string;
|
|
168
|
+
/** 流程 id */
|
|
169
|
+
processId: string;
|
|
170
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LowCodeWidget } from '../..';
|
|
2
|
+
/** 文本展示组件属性 */
|
|
3
|
+
export interface TextProps extends LowCodeWidget.WidgetProps {
|
|
4
|
+
text: string;
|
|
5
|
+
i18nConfig: string;
|
|
6
|
+
}
|
|
7
|
+
/** 图片展示组件属性 */
|
|
8
|
+
export interface GenImageProps extends LowCodeWidget.WidgetProps {
|
|
9
|
+
title: string;
|
|
10
|
+
/** 上传图片路径 */
|
|
11
|
+
imgUrl: string;
|
|
12
|
+
/** 提示文字 */
|
|
13
|
+
prompt: string;
|
|
14
|
+
/** 辅助介绍 */
|
|
15
|
+
auxiliary: string;
|
|
16
|
+
/** 宽度自适应 */
|
|
17
|
+
autoWidth: boolean;
|
|
18
|
+
/** 图片尺寸 */
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
maxHeight: number;
|
|
22
|
+
/** 宽高比 */
|
|
23
|
+
whRadio?: number;
|
|
24
|
+
displayLabelText: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** 分割线组件属性 */
|
|
27
|
+
export interface DividerProps extends LowCodeWidget.WidgetProps {
|
|
28
|
+
title: string;
|
|
29
|
+
borderStyle: 'solid' | 'dashed' | 'dotted';
|
|
30
|
+
borderWidth: number;
|
|
31
|
+
borderColor: string;
|
|
32
|
+
}
|
|
33
|
+
/** 间距占位组件属性 */
|
|
34
|
+
export interface SpaceOccupationProps extends LowCodeWidget.WidgetProps {
|
|
35
|
+
title: string;
|
|
36
|
+
height: number;
|
|
37
|
+
}
|
|
38
|
+
/** 内嵌 iframe 组件属性 */
|
|
39
|
+
export interface IframeProps extends LowCodeWidget.WidgetProps {
|
|
40
|
+
title: string;
|
|
41
|
+
/** iframe 路径 */
|
|
42
|
+
iframeUrl: string;
|
|
43
|
+
}
|
|
44
|
+
/** 自定义代码组件属性 */
|
|
45
|
+
export interface CustomCodeProps extends LowCodeWidget.WidgetProps {
|
|
46
|
+
code?: string;
|
|
47
|
+
runtimeCode: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AGLINE_ENUMS } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeWidget, validateRule } from '../..';
|
|
3
|
+
import { SearchWidgets } from './i-search-widget-props';
|
|
4
|
+
/** 表单容器属性 */
|
|
5
|
+
export interface FormProps extends LowCodeWidget.WidgetProps {
|
|
6
|
+
model?: string;
|
|
7
|
+
layout: 'horizontal' | 'vertical';
|
|
8
|
+
/** 自定义字段集合 */
|
|
9
|
+
customFieldList?: IObject[];
|
|
10
|
+
/** 父模型字段选择 */
|
|
11
|
+
parentModelSelection: boolean;
|
|
12
|
+
/** 父模型字段 key */
|
|
13
|
+
refParentModelkey: string;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
validateRule?: validateRule[];
|
|
16
|
+
/** 名称支持宽度配置 */
|
|
17
|
+
hasLabelWidth?: boolean;
|
|
18
|
+
/** 名称显示类型 */
|
|
19
|
+
labelType?: string;
|
|
20
|
+
/** 名称显示宽度 */
|
|
21
|
+
labelWidth?: string | number;
|
|
22
|
+
/** 名称显示样式 */
|
|
23
|
+
overLabelDisplay?: string;
|
|
24
|
+
}
|
|
25
|
+
/** 流程表单属性(继承 FormProps) */
|
|
26
|
+
export interface FormProcessProps extends FormProps {
|
|
27
|
+
/** 流程 id */
|
|
28
|
+
processId: string;
|
|
29
|
+
}
|
|
30
|
+
/** 描述列表属性 */
|
|
31
|
+
export interface DescriptionsProps extends LowCodeWidget.WidgetProps {
|
|
32
|
+
model?: string;
|
|
33
|
+
layout: 'horizontal' | 'vertical';
|
|
34
|
+
column: number;
|
|
35
|
+
refSearch?: string;
|
|
36
|
+
/** 名称支持宽度配置 */
|
|
37
|
+
hasLabelWidth?: boolean;
|
|
38
|
+
/** 名称显示类型 */
|
|
39
|
+
labelType?: string;
|
|
40
|
+
/** 名称显示宽度 */
|
|
41
|
+
labelWidth?: string | number;
|
|
42
|
+
/** 名称显示样式 */
|
|
43
|
+
overLabelDisplay?: string;
|
|
44
|
+
}
|
|
45
|
+
/** 搜索区域容器属性 */
|
|
46
|
+
export interface SearchProps extends LowCodeWidget.WidgetProps {
|
|
47
|
+
model?: string;
|
|
48
|
+
/** 查询字段配置信息 */
|
|
49
|
+
fieldWidgets: SearchWidgets[];
|
|
50
|
+
/** 最多显示个数 */
|
|
51
|
+
maxLength: number;
|
|
52
|
+
/** 单行显示个数 */
|
|
53
|
+
rowLength: number;
|
|
54
|
+
/** 对齐方式 */
|
|
55
|
+
alignment: Exclude<AGLINE_ENUMS, AGLINE_ENUMS.BETWEEN>;
|
|
56
|
+
/** 自定义搜索规则 */
|
|
57
|
+
exp: string;
|
|
58
|
+
/** 自定义搜索条件 */
|
|
59
|
+
customHeader: boolean;
|
|
60
|
+
}
|
|
61
|
+
/** 审批历史组件属性 */
|
|
62
|
+
export interface ApprovalHistoryProps extends LowCodeWidget.WidgetProps {
|
|
63
|
+
refForm?: string;
|
|
64
|
+
title?: string;
|
|
65
|
+
showTitle?: boolean;
|
|
66
|
+
compType: 'steps' | 'table';
|
|
67
|
+
showOpinion?: boolean;
|
|
68
|
+
showSignature?: boolean;
|
|
69
|
+
/** 流程 id */
|
|
70
|
+
processId: string;
|
|
71
|
+
}
|
|
72
|
+
/** 流程图组件属性 */
|
|
73
|
+
export interface FlowDiagramProps extends LowCodeWidget.WidgetProps {
|
|
74
|
+
refForm?: string;
|
|
75
|
+
/** 流程 id */
|
|
76
|
+
processId: string;
|
|
77
|
+
}
|