提交 4f8f949a 编写于 作者: H hdx

call-method: 移除 不需要的导入及未使用变量警告

上级 16650473
......@@ -5,9 +5,6 @@
</template>
<script>
// 导入 vue 组件实例类型
import { ComponentPublicInstance } from 'vue'
// 非easycom组件需import引用组件 component1.uvue
import component1 from './component1.uvue'
......
<template>
<view></view>
<view>{{result}}</view>
</template>
<script>
export default {
data() {
return {
result: ''
}
},
methods: {
foo1() {
this.result = "foo1"
},
foo2(date1 : number) {
this.result = "foo2=" + date1
},
foo3(date1 : number, date2 : number) {
this.result = "foo3=" + date1 + " " + date2
},
foo4(callback : (() => void)) {
callback()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册