@steedos-widgets/amis-object 3.6.12 → 3.6.13
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/amis-object.cjs.js
CHANGED
|
@@ -5352,7 +5352,7 @@ async function getTableColumns$1(object, fields, options){
|
|
|
5352
5352
|
var file_id = data.versions && data.versions[0] && data.versions[0]._id;
|
|
5353
5353
|
window.previewFile && window.previewFile({file_name, file_id});
|
|
5354
5354
|
`;
|
|
5355
|
-
columnItem = {
|
|
5355
|
+
columnItem = Object.assign({}, {
|
|
5356
5356
|
"type": "button",
|
|
5357
5357
|
"label": `<%=data.versions ? data.name : "${field.label}"%>`,
|
|
5358
5358
|
className,
|
|
@@ -5384,7 +5384,7 @@ async function getTableColumns$1(object, fields, options){
|
|
|
5384
5384
|
]
|
|
5385
5385
|
}
|
|
5386
5386
|
}
|
|
5387
|
-
};
|
|
5387
|
+
}, fieldAmis);
|
|
5388
5388
|
}else if(field.type === 'toggle'){
|
|
5389
5389
|
columnItem = Object.assign({}, {
|
|
5390
5390
|
type: "switch",
|
|
@@ -15017,7 +15017,7 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
15017
15017
|
var optionsFilters = [["${valueFieldKey}", optionsFiltersOp, []]];
|
|
15018
15018
|
if (defaultValue && !api.data.$term) {
|
|
15019
15019
|
const defaultValueOptionsQueryData = ${JSON.stringify(defaultValueOptionsQueryData)};
|
|
15020
|
-
const defaultValueOptionsQuery = defaultValueOptionsQueryData
|
|
15020
|
+
const defaultValueOptionsQuery = defaultValueOptionsQueryData && defaultValueOptionsQueryData.query && defaultValueOptionsQueryData.query.replace(/^{/,"").replace(/}$/,"");
|
|
15021
15021
|
// 字段值单独请求,没值的时候在请求中返回空
|
|
15022
15022
|
optionsFilters = [["${valueFieldKey}", optionsFiltersOp, defaultValue]];
|
|
15023
15023
|
if(filters.length > 0){
|