1. 06 4月, 2023 1 次提交
  2. 04 4月, 2023 1 次提交
  3. 10 3月, 2023 1 次提交
  4. 29 9月, 2022 1 次提交
  5. 10 7月, 2022 1 次提交
    • C
      添加 Form ApiTransfer , 修复标签页切换灰屏不显示内容问题 (#2052) · 40071529
      Cyrus Zhou 提交于
      * Table BasicColumn 添加 editDynamicDisabled
      Co-authored-by: NCyrus Zhou <6802207@qq.com>
      使用方式同 Form FormSchema dynamicDisabled
      ```
      export const Columns: BasicColumn[] = [
        {
          title: 'Title',
          dataIndex: 'Title',
          editRow: true,
          editComponent: 'Select',
          editDynamicDisabled: ({ record }) => record.isDisabled,
        },
      
      * editComponentProps onChange 功能恢复
      Co-authored-by: NCyrus Zhou <6802207@qq.com>
      说明:
      ...omit(compProps, 'onChange')
      这会忽略 onChange ,导致 editComponentProps onChange 被取消
      
      如下功能将不支持:
      ```
      editComponentProps: ({ record }) => {
        return {
          options: effectTypeData,
          onChange: () => {
          },
        };
      },
      ```
      
      * tableData == null 报错
      
      * ApiSelect 第一次选择触发required错误提示问题
      
      * 恢复 虽然可以解决第一次选择提示报错问题,但是会导致 onChange: (e: any, options: any) => 无法获得 options 的值
      
      * 修复标签页切换灰屏不显示内容问题
      Co-authored-by: NCyrus Zhou <6802207@qq.com>
      问题描述页面没有用 div 包括 会提示 Component inside <Transition> renders non-element root node that cannot be animated ,
      导致页灰屏必须刷新页面才可以显示内容
      
      * 添加 Form ApiTransfer
      ## 使用方式
      api 方式:
      ```
          ......
          component: 'ApiTransfer',
          componentProps: {
             api: sysUserSelector,
             labelField: 'name',
             valueField: 'id',
          },
          .....
      ```
      数据方式:
      ```
           ....
           componentProps: {
            dataSource: [
              { title: 'Test01', key: '0', disabled: false, description: 'description 01' },
              { title: 'Test02', key: '1', disabled: false, description: 'description 02' },
              { title: 'Test03', key: '2', disabled: false, description: 'description 03' },
              { title: 'Test04', key: '3', disabled: false, description: 'description 04' },
              { title: 'Test05', key: '4', disabled: false, description: 'description 05' },
            ],
          },
          ....
      ```
      40071529