@steedos-widgets/amis-lib 6.3.13-beta.6 → 6.3.13-beta.7

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.umd.js CHANGED
@@ -167,7 +167,7 @@ isNode=!!(window&&window.nw&&window.nw.require);if(!((field.is_name||field.name=
167
167
  // },
168
168
  {"args":{},"actionType":"custom","script":previewFileScript,// "expression": "!!window?.nw?.require" //PC客户端预览附件
169
169
  "expression":"!!(window && window.nw && window.nw.require)"//PC客户端预览附件
170
- }]}}},fieldAmis);_context61.next=72;break;case 31:if(!(field.type==='toggle')){_context61.next=35;break;}columnItem=Object.assign({},{type:"switch",name:field.name,label:field.label,width:getFieldWidth(field.width),toggled:field.toggled,"static":true,className:className},fieldAmis,{name:field.name});_context61.next=72;break;case 35:if(!(field.type==='avatar'||field.type==='image'||field.type==='file')){_context61.next=48;break;}_context61.t1=Object;_context61.t2={};_context61.t3=_objectSpread;_context61.t4={type:"switch",name:field.name,label:field.label,width:getFieldWidth(field.width),toggled:field.toggled,"static":true,className:className};_context61.next=42;return getAmisFileReadonlySchema(field);case 42:_context61.t5=_context61.sent;_context61.t6=(0,_context61.t3)(_context61.t4,_context61.t5);_context61.t7=fieldAmis;columnItem=_context61.t1.assign.call(_context61.t1,_context61.t2,_context61.t6,_context61.t7);_context61.next=72;break;case 48:if(!(field.type==='select')){_context61.next=53;break;}map=getSelectMap(field.options);columnItem=Object.assign({},{type:"static-mapping",name:field.name,label:field.label,map:map,sortable:field.sortable,width:getFieldWidth(field.width),toggled:field.toggled,className:className,inputClassName:"inline","static":true},fieldAmis,{name:field.name});_context61.next=72;break;case 53:if(!(field.type==='lookup'||field.type==='master_detail')){_context61.next=57;break;}columnItem=Object.assign({},{type:"static-wrapper",name:field.name,label:field.label,sortable:field.sortable,width:getFieldWidth(field.width),toggled:field.toggled,className:className,size:"none",inputClassName:"inline",body:{type:"steedos-field","static":true,tableObjectName:options.objectName,config:{type:"lookup",reference_to:field.reference_to,name:field.name,label:null,multiple:field.multiple,amis:Object.assign({},fieldAmis,{label:null})}}},fieldAmis,{name:field.name});_context61.next=72;break;case 57:_context61.next=59;return getFieldTpl(field,options);case 59:tpl=_context61.sent;type='static-text';if(tpl){type='static';}else if(field.type==='html'){type='static-markdown';}else if(field.type==='url'){if(field.show_as_qr){type='static-qr-code';}else{type='input-url';}}if(field.type==='textarea'){className+='min-w-56';}// if(field.type === 'date'){
170
+ }]}}},fieldAmis);_context61.next=72;break;case 31:if(!(field.type==='toggle')){_context61.next=35;break;}columnItem=Object.assign({},{type:"switch",name:field.name,label:field.label,width:getFieldWidth(field.width),toggled:field.toggled,"static":true,className:className},fieldAmis,{name:field.name});_context61.next=72;break;case 35:if(!(field.type==='avatar'||field.type==='image'||field.type==='file')){_context61.next=48;break;}_context61.t1=Object;_context61.t2={};_context61.t3=_objectSpread;_context61.t4={type:"switch",name:field.name,label:field.label,width:getFieldWidth(field.width),toggled:field.toggled,"static":true,className:className};_context61.next=42;return getAmisFileReadonlySchema(field);case 42:_context61.t5=_context61.sent;_context61.t6=(0,_context61.t3)(_context61.t4,_context61.t5);_context61.t7=fieldAmis;columnItem=_context61.t1.assign.call(_context61.t1,_context61.t2,_context61.t6,_context61.t7);_context61.next=72;break;case 48:if(!(field.type==='select')){_context61.next=53;break;}map=getSelectMap(field.options);columnItem=Object.assign({},{type:"static-mapping",name:field.name,label:field.label,map:map,sortable:field.sortable,width:getFieldWidth(field.width),toggled:field.toggled,className:className,inputClassName:"inline","static":true},fieldAmis,{name:field.name});_context61.next=72;break;case 53:if(!(field.type==='lookup'||field.type==='master_detail')){_context61.next=57;break;}columnItem=Object.assign({},{type:"static-wrapper",name:field.name,label:field.label,sortable:field.sortable,width:getFieldWidth(field.width),toggled:field.toggled,className:className,size:"none",inputClassName:"inline",body:{type:"steedos-field","static":true,tableObjectName:options.objectName,config:{type:"lookup",reference_to:field.reference_to,name:field.name,is_name:field.is_name,label:null,multiple:field.multiple,amis:Object.assign({},fieldAmis,{label:null})}}},fieldAmis,{name:field.name});_context61.next=72;break;case 57:_context61.next=59;return getFieldTpl(field,options);case 59:tpl=_context61.sent;type='static-text';if(tpl){type='static';}else if(field.type==='html'){type='static-markdown';}else if(field.type==='url'){if(field.show_as_qr){type='static-qr-code';}else{type='input-url';}}if(field.type==='textarea'){className+='min-w-56';}// if(field.type === 'date'){
171
171
  // className += 'date-min-w';
172
172
  // }
173
173
  // if(field.type === 'datetime'){