rip-lang 3.13.68 → 3.13.69
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/README.md +1 -1
- package/docs/dist/rip.js +11 -1
- package/docs/dist/rip.min.js +41 -41
- package/docs/dist/rip.min.js.br +0 -0
- package/package.json +1 -1
- package/src/components.js +10 -0
package/docs/dist/rip.min.js.br
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/components.js
CHANGED
|
@@ -1873,6 +1873,16 @@ export function installComponentSupport(CodeGenerator, Lexer) {
|
|
|
1873
1873
|
props.push(`children: ${childrenVar}`);
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
|
+
} else if (arg && !childrenVar) {
|
|
1877
|
+
const textVar = this.newTextVar();
|
|
1878
|
+
const val = typeof arg === 'string' ? arg.valueOf() : null;
|
|
1879
|
+
if (val && (val.startsWith('"') || val.startsWith("'") || val.startsWith('`'))) {
|
|
1880
|
+
this._createLines.push(`${textVar} = document.createTextNode(${val});`);
|
|
1881
|
+
} else {
|
|
1882
|
+
this._createLines.push(`${textVar} = document.createTextNode(${this.generateInComponent(arg, 'value')});`);
|
|
1883
|
+
}
|
|
1884
|
+
childrenVar = textVar;
|
|
1885
|
+
props.push(`children: ${childrenVar}`);
|
|
1876
1886
|
}
|
|
1877
1887
|
}
|
|
1878
1888
|
|