@steedos-widgets/sortable 3.6.2-beta.4 → 3.6.2-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.
@@ -55398,11 +55398,12 @@ async function getTableColumns(fields, options){
55398
55398
  //增加quickEdit属性,实现快速编辑
55399
55399
  const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
55400
55400
  let className = "";
55401
- if(field.wrap != true){
55402
- className += " whitespace-nowrap ";
55403
- }else {
55404
- className += " break-all ";
55405
- }
55401
+ //crud内默认换行
55402
+ // if(field.wrap != true){
55403
+ // className += " whitespace-nowrap "
55404
+ // }else{
55405
+ // className += " break-words "
55406
+ // }
55406
55407
  let columnItem;
55407
55408
  if((field.is_name || field.name === options.labelFieldName) && options.objectName === 'cms_files'){
55408
55409
  const previewFileScript = `
@@ -55837,7 +55838,8 @@ async function getTableOperation(ctx){
55837
55838
  label: " ",
55838
55839
  fixed: 'right',
55839
55840
  labelClassName: 'text-center',
55840
- className: 'text-center steedos-listview-operation w-10',
55841
+ //TODO:目前3.6.3-patch.3版本中对于动态classname处理存在问题,简单处理固定列问题,等待amis解决crud的columns不支持动态classname的问题
55842
+ className: 'text-center steedos-listview-operation w-10 is-sticky is-sticky-right is-sticky-first-right',
55841
55843
  buttons: [
55842
55844
  {
55843
55845
  "type": "steedos-dropdown-button",
@@ -58434,8 +58436,8 @@ async function getObjectFilter(objectSchema, fields, options) {
58434
58436
  /*
58435
58437
  * @Author: baozhoutao@steedos.com
58436
58438
  * @Date: 2022-07-05 15:55:39
58437
- * @LastEditors: liaodaxue
58438
- * @LastEditTime: 2023-10-20 11:38:25
58439
+ * @LastEditors: baozhoutao@steedos.com
58440
+ * @LastEditTime: 2024-01-15 15:50:40
58439
58441
  * @Description:
58440
58442
  */
58441
58443
 
@@ -59590,7 +59592,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
59590
59592
  labelField: referenceTo.labelField.name,
59591
59593
  valueField: referenceTo.valueField.name,
59592
59594
  // disabledOn: this._master目的是相关表新建时禁止编辑关联字段; this.relatedKey目的是相关表编辑时禁止编辑关联字段,多选字段可以编辑。
59593
- disabledOn: `${readonly} || ( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
59595
+ disabledOn: `${readonly}`,
59596
+ hiddenOn: `( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
59594
59597
  modalMode: 'dialog', //TODO 设置 dialog 或者 drawer,用来配置弹出方式
59595
59598
  source: source,
59596
59599
  size: "lg",
@@ -59834,9 +59837,15 @@ async function lookupToAmis(field, readonly, ctx){
59834
59837
  // console.log(`lookupToAmis====`, field, readonly, ctx)
59835
59838
  if(readonly){
59836
59839
  return {
59837
- type: getAmisStaticFieldType('picker', readonly),
59838
- tpl: getRelatedFieldTpl(field, ctx)
59840
+ type: 'steedos-field',
59841
+ config: field,
59842
+ static: true
59839
59843
  }
59844
+
59845
+ // return {
59846
+ // type: Field.getAmisStaticFieldType('picker', readonly),
59847
+ // tpl: Tpl.getRelatedFieldTpl(field, ctx)
59848
+ // }
59840
59849
  }
59841
59850
  if(field.reference_to && !lodash.exports.isString(field.reference_to) && !readonly){
59842
59851
  return {
@@ -60718,11 +60727,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
60718
60727
  if(field.subFields){
60719
60728
  convertData = {
60720
60729
  type: 'steedos-input-table',
60721
- showIndex: true,
60722
60730
  editable: !readonly,
60723
60731
  addable: !readonly,
60724
60732
  removable: !readonly,
60725
- draggable: !readonly,
60726
60733
  fields: [],
60727
60734
  amis:{
60728
60735
  columnsTogglable: false