9
9
} from ' @vue/devtools-core'
10
10
import { parse } from ' @vue/devtools-kit'
11
11
import { useElementSize , useToggle , watchDebounced } from ' @vueuse/core'
12
- import { VueInput , vTooltip } from ' @vue/devtools-ui'
12
+ import { VueButton , VueDialog , VueInput , vTooltip } from ' @vue/devtools-ui'
13
13
import { flatten , groupBy } from ' lodash-es'
14
14
import ComponentRenderCode from ' ./components/RenderCode.vue'
15
15
import ComponentTree from ' ~/components/tree/TreeViewer.vue'
@@ -272,11 +272,11 @@ function closeComponentRenderCode() {
272
272
<Pane border =" base" h-full >
273
273
<div v-if =" componentTreeLoaded" class =" h-full flex flex-col p2" >
274
274
<div class =" flex py2" >
275
- <VueInput v-model =" filterComponentName" :loading-debounce-time =" 250" :loading =" !filtered" placeholder =" Find components..." flex-1 />
276
- <button px-1 @click =" inspectComponentInspector" >
275
+ <VueInput v-model =" filterComponentName" :loading-debounce-time =" 250" :loading =" !filtered" placeholder =" Find components..." class = " flex-1 text-14px " />
276
+ <button v-tooltip.bottom = " 'Select component in the page' " px-1 class = " hover:(color-#00dc82) " @click =" inspectComponentInspector" >
277
277
<svg
278
278
xmlns =" http://www.w3.org/2000/svg"
279
- style =" height : 1.1em ; width : 1.1em ;color : #00dc82 ; "
279
+ style =" height : 1.1em ; width : 1.1em ;"
280
280
class =" op-80 hover:(op-100)"
281
281
viewBox =" 0 0 24 24"
282
282
>
@@ -293,13 +293,13 @@ function closeComponentRenderCode() {
293
293
<div class =" h-full flex flex-col p2" >
294
294
<div class =" flex py2" >
295
295
<!-- component name -->
296
- <span v-if =" activeTreeNode?.name" class =" font-state-field flex items-center px-1 text-4 " >
296
+ <span v-if =" activeTreeNode?.name" class =" font-state-field flex items-center px-1 text-14px " >
297
297
<span class =" text-gray-400 dark:text-gray-600" >< ; </span >
298
298
<span group-hover:text-white class =" max-w-40 of-hidden text-ellipsis ws-nowrap [.active_& ]:(text-white)" >{{ activeTreeNode.name }}</span >
299
299
<span class =" text-gray-400 dark:text-gray-600" >> ; </span >
300
300
</span >
301
301
302
- <VueInput v-model =" filterStateName" :loading-debounce-time =" 250" placeholder =" Filter State..." flex-1 />
302
+ <VueInput v-model =" filterStateName" :loading-debounce-time =" 250" placeholder =" Filter State..." class = " flex-1 text-14px " />
303
303
304
304
<div class =" flex items-center gap-2 px-1" >
305
305
<i v-tooltip.bottom =" 'Scroll to component'" class =" i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:(op-70)" @click =" scrollToComponent" />
@@ -315,7 +315,7 @@ function closeComponentRenderCode() {
315
315
</Splitpanes >
316
316
317
317
<!-- inspect-component dialog -->
318
- <!-- < VueDialog v-model="inspectComponentTipVisible" title="" height="12rem" :closable="false">
318
+ <VueDialog v-if = " isInChromePanel " v-model =" inspectComponentTipVisible" title =" " height =" 12rem" :closable =" false" >
319
319
<div class =" h-full flex flex-col items-center justify-center gap-2" >
320
320
<span class =" block" >
321
321
<svg
@@ -338,7 +338,7 @@ function closeComponentRenderCode() {
338
338
</VueButton >
339
339
</div >
340
340
</template >
341
- </VueDialog> -->
341
+ </VueDialog >
342
342
</div >
343
343
</template >
344
344
0 commit comments