Comparing version 1.1.0 to 1.1.1
# Changelog | ||
## [1.1.1](https://github.com/inouetakuya/vue-nl2br/compare/v1.1.0...v1.1.1) (2022-06-11) | ||
### Bug Fixes | ||
- Not built when v1.1.0 was released | ||
## [1.1.0](https://github.com/inouetakuya/vue-nl2br/compare/v1.0.0...v1.1.0) (2022-06-11) | ||
@@ -4,0 +10,0 @@ |
import type { CreateElement, RenderContext, VNode } from 'vue'; | ||
declare type Props = { | ||
tag: string; | ||
text: string; | ||
text: string | null; | ||
className?: string; | ||
@@ -16,3 +16,3 @@ }; | ||
type: StringConstructor; | ||
required: boolean; | ||
default: null; | ||
}; | ||
@@ -19,0 +19,0 @@ className: { |
@@ -21,3 +21,3 @@ (function (factory) { | ||
type: String, | ||
required: true, | ||
default: null, | ||
}, | ||
@@ -30,3 +30,4 @@ className: { | ||
render: function (createElement, context) { | ||
var _a = context.props, tag = _a.tag, text = _a.text, className = _a.className; | ||
var _a = context.props, tag = _a.tag, className = _a.className; | ||
var text = context.props.text || ''; | ||
return createElement(tag, { | ||
@@ -33,0 +34,0 @@ class: className, |
{ | ||
"name": "vue-nl2br", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A vue component that turns new lines into line breaks.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
10854
87