@steedos-widgets/amis-lib 3.6.11-beta.3 → 3.6.11-beta.5

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
@@ -739,8 +739,8 @@ if(!enableEnhancedLookup&&refObject.enable_tree&&field.multiple){enableEnhancedL
739
739
  disabledOn:"".concat(readonly," || ( (this._master && (this._master.relatedKey ==='").concat(field.name,"')) || ((this.relatedKey ==='").concat(field.name,"') && (").concat(field.multiple," != true)) )"),size:"lg",pickerSchema:pickerSchema,joinValues:false,extractValue:true};if(field.multiple){data.multiple=true;data.extractValue=true;}if(ctx.value){data.value=ctx.value;}if(ctx.selectFirst!=undefined){data.selectFirst=ctx.selectFirst;}if(!readonly){_context116.next=42;break;}_context116.next=41;return getLookupTpl(field,ctx);case 41:data.tpl=_context116.sent;case 42:return _context116.abrupt("return",data);case 43:case"end":return _context116.stop();}}},_callee116);}));return _getIdsPickerSchema.apply(this,arguments);}if(typeof window!='undefined'){window.getReferenceTo=getReferenceTo;window.getReferenceToSync=getReferenceToSync;}/*
740
740
  * @Author: baozhoutao@steedos.com
741
741
  * @Date: 2023-01-13 17:27:54
742
- * @LastEditors: liaodaxue
743
- * @LastEditTime: 2024-02-04 17:29:54
742
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
743
+ * @LastEditTime: 2024-04-11 14:14:43
744
744
  * @Description:
745
745
  */var getMarkdownFieldSchema=function getMarkdownFieldSchema(field,readonly,ctx){if(readonly){return{"type":"control","label":field.label,"body":{"type":"markdown","name":field.name,"options":{"linkify":true,"html":true,"breaks":true}}};}else{return{"type":"control","label":field.label,"body":[{"type":"tabs","tabsMode":"strong","className":"steedos-markdown","tabs":[{"title":i18next__default["default"].t('frontend_form_edit'),"tab":[{"type":"editor","name":field.name,"labelClassName":"none","language":"markdown"}]},{"title":i18next__default["default"].t('frontend_form_preview'),"tab":[{"type":"markdown","name":field.name,"options":{"linkify":true,"html":true,"breaks":true}}]}]}]};}};var getHtmlFieldSchema=function getHtmlFieldSchema(field,readonly,ctx){if(readonly){// return {
746
746
  // "type": "control",
@@ -750,8 +750,20 @@ disabledOn:"".concat(readonly," || ( (this._master && (this._master.relatedKey =
750
750
  // "name": field.name
751
751
  // }
752
752
  // }
753
- return{"type":"input-rich-text","receiver":"${context.rootUrl}/s3/images","name":field.name,"options":{"menu":{"insert":{"title":"Insert","items":"image link media addcomment pageembed codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime"}},"plugins":["autoresize"],// "max_height": 2000,
754
- "statusbar":false,"readonly":true,"toolbar":false,"menubar":false}};}else{return{"type":"input-rich-text","receiver":"${context.rootUrl}/s3/images","options":{"menu":{"insert":{"title":"Insert","items":"image link media addcomment pageembed codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime"}},"statusbar":false},"name":field.name};// return {
753
+ return{"type":"input-rich-text","receiver":"${context.rootUrl}/s3/images","name":field.name,"options":{// "menu": {
754
+ // "insert": {
755
+ // "title": "Insert",
756
+ // "items": "image link media addcomment pageembed codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime"
757
+ // }
758
+ // },
759
+ "plugins":["autoresize"],// "max_height": 2000,
760
+ "statusbar":false,"readonly":true,"toolbar":false,"menubar":false}};}else{return{"type":"input-rich-text","receiver":"${context.rootUrl}/s3/images","options":{// "menu": {
761
+ // "insert": {
762
+ // "title": "Insert",
763
+ // "items": "image link media addcomment pageembed codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime"
764
+ // }
765
+ // },
766
+ "statusbar":false,"menubar":false},"name":field.name};// return {
755
767
  // "type": "group",
756
768
  // "body": [
757
769
  // {