@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.
package/dist/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/sortable",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.4/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.4/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.5/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.5/dist/sortable.umd.css"
8
8
  ],
9
9
  "library": "BuilderSortable"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/sortable"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.4/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.5/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.4/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.4/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.5/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.5/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -55402,11 +55402,12 @@ async function getTableColumns(fields, options){
55402
55402
  //增加quickEdit属性,实现快速编辑
55403
55403
  const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
55404
55404
  let className = "";
55405
- if(field.wrap != true){
55406
- className += " whitespace-nowrap ";
55407
- }else {
55408
- className += " break-all ";
55409
- }
55405
+ //crud内默认换行
55406
+ // if(field.wrap != true){
55407
+ // className += " whitespace-nowrap "
55408
+ // }else{
55409
+ // className += " break-words "
55410
+ // }
55410
55411
  let columnItem;
55411
55412
  if((field.is_name || field.name === options.labelFieldName) && options.objectName === 'cms_files'){
55412
55413
  const previewFileScript = `
@@ -55841,7 +55842,8 @@ async function getTableOperation(ctx){
55841
55842
  label: " ",
55842
55843
  fixed: 'right',
55843
55844
  labelClassName: 'text-center',
55844
- className: 'text-center steedos-listview-operation w-10',
55845
+ //TODO:目前3.6.3-patch.3版本中对于动态classname处理存在问题,简单处理固定列问题,等待amis解决crud的columns不支持动态classname的问题
55846
+ className: 'text-center steedos-listview-operation w-10 is-sticky is-sticky-right is-sticky-first-right',
55845
55847
  buttons: [
55846
55848
  {
55847
55849
  "type": "steedos-dropdown-button",
@@ -58438,8 +58440,8 @@ async function getObjectFilter(objectSchema, fields, options) {
58438
58440
  /*
58439
58441
  * @Author: baozhoutao@steedos.com
58440
58442
  * @Date: 2022-07-05 15:55:39
58441
- * @LastEditors: liaodaxue
58442
- * @LastEditTime: 2023-10-20 11:38:25
58443
+ * @LastEditors: baozhoutao@steedos.com
58444
+ * @LastEditTime: 2024-01-15 15:50:40
58443
58445
  * @Description:
58444
58446
  */
58445
58447
 
@@ -59594,7 +59596,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
59594
59596
  labelField: referenceTo.labelField.name,
59595
59597
  valueField: referenceTo.valueField.name,
59596
59598
  // disabledOn: this._master目的是相关表新建时禁止编辑关联字段; this.relatedKey目的是相关表编辑时禁止编辑关联字段,多选字段可以编辑。
59597
- disabledOn: `${readonly} || ( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
59599
+ disabledOn: `${readonly}`,
59600
+ hiddenOn: `( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
59598
59601
  modalMode: 'dialog', //TODO 设置 dialog 或者 drawer,用来配置弹出方式
59599
59602
  source: source,
59600
59603
  size: "lg",
@@ -59838,9 +59841,15 @@ async function lookupToAmis(field, readonly, ctx){
59838
59841
  // console.log(`lookupToAmis====`, field, readonly, ctx)
59839
59842
  if(readonly){
59840
59843
  return {
59841
- type: getAmisStaticFieldType('picker', readonly),
59842
- tpl: getRelatedFieldTpl(field, ctx)
59844
+ type: 'steedos-field',
59845
+ config: field,
59846
+ static: true
59843
59847
  }
59848
+
59849
+ // return {
59850
+ // type: Field.getAmisStaticFieldType('picker', readonly),
59851
+ // tpl: Tpl.getRelatedFieldTpl(field, ctx)
59852
+ // }
59844
59853
  }
59845
59854
  if(field.reference_to && !lodash.exports.isString(field.reference_to) && !readonly){
59846
59855
  return {
@@ -60722,11 +60731,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
60722
60731
  if(field.subFields){
60723
60732
  convertData = {
60724
60733
  type: 'steedos-input-table',
60725
- showIndex: true,
60726
60734
  editable: !readonly,
60727
60735
  addable: !readonly,
60728
60736
  removable: !readonly,
60729
- draggable: !readonly,
60730
60737
  fields: [],
60731
60738
  amis:{
60732
60739
  columnsTogglable: false