@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/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@6.3.0-beta.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.14/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.14/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@6.3.0-beta.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.14/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.14/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@6.3.0-beta.14/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -54147,7 +54147,7 @@ function getNameTpl(field, ctx){
|
|
|
54147
54147
|
}
|
|
54148
54148
|
let nameLabel = field.name;
|
|
54149
54149
|
//若字段类型是lookup,则按照相关表tpl的label规则显示;若是其它类型,则显示_display或字段本身的值
|
|
54150
|
-
if (field.type == "lookup") {
|
|
54150
|
+
if (field.type == "lookup" || field.type == "master_detail") {
|
|
54151
54151
|
if(!field.reference_to && (field.optionsFunction || field._optionsFunction || field.options)){
|
|
54152
54152
|
if(!field.isTableField){
|
|
54153
54153
|
nameLabel = `\${${field.name}__label}`;
|
|
@@ -55167,7 +55167,12 @@ async function getQuickEditSchema(object, columnField, options){
|
|
|
55167
55167
|
break;
|
|
55168
55168
|
case "percent":
|
|
55169
55169
|
TempDisplayField = `
|
|
55170
|
-
|
|
55170
|
+
if(event.data.value){
|
|
55171
|
+
_display["${field.name}"] = event.data.value.toFixed(${field.scale}) + '%';
|
|
55172
|
+
} else {
|
|
55173
|
+
_display["${field.name}"] = event.data.value;
|
|
55174
|
+
}
|
|
55175
|
+
|
|
55171
55176
|
`;
|
|
55172
55177
|
quickEditSchema.body[0].onEvent["change"] = quickEditOnEvent(TempDisplayField);
|
|
55173
55178
|
break;
|
|
@@ -55519,6 +55524,7 @@ async function getColumnItemOnClick(field, options){
|
|
|
55519
55524
|
...recordPage.schema.data,
|
|
55520
55525
|
"_inDrawer": true, // 用于判断是否在抽屉中
|
|
55521
55526
|
"recordLoaded": false, // 重置数据加载状态
|
|
55527
|
+
"recordId": `\${${options.idFieldName}}`//审批微页面依赖了作用域中的recordId
|
|
55522
55528
|
}
|
|
55523
55529
|
}) : {
|
|
55524
55530
|
"type": "steedos-record-detail",
|
|
@@ -56458,16 +56464,6 @@ const getSchema$5 = async (uiSchema, ctx) => {
|
|
|
56458
56464
|
data: formSchema
|
|
56459
56465
|
};
|
|
56460
56466
|
`;
|
|
56461
|
-
const onDialogCancelScript = `
|
|
56462
|
-
// 这里加setTimeout是因为amis的Bug,它会先触发cancel事件执行此脚本关闭父窗口然后再关闭子窗口
|
|
56463
|
-
// 正确的顺序应该是先关闭子窗口再关闭父窗口,顺序错了会造成第二次点击新建按钮的时候异常
|
|
56464
|
-
setTimeout(function(){
|
|
56465
|
-
doAction({
|
|
56466
|
-
"actionType": "cancel",
|
|
56467
|
-
"componentId": "object_actions_drawer_${uiSchema.name}"
|
|
56468
|
-
});
|
|
56469
|
-
}, 200);
|
|
56470
|
-
`;
|
|
56471
56467
|
const getSelectedRowsScript = `
|
|
56472
56468
|
const isLookup = event.data.isLookup;
|
|
56473
56469
|
if(isLookup){
|
|
@@ -56557,17 +56553,6 @@ const getSchema$5 = async (uiSchema, ctx) => {
|
|
|
56557
56553
|
"closeOnEsc": false,
|
|
56558
56554
|
"closeOnOutside": false,
|
|
56559
56555
|
"size": "lg",
|
|
56560
|
-
"onEvent": {
|
|
56561
|
-
"cancel": {
|
|
56562
|
-
"actions": [
|
|
56563
|
-
{
|
|
56564
|
-
"actionType": "custom",
|
|
56565
|
-
"script": onDialogCancelScript,
|
|
56566
|
-
"expression": "${window:innerWidth < 768}",
|
|
56567
|
-
}
|
|
56568
|
-
]
|
|
56569
|
-
}
|
|
56570
|
-
},
|
|
56571
56556
|
"actions": [
|
|
56572
56557
|
{
|
|
56573
56558
|
type: 'button',
|
|
@@ -56585,8 +56570,7 @@ const getSchema$5 = async (uiSchema, ctx) => {
|
|
|
56585
56570
|
type: 'button',
|
|
56586
56571
|
actionType: 'confirm',
|
|
56587
56572
|
label: instance.t('frontend_form_save'),
|
|
56588
|
-
primary: true
|
|
56589
|
-
close: `object_actions_drawer_${uiSchema.name}`
|
|
56573
|
+
primary: true
|
|
56590
56574
|
},
|
|
56591
56575
|
]
|
|
56592
56576
|
}
|