Skip to content

Commit

Permalink
Merge pull request #213 from suyuan32/dev
Browse files Browse the repository at this point in the history
feat(Form): add basic tree to form comp
  • Loading branch information
suyuan32 committed May 30, 2024
2 parents 6671c1f + 0867477 commit 75d6b79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Form/src/componentMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { BasicTitle } from '@/components/Basic';
import { CropperAvatar } from '@/components/Cropper';
import { CodeEditor } from '../../CodeEditor';
import { Tinymce } from '../../Tinymce';
import { BasicTree } from '../../Tree';

const componentMap = new Map<ComponentType | string, Component>();

Expand Down Expand Up @@ -84,6 +85,7 @@ componentMap.set('Divider', Divider);
componentMap.set('CropperAvatar', CropperAvatar);

componentMap.set('BasicTitle', BasicTitle);
componentMap.set('BasicTree', BasicTree);

// simple components
componentMap.set('ApiMultipleSelect', ApiMultipleSelect);
Expand Down
4 changes: 4 additions & 0 deletions src/components/Form/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ interface _CustomComponents {
(typeof import('@/components/Cropper/src/CropperAvatar.vue'))['default']
>;
BasicTitle: ExtractPropTypes<(typeof import('@/components/Basic/src/BasicTitle.vue'))['default']>;
BasicTree: ExtractPropTypes<
(typeof import('@/src/components/Tree/src/BasicTree.vue'))['default']
>;
InputCountDown: ExtractPropTypes<
(typeof import('@/components/CountDown/src/CountdownInput.vue'))['default']
>;
Expand Down Expand Up @@ -187,6 +190,7 @@ export interface ComponentProps {
Transfer: ExtractPropTypes<(typeof import('ant-design-vue/es/transfer'))['default']>;
CropperAvatar: CustomComponents['CropperAvatar'];
BasicTitle: CustomComponents['BasicTitle'];
BasicTree: CustomComponents['BasicTree'];
ApiMultipleSelect: CustomComponents['ApiMultipleSelect'];
DictionarySelect: CustomComponents['DictionarySelect'];
CodeEditor: CustomComponents['CodeEditor'];
Expand Down

0 comments on commit 75d6b79

Please sign in to comment.