Skip to content

Commit

Permalink
fix: component ts type
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jan 3, 2022
1 parent d71df4b commit 5b20498
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions components/slider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ export type Visibles = { [index: number]: boolean };
const Slider = defineComponent({
name: 'ASlider',
inheritAttrs: false,
props: {
...sliderProps(),
},
props: sliderProps(),
emits: ['update:value', 'change', 'afterChange', 'blur'],
slots: ['mark'],
setup(props, { attrs, slots, emit, expose }) {
Expand Down
6 changes: 3 additions & 3 deletions components/tree-select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ const TreeSelect = defineComponent({
export const TreeSelectNode = TreeNode;
export default Object.assign(TreeSelect, {
TreeNode,
SHOW_ALL,
SHOW_PARENT,
SHOW_CHILD,
SHOW_ALL: SHOW_ALL as typeof SHOW_ALL,
SHOW_PARENT: SHOW_PARENT as typeof SHOW_PARENT,
SHOW_CHILD: SHOW_CHILD as typeof SHOW_CHILD,
install: (app: App) => {
app.component(TreeSelect.name, TreeSelect);
app.component(TreeSelectNode.displayName, TreeSelectNode);
Expand Down

1 comment on commit 5b20498

@tangjinzhou
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ref #5109

Please sign in to comment.