Comparing version 1.0.0 to 1.1.0
# Changelog | ||
## [1.1.0](https://github.com/inouetakuya/vue-nl2br/compare/v1.0.0...v1.1.0) (2022-06-11) | ||
### Features | ||
- Allow null text ([#63](https://github.com/inouetakuya/vue-nl2br/issues/63)) ([0065659](https://github.com/inouetakuya/vue-nl2br/commit/0065659f3a9cdfa485ce744a2f42e9d4f510a20c)) | ||
## [1.0.0](https://github.com/inouetakuya/vue-nl2br/compare/v0.2.0...v1.0.0) (2022-06-10) | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "vue-nl2br", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A vue component that turns new lines into line breaks.", | ||
@@ -50,2 +50,3 @@ "keywords": [ | ||
"ts-jest": "28.0.4", | ||
"ts-node": "10.8.1", | ||
"typescript": "4.7.3", | ||
@@ -52,0 +53,0 @@ "vue": "2.6.14", |
@@ -75,3 +75,3 @@ # vue-nl2br | ||
- Type: `String` | ||
- Required: true | ||
- Default: null | ||
- `className`: HTML class name(s) | ||
@@ -81,4 +81,12 @@ - Type: `String` | ||
Note: when `text` property is empty or null, it renders an empty tag. ex) `<p></p>`. | ||
If you prefer to render nothing at all, use `v-if` directive: | ||
```html | ||
<nl2br v-if="myText" tag="p" :text="myText" /> | ||
``` | ||
## License | ||
[MIT](https://opensource.org/licenses/MIT) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10629
91
16