File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 7777 :class =" `language-${props.lang}`"
7878 :style =" preTagStyles"
7979 >
80- <code
81- v-if =" prismPlugin"
82- :class =" `language-${props.lang} ${browserWindow ? 'v-code-block--code-browser' : ''} ${highlightjs ? 'hljs' : ''}`"
83- :style =" codeTagStyles"
84- v-text =" computedCode"
85- ></code >
86- <code
87- v-else
88- :class =" `language-${props.lang} ${browserWindow ? 'v-code-block--code-browser' : ''} ${highlightjs ? 'hljs' : ''}`"
89- :style =" codeTagStyles"
90- v-html =" renderedCode"
91- ></code >
92- </pre >
80+ <code
81+ v-if =" prismPlugin"
82+ :class =" `language-${props.lang} ${browserWindow ? 'v-code-block--code-browser' : ''} ${highlightjs ? 'hljs' : ''}`"
83+ :style =" codeTagStyles"
84+ v-text =" computedCode"
85+ ></code >
86+ <code
87+ v-else
88+ :class =" `language-${props.lang} ${browserWindow ? 'v-code-block--code-browser' : ''} ${highlightjs ? 'hljs' : ''}`"
89+ :style =" codeTagStyles"
90+ v-html =" renderedCode"
91+ ></code >
92+ </pre >
9393 </div >
9494 </div >
9595</template >
@@ -255,7 +255,7 @@ const tabGroupStyle = computed<StyleValue>(() => {
255255
256256
257257// -------------------------------------------------- Watch //
258- watch (props , () => {
258+ watch (props as Props , () => {
259259 if (props .code ) {
260260 renderCode ();
261261 }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export type UseTheme = MaybeRef<string | boolean>;
1111
1212
1313// -------------------------------------------------- Props //
14- export type Props = {
14+ export interface Props {
1515 browserWindow ?: boolean ;
1616 code ?: object | [ ] | string | number ;
1717 codeBlockRadius ?: string ;
You can’t perform that action at this time.
0 commit comments