types: improve ref typing

This commit is contained in:
chenjiahan
2020-10-09 19:51:43 +08:00
parent eda4de93ae
commit 683cc88c54
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ export default createComponent({
setup(props, { emit, slots }) {
const error = ref(false);
const loading = ref(true);
const imageRef = ref();
const imageRef = ref<HTMLElement>();
const style = computed(() => {
const style: CSSProperties = {};