helkyle / antd-multi-cascader Goto Github PK
View Code? Open in Web Editor NEWA multiple cascader component for antd
Home Page: https://codesandbox.io/s/dreamy-jennings-2y1ff?file=/src/App.tsx
License: MIT License
A multiple cascader component for antd
Home Page: https://codesandbox.io/s/dreamy-jennings-2y1ff?file=/src/App.tsx
License: MIT License
antd的树选择器有三种选中策略:
TreeSelect.SHOW_ALL: 显示所有选中节点(包括父节点)。
TreeSelect.SHOW_PARENT: 只显示父节点(当父节点下所有子节点都选中时)。
TreeSelect.SHOW_CHILD: 默认只显示子节点
期望支持SHOW_CHILD,选中父节点时只展示所有叶子节点,并且组件的值也是所有叶子节点value
虽然现在可以通过ref拿到matchAllLeafValue方法,但是每次都得调用比较麻烦.
antd 4.13.4 以上版本
出现确认取消按钮失效问题
我是使用的15.3的antd,无法点击,在您的codesandbox里面更换antd的一些较高版本后也是无法点击,无法关闭,好像是rc-trigger 有点问题
Last time forgot to restart the server
TypeError: Cannot read property '_context' of undefined
getting this error on the latest version the older version is still working
在root下功能是没问题的~! 发现嵌套后就失效了不能替换原有的选择器
rt
如题
我们需要在 item 内容中展示 antd icon,所以需要让 title 支持传入 ReactNode 类型
Dear,
请问搜索功能有计划实现吗?
It will fix one of the CSS issues of the dropdown
and if you can also add dropdownClassName later it will be great
but the dropdownMatchSelectWidth is the most important one
rc-trigger in ./node_modules/antd-multi-cascader/dist/components/MultiCascader.js
请问使用这个插件,需要额外安装rc-trigger这个依赖吗
引入项目后 点击不生效
The whole dropdown moves when the main scrollbar of the page is used.
No prop called getPopupContainer can be passed like in Antd components to fix this issue.
index.js:1406 Warning: React does not recognize the getPopupContainer
prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase getpopupcontainer
instead. If you accidentally passed it from a parent component, remove it from the DOM element.
in div (created by Selector)
in Selector (created by ForwardRef)
in Trigger (created by ForwardRef)
in ForwardRef
in ForwardRef (created by ForwardRef)
in Provider (created by ForwardRef)
There's an attribute called maxTagCount in antd Select which lets you select the number of tags that can be displayed it would be helpful if that was present here because as of right now if there are multiple tags selected and the component has a fixed width and height then the tags will either overflow or there will be a scrollbar inside the component.
And the other would be a quality of life change, to select a checkbox currently the user has to click on the checkbox it won't work if someone clicked on the text, it would be better if the user could click on the text as well to check the checkbox.
如题,请问怎么配置呢
报错问题:Cannot read property '_currentValue' of undefined,请问在antd版本不用升级到4.6的情况下,怎么解决这个问题啊
例如默认是空数组,请求回来的数据传给data还是空数组,导致点击展开菜单报错
在antd4.13.0及以上的环境下,下拉菜单会不可点击,并且无法收起
我用rc-trigger时 popupVisible 已经为false了 但是弹窗还是展开态 是怎么回事呢
Cannot read properties of undefined (reading '_context')
我是使用的15.3的antd,无法点击,在您的codesandbox里面更换antd的一些较高版本后也是无法点击,无法关闭,好像是rc-trigger 有点问题
export default function App() {
const [options, setOptions] = React.useState<any[]>([]);
React.useEffect(()=>{
setTimeout(()=>{
setOptions([{
value: 'Node1',
title: 'Node1'
},
{
value: 'Node2-1',
title: 'Node2',
children: [ ]
}])
},500);
},[]);
return (
<div className="App">
<section>
<header>Form Control</header>
<MultiCascader
data={options}
placeholder="Select Nodes"
/>
</section>
</div>
);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.