@steedos-widgets/amis-lib 1.2.6-beta.18 → 1.2.6-beta.19
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +62 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +62 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +62 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -5002,11 +5002,12 @@ setTimeout(()=>{
|
|
|
5002
5002
|
autoComplete: apiInfo,
|
|
5003
5003
|
searchable: true,
|
|
5004
5004
|
};
|
|
5005
|
+
//删除xlink:href中的rootUrl前缀,解决客户端svg为空的问题
|
|
5005
5006
|
const select_menuTpl = `<span class='flex items-center mt-0.5'>
|
|
5006
5007
|
<span role='img' aria-label='smile' class='anticon anticon-smile'>
|
|
5007
5008
|
<span class='slds-icon_container slds-icon-standard-\${REPLACE(icon,'_','-')}'>
|
|
5008
5009
|
<svg class='slds-icon slds-icon_x-small' aria-hidden='true'>
|
|
5009
|
-
<use xlink:href='
|
|
5010
|
+
<use xlink:href='/assets/icons/standard-sprite/svg/symbols.svg#\${icon}'></use>
|
|
5010
5011
|
</svg>
|
|
5011
5012
|
</span>
|
|
5012
5013
|
</span>
|
|
@@ -7051,8 +7052,9 @@ setTimeout(()=>{
|
|
|
7051
7052
|
const url = getNameTplUrl(nameField, options);
|
|
7052
7053
|
|
|
7053
7054
|
const columnLines = getMobileLines(tpls);
|
|
7054
|
-
|
|
7055
|
-
|
|
7055
|
+
|
|
7056
|
+
|
|
7057
|
+
let column = {
|
|
7056
7058
|
name: nameField.name,
|
|
7057
7059
|
label: nameField.label,
|
|
7058
7060
|
sortable: nameField.sortable,
|
|
@@ -7061,13 +7063,66 @@ setTimeout(()=>{
|
|
|
7061
7063
|
actionType: "link",
|
|
7062
7064
|
link: url,
|
|
7063
7065
|
innerClassName: "steedos-listview-item block text-gray-500",
|
|
7064
|
-
body:{
|
|
7066
|
+
body: {
|
|
7065
7067
|
"type": "wrapper",
|
|
7066
7068
|
"body": columnLines,
|
|
7067
7069
|
"size": "none",
|
|
7068
7070
|
"className": "p-1"
|
|
7069
7071
|
}
|
|
7070
|
-
}
|
|
7072
|
+
};
|
|
7073
|
+
|
|
7074
|
+
if(options.objectName === 'cms_files'){
|
|
7075
|
+
if(window.Meteor?.isCordova){
|
|
7076
|
+
column = {
|
|
7077
|
+
...column,
|
|
7078
|
+
actionType: "",
|
|
7079
|
+
link: "",
|
|
7080
|
+
onEvent: {
|
|
7081
|
+
"click": {
|
|
7082
|
+
"actions": [
|
|
7083
|
+
{
|
|
7084
|
+
"script": `
|
|
7085
|
+
let cms_url = "/api/files/files/"+event.data.versions[0]+"?download=true"
|
|
7086
|
+
Steedos.cordovaDownload(encodeURI(Steedos.absoluteUrl(cms_url)), event.data.name);
|
|
7087
|
+
`,
|
|
7088
|
+
"actionType": "custom"
|
|
7089
|
+
}
|
|
7090
|
+
],
|
|
7091
|
+
"weight": 0
|
|
7092
|
+
}
|
|
7093
|
+
}
|
|
7094
|
+
};
|
|
7095
|
+
}else {
|
|
7096
|
+
column = {
|
|
7097
|
+
...column,
|
|
7098
|
+
actionType: "",
|
|
7099
|
+
link: "",
|
|
7100
|
+
onEvent: {
|
|
7101
|
+
"click": {
|
|
7102
|
+
"actions": [
|
|
7103
|
+
{
|
|
7104
|
+
"args": {
|
|
7105
|
+
"api": {
|
|
7106
|
+
"url": url,
|
|
7107
|
+
"method": "get",
|
|
7108
|
+
"headers": {
|
|
7109
|
+
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
7110
|
+
}
|
|
7111
|
+
}
|
|
7112
|
+
},
|
|
7113
|
+
"actionType": "download"
|
|
7114
|
+
}
|
|
7115
|
+
],
|
|
7116
|
+
"weight": 0
|
|
7117
|
+
}
|
|
7118
|
+
}
|
|
7119
|
+
};
|
|
7120
|
+
}
|
|
7121
|
+
|
|
7122
|
+
}
|
|
7123
|
+
|
|
7124
|
+
columns.push(column);
|
|
7125
|
+
|
|
7071
7126
|
|
|
7072
7127
|
return columns;
|
|
7073
7128
|
}
|
|
@@ -8158,7 +8213,7 @@ setTimeout(()=>{
|
|
|
8158
8213
|
* @Author: baozhoutao@steedos.com
|
|
8159
8214
|
* @Date: 2022-07-05 15:55:39
|
|
8160
8215
|
* @LastEditors: Please set LastEditors
|
|
8161
|
-
* @LastEditTime: 2023-
|
|
8216
|
+
* @LastEditTime: 2023-05-08 16:34:25
|
|
8162
8217
|
* @Description:
|
|
8163
8218
|
*/
|
|
8164
8219
|
|
|
@@ -8412,7 +8467,7 @@ setTimeout(()=>{
|
|
|
8412
8467
|
}
|
|
8413
8468
|
function getRelatedListProps(uiSchema, listViewName, ctx) {
|
|
8414
8469
|
if (ctx.columns) {
|
|
8415
|
-
const sort = getListViewSort(ctx.sort);
|
|
8470
|
+
const sort = getListViewSort({sort: ctx.sort});
|
|
8416
8471
|
let { filters , filtersFunction} = ctx;
|
|
8417
8472
|
if(!filtersFunction && filters){
|
|
8418
8473
|
filtersFunction = str2function(
|