@@ -15,7 +15,6 @@ import { cssSuggestions } from './utils'
15
15
import ' vivid-typing/dist/index.css'
16
16
17
17
const { t, locale } = useI18n ()
18
-
19
18
const input = ref (' ' )
20
19
let pre: any
21
20
= ' <template>\n <button>button</button>\n </template>\n\n <style scoped>\n button {\n height: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n cursor: pointer;\n user-select: none;\n padding: 8px 15px;\n border-radius: 4px;\n border: none;\n box-sizing: border-box;\n color: #fff;\n background-color: #409eff;\n margin: auto;\n }\n button:hover{\n background-color: #67c23a ;\n }\n </style>\n '
@@ -451,7 +450,7 @@ onUnmounted(() => {
451
450
window .removeEventListener (' resize' , updateEditorDimensions )
452
451
})
453
452
454
- function onSelect(value : string ) {
453
+ function onSelect(value : any ) {
455
454
input .value = ` ${value }: `
456
455
nextTick (() => {
457
456
autoComplete .value .focus ()
@@ -517,32 +516,34 @@ function onSelect(value: string) {
517
516
<div flex items-center my3 >
518
517
<input v-model =" isChecked" type =" checkbox" w4 h4 mr1 > isRem
519
518
</div >
520
- <div v-if =" transform" flex =" ~ gap-4" items-center >
521
- <div font-bold text =" 18px" >
522
- {{ t('result') }}
523
- </div >
524
- <div flex gap-2 items-center >
525
- {{ transform }}
526
- <div
527
- :class =" [
528
- isCopy
529
- ? 'i-carbon:checkmark-outline text-green!'
530
- : ' i-carbon:copy',
531
- ]"
532
- cursor-pointer
533
- hover =" color-orange"
534
- @click =" copyStyle"
535
- />
519
+ <div min-h-20 flex items-center justify-center >
520
+ <div v-if =" transform" flex =" ~ gap-4" items-center >
521
+ <div font-bold text =" 18px" >
522
+ {{ t('result') }}
523
+ </div >
524
+ <div flex gap-2 items-center break-all >
525
+ {{ transform }}
526
+ <div
527
+ :class =" [
528
+ isCopy
529
+ ? 'i-carbon:checkmark-outline text-green!'
530
+ : ' i-carbon:copy',
531
+ ]"
532
+ cursor-pointer
533
+ hover =" color-orange"
534
+ @click =" copyStyle"
535
+ />
536
+ </div >
536
537
</div >
537
- </div >
538
- <template v-else >
539
- <template v-if =" input " >
540
- <div h-20 v-html =" t('issue')" />
541
- </template >
542
538
<template v-else >
543
- <div h-20 box-border pt6 v-html =" t('find')" />
539
+ <template v-if =" input " >
540
+ <div v-html =" t('issue')" />
541
+ </template >
542
+ <template v-else >
543
+ <div box-border pt6 v-html =" t('find')" />
544
+ </template >
544
545
</template >
545
- </template >
546
+ </div >
546
547
</div >
547
548
<div flex >
548
549
<div w =" 50%" >
0 commit comments