From 1016aee47a721cc454e635beb474a02c7ac98287 Mon Sep 17 00:00:00 2001 From: PeachScript Date: Tue, 12 May 2020 15:05:52 +0800 Subject: [PATCH 1/2] build: migrate to dumi & father-build & @umijs/test --- .gitignore | 1 + .umirc.ts | 7 +++++++ README.md | 6 +++--- package.json | 15 +++++++++------ 4 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 .umirc.ts 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