@steedos-widgets/sortable 3.6.2-beta.3 → 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 +5 -5
- package/dist/sortable.cjs.js +28 -15
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +28 -15
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +28 -15
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -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
|
-
|
|
55402
|
-
|
|
55403
|
-
|
|
55404
|
-
|
|
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
|
-
|
|
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",
|
|
@@ -58284,7 +58286,10 @@ function getObjectFooterToolbar(mainObject, formFactor, options) {
|
|
|
58284
58286
|
// ]
|
|
58285
58287
|
if(options.displayAs === 'split'){
|
|
58286
58288
|
return [
|
|
58287
|
-
|
|
58289
|
+
{
|
|
58290
|
+
"type": "switch-per-page",
|
|
58291
|
+
"visibleOn": "${count >= 20}"
|
|
58292
|
+
},
|
|
58288
58293
|
{
|
|
58289
58294
|
"type": "pagination",
|
|
58290
58295
|
"maxButtons": 5,
|
|
@@ -58328,7 +58333,10 @@ function getObjectFooterToolbar(mainObject, formFactor, options) {
|
|
|
58328
58333
|
if (no_pagination && is_lookup) {
|
|
58329
58334
|
return commonConfig;
|
|
58330
58335
|
} else {
|
|
58331
|
-
return [
|
|
58336
|
+
return [{
|
|
58337
|
+
"type": "switch-per-page",
|
|
58338
|
+
"visibleOn": "${count >= 20}"
|
|
58339
|
+
}, ...commonConfig];
|
|
58332
58340
|
}
|
|
58333
58341
|
}
|
|
58334
58342
|
}
|
|
@@ -58428,8 +58436,8 @@ async function getObjectFilter(objectSchema, fields, options) {
|
|
|
58428
58436
|
/*
|
|
58429
58437
|
* @Author: baozhoutao@steedos.com
|
|
58430
58438
|
* @Date: 2022-07-05 15:55:39
|
|
58431
|
-
* @LastEditors:
|
|
58432
|
-
* @LastEditTime:
|
|
58439
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
58440
|
+
* @LastEditTime: 2024-01-15 15:50:40
|
|
58433
58441
|
* @Description:
|
|
58434
58442
|
*/
|
|
58435
58443
|
|
|
@@ -59584,7 +59592,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59584
59592
|
labelField: referenceTo.labelField.name,
|
|
59585
59593
|
valueField: referenceTo.valueField.name,
|
|
59586
59594
|
// disabledOn: this._master目的是相关表新建时禁止编辑关联字段; this.relatedKey目的是相关表编辑时禁止编辑关联字段,多选字段可以编辑。
|
|
59587
|
-
disabledOn: `${readonly}
|
|
59595
|
+
disabledOn: `${readonly}`,
|
|
59596
|
+
hiddenOn: `( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
|
|
59588
59597
|
modalMode: 'dialog', //TODO 设置 dialog 或者 drawer,用来配置弹出方式
|
|
59589
59598
|
source: source,
|
|
59590
59599
|
size: "lg",
|
|
@@ -59828,9 +59837,15 @@ async function lookupToAmis(field, readonly, ctx){
|
|
|
59828
59837
|
// console.log(`lookupToAmis====`, field, readonly, ctx)
|
|
59829
59838
|
if(readonly){
|
|
59830
59839
|
return {
|
|
59831
|
-
type:
|
|
59832
|
-
|
|
59840
|
+
type: 'steedos-field',
|
|
59841
|
+
config: field,
|
|
59842
|
+
static: true
|
|
59833
59843
|
}
|
|
59844
|
+
|
|
59845
|
+
// return {
|
|
59846
|
+
// type: Field.getAmisStaticFieldType('picker', readonly),
|
|
59847
|
+
// tpl: Tpl.getRelatedFieldTpl(field, ctx)
|
|
59848
|
+
// }
|
|
59834
59849
|
}
|
|
59835
59850
|
if(field.reference_to && !lodash.exports.isString(field.reference_to) && !readonly){
|
|
59836
59851
|
return {
|
|
@@ -60712,11 +60727,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60712
60727
|
if(field.subFields){
|
|
60713
60728
|
convertData = {
|
|
60714
60729
|
type: 'steedos-input-table',
|
|
60715
|
-
showIndex: true,
|
|
60716
60730
|
editable: !readonly,
|
|
60717
60731
|
addable: !readonly,
|
|
60718
60732
|
removable: !readonly,
|
|
60719
|
-
draggable: !readonly,
|
|
60720
60733
|
fields: [],
|
|
60721
60734
|
amis:{
|
|
60722
60735
|
columnsTogglable: false
|