refactor(docs): now transition= attribute will have types, fix more
This commit is contained in:
@@ -11,24 +11,26 @@ const { variant = 'default' } = defineProps<{
|
|||||||
<div flex="~ col items-center gap-1 justify-start items-center">
|
<div flex="~ col items-center gap-1 justify-start items-center">
|
||||||
<div
|
<div
|
||||||
b="~ 2"
|
b="~ 2"
|
||||||
:class="{
|
:class="[
|
||||||
'b-solid b-primary/50 bg-primary/10 w-10': variant === 'active',
|
variant === 'active' ? 'b-solid b-primary/50 bg-primary/10 w-10' : '',
|
||||||
'b-dotted b-primary/20 w-10': variant === 'dotted',
|
variant === 'dotted' ? 'b-dotted b-primary/20 w-10' : '',
|
||||||
'b-dashed b-primary/20 w-10': variant === 'default',
|
variant === 'default' ? 'b-dashed b-primary/20 w-10' : '',
|
||||||
'b-transparent bg-transparent': variant === 'connector',
|
variant === 'connector' ? 'b-transparent bg-transparent' : '',
|
||||||
}"
|
'transition-all duration-150 ease-out',
|
||||||
h-10 rounded-lg text-lg
|
'h-10 rounded-lg text-lg',
|
||||||
flex="~ items-center justify-center"
|
'flex items-center justify-center',
|
||||||
transition="~ all duration-150 ease-out"
|
]"
|
||||||
>
|
>
|
||||||
{{ value }}
|
{{ value }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="codePoint || invisibleCodePoint"
|
v-if="codePoint || invisibleCodePoint"
|
||||||
text-xs text="primary" font-mono
|
:class="[
|
||||||
flex="~ col items-center justify-center"
|
invisibleCodePoint ? 'invisible' : '',
|
||||||
:class="{ invisible: invisibleCodePoint }"
|
'text-xs text-primary font-mono',
|
||||||
|
'flex flex-col items-center justify-center',
|
||||||
|
]"
|
||||||
>
|
>
|
||||||
<div v-for="char in value" :key="char">
|
<div v-for="char in value" :key="char">
|
||||||
{{ char.codePointAt(0)?.toString(16).toUpperCase() }}
|
{{ char.codePointAt(0)?.toString(16).toUpperCase() }}
|
||||||
|
|||||||
Reference in New Issue
Block a user