-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
refactor: migrate to standard decorators #8739
base: master
Are you sure you want to change the base?
refactor: migrate to standard decorators #8739
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8739 +/- ##
==========================================
+ Coverage 91.67% 93.21% +1.54%
==========================================
Files 538 538
Lines 18457 18966 +509
Branches 2816 2811 -5
==========================================
+ Hits 16920 17680 +760
- Misses 1225 1248 +23
+ Partials 312 38 -274 ☔ View full report in Codecov by Sentry. |
}; | ||
}, | ||
set: (newValue: Value) => { | ||
assignedByUser = isDefined(newValue); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果用户主动将值设置为 undefined
,则该属性也应视为未被用户分配的,用户可以使用 null
来明确表示将该值设置为 空。
b882c1d
to
199bdb9
Compare
BREAK CHANGE 我觉得是需要加的,不排除用户基于此 API 二开了一些组件 |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
@WithConfig()
装饰器现在是标准装饰器,关闭experimentalDecorators
选项。该 API 从未在文档中公开,应该属于 ZORRO 私有 API,因此不会对用户造成 "breaking change",
但如果用户也使用了该 API,则需要关闭
experimentalDecorators
选项。不太确定是否需要添加 "breaking change" label。
Does this PR introduce a breaking change?
Other information