Skip to content

Commit 5b20498

Browse files
committed
fix: component ts type
1 parent d71df4b commit 5b20498

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

components/slider/index.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ export type Visibles = { [index: number]: boolean };
7575
const Slider = defineComponent({
7676
name: 'ASlider',
7777
inheritAttrs: false,
78-
props: {
79-
...sliderProps(),
80-
},
78+
props: sliderProps(),
8179
emits: ['update:value', 'change', 'afterChange', 'blur'],
8280
slots: ['mark'],
8381
setup(props, { attrs, slots, emit, expose }) {

components/tree-select/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ const TreeSelect = defineComponent({
252252
export const TreeSelectNode = TreeNode;
253253
export default Object.assign(TreeSelect, {
254254
TreeNode,
255-
SHOW_ALL,
256-
SHOW_PARENT,
257-
SHOW_CHILD,
255+
SHOW_ALL: SHOW_ALL as typeof SHOW_ALL,
256+
SHOW_PARENT: SHOW_PARENT as typeof SHOW_PARENT,
257+
SHOW_CHILD: SHOW_CHILD as typeof SHOW_CHILD,
258258
install: (app: App) => {
259259
app.component(TreeSelect.name, TreeSelect);
260260
app.component(TreeSelectNode.displayName, TreeSelectNode);

0 commit comments

Comments
 (0)