Skip to content

Commit

Permalink
feat: move param-case to shared (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
MisicDemone authored Feb 17, 2021
1 parent df56cde commit 6106257
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"camel-case": "^4.1.1",
"cool-path": "^1.0.0",
"lower-case": "^2.0.1",
"param-case": "^3.0.4",
"pascal-case": "^3.1.1",
"upper-case": "^2.0.1"
}
}
}
3 changes: 2 additions & 1 deletion packages/shared/src/case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import { camelCase } from 'camel-case'
import { pascalCase } from 'pascal-case'
import { lowerCase } from 'lower-case'
import { upperCase } from 'upper-case'
import { paramCase } from 'param-case'

export { lowerCase, upperCase, camelCase, pascalCase }
export { lowerCase, upperCase, camelCase, pascalCase, paramCase }
1 change: 0 additions & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@formily/core": "^2.0.0-beta.3",
"@formily/shared": "^2.0.0-beta.3",
"@formily/validator": "^2.0.0-beta.3",
"param-case": "^3.0.4",
"vue-demi": "latest"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/utils/resolve-schema-props.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { paramCase } from "param-case";
import { paramCase } from "@formily/shared";

export const resolveSchemaProps = (props: Record<string, any>) => {
const newProps = {}
Expand Down

0 comments on commit 6106257

Please sign in to comment.