1
0

fix: recalculate layout when isClamp is changed

This commit is contained in:
Justineo
2019-01-14 13:02:41 +08:00
parent 01069e5ae6
commit 51ee8dee45
6 changed files with 7 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
## 0.2.1
* Update layout when clamp status has been changed.
## 0.2.0
* Add `clamped: boolean` and `expanded: boolean` to scoped slot `before`/`after`.

View File

@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>vue-clamp</title><link href=css/app.b6324a6b.css rel=preload as=style><link href=css/chunk-vendors.99ab1800.css rel=preload as=style><link href=js/app.4d776c12.js rel=preload as=script><link href=js/chunk-vendors.9584c235.js rel=preload as=script><link href=js/vue.2409c628.js rel=preload as=script><link href=css/chunk-vendors.99ab1800.css rel=stylesheet><link href=css/app.b6324a6b.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-clamp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/vue.2409c628.js></script><script src=js/chunk-vendors.9584c235.js></script><script src=js/app.4d776c12.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>vue-clamp</title><link href=css/app.b6324a6b.css rel=preload as=style><link href=css/chunk-vendors.99ab1800.css rel=preload as=style><link href=js/app.365025cc.js rel=preload as=script><link href=js/chunk-vendors.9584c235.js rel=preload as=script><link href=js/vue.2409c628.js rel=preload as=script><link href=css/chunk-vendors.99ab1800.css rel=stylesheet><link href=css/app.b6324a6b.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-clamp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/vue.2409c628.js></script><script src=js/chunk-vendors.9584c235.js></script><script src=js/app.365025cc.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "vue-clamp",
"version": "0.2.0",
"version": "0.2.1",
"license": "MIT",
"description": "Clamping multiline text with ease.",
"scripts": {

View File

@@ -1,6 +1,6 @@
import { addListener, removeListener } from 'resize-detector'
const UPDATE_TRIGGERS = ['maxLines', 'maxHeight', 'ellipsis']
const UPDATE_TRIGGERS = ['maxLines', 'maxHeight', 'ellipsis', 'isClamped']
const INIT_TRIGGERS = ['tag', 'text', 'autoresize']
export default {