Skip to content

Commit 6106257

Browse files
authored
feat: move param-case to shared (#1152)
1 parent df56cde commit 6106257

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

packages/shared/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"camel-case": "^4.1.1",
3838
"cool-path": "^1.0.0",
3939
"lower-case": "^2.0.1",
40+
"param-case": "^3.0.4",
4041
"pascal-case": "^3.1.1",
4142
"upper-case": "^2.0.1"
4243
}
43-
}
44+
}

packages/shared/src/case.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ import { camelCase } from 'camel-case'
22
import { pascalCase } from 'pascal-case'
33
import { lowerCase } from 'lower-case'
44
import { upperCase } from 'upper-case'
5+
import { paramCase } from 'param-case'
56

6-
export { lowerCase, upperCase, camelCase, pascalCase }
7+
export { lowerCase, upperCase, camelCase, pascalCase, paramCase }

packages/vue/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"@formily/core": "^2.0.0-beta.3",
2424
"@formily/shared": "^2.0.0-beta.3",
2525
"@formily/validator": "^2.0.0-beta.3",
26-
"param-case": "^3.0.4",
2726
"vue-demi": "latest"
2827
},
2928
"peerDependencies": {

packages/vue/src/utils/resolve-schema-props.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { paramCase } from "param-case";
1+
import { paramCase } from "@formily/shared";
22

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

0 commit comments

Comments
 (0)