zartui 3.0.6 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/button/Button.d.ts +3 -0
- package/es/button/Button.mjs +2 -0
- package/es/button/index.d.ts +2 -0
- package/es/calendar/Calendar.d.ts +23 -33
- package/es/calendar/Calendar.mjs +124 -31
- package/es/calendar/CalendarDay.mjs +1 -1
- package/es/calendar/CalendarHeader.d.ts +15 -1
- package/es/calendar/CalendarHeader.mjs +106 -4
- package/es/calendar/CalendarMonth.d.ts +23 -24
- package/es/calendar/CalendarMonth.mjs +49 -8
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +15 -22
- package/es/calendar/types.d.ts +3 -1
- package/es/calendar/utils.d.ts +4 -1
- package/es/calendar/utils.mjs +23 -3
- package/es/cascader/Cascader.mjs +1 -3
- package/es/cascader/index.css +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +2 -2
- package/es/checkbox/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.mjs +3 -1
- package/es/date-time-picker/DateTimePicker.d.ts +1 -1
- package/es/date-time-picker/DateTimePicker.mjs +9 -3
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/es/date-time-picker/index.d.ts +1 -1
- package/es/dialog/Dialog.d.ts +4 -0
- package/es/dialog/Dialog.mjs +24 -9
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +3 -0
- package/es/dialog/types.d.ts +1 -0
- package/es/divider/index.css +1 -1
- package/es/dropdown-item/DropdownItem.mjs +7 -4
- package/es/dropdown-menu/DropdownMenu.mjs +2 -2
- package/es/dropdown-menu/types.d.ts +1 -0
- package/es/empty/Images.mjs +9 -9
- package/es/empty/index.css +1 -1
- package/es/field/Field.d.ts +3 -0
- package/es/field/Field.mjs +2 -1
- package/es/field/index.d.ts +2 -0
- package/es/hierarchy-select/Breadcrumb.d.ts +43 -0
- package/es/hierarchy-select/Breadcrumb.mjs +56 -0
- package/es/hierarchy-select/HierarchySelect.d.ts +104 -0
- package/es/hierarchy-select/HierarchySelect.mjs +221 -0
- package/es/hierarchy-select/index.css +1 -0
- package/es/hierarchy-select/index.d.ts +79 -0
- package/es/hierarchy-select/index.mjs +8 -0
- package/es/hierarchy-select/style/index.d.ts +1 -0
- package/es/hierarchy-select/style/index.mjs +8 -0
- package/es/hierarchy-select/svg/SubIcon.d.ts +1 -0
- package/es/hierarchy-select/svg/SubIcon.mjs +33 -0
- package/es/hierarchy-select/types.d.ts +7 -0
- package/es/hierarchy-select/types.mjs +0 -0
- package/es/icon/config.mjs +4 -1
- package/es/icon/index.css +1 -1
- package/es/image-preview/ImagePreview.mjs +1 -1
- package/es/index-anchor/IndexAnchor.d.ts +11 -0
- package/es/index-anchor/IndexAnchor.mjs +88 -0
- package/es/index-anchor/index.css +1 -0
- package/es/index-anchor/index.d.ts +14 -0
- package/es/index-anchor/index.mjs +10 -0
- package/es/index-anchor/style/index.d.ts +1 -0
- package/es/index-anchor/style/index.mjs +3 -0
- package/es/index-anchor/types.d.ts +11 -0
- package/es/index-anchor/types.mjs +0 -0
- package/es/index-bar/IndexBar.d.ts +64 -0
- package/es/index-bar/IndexBar.mjs +275 -0
- package/es/index-bar/index.css +1 -0
- package/es/index-bar/index.d.ts +50 -0
- package/es/index-bar/index.mjs +10 -0
- package/es/index-bar/style/index.d.ts +1 -0
- package/es/index-bar/style/index.mjs +2 -0
- package/es/index-bar/types.d.ts +16 -0
- package/es/index-bar/types.mjs +0 -0
- package/es/index.d.ts +8 -1
- package/es/index.mjs +22 -1
- package/es/lazyload/vue-lazyload/index.mjs +5 -0
- package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
- package/es/lazyload/vue-lazyload/listener.mjs +45 -0
- package/es/list/List.mjs +2 -4
- package/es/list/index.css +1 -1
- package/es/locale/lang/en-US.d.ts +7 -23
- package/es/locale/lang/en-US.mjs +7 -23
- package/es/locale/lang/zh-CN.d.ts +7 -23
- package/es/locale/lang/zh-CN.mjs +7 -23
- package/es/media-picker/MediaPicker.mjs +20 -0
- package/es/media-picker/image/PickFileIcon.mjs +1 -1
- package/es/media-picker/image/PickPhotoIcon.mjs +1 -1
- package/es/media-picker/image/TakeAudioIcon.mjs +1 -1
- package/es/media-picker/image/TakePhotoIcon.mjs +1 -1
- package/es/media-picker/image/TakeVideoIcon.mjs +1 -1
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/util/media-util.mjs +3 -0
- package/es/media-picker/watermark/image-processor.mjs +10 -6
- package/es/media-picker/watermark/resize-options.mjs +1 -0
- package/es/media-picker/watermark/watermark.mjs +4 -0
- package/es/multiple-picker/MultiplePicker.d.ts +4 -4
- package/es/multiple-picker/MultiplePicker.mjs +3 -3
- package/es/multiple-picker/MultiplePickerOptions.d.ts +4 -4
- package/es/multiple-picker/MultiplePickerOptions.mjs +3 -3
- package/es/multiple-picker/index.d.ts +3 -3
- package/es/notice-bar/index.css +1 -1
- package/es/overlay/index.d.ts +1 -1
- package/es/picker/Picker.mjs +7 -4
- package/es/picker/PickerToolbar.mjs +1 -0
- package/es/popover/Popover.d.ts +13 -0
- package/es/popover/Popover.mjs +99 -4
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +9 -0
- package/es/popup/Popup.mjs +1 -0
- package/es/popup/index.css +1 -1
- package/es/popup/shared.mjs +12 -0
- package/es/radio/Radio.d.ts +1 -1
- package/es/radio/index.d.ts +1 -1
- package/es/rate/index.css +1 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/Search.mjs +1 -0
- package/es/search/index.d.ts +1 -1
- package/es/signature/Signature.mjs +13 -10
- package/es/signature/index.css +1 -1
- package/es/step/Step.mjs +10 -6
- package/es/step/index.css +1 -1
- package/es/stepper/Stepper.mjs +2 -0
- package/es/stepper/index.css +1 -1
- package/es/steps/index.css +1 -1
- package/es/sticky/Sticky.mjs +2 -0
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/swipe/Swipe.d.ts +3 -1
- package/es/swipe/Swipe.mjs +19 -2
- package/es/swipe/index.d.ts +3 -1
- package/es/swipe-cell/SwipeCell.d.ts +44 -0
- package/es/swipe-cell/SwipeCell.mjs +163 -0
- package/es/swipe-cell/index.css +1 -0
- package/es/swipe-cell/index.d.ts +39 -0
- package/es/swipe-cell/index.mjs +10 -0
- package/es/swipe-cell/style/index.d.ts +1 -0
- package/es/swipe-cell/style/index.mjs +2 -0
- package/es/swipe-cell/types.d.ts +9 -0
- package/es/swipe-cell/types.mjs +0 -0
- package/es/switch/index.css +1 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/table/Table.d.ts +118 -0
- package/es/table/Table.mjs +209 -0
- package/es/table/index.css +1 -0
- package/es/table/index.d.ts +77 -0
- package/es/table/index.mjs +10 -0
- package/es/table/style/index.d.ts +1 -0
- package/es/table/style/index.mjs +4 -0
- package/es/table/types.d.ts +5 -0
- package/es/table/types.mjs +8 -0
- package/es/tabs/Tabs.mjs +2 -0
- package/es/tabs/index.css +1 -1
- package/es/tag/Tag.d.ts +21 -1
- package/es/tag/Tag.mjs +63 -10
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +15 -1
- package/es/tag/style/index.mjs +1 -0
- package/es/text-ellipsis/TextEllipsis.d.ts +76 -0
- package/es/text-ellipsis/TextEllipsis.mjs +118 -0
- package/es/text-ellipsis/index.css +1 -0
- package/es/text-ellipsis/index.d.ts +60 -0
- package/es/text-ellipsis/index.mjs +10 -0
- package/es/text-ellipsis/style/index.d.ts +1 -0
- package/es/text-ellipsis/style/index.mjs +2 -0
- package/es/text-ellipsis/types.d.ts +3 -0
- package/es/text-ellipsis/types.mjs +0 -0
- package/es/timeline/Timeline.d.ts +113 -0
- package/es/timeline/Timeline.mjs +162 -0
- package/es/timeline/index.css +1 -0
- package/es/timeline/index.d.ts +75 -0
- package/es/timeline/index.mjs +10 -0
- package/es/timeline/style/index.d.ts +1 -0
- package/es/timeline/style/index.mjs +4 -0
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/UploaderPreviewItem.d.ts +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/uploader/utils.mjs +1 -1
- package/es/utils/dom.d.ts +1 -0
- package/es/utils/dom.mjs +11 -0
- package/lib/action-sheet/index.js +4 -0
- package/lib/avatar/Avatar.js +4 -0
- package/lib/avatar/index.js +4 -0
- package/lib/badge/index.js +4 -0
- package/lib/button/Button.d.ts +3 -0
- package/lib/button/Button.js +2 -0
- package/lib/button/index.d.ts +2 -0
- package/lib/button/index.js +4 -0
- package/lib/calendar/Calendar.d.ts +23 -33
- package/lib/calendar/Calendar.js +127 -30
- package/lib/calendar/CalendarDay.js +1 -1
- package/lib/calendar/CalendarHeader.d.ts +15 -1
- package/lib/calendar/CalendarHeader.js +106 -4
- package/lib/calendar/CalendarMonth.d.ts +23 -24
- package/lib/calendar/CalendarMonth.js +52 -7
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +15 -22
- package/lib/calendar/index.js +4 -0
- package/lib/calendar/types.d.ts +3 -1
- package/lib/calendar/utils.d.ts +4 -1
- package/lib/calendar/utils.js +23 -3
- package/lib/cascader/Cascader.js +5 -3
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.js +4 -0
- package/lib/cell/index.js +4 -0
- package/lib/cell-group/index.js +4 -0
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checkbox.js +4 -0
- package/lib/checkbox/Checker.d.ts +2 -2
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +4 -0
- package/lib/checkbox-group/index.js +4 -0
- package/lib/col/index.js +4 -0
- package/lib/collapse/index.js +4 -0
- package/lib/collapse-item/CollapseItem.js +7 -1
- package/lib/collapse-item/index.js +4 -0
- package/lib/config-provider/index.js +4 -0
- package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
- package/lib/date-time-picker/DateTimePicker.js +13 -3
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/lib/date-time-picker/DateTimePickerWrapper.js +4 -0
- package/lib/date-time-picker/index.d.ts +1 -1
- package/lib/date-time-picker/index.js +4 -0
- package/lib/dialog/Dialog.d.ts +4 -0
- package/lib/dialog/Dialog.js +24 -9
- package/lib/dialog/function-call.js +4 -0
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +3 -0
- package/lib/dialog/index.js +4 -0
- package/lib/dialog/types.d.ts +1 -0
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.js +4 -0
- package/lib/dropdown-item/DropdownItem.js +6 -3
- package/lib/dropdown-item/index.js +4 -0
- package/lib/dropdown-menu/DropdownMenu.js +6 -2
- package/lib/dropdown-menu/index.js +4 -0
- package/lib/dropdown-menu/types.d.ts +1 -0
- package/lib/empty/Images.js +9 -9
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.js +4 -0
- package/lib/field/Field.d.ts +3 -0
- package/lib/field/Field.js +2 -1
- package/lib/field/index.d.ts +2 -0
- package/lib/field/index.js +4 -0
- package/lib/form/index.js +4 -0
- package/lib/grid/index.js +4 -0
- package/lib/grid-item/index.js +4 -0
- package/lib/hierarchy-select/Breadcrumb.d.ts +43 -0
- package/lib/hierarchy-select/Breadcrumb.js +85 -0
- package/lib/hierarchy-select/HierarchySelect.d.ts +104 -0
- package/lib/hierarchy-select/HierarchySelect.js +250 -0
- package/lib/hierarchy-select/index.css +1 -0
- package/lib/hierarchy-select/index.d.ts +79 -0
- package/lib/hierarchy-select/index.js +37 -0
- package/lib/hierarchy-select/style/index.d.ts +1 -0
- package/lib/hierarchy-select/style/index.js +8 -0
- package/lib/hierarchy-select/svg/SubIcon.d.ts +1 -0
- package/lib/hierarchy-select/svg/SubIcon.js +52 -0
- package/lib/hierarchy-select/types.d.ts +7 -0
- package/lib/hierarchy-select/types.js +15 -0
- package/lib/icon/config.js +4 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +4 -0
- package/lib/image/index.js +4 -0
- package/lib/image-preview/ImagePreview.js +5 -1
- package/lib/image-preview/function-call.js +4 -0
- package/lib/image-preview/index.js +4 -0
- package/lib/index-anchor/IndexAnchor.d.ts +11 -0
- package/lib/index-anchor/IndexAnchor.js +107 -0
- package/lib/index-anchor/index.css +1 -0
- package/lib/index-anchor/index.d.ts +14 -0
- package/lib/index-anchor/index.js +39 -0
- package/lib/index-anchor/style/index.d.ts +1 -0
- package/lib/index-anchor/style/index.js +3 -0
- package/lib/index-anchor/types.d.ts +11 -0
- package/lib/index-anchor/types.js +15 -0
- package/lib/index-bar/IndexBar.d.ts +64 -0
- package/lib/index-bar/IndexBar.js +294 -0
- package/lib/index-bar/index.css +1 -0
- package/lib/index-bar/index.d.ts +50 -0
- package/lib/index-bar/index.js +39 -0
- package/lib/index-bar/style/index.d.ts +1 -0
- package/lib/index-bar/style/index.js +2 -0
- package/lib/index-bar/types.d.ts +16 -0
- package/lib/index-bar/types.js +15 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +22 -1
- package/lib/lazyload/vue-lazyload/index.js +9 -0
- package/lib/lazyload/vue-lazyload/lazy.js +85 -0
- package/lib/lazyload/vue-lazyload/listener.js +45 -0
- package/lib/list/List.js +2 -4
- package/lib/list/index.css +1 -1
- package/lib/list/index.js +4 -0
- package/lib/loading/index.js +4 -0
- package/lib/locale/index.js +4 -0
- package/lib/locale/lang/en-US.d.ts +7 -23
- package/lib/locale/lang/en-US.js +7 -23
- package/lib/locale/lang/zh-CN.d.ts +7 -23
- package/lib/locale/lang/zh-CN.js +7 -23
- package/lib/media-picker/MediaPicker.js +24 -0
- package/lib/media-picker/image/PickFileIcon.js +1 -1
- package/lib/media-picker/image/PickPhotoIcon.js +1 -1
- package/lib/media-picker/image/TakeAudioIcon.js +1 -1
- package/lib/media-picker/image/TakePhotoIcon.js +1 -1
- package/lib/media-picker/image/TakeVideoIcon.js +1 -1
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.js +4 -0
- package/lib/media-picker/util/media-util.js +3 -0
- package/lib/media-picker/watermark/image-processor.js +10 -6
- package/lib/media-picker/watermark/resize-options.js +1 -0
- package/lib/media-picker/watermark/watermark.js +4 -0
- package/lib/media-player/MediaPlayer.js +4 -0
- package/lib/media-player/index.js +4 -0
- package/lib/multiple-picker/MultiplePicker.d.ts +4 -4
- package/lib/multiple-picker/MultiplePicker.js +7 -3
- package/lib/multiple-picker/MultiplePickerOptions.d.ts +4 -4
- package/lib/multiple-picker/MultiplePickerOptions.js +3 -3
- package/lib/multiple-picker/index.d.ts +3 -3
- package/lib/multiple-picker/index.js +4 -0
- package/lib/nav-bar/index.js +4 -0
- package/lib/notice-bar/NoticeBar.js +4 -0
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.js +4 -0
- package/lib/notify/function-call.js +4 -0
- package/lib/notify/index.js +4 -0
- package/lib/number-keyboard/NumberKeyboard.js +4 -0
- package/lib/number-keyboard/NumberKeyboardKey.js +4 -0
- package/lib/number-keyboard/index.js +4 -0
- package/lib/overlay/index.d.ts +1 -1
- package/lib/overlay/index.js +4 -0
- package/lib/password-input/index.js +4 -0
- package/lib/picker/Picker.js +10 -3
- package/lib/picker/PickerToolbar.js +1 -0
- package/lib/picker/index.js +4 -0
- package/lib/popover/Popover.d.ts +13 -0
- package/lib/popover/Popover.js +98 -3
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +9 -0
- package/lib/popover/index.js +4 -0
- package/lib/popup/Popup.js +1 -0
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +4 -0
- package/lib/popup/shared.js +12 -0
- package/lib/pull-refresh/index.js +4 -0
- package/lib/radio/Radio.d.ts +1 -1
- package/lib/radio/Radio.js +4 -0
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio/index.js +4 -0
- package/lib/radio-group/index.js +4 -0
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +4 -0
- package/lib/row/index.js +4 -0
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/Search.js +1 -0
- package/lib/search/index.d.ts +1 -1
- package/lib/search/index.js +4 -0
- package/lib/signature/Signature.js +16 -9
- package/lib/signature/index.css +1 -1
- package/lib/signature/index.js +4 -0
- package/lib/skeleton/index.js +4 -0
- package/lib/step/Step.js +10 -6
- package/lib/step/index.css +1 -1
- package/lib/step/index.js +4 -0
- package/lib/stepper/Stepper.js +6 -0
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.js +4 -0
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.js +4 -0
- package/lib/sticky/Sticky.js +2 -0
- package/lib/sticky/index.js +4 -0
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/swipe/Swipe.d.ts +3 -1
- package/lib/swipe/Swipe.js +19 -2
- package/lib/swipe/index.d.ts +3 -1
- package/lib/swipe/index.js +4 -0
- package/lib/swipe-cell/SwipeCell.d.ts +44 -0
- package/lib/swipe-cell/SwipeCell.js +182 -0
- package/lib/swipe-cell/index.css +1 -0
- package/lib/swipe-cell/index.d.ts +39 -0
- package/lib/swipe-cell/index.js +39 -0
- package/lib/swipe-cell/style/index.d.ts +1 -0
- package/lib/swipe-cell/style/index.js +2 -0
- package/lib/swipe-cell/types.d.ts +9 -0
- package/lib/swipe-cell/types.js +15 -0
- package/lib/swipe-item/index.js +4 -0
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.js +4 -0
- package/lib/tab/index.js +4 -0
- package/lib/tabbar/index.js +4 -0
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.js +4 -0
- package/lib/table/Table.d.ts +118 -0
- package/lib/table/Table.js +228 -0
- package/lib/table/index.css +1 -0
- package/lib/table/index.d.ts +77 -0
- package/lib/table/index.js +39 -0
- package/lib/table/style/index.d.ts +1 -0
- package/lib/table/style/index.js +4 -0
- package/lib/table/types.d.ts +5 -0
- package/lib/table/types.js +27 -0
- package/lib/tabs/Tabs.js +6 -0
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.js +4 -0
- package/lib/tag/Tag.d.ts +21 -1
- package/lib/tag/Tag.js +73 -10
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +15 -1
- package/lib/tag/index.js +4 -0
- package/lib/tag/style/index.js +1 -0
- package/lib/text-ellipsis/TextEllipsis.d.ts +76 -0
- package/lib/text-ellipsis/TextEllipsis.js +137 -0
- package/lib/text-ellipsis/index.css +1 -0
- package/lib/text-ellipsis/index.d.ts +60 -0
- package/lib/text-ellipsis/index.js +39 -0
- package/lib/text-ellipsis/style/index.d.ts +1 -0
- package/lib/text-ellipsis/style/index.js +2 -0
- package/lib/text-ellipsis/types.d.ts +3 -0
- package/lib/text-ellipsis/types.js +15 -0
- package/lib/time-picker/TimePicker.js +4 -0
- package/lib/time-picker/TimePickerColumn.js +4 -0
- package/lib/time-picker/index.js +4 -0
- package/lib/timeline/Timeline.d.ts +113 -0
- package/lib/timeline/Timeline.js +191 -0
- package/lib/timeline/index.css +1 -0
- package/lib/timeline/index.d.ts +75 -0
- package/lib/timeline/index.js +39 -0
- package/lib/timeline/style/index.d.ts +1 -0
- package/lib/timeline/style/index.js +4 -0
- package/lib/toast/function-call.js +4 -0
- package/lib/toast/index.js +4 -0
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/Uploader.js +4 -0
- package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/uploader/index.js +4 -0
- package/lib/uploader/utils.js +1 -1
- package/lib/utils/create.js +4 -0
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/dom.js +11 -0
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +3054 -1076
- package/lib/zartui.es.js +3102 -1124
- package/lib/zartui.js +3817 -1303
- package/lib/zartui.min.js +1 -1
- package/package.json +18 -17
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { CalendarType, CalendarDayItem } from './types';
|
|
3
|
+
import { CalendarShowType } from './types';
|
|
3
4
|
declare const calendarMonthProps: {
|
|
4
5
|
date: {
|
|
5
6
|
type: DateConstructor;
|
|
6
7
|
required: true;
|
|
7
8
|
};
|
|
9
|
+
showType: {
|
|
10
|
+
type: PropType<CalendarShowType>;
|
|
11
|
+
default: CalendarShowType;
|
|
12
|
+
};
|
|
8
13
|
type: PropType<CalendarType>;
|
|
9
14
|
color: StringConstructor;
|
|
10
|
-
minDate:
|
|
11
|
-
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
maxDate: {
|
|
15
|
-
type: DateConstructor;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
15
|
+
minDate: DateConstructor;
|
|
16
|
+
maxDate: DateConstructor;
|
|
18
17
|
showMark: BooleanConstructor;
|
|
19
18
|
rowHeight: (NumberConstructor | StringConstructor)[];
|
|
20
19
|
formatter: PropType<(item: CalendarDayItem) => CalendarDayItem>;
|
|
@@ -24,6 +23,7 @@ declare const calendarMonthProps: {
|
|
|
24
23
|
showSubtitle: BooleanConstructor;
|
|
25
24
|
showMonthTitle: BooleanConstructor;
|
|
26
25
|
firstDayOfWeek: NumberConstructor;
|
|
26
|
+
disabledDate: PropType<(date: Date) => boolean>;
|
|
27
27
|
};
|
|
28
28
|
export declare type CalendarMonthProps = ExtractPropTypes<typeof calendarMonthProps>;
|
|
29
29
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -31,16 +31,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
type: DateConstructor;
|
|
32
32
|
required: true;
|
|
33
33
|
};
|
|
34
|
+
showType: {
|
|
35
|
+
type: PropType<CalendarShowType>;
|
|
36
|
+
default: CalendarShowType;
|
|
37
|
+
};
|
|
34
38
|
type: PropType<CalendarType>;
|
|
35
39
|
color: StringConstructor;
|
|
36
|
-
minDate:
|
|
37
|
-
|
|
38
|
-
required: true;
|
|
39
|
-
};
|
|
40
|
-
maxDate: {
|
|
41
|
-
type: DateConstructor;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
40
|
+
minDate: DateConstructor;
|
|
41
|
+
maxDate: DateConstructor;
|
|
44
42
|
showMark: BooleanConstructor;
|
|
45
43
|
rowHeight: (NumberConstructor | StringConstructor)[];
|
|
46
44
|
formatter: PropType<(item: CalendarDayItem) => CalendarDayItem>;
|
|
@@ -50,21 +48,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
48
|
showSubtitle: BooleanConstructor;
|
|
51
49
|
showMonthTitle: BooleanConstructor;
|
|
52
50
|
firstDayOfWeek: NumberConstructor;
|
|
51
|
+
disabledDate: PropType<(date: Date) => boolean>;
|
|
53
52
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
54
53
|
date: {
|
|
55
54
|
type: DateConstructor;
|
|
56
55
|
required: true;
|
|
57
56
|
};
|
|
57
|
+
showType: {
|
|
58
|
+
type: PropType<CalendarShowType>;
|
|
59
|
+
default: CalendarShowType;
|
|
60
|
+
};
|
|
58
61
|
type: PropType<CalendarType>;
|
|
59
62
|
color: StringConstructor;
|
|
60
|
-
minDate:
|
|
61
|
-
|
|
62
|
-
required: true;
|
|
63
|
-
};
|
|
64
|
-
maxDate: {
|
|
65
|
-
type: DateConstructor;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
63
|
+
minDate: DateConstructor;
|
|
64
|
+
maxDate: DateConstructor;
|
|
68
65
|
showMark: BooleanConstructor;
|
|
69
66
|
rowHeight: (NumberConstructor | StringConstructor)[];
|
|
70
67
|
formatter: PropType<(item: CalendarDayItem) => CalendarDayItem>;
|
|
@@ -74,10 +71,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
71
|
showSubtitle: BooleanConstructor;
|
|
75
72
|
showMonthTitle: BooleanConstructor;
|
|
76
73
|
firstDayOfWeek: NumberConstructor;
|
|
74
|
+
disabledDate: PropType<(date: Date) => boolean>;
|
|
77
75
|
}>> & {
|
|
78
76
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
79
77
|
}, {
|
|
80
78
|
lazyRender: boolean;
|
|
79
|
+
showType: CalendarShowType;
|
|
81
80
|
showMark: boolean;
|
|
82
81
|
allowSameDay: boolean;
|
|
83
82
|
showSubtitle: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
2
|
import { ref, computed, defineComponent } from "vue";
|
|
3
|
-
import { pick, addUnit, numericProp, setScrollTop, createNamespace, makeRequiredProp } from "../utils/index.mjs";
|
|
3
|
+
import { pick, addUnit, numericProp, setScrollTop, createNamespace, makeRequiredProp, makeStringProp } from "../utils/index.mjs";
|
|
4
4
|
import { t, bem, compareDay, getPrevDay, getNextDay, formatMonthTitle } from "./utils.mjs";
|
|
5
5
|
import { useRect, useToggle } from "@zartui/use";
|
|
6
6
|
import { useExpose } from "../composables/use-expose.mjs";
|
|
@@ -9,10 +9,11 @@ import CalendarDay from "./CalendarDay.mjs";
|
|
|
9
9
|
const [name] = createNamespace("calendar-month");
|
|
10
10
|
const calendarMonthProps = {
|
|
11
11
|
date: makeRequiredProp(Date),
|
|
12
|
+
showType: makeStringProp("inline"),
|
|
12
13
|
type: String,
|
|
13
14
|
color: String,
|
|
14
|
-
minDate:
|
|
15
|
-
maxDate:
|
|
15
|
+
minDate: Date,
|
|
16
|
+
maxDate: Date,
|
|
16
17
|
showMark: Boolean,
|
|
17
18
|
rowHeight: numericProp,
|
|
18
19
|
formatter: Function,
|
|
@@ -21,7 +22,8 @@ const calendarMonthProps = {
|
|
|
21
22
|
allowSameDay: Boolean,
|
|
22
23
|
showSubtitle: Boolean,
|
|
23
24
|
showMonthTitle: Boolean,
|
|
24
|
-
firstDayOfWeek: Number
|
|
25
|
+
firstDayOfWeek: Number,
|
|
26
|
+
disabledDate: Function
|
|
25
27
|
};
|
|
26
28
|
var stdin_default = defineComponent({
|
|
27
29
|
name,
|
|
@@ -48,6 +50,7 @@ var stdin_default = defineComponent({
|
|
|
48
50
|
const totalDay = computed(() => getMonthEndDay(props.date.getFullYear(), props.date.getMonth() + 1));
|
|
49
51
|
const shouldRender = computed(() => visible.value || !props.lazyRender);
|
|
50
52
|
const getTitle = () => title.value;
|
|
53
|
+
const getDate = () => props.date;
|
|
51
54
|
const getMultipleDayType = (day) => {
|
|
52
55
|
const isSelected = (date) => props.currentDate.some((item) => compareDay(item, date) === 0);
|
|
53
56
|
if (isSelected(day)) {
|
|
@@ -92,18 +95,22 @@ var stdin_default = defineComponent({
|
|
|
92
95
|
}
|
|
93
96
|
return "";
|
|
94
97
|
};
|
|
95
|
-
const getDayType = (day) => {
|
|
98
|
+
const getDayType = (day, defaultType) => {
|
|
96
99
|
const {
|
|
97
100
|
type,
|
|
98
101
|
minDate,
|
|
99
102
|
maxDate,
|
|
100
|
-
currentDate
|
|
103
|
+
currentDate,
|
|
104
|
+
disabledDate
|
|
101
105
|
} = props;
|
|
102
|
-
if (compareDay(day, minDate) < 0 || compareDay(day, maxDate) > 0) {
|
|
106
|
+
if (minDate && compareDay(day, minDate) < 0 || maxDate && compareDay(day, maxDate) > 0 || disabledDate && disabledDate(day)) {
|
|
103
107
|
return "disabled";
|
|
104
108
|
}
|
|
105
109
|
if (currentDate === null) {
|
|
106
|
-
return "";
|
|
110
|
+
return defaultType || "";
|
|
111
|
+
}
|
|
112
|
+
if (defaultType) {
|
|
113
|
+
return defaultType;
|
|
107
114
|
}
|
|
108
115
|
if (Array.isArray(currentDate)) {
|
|
109
116
|
if (type === "multiple") {
|
|
@@ -144,6 +151,22 @@ var stdin_default = defineComponent({
|
|
|
144
151
|
const days2 = [];
|
|
145
152
|
const year = props.date.getFullYear();
|
|
146
153
|
const month = props.date.getMonth();
|
|
154
|
+
if (props.showType && props.showType === "inline") {
|
|
155
|
+
for (let day = offset.value - 1; day >= 0; day--) {
|
|
156
|
+
const date = new Date(year, month, -day);
|
|
157
|
+
const type = getDayType(date, "preview");
|
|
158
|
+
let config = {
|
|
159
|
+
date,
|
|
160
|
+
type,
|
|
161
|
+
text: date.getDate(),
|
|
162
|
+
bottomInfo: getBottomInfo(type)
|
|
163
|
+
};
|
|
164
|
+
if (props.formatter) {
|
|
165
|
+
config = props.formatter(config);
|
|
166
|
+
}
|
|
167
|
+
days2.push(config);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
147
170
|
for (let day = 1; day <= totalDay.value; day++) {
|
|
148
171
|
const date = new Date(year, month, day);
|
|
149
172
|
const type = getDayType(date);
|
|
@@ -158,6 +181,23 @@ var stdin_default = defineComponent({
|
|
|
158
181
|
}
|
|
159
182
|
days2.push(config);
|
|
160
183
|
}
|
|
184
|
+
if (props.showType && props.showType === "inline" && days2 && days2.length < 42) {
|
|
185
|
+
const nextMonthsLength = days2.length;
|
|
186
|
+
for (let day = 1; day <= 42 - nextMonthsLength; day++) {
|
|
187
|
+
const date = new Date(year, month + 1, day);
|
|
188
|
+
const type = getDayType(date, "preview");
|
|
189
|
+
let config = {
|
|
190
|
+
date,
|
|
191
|
+
type,
|
|
192
|
+
text: date.getDate(),
|
|
193
|
+
bottomInfo: getBottomInfo(type)
|
|
194
|
+
};
|
|
195
|
+
if (props.formatter) {
|
|
196
|
+
config = props.formatter(config);
|
|
197
|
+
}
|
|
198
|
+
days2.push(config);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
161
201
|
return days2;
|
|
162
202
|
});
|
|
163
203
|
const disabledDays = computed(() => days.value.filter((day) => day.type === "disabled"));
|
|
@@ -185,6 +225,7 @@ var stdin_default = defineComponent({
|
|
|
185
225
|
}, [(shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
|
186
226
|
useExpose({
|
|
187
227
|
getTitle,
|
|
228
|
+
getDate,
|
|
188
229
|
getHeight: () => height.value,
|
|
189
230
|
setVisible,
|
|
190
231
|
scrollToDate,
|
package/es/calendar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-calendar-background: var(--zt-background-2);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-header-title-font-size: var(--zt-font-size-md);--zt-calendar-header-subtitle-font-size: var(--zt-font-size-md);--zt-calendar-weekdays-height: 30px;--zt-calendar-weekdays-font-size: var(--zt-font-size-sm);--zt-calendar-weekdays-font-color: var(----zt-gray-default);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-month-title-font-size: var(--zt-font-size-md);--zt-calendar-month-mark-color: rgba(242, 243, 245, .8);--zt-calendar-month-mark-font-size: 160px;--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-font-size: var(--zt-font-size-lg);--zt-calendar-day-margin-bottom: 4px;--zt-calendar-range-edge-color: var(--zt-white);--zt-calendar-range-edge-background: var(--zt-primary-color);--zt-calendar-range-middle-color: var(--zt-primary-color);--zt-calendar-range-middle-background-opacity: .1;--zt-calendar-selected-day-size: var(--zt-calendar-day-height);--zt-calendar-selected-day-color: var(--zt-white);--zt-calendar-info-font-size: var(--zt-font-size-xs);--zt-calendar-info-line-height: var(--zt-line-height-xs);--zt-calendar-selected-day-background: var(--zt-primary-color);--zt-calendar-day-disabled-color: var(--zt-
|
|
1
|
+
:root{--zt-calendar-background: var(--zt-background-2);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-header-title-font-size: var(--zt-font-size-md);--zt-calendar-header-subtitle-font-size: var(--zt-font-size-md);--zt-calendar-weekdays-height: 30px;--zt-calendar-weekdays-font-size: var(--zt-font-size-sm);--zt-calendar-weekdays-font-color: var(----zt-gray-default);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-month-title-font-size: var(--zt-font-size-md);--zt-calendar-month-mark-color: rgba(242, 243, 245, .8);--zt-calendar-month-mark-font-size: 160px;--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-font-size: var(--zt-font-size-lg);--zt-calendar-day-margin-bottom: 4px;--zt-calendar-range-edge-color: var(--zt-white);--zt-calendar-range-edge-background: var(--zt-primary-color);--zt-calendar-range-middle-color: var(--zt-primary-color);--zt-calendar-range-middle-background-opacity: .1;--zt-calendar-selected-day-size: var(--zt-calendar-day-height);--zt-calendar-selected-day-color: var(--zt-white);--zt-calendar-info-font-size: var(--zt-font-size-xs);--zt-calendar-info-line-height: var(--zt-line-height-xs);--zt-calendar-selected-day-background: var(--zt-primary-color);--zt-calendar-day-disabled-color: var(--zt-gray-a2);--zt-calendar-confirm-button-height: 36px;--zt-calendar-confirm-button-margin: 7px 0;--zt-calendar-header-title-color: var(--zt-gray-a4)}.zt-calendar{display:flex;flex-direction:column;height:100%;background:var(--zt-calendar-background);color:var(--zt-text-color)}.zt-calendar__popup.zt-popup--top,.zt-calendar__popup.zt-popup--bottom{height:var(--zt-calendar-popup-height)}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__header{flex-shrink:0}.zt-calendar__month-title,.zt-calendar__header-title,.zt-calendar__header-subtitle{display:flex;padding:0 16px;color:var(--zt-text-color);height:var(--zt-calendar-header-title-height);line-height:var(--zt-calendar-header-title-height);text-align:center;align-items:center;justify-content:center}.zt-calendar__month-title--opt,.zt-calendar__header-title--opt,.zt-calendar__header-subtitle--opt{width:32px;height:32px;line-height:32px;border-radius:50%;padding:0;margin:0 8px}.zt-calendar__month-title--right,.zt-calendar__header-title--right,.zt-calendar__header-subtitle--right{transform:rotate(180deg)}.zt-calendar__month-title--unenable,.zt-calendar__header-title--unenable,.zt-calendar__header-subtitle--unenable{opacity:.2}.zt-calendar__month-title--enable,.zt-calendar__header-title--enable,.zt-calendar__header-subtitle--enable{opacity:1}.zt-calendar__month-title--enable:active,.zt-calendar__header-title--enable:active,.zt-calendar__header-subtitle--enable:active{border-radius:50%;background-color:var(--zt-gray-a1);opacity:.6}.zt-calendar__month-title-text,.zt-calendar__header-title-text,.zt-calendar__header-subtitle-text{flex-grow:1}.zt-calendar__header-title{font-size:var(--zt-calendar-header-title-font-size);color:var(--zt-calendar-header-title-color);position:relative;display:flex;justify-content:center;align-items:center}.zt-calendar__header-title:after{top:var(--zt-calendar-header-title-height);content:"";position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-calendar__header-subtitle{font-size:var(--zt-calendar-header-subtitle-font-size)}.zt-calendar__month-title{font-size:var(--zt-calendar-month-title-font-size)}.zt-calendar__weekdays{display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{flex:1;font-size:var(--zt-calendar-weekdays-font-size);line-height:var(--zt-calendar-weekdays-height);font-weight:var(--zt-font-bold);text-align:center;background:var(--zt-calendar-weekdays-background);color:var(--zt-calendar-weekdays-font-color)}.zt-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:var(--zt-calendar-background);box-shadow:var(--zt-calendar-body-box-shadow)}.zt-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__day,.zt-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:var(--zt-calendar-day-height);margin-bottom:var(--zt-calendar-day-margin-bottom);font-size:var(--zt-calendar-day-font-size);cursor:pointer;outline:none}.zt-calendar__day--end,.zt-calendar__day--start,.zt-calendar__day--start-end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected{color:var(--zt-calendar-range-edge-color);background:var(--zt-calendar-range-edge-background);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--start{border-radius:var(--zt-calendar-day-height-half) 0 0 var(--zt-calendar-day-height-half);border-right:none}.zt-calendar__day--end{border-radius:0 var(--zt-calendar-day-height-half) var(--zt-calendar-day-height-half) 0;border-left:none}.zt-calendar__day--start-end,.zt-calendar__day--multiple-selected{border-radius:var(--zt-calendar-day-height-half)}.zt-calendar__day--middle{color:var(--zt-calendar-range-middle-color)}.zt-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--zt-calendar-range-middle-background-opacity);content:""}.zt-calendar__day--disabled,.zt-calendar__day--preview{color:var(--zt-calendar-day-disabled-color);cursor:default}.zt-calendar__selected-day{font-weight:var(--zt-font-bold);width:var(--zt-calendar-selected-day-size);height:var(--zt-calendar-selected-day-size);color:var(--zt-calendar-selected-day-color);background:var(--zt-calendar-selected-day-background);border-radius:calc(var(--zt-calendar-selected-day-size) / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__footer{flex-shrink:0;display:flex;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-theme-dark{--zt-calendar-header-title-color: var(--zt-gray-a6);--zt-calendar-range-middle-color: none;--zt-calendar-weekdays-font-color: rgba(255, 255, 255, .8);--zt-calendar-weekdays-background: rgba(255, 255, 255, .04);--zt-calendar-month-mark-color: rgba(100, 101, 102, .2);--zt-calendar-day-disabled-color: rgba(255, 255, 255, .3)}
|
package/es/calendar/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
2
|
show: BooleanConstructor;
|
|
3
|
+
showType: {
|
|
4
|
+
type: import("vue").PropType<import("./types").CalendarShowType>;
|
|
5
|
+
default: import("./types").CalendarShowType;
|
|
6
|
+
};
|
|
3
7
|
type: {
|
|
4
8
|
type: import("vue").PropType<import("./types").CalendarType>;
|
|
5
9
|
default: import("./types").CalendarType;
|
|
@@ -71,23 +75,20 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
71
75
|
type: BooleanConstructor;
|
|
72
76
|
default: true;
|
|
73
77
|
};
|
|
74
|
-
minDate:
|
|
75
|
-
|
|
76
|
-
validator: (val: unknown) => val is Date;
|
|
77
|
-
default: () => Date;
|
|
78
|
-
};
|
|
79
|
-
maxDate: {
|
|
80
|
-
type: DateConstructor;
|
|
81
|
-
validator: (val: unknown) => val is Date;
|
|
82
|
-
default: () => Date;
|
|
83
|
-
};
|
|
78
|
+
minDate: DateConstructor;
|
|
79
|
+
maxDate: DateConstructor;
|
|
84
80
|
firstDayOfWeek: {
|
|
85
81
|
type: (NumberConstructor | StringConstructor)[];
|
|
86
82
|
default: number;
|
|
87
83
|
validator: (val: number) => boolean;
|
|
88
84
|
};
|
|
85
|
+
disabledDate: import("vue").PropType<(date: Date) => boolean>;
|
|
89
86
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "cancel" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
90
87
|
show: BooleanConstructor;
|
|
88
|
+
showType: {
|
|
89
|
+
type: import("vue").PropType<import("./types").CalendarShowType>;
|
|
90
|
+
default: import("./types").CalendarShowType;
|
|
91
|
+
};
|
|
91
92
|
type: {
|
|
92
93
|
type: import("vue").PropType<import("./types").CalendarType>;
|
|
93
94
|
default: import("./types").CalendarType;
|
|
@@ -159,21 +160,14 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
159
160
|
type: BooleanConstructor;
|
|
160
161
|
default: true;
|
|
161
162
|
};
|
|
162
|
-
minDate:
|
|
163
|
-
|
|
164
|
-
validator: (val: unknown) => val is Date;
|
|
165
|
-
default: () => Date;
|
|
166
|
-
};
|
|
167
|
-
maxDate: {
|
|
168
|
-
type: DateConstructor;
|
|
169
|
-
validator: (val: unknown) => val is Date;
|
|
170
|
-
default: () => Date;
|
|
171
|
-
};
|
|
163
|
+
minDate: DateConstructor;
|
|
164
|
+
maxDate: DateConstructor;
|
|
172
165
|
firstDayOfWeek: {
|
|
173
166
|
type: (NumberConstructor | StringConstructor)[];
|
|
174
167
|
default: number;
|
|
175
168
|
validator: (val: number) => boolean;
|
|
176
169
|
};
|
|
170
|
+
disabledDate: import("vue").PropType<(date: Date) => boolean>;
|
|
177
171
|
}>> & {
|
|
178
172
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
179
173
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
@@ -195,6 +189,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
195
189
|
safeAreaInsetTop: boolean;
|
|
196
190
|
safeAreaInsetBottom: boolean;
|
|
197
191
|
popup: boolean;
|
|
192
|
+
showType: import("./types").CalendarShowType;
|
|
198
193
|
maxRange: string | number;
|
|
199
194
|
showMark: boolean;
|
|
200
195
|
showTitle: boolean;
|
|
@@ -202,8 +197,6 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
202
197
|
allowSameDay: boolean;
|
|
203
198
|
showSubtitle: boolean;
|
|
204
199
|
showRangePrompt: boolean;
|
|
205
|
-
minDate: Date;
|
|
206
|
-
maxDate: Date;
|
|
207
200
|
firstDayOfWeek: string | number;
|
|
208
201
|
}>>;
|
|
209
202
|
export default Calendar;
|
package/es/calendar/types.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import type { ComponentPublicInstance, ComputedRef, Ref } from 'vue';
|
|
|
2
2
|
import type { Numeric } from '../utils';
|
|
3
3
|
import type { CalendarProps } from './Calendar';
|
|
4
4
|
import type { CalendarMonthProps } from './CalendarMonth';
|
|
5
|
+
export declare type CalendarShowType = 'inline' | 'scroll';
|
|
5
6
|
export declare type CalendarType = 'single' | 'range' | 'multiple';
|
|
6
|
-
export declare type CalendarDayType = '' | 'start' | 'start-end' | 'middle' | 'end' | 'selected' | 'multiple-middle' | 'multiple-selected' | 'disabled' | 'placeholder';
|
|
7
|
+
export declare type CalendarDayType = '' | 'start' | 'start-end' | 'middle' | 'end' | 'selected' | 'multiple-middle' | 'multiple-selected' | 'disabled' | 'placeholder' | 'preview';
|
|
7
8
|
export declare type CalendarDayItem = {
|
|
8
9
|
date?: Date;
|
|
9
10
|
text?: Numeric;
|
|
@@ -21,6 +22,7 @@ export declare type CalendarInstance = ComponentPublicInstance<CalendarProps, Ca
|
|
|
21
22
|
export declare type CalendarMonthInstance = ComponentPublicInstance<CalendarMonthProps, {
|
|
22
23
|
showed?: boolean;
|
|
23
24
|
getTitle: () => string;
|
|
25
|
+
getDate: () => Date;
|
|
24
26
|
getHeight: () => number;
|
|
25
27
|
setVisible: (value?: boolean | undefined) => void;
|
|
26
28
|
scrollToDate: (body: Element, targetDate: Date) => void;
|
package/es/calendar/utils.d.ts
CHANGED
|
@@ -5,8 +5,11 @@ export declare function compareMonth(date1: Date, date2: Date): 0 | 1 | -1;
|
|
|
5
5
|
export declare function compareDay(day1: Date, day2: Date): 0 | 1 | -1;
|
|
6
6
|
export declare const cloneDate: (date: Date) => Date;
|
|
7
7
|
export declare const cloneDates: (dates: Date | Date[]) => Date | Date[];
|
|
8
|
-
export declare function getDayByOffset(date: Date, offset: number): Date;
|
|
8
|
+
export declare function getDayByOffset(date: Date, offset: number, isMonth?: boolean, isYear?: boolean): Date;
|
|
9
9
|
export declare const getPrevDay: (date: Date) => Date;
|
|
10
10
|
export declare const getNextDay: (date: Date) => Date;
|
|
11
11
|
export declare const getToday: () => Date;
|
|
12
|
+
export declare const getPrevDate: (date: Date, isMonth: boolean, isYear: boolean) => Date;
|
|
13
|
+
export declare const getNextDate: (date: Date, isMonth: boolean, isYear: boolean) => Date;
|
|
12
14
|
export declare function calcDateNum(date: [Date, Date]): number;
|
|
15
|
+
export declare function getFirstDate(date: Date): Date;
|
package/es/calendar/utils.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createNamespace } from "../utils/index.mjs";
|
|
2
|
+
const monthsOfYear = 12;
|
|
2
3
|
const [name, bem, t] = createNamespace("calendar");
|
|
3
|
-
const formatMonthTitle = (date) => t("
|
|
4
|
+
const formatMonthTitle = (date) => t("ztCalendar.monthTitle", date.getFullYear(), date.getMonth() + 1);
|
|
4
5
|
function compareMonth(date1, date2) {
|
|
5
6
|
const year1 = date1.getFullYear();
|
|
6
7
|
const year2 = date2.getFullYear();
|
|
@@ -22,9 +23,20 @@ function compareDay(day1, day2) {
|
|
|
22
23
|
}
|
|
23
24
|
const cloneDate = (date) => new Date(date);
|
|
24
25
|
const cloneDates = (dates) => Array.isArray(dates) ? dates.map(cloneDate) : cloneDate(dates);
|
|
25
|
-
function getDayByOffset(date, offset) {
|
|
26
|
+
function getDayByOffset(date, offset, isMonth, isYear) {
|
|
26
27
|
const cloned = cloneDate(date);
|
|
27
|
-
|
|
28
|
+
if (isYear) {
|
|
29
|
+
cloned.setFullYear(cloned.getFullYear() + offset);
|
|
30
|
+
} else if (isMonth) {
|
|
31
|
+
cloned.setMonth(cloned.getMonth() + offset);
|
|
32
|
+
const multiplier = cloned.getFullYear() - date.getFullYear();
|
|
33
|
+
const setLastDate = date.getMonth() + offset !== cloned.getMonth() + multiplier * monthsOfYear;
|
|
34
|
+
if (setLastDate) {
|
|
35
|
+
cloned.setDate(0);
|
|
36
|
+
}
|
|
37
|
+
} else {
|
|
38
|
+
cloned.setDate(cloned.getDate() + offset);
|
|
39
|
+
}
|
|
28
40
|
return cloned;
|
|
29
41
|
}
|
|
30
42
|
const getPrevDay = (date) => getDayByOffset(date, -1);
|
|
@@ -34,11 +46,16 @@ const getToday = () => {
|
|
|
34
46
|
today.setHours(0, 0, 0, 0);
|
|
35
47
|
return today;
|
|
36
48
|
};
|
|
49
|
+
const getPrevDate = (date, isMonth, isYear) => getDayByOffset(date, -1, isMonth, isYear);
|
|
50
|
+
const getNextDate = (date, isMonth, isYear) => getDayByOffset(date, 1, isMonth, isYear);
|
|
37
51
|
function calcDateNum(date) {
|
|
38
52
|
const day1 = date[0].getTime();
|
|
39
53
|
const day2 = date[1].getTime();
|
|
40
54
|
return (day2 - day1) / (1e3 * 60 * 60 * 24) + 1;
|
|
41
55
|
}
|
|
56
|
+
function getFirstDate(date) {
|
|
57
|
+
return new Date(date.getFullYear(), date.getMonth(), 1);
|
|
58
|
+
}
|
|
42
59
|
export {
|
|
43
60
|
bem,
|
|
44
61
|
calcDateNum,
|
|
@@ -48,7 +65,10 @@ export {
|
|
|
48
65
|
compareMonth,
|
|
49
66
|
formatMonthTitle,
|
|
50
67
|
getDayByOffset,
|
|
68
|
+
getFirstDate,
|
|
69
|
+
getNextDate,
|
|
51
70
|
getNextDay,
|
|
71
|
+
getPrevDate,
|
|
52
72
|
getPrevDay,
|
|
53
73
|
getToday,
|
|
54
74
|
name,
|
package/es/cascader/Cascader.mjs
CHANGED
|
@@ -188,7 +188,7 @@ var stdin_default = defineComponent({
|
|
|
188
188
|
options,
|
|
189
189
|
selected
|
|
190
190
|
} = tab;
|
|
191
|
-
const placeholder = props.placeholder || t("
|
|
191
|
+
const placeholder = props.placeholder || t("ztCascader.select");
|
|
192
192
|
const title = selected ? selected[textKey] : placeholder;
|
|
193
193
|
return _createVNode(Tab, {
|
|
194
194
|
"title": title,
|
|
@@ -219,8 +219,6 @@ var stdin_default = defineComponent({
|
|
|
219
219
|
});
|
|
220
220
|
const renderMenu = () => _createVNode(Button, {
|
|
221
221
|
"class": bem("cancel"),
|
|
222
|
-
"background-color": "rgba(45, 75, 115, 0.04)",
|
|
223
|
-
"color": "#2D4B73",
|
|
224
222
|
"onClick": onCancel
|
|
225
223
|
}, {
|
|
226
224
|
default: () => [_createTextVNode("\u53D6\u6D88")]
|
package/es/cascader/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-cascader-header-height: 44px;--zt-cascader-header-padding: 0 var(--zt-padding-sm);--zt-cascader-title-font-size: var(--zt-font-size-md);--zt-cascader-title-line-height: 44px;--zt-cascader-title-color: var(--zt-gray-a4);--zt-cascader-close-icon-size: 24px;--zt-cascader-close-icon-color: var(--zt-gray-5);--zt-cascader-selected-icon-size: 18px;--zt-cascader-tabs-height: 44px;--zt-cascader-active-color: var(--zt-primary-color);--zt-cascader-height: 75vh;--zt-cascader-option-disabled-color: var(--zt-text-color-3);--zt-cascader-tab-color: var(--zt-text-color);--zt-cascader-unselected-tab-color: var(--zt-gray-a4);--zt-cascader-tabs-margin: 0 8px;--zt-cascader-tabs-padding: 8px;--zt-cascader-tabs-line-height: 44px;--zt-cascader-option-disabled-active-color: rgba(0, 0, 0, .04);--zt-cascader-cancel-margin: 8px 16px;--zt-cascader-cancel-background: rgba(45, 75, 115, .04);--zt-cascader-cancel-width:calc(100% - 32px);--zt-cascader-cancel-border-radius: 20.5px}.zt-cascader{display:flex;justify-content:space-between;flex-direction:column;height:var(--zt-cascader-height)}.zt-cascader__header{display:flex;align-items:center;justify-content:center;flex-shrink:0;height:var(--zt-cascader-header-height);padding:var(--zt-cascader-header-padding)}.zt-cascader__title{font-size:var(--zt-cascader-title-font-size);line-height:var(--zt-cascader-title-line-height);color:var(--zt-cascader-title-color)}.zt-cascader__close-icon{color:var(--zt-cascader-close-icon-color);font-size:var(--zt-cascader-close-icon-size)}.zt-cascader__tabs{flex:1}.zt-cascader__tabs .zt-tab{flex:none;margin:var(--zt-cascader-tabs-margin);padding:0}.zt-cascader__tabs .zt-tabs__wrap{position:relative;height:var(--zt-cascader-tabs-height)}.zt-cascader__tabs .zt-tabs__wrap:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-cascader__tabs .zt-tabs__nav--complete{padding-right:var(--zt-cascader-tabs-padding);padding-left:var(--zt-cascader-tabs-padding)}.zt-cascader__tab{color:var(--zt-cascader-tab-color);font-weight:var(--zt-font-bold);line-height:var(--zt-cascader-tabs-line-height);font-size:var(--zt-font-size-md)}.zt-cascader__tab--unselected{color:var(--zt-cascader-unselected-tab-color);font-weight:400}.zt-cascader__option{display:flex;align-items:center;justify-content:space-between;color:var(--zt-
|
|
1
|
+
:root{--zt-cascader-header-height: 44px;--zt-cascader-header-padding: 0 var(--zt-padding-sm);--zt-cascader-title-font-size: var(--zt-font-size-md);--zt-cascader-title-line-height: 44px;--zt-cascader-title-color: var(--zt-gray-a4);--zt-cascader-close-icon-size: 24px;--zt-cascader-close-icon-color: var(--zt-gray-5);--zt-cascader-selected-icon-size: 18px;--zt-cascader-tabs-height: 44px;--zt-cascader-active-color: var(--zt-primary-color);--zt-cascader-height: 75vh;--zt-cascader-option-disabled-color: var(--zt-text-color-3);--zt-cascader-tab-color: var(--zt-text-color);--zt-cascader-unselected-tab-color: var(--zt-gray-a4);--zt-cascader-tabs-margin: 0 8px;--zt-cascader-tabs-padding: 8px;--zt-cascader-tabs-line-height: 44px;--zt-cascader-option-disabled-active-color: rgba(0, 0, 0, .04);--zt-cascader-cancel-margin: 8px 16px;--zt-cascader-cancel-background: rgba(45, 75, 115, .04);--zt-cascader-cancel-width:calc(100% - 32px);--zt-cascader-cancel-border-radius: 20.5px}.zt-cascader{display:flex;justify-content:space-between;flex-direction:column;height:var(--zt-cascader-height)}.zt-cascader__header{display:flex;align-items:center;justify-content:center;flex-shrink:0;height:var(--zt-cascader-header-height);padding:var(--zt-cascader-header-padding)}.zt-cascader__title{font-size:var(--zt-cascader-title-font-size);line-height:var(--zt-cascader-title-line-height);color:var(--zt-cascader-title-color)}.zt-cascader__close-icon{color:var(--zt-cascader-close-icon-color);font-size:var(--zt-cascader-close-icon-size)}.zt-cascader__tabs{flex:1}.zt-cascader__tabs .zt-tab{flex:none;margin:var(--zt-cascader-tabs-margin);padding:0}.zt-cascader__tabs .zt-tabs__wrap{position:relative;height:var(--zt-cascader-tabs-height)}.zt-cascader__tabs .zt-tabs__wrap:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-cascader__tabs .zt-tabs__nav--complete{padding-right:var(--zt-cascader-tabs-padding);padding-left:var(--zt-cascader-tabs-padding)}.zt-cascader__tab{color:var(--zt-cascader-tab-color);font-weight:var(--zt-font-bold);line-height:var(--zt-cascader-tabs-line-height);font-size:var(--zt-font-size-md)}.zt-cascader__tab--unselected{color:var(--zt-cascader-unselected-tab-color);font-weight:400}.zt-cascader__option{display:flex;align-items:center;justify-content:space-between;color:var(--zt-text-color);padding:0 var(--zt-padding-md);font-size:var(--zt-font-size-md);line-height:var(--zt-cascader-tabs-line-height);cursor:pointer;font-weight:400}.zt-cascader__option:active{background-color:var(--zt-active-color)}.zt-cascader__option--selected{color:var(--zt-cascader-active-color);font-weight:var(--zt-font-bold)}.zt-cascader__option--disabled{color:var(--zt-cascader-option-disabled-color);cursor:not-allowed}.zt-cascader__option--disabled:active{background-color:var(--zt-cascader-option-disabled-active-color)}.zt-cascader__selected-icon{font-size:var(--zt-cascader-selected-icon-size)}.zt-cascader__options{box-sizing:border-box;overflow-y:auto;-webkit-overflow-scrolling:touch}.zt-cascader .zt-tabs__nav{background:var(--zt-background-2)}.zt-cascader__cancel{margin:var(--zt-cascader-cancel-margin);width:var(--zt-cascader-cancel-width);background:var(--zt-cascader-cancel-background);border-radius:var(--zt-cascader-cancel-border-radius);color:var(--zt-text-color);border:0}.zt-theme-dark{--zt-cascader-cancel-background: var(--zt-background-card)}
|
|
@@ -56,8 +56,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
57
57
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
58
58
|
}, {
|
|
59
|
-
disabled: boolean;
|
|
60
59
|
shape: import("./Checker").CheckerShape;
|
|
60
|
+
disabled: boolean;
|
|
61
61
|
labelDisabled: boolean;
|
|
62
62
|
bindGroup: boolean;
|
|
63
63
|
}>;
|
package/es/checkbox/Checker.d.ts
CHANGED
|
@@ -76,9 +76,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
77
77
|
onToggle?: ((...args: any[]) => any) | undefined;
|
|
78
78
|
}, {
|
|
79
|
-
checked: boolean;
|
|
80
|
-
disabled: boolean;
|
|
81
79
|
shape: CheckerShape;
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
checked: boolean;
|
|
82
82
|
labelDisabled: boolean;
|
|
83
83
|
bindGroup: boolean;
|
|
84
84
|
}>;
|
package/es/checkbox/index.d.ts
CHANGED
|
@@ -36,8 +36,8 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
|
36
36
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
37
37
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
disabled: boolean;
|
|
40
39
|
shape: import("./Checker").CheckerShape;
|
|
40
|
+
disabled: boolean;
|
|
41
41
|
labelDisabled: boolean;
|
|
42
42
|
bindGroup: boolean;
|
|
43
43
|
}>>;
|
|
@@ -10,6 +10,8 @@ const [name, bem] = createNamespace("collapse-item");
|
|
|
10
10
|
const collapseItemProps = extend({}, {
|
|
11
11
|
name: numericProp,
|
|
12
12
|
title: numericProp,
|
|
13
|
+
// disabled: Boolean,
|
|
14
|
+
// readonly: Boolean,
|
|
13
15
|
lazyRender: truthProp,
|
|
14
16
|
titleBackground: String,
|
|
15
17
|
color: String
|
|
@@ -100,7 +102,7 @@ var stdin_default = defineComponent({
|
|
|
100
102
|
custom: titleBackground
|
|
101
103
|
})
|
|
102
104
|
}, [props.title]), _createVNode(Icon, {
|
|
103
|
-
"name": "keyboard-arrow-
|
|
105
|
+
"name": "keyboard-arrow-down",
|
|
104
106
|
"style": color ? `color:${color};` : "",
|
|
105
107
|
"class": bem("icon", {
|
|
106
108
|
expanded: expanded.value,
|
|
@@ -213,8 +213,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
213
213
|
"onUpdate:startValue"?: ((...args: any[]) => any) | undefined;
|
|
214
214
|
"onUpdate:endValue"?: ((...args: any[]) => any) | undefined;
|
|
215
215
|
}, {
|
|
216
|
-
range: boolean;
|
|
217
216
|
title: string;
|
|
217
|
+
range: boolean;
|
|
218
218
|
formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
219
219
|
modelValue: string[];
|
|
220
220
|
readonly: boolean;
|
|
@@ -199,7 +199,9 @@ var stdin_default = defineComponent({
|
|
|
199
199
|
"modelValue": props.modelValue,
|
|
200
200
|
"onUpdate:modelValue": ($event) => props.modelValue = $event,
|
|
201
201
|
"onChange": onChange,
|
|
202
|
-
"columnsType": props.columnsType
|
|
202
|
+
"columnsType": props.columnsType,
|
|
203
|
+
"maxDate": props.maxDate,
|
|
204
|
+
"minDate": props.minDate
|
|
203
205
|
}, extend(pick(props, pickerInheritKeys), {
|
|
204
206
|
showTitle: false
|
|
205
207
|
})), null);
|
|
@@ -209,7 +211,9 @@ var stdin_default = defineComponent({
|
|
|
209
211
|
"modelValue": props.startValue,
|
|
210
212
|
"onUpdate:modelValue": ($event) => props.startValue = $event,
|
|
211
213
|
"onChange": onStartChange,
|
|
212
|
-
"columnsType": props.columnsType
|
|
214
|
+
"columnsType": props.columnsType,
|
|
215
|
+
"maxDate": props.maxDate,
|
|
216
|
+
"minDate": props.minDate
|
|
213
217
|
}, extend(pick(props, pickerInheritKeys), {
|
|
214
218
|
showTitle: false
|
|
215
219
|
})), null), [[_vShow, rangeSelectedIndex.value === 0]]), _withDirectives(_createVNode(DateTimePicker, _mergeProps({
|
|
@@ -217,7 +221,9 @@ var stdin_default = defineComponent({
|
|
|
217
221
|
"modelValue": props.endValue,
|
|
218
222
|
"onUpdate:modelValue": ($event) => props.endValue = $event,
|
|
219
223
|
"onChange": onEndChange,
|
|
220
|
-
"columnsType": props.columnsType
|
|
224
|
+
"columnsType": props.columnsType,
|
|
225
|
+
"maxDate": props.maxDate,
|
|
226
|
+
"minDate": props.minDate
|
|
221
227
|
}, extend(pick(props, pickerInheritKeys), {
|
|
222
228
|
showTitle: false
|
|
223
229
|
})), null), [[_vShow, rangeSelectedIndex.value === 1]])];
|
|
@@ -305,8 +305,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
305
305
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
306
306
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
307
307
|
}, {
|
|
308
|
-
range: boolean;
|
|
309
308
|
title: string;
|
|
309
|
+
range: boolean;
|
|
310
310
|
formatter: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
|
311
311
|
modelValue: string[];
|
|
312
312
|
readonly: boolean;
|
|
@@ -210,8 +210,8 @@ export declare const DateTimePicker: import("../utils").WithInstall<import("vue"
|
|
|
210
210
|
"onUpdate:startValue"?: ((...args: any[]) => any) | undefined;
|
|
211
211
|
"onUpdate:endValue"?: ((...args: any[]) => any) | undefined;
|
|
212
212
|
}, {
|
|
213
|
-
range: boolean;
|
|
214
213
|
title: string;
|
|
214
|
+
range: boolean;
|
|
215
215
|
formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
216
216
|
modelValue: string[];
|
|
217
217
|
readonly: boolean;
|
package/es/dialog/Dialog.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare const dialogProps: {
|
|
|
27
27
|
};
|
|
28
28
|
} & {
|
|
29
29
|
title: StringConstructor;
|
|
30
|
+
primaryHeader: BooleanConstructor;
|
|
30
31
|
theme: PropType<DialogTheme>;
|
|
31
32
|
width: (NumberConstructor | StringConstructor)[];
|
|
32
33
|
message: PropType<DialogMessage>;
|
|
@@ -83,6 +84,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
84
|
};
|
|
84
85
|
} & {
|
|
85
86
|
title: StringConstructor;
|
|
87
|
+
primaryHeader: BooleanConstructor;
|
|
86
88
|
theme: PropType<DialogTheme>;
|
|
87
89
|
width: (NumberConstructor | StringConstructor)[];
|
|
88
90
|
message: PropType<DialogMessage>;
|
|
@@ -137,6 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
137
139
|
};
|
|
138
140
|
} & {
|
|
139
141
|
title: StringConstructor;
|
|
142
|
+
primaryHeader: BooleanConstructor;
|
|
140
143
|
theme: PropType<DialogTheme>;
|
|
141
144
|
width: (NumberConstructor | StringConstructor)[];
|
|
142
145
|
message: PropType<DialogMessage>;
|
|
@@ -179,6 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
179
182
|
transition: string;
|
|
180
183
|
closeOnPopstate: boolean;
|
|
181
184
|
allowHtml: boolean;
|
|
185
|
+
primaryHeader: boolean;
|
|
182
186
|
showCancelButton: boolean;
|
|
183
187
|
cancelButtonDisabled: boolean;
|
|
184
188
|
confirmButtonDisabled: boolean;
|