fix: component ts type

refactor-modal
tangjinzhou 2022-01-03 22:45:16 +08:00
parent d71df4b3ba
commit 5b20498792
2 changed files with 4 additions and 6 deletions

View File

@ -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 }) {

View File

@ -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);