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

@@ -51,7 +51,7 @@
</demo-block>
</template>
<script>
<script lang="ts">
import { reactive, toRefs } from 'vue';
import { useTranslate } from '@demo/use-translate';
import Toast from '../../toast';
@@ -89,7 +89,7 @@ export default {
value6: '',
});
const onSearch = (val) => Toast(val);
const onSearch = (val: string) => Toast(val);
const onCancel = () => Toast(t('cancel'));
return {