ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open sunnytheme opened this issue 10 months ago • 2 comments

  • [ ] 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.

sunnytheme avatar Apr 25 '24 10:04 sunnytheme

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

agoni1212 avatar Apr 26 '24 03:04 agoni1212

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

github-actions[bot] avatar Jun 26 '24 02:06 github-actions[bot]