@steedos-widgets/sortable 6.3.0-beta.13 → 6.3.0-beta.15
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 +13 -25
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +13 -25
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +13 -25
- package/package.json +3 -3
package/dist/sortable.umd.js
CHANGED
|
@@ -20448,7 +20448,7 @@
|
|
|
20448
20448
|
}
|
|
20449
20449
|
let nameLabel = field.name;
|
|
20450
20450
|
//若字段类型是lookup,则按照相关表tpl的label规则显示;若是其它类型,则显示_display或字段本身的值
|
|
20451
|
-
if (field.type == "lookup") {
|
|
20451
|
+
if (field.type == "lookup" || field.type == "master_detail") {
|
|
20452
20452
|
if(!field.reference_to && (field.optionsFunction || field._optionsFunction || field.options)){
|
|
20453
20453
|
if(!field.isTableField){
|
|
20454
20454
|
nameLabel = `\${${field.name}__label}`;
|
|
@@ -21003,6 +21003,7 @@
|
|
|
21003
21003
|
var frontend_notifications$1 = "Notifications";
|
|
21004
21004
|
var frontend_notifications_allread$1 = "Mark all as read";
|
|
21005
21005
|
var frontend_notifications_allread_message$1 = "All marked as read";
|
|
21006
|
+
var frontend_notifications_close_dialog$1 = "Close";
|
|
21006
21007
|
var frontend_profile$1 = "Profile";
|
|
21007
21008
|
var switch_space$1 = "Switch Space";
|
|
21008
21009
|
var frontend_about$1 = "About";
|
|
@@ -21092,6 +21093,7 @@
|
|
|
21092
21093
|
frontend_notifications: frontend_notifications$1,
|
|
21093
21094
|
frontend_notifications_allread: frontend_notifications_allread$1,
|
|
21094
21095
|
frontend_notifications_allread_message: frontend_notifications_allread_message$1,
|
|
21096
|
+
frontend_notifications_close_dialog: frontend_notifications_close_dialog$1,
|
|
21095
21097
|
frontend_profile: frontend_profile$1,
|
|
21096
21098
|
switch_space: switch_space$1,
|
|
21097
21099
|
frontend_about: frontend_about$1,
|
|
@@ -21183,6 +21185,7 @@
|
|
|
21183
21185
|
var frontend_notifications = "通知";
|
|
21184
21186
|
var frontend_notifications_allread = "全部标记为已读";
|
|
21185
21187
|
var frontend_notifications_allread_message = "已全部标记为已读";
|
|
21188
|
+
var frontend_notifications_close_dialog = "关闭";
|
|
21186
21189
|
var frontend_profile = "个人资料";
|
|
21187
21190
|
var switch_space = "切换工作区";
|
|
21188
21191
|
var frontend_about = "关于";
|
|
@@ -21273,6 +21276,7 @@
|
|
|
21273
21276
|
frontend_notifications: frontend_notifications,
|
|
21274
21277
|
frontend_notifications_allread: frontend_notifications_allread,
|
|
21275
21278
|
frontend_notifications_allread_message: frontend_notifications_allread_message,
|
|
21279
|
+
frontend_notifications_close_dialog: frontend_notifications_close_dialog,
|
|
21276
21280
|
frontend_profile: frontend_profile,
|
|
21277
21281
|
switch_space: switch_space,
|
|
21278
21282
|
frontend_about: frontend_about,
|
|
@@ -21468,7 +21472,12 @@
|
|
|
21468
21472
|
break;
|
|
21469
21473
|
case "percent":
|
|
21470
21474
|
TempDisplayField = `
|
|
21471
|
-
|
|
21475
|
+
if(event.data.value){
|
|
21476
|
+
_display["${field.name}"] = event.data.value.toFixed(${field.scale}) + '%';
|
|
21477
|
+
} else {
|
|
21478
|
+
_display["${field.name}"] = event.data.value;
|
|
21479
|
+
}
|
|
21480
|
+
|
|
21472
21481
|
`;
|
|
21473
21482
|
quickEditSchema.body[0].onEvent["change"] = quickEditOnEvent(TempDisplayField);
|
|
21474
21483
|
break;
|
|
@@ -21820,6 +21829,7 @@
|
|
|
21820
21829
|
...recordPage.schema.data,
|
|
21821
21830
|
"_inDrawer": true, // 用于判断是否在抽屉中
|
|
21822
21831
|
"recordLoaded": false, // 重置数据加载状态
|
|
21832
|
+
"recordId": `\${${options.idFieldName}}`//审批微页面依赖了作用域中的recordId
|
|
21823
21833
|
}
|
|
21824
21834
|
}) : {
|
|
21825
21835
|
"type": "steedos-record-detail",
|
|
@@ -22758,16 +22768,6 @@
|
|
|
22758
22768
|
return {
|
|
22759
22769
|
data: formSchema
|
|
22760
22770
|
};
|
|
22761
|
-
`;
|
|
22762
|
-
const onDialogCancelScript = `
|
|
22763
|
-
// 这里加setTimeout是因为amis的Bug,它会先触发cancel事件执行此脚本关闭父窗口然后再关闭子窗口
|
|
22764
|
-
// 正确的顺序应该是先关闭子窗口再关闭父窗口,顺序错了会造成第二次点击新建按钮的时候异常
|
|
22765
|
-
setTimeout(function(){
|
|
22766
|
-
doAction({
|
|
22767
|
-
"actionType": "cancel",
|
|
22768
|
-
"componentId": "object_actions_drawer_${uiSchema.name}"
|
|
22769
|
-
});
|
|
22770
|
-
}, 200);
|
|
22771
22771
|
`;
|
|
22772
22772
|
const getSelectedRowsScript = `
|
|
22773
22773
|
const isLookup = event.data.isLookup;
|
|
@@ -22858,17 +22858,6 @@
|
|
|
22858
22858
|
"closeOnEsc": false,
|
|
22859
22859
|
"closeOnOutside": false,
|
|
22860
22860
|
"size": "lg",
|
|
22861
|
-
"onEvent": {
|
|
22862
|
-
"cancel": {
|
|
22863
|
-
"actions": [
|
|
22864
|
-
{
|
|
22865
|
-
"actionType": "custom",
|
|
22866
|
-
"script": onDialogCancelScript,
|
|
22867
|
-
"expression": "${window:innerWidth < 768}",
|
|
22868
|
-
}
|
|
22869
|
-
]
|
|
22870
|
-
}
|
|
22871
|
-
},
|
|
22872
22861
|
"actions": [
|
|
22873
22862
|
{
|
|
22874
22863
|
type: 'button',
|
|
@@ -22886,8 +22875,7 @@
|
|
|
22886
22875
|
type: 'button',
|
|
22887
22876
|
actionType: 'confirm',
|
|
22888
22877
|
label: instance.t('frontend_form_save'),
|
|
22889
|
-
primary: true
|
|
22890
|
-
close: `object_actions_drawer_${uiSchema.name}`
|
|
22878
|
+
primary: true
|
|
22891
22879
|
},
|
|
22892
22880
|
]
|
|
22893
22881
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/sortable",
|
|
3
|
-
"version": "6.3.0-beta.
|
|
3
|
+
"version": "6.3.0-beta.15",
|
|
4
4
|
"main": "dist/sortable.cjs.js",
|
|
5
5
|
"module": "dist/sortable.esm.js",
|
|
6
6
|
"unpkg": "dist/sortable.umd.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@dnd-kit/core": "^6.0.5",
|
|
47
47
|
"@dnd-kit/sortable": "^7.0.1",
|
|
48
|
-
"@steedos-widgets/amis-lib": "6.3.0-beta.
|
|
48
|
+
"@steedos-widgets/amis-lib": "6.3.0-beta.15"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "2814297d85c3ef6567fb501ada86fb28edb92b9d"
|
|
51
51
|
}
|