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

@@ -50,7 +50,7 @@
</demo-block>
</template>
<script>
<script lang="ts">
import { reactive, toRefs } from 'vue';
import { useTranslate } from '@demo/use-translate';
import Toast from '../../toast';
@@ -95,7 +95,7 @@ export default {
value9: [20, 60],
});
const onChange = (value) => Toast(t('text') + value);
const onChange = (value: string) => Toast(t('text') + value);
return {
...toRefs(state),