types: ComponentInstance (#8154)

This commit is contained in:
neverland
2021-02-14 17:07:26 +08:00
committed by GitHub
parent 0fb0186fad
commit 4cb974ab02
8 changed files with 40 additions and 41 deletions
+7 -6
View File
@@ -53,7 +53,8 @@
</template>
<script lang="ts">
import { ComponentPublicInstance, reactive, ref, toRefs, watch } from 'vue';
import { reactive, ref, toRefs, watch } from 'vue';
import { ComponentInstance } from '../../utils';
import { useTranslate } from '@demo/use-translate';
const i18n = {
@@ -87,11 +88,11 @@ export default {
};
const refMap = {
showInfo: ref<ComponentPublicInstance>(),
addGutter: ref<ComponentPublicInstance>(),
basicUsage: ref<ComponentPublicInstance>(),
removeMask: ref<ComponentPublicInstance>(),
customLength: ref<ComponentPublicInstance>(),
showInfo: ref<ComponentInstance>(),
addGutter: ref<ComponentInstance>(),
basicUsage: ref<ComponentInstance>(),
removeMask: ref<ComponentInstance>(),
customLength: ref<ComponentInstance>(),
};
type ValueKeys = keyof typeof initialValue;