style: type
parent
4639a0cf57
commit
c0ae4a6b3a
|
@ -6,8 +6,8 @@ import { changeConfirmLocale } from '../modal/locale';
|
||||||
import warning from '../_util/warning';
|
import warning from '../_util/warning';
|
||||||
import { withInstall } from '../_util/type';
|
import { withInstall } from '../_util/type';
|
||||||
import type { ValidateMessages } from '../form/interface';
|
import type { ValidateMessages } from '../form/interface';
|
||||||
import { TransferLocale } from '../transfer';
|
import type { TransferLocale } from '../transfer';
|
||||||
import { PickerLocale as DatePickerLocale } from '../date-picker/generatePicker';
|
import type { PickerLocale as DatePickerLocale } from '../date-picker/generatePicker';
|
||||||
|
|
||||||
interface TransferLocaleForEmpty {
|
interface TransferLocaleForEmpty {
|
||||||
description: string;
|
description: string;
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
import locale from '../locale/ku_KU';
|
|
||||||
|
|
||||||
export default locale;
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/ar_EG';
|
||||||
import DatePicker from '../date-picker/locale/ar_EG';
|
import DatePicker from '../date-picker/locale/ar_EG';
|
||||||
import TimePicker from '../time-picker/locale/ar_EG';
|
import TimePicker from '../time-picker/locale/ar_EG';
|
||||||
import Calendar from '../calendar/locale/ar_EG';
|
import Calendar from '../calendar/locale/ar_EG';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = 'ليس ${label} من نوع ${type} صالحًا';
|
const typeTemplate = 'ليس ${label} من نوع ${type} صالحًا';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/az_AZ';
|
||||||
import DatePicker from '../date-picker/locale/az_AZ';
|
import DatePicker from '../date-picker/locale/az_AZ';
|
||||||
import TimePicker from '../time-picker/locale/az_AZ';
|
import TimePicker from '../time-picker/locale/az_AZ';
|
||||||
import Calendar from '../calendar/locale/az_AZ';
|
import Calendar from '../calendar/locale/az_AZ';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'az',
|
locale: 'az',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/bg_BG';
|
||||||
import DatePicker from '../date-picker/locale/bg_BG';
|
import DatePicker from '../date-picker/locale/bg_BG';
|
||||||
import TimePicker from '../time-picker/locale/bg_BG';
|
import TimePicker from '../time-picker/locale/bg_BG';
|
||||||
import Calendar from '../calendar/locale/bg_BG';
|
import Calendar from '../calendar/locale/bg_BG';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'bg',
|
locale: 'bg',
|
||||||
|
|
|
@ -3,9 +3,9 @@ import Pagination from '../vc-pagination/locale/by_BY';
|
||||||
import DatePicker from '../date-picker/locale/by_BY';
|
import DatePicker from '../date-picker/locale/by_BY';
|
||||||
import TimePicker from '../time-picker/locale/by_BY';
|
import TimePicker from '../time-picker/locale/by_BY';
|
||||||
import Calendar from '../calendar/locale/by_BY';
|
import Calendar from '../calendar/locale/by_BY';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate: string = "${label} не з'яўляецца тыпам ${type}";
|
const typeTemplate = "${label} не з'яўляецца тыпам ${type}";
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'by',
|
locale: 'by',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/ca_ES';
|
||||||
import DatePicker from '../date-picker/locale/ca_ES';
|
import DatePicker from '../date-picker/locale/ca_ES';
|
||||||
import TimePicker from '../time-picker/locale/ca_ES';
|
import TimePicker from '../time-picker/locale/ca_ES';
|
||||||
import Calendar from '../calendar/locale/ca_ES';
|
import Calendar from '../calendar/locale/ca_ES';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} no és un ${type} vàlid';
|
const typeTemplate = '${label} no és un ${type} vàlid';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/cs_CZ';
|
||||||
import DatePicker from '../date-picker/locale/cs_CZ';
|
import DatePicker from '../date-picker/locale/cs_CZ';
|
||||||
import TimePicker from '../time-picker/locale/cs_CZ';
|
import TimePicker from '../time-picker/locale/cs_CZ';
|
||||||
import Calendar from '../calendar/locale/cs_CZ';
|
import Calendar from '../calendar/locale/cs_CZ';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'cs',
|
locale: 'cs',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/da_DK';
|
||||||
import DatePicker from '../date-picker/locale/da_DK';
|
import DatePicker from '../date-picker/locale/da_DK';
|
||||||
import TimePicker from '../time-picker/locale/da_DK';
|
import TimePicker from '../time-picker/locale/da_DK';
|
||||||
import Calendar from '../calendar/locale/da_DK';
|
import Calendar from '../calendar/locale/da_DK';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'da',
|
locale: 'da',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/de_DE';
|
||||||
import DatePicker from '../date-picker/locale/de_DE';
|
import DatePicker from '../date-picker/locale/de_DE';
|
||||||
import TimePicker from '../time-picker/locale/de_DE';
|
import TimePicker from '../time-picker/locale/de_DE';
|
||||||
import Calendar from '../calendar/locale/de_DE';
|
import Calendar from '../calendar/locale/de_DE';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} ist nicht gültig. ${type} erwartet';
|
const typeTemplate = '${label} ist nicht gültig. ${type} erwartet';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/en_US';
|
||||||
import DatePicker from '../date-picker/locale/en_US';
|
import DatePicker from '../date-picker/locale/en_US';
|
||||||
import TimePicker from '../time-picker/locale/en_US';
|
import TimePicker from '../time-picker/locale/en_US';
|
||||||
import Calendar from '../calendar/locale/en_US';
|
import Calendar from '../calendar/locale/en_US';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} is not a valid ${type}';
|
const typeTemplate = '${label} is not a valid ${type}';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/el_GR';
|
||||||
import DatePicker from '../date-picker/locale/el_GR';
|
import DatePicker from '../date-picker/locale/el_GR';
|
||||||
import TimePicker from '../time-picker/locale/el_GR';
|
import TimePicker from '../time-picker/locale/el_GR';
|
||||||
import Calendar from '../calendar/locale/el_GR';
|
import Calendar from '../calendar/locale/el_GR';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'el',
|
locale: 'el',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/en_GB';
|
||||||
import DatePicker from '../date-picker/locale/en_GB';
|
import DatePicker from '../date-picker/locale/en_GB';
|
||||||
import TimePicker from '../time-picker/locale/en_GB';
|
import TimePicker from '../time-picker/locale/en_GB';
|
||||||
import Calendar from '../calendar/locale/en_GB';
|
import Calendar from '../calendar/locale/en_GB';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} is not a valid ${type}';
|
const typeTemplate = '${label} is not a valid ${type}';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/es_ES';
|
||||||
import DatePicker from '../date-picker/locale/es_ES';
|
import DatePicker from '../date-picker/locale/es_ES';
|
||||||
import TimePicker from '../time-picker/locale/es_ES';
|
import TimePicker from '../time-picker/locale/es_ES';
|
||||||
import Calendar from '../calendar/locale/es_ES';
|
import Calendar from '../calendar/locale/es_ES';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} no es un ${type} válido';
|
const typeTemplate = '${label} no es un ${type} válido';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/et_EE';
|
||||||
import DatePicker from '../date-picker/locale/et_EE';
|
import DatePicker from '../date-picker/locale/et_EE';
|
||||||
import TimePicker from '../time-picker/locale/et_EE';
|
import TimePicker from '../time-picker/locale/et_EE';
|
||||||
import Calendar from '../calendar/locale/et_EE';
|
import Calendar from '../calendar/locale/et_EE';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'et',
|
locale: 'et',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/fa_IR';
|
||||||
import DatePicker from '../date-picker/locale/fa_IR';
|
import DatePicker from '../date-picker/locale/fa_IR';
|
||||||
import TimePicker from '../time-picker/locale/fa_IR';
|
import TimePicker from '../time-picker/locale/fa_IR';
|
||||||
import Calendar from '../calendar/locale/fa_IR';
|
import Calendar from '../calendar/locale/fa_IR';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} از نوع ${type} معتبر نیست';
|
const typeTemplate = '${label} از نوع ${type} معتبر نیست';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/fi_FI';
|
||||||
import DatePicker from '../date-picker/locale/fi_FI';
|
import DatePicker from '../date-picker/locale/fi_FI';
|
||||||
import TimePicker from '../time-picker/locale/fi_FI';
|
import TimePicker from '../time-picker/locale/fi_FI';
|
||||||
import Calendar from '../calendar/locale/fi_FI';
|
import Calendar from '../calendar/locale/fi_FI';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'fi',
|
locale: 'fi',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/fr_BE';
|
||||||
import DatePicker from '../date-picker/locale/fr_BE';
|
import DatePicker from '../date-picker/locale/fr_BE';
|
||||||
import TimePicker from '../time-picker/locale/fr_BE';
|
import TimePicker from '../time-picker/locale/fr_BE';
|
||||||
import Calendar from '../calendar/locale/fr_BE';
|
import Calendar from '../calendar/locale/fr_BE';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'fr',
|
locale: 'fr',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/fr_CA';
|
||||||
import DatePicker from '../date-picker/locale/fr_CA';
|
import DatePicker from '../date-picker/locale/fr_CA';
|
||||||
import TimePicker from '../time-picker/locale/fr_CA';
|
import TimePicker from '../time-picker/locale/fr_CA';
|
||||||
import Calendar from '../calendar/locale/fr_CA';
|
import Calendar from '../calendar/locale/fr_CA';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'fr',
|
locale: 'fr',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/fr_FR';
|
||||||
import DatePicker from '../date-picker/locale/fr_FR';
|
import DatePicker from '../date-picker/locale/fr_FR';
|
||||||
import TimePicker from '../time-picker/locale/fr_FR';
|
import TimePicker from '../time-picker/locale/fr_FR';
|
||||||
import Calendar from '../calendar/locale/fr_FR';
|
import Calendar from '../calendar/locale/fr_FR';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = "La valeur du champ ${label} n'est pas valide pour le type ${type}";
|
const typeTemplate = "La valeur du champ ${label} n'est pas valide pour le type ${type}";
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/ga_IE';
|
||||||
import DatePicker from '../date-picker/locale/ga_IE';
|
import DatePicker from '../date-picker/locale/ga_IE';
|
||||||
import TimePicker from '../time-picker/locale/ga_IE';
|
import TimePicker from '../time-picker/locale/ga_IE';
|
||||||
import Calendar from '../calendar/locale/ga_IE';
|
import Calendar from '../calendar/locale/ga_IE';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} is not a valid ${type}';
|
const typeTemplate = '${label} is not a valid ${type}';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/gl_ES';
|
||||||
import DatePicker from '../date-picker/locale/gl_ES';
|
import DatePicker from '../date-picker/locale/gl_ES';
|
||||||
import TimePicker from '../time-picker/locale/gl_ES';
|
import TimePicker from '../time-picker/locale/gl_ES';
|
||||||
import Calendar from '../calendar/locale/gl_ES';
|
import Calendar from '../calendar/locale/gl_ES';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} non é un ${type} válido';
|
const typeTemplate = '${label} non é un ${type} válido';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/he_IL';
|
||||||
import DatePicker from '../date-picker/locale/he_IL';
|
import DatePicker from '../date-picker/locale/he_IL';
|
||||||
import TimePicker from '../time-picker/locale/he_IL';
|
import TimePicker from '../time-picker/locale/he_IL';
|
||||||
import Calendar from '../calendar/locale/he_IL';
|
import Calendar from '../calendar/locale/he_IL';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} הוא לא ${type} תקין';
|
const typeTemplate = '${label} הוא לא ${type} תקין';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/hi_IN';
|
||||||
import DatePicker from '../date-picker/locale/hi_IN';
|
import DatePicker from '../date-picker/locale/hi_IN';
|
||||||
import TimePicker from '../time-picker/locale/hi_IN';
|
import TimePicker from '../time-picker/locale/hi_IN';
|
||||||
import Calendar from '../calendar/locale/hi_IN';
|
import Calendar from '../calendar/locale/hi_IN';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} मान्य ${type} नहीं है';
|
const typeTemplate = '${label} मान्य ${type} नहीं है';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/hr_HR';
|
||||||
import DatePicker from '../date-picker/locale/hr_HR';
|
import DatePicker from '../date-picker/locale/hr_HR';
|
||||||
import TimePicker from '../time-picker/locale/hr_HR';
|
import TimePicker from '../time-picker/locale/hr_HR';
|
||||||
import Calendar from '../calendar/locale/hr_HR';
|
import Calendar from '../calendar/locale/hr_HR';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} nije valjan ${type}';
|
const typeTemplate = '${label} nije valjan ${type}';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/hu_HU';
|
||||||
import DatePicker from '../date-picker/locale/hu_HU';
|
import DatePicker from '../date-picker/locale/hu_HU';
|
||||||
import TimePicker from '../time-picker/locale/hu_HU';
|
import TimePicker from '../time-picker/locale/hu_HU';
|
||||||
import Calendar from '../calendar/locale/hu_HU';
|
import Calendar from '../calendar/locale/hu_HU';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'hu',
|
locale: 'hu',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
import { PickerLocale } from '../date-picker/generatePicker';
|
import type { PickerLocale } from '../date-picker/generatePicker';
|
||||||
|
|
||||||
const datePickerLocale: PickerLocale = {
|
const datePickerLocale: PickerLocale = {
|
||||||
lang: {
|
lang: {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/id_ID';
|
||||||
import DatePicker from '../date-picker/locale/id_ID';
|
import DatePicker from '../date-picker/locale/id_ID';
|
||||||
import TimePicker from '../time-picker/locale/id_ID';
|
import TimePicker from '../time-picker/locale/id_ID';
|
||||||
import Calendar from '../calendar/locale/id_ID';
|
import Calendar from '../calendar/locale/id_ID';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'id',
|
locale: 'id',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/is_IS';
|
||||||
import DatePicker from '../date-picker/locale/is_IS';
|
import DatePicker from '../date-picker/locale/is_IS';
|
||||||
import TimePicker from '../time-picker/locale/is_IS';
|
import TimePicker from '../time-picker/locale/is_IS';
|
||||||
import Calendar from '../calendar/locale/is_IS';
|
import Calendar from '../calendar/locale/is_IS';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'is',
|
locale: 'is',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/it_IT';
|
||||||
import DatePicker from '../date-picker/locale/it_IT';
|
import DatePicker from '../date-picker/locale/it_IT';
|
||||||
import TimePicker from '../time-picker/locale/it_IT';
|
import TimePicker from '../time-picker/locale/it_IT';
|
||||||
import Calendar from '../calendar/locale/it_IT';
|
import Calendar from '../calendar/locale/it_IT';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'it',
|
locale: 'it',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/ja_JP';
|
||||||
import DatePicker from '../date-picker/locale/ja_JP';
|
import DatePicker from '../date-picker/locale/ja_JP';
|
||||||
import TimePicker from '../time-picker/locale/ja_JP';
|
import TimePicker from '../time-picker/locale/ja_JP';
|
||||||
import Calendar from '../calendar/locale/ja_JP';
|
import Calendar from '../calendar/locale/ja_JP';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label}は有効な${type}ではありません';
|
const typeTemplate = '${label}は有効な${type}ではありません';
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ import Pagination from '../vc-pagination/locale/kk_KZ';
|
||||||
import DatePicker from '../date-picker/locale/kk_KZ';
|
import DatePicker from '../date-picker/locale/kk_KZ';
|
||||||
import TimePicker from '../time-picker/locale/kk_KZ';
|
import TimePicker from '../time-picker/locale/kk_KZ';
|
||||||
import Calendar from '../calendar/locale/kk_KZ';
|
import Calendar from '../calendar/locale/kk_KZ';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate: string = '${label} ${type} типі емес';
|
const typeTemplate = '${label} ${type} типі емес';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'kk',
|
locale: 'kk',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/kmr_IQ';
|
||||||
import DatePicker from '../date-picker/locale/kmr_IQ';
|
import DatePicker from '../date-picker/locale/kmr_IQ';
|
||||||
import TimePicker from '../time-picker/locale/kmr_IQ';
|
import TimePicker from '../time-picker/locale/kmr_IQ';
|
||||||
import Calendar from '../calendar/locale/kmr_IQ';
|
import Calendar from '../calendar/locale/kmr_IQ';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'ku',
|
locale: 'ku',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/kn_IN';
|
||||||
import DatePicker from '../date-picker/locale/kn_IN';
|
import DatePicker from '../date-picker/locale/kn_IN';
|
||||||
import TimePicker from '../time-picker/locale/kn_IN';
|
import TimePicker from '../time-picker/locale/kn_IN';
|
||||||
import Calendar from '../calendar/locale/kn_IN';
|
import Calendar from '../calendar/locale/kn_IN';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'kn',
|
locale: 'kn',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/ko_KR';
|
||||||
import DatePicker from '../date-picker/locale/ko_KR';
|
import DatePicker from '../date-picker/locale/ko_KR';
|
||||||
import TimePicker from '../time-picker/locale/ko_KR';
|
import TimePicker from '../time-picker/locale/ko_KR';
|
||||||
import Calendar from '../calendar/locale/ko_KR';
|
import Calendar from '../calendar/locale/ko_KR';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} 유효하지 않은 ${type}';
|
const typeTemplate = '${label} 유효하지 않은 ${type}';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/kmr_IQ';
|
||||||
import DatePicker from '../date-picker/locale/kmr_IQ';
|
import DatePicker from '../date-picker/locale/kmr_IQ';
|
||||||
import TimePicker from '../time-picker/locale/kmr_IQ';
|
import TimePicker from '../time-picker/locale/kmr_IQ';
|
||||||
import Calendar from '../calendar/locale/kmr_IQ';
|
import Calendar from '../calendar/locale/kmr_IQ';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
// please use antd/lib/locale/kmr_IQ instead
|
// please use antd/lib/locale/kmr_IQ instead
|
||||||
// keep this file for compatibility
|
// keep this file for compatibility
|
||||||
|
|
|
@ -4,9 +4,9 @@ import Pagination from '../vc-pagination/locale/lt_LT';
|
||||||
import DatePicker from '../date-picker/locale/lt_LT';
|
import DatePicker from '../date-picker/locale/lt_LT';
|
||||||
import TimePicker from '../time-picker/locale/lt_LT';
|
import TimePicker from '../time-picker/locale/lt_LT';
|
||||||
import Calendar from '../calendar/locale/lt_LT';
|
import Calendar from '../calendar/locale/lt_LT';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate: string = '${label} не является типом ${type}';
|
const typeTemplate = '${label} не является типом ${type}';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'lt',
|
locale: 'lt',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/lv_LV';
|
||||||
import DatePicker from '../date-picker/locale/lv_LV';
|
import DatePicker from '../date-picker/locale/lv_LV';
|
||||||
import TimePicker from '../time-picker/locale/lv_LV';
|
import TimePicker from '../time-picker/locale/lv_LV';
|
||||||
import Calendar from '../calendar/locale/lv_LV';
|
import Calendar from '../calendar/locale/lv_LV';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'lv',
|
locale: 'lv',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/mk_MK';
|
||||||
import DatePicker from '../date-picker/locale/mk_MK';
|
import DatePicker from '../date-picker/locale/mk_MK';
|
||||||
import TimePicker from '../time-picker/locale/mk_MK';
|
import TimePicker from '../time-picker/locale/mk_MK';
|
||||||
import Calendar from '../calendar/locale/mk_MK';
|
import Calendar from '../calendar/locale/mk_MK';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'mk',
|
locale: 'mk',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/mn_MN';
|
||||||
import DatePicker from '../date-picker/locale/mn_MN';
|
import DatePicker from '../date-picker/locale/mn_MN';
|
||||||
import TimePicker from '../time-picker/locale/mn_MN';
|
import TimePicker from '../time-picker/locale/mn_MN';
|
||||||
import Calendar from '../calendar/locale/mn_MN';
|
import Calendar from '../calendar/locale/mn_MN';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'mn-mn',
|
locale: 'mn-mn',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/ms_MY';
|
||||||
import DatePicker from '../date-picker/locale/ms_MY';
|
import DatePicker from '../date-picker/locale/ms_MY';
|
||||||
import TimePicker from '../time-picker/locale/ms_MY';
|
import TimePicker from '../time-picker/locale/ms_MY';
|
||||||
import Calendar from '../calendar/locale/ms_MY';
|
import Calendar from '../calendar/locale/ms_MY';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'ms-my',
|
locale: 'ms-my',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/nb_NO';
|
||||||
import DatePicker from '../date-picker/locale/nb_NO';
|
import DatePicker from '../date-picker/locale/nb_NO';
|
||||||
import TimePicker from '../time-picker/locale/nb_NO';
|
import TimePicker from '../time-picker/locale/nb_NO';
|
||||||
import Calendar from '../calendar/locale/nb_NO';
|
import Calendar from '../calendar/locale/nb_NO';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} er ikke et gyldig ${type}';
|
const typeTemplate = '${label} er ikke et gyldig ${type}';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/en_US';
|
||||||
import DatePicker from '../date-picker/locale/en_US';
|
import DatePicker from '../date-picker/locale/en_US';
|
||||||
import TimePicker from '../time-picker/locale/en_US';
|
import TimePicker from '../time-picker/locale/en_US';
|
||||||
import Calendar from '../calendar/locale/en_US';
|
import Calendar from '../calendar/locale/en_US';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'ne-np',
|
locale: 'ne-np',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/nl_BE';
|
||||||
import DatePicker from '../date-picker/locale/nl_BE';
|
import DatePicker from '../date-picker/locale/nl_BE';
|
||||||
import TimePicker from '../time-picker/locale/nl_BE';
|
import TimePicker from '../time-picker/locale/nl_BE';
|
||||||
import Calendar from '../calendar/locale/nl_BE';
|
import Calendar from '../calendar/locale/nl_BE';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} is geen geldige ${type}';
|
const typeTemplate = '${label} is geen geldige ${type}';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/nl_NL';
|
||||||
import DatePicker from '../date-picker/locale/nl_NL';
|
import DatePicker from '../date-picker/locale/nl_NL';
|
||||||
import TimePicker from '../time-picker/locale/nl_NL';
|
import TimePicker from '../time-picker/locale/nl_NL';
|
||||||
import Calendar from '../calendar/locale/nl_NL';
|
import Calendar from '../calendar/locale/nl_NL';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} is geen geldige ${type}';
|
const typeTemplate = '${label} is geen geldige ${type}';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/pl_PL';
|
||||||
import DatePicker from '../date-picker/locale/pl_PL';
|
import DatePicker from '../date-picker/locale/pl_PL';
|
||||||
import TimePicker from '../time-picker/locale/pl_PL';
|
import TimePicker from '../time-picker/locale/pl_PL';
|
||||||
import Calendar from '../calendar/locale/pl_PL';
|
import Calendar from '../calendar/locale/pl_PL';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'pl',
|
locale: 'pl',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/pt_BR';
|
||||||
import DatePicker from '../date-picker/locale/pt_BR';
|
import DatePicker from '../date-picker/locale/pt_BR';
|
||||||
import TimePicker from '../time-picker/locale/pt_BR';
|
import TimePicker from '../time-picker/locale/pt_BR';
|
||||||
import Calendar from '../calendar/locale/pt_BR';
|
import Calendar from '../calendar/locale/pt_BR';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} não é um ${type} válido';
|
const typeTemplate = '${label} não é um ${type} válido';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/pt_PT';
|
||||||
import DatePicker from '../date-picker/locale/pt_PT';
|
import DatePicker from '../date-picker/locale/pt_PT';
|
||||||
import TimePicker from '../time-picker/locale/pt_PT';
|
import TimePicker from '../time-picker/locale/pt_PT';
|
||||||
import Calendar from '../calendar/locale/pt_PT';
|
import Calendar from '../calendar/locale/pt_PT';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'pt',
|
locale: 'pt',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/ro_RO';
|
||||||
import DatePicker from '../date-picker/locale/ro_RO';
|
import DatePicker from '../date-picker/locale/ro_RO';
|
||||||
import TimePicker from '../time-picker/locale/ro_RO';
|
import TimePicker from '../time-picker/locale/ro_RO';
|
||||||
import Calendar from '../calendar/locale/ro_RO';
|
import Calendar from '../calendar/locale/ro_RO';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} nu conține tipul corect (${type})';
|
const typeTemplate = '${label} nu conține tipul corect (${type})';
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ import Pagination from '../vc-pagination/locale/ru_RU';
|
||||||
import DatePicker from '../date-picker/locale/ru_RU';
|
import DatePicker from '../date-picker/locale/ru_RU';
|
||||||
import TimePicker from '../time-picker/locale/ru_RU';
|
import TimePicker from '../time-picker/locale/ru_RU';
|
||||||
import Calendar from '../calendar/locale/ru_RU';
|
import Calendar from '../calendar/locale/ru_RU';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate: string = '${label} не является типом ${type}';
|
const typeTemplate = '${label} не является типом ${type}';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'ru',
|
locale: 'ru',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/sk_SK';
|
||||||
import DatePicker from '../date-picker/locale/sk_SK';
|
import DatePicker from '../date-picker/locale/sk_SK';
|
||||||
import TimePicker from '../time-picker/locale/sk_SK';
|
import TimePicker from '../time-picker/locale/sk_SK';
|
||||||
import Calendar from '../calendar/locale/sk_SK';
|
import Calendar from '../calendar/locale/sk_SK';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'sk',
|
locale: 'sk',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/sl_SI';
|
||||||
import DatePicker from '../date-picker/locale/sl_SI';
|
import DatePicker from '../date-picker/locale/sl_SI';
|
||||||
import TimePicker from '../time-picker/locale/sl_SI';
|
import TimePicker from '../time-picker/locale/sl_SI';
|
||||||
import Calendar from '../calendar/locale/sl_SI';
|
import Calendar from '../calendar/locale/sl_SI';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'sl',
|
locale: 'sl',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/sr_RS';
|
||||||
import DatePicker from '../date-picker/locale/sr_RS';
|
import DatePicker from '../date-picker/locale/sr_RS';
|
||||||
import TimePicker from '../time-picker/locale/sr_RS';
|
import TimePicker from '../time-picker/locale/sr_RS';
|
||||||
import Calendar from '../calendar/locale/sr_RS';
|
import Calendar from '../calendar/locale/sr_RS';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} nije važeći ${type}';
|
const typeTemplate = '${label} nije važeći ${type}';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/sv_SE';
|
||||||
import DatePicker from '../date-picker/locale/sv_SE';
|
import DatePicker from '../date-picker/locale/sv_SE';
|
||||||
import TimePicker from '../time-picker/locale/sv_SE';
|
import TimePicker from '../time-picker/locale/sv_SE';
|
||||||
import Calendar from '../calendar/locale/sv_SE';
|
import Calendar from '../calendar/locale/sv_SE';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} är inte en giltig ${type}';
|
const typeTemplate = '${label} är inte en giltig ${type}';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/ta_IN';
|
||||||
import DatePicker from '../date-picker/locale/ta_IN';
|
import DatePicker from '../date-picker/locale/ta_IN';
|
||||||
import TimePicker from '../time-picker/locale/ta_IN';
|
import TimePicker from '../time-picker/locale/ta_IN';
|
||||||
import Calendar from '../calendar/locale/ta_IN';
|
import Calendar from '../calendar/locale/ta_IN';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'ta',
|
locale: 'ta',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/th_TH';
|
||||||
import DatePicker from '../date-picker/locale/th_TH';
|
import DatePicker from '../date-picker/locale/th_TH';
|
||||||
import TimePicker from '../time-picker/locale/th_TH';
|
import TimePicker from '../time-picker/locale/th_TH';
|
||||||
import Calendar from '../calendar/locale/th_TH';
|
import Calendar from '../calendar/locale/th_TH';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} ไม่ใช่ ${type} ที่ถูกต้อง';
|
const typeTemplate = '${label} ไม่ใช่ ${type} ที่ถูกต้อง';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/tr_TR';
|
||||||
import DatePicker from '../date-picker/locale/tr_TR';
|
import DatePicker from '../date-picker/locale/tr_TR';
|
||||||
import TimePicker from '../time-picker/locale/tr_TR';
|
import TimePicker from '../time-picker/locale/tr_TR';
|
||||||
import Calendar from '../calendar/locale/tr_TR';
|
import Calendar from '../calendar/locale/tr_TR';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label} geçerli bir ${type} değil';
|
const typeTemplate = '${label} geçerli bir ${type} değil';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/uk_UA';
|
||||||
import DatePicker from '../date-picker/locale/uk_UA';
|
import DatePicker from '../date-picker/locale/uk_UA';
|
||||||
import TimePicker from '../time-picker/locale/uk_UA';
|
import TimePicker from '../time-picker/locale/uk_UA';
|
||||||
import Calendar from '../calendar/locale/uk_UA';
|
import Calendar from '../calendar/locale/uk_UA';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'uk',
|
locale: 'uk',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Pagination from '../vc-pagination/locale/vi_VN';
|
||||||
import DatePicker from '../date-picker/locale/vi_VN';
|
import DatePicker from '../date-picker/locale/vi_VN';
|
||||||
import TimePicker from '../time-picker/locale/vi_VN';
|
import TimePicker from '../time-picker/locale/vi_VN';
|
||||||
import Calendar from '../calendar/locale/vi_VN';
|
import Calendar from '../calendar/locale/vi_VN';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'vi',
|
locale: 'vi',
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/zh_CN';
|
||||||
import DatePicker from '../date-picker/locale/zh_CN';
|
import DatePicker from '../date-picker/locale/zh_CN';
|
||||||
import TimePicker from '../time-picker/locale/zh_CN';
|
import TimePicker from '../time-picker/locale/zh_CN';
|
||||||
import Calendar from '../calendar/locale/zh_CN';
|
import Calendar from '../calendar/locale/zh_CN';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label}不是一个有效的${type}';
|
const typeTemplate = '${label}不是一个有效的${type}';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/zh_TW';
|
||||||
import DatePicker from '../date-picker/locale/zh_TW';
|
import DatePicker from '../date-picker/locale/zh_TW';
|
||||||
import TimePicker from '../time-picker/locale/zh_TW';
|
import TimePicker from '../time-picker/locale/zh_TW';
|
||||||
import Calendar from '../calendar/locale/zh_TW';
|
import Calendar from '../calendar/locale/zh_TW';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label}不是一個有效的${type}';
|
const typeTemplate = '${label}不是一個有效的${type}';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import Pagination from '../vc-pagination/locale/zh_TW';
|
||||||
import DatePicker from '../date-picker/locale/zh_TW';
|
import DatePicker from '../date-picker/locale/zh_TW';
|
||||||
import TimePicker from '../time-picker/locale/zh_TW';
|
import TimePicker from '../time-picker/locale/zh_TW';
|
||||||
import Calendar from '../calendar/locale/zh_TW';
|
import Calendar from '../calendar/locale/zh_TW';
|
||||||
import { Locale } from '../locale-provider';
|
import type { Locale } from '../locale-provider';
|
||||||
|
|
||||||
const typeTemplate = '${label}不是一個有效的${type}';
|
const typeTemplate = '${label}不是一個有效的${type}';
|
||||||
|
|
||||||
|
|
|
@ -36,14 +36,14 @@ function createTimePicker<DateType>(generateConfig: GenerateConfig<DateType>) {
|
||||||
order: { type: Boolean, default: true },
|
order: { type: Boolean, default: true },
|
||||||
});
|
});
|
||||||
const { TimePicker: InternalTimePicker, RangePicker: InternalRangePicker } = DatePicker as any;
|
const { TimePicker: InternalTimePicker, RangePicker: InternalRangePicker } = DatePicker as any;
|
||||||
interface TimeRangePickerProps extends Omit<RangePickerTimeProps<DateType>, 'picker'> {
|
type TimeRangePickerProps = Omit<RangePickerTimeProps<DateType>, 'picker'> & {
|
||||||
popupClassName?: string;
|
popupClassName?: string;
|
||||||
valueFormat?: string;
|
valueFormat?: string;
|
||||||
}
|
};
|
||||||
interface TimePickerProps extends Omit<PickerTimeProps<DateType>, 'picker'> {
|
type TimePickerProps = Omit<PickerTimeProps<DateType>, 'picker'> & {
|
||||||
popupClassName?: string;
|
popupClassName?: string;
|
||||||
valueFormat?: string;
|
valueFormat?: string;
|
||||||
}
|
};
|
||||||
const TimePicker = defineComponent<TimePickerProps>({
|
const TimePicker = defineComponent<TimePickerProps>({
|
||||||
name: 'ATimePicker',
|
name: 'ATimePicker',
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
|
|
|
@ -28,7 +28,7 @@ import usePickerInput from './hooks/usePickerInput';
|
||||||
import useTextValueMapping from './hooks/useTextValueMapping';
|
import useTextValueMapping from './hooks/useTextValueMapping';
|
||||||
import useValueTexts from './hooks/useValueTexts';
|
import useValueTexts from './hooks/useValueTexts';
|
||||||
import useHoverValue from './hooks/useHoverValue';
|
import useHoverValue from './hooks/useHoverValue';
|
||||||
import type { CSSProperties, HtmlHTMLAttributes, Ref } from 'vue';
|
import type { CSSProperties, Ref } from 'vue';
|
||||||
import { computed, defineComponent, ref, toRef, watch } from 'vue';
|
import { computed, defineComponent, ref, toRef, watch } from 'vue';
|
||||||
import type { ChangeEvent, FocusEventHandler, MouseEventHandler } from '../_util/EventInterface';
|
import type { ChangeEvent, FocusEventHandler, MouseEventHandler } from '../_util/EventInterface';
|
||||||
import type { VueNode } from '../_util/type';
|
import type { VueNode } from '../_util/type';
|
||||||
|
@ -93,7 +93,7 @@ export type PickerSharedProps<DateType> = {
|
||||||
direction?: 'ltr' | 'rtl';
|
direction?: 'ltr' | 'rtl';
|
||||||
showToday?: boolean;
|
showToday?: boolean;
|
||||||
showTime?: boolean | SharedTimeProps<DateType>;
|
showTime?: boolean | SharedTimeProps<DateType>;
|
||||||
} & HtmlHTMLAttributes;
|
};
|
||||||
|
|
||||||
type OmitPanelProps<Props> = Omit<
|
type OmitPanelProps<Props> = Omit<
|
||||||
Props,
|
Props,
|
||||||
|
@ -442,7 +442,9 @@ function Picker<DateType>() {
|
||||||
// Remove `picker` & `format` here since TimePicker is little different with other panel
|
// Remove `picker` & `format` here since TimePicker is little different with other panel
|
||||||
...(props as Omit<MergedPickerProps<DateType>, 'picker' | 'format'>),
|
...(props as Omit<MergedPickerProps<DateType>, 'picker' | 'format'>),
|
||||||
...attrs,
|
...attrs,
|
||||||
class: undefined,
|
class: classNames({
|
||||||
|
[`${prefixCls}-panel-focused`]: !typing.value,
|
||||||
|
}),
|
||||||
style: undefined,
|
style: undefined,
|
||||||
pickerValue: undefined,
|
pickerValue: undefined,
|
||||||
onPickerValueChange: undefined,
|
onPickerValueChange: undefined,
|
||||||
|
@ -453,9 +455,6 @@ function Picker<DateType>() {
|
||||||
<PickerPanel
|
<PickerPanel
|
||||||
{...panelProps}
|
{...panelProps}
|
||||||
generateConfig={generateConfig}
|
generateConfig={generateConfig}
|
||||||
class={classNames({
|
|
||||||
[`${prefixCls}-panel-focused`]: !typing.value,
|
|
||||||
})}
|
|
||||||
value={selectedValue.value}
|
value={selectedValue.value}
|
||||||
locale={locale}
|
locale={locale}
|
||||||
tabindex={-1}
|
tabindex={-1}
|
||||||
|
|
|
@ -33,7 +33,6 @@ import getExtraFooter from './utils/getExtraFooter';
|
||||||
import getRanges from './utils/getRanges';
|
import getRanges from './utils/getRanges';
|
||||||
import { getLowerBoundTime, setDateTime, setTime } from './utils/timeUtil';
|
import { getLowerBoundTime, setDateTime, setTime } from './utils/timeUtil';
|
||||||
import type { VueNode } from '../_util/type';
|
import type { VueNode } from '../_util/type';
|
||||||
import type { HTMLAttributes } from 'vue';
|
|
||||||
import { computed, createVNode, defineComponent, ref, toRef, watch, watchEffect } from 'vue';
|
import { computed, createVNode, defineComponent, ref, toRef, watch, watchEffect } from 'vue';
|
||||||
import useMergedState from '../_util/hooks/useMergedState';
|
import useMergedState from '../_util/hooks/useMergedState';
|
||||||
import { warning } from '../vc-util/warning';
|
import { warning } from '../vc-util/warning';
|
||||||
|
@ -84,7 +83,7 @@ export type PickerPanelSharedProps<DateType> = {
|
||||||
|
|
||||||
/** @private Internal usage. Do not use in your production env */
|
/** @private Internal usage. Do not use in your production env */
|
||||||
components?: Components;
|
components?: Components;
|
||||||
} & Omit<HTMLAttributes, 'onSelect'>;
|
};
|
||||||
|
|
||||||
export type PickerPanelBaseProps<DateType> = {
|
export type PickerPanelBaseProps<DateType> = {
|
||||||
picker: Exclude<PickerMode, 'date' | 'time'>;
|
picker: Exclude<PickerMode, 'date' | 'time'>;
|
||||||
|
|
|
@ -30,7 +30,6 @@ import type { DateRender } from './panels/DatePanel/DateBody';
|
||||||
import useHoverValue from './hooks/useHoverValue';
|
import useHoverValue from './hooks/useHoverValue';
|
||||||
import type { VueNode } from '../_util/type';
|
import type { VueNode } from '../_util/type';
|
||||||
import type { ChangeEvent, FocusEventHandler, MouseEventHandler } from '../_util/EventInterface';
|
import type { ChangeEvent, FocusEventHandler, MouseEventHandler } from '../_util/EventInterface';
|
||||||
import type { HTMLAttributes } from 'vue';
|
|
||||||
import { computed, defineComponent, ref, toRef, watch, watchEffect } from 'vue';
|
import { computed, defineComponent, ref, toRef, watch, watchEffect } from 'vue';
|
||||||
import useMergedState from '../_util/hooks/useMergedState';
|
import useMergedState from '../_util/hooks/useMergedState';
|
||||||
import { warning } from '../vc-util/warning';
|
import { warning } from '../vc-util/warning';
|
||||||
|
@ -114,7 +113,7 @@ export type RangePickerSharedProps<DateType> = {
|
||||||
activePickerIndex?: 0 | 1;
|
activePickerIndex?: 0 | 1;
|
||||||
dateRender?: RangeDateRender<DateType>;
|
dateRender?: RangeDateRender<DateType>;
|
||||||
panelRender?: (originPanel: VueNode) => VueNode;
|
panelRender?: (originPanel: VueNode) => VueNode;
|
||||||
} & HTMLAttributes;
|
};
|
||||||
|
|
||||||
type OmitPickerProps<Props> = Omit<
|
type OmitPickerProps<Props> = Omit<
|
||||||
Props,
|
Props,
|
||||||
|
|
Loading…
Reference in New Issue