@symbo.ls/atoms 2.11.357 → 2.11.361

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/Collection.js +4 -5
  2. package/package.json +2 -2
package/Collection.js CHANGED
@@ -7,13 +7,12 @@ export const Collection = {
7
7
  define: {
8
8
  $collection: (param, el, state) => {
9
9
  const { __ref: ref } = el
10
- const hasChildren = isArray(el.props?.children)
10
+ const { children, childrenAs, childrenExtend } = (el.props || {})
11
+ const hasChildren = isArray()
11
12
 
12
13
  if (hasChildren) {
13
- param = el.props?.children
14
- const childrenAs = el.props?.childrenAs
15
- const extend = el.props?.childrenExtend
16
- if (childrenAs) param = param.map(v => ({ extend, [childrenAs]: v }))
14
+ param = children
15
+ if (childrenAs) param = param.map(v => ({ extend: childrenExtend, [childrenAs]: v }))
17
16
  } else if (!param) return
18
17
 
19
18
  if (isString(param)) {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.357",
3
+ "version": "2.11.361",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "b5300a7b7e31509580190626af6c392176d2942d",
6
+ "gitHead": "1c37dd9a8739d97d16741a84af1ad24720877f80",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",