-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(options): add textOverflow option
- Loading branch information
Showing
7 changed files
with
177 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!-- THIS FILE IS USED FOR DEVELOPMENT --> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Vue Line Clamp - A multi-line ellipsis for Vue</title> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<label for="range">Number of lines: {{ lines }} </label> <br> | ||
<input type="range" v-model="lines" min="0" max="5" id="range"> | ||
|
||
<p v-line-clamp:26="lines" style="width: 200px"> | ||
Truncate my lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore, neque minima libero voluptatibus voluptate enim earum qui tempora sed sequi fugiat aut commodi laboriosam iste cupiditate quo veritatis quam obcaecati. | ||
</p> | ||
|
||
<p v-line-clamp:26="1" style="width: 200px"> | ||
Truncate my lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore, neque minima libero voluptatibus voluptate enim earum qui tempora sed sequi fugiat aut commodi laboriosam iste cupiditate quo veritatis quam obcaecati. | ||
</p> | ||
|
||
<p v-line-clamp:26="lines" style="width: 200px"> | ||
Truncate my lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore, neque minima libero voluptatibus voluptate enim earum qui tempora sed sequi fugiat aut commodi laboriosam iste cupiditate quo veritatis quam obcaecati. | ||
</p> | ||
</div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script> | ||
<script src="dist/vue-line-clamp.umd.js"></script> | ||
<script> | ||
Vue.use(VueLineClamp, { | ||
importCss: false | ||
}) | ||
|
||
new Vue({ | ||
el: '#app', | ||
data: { | ||
lines: 2 | ||
} | ||
}) | ||
</script> | ||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!-- THIS FILE IS USED FOR DEVELOPMENT --> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Vue Line Clamp - A multi-line ellipsis for Vue</title> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<label for="range">Number of lines: {{ lines }} </label> <br> | ||
<input type="range" v-model="lines" min="0" max="5" id="range"> | ||
|
||
<p v-line-clamp:26="lines" style="width: 200px"> | ||
Truncate my lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore, neque minima libero voluptatibus voluptate enim earum qui tempora sed sequi fugiat aut commodi laboriosam iste cupiditate quo veritatis quam obcaecati. | ||
</p> | ||
|
||
<p v-line-clamp:26="1" style="width: 200px"> | ||
Truncate my lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore, neque minima libero voluptatibus voluptate enim earum qui tempora sed sequi fugiat aut commodi laboriosam iste cupiditate quo veritatis quam obcaecati. | ||
</p> | ||
|
||
<p v-line-clamp:26="lines" style="width: 200px"> | ||
Truncate my lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore, neque minima libero voluptatibus voluptate enim earum qui tempora sed sequi fugiat aut commodi laboriosam iste cupiditate quo veritatis quam obcaecati. | ||
</p> | ||
</div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script> | ||
<script src="dist/vue-line-clamp.umd.js"></script> | ||
<script> | ||
Vue.use(VueLineClamp, { | ||
importCss: false | ||
}) | ||
|
||
new Vue({ | ||
el: '#app', | ||
data: { | ||
lines: 2 | ||
} | ||
}) | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.