fix: missing collections
This commit is contained in:
		
							parent
							
								
									f5c1a07f20
								
							
						
					
					
						commit
						cbfd057c6d
					
				@ -223,7 +223,7 @@ export const useFormItemInitializerFields = (options?: any) => {
 | 
				
			|||||||
      } as SchemaInitializerItemOptions;
 | 
					      } as SchemaInitializerItemOptions;
 | 
				
			||||||
      if (block == 'Kanban') {
 | 
					      if (block == 'Kanban') {
 | 
				
			||||||
        resultItem['find'] = (schema: Schema, key: string, action: string) => {
 | 
					        resultItem['find'] = (schema: Schema, key: string, action: string) => {
 | 
				
			||||||
          const s = findSchema(schema,'x-component',block)
 | 
					          const s = findSchema(schema, 'x-component', block);
 | 
				
			||||||
          return findSchema(s, key, action);
 | 
					          return findSchema(s, key, action);
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@ -532,7 +532,7 @@ export const useCollectionDataSourceItems = (componentName) => {
 | 
				
			|||||||
          const b = !value || selected.includes(item.name);
 | 
					          const b = !value || selected.includes(item.name);
 | 
				
			||||||
          if (item.inherit) {
 | 
					          if (item.inherit) {
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
          } else if (!item.fields.find((v) => v.primaryKey)) {
 | 
					          } else if (item.autoGenId === false && !item.fields.find((v) => v.primaryKey)) {
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
          } else {
 | 
					          } else {
 | 
				
			||||||
            return b && !(item?.isThrough && item?.autoCreate);
 | 
					            return b && !(item?.isThrough && item?.autoCreate);
 | 
				
			||||||
@ -995,7 +995,7 @@ export const createCalendarBlockSchema = (options) => {
 | 
				
			|||||||
                            type: 'void',
 | 
					                            type: 'void',
 | 
				
			||||||
                            'x-component': 'Grid',
 | 
					                            'x-component': 'Grid',
 | 
				
			||||||
                            'x-initializer-props': {
 | 
					                            'x-initializer-props': {
 | 
				
			||||||
                              actionInitializers: 'CalendarFormActionInitializers'
 | 
					                              actionInitializers: 'CalendarFormActionInitializers',
 | 
				
			||||||
                            },
 | 
					                            },
 | 
				
			||||||
                            'x-initializer': 'RecordBlockInitializers',
 | 
					                            'x-initializer': 'RecordBlockInitializers',
 | 
				
			||||||
                            properties: {},
 | 
					                            properties: {},
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user