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

Warning: [ant-design-vue: Cascader] popupClassName is deprecated. Please use dropdownClassName instead. #7532

Closed
1 task
sunnytheme opened this issue Apr 25, 2024 · 2 comments
Labels

Comments

@sunnytheme
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.1.2~4.2.1

Environment

vue3.2 ts ant-design-vue4.2.1

示例代码

<a-cascader
  :popup-class-name="'custom-cascader-popup'"
  v-model:value="value"
  :options="options"
  :show-search="showSearch ? { filter } : false"
  :fieldNames="{ label: 'label', value: 'value', children: 'children' }"
  :change-on-select="changeOnSelect"
  :placeholder="placeholder"
  @change="change"
/>

控制台提示错误

当设置了popup-class-name后,会提示

Warning: [ant-design-vue: Cascader] `popupClassName` is deprecated. Please use `dropdownClassName` instead.

按照提示修改后又提示的错误

当改成提示的dropdownClassName后,又反向提示

Warning: [ant-design-vue: Cascader] `dropdownClassName` is deprecated. Please use `popupClassName` instead.
@agoni1212
Copy link
Contributor

agoni1212 commented Apr 26, 2024

Warning: [ant-design-vue: Modal] visiblewill be removed in next major version, please useopen instead.

I got the same warning, then I check the code, open is used and it is correct

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants