Skip to content

Commit

Permalink
fix: 优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Davont committed Oct 25, 2024
1 parent d869f6a commit 36fa423
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/sites/src/views/components/components.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,10 @@
>
<tiny-grid-column class-name="api-table-expand-col" type="expand" width="32">
<template #default="{ row }">
<async-highlight v-if="chartCode" :code="row.code.trim()" types="html"></async-highlight>
<async-highlight
v-else-if="row.code"
v-if="row.code"
:code="row.code.trim()"
types="ts"
:types="chartCode ? 'html' : 'ts'"
></async-highlight>
<div v-if="row.depTypes">
<async-highlight
Expand Down

0 comments on commit 36fa423

Please sign in to comment.