zova-jsx 1.1.23 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -7
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -377,13 +377,15 @@ class ZovaJsx extends BeanSimple {
|
|
|
377
377
|
celScope[cast(props).name] = cast(props).value;
|
|
378
378
|
child = undefined;
|
|
379
379
|
} else if (jsxChild.type === 'log') {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
380
|
+
if (process.env.CLIENT) {
|
|
381
|
+
const props = this.renderJsxProps(jsxChild.props, {}, celScope, renderContext);
|
|
382
|
+
const name = cast(props).name;
|
|
383
|
+
const message = cast(props).message;
|
|
384
|
+
if (isNil(name)) {
|
|
385
|
+
console.log(message);
|
|
386
|
+
} else {
|
|
387
|
+
console.log(name, message);
|
|
388
|
+
}
|
|
387
389
|
}
|
|
388
390
|
child = undefined;
|
|
389
391
|
} else {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-jsx",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.1.25",
|
|
4
|
+
"gitHead": "31f5f5712ea26eaebb2eae9990e6a089c1f087ca",
|
|
5
5
|
"description": "Zova JSX",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ioc",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"@cabloy/word-utils": "^2.1.8",
|
|
46
46
|
"typestyle": "^2.4.0",
|
|
47
47
|
"vue": "^3.5.32",
|
|
48
|
-
"zova-core": "^5.1.
|
|
48
|
+
"zova-core": "^5.1.23"
|
|
49
49
|
}
|
|
50
50
|
}
|