chore: demo ts (#8160)

* chore: demo ts

* chore: fix
This commit is contained in:
neverland
2021-02-14 19:50:45 +08:00
committed by GitHub
parent 8cbf153073
commit a8060bb599
20 changed files with 96 additions and 79 deletions

View File

@@ -41,7 +41,7 @@
</van-tabs>
</template>
<script>
<script lang="ts">
import { computed, onMounted, reactive, toRefs } from 'vue';
import { useTranslate } from '@demo/use-translate';
import Toast from '../../toast';
@@ -78,7 +78,7 @@ export default {
return t('try');
});
const onRefresh = (showToast) => {
const onRefresh = (showToast: boolean) => {
setTimeout(() => {
if (showToast) {
Toast(t('success'));