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

统一的 deprecated 告警函数 #635

Open
1zumii opened this issue Feb 22, 2024 · 0 comments
Open

统一的 deprecated 告警函数 #635

1zumii opened this issue Feb 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request long-term tracking requires extended time for research or resolution

Comments

@1zumii
Copy link
Collaborator

1zumii commented Feb 22, 2024

Related problem

当前存在一部分 prop 和 slot 在组件逻辑中标为废弃,开发使用时会 log 相应告警

if (!isNil(width) || !isNil(height)) {
    console.warn(
        `[${COMPONENT_NAME}]: width 和 height 属性即将废弃,请使用 dimension 代替`,
    );
... ...

Solutions

参考 vue 构建,支持环境变量

@1zumii 1zumii added the enhancement New feature or request label Feb 22, 2024
@1zumii 1zumii self-assigned this Feb 22, 2024
@1zumii 1zumii added the long-term tracking requires extended time for research or resolution label Feb 27, 2024
@1zumii 1zumii changed the title 统一的 deprecated 告警函数,并在生产打包过程中移除 统一的 deprecated 告警函数 Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request long-term tracking requires extended time for research or resolution
Projects
None yet
Development

No branches or pull requests

1 participant