Closed helloqian12138 closed 6 months ago
支持表格外部传入属性或者函数,然后组件可以调用 比如: <DripTable extraProps={{checkPermission: () => { ...执行外部逻辑; return true | false } }} ...otherProps />
然后在链接组件中的disabled的配置可以这么写:disabled: 'return checkPermission()', 这样就可以实现链接组件根据外部逻辑来判断是否可以禁用
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
支持表格外部传入属性或者函数,然后组件可以调用 比如: <DripTable extraProps={{checkPermission: () => { ...执行外部逻辑; return true | false } }} ...otherProps />
然后在链接组件中的disabled的配置可以这么写:disabled: 'return checkPermission()', 这样就可以实现链接组件根据外部逻辑来判断是否可以禁用
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.