types: improve ref typing (#8124)

* types: improve ref typing

* types: message
This commit is contained in:
neverland
2021-02-10 20:57:24 +08:00
committed by GitHub
parent 3e08b2471a
commit 0b68d3a141
8 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export default createComponent({
emits: ['click-left', 'click-right'],
setup(props, { emit, slots }) {
const navBarRef = ref();
const navBarRef = ref<HTMLElement>();
const renderPlaceholder = usePlaceholder(navBarRef, bem);
const onClickLeft = (event: MouseEvent) => {