antvis / S2

⚡️ A practical visualization library for tabular analysis.
https://s2.antv.antgroup.com
MIT License
1.46k stars 194 forks source link

feat: meta 支持配置数值和正则, 便于批量配置 close #2647 #2799

Closed lijinke666 closed 2 months ago

lijinke666 commented 2 months ago

👀 PR includes

✨ Feature

📝 Description

const pivotSheetDataCfg = {
  meta: [
    {
      field: ['province', 'city'],
      name: '测试-1',
    },
    {
      field: 'type',
      name: '测试-2',
    },
    {
      field: /^sub/,
      name: '测试3',
    },
  ]
}

image

🖼️ Screenshot

Before After

🔗 Related issue link

close #2647

🔍 Self-Check before the merge

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
antvis-s2 ❌ Failed (Inspect) Jul 1, 2024 7:35am
github-actions[bot] commented 2 months ago

你好, @lijinke666 CI 执行失败, 请点击 [Details] 按钮查看, 并根据日志修复。

Hello, @lijinke666 CI run failed, please click the [Details] button for detailed log information and fix it.

github-actions[bot] commented 2 months ago

Size Change: +26 B (+0.01%)

Total Size: 326 kB

Filename Size Change
./packages/s2-core/dist/index.min.js 228 kB +26 B (+0.01%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `./packages/s2-core/dist/style.min.css` | 388 B | | `./packages/s2-react/dist/index.min.js` | 69.8 kB | | `./packages/s2-react/dist/style.min.css` | 3.88 kB | | `./packages/s2-vue/dist/index.min.js` | 22 kB | | `./packages/s2-vue/dist/style.min.css` | 1.97 kB |

compressed-size-action

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.15%. Comparing base (ecdc9c8) to head (0515a0a). Report is 398 commits behind head on next.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #2799 +/- ## ========================================== + Coverage 75.77% 80.15% +4.38% ========================================== Files 257 180 -77 Lines 11994 10336 -1658 Branches 2464 2333 -131 ========================================== - Hits 9088 8285 -803 + Misses 1398 606 -792 + Partials 1508 1445 -63 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

lijinke666 commented 2 months ago

:tada: This PR is included in version @antv/s2-v2.0.0-next.25 :tada:

The release is available on:

Your semantic-release bot :package::rocket: