@varlet/ui 1.27.20 → 2.0.0-alpha.1663499244572
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/CHANGELOG.md +1885 -1885
- package/LICENCE +21 -21
- package/README.en-US.md +86 -93
- package/README.md +93 -93
- package/es/action-sheet/actionSheet.css +1 -1
- package/es/action-sheet/props.js +1 -1
- package/es/bottom-navigation/BottomNavigation.js +1 -1
- package/es/button/Button.js +2 -1
- package/es/button/button.css +1 -1
- package/es/button/props.js +5 -0
- package/es/card/Card.js +18 -22
- package/es/card/card.css +1 -1
- package/es/card/props.js +0 -7
- package/es/cell/Cell.js +3 -3
- package/es/cell/cell.css +1 -1
- package/es/cell/props.js +2 -2
- package/es/chip/chip.css +1 -1
- package/es/date-picker/DatePicker.js +1 -1
- package/es/date-picker/props.js +1 -1
- package/es/date-picker/src/day-picker-panel.js +1 -1
- package/es/date-picker/src/month-picker-panel.js +1 -1
- package/es/dialog/props.js +1 -1
- package/es/divider/Divider.js +1 -1
- package/es/image-preview/props.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +5 -0
- package/es/input/Input.js +1 -1
- package/es/lazy/index.js +1 -1
- package/es/loading/loading.css +1 -1
- package/es/loading/props.js +1 -2
- package/es/locale/en-US.d.ts +5 -5
- package/es/locale/index.js +7 -2
- package/es/locale/zh-CN.d.ts +5 -5
- package/es/menu/Menu.js +318 -94
- package/es/{action-sheet/ActionSheetSfc.less → menu/MenuSfc.css} +0 -0
- package/es/menu/index.js +1 -1
- package/es/menu/menu.css +1 -1
- package/es/menu/props.js +23 -6
- package/es/menu/style/index.js +3 -2
- package/es/pagination/Pagination.js +7 -3
- package/es/pagination/pagination.css +1 -1
- package/es/picker/props.js +1 -1
- package/es/popup/Popup.js +3 -3
- package/es/rate/Rate.js +20 -36
- package/es/rate/rate.css +1 -1
- package/es/ripple/index.js +2 -2
- package/es/select/Select.js +18 -46
- package/es/select/select.css +1 -1
- package/es/slider/Slider.js +1 -1
- package/es/snackbar/core.js +4 -2
- package/es/snackbar/index.js +1 -1
- package/es/snackbar/props.js +6 -2
- package/es/style-provider/StyleProvider.js +5 -1
- package/es/style.css +1 -1
- package/es/style.js +1 -0
- package/es/switch/Switch.js +6 -5
- package/es/tabs/tabs.css +1 -1
- package/es/tabs-items/TabsItems.js +8 -2
- package/es/themes/dark/cell.js +1 -1
- package/es/themes/dark/index.d.ts +5 -5
- package/es/themes/dark/index.js +3 -2
- package/es/themes/dark/menu.js +3 -0
- package/es/themes/index.js +4 -0
- package/es/time-picker/TimePicker.js +1 -1
- package/es/time-picker/props.js +1 -1
- package/es/umdIndex.js +5 -0
- package/es/utils/components.js +2 -2
- package/es/utils/{jest.js → test.js} +0 -19
- package/es/varlet.esm.js +12805 -13960
- package/highlight/attributes.json +1 -1850
- package/highlight/tags.json +58 -578
- package/highlight/web-types.json +152 -5241
- package/json/area.json +10706 -10706
- package/lib/action-sheet/actionSheet.css +1 -1
- package/lib/action-sheet/props.js +1 -1
- package/lib/bottom-navigation/BottomNavigation.js +1 -1
- package/lib/button/Button.js +2 -1
- package/lib/button/button.css +1 -1
- package/lib/button/props.js +5 -0
- package/lib/card/Card.js +18 -22
- package/lib/card/card.css +1 -1
- package/lib/card/props.js +0 -7
- package/lib/cell/Cell.js +3 -3
- package/lib/cell/cell.css +1 -1
- package/lib/cell/props.js +2 -2
- package/lib/chip/chip.css +1 -1
- package/lib/date-picker/DatePicker.js +14 -14
- package/lib/date-picker/props.js +1 -1
- package/lib/date-picker/src/day-picker-panel.js +14 -14
- package/lib/date-picker/src/month-picker-panel.js +12 -12
- package/lib/date-picker/src/year-picker-panel.js +3 -3
- package/lib/dialog/props.js +1 -1
- package/lib/divider/Divider.js +1 -1
- package/lib/image-preview/props.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -0
- package/lib/input/Input.js +1 -1
- package/lib/lazy/index.js +1 -1
- package/lib/loading/loading.css +1 -1
- package/lib/loading/props.js +1 -2
- package/lib/locale/en-US.d.ts +5 -5
- package/lib/locale/index.js +11 -1
- package/lib/locale/zh-CN.d.ts +5 -5
- package/lib/menu/Menu.js +321 -91
- package/{es/app-bar/AppBarSfc.less → lib/menu/MenuSfc.css} +0 -0
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +1 -1
- package/lib/menu/props.js +23 -6
- package/lib/menu/style/index.js +3 -2
- package/lib/pagination/Pagination.js +6 -2
- package/lib/pagination/pagination.css +1 -1
- package/lib/picker/props.js +1 -1
- package/lib/popup/Popup.js +2 -2
- package/lib/rate/Rate.js +20 -36
- package/lib/rate/rate.css +1 -1
- package/lib/ripple/index.js +2 -2
- package/lib/select/Select.js +17 -45
- package/lib/select/select.css +1 -1
- package/lib/slider/Slider.js +1 -1
- package/lib/snackbar/core.js +4 -2
- package/lib/snackbar/index.js +1 -1
- package/lib/snackbar/props.js +6 -2
- package/lib/style-provider/StyleProvider.js +5 -1
- package/lib/style.css +1 -1
- package/lib/style.js +1 -0
- package/lib/switch/Switch.js +6 -5
- package/lib/tabs/tabs.css +1 -1
- package/lib/tabs-items/TabsItems.js +9 -3
- package/lib/themes/dark/cell.js +1 -1
- package/lib/themes/dark/index.d.ts +5 -5
- package/lib/themes/dark/index.js +4 -2
- package/lib/themes/dark/menu.js +8 -0
- package/lib/themes/index.js +13 -0
- package/lib/time-picker/TimePicker.js +9 -9
- package/lib/time-picker/clock.js +3 -3
- package/lib/time-picker/props.js +1 -1
- package/lib/utils/components.js +3 -3
- package/lib/utils/{jest.js → test.js} +0 -21
- package/package.json +14 -10
- package/types/actionSheet.d.ts +68 -69
- package/types/appBar.d.ts +17 -16
- package/types/backTop.d.ts +16 -17
- package/types/badge.d.ts +20 -19
- package/types/bottomNavigation.d.ts +23 -24
- package/types/bottomNavigationItem.d.ts +17 -18
- package/types/button.d.ts +29 -28
- package/types/card.d.ts +29 -30
- package/types/cell.d.ts +18 -19
- package/types/checkbox.d.ts +34 -35
- package/types/checkboxGroup.d.ts +29 -30
- package/types/chip.d.ts +20 -21
- package/types/col.d.ts +23 -24
- package/types/collapse.d.ts +17 -18
- package/types/collapseItem.d.ts +14 -15
- package/types/countdown.d.ts +29 -30
- package/types/counter.d.ts +44 -45
- package/types/datePicker.d.ts +29 -28
- package/types/dialog.d.ts +84 -83
- package/types/divider.d.ts +15 -16
- package/types/form.d.ts +18 -19
- package/types/icon.d.ts +16 -17
- package/types/image.d.ts +26 -25
- package/types/imagePreview.d.ts +51 -52
- package/types/index.d.ts +67 -0
- package/types/indexAnchor.d.ts +11 -12
- package/types/indexBar.d.ts +21 -22
- package/types/input.d.ts +48 -47
- package/types/lazy.d.ts +5 -5
- package/types/list.d.ts +21 -22
- package/types/loading.d.ts +18 -17
- package/types/locale.d.ts +52 -49
- package/types/menu.d.ts +46 -22
- package/types/option.d.ts +12 -13
- package/types/pagination.d.ts +25 -26
- package/types/picker.d.ts +85 -86
- package/types/popup.d.ts +27 -26
- package/types/progress.d.ts +22 -21
- package/types/pullRefresh.d.ts +20 -21
- package/types/radio.d.ts +34 -35
- package/types/radioGroup.d.ts +24 -25
- package/types/rate.d.ts +28 -29
- package/types/ripple.d.ts +5 -5
- package/types/row.d.ts +18 -15
- package/types/select.d.ts +48 -47
- package/types/skeleton.d.ts +21 -22
- package/types/slider.d.ts +30 -29
- package/types/snackbar.d.ts +82 -82
- package/types/space.d.ts +26 -27
- package/types/step.d.ts +13 -14
- package/types/steps.d.ts +15 -16
- package/types/sticky.d.ts +15 -16
- package/types/styleProvider.d.ts +24 -24
- package/types/swipe.d.ts +27 -28
- package/types/swipeItem.d.ts +9 -10
- package/types/switch.d.ts +25 -26
- package/types/tab.d.ts +13 -14
- package/types/tabItem.d.ts +11 -12
- package/types/table.d.ts +11 -12
- package/types/tabs.d.ts +29 -30
- package/types/tabsItems.d.ts +15 -13
- package/types/timePicker.d.ts +30 -29
- package/types/uploader.d.ts +65 -60
- package/types/varComponent.d.ts +18 -12
- package/types/varDirective.d.ts +12 -12
- package/umd/varlet.js +16 -4
- package/es/action-sheet/actionSheet.less +0 -68
- package/es/action-sheet/style/less.js +0 -6
- package/es/app-bar/appBar.less +0 -57
- package/es/app-bar/style/less.js +0 -4
- package/es/back-top/BackTopSfc.less +0 -0
- package/es/back-top/backTop.less +0 -27
- package/es/back-top/style/less.js +0 -5
- package/es/badge/BadgeSfc.less +0 -0
- package/es/badge/badge.less +0 -119
- package/es/badge/style/less.js +0 -4
- package/es/bottom-navigation/BottomNavigationSfc.less +0 -0
- package/es/bottom-navigation/bottomNavigation.less +0 -56
- package/es/bottom-navigation/style/less.js +0 -4
- package/es/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
- package/es/bottom-navigation-item/bottomNavigationItem.less +0 -78
- package/es/bottom-navigation-item/style/less.js +0 -6
- package/es/button/ButtonSfc.less +0 -0
- package/es/button/button.less +0 -183
- package/es/button/style/less.js +0 -6
- package/es/card/CardSfc.less +0 -0
- package/es/card/card.less +0 -189
- package/es/card/style/less.js +0 -5
- package/es/cell/CellSfc.less +0 -0
- package/es/cell/cell.less +0 -78
- package/es/cell/style/less.js +0 -4
- package/es/checkbox/CheckboxSfc.less +0 -0
- package/es/checkbox/checkbox.less +0 -78
- package/es/checkbox/style/less.js +0 -6
- package/es/checkbox-group/CheckboxGroupSfc.less +0 -0
- package/es/checkbox-group/checkboxGroup.less +0 -12
- package/es/checkbox-group/style/less.js +0 -4
- package/es/chip/ChipSfc.less +0 -0
- package/es/chip/chip.less +0 -182
- package/es/chip/style/less.js +0 -4
- package/es/col/ColSfc.less +0 -0
- package/es/col/col.less +0 -74
- package/es/col/style/less.js +0 -3
- package/es/collapse/CollapseSfc.less +0 -1
- package/es/collapse/style/less.js +0 -3
- package/es/collapse-item/CollapseItemSfc.less +0 -0
- package/es/collapse-item/collapseItem.less +0 -105
- package/es/collapse-item/style/less.js +0 -4
- package/es/context/style/less.js +0 -0
- package/es/countdown/CountdownSfc.less +0 -0
- package/es/countdown/style/less.js +0 -2
- package/es/counter/CounterSfc.less +0 -0
- package/es/counter/counter.less +0 -89
- package/es/counter/style/less.js +0 -7
- package/es/date-picker/DatePickerSfc.less +0 -0
- package/es/date-picker/date-picker.less +0 -354
- package/es/date-picker/style/less.js +0 -7
- package/es/dialog/DialogSfc.less +0 -0
- package/es/dialog/dialog.less +0 -77
- package/es/dialog/style/less.js +0 -5
- package/es/divider/DividerSfc.less +0 -0
- package/es/divider/divider.less +0 -78
- package/es/divider/style/less.js +0 -3
- package/es/form/FormSfc.less +0 -0
- package/es/form/style/less.js +0 -2
- package/es/form-details/FormDetailsSfc.less +0 -0
- package/es/form-details/formDetails.less +0 -48
- package/es/form-details/style/less.js +0 -3
- package/es/icon/IconSfc.less +0 -0
- package/es/icon/icon.less +0 -26
- package/es/icon/style/less.js +0 -3
- package/es/image/ImageSfc.less +0 -0
- package/es/image/image.less +0 -9
- package/es/image/style/less.js +0 -4
- package/es/image-preview/ImagePreviewSfc.less +0 -0
- package/es/image-preview/imagePreview.less +0 -76
- package/es/image-preview/style/less.js +0 -7
- package/es/index-anchor/IndexAnchorSfc.less +0 -1
- package/es/index-anchor/style/less.js +0 -3
- package/es/index-bar/IndexBarSfc.less +0 -0
- package/es/index-bar/indexBar.less +0 -43
- package/es/index-bar/style/less.js +0 -3
- package/es/input/InputSfc.less +0 -0
- package/es/input/input.less +0 -187
- package/es/input/style/less.js +0 -5
- package/es/lazy/style/less.js +0 -0
- package/es/less.js +0 -64
- package/es/list/ListSfc.less +0 -0
- package/es/list/list.less +0 -63
- package/es/list/style/less.js +0 -5
- package/es/loading/LoadingSfc.less +0 -0
- package/es/loading/loading.less +0 -500
- package/es/loading/style/less.js +0 -3
- package/es/locale/style/less.js +0 -0
- package/es/menu/menu.less +0 -21
- package/es/menu/style/less.js +0 -3
- package/es/option/OptionSfc.less +0 -0
- package/es/option/option.less +0 -37
- package/es/option/style/less.js +0 -6
- package/es/pagination/PaginationSfc.less +0 -0
- package/es/pagination/pagination.less +0 -188
- package/es/pagination/style/less.js +0 -8
- package/es/picker/PickerSfc.less +0 -0
- package/es/picker/picker.less +0 -106
- package/es/picker/style/less.js +0 -5
- package/es/popup/popup.less +0 -125
- package/es/popup/style/less.js +0 -2
- package/es/progress/ProgressSfc.less +0 -0
- package/es/progress/progress.less +0 -101
- package/es/progress/style/less.js +0 -3
- package/es/pull-refresh/PullRefreshSfc.less +0 -0
- package/es/pull-refresh/pullRefresh.less +0 -56
- package/es/pull-refresh/style/less.js +0 -5
- package/es/radio/RadioSfc.less +0 -0
- package/es/radio/radio.less +0 -78
- package/es/radio/style/less.js +0 -6
- package/es/radio-group/RadioGroupSfc.less +0 -0
- package/es/radio-group/radioGroup.less +0 -12
- package/es/radio-group/style/less.js +0 -4
- package/es/rate/RateSfc.less +0 -0
- package/es/rate/rate.less +0 -48
- package/es/rate/style/less.js +0 -6
- package/es/ripple/ripple.less +0 -20
- package/es/ripple/style/less.js +0 -2
- package/es/row/RowSfc.less +0 -0
- package/es/row/row.less +0 -4
- package/es/row/style/less.js +0 -3
- package/es/select/SelectSfc.less +0 -0
- package/es/select/select.less +0 -184
- package/es/select/style/less.js +0 -7
- package/es/skeleton/SkeletonSfc.less +0 -0
- package/es/skeleton/skeleton.less +0 -138
- package/es/skeleton/style/less.js +0 -3
- package/es/slider/SliderSfc.less +0 -0
- package/es/slider/slider.less +0 -147
- package/es/slider/style/less.js +0 -4
- package/es/snackbar/SnackbarSfc.less +0 -0
- package/es/snackbar/coreSfc.less +0 -0
- package/es/snackbar/snackbar.less +0 -129
- package/es/snackbar/style/less.js +0 -8
- package/es/space/space.less +0 -6
- package/es/space/style/less.js +0 -2
- package/es/step/StepSfc.less +0 -0
- package/es/step/step.less +0 -145
- package/es/step/style/less.js +0 -4
- package/es/steps/StepsSfc.less +0 -1
- package/es/steps/style/less.js +0 -2
- package/es/sticky/StickySfc.less +0 -0
- package/es/sticky/sticky.less +0 -8
- package/es/sticky/style/less.js +0 -3
- package/es/style-provider/StyleProviderSfc.less +0 -0
- package/es/style-provider/style/less.js +0 -2
- package/es/styles/common.less +0 -73
- package/es/styles/elevation.less +0 -128
- package/es/styles/style/less.js +0 -0
- package/es/styles/var.css +0 -0
- package/es/styles/var.less +0 -30
- package/es/swipe/SwipeSfc.less +0 -0
- package/es/swipe/style/less.js +0 -3
- package/es/swipe/swipe.less +0 -60
- package/es/swipe-item/SwipeItemSfc.less +0 -0
- package/es/swipe-item/style/less.js +0 -3
- package/es/swipe-item/swipeItem.less +0 -5
- package/es/switch/SwitchSfc.less +0 -0
- package/es/switch/style/less.js +0 -7
- package/es/switch/switch.less +0 -94
- package/es/tab/TabSfc.less +0 -0
- package/es/tab/style/less.js +0 -4
- package/es/tab/tab.less +0 -46
- package/es/tab-item/TabItemSfc.less +0 -0
- package/es/tab-item/style/less.js +0 -4
- package/es/tab-item/tabItem.less +0 -6
- package/es/table/TableSfc.less +0 -0
- package/es/table/style/less.js +0 -4
- package/es/table/table.less +0 -110
- package/es/tabs/TabsSfc.less +0 -0
- package/es/tabs/style/less.js +0 -5
- package/es/tabs/tabs.less +0 -99
- package/es/tabs-items/TabsItemsSfc.less +0 -0
- package/es/tabs-items/style/less.js +0 -3
- package/es/themes/style/less.js +0 -0
- package/es/time-picker/TimePickerSfc.less +0 -0
- package/es/time-picker/style/less.js +0 -4
- package/es/time-picker/timePicker.less +0 -237
- package/es/uploader/UploaderSfc.less +0 -0
- package/es/uploader/style/less.js +0 -8
- package/es/uploader/uploader.less +0 -216
- package/es/utils/style/less.js +0 -0
- package/lib/action-sheet/ActionSheetSfc.less +0 -0
- package/lib/action-sheet/actionSheet.less +0 -68
- package/lib/action-sheet/style/less.js +0 -6
- package/lib/app-bar/AppBarSfc.less +0 -0
- package/lib/app-bar/appBar.less +0 -57
- package/lib/app-bar/style/less.js +0 -4
- package/lib/back-top/BackTopSfc.less +0 -0
- package/lib/back-top/backTop.less +0 -27
- package/lib/back-top/style/less.js +0 -5
- package/lib/badge/BadgeSfc.less +0 -0
- package/lib/badge/badge.less +0 -119
- package/lib/badge/style/less.js +0 -4
- package/lib/bottom-navigation/BottomNavigationSfc.less +0 -0
- package/lib/bottom-navigation/bottomNavigation.less +0 -56
- package/lib/bottom-navigation/style/less.js +0 -4
- package/lib/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
- package/lib/bottom-navigation-item/bottomNavigationItem.less +0 -78
- package/lib/bottom-navigation-item/style/less.js +0 -6
- package/lib/button/ButtonSfc.less +0 -0
- package/lib/button/button.less +0 -183
- package/lib/button/style/less.js +0 -6
- package/lib/card/CardSfc.less +0 -0
- package/lib/card/card.less +0 -189
- package/lib/card/style/less.js +0 -5
- package/lib/cell/CellSfc.less +0 -0
- package/lib/cell/cell.less +0 -78
- package/lib/cell/style/less.js +0 -4
- package/lib/checkbox/CheckboxSfc.less +0 -0
- package/lib/checkbox/checkbox.less +0 -78
- package/lib/checkbox/style/less.js +0 -6
- package/lib/checkbox-group/CheckboxGroupSfc.less +0 -0
- package/lib/checkbox-group/checkboxGroup.less +0 -12
- package/lib/checkbox-group/style/less.js +0 -4
- package/lib/chip/ChipSfc.less +0 -0
- package/lib/chip/chip.less +0 -182
- package/lib/chip/style/less.js +0 -4
- package/lib/col/ColSfc.less +0 -0
- package/lib/col/col.less +0 -74
- package/lib/col/style/less.js +0 -3
- package/lib/collapse/CollapseSfc.less +0 -1
- package/lib/collapse/style/less.js +0 -3
- package/lib/collapse-item/CollapseItemSfc.less +0 -0
- package/lib/collapse-item/collapseItem.less +0 -105
- package/lib/collapse-item/style/less.js +0 -4
- package/lib/context/style/less.js +0 -0
- package/lib/countdown/CountdownSfc.less +0 -0
- package/lib/countdown/style/less.js +0 -2
- package/lib/counter/CounterSfc.less +0 -0
- package/lib/counter/counter.less +0 -89
- package/lib/counter/style/less.js +0 -7
- package/lib/date-picker/DatePickerSfc.less +0 -0
- package/lib/date-picker/date-picker.less +0 -354
- package/lib/date-picker/style/less.js +0 -7
- package/lib/dialog/DialogSfc.less +0 -0
- package/lib/dialog/dialog.less +0 -77
- package/lib/dialog/style/less.js +0 -5
- package/lib/divider/DividerSfc.less +0 -0
- package/lib/divider/divider.less +0 -78
- package/lib/divider/style/less.js +0 -3
- package/lib/form/FormSfc.less +0 -0
- package/lib/form/style/less.js +0 -2
- package/lib/form-details/FormDetailsSfc.less +0 -0
- package/lib/form-details/formDetails.less +0 -48
- package/lib/form-details/style/less.js +0 -3
- package/lib/icon/IconSfc.less +0 -0
- package/lib/icon/icon.less +0 -26
- package/lib/icon/style/less.js +0 -3
- package/lib/image/ImageSfc.less +0 -0
- package/lib/image/image.less +0 -9
- package/lib/image/style/less.js +0 -4
- package/lib/image-preview/ImagePreviewSfc.less +0 -0
- package/lib/image-preview/imagePreview.less +0 -76
- package/lib/image-preview/style/less.js +0 -7
- package/lib/index-anchor/IndexAnchorSfc.less +0 -1
- package/lib/index-anchor/style/less.js +0 -3
- package/lib/index-bar/IndexBarSfc.less +0 -0
- package/lib/index-bar/indexBar.less +0 -43
- package/lib/index-bar/style/less.js +0 -3
- package/lib/input/InputSfc.less +0 -0
- package/lib/input/input.less +0 -187
- package/lib/input/style/less.js +0 -5
- package/lib/lazy/style/less.js +0 -0
- package/lib/less.js +0 -64
- package/lib/list/ListSfc.less +0 -0
- package/lib/list/list.less +0 -63
- package/lib/list/style/less.js +0 -5
- package/lib/loading/LoadingSfc.less +0 -0
- package/lib/loading/loading.less +0 -500
- package/lib/loading/style/less.js +0 -3
- package/lib/locale/style/less.js +0 -0
- package/lib/menu/menu.less +0 -21
- package/lib/menu/style/less.js +0 -3
- package/lib/option/OptionSfc.less +0 -0
- package/lib/option/option.less +0 -37
- package/lib/option/style/less.js +0 -6
- package/lib/pagination/PaginationSfc.less +0 -0
- package/lib/pagination/pagination.less +0 -188
- package/lib/pagination/style/less.js +0 -8
- package/lib/picker/PickerSfc.less +0 -0
- package/lib/picker/picker.less +0 -106
- package/lib/picker/style/less.js +0 -5
- package/lib/popup/popup.less +0 -125
- package/lib/popup/style/less.js +0 -2
- package/lib/progress/ProgressSfc.less +0 -0
- package/lib/progress/progress.less +0 -101
- package/lib/progress/style/less.js +0 -3
- package/lib/pull-refresh/PullRefreshSfc.less +0 -0
- package/lib/pull-refresh/pullRefresh.less +0 -56
- package/lib/pull-refresh/style/less.js +0 -5
- package/lib/radio/RadioSfc.less +0 -0
- package/lib/radio/radio.less +0 -78
- package/lib/radio/style/less.js +0 -6
- package/lib/radio-group/RadioGroupSfc.less +0 -0
- package/lib/radio-group/radioGroup.less +0 -12
- package/lib/radio-group/style/less.js +0 -4
- package/lib/rate/RateSfc.less +0 -0
- package/lib/rate/rate.less +0 -48
- package/lib/rate/style/less.js +0 -6
- package/lib/ripple/ripple.less +0 -20
- package/lib/ripple/style/less.js +0 -2
- package/lib/row/RowSfc.less +0 -0
- package/lib/row/row.less +0 -4
- package/lib/row/style/less.js +0 -3
- package/lib/select/SelectSfc.less +0 -0
- package/lib/select/select.less +0 -184
- package/lib/select/style/less.js +0 -7
- package/lib/skeleton/SkeletonSfc.less +0 -0
- package/lib/skeleton/skeleton.less +0 -138
- package/lib/skeleton/style/less.js +0 -3
- package/lib/slider/SliderSfc.less +0 -0
- package/lib/slider/slider.less +0 -147
- package/lib/slider/style/less.js +0 -4
- package/lib/snackbar/SnackbarSfc.less +0 -0
- package/lib/snackbar/coreSfc.less +0 -0
- package/lib/snackbar/snackbar.less +0 -129
- package/lib/snackbar/style/less.js +0 -8
- package/lib/space/space.less +0 -6
- package/lib/space/style/less.js +0 -2
- package/lib/step/StepSfc.less +0 -0
- package/lib/step/step.less +0 -145
- package/lib/step/style/less.js +0 -4
- package/lib/steps/StepsSfc.less +0 -1
- package/lib/steps/style/less.js +0 -2
- package/lib/sticky/StickySfc.less +0 -0
- package/lib/sticky/sticky.less +0 -8
- package/lib/sticky/style/less.js +0 -3
- package/lib/style-provider/StyleProviderSfc.less +0 -0
- package/lib/style-provider/style/less.js +0 -2
- package/lib/styles/common.less +0 -73
- package/lib/styles/elevation.less +0 -128
- package/lib/styles/style/less.js +0 -0
- package/lib/styles/var.css +0 -0
- package/lib/styles/var.less +0 -30
- package/lib/swipe/SwipeSfc.less +0 -0
- package/lib/swipe/style/less.js +0 -3
- package/lib/swipe/swipe.less +0 -60
- package/lib/swipe-item/SwipeItemSfc.less +0 -0
- package/lib/swipe-item/style/less.js +0 -3
- package/lib/swipe-item/swipeItem.less +0 -5
- package/lib/switch/SwitchSfc.less +0 -0
- package/lib/switch/style/less.js +0 -7
- package/lib/switch/switch.less +0 -94
- package/lib/tab/TabSfc.less +0 -0
- package/lib/tab/style/less.js +0 -4
- package/lib/tab/tab.less +0 -46
- package/lib/tab-item/TabItemSfc.less +0 -0
- package/lib/tab-item/style/less.js +0 -4
- package/lib/tab-item/tabItem.less +0 -6
- package/lib/table/TableSfc.less +0 -0
- package/lib/table/style/less.js +0 -4
- package/lib/table/table.less +0 -110
- package/lib/tabs/TabsSfc.less +0 -0
- package/lib/tabs/style/less.js +0 -5
- package/lib/tabs/tabs.less +0 -99
- package/lib/tabs-items/TabsItemsSfc.less +0 -0
- package/lib/tabs-items/style/less.js +0 -3
- package/lib/themes/style/less.js +0 -0
- package/lib/time-picker/TimePickerSfc.less +0 -0
- package/lib/time-picker/style/less.js +0 -4
- package/lib/time-picker/timePicker.less +0 -237
- package/lib/uploader/UploaderSfc.less +0 -0
- package/lib/uploader/style/less.js +0 -8
- package/lib/uploader/uploader.less +0 -216
- package/lib/utils/style/less.js +0 -0
- package/types/global.d.ts +0 -68
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --action-sheet-border-radius: 2px; --action-sheet-title-color: #888; --action-sheet-title-padding: 10px 16px; --action-sheet-title-font-size: 14px; --action-sheet-action-item-height: 48px; --action-sheet-action-item-padding:
|
|
1
|
+
:root { --action-sheet-border-radius: 2px; --action-sheet-title-color: #888; --action-sheet-title-padding: 10px 16px; --action-sheet-title-font-size: 14px; --action-sheet-action-item-height: 48px; --action-sheet-action-item-padding: 0 18px; --action-sheet-action-item-color: #333; --action-sheet-action-item-disabled-color: var(--color-text-disabled); --action-sheet-icon-margin: 0 20px 0 0; --action-sheet-icon-size: 24px; --action-sheet-background: #fff;}.var-action-sheet { padding: 10px 0; max-height: 80%; background: var(--action-sheet-background); transition: background-color 0.25s;}.var-action-sheet__popup-radius { border-radius: var(--action-sheet-border-radius);}.var-action-sheet__title { padding: var(--action-sheet-title-padding); color: var(--action-sheet-title-color); font-size: var(--action-sheet-title-font-size);}.var-action-sheet__action-item { display: flex; align-items: center; height: var(--action-sheet-action-item-height); padding: var(--action-sheet-action-item-padding); color: var(--action-sheet-action-item-color); cursor: pointer;}.var-action-sheet__action-name { overflow: auto; max-height: var(--action-sheet-action-item-height);}.var-action-sheet__action-icon[var-action-sheet-cover] { margin: var(--action-sheet-icon-margin); width: var(--action-sheet-icon-size); height: var(--action-sheet-icon-size); font-size: var(--action-sheet-icon-size);}.var-action-sheet--disabled { color: var(--action-sheet-action-item-disabled-color) !important; cursor: not-allowed;}
|
|
@@ -7,7 +7,7 @@ var _components = require("../utils/components");
|
|
|
7
7
|
|
|
8
8
|
var _props = require("../popup/props");
|
|
9
9
|
|
|
10
|
-
function _extends() { _extends = Object.assign
|
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
11
|
|
|
12
12
|
var props = _extends({
|
|
13
13
|
show: {
|
|
@@ -18,7 +18,7 @@ var _shared = require("@varlet/shared");
|
|
|
18
18
|
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
20
|
|
|
21
|
-
function _extends() { _extends = Object.assign
|
|
21
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
22
22
|
|
|
23
23
|
var {
|
|
24
24
|
n,
|
package/lib/button/Button.js
CHANGED
|
@@ -47,12 +47,13 @@ function render(_ctx, _cache) {
|
|
|
47
47
|
key: 0,
|
|
48
48
|
class: (0, _vue.normalizeClass)(_ctx.n('loading')),
|
|
49
49
|
"var-button-cover": "",
|
|
50
|
+
color: _ctx.loadingColor,
|
|
50
51
|
type: _ctx.loadingType,
|
|
51
52
|
size: _ctx.loadingSize,
|
|
52
53
|
radius: _ctx.loadingRadius
|
|
53
54
|
}, null, 8
|
|
54
55
|
/* PROPS */
|
|
55
|
-
, ["class", "type", "size", "radius"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div", {
|
|
56
|
+
, ["class", "color", "type", "size", "radius"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div", {
|
|
56
57
|
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('content'), [_ctx.loading || _ctx.pending, _ctx.n('--hidden')]))
|
|
57
58
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "default")], 2
|
|
58
59
|
/* CLASS */
|
package/lib/button/button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --button-default-color: #f5f5f5; --button-primary-color: var(--color-primary); --button-danger-color: var(--color-danger); --button-success-color: var(--color-success); --button-warning-color: var(--color-warning); --button-info-color: var(--color-info); --button-disabled-color: var(--color-disabled); --button-disabled-text-color: var(--color-text-disabled); --button-border-radius: 4px; --button-mini-padding: 0 9px; --button-small-padding: 0 11px; --button-normal-padding: 0 15px; --button-large-padding: 0 22px; --button-round-padding: 6px; --button-mini-height: 20px; --button-small-height: 28px; --button-normal-height: 36px; --button-large-height: 44px;}.var-button { position: relative; justify-content: center; align-items: center; outline: none; border: none; border-radius: var(--button-border-radius); user-select: none; cursor: pointer; font-family: inherit; transition: box-shadow 0.2s, background-color 0.25s; will-change: box-shadow; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); white-space: nowrap;
|
|
1
|
+
:root { --button-default-color: #f5f5f5; --button-primary-color: var(--color-primary); --button-danger-color: var(--color-danger); --button-success-color: var(--color-success); --button-warning-color: var(--color-warning); --button-info-color: var(--color-info); --button-disabled-color: var(--color-disabled); --button-disabled-text-color: var(--color-text-disabled); --button-border-radius: 4px; --button-mini-padding: 0 9px; --button-small-padding: 0 11px; --button-normal-padding: 0 15px; --button-large-padding: 0 22px; --button-round-padding: 6px; --button-mini-height: 20px; --button-small-height: 28px; --button-normal-height: 36px; --button-large-height: 44px;}.var-button { position: relative; justify-content: center; align-items: center; outline: none; border: none; border-radius: var(--button-border-radius); user-select: none; cursor: pointer; font-family: inherit; transition: box-shadow 0.2s, background-color 0.25s; will-change: box-shadow; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); white-space: nowrap;}.var-button:active { box-shadow: 0 3px 5px -1px var(--shadow-key-umbra-opacity), 0 5px 8px 0 var(--shadow-key-penumbra-opacity), 0 1px 14px 0 var(--shadow-key-ambient-opacity);}.var-button__content { display: flex; align-items: center; flex-wrap: wrap;}.var-button__loading[var-button-cover] { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}.var-button--default { color: inherit; background-color: var(--button-default-color);}.var-button--primary { color: #fff; background-color: var(--button-primary-color);}.var-button--info { color: #fff; background-color: var(--button-info-color);}.var-button--success { color: #fff; background-color: var(--button-success-color);}.var-button--warning { color: #fff; background-color: var(--button-warning-color);}.var-button--danger { color: #fff; background-color: var(--button-danger-color);}.var-button--disabled { background-color: var(--button-disabled-color); color: var(--button-disabled-text-color); cursor: not-allowed; box-shadow: none !important;}.var-button--block { width: 100%;}.var-button--text { background-color: transparent;}.var-button--text:active { box-shadow: none;}.var-button--text-default { color: inherit;}.var-button--text-primary { color: var(--button-primary-color);}.var-button--text-info { color: var(--button-info-color);}.var-button--text-success { color: var(--button-success-color);}.var-button--text-warning { color: var(--button-warning-color);}.var-button--text-danger { color: var(--button-danger-color);}.var-button--text-disabled { color: var(--button-disabled-text-color);}.var-button--normal { height: var(--button-normal-height); padding: var(--button-normal-padding); font-size: var(--font-size-md);}.var-button--large { height: var(--button-large-height); padding: var(--button-large-padding); font-size: var(--font-size-lg);}.var-button--small { height: var(--button-small-height); padding: var(--button-small-padding); font-size: var(--font-size-sm);}.var-button--mini { height: var(--button-mini-height); padding: var(--button-mini-padding); font-size: var(--font-size-xs);}.var-button--round { padding: var(--button-round-padding); border-radius: 50%; height: auto;}.var-button--outline { border: thin solid currentColor;}.var-button--hidden { opacity: 0;}
|
package/lib/button/props.js
CHANGED
|
@@ -7,6 +7,8 @@ var _props = require("../loading/props");
|
|
|
7
7
|
|
|
8
8
|
var _components = require("../utils/components");
|
|
9
9
|
|
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
|
+
|
|
10
12
|
function typeValidator(type) {
|
|
11
13
|
return ['default', 'primary', 'info', 'success', 'warning', 'danger'].includes(type);
|
|
12
14
|
}
|
|
@@ -70,6 +72,9 @@ var props = {
|
|
|
70
72
|
},
|
|
71
73
|
loadingType: (0, _components.pickProps)(_props.props, 'type'),
|
|
72
74
|
loadingSize: (0, _components.pickProps)(_props.props, 'size'),
|
|
75
|
+
loadingColor: _extends({}, (0, _components.pickProps)(_props.props, 'color'), {
|
|
76
|
+
default: 'currentColor'
|
|
77
|
+
}),
|
|
73
78
|
onClick: {
|
|
74
79
|
type: Function
|
|
75
80
|
},
|
package/lib/card/Card.js
CHANGED
|
@@ -64,25 +64,21 @@ function render(_ctx, _cache) {
|
|
|
64
64
|
left: _ctx.floaterLeft,
|
|
65
65
|
overflow: _ctx.floaterOverflow,
|
|
66
66
|
position: _ctx.floaterPosition,
|
|
67
|
-
transition: _ctx.floated ? "background-color " + _ctx.floatingDuration + "ms, width " + _ctx.floatingDuration + "ms, height " + _ctx.floatingDuration + "ms, top " + _ctx.floatingDuration + "ms, left " + _ctx.floatingDuration + "ms" : undefined
|
|
67
|
+
transition: _ctx.floated ? "background-color " + _ctx.floatingDuration + "ms, color " + _ctx.floatingDuration + "ms, width " + _ctx.floatingDuration + "ms, height " + _ctx.floatingDuration + "ms, top " + _ctx.floatingDuration + "ms, left " + _ctx.floatingDuration + "ms" : undefined
|
|
68
68
|
})
|
|
69
|
-
}, [(0, _vue.renderSlot)(_ctx.$slots, "image", {}, () => {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}, null, 14
|
|
83
|
-
/* CLASS, STYLE, PROPS */
|
|
84
|
-
, _hoisted_1)) : (0, _vue.createCommentVNode)("v-if", true)];
|
|
85
|
-
}), (0, _vue.createElementVNode)("div", {
|
|
69
|
+
}, [(0, _vue.renderSlot)(_ctx.$slots, "image", {}, () => [_ctx.src ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("img", {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: (0, _vue.normalizeClass)(_ctx.n('image')),
|
|
72
|
+
style: (0, _vue.normalizeStyle)({
|
|
73
|
+
objectFit: _ctx.fit,
|
|
74
|
+
height: _ctx.toSizeUnit(_ctx.imageHeight),
|
|
75
|
+
width: _ctx.toSizeUnit(_ctx.imageWidth)
|
|
76
|
+
}),
|
|
77
|
+
src: _ctx.src,
|
|
78
|
+
alt: _ctx.alt
|
|
79
|
+
}, null, 14
|
|
80
|
+
/* CLASS, STYLE, PROPS */
|
|
81
|
+
, _hoisted_1)) : (0, _vue.createCommentVNode)("v-if", true)]), (0, _vue.createElementVNode)("div", {
|
|
86
82
|
class: (0, _vue.normalizeClass)(_ctx.n('container'))
|
|
87
83
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "title", {}, () => [_ctx.title ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
88
84
|
key: 0,
|
|
@@ -186,13 +182,13 @@ var _default = (0, _vue.defineComponent)({
|
|
|
186
182
|
var floaterOverflow = (0, _vue.ref)('hidden');
|
|
187
183
|
var contentHeight = (0, _vue.ref)('0px');
|
|
188
184
|
var opacity = (0, _vue.ref)('0');
|
|
189
|
-
var {
|
|
190
|
-
zIndex
|
|
191
|
-
} = (0, _zIndex.useZIndex)(() => props.floating, 1);
|
|
192
185
|
var isRow = (0, _vue.computed)(() => props.layout === 'row');
|
|
193
186
|
var showFloatingButtons = (0, _vue.ref)(false);
|
|
194
187
|
var floated = (0, _vue.ref)(false);
|
|
195
|
-
|
|
188
|
+
var {
|
|
189
|
+
zIndex
|
|
190
|
+
} = (0, _zIndex.useZIndex)(() => props.floating, 1);
|
|
191
|
+
(0, _lock.useLock)(() => props.floating, () => !isRow.value);
|
|
196
192
|
var dropdownFloaterTop = 'auto';
|
|
197
193
|
var dropdownFloaterLeft = 'auto';
|
|
198
194
|
var dropper = null;
|
package/lib/card/card.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --card-padding: 0 0 15px 0; --card-background: #fff; --card-border-radius: 4px; --card-image-width: 100%; --card-row-image-width: 140px; --card-image-height: 200px; --card-row-height: 140px; --card-title-color: #333; --card-title-font-size: 20px; --card-title-padding: 0 12px; --card-title-margin: 15px 0 0 0; --card-title-row-margin: 12px 0; --card-subtitle-color: rgba(0, 0, 0, 0.6); --card-subtitle-font-size: 14px; --card-subtitle-padding: 0 12px; --card-subtitle-margin: 10px 0 0 0; --card-subtitle-row-margin: -8px 0 0 0; --card-description-color: rgba(0, 0, 0, 0.6); --card-description-font-size: 14px; --card-description-margin: 20px 0 0 0; --card-description-padding: 0 13px; --card-footer-padding: 0 12px; --card-footer-right: 13px; --card-footer-bottom: 9px; --card-footer-margin: 30px 0
|
|
1
|
+
:root { --card-padding: 0 0 15px 0; --card-background: #fff; --card-border-radius: 4px; --card-image-width: 100%; --card-row-image-width: 140px; --card-image-height: 200px; --card-row-height: 140px; --card-title-color: #333; --card-title-font-size: 20px; --card-title-padding: 0 12px; --card-title-margin: 15px 0 0 0; --card-title-row-margin: 12px 0; --card-subtitle-color: rgba(0, 0, 0, 0.6); --card-subtitle-font-size: 14px; --card-subtitle-padding: 0 12px; --card-subtitle-margin: 10px 0 0 0; --card-subtitle-row-margin: -8px 0 0 0; --card-description-color: rgba(0, 0, 0, 0.6); --card-description-font-size: 14px; --card-description-margin: 20px 0 0 0; --card-description-padding: 0 13px; --card-footer-padding: 0 12px; --card-footer-right: 13px; --card-footer-bottom: 9px; --card-footer-margin: 30px 0 0 0; --card-line-height: 22px; --card-row-line-height: 1.5; --card-floating-buttons-bottom: 16px; --card-floating-buttons-right: 16px; --card-floating-buttons-color: #fff; --card-close-button-icon-size: 24px; --card-close-button-size: 56px; --card-close-button-primary-color: #212121;}.var-card { border-radius: var(--card-border-radius); overflow: hidden; width: 100%;}.var-card__floater { display: flex; flex-direction: column; position: static; line-height: var(--card-line-height); background: var(--card-background); transition: background-color 0.25s, color 0.25s; transition-timing-function: cubic-bezier(0.45, 0.19, 0.06, 0.89);}.var-card__container { padding: var(--card-padding); flex-grow: 1; min-width: 0;}.var-card--layout-row .var-card__floater { min-height: var(--card-row-height); height: 100%; flex-direction: row; position: relative; line-height: var(--card-row-line-height);}.var-card__image { width: var(--card-image-width); height: var(--card-image-height); display: block;}.var-card--layout-row .var-card__image { width: var(--card-row-image-width); height: auto; display: block; flex-shrink: 0;}.var-card__title { font-size: var(--card-title-font-size); padding: var(--card-title-padding); margin: var(--card-title-margin); color: var(--card-title-color); word-break: break-word;}.var-card--layout-row .var-card__title { max-width: 100%; overflow: hidden; margin: var(--card-title-row-margin); text-overflow: ellipsis; white-space: nowrap;}.var-card__subtitle { font-size: var(--card-subtitle-font-size); color: var(--card-subtitle-color); padding: var(--card-subtitle-padding); margin: var(--card-subtitle-margin); word-break: break-word;}.var-card--layout-row .var-card__subtitle { margin: var(--card-subtitle-row-margin); text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;}.var-card__description { font-size: var(--card-description-font-size); color: var(--card-description-color); margin: var(--card-description-margin); padding: var(--card-description-padding); word-break: break-all;}.var-card__footer { display: flex; justify-content: flex-end; padding: var(--card-footer-padding); margin: var(--card-footer-margin);}.var-card--layout-row .var-card__footer { position: absolute; padding: 0; right: var(--card-footer-right); bottom: var(--card-footer-bottom);}.var-card__content { overflow: hidden; transition-timing-function: cubic-bezier(0.45, 0.19, 0.06, 0.89);}.var-card__floating-buttons { position: fixed; bottom: var(--card-floating-buttons-bottom); right: var(--card-floating-buttons-right); color: var(--card-floating-buttons-color);}.var-card__close-button[var-card-cover] { padding: var(--card-close-button-padding); width: var(--card-close-button-size); height: var(--card-close-button-size); background-color: var(--card-close-button-primary-color);}.var-card__close-button-icon[var-card-cover] { font-size: var(--card-close-button-icon-size);}
|
package/lib/card/props.js
CHANGED
package/lib/cell/Cell.js
CHANGED
|
@@ -42,10 +42,10 @@ function render(_ctx, _cache) {
|
|
|
42
42
|
/* TEXT */
|
|
43
43
|
)])], 2
|
|
44
44
|
/* CLASS */
|
|
45
|
-
), _ctx.$slots.
|
|
45
|
+
), _ctx.$slots.description || _ctx.description ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
46
46
|
key: 0,
|
|
47
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('
|
|
48
|
-
}, [(0, _vue.renderSlot)(_ctx.$slots, "
|
|
47
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('description'), [_ctx.descriptionClass, _ctx.descriptionClass]))
|
|
48
|
+
}, [(0, _vue.renderSlot)(_ctx.$slots, "description", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.description), 1
|
|
49
49
|
/* TEXT */
|
|
50
50
|
)])], 2
|
|
51
51
|
/* CLASS */
|
package/lib/cell/cell.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --cell-color: var(--color-text); --cell-font-size: var(--font-size-md); --cell-
|
|
1
|
+
:root { --cell-color: var(--color-text); --cell-font-size: var(--font-size-md); --cell-description-font-size: var(--font-size-sm); --cell-description-color: rgba(0, 0, 0, 0.6); --cell-padding: 10px 12px; --cell-min-height: 40px; --cell-border-color: #bcc2cb; --cell-border-left: 12px; --cell-border-right: 12px; --cell-icon-right: 8px; --cell-extra-left: 8px;}.var-cell { align-items: center; display: flex; min-height: var(--cell-min-height); outline: none; width: 100%; padding: var(--cell-padding); position: relative; box-sizing: border-box; font-size: var(--cell-font-size); color: var(--cell-color);}.var-cell--border::after { position: absolute; box-sizing: border-box; content: ' '; pointer-events: none; right: var(--cell-border-right); bottom: 0; left: var(--cell-border-left); border-bottom: 1px solid var(--cell-border-color); transform: scaleY(0.5);}.var-cell__icon { margin-right: var(--cell-icon-right); flex: 0;}.var-cell__content { flex: 1; overflow: hidden;}.var-cell__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.var-cell__description { font-size: var(--cell-description-font-size); color: var(--cell-description-color);}.var-cell__extra { flex: 0; margin-left: var(--cell-extra-left);}
|
package/lib/cell/props.js
CHANGED
|
@@ -9,7 +9,7 @@ var props = {
|
|
|
9
9
|
icon: {
|
|
10
10
|
type: String
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
description: {
|
|
13
13
|
type: String
|
|
14
14
|
},
|
|
15
15
|
border: {
|
|
@@ -22,7 +22,7 @@ var props = {
|
|
|
22
22
|
titleClass: {
|
|
23
23
|
type: String
|
|
24
24
|
},
|
|
25
|
-
|
|
25
|
+
descriptionClass: {
|
|
26
26
|
type: String
|
|
27
27
|
},
|
|
28
28
|
extraClass: {
|
package/lib/chip/chip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --chip-default-color: #e0e0e0; --chip-primary-color: var(--color-primary); --chip-danger-color: var(--color-danger); --chip-success-color: var(--color-success); --chip-warning-color: var(--color-warning); --chip-info-color: var(--color-info); --chip-border-radius: 2px; --chip-normal-height: 32px; --chip-large-height: 40px; --chip-small-height: 24px; --chip-mini-height: 16px; --chip-round-radius: 100px; --chip-normal-padding:
|
|
1
|
+
:root { --chip-default-color: #e0e0e0; --chip-primary-color: var(--color-primary); --chip-danger-color: var(--color-danger); --chip-success-color: var(--color-success); --chip-warning-color: var(--color-warning); --chip-info-color: var(--color-info); --chip-border-radius: 2px; --chip-normal-height: 32px; --chip-large-height: 40px; --chip-small-height: 24px; --chip-mini-height: 16px; --chip-round-radius: 100px; --chip-normal-padding: 0 10px; --chip-large-padding: 0 17px; --chip-small-padding: 0 6px; --chip-mini-padding: 0 4px; --chip-text-normal-margin: 0 5px; --chip-text-large-margin: 0 5px; --chip-text-small-margin: 0 3px; --chip-text-mini-margin: 0 2px;}.var-fade-leave-to { opacity: 0;}.var-fade-leave-active { transition: opacity 0.3s;}.var-chip { justify-content: center; align-items: center; font-family: Roboto, sans-serif; border-radius: var(--chip-border-radius); cursor: default; border: thin solid transparent; vertical-align: middle; transition: background-color 0.25s;}.var-chip--default { color: inherit; background: var(--chip-default-color);}.var-chip--primary { color: #fff; background-color: var(--chip-primary-color);}.var-chip--info { color: #fff; background-color: var(--chip-info-color);}.var-chip--success { color: #fff; background-color: var(--chip-success-color);}.var-chip--warning { color: #fff; background-color: var(--chip-warning-color);}.var-chip--danger { color: #fff; background-color: var(--chip-danger-color);}.var-chip__plain { background-color: transparent;}.var-chip__plain:active { box-shadow: none;}.var-chip__plain-default { color: inherit; border-color: currentColor;}.var-chip__plain-primary { color: var(--chip-primary-color); border-color: currentColor;}.var-chip__plain-info { color: var(--chip-info-color); border-color: currentColor;}.var-chip__plain-success { color: var(--chip-success-color); border-color: currentColor;}.var-chip__plain-warning { color: var(--chip-warning-color); border-color: currentColor;}.var-chip__plain-danger { color: var(--chip-danger-color); border-color: currentColor;}.var-chip--round { border-radius: var(--chip-round-radius);}.var-chip--normal { font-size: var(--font-size-md); padding: var(--chip-normal-padding); height: var(--chip-normal-height);}.var-chip--large { padding: var(--chip-large-padding); font-size: var(--font-size-lg); height: var(--chip-large-height);}.var-chip--small { padding: var(--chip-small-padding); font-size: var(--font-size-sm); height: var(--chip-small-height);}.var-chip--mini { padding: var(--chip-mini-padding); font-size: var(--font-size-xs); height: var(--chip-mini-height);}.var-chip--close { cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-chip__text-large { margin: var(--chip-text-large-margin);}.var-chip__text-normal { margin: var(--chip-text-normal-margin);}.var-chip__text-small { margin: var(--chip-text-small-margin);}.var-chip__text-mini { margin: var(--chip-text-mini-margin);}
|
|
@@ -6,7 +6,7 @@ exports.render = render;
|
|
|
6
6
|
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _esm = _interopRequireDefault(require("dayjs/esm"));
|
|
10
10
|
|
|
11
11
|
var _monthPickerPanel = _interopRequireDefault(require("./src/month-picker-panel.js"));
|
|
12
12
|
|
|
@@ -39,7 +39,7 @@ function render(_ctx, _cache) {
|
|
|
39
39
|
var _component_day_picker_panel = (0, _vue.resolveComponent)("day-picker-panel");
|
|
40
40
|
|
|
41
41
|
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
42
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), [_ctx.
|
|
42
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), [_ctx.elevation, 'var-elevation--2']))
|
|
43
43
|
}, [(0, _vue.createElementVNode)("div", {
|
|
44
44
|
class: (0, _vue.normalizeClass)(_ctx.n('title')),
|
|
45
45
|
style: (0, _vue.normalizeStyle)({
|
|
@@ -181,7 +181,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
181
181
|
var startY = 0;
|
|
182
182
|
var checkType = '';
|
|
183
183
|
var touchDirection;
|
|
184
|
-
var currentDate = (0,
|
|
184
|
+
var currentDate = (0, _esm.default)().format('YYYY-MM-D');
|
|
185
185
|
var [currentYear, currentMonth] = currentDate.split('-');
|
|
186
186
|
|
|
187
187
|
var monthDes = _props.MONTH_LIST.find(month => month.index === currentMonth);
|
|
@@ -254,13 +254,13 @@ var _default = (0, _vue.defineComponent)({
|
|
|
254
254
|
} = props;
|
|
255
255
|
|
|
256
256
|
if (range) {
|
|
257
|
-
var formatRangeDays = chooseRangeDay.value.map(date => (0,
|
|
257
|
+
var formatRangeDays = chooseRangeDay.value.map(date => (0, _esm.default)(date).format('YYYY-MM-DD'));
|
|
258
258
|
return formatRangeDays.length ? formatRangeDays[0] + " ~ " + formatRangeDays[1] : '';
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
if (multiple) return "" + chooseDays.value.length + _locale.pack.value.datePickerSelected;
|
|
262
262
|
if (!chooseYear.value || !chooseMonth.value || !chooseDay.value) return '';
|
|
263
|
-
var weekIndex = (0,
|
|
263
|
+
var weekIndex = (0, _esm.default)(chooseYear.value + "-" + chooseMonth.value.index + "-" + chooseDay.value).day();
|
|
264
264
|
|
|
265
265
|
var week = _props.WEEK_HEADER.find(value => value.index === "" + weekIndex);
|
|
266
266
|
|
|
@@ -282,7 +282,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
282
282
|
var slotProps = (0, _vue.computed)(() => {
|
|
283
283
|
var _chooseMonth$value, _chooseDay$value, _chooseYear$value, _chooseMonth$value$in, _chooseMonth$value2;
|
|
284
284
|
|
|
285
|
-
var weekIndex = (0,
|
|
285
|
+
var weekIndex = (0, _esm.default)(chooseYear.value + "-" + ((_chooseMonth$value = chooseMonth.value) == null ? void 0 : _chooseMonth$value.index) + "-" + chooseDay.value).day();
|
|
286
286
|
var date = chooseDay.value ? (_chooseDay$value = chooseDay.value) == null ? void 0 : _chooseDay$value.padStart(2, '0') : '';
|
|
287
287
|
return {
|
|
288
288
|
week: "" + weekIndex,
|
|
@@ -291,7 +291,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
291
291
|
date
|
|
292
292
|
};
|
|
293
293
|
});
|
|
294
|
-
var formatRange = (0, _vue.computed)(() => getChoose.value.chooseRangeDay.map(choose => (0,
|
|
294
|
+
var formatRange = (0, _vue.computed)(() => getChoose.value.chooseRangeDay.map(choose => (0, _esm.default)(choose).format('YYYY-MM-DD')));
|
|
295
295
|
var isSameYear = (0, _vue.computed)(() => chooseYear.value === previewYear.value);
|
|
296
296
|
var isSameMonth = (0, _vue.computed)(() => {
|
|
297
297
|
var _chooseMonth$value3;
|
|
@@ -347,7 +347,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
347
347
|
rangeDone.value = !rangeDone.value;
|
|
348
348
|
|
|
349
349
|
if (rangeDone.value) {
|
|
350
|
-
var isChangeOrder = (0,
|
|
350
|
+
var isChangeOrder = (0, _esm.default)(rangeDate.value[0]).isAfter(rangeDate.value[1]);
|
|
351
351
|
|
|
352
352
|
var _date = isChangeOrder ? [rangeDate.value[1], rangeDate.value[0]] : [...rangeDate.value];
|
|
353
353
|
|
|
@@ -359,7 +359,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
359
359
|
var updateMultiple = (date, type) => {
|
|
360
360
|
var multipleDates = type === 'month' ? chooseMonths : chooseDays;
|
|
361
361
|
var formatType = type === 'month' ? 'YYYY-MM' : 'YYYY-MM-DD';
|
|
362
|
-
var formatDates = multipleDates.value.map(date => (0,
|
|
362
|
+
var formatDates = multipleDates.value.map(date => (0, _esm.default)(date).format(formatType));
|
|
363
363
|
var index = formatDates.findIndex(choose => choose === date);
|
|
364
364
|
if (index === -1) formatDates.push(date);else formatDates.splice(index, 1);
|
|
365
365
|
(0, _components.call)(props['onUpdate:modelValue'], formatDates);
|
|
@@ -384,7 +384,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
384
384
|
if (day < 0 || readonly) return;
|
|
385
385
|
reverse.value = getReverse('day', day);
|
|
386
386
|
var date = previewYear.value + "-" + previewMonth.value.index + "-" + day;
|
|
387
|
-
var formatDate = (0,
|
|
387
|
+
var formatDate = (0, _esm.default)(date).format('YYYY-MM-DD');
|
|
388
388
|
if (range) updateRange(formatDate, 'day');else if (multiple) updateMultiple(formatDate, 'day');else {
|
|
389
389
|
(0, _components.call)(updateModelValue, formatDate);
|
|
390
390
|
(0, _components.call)(onChange, formatDate);
|
|
@@ -476,11 +476,11 @@ var _default = (0, _vue.defineComponent)({
|
|
|
476
476
|
var rangeInit = (value, type) => {
|
|
477
477
|
var rangeDate = type === 'month' ? chooseRangeMonth : chooseRangeDay;
|
|
478
478
|
var formatType = type === 'month' ? 'YYYY-MM' : 'YYYY-MM-D';
|
|
479
|
-
var formatDateList = value.map(choose => (0,
|
|
479
|
+
var formatDateList = value.map(choose => (0, _esm.default)(choose).format(formatType)).slice(0, 2);
|
|
480
480
|
var isValid = rangeDate.value.some(date => invalidFormatDate(date));
|
|
481
481
|
if (isValid) return;
|
|
482
482
|
rangeDate.value = formatDateList;
|
|
483
|
-
var isChangeOrder = (0,
|
|
483
|
+
var isChangeOrder = (0, _esm.default)(rangeDate.value[0]).isAfter(rangeDate.value[1]);
|
|
484
484
|
|
|
485
485
|
if (rangeDate.value.length === 2 && isChangeOrder) {
|
|
486
486
|
rangeDate.value = [rangeDate.value[1], rangeDate.value[0]];
|
|
@@ -491,12 +491,12 @@ var _default = (0, _vue.defineComponent)({
|
|
|
491
491
|
var rangeDate = type === 'month' ? chooseMonths : chooseDays;
|
|
492
492
|
var formatType = type === 'month' ? 'YYYY-MM' : 'YYYY-MM-D'; // 需要去重
|
|
493
493
|
|
|
494
|
-
var formatDateList = Array.from(new Set(value.map(choose => (0,
|
|
494
|
+
var formatDateList = Array.from(new Set(value.map(choose => (0, _esm.default)(choose).format(formatType))));
|
|
495
495
|
rangeDate.value = formatDateList.filter(date => date !== 'Invalid Date');
|
|
496
496
|
};
|
|
497
497
|
|
|
498
498
|
var dateInit = value => {
|
|
499
|
-
var formatDate = (0,
|
|
499
|
+
var formatDate = (0, _esm.default)(value).format('YYYY-MM-D');
|
|
500
500
|
if (invalidFormatDate(formatDate)) return;
|
|
501
501
|
var [yearValue, monthValue, dayValue] = formatDate.split('-');
|
|
502
502
|
|
package/lib/date-picker/props.js
CHANGED
|
@@ -4,11 +4,11 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
exports.render = render;
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _esm = _interopRequireDefault(require("dayjs/esm"));
|
|
8
8
|
|
|
9
|
-
var _isSameOrBefore = _interopRequireDefault(require("dayjs/plugin/isSameOrBefore"));
|
|
9
|
+
var _isSameOrBefore = _interopRequireDefault(require("dayjs/esm/plugin/isSameOrBefore"));
|
|
10
10
|
|
|
11
|
-
var _isSameOrAfter = _interopRequireDefault(require("dayjs/plugin/isSameOrAfter"));
|
|
11
|
+
var _isSameOrAfter = _interopRequireDefault(require("dayjs/esm/plugin/isSameOrAfter"));
|
|
12
12
|
|
|
13
13
|
var _panelHeader = _interopRequireDefault(require("./panel-header.js"));
|
|
14
14
|
|
|
@@ -26,11 +26,11 @@ var _locale = require("../../locale");
|
|
|
26
26
|
|
|
27
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
28
|
|
|
29
|
-
function _extends() { _extends = Object.assign
|
|
29
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
_esm.default.extend(_isSameOrBefore.default);
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
_esm.default.extend(_isSameOrAfter.default);
|
|
34
34
|
|
|
35
35
|
var {
|
|
36
36
|
n,
|
|
@@ -186,8 +186,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
186
186
|
previewYear
|
|
187
187
|
}
|
|
188
188
|
} = props;
|
|
189
|
-
var monthNum = (0,
|
|
190
|
-
var firstDayToWeek = (0,
|
|
189
|
+
var monthNum = (0, _esm.default)(previewYear + "-" + previewMonth.index).daysInMonth();
|
|
190
|
+
var firstDayToWeek = (0, _esm.default)(previewYear + "-" + previewMonth.index + "-01").day();
|
|
191
191
|
var index = sortWeekList.value.findIndex(week => week.index === "" + firstDayToWeek);
|
|
192
192
|
days.value = [...Array(index).fill(-1), ...Array.from(Array(monthNum + 1).keys())].filter(value => value);
|
|
193
193
|
};
|
|
@@ -206,13 +206,13 @@ var _default = (0, _vue.defineComponent)({
|
|
|
206
206
|
|
|
207
207
|
if (max) {
|
|
208
208
|
var date = previewYear + "-" + ((0, _shared.toNumber)(previewMonth.index) + 1);
|
|
209
|
-
panelBtnDisabled.right = !(0,
|
|
209
|
+
panelBtnDisabled.right = !(0, _esm.default)(date).isSameOrBefore((0, _esm.default)(max), 'month');
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
if (min) {
|
|
213
213
|
var _date = previewYear + "-" + ((0, _shared.toNumber)(previewMonth.index) - 1);
|
|
214
214
|
|
|
215
|
-
panelBtnDisabled.left = !(0,
|
|
215
|
+
panelBtnDisabled.left = !(0, _esm.default)(_date).isSameOrAfter((0, _esm.default)(min), 'month');
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
218
|
|
|
@@ -230,8 +230,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
230
230
|
var isBeforeMax = true;
|
|
231
231
|
var isAfterMin = true;
|
|
232
232
|
var previewDate = previewYear + "-" + previewMonth.index + "-" + day;
|
|
233
|
-
if (max) isBeforeMax = (0,
|
|
234
|
-
if (min) isAfterMin = (0,
|
|
233
|
+
if (max) isBeforeMax = (0, _esm.default)(previewDate).isSameOrBefore((0, _esm.default)(max), 'day');
|
|
234
|
+
if (min) isAfterMin = (0, _esm.default)(previewDate).isSameOrAfter((0, _esm.default)(min), 'day');
|
|
235
235
|
return isBeforeMax && isAfterMin;
|
|
236
236
|
};
|
|
237
237
|
|
|
@@ -248,8 +248,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
248
248
|
|
|
249
249
|
if (range) {
|
|
250
250
|
if (!chooseRangeDay.length) return false;
|
|
251
|
-
var isBeforeMax = (0,
|
|
252
|
-
var isAfterMin = (0,
|
|
251
|
+
var isBeforeMax = (0, _esm.default)(val).isSameOrBefore((0, _esm.default)(chooseRangeDay[1]), 'day');
|
|
252
|
+
var isAfterMin = (0, _esm.default)(val).isSameOrAfter((0, _esm.default)(chooseRangeDay[0]), 'day');
|
|
253
253
|
return isBeforeMax && isAfterMin;
|
|
254
254
|
}
|
|
255
255
|
|
|
@@ -6,11 +6,11 @@ exports.render = render;
|
|
|
6
6
|
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _esm = _interopRequireDefault(require("dayjs/esm"));
|
|
10
10
|
|
|
11
|
-
var _isSameOrBefore = _interopRequireDefault(require("dayjs/plugin/isSameOrBefore"));
|
|
11
|
+
var _isSameOrBefore = _interopRequireDefault(require("dayjs/esm/plugin/isSameOrBefore"));
|
|
12
12
|
|
|
13
|
-
var _isSameOrAfter = _interopRequireDefault(require("dayjs/plugin/isSameOrAfter"));
|
|
13
|
+
var _isSameOrAfter = _interopRequireDefault(require("dayjs/esm/plugin/isSameOrAfter"));
|
|
14
14
|
|
|
15
15
|
var _props = require("../props");
|
|
16
16
|
|
|
@@ -26,11 +26,11 @@ var _locale = require("../../locale");
|
|
|
26
26
|
|
|
27
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
28
|
|
|
29
|
-
function _extends() { _extends = Object.assign
|
|
29
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
_esm.default.extend(_isSameOrBefore.default);
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
_esm.default.extend(_isSameOrAfter.default);
|
|
34
34
|
|
|
35
35
|
var {
|
|
36
36
|
n,
|
|
@@ -162,8 +162,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
162
162
|
var isBeforeMax = true;
|
|
163
163
|
var isAfterMin = true;
|
|
164
164
|
var previewDate = previewYear + "-" + key;
|
|
165
|
-
if (max) isBeforeMax = (0,
|
|
166
|
-
if (min) isAfterMin = (0,
|
|
165
|
+
if (max) isBeforeMax = (0, _esm.default)(previewDate).isSameOrBefore((0, _esm.default)(max), 'month');
|
|
166
|
+
if (min) isAfterMin = (0, _esm.default)(previewDate).isSameOrAfter((0, _esm.default)(min), 'month');
|
|
167
167
|
return isBeforeMax && isAfterMin;
|
|
168
168
|
};
|
|
169
169
|
|
|
@@ -182,8 +182,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
182
182
|
|
|
183
183
|
if (range) {
|
|
184
184
|
if (!chooseRangeMonth.length) return false;
|
|
185
|
-
var isBeforeMax = (0,
|
|
186
|
-
var isAfterMin = (0,
|
|
185
|
+
var isBeforeMax = (0, _esm.default)(val).isSameOrBefore((0, _esm.default)(chooseRangeMonth[1]), 'month');
|
|
186
|
+
var isAfterMin = (0, _esm.default)(val).isSameOrAfter((0, _esm.default)(chooseRangeMonth[0]), 'month');
|
|
187
187
|
return isBeforeMax && isAfterMin;
|
|
188
188
|
}
|
|
189
189
|
|
|
@@ -281,8 +281,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
281
281
|
max
|
|
282
282
|
}
|
|
283
283
|
} = props;
|
|
284
|
-
if (max) panelBtnDisabled.right = !(0,
|
|
285
|
-
if (min) panelBtnDisabled.left = !(0,
|
|
284
|
+
if (max) panelBtnDisabled.right = !(0, _esm.default)("" + ((0, _shared.toNumber)(year) + 1)).isSameOrBefore((0, _esm.default)(max), 'year');
|
|
285
|
+
if (min) panelBtnDisabled.left = !(0, _esm.default)("" + ((0, _shared.toNumber)(year) - 1)).isSameOrAfter((0, _esm.default)(min), 'year');
|
|
286
286
|
}, {
|
|
287
287
|
immediate: true
|
|
288
288
|
});
|
|
@@ -6,7 +6,7 @@ exports.render = render;
|
|
|
6
6
|
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _esm = _interopRequireDefault(require("dayjs/esm"));
|
|
10
10
|
|
|
11
11
|
var _shared = require("@varlet/shared");
|
|
12
12
|
|
|
@@ -75,14 +75,14 @@ var _default = (0, _vue.defineComponent)({
|
|
|
75
75
|
var yearRange = [(0, _shared.toNumber)(preview) + 100, (0, _shared.toNumber)(preview) - 100];
|
|
76
76
|
|
|
77
77
|
if (max) {
|
|
78
|
-
var formatMax = (0,
|
|
78
|
+
var formatMax = (0, _esm.default)(max).format('YYYY-MM-D');
|
|
79
79
|
var year = (0, _shared.toNumber)(formatMax.split('-')[0]);
|
|
80
80
|
if (year < yearRange[0] && year > yearRange[1]) yearRange = [year, yearRange[1]];
|
|
81
81
|
if (year <= yearRange[1]) return [year];
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
if (min) {
|
|
85
|
-
var formatMin = (0,
|
|
85
|
+
var formatMin = (0, _esm.default)(min).format('YYYY-MM-D');
|
|
86
86
|
|
|
87
87
|
var _year = (0, _shared.toNumber)(formatMin.split('-')[0]);
|
|
88
88
|
|
package/lib/dialog/props.js
CHANGED
|
@@ -7,7 +7,7 @@ var _components = require("../utils/components");
|
|
|
7
7
|
|
|
8
8
|
var _props = require("../popup/props");
|
|
9
9
|
|
|
10
|
-
function _extends() { _extends = Object.assign
|
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
11
|
|
|
12
12
|
function messageAlignValidator(messageAlign) {
|
|
13
13
|
return ['left', 'center', 'right'].includes(messageAlign);
|
package/lib/divider/Divider.js
CHANGED
|
@@ -14,7 +14,7 @@ var _props = require("./props");
|
|
|
14
14
|
|
|
15
15
|
var _components = require("../utils/components");
|
|
16
16
|
|
|
17
|
-
function _extends() { _extends = Object.assign
|
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
18
|
|
|
19
19
|
var {
|
|
20
20
|
n,
|
|
@@ -9,7 +9,7 @@ var _props = require("../swipe/props");
|
|
|
9
9
|
|
|
10
10
|
var _props2 = require("../popup/props");
|
|
11
11
|
|
|
12
|
-
function _extends() { _extends = Object.assign
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
13
|
|
|
14
14
|
var props = _extends({
|
|
15
15
|
show: {
|
package/lib/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '..\types'
|
package/lib/index.js
CHANGED
|
@@ -60,6 +60,7 @@ var TabItem = require('./tab-item')['default']
|
|
|
60
60
|
var Table = require('./table')['default']
|
|
61
61
|
var Tabs = require('./tabs')['default']
|
|
62
62
|
var TabsItems = require('./tabs-items')['default']
|
|
63
|
+
var Themes = require('./themes')['default']
|
|
63
64
|
var TimePicker = require('./time-picker')['default']
|
|
64
65
|
var Uploader = require('./uploader')['default']
|
|
65
66
|
|
|
@@ -127,6 +128,7 @@ function install(app) {
|
|
|
127
128
|
Table.install && app.use(Table)
|
|
128
129
|
Tabs.install && app.use(Tabs)
|
|
129
130
|
TabsItems.install && app.use(TabsItems)
|
|
131
|
+
Themes.install && app.use(Themes)
|
|
130
132
|
TimePicker.install && app.use(TimePicker)
|
|
131
133
|
Uploader.install && app.use(Uploader)
|
|
132
134
|
}
|
|
@@ -196,6 +198,7 @@ module.exports = {
|
|
|
196
198
|
Table,
|
|
197
199
|
Tabs,
|
|
198
200
|
TabsItems,
|
|
201
|
+
Themes,
|
|
199
202
|
TimePicker,
|
|
200
203
|
Uploader
|
|
201
204
|
}
|
package/lib/input/Input.js
CHANGED
|
@@ -88,7 +88,7 @@ function render(_ctx, _cache) {
|
|
|
88
88
|
onTouchstart: _cache[4] || (_cache[4] = function () {
|
|
89
89
|
return _ctx.handleTouchstart && _ctx.handleTouchstart(...arguments);
|
|
90
90
|
})
|
|
91
|
-
}, "\n ", 46
|
|
91
|
+
}, "\r\n ", 46
|
|
92
92
|
/* CLASS, STYLE, PROPS, HYDRATE_EVENTS */
|
|
93
93
|
, _hoisted_1)) : ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("input", {
|
|
94
94
|
key: 2,
|
package/lib/lazy/index.js
CHANGED
|
@@ -15,7 +15,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
15
15
|
|
|
16
16
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
17
17
|
|
|
18
|
-
function _extends() { _extends = Object.assign
|
|
18
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
19
|
|
|
20
20
|
var BACKGROUND_IMAGE_ARG_NAME = 'background-image';
|
|
21
21
|
var LAZY_LOADING = 'lazy-loading';
|