@steedos-widgets/sortable 3.6.0-beta.3 → 3.6.0-beta.4
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 +29 -7
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +29 -7
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +29 -7
- 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@3.6.0-beta.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.4/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.4/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@3.6.0-beta.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.4/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.4/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.4/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -53979,8 +53979,8 @@ const Router = {
|
|
|
53979
53979
|
/*
|
|
53980
53980
|
* @Author: baozhoutao@steedos.com
|
|
53981
53981
|
* @Date: 2022-07-20 16:29:22
|
|
53982
|
-
* @LastEditors:
|
|
53983
|
-
* @LastEditTime: 2023-
|
|
53982
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
53983
|
+
* @LastEditTime: 2023-12-28 14:59:08
|
|
53984
53984
|
* @Description:
|
|
53985
53985
|
*/
|
|
53986
53986
|
|
|
@@ -54037,6 +54037,21 @@ function getLookupListView(refObjectConfig) {
|
|
|
54037
54037
|
return listView;
|
|
54038
54038
|
}
|
|
54039
54039
|
|
|
54040
|
+
|
|
54041
|
+
/**
|
|
54042
|
+
* 获取可比较的amis版本号
|
|
54043
|
+
* @returns 只返回前两位版本,第三位忽略,比如3.6.3返回3.6
|
|
54044
|
+
*/
|
|
54045
|
+
function getComparableAmisVersion() {
|
|
54046
|
+
let amis = (window.amisRequire && window.amisRequire('amis')) || window.Amis;
|
|
54047
|
+
let amisVersion = amis && amis.version;
|
|
54048
|
+
if(amisVersion){
|
|
54049
|
+
let comparableVersions = amisVersion.split(".");
|
|
54050
|
+
let comparableVersion = parseFloat(comparableVersions[0].toString() + "." + comparableVersions[1].toString());
|
|
54051
|
+
return comparableVersion;
|
|
54052
|
+
}
|
|
54053
|
+
}
|
|
54054
|
+
|
|
54040
54055
|
function getNumberTpl(field){
|
|
54041
54056
|
return `<span>\${_display.${field.name}}</span>`
|
|
54042
54057
|
}
|
|
@@ -55511,8 +55526,8 @@ async function getTableColumns(fields, options){
|
|
|
55511
55526
|
const href = Router.getObjectDetailPath({
|
|
55512
55527
|
...options, formFactor: options.formFactor, appId: "${appId}", objectName: options.objectName || "${objectName}", recordId: `\${${options.idFieldName}}`
|
|
55513
55528
|
});
|
|
55514
|
-
columns[
|
|
55515
|
-
columns[
|
|
55529
|
+
columns[0].type = "tpl";
|
|
55530
|
+
columns[0].tpl = `<a href="${href}">\${${columns[0].name}}</a>`;
|
|
55516
55531
|
}
|
|
55517
55532
|
return columns;
|
|
55518
55533
|
}
|
|
@@ -59461,7 +59476,7 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
59461
59476
|
sendOn.push(`this.${fName}`);
|
|
59462
59477
|
});
|
|
59463
59478
|
if(depend_on.length > 0){
|
|
59464
|
-
apiInfo.url = `${apiInfo.url}
|
|
59479
|
+
apiInfo.url = `${apiInfo.url}&${depend_on.join('&')}`;
|
|
59465
59480
|
apiInfo.sendOn = `${sendOn.join(' && ')}`;
|
|
59466
59481
|
}
|
|
59467
59482
|
}
|
|
@@ -59569,6 +59584,13 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
59569
59584
|
autoComplete: apiInfo,
|
|
59570
59585
|
searchable: true,
|
|
59571
59586
|
};
|
|
59587
|
+
let amisVersion = getComparableAmisVersion();
|
|
59588
|
+
if(amisVersion >= 3.6){
|
|
59589
|
+
// amis 3.6中不加source会造成子表组件中弹出行编辑窗口的lookup字段有时不请求接口(概率现象,同一个地方反复操作有时请求有时不请求)
|
|
59590
|
+
// 但是同时配置autoComplete和source会多请求一次接口
|
|
59591
|
+
// TODO:应该想办法把是否字段在子表组件内,即ctx.isInputTable,如果不在子表组件内不需要加source
|
|
59592
|
+
data.source = apiInfo;
|
|
59593
|
+
}
|
|
59572
59594
|
//删除xlink:href中的rootUrl前缀,解决客户端svg为空的问题
|
|
59573
59595
|
const select_menuTpl = `<span class='flex items-center mt-0.5'>
|
|
59574
59596
|
<span role='img' aria-label='smile' class='anticon anticon-smile'>
|
|
@@ -60531,9 +60553,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60531
60553
|
}
|
|
60532
60554
|
if(!lodash.exports.isEmpty(convertData)){
|
|
60533
60555
|
if(field.is_wide || convertData.type === 'group'){
|
|
60534
|
-
convertData.className = 'col-span-2 m-
|
|
60556
|
+
convertData.className = 'col-span-2 m-0';
|
|
60535
60557
|
}else {
|
|
60536
|
-
convertData.className = 'm-
|
|
60558
|
+
convertData.className = 'm-0';
|
|
60537
60559
|
}
|
|
60538
60560
|
if(readonly){
|
|
60539
60561
|
convertData.className = `${convertData.className} border-b`;
|