Skip to content

Commit

Permalink
fix(designable): fix can not drag object to array cards in initializa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
janryWang committed Aug 24, 2021
1 parent 9af2dda commit 99b46a3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions designable/antd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"start": "webpack-dev-server --config playground/webpack.dev.ts"
},
"devDependencies": {
"@designable/react-settings-form": "^0.5.3",
"@designable/react-settings-form": "^0.5.4",
"autoprefixer": "^9.0",
"file-loader": "^5.0.2",
"fs-extra": "^8.1.0",
Expand All @@ -55,9 +55,9 @@
"react-is": ">=16.8.0 || >=17.0.0"
},
"dependencies": {
"@designable/core": "^0.5.3",
"@designable/formily": "^0.5.3",
"@designable/react": "^0.5.3",
"@designable/core": "^0.5.4",
"@designable/formily": "^0.5.4",
"@designable/react": "^0.5.4",
"@formily/antd": "2.0.0-rc.3",
"@formily/core": "2.0.0-rc.3",
"@formily/designable-setters": "2.0.0-rc.3",
Expand Down
1 change: 1 addition & 0 deletions designable/antd/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const matchChildComponent = (
) => {
if (name === '*') return true
const componentName = node?.props?.['x-component']
if (!componentName) return false
if (typeof name === 'function')
return name(componentName || '', node, context)
if (Array.isArray(name)) return name.includes(componentName)
Expand Down
8 changes: 4 additions & 4 deletions designable/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"start": "webpack-dev-server --config playground/webpack.dev.ts"
},
"devDependencies": {
"@designable/react-settings-form": "^0.5.3",
"@designable/react-settings-form": "^0.5.4",
"autoprefixer": "^9.0",
"file-loader": "^5.0.2",
"fs-extra": "^8.1.0",
Expand All @@ -56,9 +56,9 @@
"react-is": ">=16.8.0 || >=17.0.0"
},
"dependencies": {
"@designable/core": "^0.5.3",
"@designable/formily": "^0.5.3",
"@designable/react": "^0.5.3",
"@designable/core": "^0.5.4",
"@designable/formily": "^0.5.4",
"@designable/react": "^0.5.4",
"@formily/core": "2.0.0-rc.3",
"@formily/designable-setters": "2.0.0-rc.3",
"@formily/next": "2.0.0-rc.3",
Expand Down
1 change: 1 addition & 0 deletions designable/next/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const matchChildComponent = (
) => {
if (name === '*') return true
const componentName = node?.props?.['x-component']
if (!componentName) return false
if (typeof name === 'function')
return name(componentName || '', node, context)
if (Array.isArray(name)) return name.includes(componentName)
Expand Down
8 changes: 4 additions & 4 deletions designable/setters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"react-is": ">=16.8.0 || >=17.0.0"
},
"dependencies": {
"@designable/core": "^0.5.3",
"@designable/formily": "^0.5.3",
"@designable/react": "^0.5.3",
"@designable/react-settings-form": "^0.5.3",
"@designable/core": "^0.5.4",
"@designable/formily": "^0.5.4",
"@designable/react": "^0.5.4",
"@designable/react-settings-form": "^0.5.4",
"@formily/antd": "2.0.0-rc.3",
"@formily/core": "2.0.0-rc.3",
"@formily/react": "2.0.0-rc.3",
Expand Down

0 comments on commit 99b46a3

Please sign in to comment.