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({ const Slider = defineComponent({
name: 'ASlider', name: 'ASlider',
inheritAttrs: false, inheritAttrs: false,
props: { props: sliderProps(),
...sliderProps(),
},
emits: ['update:value', 'change', 'afterChange', 'blur'], emits: ['update:value', 'change', 'afterChange', 'blur'],
slots: ['mark'], slots: ['mark'],
setup(props, { attrs, slots, emit, expose }) { setup(props, { attrs, slots, emit, expose }) {

View File

@ -252,9 +252,9 @@ const TreeSelect = defineComponent({
export const TreeSelectNode = TreeNode; export const TreeSelectNode = TreeNode;
export default Object.assign(TreeSelect, { export default Object.assign(TreeSelect, {
TreeNode, TreeNode,
SHOW_ALL, SHOW_ALL: SHOW_ALL as typeof SHOW_ALL,
SHOW_PARENT, SHOW_PARENT: SHOW_PARENT as typeof SHOW_PARENT,
SHOW_CHILD, SHOW_CHILD: SHOW_CHILD as typeof SHOW_CHILD,
install: (app: App) => { install: (app: App) => {
app.component(TreeSelect.name, TreeSelect); app.component(TreeSelect.name, TreeSelect);
app.component(TreeSelectNode.displayName, TreeSelectNode); app.component(TreeSelectNode.displayName, TreeSelectNode);