actview 3.2.0 → 3.2.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -138,7 +138,9 @@ function defineComponent(setup, options) {
138
138
  if (k === "slots") return ctx.slots;
139
139
  if (k === "children") {
140
140
  if (renderPhase || activeRenderDepth > 0) {
141
- return ctx.slots.default?.() ?? null;
141
+ const kids = ctx.slots.default?.() ?? null;
142
+ if (Array.isArray(kids) && kids.length === 1) return kids[0];
143
+ return kids;
142
144
  }
143
145
  if (!warnedNonRenderRead) {
144
146
  warnedNonRenderRead = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "actview",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "type": "module",
5
5
  "description": "ActView v2:Vue 引擎 + React 语义 JSX(运行时基于 vue 官方包,JSX 由 @actview/plugin-jsx 编译)",
6
6
  "exports": {