diff --git a/.gitignore b/.gitignore index 6e8f606b5..c366d442a 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ tsconfig.test.json .prettierignore .storybook storybook/index.js +.umi diff --git a/.umirc.ts b/.umirc.ts new file mode 100644 index 000000000..620257031 --- /dev/null +++ b/.umirc.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'dumi'; + +export default defineConfig({ + logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', + outputPath: '.doc', + exportStatic: {}, +}); diff --git a/README.md b/README.md index 52a3b0626..942379816 100644 --- a/README.md +++ b/README.md @@ -101,11 +101,11 @@ export default () => ( | filterOption | whether filter options by input value. default filter by option's optionFilterProp prop's value | bool | true/Function(inputValue:string, option:Option) | | optionFilterProp | which prop value of option will be used for filter if filterOption is true | String | 'value' | | optionLabelProp | render option value or option children as content of select | String: 'value'/'children' | 'value' | -| defaultValue | initial selected option(s) | String/Array | - | -| value | current selected option(s) | String/Array/{key:String, label:React.Node}/Array<{key, label}> | - | +| defaultValue | initial selected option(s) | String/Array<String> | - | +| value | current selected option(s) | String/Array<String>/{key:String, label:React.Node}/Array<{key, label}> | - | | labelInValue | whether to embed label in value, see above value type. Not support `combobox` mode | Bool | false | | backfill | whether backfill select option to search input (Only works in single and combobox mode) | Bool | false | -| onChange | called when select an option or input value change(combobox) | function(value, option:Option/Array