@steedos-widgets/sortable 1.3.4-beta.6 → 1.3.4-beta.8

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.
@@ -54812,7 +54812,7 @@ async function getListSchema$1(fields, options){
54812
54812
  * @Author: baozhoutao@steedos.com
54813
54813
  * @Date: 2022-11-01 15:51:00
54814
54814
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
54815
- * @LastEditTime: 2023-09-23 11:25:18
54815
+ * @LastEditTime: 2023-09-25 14:53:05
54816
54816
  * @Description:
54817
54817
  */
54818
54818
 
@@ -54891,10 +54891,15 @@ const getSchema$5 = async (uiSchema, ctx) => {
54891
54891
  }, 200);
54892
54892
  `;
54893
54893
  const getSelectedRowsScript = `
54894
+ const isLookup = event.data.isLookup;
54895
+ if(isLookup){
54896
+ // lookup弹出窗口的新建功能不需要支持复制新建
54897
+ return;
54898
+ }
54894
54899
  const uiSchema = event.data.uiSchema;
54895
54900
  const objectName = event.data.objectName;
54896
54901
  const listViewRef = event.context.scoped.getComponentById("listview_" + objectName);
54897
- const selectedItems = listViewRef.props.store.toJSON().selectedItems || [];
54902
+ const selectedItems = listViewRef && listViewRef.props.store.toJSON().selectedItems || [];
54898
54903
  event.data.selectedIds = _.map(selectedItems, uiSchema.idFieldName || '_id');
54899
54904
  `;
54900
54905
  return {
@@ -56781,10 +56786,11 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
56781
56786
  // "filter-toggler",
56782
56787
  ...(headerToolbarItems || []),
56783
56788
  "bulkActions",
56784
- {
56785
- "type": "columns-toggler",
56786
- "className": "hidden"
56787
- },
56789
+ // 不能放开crud columns-toggler否则crud card模式会报错
56790
+ // {
56791
+ // "type": "columns-toggler",
56792
+ // "className": "hidden"
56793
+ // },
56788
56794
  ...toolbars,
56789
56795
  // {
56790
56796
  // "type": "columns-toggler",