@steedos-widgets/sortable 6.3.0 → 6.3.1
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 +10 -4
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +10 -4
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +10 -4
- 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.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@6.3.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@6.3.1/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@6.3.1/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.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@6.3.1/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@6.3.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@6.3.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@6.3.1/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@6.3.1/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -54549,7 +54549,7 @@ async function getLookupLinkOnClick(field, options) {
|
|
|
54549
54549
|
const recordPage = await getPage({ type: 'record', appId: options.appId, objectName: options.objectName, formFactor: options.formFactor });
|
|
54550
54550
|
|
|
54551
54551
|
const drawerRecordDetailSchema = recordPage ? Object.assign({}, recordPage.schema, {
|
|
54552
|
-
"recordId":
|
|
54552
|
+
"recordId": `\${${field.name}}`,
|
|
54553
54553
|
"data": {
|
|
54554
54554
|
...recordPage.schema.data,
|
|
54555
54555
|
"_inDrawer": true, // 用于判断是否在抽屉中
|
|
@@ -54559,7 +54559,7 @@ async function getLookupLinkOnClick(field, options) {
|
|
|
54559
54559
|
}) : {
|
|
54560
54560
|
"type": "steedos-record-detail",
|
|
54561
54561
|
"objectApiName": options.objectName,
|
|
54562
|
-
"recordId":
|
|
54562
|
+
"recordId": `\${${field.name}}`,
|
|
54563
54563
|
"showBackButton": false,
|
|
54564
54564
|
"showButtons": true,
|
|
54565
54565
|
"data": {
|
|
@@ -54665,7 +54665,7 @@ const getAmisFileReadonlySchema = async (steedosField,ctx = {})=>{
|
|
|
54665
54665
|
labelClassName: "hidden",
|
|
54666
54666
|
label: false,
|
|
54667
54667
|
className: 'm-0',
|
|
54668
|
-
tpl: `<a href="/app/-/cfs_files_filerecord/view/\${
|
|
54668
|
+
tpl: `<a href="/app/-/cfs_files_filerecord/view/\${${steedosField.name}}" ${lookupATagClick}>\${name}</a>`,
|
|
54669
54669
|
// tpl: "<%= item.name >",
|
|
54670
54670
|
// onEvent: window.innerWidth < 768 ? null : REFERENCE_VALUE_ITEM_ONCLICK
|
|
54671
54671
|
onEvent: window.innerWidth < 768 ? null : await getLookupLinkOnClick(steedosField, {
|
|
@@ -55675,7 +55675,7 @@ async function getTableColumns(object, fields, options){
|
|
|
55675
55675
|
}
|
|
55676
55676
|
//增加quickEdit属性,实现快速编辑
|
|
55677
55677
|
const quickEditSchema = allowEdit ? await getQuickEditSchema(object, field, options) : allowEdit;
|
|
55678
|
-
let className =
|
|
55678
|
+
let className = `steedos-table-${field.type}-field`;
|
|
55679
55679
|
const bowserType = getBowserType();
|
|
55680
55680
|
if(bowserType === "Safari"){
|
|
55681
55681
|
className += " whitespace-nowrap ";
|
|
@@ -61483,6 +61483,8 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
61483
61483
|
if(gridSub){
|
|
61484
61484
|
delete gridSub.name;
|
|
61485
61485
|
delete gridSub.label;
|
|
61486
|
+
//去除重复样式
|
|
61487
|
+
gridSub.className = gridSub.className.replace('border-b', '');
|
|
61486
61488
|
convertData.items.push(
|
|
61487
61489
|
Object.assign({}, gridSub, {label: subField.label}, subField.amis, {
|
|
61488
61490
|
name: subFieldName
|
|
@@ -61537,6 +61539,10 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
61537
61539
|
}
|
|
61538
61540
|
// if(ctx.mode === 'edit'){
|
|
61539
61541
|
let convertDataResult = Object.assign({}, baseData, convertData, { labelClassName: 'text-left', clearValueOnHidden: true, fieldName: field.name}, field.amis, {name: baseData.name});
|
|
61542
|
+
// 只读时file字段的外层control层若存在name,内部each组件存在问题
|
|
61543
|
+
if(readonly && field.type == "file") {
|
|
61544
|
+
convertDataResult.name = "";
|
|
61545
|
+
}
|
|
61540
61546
|
// console.log("convertDataResult:", convertDataResult);
|
|
61541
61547
|
return convertDataResult;
|
|
61542
61548
|
// }else{
|