Skip to content

Commit

Permalink
Fixed "#show" in react-native
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-sky committed Dec 20, 2018
1 parent 6670768 commit 6f32204
Show file tree
Hide file tree
Showing 16 changed files with 511 additions and 481 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## [v0.4.17] 2018.12.20

* 🐞 修复`#show`指令可在`react-native`中支持组件的`style`参数为数组的情况。

## [v0.4.16] 2018.12.14

* 🐞 `tools/metroTransformer`适配`react-native v0.56+`
Expand Down
4 changes: 3 additions & 1 deletion dist/nornj.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* NornJ template engine v0.4.16
* NornJ template engine v0.4.17
* (c) 2016-2018 Joe_Sky
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1127,6 +1127,8 @@ var extensions = {
}
if (useString) {
attrs.style += (attrs.style ? ';' : '') + 'display:none';
} else if (isArray(attrs.style)) {
attrs.style.push({ display: 'none' });
} else {
attrs.style.display = 'none';
}
Expand Down
4 changes: 3 additions & 1 deletion dist/nornj.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* NornJ template engine v0.4.16
* NornJ template engine v0.4.17
* (c) 2016-2018 Joe_Sky
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1123,6 +1123,8 @@ var extensions = {
}
if (useString) {
attrs.style += (attrs.style ? ';' : '') + 'display:none';
} else if (isArray(attrs.style)) {
attrs.style.push({ display: 'none' });
} else {
attrs.style.display = 'none';
}
Expand Down
4 changes: 3 additions & 1 deletion dist/nornj.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* NornJ template engine v0.4.16
* NornJ template engine v0.4.17
* (c) 2016-2018 Joe_Sky
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1129,6 +1129,8 @@ var extensions = {
}
if (useString) {
attrs.style += (attrs.style ? ';' : '') + 'display:none';
} else if (isArray(attrs.style)) {
attrs.style.push({ display: 'none' });
} else {
attrs.style.display = 'none';
}
Expand Down
4 changes: 2 additions & 2 deletions dist/nornj.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion dist/nornj.runtime.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* NornJ template engine v0.4.16
* NornJ template engine v0.4.17
* (c) 2016-2018 Joe_Sky
* Released under the MIT License.
*/
Expand Down Expand Up @@ -911,6 +911,8 @@ var extensions = {
}
if (useString) {
attrs.style += (attrs.style ? ';' : '') + 'display:none';
} else if (isArray(attrs.style)) {
attrs.style.push({ display: 'none' });
} else {
attrs.style.display = 'none';
}
Expand Down
4 changes: 3 additions & 1 deletion dist/nornj.runtime.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* NornJ template engine v0.4.16
* NornJ template engine v0.4.17
* (c) 2016-2018 Joe_Sky
* Released under the MIT License.
*/
Expand Down Expand Up @@ -907,6 +907,8 @@ var extensions = {
}
if (useString) {
attrs.style += (attrs.style ? ';' : '') + 'display:none';
} else if (isArray(attrs.style)) {
attrs.style.push({ display: 'none' });
} else {
attrs.style.display = 'none';
}
Expand Down
4 changes: 3 additions & 1 deletion dist/nornj.runtime.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* NornJ template engine v0.4.16
* NornJ template engine v0.4.17
* (c) 2016-2018 Joe_Sky
* Released under the MIT License.
*/
Expand Down Expand Up @@ -913,6 +913,8 @@ var extensions = {
}
if (useString) {
attrs.style += (attrs.style ? ';' : '') + 'display:none';
} else if (isArray(attrs.style)) {
attrs.style.push({ display: 'none' });
} else {
attrs.style.display = 'none';
}
Expand Down
4 changes: 2 additions & 2 deletions dist/nornj.runtime.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nornj",
"version": "0.4.16",
"version": "0.4.17",
"description": "A multipurpose javascript template engine, support both the rendering string and the react component.",
"main": "dist/nornj.common.js",
"module": "dist/nornj.esm.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/babel-plugin-nornj-in-jsx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## [v0.4.14] 2018.12.14

* 🐞 修复指令无法在`react-native`中使用的问题。

## [v0.4.13] 2018.12.14

* 🌟 为适配`react-native`增加`rn`参数。
Expand Down
Loading

0 comments on commit 6f32204

Please sign in to comment.