You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All notable changes to this project will be documented in this file.
3
+
4
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+
## [1.1.0] - 2019-09-07
8
+
### Changed
9
+
- make `minHeight` and `maxHeight` props reactive. by [#17](https://github.com/devstark-com/vue-textarea-autosize/issues/17) from [@deathg0d](https://github.com/deathg0d)
10
+
- rewrite textarea height updating in the data-first manner. by [#15](https://github.com/devstark-com/vue-textarea-autosize/issues/15) from [@danielSONCCO](https://github.com/danielSONCCO)
11
+
- rebuild the plugin with [vue-cli-plugin-p11n](https://github.com/kazupon/vue-cli-plugin-p11n)
Copy file name to clipboardExpand all lines: README.md
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,28 +13,28 @@ Vue component provides textarea with automatically adjustable height and without
13
13
14
14
Note
15
15
16
-
- You are able to handle all native events via `@eventname.native`[read more](https://vuejs.org/v2/guide/components.html#Binding-Native-Events-to-Components)
17
-
- There is no CSS from box, so you are free to style it as you wish
16
+
- You are able to handle all native events with `.native` modifier [read more](https://vuejs.org/v2/guide/components.html#Binding-Native-Events-to-Components)
17
+
- You are able to use native attrs like this `<textarea-autosize rows="1" ... />`
18
+
- There is no CSS out of the box, so you feel free to style it as you wish
| autosize | false | Boolean | true | allow to enable/disable auto resizing dynamically |
68
-
| minHeight | false | Number | null | min textarea height |
69
-
| maxHeight | false | Number | null | max textarea height |
67
+
|`v-model`| no | String, Number | '' | value binding |
68
+
|`value`| no | String, Number | '' | part of the `v-model` binding |
69
+
|`autosize`| no | Boolean | true | allow to enable/disable auto resizing dynamically |
70
+
|`minHeight`| no | Number | null | min textarea height |
71
+
|`maxHeight`| no | Number | null | max textarea height |
72
+
|`important`| no | Boolean, Array | false | Force !important for style properties e.g. when using [http://cleanslatecss.com/](http://cleanslatecss.com/). Allowed values: `true`, `false`, all or some of `['resize', 'overflow', 'height']`|
70
73
71
74
### Events
72
75
73
76
| Name | Params | Description |
74
77
| ----------|:---------|--------------|
75
-
| input | value | fires on textarea content changed. part of a`v-model` binding. [read more](https://vuejs.org/v2/guide/components.html#Form-Input-Components-using-Custom-Events)|
78
+
| input | value | fires on textarea content changed. part of the`v-model` binding. [read more](https://vuejs.org/v2/guide/components.html#Form-Input-Components-using-Custom-Events)|
0 commit comments