docs: demo ts (#8196)

This commit is contained in:
neverland
2021-02-22 20:36:59 +08:00
committed by GitHub
parent 5a86b8efb0
commit f4698ebf44
7 changed files with 49 additions and 39 deletions
+3 -2
View File
@@ -57,9 +57,10 @@
</demo-block>
</template>
<script>
<script lang="ts">
import { computed, reactive, ref, toRefs } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { ComponentInstance } from '../../utils';
import { RED } from '../../utils/constant';
const i18n = {
@@ -105,7 +106,7 @@ const i18n = {
export default {
setup() {
const item = ref(null);
const item = ref<ComponentInstance>();
const t = useTranslate(i18n);
const state = reactive({