You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ant Design is about to release. Compared with v3, the documentation may have breaking change. Extension should support both v3 and v4. It means extension should contains both v3 and v4 built-in documentation.
Updated at 2020/04/23:
For a while, v3 and v4 will live together. So vscode-antd-rush provide the ability to choose the major version of antd to use. See README for how to oprate.
Add parameter types of handler in TS/TSX (hard)
Auto generated handler should have parameters type. But it meets following problems. For now, handler parameters in TS/TSX is not typed.
Deep import types from "antd/lib/{com}/{path}"
Generic (may can auto detected from component generic parameter)
Type can not be derivation(antd limited)
Type ~ again to specify handler insert location (medium)
Now, handler is auto inserted just before the cursor method. Maybe we can type ~ to inserted after move to the ideal location.
Hint user if version is not compatible (medium)
Some props are not introduced at the very first version. So maybe we can hint user the used antd version is not compatible. But it need to find antd's version in nearest node_modules.
Antd component playground (medium)
Try Antd props in split panel without change your code. Maybe can be implemented with CodeSandbox.
<Icon /> Preview (medium)
For now, Icon has no preview. Maybe we can provide.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Support Antd v4 (✅ supported in 2.0.0)
Ant Design is about to release. Compared with v3, the documentation may have breaking change. Extension should support both v3 and v4. It means extension should contains both v3 and v4 built-in documentation.
Updated at 2020/04/23:
For a while, v3 and v4 will live together. So vscode-antd-rush provide the ability to choose the major version of antd to use. See README for how to oprate.
Add parameter types of handler in TS/TSX (hard)
Auto generated handler should have parameters type. But it meets following problems. For now, handler parameters in TS/TSX is not typed.
"antd/lib/{com}/{path}"
Type
~
again to specify handler insert location (medium)Now, handler is auto inserted just before the cursor method. Maybe we can type
~
to inserted after move to the ideal location.Hint user if version is not compatible (medium)
Some props are not introduced at the very first version. So maybe we can hint user the used antd version is not compatible. But it need to find antd's version in nearest node_modules.
Antd component playground (medium)
Try Antd props in split panel without change your code. Maybe can be implemented with CodeSandbox.
<Icon />
Preview (medium)For now,
Icon
has no preview. Maybe we can provide.The text was updated successfully, but these errors were encountered: