@steedos-widgets/sortable 1.3.8 → 1.3.9
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 +9 -5
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +9 -5
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +9 -5
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -59069,7 +59069,7 @@ var config = {
|
|
|
59069
59069
|
};
|
|
59070
59070
|
|
|
59071
59071
|
async function getQuickEditSchema(field, options){
|
|
59072
|
-
//判断在amis3.2
|
|
59072
|
+
//判断在amis3.2以上环境下,放开批量编辑与lookup的单元格编辑
|
|
59073
59073
|
let isAmisVersionforBatchEdit = false;
|
|
59074
59074
|
if(window.amisRequire && window.amisRequire('amis')){
|
|
59075
59075
|
isAmisVersionforBatchEdit = window.amisRequire('amis').version[0] >= 3 && window.amisRequire('amis').version[2] >= 2;
|
|
@@ -59470,6 +59470,10 @@ async function getQuickEditSchema(field, options){
|
|
|
59470
59470
|
} else {
|
|
59471
59471
|
quickEditSchema = false;
|
|
59472
59472
|
}
|
|
59473
|
+
//amis3.2以下禁用lookup的单元格编辑
|
|
59474
|
+
if(field.type == "lookup" && !isAmisVersionforBatchEdit){
|
|
59475
|
+
quickEditSchema = false;
|
|
59476
|
+
}
|
|
59473
59477
|
//TODO:附件多选时会覆盖老数据,暂时禁用
|
|
59474
59478
|
if(field.type == "file" && field.multiple){
|
|
59475
59479
|
quickEditSchema = false;
|
|
@@ -59500,9 +59504,9 @@ function getFieldWidth(width){
|
|
|
59500
59504
|
async function getTableColumns(fields, options){
|
|
59501
59505
|
const columns = [];
|
|
59502
59506
|
if(!options.isLookup){
|
|
59503
|
-
columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
|
|
59504
59507
|
//将_display放入crud的columns中,可以通过setvalue修改行内数据域的_display,而不影响上层items的_display,用于批量编辑
|
|
59505
59508
|
columns.push({name: '_display',type: 'static', width: 32, placeholder: "",id: "_display_${_index}", className: "hidden"});
|
|
59509
|
+
columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
|
|
59506
59510
|
}
|
|
59507
59511
|
const allowEdit = options.permissions?.allowEdit && !options.isLookup && options.enable_inline_edit != false;
|
|
59508
59512
|
|
|
@@ -59594,14 +59598,14 @@ async function getTableColumns(fields, options){
|
|
|
59594
59598
|
}
|
|
59595
59599
|
else {
|
|
59596
59600
|
const tpl = await getFieldTpl(field, options);
|
|
59597
|
-
let type = 'text';
|
|
59601
|
+
let type = 'static-text';
|
|
59598
59602
|
if(tpl){
|
|
59599
59603
|
type = 'static';
|
|
59600
59604
|
}else if(field.type === 'html'){
|
|
59601
|
-
type = 'markdown';
|
|
59605
|
+
type = 'static-markdown';
|
|
59602
59606
|
}else if(field.type === 'url'){
|
|
59603
59607
|
if(field.show_as_qr){
|
|
59604
|
-
type = 'qr-code';
|
|
59608
|
+
type = 'static-qr-code';
|
|
59605
59609
|
}else {
|
|
59606
59610
|
type = 'input-url';
|
|
59607
59611
|
}
|