@steedos-widgets/sortable 6.3.0 → 6.3.2
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 +19 -6
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +19 -6
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +19 -6
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -54545,7 +54545,7 @@ async function getLookupLinkOnClick(field, options) {
|
|
|
54545
54545
|
const recordPage = await getPage({ type: 'record', appId: options.appId, objectName: options.objectName, formFactor: options.formFactor });
|
|
54546
54546
|
|
|
54547
54547
|
const drawerRecordDetailSchema = recordPage ? Object.assign({}, recordPage.schema, {
|
|
54548
|
-
"recordId":
|
|
54548
|
+
"recordId": `\${${field.name}}`,
|
|
54549
54549
|
"data": {
|
|
54550
54550
|
...recordPage.schema.data,
|
|
54551
54551
|
"_inDrawer": true, // 用于判断是否在抽屉中
|
|
@@ -54555,7 +54555,7 @@ async function getLookupLinkOnClick(field, options) {
|
|
|
54555
54555
|
}) : {
|
|
54556
54556
|
"type": "steedos-record-detail",
|
|
54557
54557
|
"objectApiName": options.objectName,
|
|
54558
|
-
"recordId":
|
|
54558
|
+
"recordId": `\${${field.name}}`,
|
|
54559
54559
|
"showBackButton": false,
|
|
54560
54560
|
"showButtons": true,
|
|
54561
54561
|
"data": {
|
|
@@ -54661,7 +54661,7 @@ const getAmisFileReadonlySchema = async (steedosField,ctx = {})=>{
|
|
|
54661
54661
|
labelClassName: "hidden",
|
|
54662
54662
|
label: false,
|
|
54663
54663
|
className: 'm-0',
|
|
54664
|
-
tpl: `<a href="/app/-/cfs_files_filerecord/view/\${
|
|
54664
|
+
tpl: `<a href="/app/-/cfs_files_filerecord/view/\${${steedosField.name}}" ${lookupATagClick}>\${name}</a>`,
|
|
54665
54665
|
// tpl: "<%= item.name >",
|
|
54666
54666
|
// onEvent: window.innerWidth < 768 ? null : REFERENCE_VALUE_ITEM_ONCLICK
|
|
54667
54667
|
onEvent: window.innerWidth < 768 ? null : await getLookupLinkOnClick(steedosField, {
|
|
@@ -55144,6 +55144,11 @@ async function getQuickEditSchema(object, columnField, options){
|
|
|
55144
55144
|
const submitEvent = {
|
|
55145
55145
|
submit: {
|
|
55146
55146
|
actions: [
|
|
55147
|
+
{
|
|
55148
|
+
"actionType": "validate",
|
|
55149
|
+
"componentId": quickEditId,
|
|
55150
|
+
"outputVar": "form_validate_result"
|
|
55151
|
+
},
|
|
55147
55152
|
{
|
|
55148
55153
|
actionType: "custom",
|
|
55149
55154
|
script: `
|
|
@@ -55160,10 +55165,12 @@ async function getQuickEditSchema(object, columnField, options){
|
|
|
55160
55165
|
doAction({actionType: 'setValue', "args": {"value": event.data._display},componentId: "${options.objectName}" + "_display_" + event.data._index});
|
|
55161
55166
|
doAction({actionType: 'setValue', "args": {"value": event.data.${field.name}},componentId: "${options.objectName + "_" + field.name + "_"}" + event.data._index});
|
|
55162
55167
|
}
|
|
55163
|
-
|
|
55168
|
+
`,
|
|
55169
|
+
expression: "${!form_validate_result.error}"
|
|
55164
55170
|
},
|
|
55165
55171
|
{
|
|
55166
|
-
"actionType": "closeDialog"
|
|
55172
|
+
"actionType": "closeDialog",
|
|
55173
|
+
expression: "${!form_validate_result.error}"
|
|
55167
55174
|
}
|
|
55168
55175
|
]
|
|
55169
55176
|
}
|
|
@@ -55671,7 +55678,7 @@ async function getTableColumns(object, fields, options){
|
|
|
55671
55678
|
}
|
|
55672
55679
|
//增加quickEdit属性,实现快速编辑
|
|
55673
55680
|
const quickEditSchema = allowEdit ? await getQuickEditSchema(object, field, options) : allowEdit;
|
|
55674
|
-
let className =
|
|
55681
|
+
let className = `steedos-table-${field.type}-field`;
|
|
55675
55682
|
const bowserType = getBowserType();
|
|
55676
55683
|
if(bowserType === "Safari"){
|
|
55677
55684
|
className += " whitespace-nowrap ";
|
|
@@ -61479,6 +61486,8 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
61479
61486
|
if(gridSub){
|
|
61480
61487
|
delete gridSub.name;
|
|
61481
61488
|
delete gridSub.label;
|
|
61489
|
+
//去除重复样式
|
|
61490
|
+
gridSub.className = gridSub.className.replace('border-b', '');
|
|
61482
61491
|
convertData.items.push(
|
|
61483
61492
|
Object.assign({}, gridSub, {label: subField.label}, subField.amis, {
|
|
61484
61493
|
name: subFieldName
|
|
@@ -61533,6 +61542,10 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
61533
61542
|
}
|
|
61534
61543
|
// if(ctx.mode === 'edit'){
|
|
61535
61544
|
let convertDataResult = Object.assign({}, baseData, convertData, { labelClassName: 'text-left', clearValueOnHidden: true, fieldName: field.name}, field.amis, {name: baseData.name});
|
|
61545
|
+
// 只读时file字段的外层control层若存在name,内部each组件存在问题
|
|
61546
|
+
if(readonly && field.type == "file") {
|
|
61547
|
+
convertDataResult.name = "";
|
|
61548
|
+
}
|
|
61536
61549
|
// console.log("convertDataResult:", convertDataResult);
|
|
61537
61550
|
return convertDataResult;
|
|
61538
61551
|
// }else{
|