Skip to content

Commit

Permalink
Task-2801167946019072: achieve
Browse files Browse the repository at this point in the history
  • Loading branch information
xuguanjie committed Feb 21, 2024
1 parent 6910753 commit c9babff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### 基本用法

``` html
<cw-typed-view></cw-typed-view>
<cw-typed-view
style="width:100px; "
value="fdafaslfjafldajfldsajfldajlfdjaslfjdl" :showCursor="true"></cw-typed-view>
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div style="display:flex">
<div ref="my-type" v-if="!inIDE" >
<div class="typed-view" >
<div class="typed-view-room" ref="my-type" v-if="!inIDE" >
</div>
<div v-else>
{{value}}
Expand Down Expand Up @@ -58,5 +58,10 @@ export default {
</script>

<style>
.typed-view-room{
display: inline;
word-wrap: break-word;
white-space: normal;
width: 100%;
}
</style>

0 comments on commit c9babff

Please sign in to comment.