connection colors

This commit is contained in:
Jan Prochazka
2021-12-02 16:54:39 +01:00
parent bd12cd5c07
commit e0d4c7844e
4 changed files with 51 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
<script lang="ts">
import _ from 'lodash';
import FormSelectField from '../forms/FormSelectField.svelte';
import { presetPrimaryColors } from '@ant-design/colors';
export let emptyLabel;
</script>
<FormSelectField
isNative
{...$$restProps}
options={[
{ value: '', label: emptyLabel },
..._.keys(presetPrimaryColors).map(color => ({ value: color, label: _.startCase(color) })),
]}
/>