mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(date-picker): type locale prop using flatpickr types (#906)
Fixes #855
This commit is contained in:
parent
36f6a327b2
commit
a308c89e42
5 changed files with 25 additions and 17 deletions
|
@ -1,8 +1,10 @@
|
|||
<script lang="ts">
|
||||
import { DatePicker, DatePickerSkeleton, DatePickerInput } from "../types";
|
||||
import { Russian } from "flatpickr/dist/l10n/ru.js";
|
||||
</script>
|
||||
|
||||
<DatePicker
|
||||
locale="{Russian}"
|
||||
datePickerType="single"
|
||||
flatpickrProps="{{ static: true }}"
|
||||
on:change
|
||||
|
@ -11,6 +13,7 @@
|
|||
</DatePicker>
|
||||
|
||||
<DatePicker
|
||||
locale="az"
|
||||
on:change="{(e) => {
|
||||
console.log(e.detail);
|
||||
}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue