Skip to content

Commit

Permalink
Merge branch 'cw_text_power_library-240216-xuguanjie'
Browse files Browse the repository at this point in the history
  • Loading branch information
xuguanjie committed Feb 29, 2024
2 parents c0f8bd6 + c9babff commit 327257c
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 327257c

Please sign in to comment.