Skip to content

Commit

Permalink
feat(design): TreeSelect add default placeholder and ConfigProvider s…
Browse files Browse the repository at this point in the history
…upport to config it global
  • Loading branch information
dengfuping committed Apr 7, 2024
1 parent c838d21 commit 623483e
Show file tree
Hide file tree
Showing 13 changed files with 974 additions and 15 deletions.
1 change: 1 addition & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export default defineConfig({
{ title: 'Input 输入框', link: '/components/input' },
{ title: 'InputNumber 数字输入框', link: '/components/input-number' },
{ title: 'Select 选择器', link: '/components/select' },
{ title: 'TreeSelect 树选择', link: '/components/tree-select' },
],
},
{
Expand Down
3 changes: 2 additions & 1 deletion packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"@babel/preset-env": "^7.24.3",
"antd-token-previewer": "^2.0.8",
"rc-select": "^14.13.0",
"rc-table": "^7.45.4"
"rc-table": "^7.45.4",
"rc-tree-select": "^5.19.0"
},
"peerDependencies": {
"react": ">=16.9.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/design/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ export type { InputProps } from './input';
export { default as Select } from './select';
export type { SelectProps } from './select';

export { default as TreeSelect } from './tree-select';
export type { TreeSelectProps } from './tree-select';

export { default as Tooltip } from './tooltip';
export type { TooltipProps } from './tooltip';

Expand Down
2 changes: 2 additions & 0 deletions packages/design/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Locale as AntLocale } from 'antd/es/locale';
import type { DrawerLocale } from '../drawer';
import type { InputLocale } from '../input';
import type { SelectLocale } from '../select';
import type { TreeSelectLocale } from '../tree-select';
import type { TableLocale } from '../table';

export * from 'antd/es/locale';
Expand All @@ -10,6 +11,7 @@ export interface Locale extends AntLocale {
Drawer?: DrawerLocale;
Input?: InputLocale;
Select?: SelectLocale;
TreeSelect?: TreeSelectLocale;
Table?: TableLocale;
}

Expand Down
Loading

0 comments on commit 623483e

Please sign in to comment.