diff --git a/components/slider/index.tsx b/components/slider/index.tsx index d4508233d..e1ad168ac 100644 --- a/components/slider/index.tsx +++ b/components/slider/index.tsx @@ -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 }) { diff --git a/components/tree-select/index.tsx b/components/tree-select/index.tsx index 9d79db951..3cd8f5999 100644 --- a/components/tree-select/index.tsx +++ b/components/tree-select/index.tsx @@ -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);