Skip to content

Conversation

horseson2018
Copy link
Contributor

解决了issue的问题

@vercel
Copy link

vercel bot commented Dec 27, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/cascader/7DYUiMzeCs7inHUh5SHxyHyGngrJ
✅ Preview: https://cascader-git-fork-horseson2018-master-react-component.vercel.app

@afc163
Copy link
Member

afc163 commented Dec 27, 2021

来个测试用例?

@codecov
Copy link

codecov bot commented Dec 27, 2021

Codecov Report

Merging #229 (f8f84a6) into master (7dd005b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #229   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files          15       15           
  Lines         450      451    +1     
  Branches      110      110           
=======================================
+ Hits          449      450    +1     
  Misses          1        1           
Impacted Files Coverage Δ
src/OptionList/Column.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7dd005b...f8f84a6. Read the comment docs.

@horseson2018
Copy link
Contributor Author

horseson2018 commented Dec 28, 2021

来个测试用例?

import React from 'react';
import Cascader from '../src';

const addressOptions = [
  {
    label: '浙江',
    value: 'zj',
    children: [
      {
        label: '杭州',
        value: 'hangzhou',
        children: [
          {
            label: '富阳',
            value: 'fuyang',
          },
          {
            label: '余杭',
            value: 'yuhang',
          },
        ],
      },
    ],
  },
];

const Demo = () => {
  return (
    <>
      <Cascader style={{ width: 200 }} options={addressOptions} checkable={true} allowClear />
    </>
  );
};

export default Demo;

只选余杭或者富阳

@afc163
Copy link
Member

afc163 commented Dec 28, 2021

@horseson2018
Copy link
Contributor Author

我指的是 test case:https://github.com/react-component/cascader/blob/master/tests/selector.spec.tsx

😅误会了,已补充

@afc163 afc163 merged commit 6db62a5 into react-component:master Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants