@steedos-widgets/sortable 6.3.0-beta.13 → 6.3.0-beta.14
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 -25
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +9 -25
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +9 -25
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -54143,7 +54143,7 @@ function getNameTpl(field, ctx){
|
|
|
54143
54143
|
}
|
|
54144
54144
|
let nameLabel = field.name;
|
|
54145
54145
|
//若字段类型是lookup,则按照相关表tpl的label规则显示;若是其它类型,则显示_display或字段本身的值
|
|
54146
|
-
if (field.type == "lookup") {
|
|
54146
|
+
if (field.type == "lookup" || field.type == "master_detail") {
|
|
54147
54147
|
if(!field.reference_to && (field.optionsFunction || field._optionsFunction || field.options)){
|
|
54148
54148
|
if(!field.isTableField){
|
|
54149
54149
|
nameLabel = `\${${field.name}__label}`;
|
|
@@ -55163,7 +55163,12 @@ async function getQuickEditSchema(object, columnField, options){
|
|
|
55163
55163
|
break;
|
|
55164
55164
|
case "percent":
|
|
55165
55165
|
TempDisplayField = `
|
|
55166
|
-
|
|
55166
|
+
if(event.data.value){
|
|
55167
|
+
_display["${field.name}"] = event.data.value.toFixed(${field.scale}) + '%';
|
|
55168
|
+
} else {
|
|
55169
|
+
_display["${field.name}"] = event.data.value;
|
|
55170
|
+
}
|
|
55171
|
+
|
|
55167
55172
|
`;
|
|
55168
55173
|
quickEditSchema.body[0].onEvent["change"] = quickEditOnEvent(TempDisplayField);
|
|
55169
55174
|
break;
|
|
@@ -55515,6 +55520,7 @@ async function getColumnItemOnClick(field, options){
|
|
|
55515
55520
|
...recordPage.schema.data,
|
|
55516
55521
|
"_inDrawer": true, // 用于判断是否在抽屉中
|
|
55517
55522
|
"recordLoaded": false, // 重置数据加载状态
|
|
55523
|
+
"recordId": `\${${options.idFieldName}}`//审批微页面依赖了作用域中的recordId
|
|
55518
55524
|
}
|
|
55519
55525
|
}) : {
|
|
55520
55526
|
"type": "steedos-record-detail",
|
|
@@ -56454,16 +56460,6 @@ const getSchema$5 = async (uiSchema, ctx) => {
|
|
|
56454
56460
|
data: formSchema
|
|
56455
56461
|
};
|
|
56456
56462
|
`;
|
|
56457
|
-
const onDialogCancelScript = `
|
|
56458
|
-
// 这里加setTimeout是因为amis的Bug,它会先触发cancel事件执行此脚本关闭父窗口然后再关闭子窗口
|
|
56459
|
-
// 正确的顺序应该是先关闭子窗口再关闭父窗口,顺序错了会造成第二次点击新建按钮的时候异常
|
|
56460
|
-
setTimeout(function(){
|
|
56461
|
-
doAction({
|
|
56462
|
-
"actionType": "cancel",
|
|
56463
|
-
"componentId": "object_actions_drawer_${uiSchema.name}"
|
|
56464
|
-
});
|
|
56465
|
-
}, 200);
|
|
56466
|
-
`;
|
|
56467
56463
|
const getSelectedRowsScript = `
|
|
56468
56464
|
const isLookup = event.data.isLookup;
|
|
56469
56465
|
if(isLookup){
|
|
@@ -56553,17 +56549,6 @@ const getSchema$5 = async (uiSchema, ctx) => {
|
|
|
56553
56549
|
"closeOnEsc": false,
|
|
56554
56550
|
"closeOnOutside": false,
|
|
56555
56551
|
"size": "lg",
|
|
56556
|
-
"onEvent": {
|
|
56557
|
-
"cancel": {
|
|
56558
|
-
"actions": [
|
|
56559
|
-
{
|
|
56560
|
-
"actionType": "custom",
|
|
56561
|
-
"script": onDialogCancelScript,
|
|
56562
|
-
"expression": "${window:innerWidth < 768}",
|
|
56563
|
-
}
|
|
56564
|
-
]
|
|
56565
|
-
}
|
|
56566
|
-
},
|
|
56567
56552
|
"actions": [
|
|
56568
56553
|
{
|
|
56569
56554
|
type: 'button',
|
|
@@ -56581,8 +56566,7 @@ const getSchema$5 = async (uiSchema, ctx) => {
|
|
|
56581
56566
|
type: 'button',
|
|
56582
56567
|
actionType: 'confirm',
|
|
56583
56568
|
label: instance.t('frontend_form_save'),
|
|
56584
|
-
primary: true
|
|
56585
|
-
close: `object_actions_drawer_${uiSchema.name}`
|
|
56569
|
+
primary: true
|
|
56586
56570
|
},
|
|
56587
56571
|
]
|
|
56588
56572
|
}
|