feat(case-converter): added mocking case (#705)

This commit is contained in:
Corentin THOMASSET 2023-10-31 10:52:01 +01:00 committed by GitHub
parent f5eb7a8c49
commit 681f7bf644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,6 +73,13 @@ const formats = computed(() => [
label: 'Snakecase:', label: 'Snakecase:',
value: snakeCase(input.value, baseConfig), value: snakeCase(input.value, baseConfig),
}, },
{
label: 'Mockingcase:',
value: noCase(input.value, baseConfig)
.split('')
.map((char, index) => (index % 2 === 0 ? char.toUpperCase() : char.toLowerCase()))
.join(''),
},
]); ]);
const inputLabelAlignmentConfig = { const inputLabelAlignmentConfig = {