Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(comp:config): add seer config #1295

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

danranVm
Copy link
Member

@danranVm danranVm commented Nov 22, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added/updated or not needed
  • Docs and demo have been added/updated or not needed

What is the current behavior?

What is the new behavior?

  • 新增了 seer 的全局配置,便于用户直接使用。
export const seerConfig: DeepPartialGlobalConfig = {
  common: {
    theme: 'seer',
  },
  button: {
    size: 'sm',
  },
  form: {
    colonless: true,
    labelAlign: 'start',
  },
  menu: {
    indent: 16,
  },
  modal: {
    centered: true,
    maskClosable: false,
  },
  progress: {
    strokeLinecap: 'square',
  },
  table: {
    columnExpandable: {
      icon: ({ expanded }) => h(IxIcon, { name: expanded ? 'minus-square' : 'plus-square' }),
    },
  },
}
  • Space 组件的全局配置为 8, 之前文档中是 8, 但是全局配置是 16
  • 所有浮层组件的 offset 全部默认设置为 [0, 4]
  • Upload 组件的默认删除 icon 为 close
  • esbuild 的 target 设置为 ['ESNext', 'node16', 'chrome79', 'edge79', 'firefox72', 'safari13']

Other information

@idux-bot
Copy link

idux-bot bot commented Nov 22, 2022

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Nov 22, 2022

Codecov Report

Merging #1295 (07e7e41) into main (9cd8061) will decrease coverage by 0.00%.
The diff coverage is 93.33%.

❗ Current head 07e7e41 differs from pull request most recent head 3c67ca8. Consider uploading reports for the commit 3c67ca8 to get more accurate results

@@            Coverage Diff             @@
##             main    #1295      +/-   ##
==========================================
- Coverage   93.04%   93.03%   -0.01%     
==========================================
  Files         321      322       +1     
  Lines       29756    29800      +44     
  Branches     3360     3365       +5     
==========================================
+ Hits        27685    27725      +40     
- Misses       2071     2075       +4     
Impacted Files Coverage Δ
packages/components/table/src/Table.tsx 97.87% <66.66%> (-2.13%) ⬇️
packages/components/config/src/seerConfig.ts 96.00% <96.00%> (ø)
packages/components/config/src/defaultConfig.ts 100.00% <100.00%> (ø)
packages/components/config/src/globalConfig.ts 100.00% <100.00%> (ø)
packages/components/config/src/types.ts 100.00% <100.00%> (ø)
packages/components/modal/src/ModalWrapper.tsx 79.15% <100.00%> (+0.39%) ⬆️
packages/components/progress/src/Line.tsx 100.00% <100.00%> (ø)
packages/components/progress/src/util.ts 98.75% <100.00%> (ø)
packages/components/table/src/token.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@danranVm danranVm merged commit db38d14 into IDuxFE:main Nov 22, 2022
@danranVm danranVm deleted the feat-support-seer-config branch November 22, 2022 12:09
@danranVm danranVm mentioned this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant