bkui-vue 1.0.3-beta.9 → 2.0.1-beta.10
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/dist/index.cjs.js +162 -164
- package/dist/index.esm.js +31999 -29678
- package/dist/index.umd.js +162 -164
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +6 -3
- package/lib/cascader/index.js +35 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +7 -7
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +11 -3
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +6 -3
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +32 -30
- package/lib/components.js +31 -29
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +3 -3
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +340 -224
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +2 -64
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +9 -1
- package/lib/dialog/dialog.css +172 -150
- package/lib/dialog/dialog.d.ts +55 -124
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +175 -150
- package/lib/dialog/index.d.ts +132 -296
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +16 -41
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -167
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +17 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +12 -11
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +25 -22
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +25 -23
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.variable.css +3 -0
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +44 -312
- package/lib/modal/index.js +286 -672
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +151 -76
- package/lib/modal/modal.d.ts +19 -117
- package/lib/modal/modal.less +103 -56
- package/lib/modal/modal.variable.css +154 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +107 -63
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -15
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +62 -44
- package/lib/pop-confirm/index.js +17 -14
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/pop-confirm/props.d.ts +2 -2
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +62 -44
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -31
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +30 -0
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +8 -9
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18762 -0
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{rate/star.variable.css → scrollbar/scrollbar.variable.css} +70 -19
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +754 -419
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +117 -7
- package/lib/search-select/utils.d.ts +22 -9
- package/lib/select/index.d.ts +185 -67
- package/lib/select/index.js +1396 -136
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +56 -14
- package/lib/select/select.d.ts +74 -26
- package/lib/select/select.less +70 -21
- package/lib/select/select.variable.css +59 -14
- package/lib/select/selectTagInput.d.ts +13 -6
- package/lib/select/type.d.ts +4 -5
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +108 -96
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +51 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +58 -188
- package/lib/sideslider/index.js +83 -57
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +26 -88
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +64 -26
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +30 -100
- package/lib/table/const.d.ts +12 -12
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +220 -305
- package/lib/table/index.js +18165 -688
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +13 -0
- package/lib/table/props.d.ts +49 -39
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +58 -47
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +9 -46
- package/lib/table/use-column.d.ts +18 -139
- package/lib/table/use-common.d.ts +5 -5
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +6 -6
- package/lib/table-column/index.d.ts +127 -431
- package/lib/table-column/index.js +43 -117
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +12 -12
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +6 -6
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +3 -3
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +56 -67
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +12 -9
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +64 -20
- package/lib/tree/index.js +17595 -72
- package/lib/tree/props.d.ts +24 -6
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +34 -8
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +62 -65
- package/lib/upload/props.d.ts +4 -1
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/upload.variable.css +3 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +13 -49
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/shared/mask.d.ts +0 -11
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { ComputedPlacement } from '@popperjs/core';
|
2
1
|
import type { DatePickerProps } from './props';
|
2
|
+
import type { ComputedPlacement } from '@popperjs/core';
|
3
3
|
export type DatePickerPlacementType = ComputedPlacement;
|
4
|
-
export type DatePickerTypeType = '
|
4
|
+
export type DatePickerTypeType = 'date' | 'daterange' | 'datetime' | 'datetimerange' | 'month' | 'monthrange' | 'year' | 'yearrange';
|
5
5
|
export type TimePickerTypeType = 'time' | 'timerange';
|
6
6
|
export type PickerTypeType = DatePickerTypeType | TimePickerTypeType;
|
7
7
|
export interface IDatePickerShortcut {
|
@@ -10,20 +10,20 @@ export interface IDatePickerShortcut {
|
|
10
10
|
onClick?: (picker: any) => void;
|
11
11
|
}
|
12
12
|
export type DatePickerShortcutsType = IDatePickerShortcut[];
|
13
|
-
type ValueType = Date |
|
14
|
-
export type DatePickerValueType =
|
15
|
-
export type DisabledDateType = (date:
|
13
|
+
type ValueType = Date | number | string;
|
14
|
+
export type DatePickerValueType = [ValueType, ValueType] | ValueType;
|
15
|
+
export type DisabledDateType = (date: Date | number) => boolean;
|
16
16
|
export interface IDatePickerCtx {
|
17
17
|
props: DatePickerProps;
|
18
18
|
focus: () => void;
|
19
19
|
}
|
20
20
|
export interface ITimePickerCtx {
|
21
21
|
parentName: string;
|
22
|
-
panelDate?: Date |
|
23
|
-
dates?:
|
22
|
+
panelDate?: Date | number | string;
|
23
|
+
dates?: [ValueType, ValueType] | ValueType;
|
24
24
|
}
|
25
|
-
export type DatePickerPanelType = '
|
26
|
-
export type SelectionModeType = '
|
25
|
+
export type DatePickerPanelType = 'DatePanel' | 'DateRangePanel' | 'RangeTimePickerPanel' | 'TimePickerPanel';
|
26
|
+
export type SelectionModeType = 'date' | 'month' | 'time' | 'year';
|
27
27
|
export interface IDisabledHMS {
|
28
28
|
disabledHours?: number[];
|
29
29
|
disabledMinutes?: number[];
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { ExtractPropTypes } from 'vue';
|
2
1
|
import { PropType } from 'vue';
|
3
2
|
import type { DatePickerShortcutsType, DatePickerValueType, DisabledDateType, PickerTypeType, SelectionModeType } from '../interface';
|
3
|
+
import type { ExtractPropTypes } from 'vue';
|
4
4
|
declare const dateRangePanelProps: {
|
5
5
|
readonly modelValue: {
|
6
6
|
readonly type: PropType<DatePickerValueType>;
|
@@ -191,69 +191,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
191
191
|
leftPickerTable: import("vue").Ref<string>;
|
192
192
|
rightPickerTable: import("vue").Ref<string>;
|
193
193
|
leftPanelDate: import("vue").Ref<any>;
|
194
|
-
rightPanelDate: import("vue").Ref<
|
195
|
-
toString: () => string;
|
196
|
-
toDateString: () => string;
|
197
|
-
toTimeString: () => string;
|
198
|
-
toLocaleString: {
|
199
|
-
(): string;
|
200
|
-
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
201
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
202
|
-
};
|
203
|
-
toLocaleDateString: {
|
204
|
-
(): string;
|
205
|
-
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
206
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
207
|
-
};
|
208
|
-
toLocaleTimeString: {
|
209
|
-
(): string;
|
210
|
-
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
211
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
212
|
-
};
|
213
|
-
valueOf: () => number;
|
214
|
-
getTime: () => number;
|
215
|
-
getFullYear: () => number;
|
216
|
-
getUTCFullYear: () => number;
|
217
|
-
getMonth: () => number;
|
218
|
-
getUTCMonth: () => number;
|
219
|
-
getDate: () => number;
|
220
|
-
getUTCDate: () => number;
|
221
|
-
getDay: () => number;
|
222
|
-
getUTCDay: () => number;
|
223
|
-
getHours: () => number;
|
224
|
-
getUTCHours: () => number;
|
225
|
-
getMinutes: () => number;
|
226
|
-
getUTCMinutes: () => number;
|
227
|
-
getSeconds: () => number;
|
228
|
-
getUTCSeconds: () => number;
|
229
|
-
getMilliseconds: () => number;
|
230
|
-
getUTCMilliseconds: () => number;
|
231
|
-
getTimezoneOffset: () => number;
|
232
|
-
setTime: (time: number) => number;
|
233
|
-
setMilliseconds: (ms: number) => number;
|
234
|
-
setUTCMilliseconds: (ms: number) => number;
|
235
|
-
setSeconds: (sec: number, ms?: number) => number;
|
236
|
-
setUTCSeconds: (sec: number, ms?: number) => number;
|
237
|
-
setMinutes: (min: number, sec?: number, ms?: number) => number;
|
238
|
-
setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
|
239
|
-
setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
|
240
|
-
setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
|
241
|
-
setDate: (date: number) => number;
|
242
|
-
setUTCDate: (date: number) => number;
|
243
|
-
setMonth: (month: number, date?: number) => number;
|
244
|
-
setUTCMonth: (month: number, date?: number) => number;
|
245
|
-
setFullYear: (year: number, month?: number, date?: number) => number;
|
246
|
-
setUTCFullYear: (year: number, month?: number, date?: number) => number;
|
247
|
-
toUTCString: () => string;
|
248
|
-
toISOString: () => string;
|
249
|
-
toJSON: (key?: any) => string;
|
250
|
-
[Symbol.toPrimitive]: {
|
251
|
-
(hint: "default"): string;
|
252
|
-
(hint: "string"): string;
|
253
|
-
(hint: "number"): number;
|
254
|
-
(hint: string): string | number;
|
255
|
-
};
|
256
|
-
}>;
|
194
|
+
rightPanelDate: import("vue").Ref<any>;
|
257
195
|
rangeState: import("vue").Ref<{
|
258
196
|
from: any;
|
259
197
|
to: any;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { ExtractPropTypes } from 'vue';
|
2
1
|
import { PropType } from 'vue';
|
3
2
|
import type { DatePickerShortcutsType, DatePickerValueType, DisabledDateType, SelectionModeType } from '../interface';
|
3
|
+
import type { ExtractPropTypes } from 'vue';
|
4
4
|
declare const datePanelProps: {
|
5
5
|
readonly modelValue: {
|
6
6
|
readonly type: PropType<DatePickerValueType>;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { ExtractPropTypes } from 'vue';
|
2
1
|
import { PropType } from 'vue';
|
3
2
|
import type { DatePickerShortcutsType, DatePickerValueType, DisabledDateType, PickerTypeType } from './interface';
|
3
|
+
import type { ExtractPropTypes } from 'vue';
|
4
4
|
export declare const datePickerProps: {
|
5
5
|
readonly type: {
|
6
6
|
readonly type: PropType<PickerTypeType>;
|
@@ -165,6 +165,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
165
165
|
inputRef: import("vue").Ref<any>;
|
166
166
|
triggerRef: import("vue").Ref<HTMLElement>;
|
167
167
|
pickerPanelRef: import("vue").Ref<any>;
|
168
|
+
teleportTo: import("vue").Ref<any>;
|
168
169
|
handleClose: (e?: Event) => boolean;
|
169
170
|
handleIconClick: () => void;
|
170
171
|
handleInputMouseenter: () => void;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { InjectionKey } from 'vue';
|
2
1
|
import type { IDatePickerCtx, ITimePickerCtx, PickerTypeType } from './interface';
|
2
|
+
import type { InjectionKey } from 'vue';
|
3
3
|
export declare const RANGE_SEPARATOR = " - ";
|
4
4
|
export declare const typeValueResolver: {
|
5
5
|
default: {
|
@@ -34,10 +34,18 @@ export declare const typeValueResolver: {
|
|
34
34
|
formatter: (value: any, format: any) => string;
|
35
35
|
parser: (text: any, format: any) => any;
|
36
36
|
};
|
37
|
+
monthrange: {
|
38
|
+
formatter: (value: any, format: any) => string;
|
39
|
+
parser: (text: any, format: any) => any[];
|
40
|
+
};
|
37
41
|
year: {
|
38
42
|
formatter: (value: any, format: any) => string;
|
39
43
|
parser: (text: any, format: any) => any;
|
40
44
|
};
|
45
|
+
yearrange: {
|
46
|
+
formatter: (value: any, format: any) => string;
|
47
|
+
parser: (text: any, format: any) => any[];
|
48
|
+
};
|
41
49
|
multiple: {
|
42
50
|
formatter(value: any, format: any): any;
|
43
51
|
parser(v: any, format: any): any;
|
package/lib/dialog/dialog.css
CHANGED
@@ -1,209 +1,231 @@
|
|
1
|
-
.bk-
|
2
|
-
|
1
|
+
.bk-infobox {
|
2
|
+
font-size: 12px;
|
3
3
|
}
|
4
|
-
.bk-
|
5
|
-
|
4
|
+
.bk-infobox .bk-modal-wrapper {
|
5
|
+
top: 50%;
|
6
|
+
left: 50%;
|
7
|
+
transform: translate(-50%, -50%);
|
6
8
|
}
|
7
|
-
.bk-
|
8
|
-
|
9
|
+
.bk-infobox-header {
|
10
|
+
padding-top: 24px;
|
9
11
|
}
|
10
|
-
.bk-
|
11
|
-
|
12
|
+
.bk-infobox-type {
|
13
|
+
display: flex;
|
14
|
+
justify-content: center;
|
15
|
+
align-items: center;
|
12
16
|
}
|
13
|
-
.bk-
|
14
|
-
|
17
|
+
.bk-infobox-icon {
|
18
|
+
width: 42px;
|
19
|
+
height: 42px;
|
20
|
+
font-size: 42px;
|
15
21
|
}
|
16
|
-
.bk-
|
17
|
-
|
18
|
-
margin: 15px 0 10px;
|
22
|
+
.bk-infobox-icon.success {
|
23
|
+
color: #2dcb56;
|
19
24
|
}
|
20
|
-
.bk-
|
21
|
-
|
22
|
-
max-height: 100%;
|
23
|
-
min-height: 100%;
|
24
|
-
padding: 0 50px 10px;
|
25
|
-
word-break: break-all;
|
26
|
-
}
|
27
|
-
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
|
28
|
-
margin-bottom: 10px;
|
29
|
-
text-align: center;
|
30
|
-
word-break: break-all;
|
31
|
-
}
|
32
|
-
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
|
33
|
-
padding: 0 65px 33px;
|
34
|
-
background-color: #fff;
|
35
|
-
border-top: none;
|
36
|
-
}
|
37
|
-
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-footer button {
|
38
|
-
min-width: 88px;
|
25
|
+
.bk-infobox-icon.warning {
|
26
|
+
color: #ff9c01;
|
39
27
|
}
|
40
|
-
.bk-
|
41
|
-
|
42
|
-
top: 0px;
|
43
|
-
left: 0px;
|
44
|
-
width: 100%;
|
45
|
-
height: 100%;
|
28
|
+
.bk-infobox-icon.danger {
|
29
|
+
color: #ea3636;
|
46
30
|
}
|
47
|
-
.bk-
|
48
|
-
|
31
|
+
.bk-infobox-icon.loading {
|
32
|
+
color: #3a84ff;
|
33
|
+
}
|
34
|
+
.bk-infobox-title {
|
35
|
+
padding-right: 24px;
|
36
|
+
padding-left: 24px;
|
37
|
+
margin-top: 24px;
|
38
|
+
font-size: 20px;
|
39
|
+
line-height: 32px;
|
40
|
+
color: #313238;
|
49
41
|
}
|
50
|
-
.bk-
|
51
|
-
|
42
|
+
.bk-infobox-content {
|
43
|
+
padding-right: 24px;
|
44
|
+
padding-left: 24px;
|
45
|
+
margin-top: 16px;
|
52
46
|
}
|
53
|
-
.bk-
|
54
|
-
display:
|
55
|
-
|
47
|
+
.bk-infobox-footer {
|
48
|
+
display: flex;
|
49
|
+
padding-right: 24px;
|
50
|
+
padding-bottom: 24px;
|
51
|
+
padding-left: 24px;
|
52
|
+
margin-top: 24px;
|
53
|
+
align-content: center;
|
54
|
+
}
|
55
|
+
.bk-infobox-footer.is-position-right {
|
56
|
+
justify-content: right;
|
57
|
+
}
|
58
|
+
.bk-infobox-footer.is-position-center {
|
59
|
+
justify-content: center;
|
60
|
+
}
|
61
|
+
.bk-infobox-footer.is-position-left {
|
62
|
+
justify-content: left;
|
63
|
+
}
|
64
|
+
.bk-infobox-footer .bk-button {
|
65
|
+
min-width: 88px;
|
66
|
+
}
|
67
|
+
.bk-infobox-footer .bk-button ~ .bk-button {
|
68
|
+
margin-left: 8px;
|
69
|
+
}
|
70
|
+
.bk-modal-mask {
|
71
|
+
position: fixed;
|
56
72
|
top: 0;
|
73
|
+
left: 0;
|
57
74
|
width: 100%;
|
58
75
|
height: 100%;
|
59
76
|
background-color: rgba(0, 0, 0, 0.6);
|
60
77
|
}
|
61
|
-
.bk-modal-
|
78
|
+
.bk-modal-wrapper {
|
62
79
|
position: fixed;
|
63
|
-
display: inherit;
|
64
80
|
}
|
65
|
-
.bk-modal-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
width: 480px;
|
81
|
+
.bk-modal-body {
|
82
|
+
height: 100%;
|
83
|
+
overflow: hidden;
|
84
|
+
background: #fff;
|
70
85
|
border-radius: 2px;
|
71
|
-
|
86
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
72
87
|
}
|
73
|
-
.bk-modal-
|
74
|
-
position:
|
75
|
-
|
76
|
-
right: 0;
|
77
|
-
bottom: 0;
|
78
|
-
left: 0;
|
88
|
+
.bk-modal-content {
|
89
|
+
position: relative;
|
90
|
+
max-height: 100vh;
|
79
91
|
}
|
80
|
-
.bk-modal-
|
81
|
-
|
82
|
-
height: 240px;
|
92
|
+
.bk-modal-footer {
|
93
|
+
position: relative;
|
83
94
|
}
|
84
|
-
.bk-modal-
|
85
|
-
|
86
|
-
|
95
|
+
.bk-modal-close {
|
96
|
+
position: absolute;
|
97
|
+
top: 6px;
|
98
|
+
right: 6px;
|
99
|
+
display: flex;
|
100
|
+
width: 32px;
|
101
|
+
height: 32px;
|
102
|
+
font-size: 18px;
|
103
|
+
color: #979ba5;
|
104
|
+
cursor: pointer;
|
105
|
+
align-items: center;
|
106
|
+
justify-content: center;
|
107
|
+
border-radius: 50%;
|
108
|
+
transition: 0.15s;
|
87
109
|
}
|
88
|
-
.bk-modal-
|
89
|
-
|
90
|
-
height: 400px;
|
110
|
+
.bk-modal-close:hover {
|
111
|
+
background: #f0f1f5;
|
91
112
|
}
|
92
|
-
.
|
93
|
-
|
94
|
-
height: 720px;
|
113
|
+
.modal-fadein-enter-from {
|
114
|
+
opacity: 0;
|
95
115
|
}
|
96
|
-
.
|
97
|
-
|
98
|
-
width: 100%;
|
99
|
-
background: #fff;
|
100
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
116
|
+
.modal-fadein-enter-from .bk-modal-body {
|
117
|
+
transform: translateY(-20px);
|
101
118
|
}
|
102
|
-
.
|
103
|
-
|
119
|
+
.modal-fadein-enter-to {
|
120
|
+
opacity: 1;
|
104
121
|
}
|
105
|
-
.
|
106
|
-
|
107
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
122
|
+
.modal-fadein-enter-to .bk-modal-body {
|
123
|
+
transform: translateY(0);
|
108
124
|
}
|
109
|
-
.
|
110
|
-
|
125
|
+
.modal-fadein-leave-from {
|
126
|
+
opacity: 1;
|
111
127
|
}
|
112
|
-
.
|
113
|
-
|
128
|
+
.modal-fadein-leave-from .bk-modal-body {
|
129
|
+
transform: translateY(0);
|
114
130
|
}
|
115
|
-
.
|
116
|
-
|
117
|
-
top: 0;
|
118
|
-
right: 0;
|
119
|
-
left: 0;
|
120
|
-
height: 18px;
|
131
|
+
.modal-fadein-leave-to {
|
132
|
+
opacity: 0;
|
121
133
|
}
|
122
|
-
.
|
123
|
-
|
134
|
+
.modal-fadein-leave-to .bk-modal-body {
|
135
|
+
transform: translateY(-20px);
|
124
136
|
}
|
125
|
-
.
|
126
|
-
|
137
|
+
.modal-fadein-enter-active,
|
138
|
+
.modal-fadein-leave-active {
|
139
|
+
transition: opacity 0.15s linear;
|
127
140
|
}
|
128
|
-
.
|
129
|
-
|
130
|
-
|
131
|
-
line-height: 1;
|
141
|
+
.modal-fadein-enter-active .bk-modal-body,
|
142
|
+
.modal-fadein-leave-active .bk-modal-body {
|
143
|
+
transition: transform 0.08s linear;
|
132
144
|
}
|
133
|
-
.
|
134
|
-
|
145
|
+
.modal-right-enter-from {
|
146
|
+
transform: translateX(100%);
|
135
147
|
}
|
136
|
-
.
|
137
|
-
|
138
|
-
font-size: 48px;
|
148
|
+
.modal-right-enter-to {
|
149
|
+
transform: translateX(0);
|
139
150
|
}
|
140
|
-
.
|
141
|
-
|
151
|
+
.modal-right-leave-from {
|
152
|
+
transform: translateX(0);
|
142
153
|
}
|
143
|
-
.
|
144
|
-
|
154
|
+
.modal-right-leave-to {
|
155
|
+
transform: translateX(100%);
|
145
156
|
}
|
146
|
-
.
|
147
|
-
|
157
|
+
.modal-right-enter-active,
|
158
|
+
.modal-right-leave-active {
|
159
|
+
transition: transform 0.15s ease;
|
148
160
|
}
|
149
|
-
.
|
150
|
-
|
151
|
-
width: 100%;
|
152
|
-
overflow: hidden;
|
153
|
-
color: #313238;
|
154
|
-
text-overflow: ellipsis;
|
155
|
-
white-space: nowrap;
|
161
|
+
.modal-left-enter-from {
|
162
|
+
transform: translateX(-100%);
|
156
163
|
}
|
157
|
-
.
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
164
|
+
.modal-left-enter-to {
|
165
|
+
transform: translateX(0);
|
166
|
+
}
|
167
|
+
.modal-left-leave-from {
|
168
|
+
transform: translateX(0);
|
169
|
+
}
|
170
|
+
.modal-left-leave-to {
|
171
|
+
transform: translateX(-100%);
|
172
|
+
}
|
173
|
+
.modal-left-enter-active,
|
174
|
+
.modal-left-leave-active {
|
175
|
+
transition: transform 0.15s ease;
|
176
|
+
}
|
177
|
+
.bk-dialog {
|
162
178
|
font-size: 14px;
|
163
|
-
line-height: 1.5;
|
164
|
-
color: #63656e;
|
165
179
|
}
|
166
|
-
.bk-dialog
|
167
|
-
|
180
|
+
.bk-dialog.is-fullscreen .bk-modal-wrapper {
|
181
|
+
top: 0;
|
182
|
+
right: 0;
|
183
|
+
bottom: 0;
|
184
|
+
left: 0;
|
185
|
+
border-radius: 0;
|
186
|
+
transform: translate(0, 0);
|
168
187
|
}
|
169
|
-
.bk-dialog
|
170
|
-
|
188
|
+
.bk-dialog .bk-modal-wrapper {
|
189
|
+
top: 50%;
|
190
|
+
left: 50%;
|
191
|
+
transform: translate(-50%, -50%);
|
171
192
|
}
|
172
|
-
.bk-dialog-
|
173
|
-
padding
|
193
|
+
.bk-dialog-header {
|
194
|
+
padding: 16px 24px 0;
|
195
|
+
font-size: 20px;
|
174
196
|
}
|
175
|
-
.bk-dialog-
|
176
|
-
|
197
|
+
.bk-dialog-title {
|
198
|
+
display: inline-block;
|
199
|
+
width: 100%;
|
200
|
+
color: #313238;
|
177
201
|
}
|
178
|
-
.bk-dialog-
|
202
|
+
.bk-dialog-tool {
|
179
203
|
position: absolute;
|
204
|
+
top: 0;
|
180
205
|
right: 0;
|
181
|
-
bottom: 0;
|
182
206
|
left: 0;
|
183
|
-
height:
|
207
|
+
height: 18px;
|
208
|
+
cursor: move;
|
209
|
+
user-select: none;
|
210
|
+
}
|
211
|
+
.bk-dialog-content {
|
212
|
+
padding: 0 24px;
|
213
|
+
margin-top: 16px;
|
214
|
+
margin-bottom: 24px;
|
215
|
+
color: #63656e;
|
216
|
+
}
|
217
|
+
.bk-dialog-footer {
|
184
218
|
padding: 8px 24px;
|
185
219
|
background-color: #fafbfd;
|
186
220
|
border-top: 1px solid #dcdee5;
|
187
|
-
border-radius: 2px;
|
188
221
|
}
|
189
|
-
.bk-dialog-
|
222
|
+
.bk-dialog-footer .bk-dialog-perv {
|
190
223
|
float: left;
|
191
224
|
margin-right: 8px;
|
192
225
|
}
|
193
|
-
.bk-dialog-
|
226
|
+
.bk-dialog-footer .bk-dialog-next {
|
194
227
|
float: left;
|
195
228
|
}
|
196
|
-
.bk-dialog-
|
229
|
+
.bk-dialog-footer .bk-dialog-cancel {
|
197
230
|
margin-left: 8px;
|
198
231
|
}
|
199
|
-
.bk-dialog-wrapper .bk-modal-wrapper .bk-modal-close {
|
200
|
-
position: absolute;
|
201
|
-
top: 4px;
|
202
|
-
right: 4px;
|
203
|
-
font-size: 18px;
|
204
|
-
color: #c4c6cc;
|
205
|
-
cursor: pointer;
|
206
|
-
}
|
207
|
-
.bk-dialog-wrapper .bk-modal-wrapper .bk-modal-close:hover {
|
208
|
-
color: #979ba5;
|
209
|
-
}
|