Skip to content

Commit

Permalink
fix: use un-deprecate vTooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 committed Apr 30, 2024
1 parent cdd7a29 commit 0784d6e
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/applet/src/components/basic/NodeTag.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { InspectorNodeTag } from '@vue/devtools-kit'
import { VTooltip as vTooltip } from '@vue/devtools-ui'
import { vTooltip } from '@vue/devtools-ui'
import { toHex } from '~/utils'
defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion packages/applet/src/components/state/StateFieldEditor.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed, ref, toRaw } from 'vue'
import { VueButton, VueDropdown, VueDropdownButton, VueIcon, VTooltip as vTooltip } from '@vue/devtools-ui'
import { VueButton, VueDropdown, VueDropdownButton, VueIcon, vTooltip } from '@vue/devtools-ui'
import { getRaw } from '@vue/devtools-kit'
import type { InspectorState, InspectorStateEditorPayload } from '@vue/devtools-kit'
import type { ButtonProps } from '@vue/devtools-ui/dist/types/src/components/Button'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueButton, VueIcon, VueInput, VTooltip as vTooltip } from '@vue/devtools-ui'
import { VueButton, VueIcon, VueInput, vTooltip } from '@vue/devtools-ui'
import { debounce } from 'perfect-debounce'
import { customTypeEnums, toSubmit } from '@vue/devtools-kit'
import { computed, ref, watch, watchEffect } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion packages/applet/src/components/state/StateFieldViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { formatInspectorStateValue, getInspectorStateValueType, getRaw, toEdit,
import { computed, ref, watch } from 'vue'
import { editInspectorState } from '@vue/devtools-core'
import { isArray, isObject, sortByKey } from '@vue/devtools-shared'
import { VueButton, VueIcon, VTooltip as vTooltip } from '@vue/devtools-ui'
import { VueButton, VueIcon, vTooltip } from '@vue/devtools-ui'
import ChildStateViewer from './ChildStateViewer.vue'
import StateFieldEditor from './StateFieldEditor.vue'
import StateFieldInputEditor from './StateFieldInputEditor.vue'
Expand Down
2 changes: 1 addition & 1 deletion packages/applet/src/modules/components/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from '@vue/devtools-core'
import { parse } from '@vue/devtools-kit'
import { useElementSize, useToggle, watchDebounced } from '@vueuse/core'
import { VueInput, VTooltip as vTooltip } from '@vue/devtools-ui'
import { VueInput, vTooltip } from '@vue/devtools-ui'
import { sortByKey } from '@vue/devtools-shared'
import { flatten, groupBy } from 'lodash-es'
import ComponentRenderCode from './components/RenderCode.vue'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/assets/AssetDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useTimeAgo } from '@vueuse/core'
import type { AssetImporter, AssetInfo, CodeSnippet, ImageMeta } from '@vue/devtools-core'
import { callViteServerAction, useDevToolsState } from '@vue/devtools-core'
import { VueButton, VueIcon, VTooltip as vTooltip } from '@vue/devtools-ui'
import { VueButton, VueIcon, vTooltip } from '@vue/devtools-ui'
import { openInEditor } from '../../composables/open-in-editor'
const props = defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/assets/FilepathItem.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VTooltip as vTooltip } from '@vue/devtools-ui'
import { vTooltip } from '@vue/devtools-ui'
const props = defineProps<{
filepath: string
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/common/SplitScreen.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueButton, VueCard, VueDropdown, VTooltip as vTooltip } from '@vue/devtools-ui'
import { VueButton, VueCard, VueDropdown, vTooltip } from '@vue/devtools-ui'
function close() {
devtoolsClientState.value.splitScreen.enabled = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { toRaw } from 'vue'
import { VueButton, VueDropdown, VueDropdownButton, VueIcon, VTooltip as vTooltip } from '@vue/devtools-ui'
import { VueButton, VueDropdown, VueDropdownButton, VueIcon, vTooltip } from '@vue/devtools-ui'
import { getRaw } from '@vue/devtools-kit'
import type { InspectorState, InspectorStateEditorPayload } from '@vue/devtools-kit'
import type { ButtonProps } from '@vue/devtools-ui/dist/types/src/components/Button'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueButton, VueIcon, VueInput, VTooltip as vTooltip } from '@vue/devtools-ui'
import { VueButton, VueIcon, VueInput, vTooltip } from '@vue/devtools-ui'
import { debounce } from 'perfect-debounce'
import { customTypeEnums, toSubmit } from '@vue/devtools-kit'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { InspectorCustomState, InspectorState, InspectorStateEditorPayload
import { isArray, isObject, sortByKey } from '@vue/devtools-shared'
import { formatInspectorStateValue, getInspectorStateValueType, getRaw, toEdit, toSubmit } from '@vue/devtools-kit'
import { editInspectorState } from '@vue/devtools-core'
import { VueButton, VueIcon, VTooltip as vTooltip } from '@vue/devtools-ui'
import { VueButton, VueIcon, vTooltip } from '@vue/devtools-ui'
import Actions from './InspectorDataField/Actions.vue'
import type { EditorAddNewPropType } from '~/composables/inspector'
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import '@unocss/reset/tailwind.css'
import 'uno.css'

import { VTooltip } from 'floating-vue'
import { vTooltip } from 'floating-vue'

export * from './components'
export * from './composables'
export * from './types'

export {
VTooltip,
vTooltip,
}

0 comments on commit 0784d6e

Please sign in to comment.