Comparing version 1.2.4 to 1.2.5
@@ -154,3 +154,3 @@ "use strict"; | ||
var _this = this; | ||
if (column.readonly) { | ||
if (column.readonly && this.mode == interface_1.MODE.EDIT) { | ||
if (render) { | ||
@@ -157,0 +157,0 @@ return render(text); |
@@ -29,3 +29,2 @@ "use strict"; | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
// You don't need to use 'references' as the name | ||
_this.references = { | ||
@@ -32,0 +31,0 @@ cleanAndQuery: null, |
{ | ||
"name": "vap", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "vap", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
export interface Value { | ||
@@ -20,3 +21,4 @@ name: string; | ||
momentRender: (format?: string, nearly?: number, calendar?: number) => Render; | ||
htmlRender: (className?: string) => (val: any) => JSX.Element; | ||
}; | ||
export default _default; |
@@ -100,3 +100,12 @@ "use strict"; | ||
return fn; | ||
}, | ||
/** | ||
* | ||
*/ | ||
htmlRender: function (className) { | ||
if (className === void 0) { className = ''; } | ||
return function (val) { | ||
return React.createElement("div", { className: className, dangerouslySetInnerHTML: { __html: val } }); | ||
}; | ||
} | ||
}; |
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
138481
3563