@torpor/view 0.0.7 → 0.0.9
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/CHANGELOG.md +12 -0
- package/dist/compile.cjs +1 -6
- package/dist/compile.cjs.map +1 -1
- package/dist/compile.js +1 -6
- package/dist/compile.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +7 -7
- package/src/compile/build/client/buildSlotNode.ts +1 -6
- package/test/bind/bind.test.ts +10 -0
- package/test/bind/components/BindText.torp +9 -3
- package/test/bind/components/output/BindText-client.ts +12 -3
- package/test/bind/components/output/BindText-server.ts +2 -2
- package/test/bind/components/temp/{BindText-client-d8b5da0867d612966fa091da7aa20baa77190d64.ts → BindText-client-9e2f542e13bcbf9a44eab2c5a79d67ddb128f928.ts} +12 -3
- package/test/bind/components/temp/{BindText-server-20ad98151d8e9dd7d347968051c4602d6b35124c.ts → BindText-server-4b94cdf60d9c9a2088306c4407e2ae30785169b0.ts} +2 -2
- package/test/party/components/output/FunnyButton-client.ts +1 -1
- package/test/slots/components/output/Article-client.ts +3 -3
- package/test/slots/components/output/Header-client.ts +1 -1
- package/test/slots/components/output/List-client.ts +1 -1
- package/test/special-component/components/output/BigTitle-client.ts +1 -1
- package/test/special-component/components/output/SmallTitle-client.ts +1 -1
- /package/test/for/components/temp/{ForIn-client-da39a3ee5e6b4b0d3255bfef95601890afd80709.ts → ForIn-client-c8a1ec4473d05475e11928d06d081ab671fd9f28.ts} +0 -0
- /package/test/party/components/temp/{DoubleCount-server-da39a3ee5e6b4b0d3255bfef95601890afd80709.ts → DoubleCount-server-40fc88156e52281b80fd6b12dd73d2469201fa29.ts} +0 -0
package/CHANGELOG.md
CHANGED
package/dist/compile.cjs
CHANGED
|
@@ -1710,12 +1710,7 @@ function buildSlotNode(node, status, b) {
|
|
|
1710
1710
|
const slotParentName = node.parentName;
|
|
1711
1711
|
const slotAnchorName = node.varName;
|
|
1712
1712
|
b.append(`if ($slots && $slots["${slotName}"]) {`);
|
|
1713
|
-
let params = [
|
|
1714
|
-
slotParentName,
|
|
1715
|
-
slotAnchorName,
|
|
1716
|
-
slotHasProps ? propsName : "undefined",
|
|
1717
|
-
status.contextProps.length ? "$context" : "undefined"
|
|
1718
|
-
];
|
|
1713
|
+
let params = [slotParentName, slotAnchorName, slotHasProps ? propsName : "undefined", "$context"];
|
|
1719
1714
|
b.append(`$slots["${slotName}"](${params.join(", ")})`);
|
|
1720
1715
|
const fill = node.children.find((c) => isSpecialNode(c) && c.tagName === ":fill");
|
|
1721
1716
|
if (fill && isSpecialNode(fill) && fill.children.length) {
|