@varlet/ui 1.27.20 → 2.0.0-alpha.1663742071515
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/LICENCE +1 -1
- package/README.md +27 -33
- package/README.zh-CN.md +92 -0
- 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.js +5 -0
- package/es/lazy/index.js +1 -1
- package/es/loading/loading.css +1 -1
- package/es/loading/props.js +1 -2
- package/es/locale/index.js +7 -2
- 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/snackbar/style/index.js +1 -1
- package/es/space/Space.js +6 -2
- package/es/style-provider/StyleProvider.js +5 -1
- package/es/style-provider/index.js +1 -5
- 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.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 +0 -19
- package/es/varlet.esm.js +12805 -13960
- package/highlight/attributes.json +41 -9
- package/highlight/tags.json +14 -6
- package/highlight/web-types.json +83 -11
- 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 +1 -1
- package/lib/date-picker/props.js +1 -1
- package/lib/date-picker/src/day-picker-panel.js +1 -1
- package/lib/date-picker/src/month-picker-panel.js +1 -1
- 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.js +3 -0
- package/lib/lazy/index.js +1 -1
- package/lib/loading/loading.css +1 -1
- package/lib/loading/props.js +1 -2
- package/lib/locale/index.js +11 -1
- 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/space/Space.js +6 -2
- package/lib/style-provider/StyleProvider.js +5 -1
- package/lib/style-provider/index.js +1 -5
- 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.js +4 -2
- package/lib/themes/dark/menu.js +8 -0
- package/lib/themes/index.js +13 -0
- package/lib/time-picker/TimePicker.js +1 -1
- package/lib/time-picker/props.js +1 -1
- package/lib/utils/components.js +3 -3
- package/lib/utils/jest.js +0 -21
- package/package.json +10 -7
- package/types/actionSheet.d.ts +1 -2
- package/types/appBar.d.ts +4 -3
- package/types/backTop.d.ts +1 -2
- package/types/badge.d.ts +5 -4
- package/types/bottomNavigation.d.ts +1 -2
- package/types/bottomNavigationItem.d.ts +1 -2
- package/types/button.d.ts +7 -6
- package/types/card.d.ts +7 -8
- package/types/cell.d.ts +3 -4
- package/types/checkbox.d.ts +1 -2
- package/types/checkboxGroup.d.ts +4 -5
- package/types/chip.d.ts +3 -4
- package/types/col.d.ts +1 -2
- package/types/collapse.d.ts +1 -2
- package/types/collapseItem.d.ts +1 -2
- package/types/countdown.d.ts +1 -2
- package/types/counter.d.ts +3 -4
- package/types/datePicker.d.ts +5 -4
- package/types/dialog.d.ts +4 -3
- package/types/divider.d.ts +1 -2
- package/types/form.d.ts +1 -2
- package/types/icon.d.ts +1 -2
- package/types/image.d.ts +4 -3
- package/types/imagePreview.d.ts +2 -3
- package/types/index.d.ts +67 -0
- package/types/indexAnchor.d.ts +1 -2
- package/types/indexBar.d.ts +1 -2
- package/types/input.d.ts +6 -5
- package/types/list.d.ts +1 -2
- package/types/loading.d.ts +5 -4
- package/types/locale.d.ts +3 -0
- package/types/menu.d.ts +27 -3
- package/types/option.d.ts +1 -2
- package/types/pagination.d.ts +1 -2
- package/types/picker.d.ts +1 -2
- package/types/popup.d.ts +4 -3
- package/types/progress.d.ts +4 -3
- package/types/pullRefresh.d.ts +1 -2
- package/types/radio.d.ts +3 -4
- package/types/radioGroup.d.ts +4 -5
- package/types/rate.d.ts +1 -2
- package/types/row.d.ts +7 -4
- package/types/select.d.ts +6 -5
- package/types/skeleton.d.ts +1 -2
- package/types/slider.d.ts +4 -3
- package/types/snackbar.d.ts +9 -9
- package/types/space.d.ts +1 -2
- package/types/step.d.ts +1 -2
- package/types/steps.d.ts +2 -3
- package/types/sticky.d.ts +1 -2
- package/types/styleProvider.d.ts +2 -2
- package/types/swipe.d.ts +1 -2
- package/types/swipeItem.d.ts +1 -2
- package/types/switch.d.ts +1 -2
- package/types/tab.d.ts +1 -2
- package/types/tabItem.d.ts +1 -2
- package/types/table.d.ts +1 -2
- package/types/tabs.d.ts +3 -4
- package/types/tabsItems.d.ts +4 -2
- package/types/timePicker.d.ts +5 -4
- package/types/uploader.d.ts +12 -7
- package/types/varComponent.d.ts +6 -0
- package/umd/varlet.js +16 -4
- package/README.en-US.md +0 -93
- 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
package/lib/menu/props.js
CHANGED
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.props = void 0;
|
|
5
5
|
|
|
6
|
-
function
|
|
7
|
-
return ['
|
|
6
|
+
function triggerValidator(trigger) {
|
|
7
|
+
return ['click', 'hover'].includes(trigger);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function placementValidator(alignment) {
|
|
11
|
+
return ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'cover-top', 'cover-top-start', 'cover-top-end', 'cover-bottom', 'cover-bottom-start', 'cover-bottom-end', 'cover-left', 'cover-right'].includes(alignment);
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
var props = {
|
|
@@ -12,10 +16,19 @@ var props = {
|
|
|
12
16
|
type: Boolean,
|
|
13
17
|
default: false
|
|
14
18
|
},
|
|
15
|
-
|
|
19
|
+
disabled: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
trigger: {
|
|
16
24
|
type: String,
|
|
17
|
-
default: '
|
|
18
|
-
validator:
|
|
25
|
+
default: 'click',
|
|
26
|
+
validator: triggerValidator
|
|
27
|
+
},
|
|
28
|
+
placement: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: 'cover-top-start',
|
|
31
|
+
validator: placementValidator
|
|
19
32
|
},
|
|
20
33
|
offsetX: {
|
|
21
34
|
type: [Number, String],
|
|
@@ -26,9 +39,13 @@ var props = {
|
|
|
26
39
|
default: 0
|
|
27
40
|
},
|
|
28
41
|
teleport: {
|
|
29
|
-
type: String,
|
|
42
|
+
type: [String, Object],
|
|
30
43
|
default: 'body'
|
|
31
44
|
},
|
|
45
|
+
defaultStyle: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: true
|
|
48
|
+
},
|
|
32
49
|
onOpen: {
|
|
33
50
|
type: Function
|
|
34
51
|
},
|
package/lib/menu/style/index.js
CHANGED
|
@@ -69,9 +69,13 @@ function render(_ctx, _cache) {
|
|
|
69
69
|
onKeydown: _cache[3] || (_cache[3] = (0, _vue.withKeys)($event => _ctx.setPage('simple', _ctx.simpleValue, $event), ["enter"]))
|
|
70
70
|
}, null, 8
|
|
71
71
|
/* PROPS */
|
|
72
|
-
, ["modelValue", "disabled"]), (0, _vue.createElementVNode)("span", null, "/ " + (0, _vue.toDisplayString)(_ctx.pageCount), 1
|
|
72
|
+
, ["modelValue", "disabled"]), (0, _vue.createElementVNode)("span", null, [(0, _vue.createTextVNode)(" / " + (0, _vue.toDisplayString)(_ctx.pageCount) + " ", 1
|
|
73
73
|
/* TEXT */
|
|
74
|
-
)
|
|
74
|
+
), (0, _vue.createElementVNode)("div", {
|
|
75
|
+
class: (0, _vue.normalizeClass)(_ctx.n('simple-line'))
|
|
76
|
+
}, null, 2
|
|
77
|
+
/* CLASS */
|
|
78
|
+
)])], 2
|
|
75
79
|
/* CLASS */
|
|
76
80
|
)) : ((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, {
|
|
77
81
|
key: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --pagination-font-size: var(--font-size-md); --pagination-active-color: #fff; --pagination-active-bg-color: var(--color-primary); --pagination-hover-bg-color: #edf5ff; --pagination-total-margin: 0 12px; --pagination-total-line-height: 24px; --pagination-item-width: 32px; --pagination-item-height: 32px; --pagination-item-margin: 0 6px; --pagination-item-background: #fff; --pagination-item-border-radius: 4px; --pagination-list-bg-color: #fff; --pagination-list-active-bg-color: #edf5ff; --pagination-list-active-color: var(--color-primary); --pagination-input-width: 32px; --pagination-simple-padding: 0 0 2px 0; --pagination-disabled-color: var(--color-text-disabled); --pagination-bg-disabled-color: var(--color-disabled); --pagination-size-line-height: 24px;}.pagination-flex-nowrap { display: flex; white-space: nowrap; align-items: center;}.var-pagination { display: flex; align-items: center; list-style: none; width: 100%; margin: 0; font-size: var(--pagination-font-size); padding: 0;}.var-pagination__item { display: inline-flex; min-width: var(--pagination-item-width); align-items: center; justify-content: center; margin: var(--pagination-item-margin); height: var(--pagination-item-height); cursor: pointer; border-radius: var(--pagination-item-border-radius); outline: none; transition: all 0.25s; user-select: none; background-color: var(--pagination-item-background);}.var-pagination__item:hover { background-color: var(--pagination-hover-bg-color);}.var-pagination__item--active { color: var(--pagination-active-color); background-color: var(--pagination-active-bg-color) !important;}.var-pagination__item--hide { display: none;}.var-pagination__item--disabled { cursor: default; color: var(--pagination-disabled-color); background-color: unset;}.var-pagination__item--disabled:hover { background-color: unset;}.var-pagination__item--disabled--hover:hover { background-color: inherit;}.var-pagination__item--disabled--active { background-color: var(--pagination-bg-disabled-color);}.var-pagination__item--disabled--active:hover { background-color: var(--pagination-bg-disabled-color);}.var-pagination__prev { margin-left: 0;}.var-pagination__total { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-total-line-height); margin: var(--pagination-total-margin);}.var-pagination__size { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-size-line-height); margin: var(--pagination-item-margin);}.var-pagination__size--open { display: flex; align-items: center; cursor: pointer;}.var-pagination__size--open--disabled { cursor: default;}.var-pagination__list { background-color: var(--pagination-list-bg-color); cursor: pointer; transition: all 0.25s;}.var-pagination__list:hover { color: var(--pagination-list-active-color); background-color: var(--pagination-hover-bg-color);}.var-pagination__list--active { background-color: var(--pagination-list-active-bg-color) !important; color: var(--pagination-list-active-color);}.var-pagination__quickly,.var-pagination__simple { display: flex; white-space: nowrap; align-items: center;}.var-pagination__quickly [var-pagination-cover],.var-pagination__simple [var-pagination-cover] { width: var(--pagination-input-width);}.var-pagination__quickly [var-pagination-cover] .var-input__wrap,.var-pagination__simple [var-pagination-cover] .var-input__wrap { padding: 0;}.var-pagination__quickly [var-pagination-cover] .var-input__input,.var-pagination__simple [var-pagination-cover] .var-input__input { height: auto; text-align: center;}.var-pagination__quickly { margin: var(--pagination-item-margin);}.var-pagination__quickly [var-pagination-cover] { margin-left: 6px;}.var-pagination__size--open-icon[var-pagination-cover] { font-size: inherit;}.var-pagination--simple-padding { padding: var(--pagination-simple-padding);}
|
|
1
|
+
:root { --pagination-font-size: var(--font-size-md); --pagination-active-color: #fff; --pagination-active-bg-color: var(--color-primary); --pagination-hover-bg-color: #edf5ff; --pagination-total-margin: 0 12px; --pagination-total-line-height: 24px; --pagination-item-width: 32px; --pagination-item-height: 32px; --pagination-item-margin: 0 6px; --pagination-item-background: #fff; --pagination-item-border-radius: 4px; --pagination-list-bg-color: #fff; --pagination-list-active-bg-color: #edf5ff; --pagination-list-active-color: var(--color-primary); --pagination-input-width: 32px; --pagination-simple-padding: 0 0 2px 0; --pagination-disabled-color: var(--color-text-disabled); --pagination-bg-disabled-color: var(--color-disabled); --pagination-size-line-height: 24px;}.pagination-flex-nowrap { display: flex; white-space: nowrap; align-items: center;}.var-pagination { display: flex; align-items: center; list-style: none; width: 100%; margin: 0; font-size: var(--pagination-font-size); padding: 0;}.var-pagination__item { display: inline-flex; min-width: var(--pagination-item-width); align-items: center; justify-content: center; margin: var(--pagination-item-margin); height: var(--pagination-item-height); cursor: pointer; border-radius: var(--pagination-item-border-radius); outline: none; transition: all 0.25s; user-select: none; background-color: var(--pagination-item-background);}.var-pagination__item:hover { background-color: var(--pagination-hover-bg-color);}.var-pagination__item--active { color: var(--pagination-active-color); background-color: var(--pagination-active-bg-color) !important;}.var-pagination__item--hide { display: none;}.var-pagination__item--disabled { cursor: default; color: var(--pagination-disabled-color); background-color: unset;}.var-pagination__item--disabled:hover { background-color: unset;}.var-pagination__item--disabled--hover:hover { background-color: inherit;}.var-pagination__item--disabled--active { background-color: var(--pagination-bg-disabled-color);}.var-pagination__item--disabled--active:hover { background-color: var(--pagination-bg-disabled-color);}.var-pagination__prev { margin-left: 0;}.var-pagination__total { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-total-line-height); margin: var(--pagination-total-margin);}.var-pagination__size { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-size-line-height); margin: var(--pagination-item-margin);}.var-pagination__size--open { display: flex; align-items: center; cursor: pointer;}.var-pagination__size--open--disabled { cursor: default;}.var-pagination__list { background-color: var(--pagination-list-bg-color); cursor: pointer; transition: all 0.25s;}.var-pagination__list:hover { color: var(--pagination-list-active-color); background-color: var(--pagination-hover-bg-color);}.var-pagination__list--active { background-color: var(--pagination-list-active-bg-color) !important; color: var(--pagination-list-active-color);}.var-pagination__quickly,.var-pagination__simple { display: flex; white-space: nowrap; align-items: center;}.var-pagination__quickly [var-pagination-cover],.var-pagination__simple [var-pagination-cover] { width: var(--pagination-input-width);}.var-pagination__quickly [var-pagination-cover] .var-input__wrap,.var-pagination__simple [var-pagination-cover] .var-input__wrap { padding: 0;}.var-pagination__quickly [var-pagination-cover] .var-input__input,.var-pagination__simple [var-pagination-cover] .var-input__input { height: auto; text-align: center;}.var-pagination__quickly-line,.var-pagination__simple-line { height: 1px; background: transparent;}.var-pagination__quickly { margin: var(--pagination-item-margin);}.var-pagination__quickly [var-pagination-cover] { margin-left: 6px;}.var-pagination__size--open-icon[var-pagination-cover] { font-size: inherit;}.var-pagination--simple-padding { padding: var(--pagination-simple-padding);}
|
package/lib/picker/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
|
var props = _extends({
|
|
13
13
|
columns: {
|
package/lib/popup/Popup.js
CHANGED
|
@@ -17,7 +17,7 @@ var _components = require("../utils/components");
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
function _extends() { _extends = Object.assign
|
|
20
|
+
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); }
|
|
21
21
|
|
|
22
22
|
function _isSlot(s) {
|
|
23
23
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
|
|
@@ -70,7 +70,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
70
70
|
newValue ? onOpen == null ? void 0 : onOpen() : onClose == null ? void 0 : onClose();
|
|
71
71
|
}); // internal for Dialog
|
|
72
72
|
|
|
73
|
-
(0, _components.
|
|
73
|
+
(0, _components.useRouteListener)(() => props.onRouteChange == null ? void 0 : props.onRouteChange());
|
|
74
74
|
|
|
75
75
|
var renderOverlay = () => {
|
|
76
76
|
var {
|
package/lib/rate/Rate.js
CHANGED
|
@@ -54,7 +54,7 @@ function render(_ctx, _cache) {
|
|
|
54
54
|
"var-rate-cover": "",
|
|
55
55
|
transition: 0,
|
|
56
56
|
namespace: _ctx.namespace,
|
|
57
|
-
name: _ctx.
|
|
57
|
+
name: _ctx.getCurrentState(val).name,
|
|
58
58
|
style: (0, _vue.normalizeStyle)({
|
|
59
59
|
fontSize: _ctx.toSizeUnit(_ctx.size)
|
|
60
60
|
})
|
|
@@ -105,75 +105,59 @@ var _default = (0, _vue.defineComponent)({
|
|
|
105
105
|
var getStyle = val => {
|
|
106
106
|
var {
|
|
107
107
|
count,
|
|
108
|
-
size,
|
|
109
108
|
gap
|
|
110
109
|
} = props;
|
|
111
110
|
return {
|
|
112
|
-
color:
|
|
113
|
-
marginRight: val !== (0, _shared.toNumber)(count) ? (0, _elements.toSizeUnit)(gap) : 0
|
|
114
|
-
width: (0, _elements.toSizeUnit)(size),
|
|
115
|
-
height: (0, _elements.toSizeUnit)(size),
|
|
116
|
-
borderRadius: '50%'
|
|
111
|
+
color: getCurrentState(val).color,
|
|
112
|
+
marginRight: val !== (0, _shared.toNumber)(count) ? (0, _elements.toSizeUnit)(gap) : 0
|
|
117
113
|
};
|
|
118
114
|
};
|
|
119
115
|
|
|
120
116
|
var getClass = val => {
|
|
121
117
|
var {
|
|
122
|
-
|
|
118
|
+
name,
|
|
123
119
|
color
|
|
124
|
-
} =
|
|
120
|
+
} = getCurrentState(val);
|
|
125
121
|
return {
|
|
126
122
|
[n('content')]: true,
|
|
127
123
|
[n('--disabled')]: (form == null ? void 0 : form.disabled.value) || props.disabled,
|
|
128
124
|
[n('--error')]: errorMessage.value,
|
|
129
|
-
[n('--primary')]:
|
|
125
|
+
[n('--primary')]: name !== props.emptyIcon && !color
|
|
130
126
|
};
|
|
131
127
|
};
|
|
132
128
|
|
|
133
|
-
var
|
|
134
|
-
var {
|
|
135
|
-
type
|
|
136
|
-
} = transformValue(val);
|
|
137
|
-
var {
|
|
138
|
-
icon,
|
|
139
|
-
halfIcon,
|
|
140
|
-
emptyIcon
|
|
141
|
-
} = props;
|
|
142
|
-
return type === 'full' ? icon : type === 'half' ? halfIcon : emptyIcon;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
var transformValue = index => {
|
|
129
|
+
var getCurrentState = index => {
|
|
146
130
|
var {
|
|
147
131
|
modelValue,
|
|
148
132
|
disabled,
|
|
149
133
|
disabledColor,
|
|
150
134
|
color,
|
|
151
135
|
half,
|
|
152
|
-
emptyColor
|
|
136
|
+
emptyColor,
|
|
137
|
+
icon,
|
|
138
|
+
halfIcon,
|
|
139
|
+
emptyIcon
|
|
153
140
|
} = props;
|
|
154
|
-
var iconColor;
|
|
155
|
-
if (disabled || form != null && form.disabled.value) iconColor = disabledColor;
|
|
141
|
+
var iconColor = color;
|
|
142
|
+
if (disabled || form != null && form.disabled.value) iconColor = disabledColor;
|
|
156
143
|
|
|
157
144
|
if (index <= (0, _shared.toNumber)(modelValue)) {
|
|
158
145
|
return {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
color: iconColor
|
|
146
|
+
color: iconColor,
|
|
147
|
+
name: icon
|
|
162
148
|
};
|
|
163
149
|
}
|
|
164
150
|
|
|
165
151
|
if (half && index <= (0, _shared.toNumber)(modelValue) + 0.5) {
|
|
166
152
|
return {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
color: iconColor
|
|
153
|
+
color: iconColor,
|
|
154
|
+
name: halfIcon
|
|
170
155
|
};
|
|
171
156
|
}
|
|
172
157
|
|
|
173
158
|
return {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
color: disabled || form != null && form.disabled.value ? disabledColor : emptyColor
|
|
159
|
+
color: disabled || form != null && form.disabled.value ? disabledColor : emptyColor,
|
|
160
|
+
name: emptyIcon
|
|
177
161
|
};
|
|
178
162
|
};
|
|
179
163
|
|
|
@@ -225,7 +209,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
225
209
|
formReadonly: form == null ? void 0 : form.readonly,
|
|
226
210
|
getStyle,
|
|
227
211
|
getClass,
|
|
228
|
-
|
|
212
|
+
getCurrentState,
|
|
229
213
|
handleClick,
|
|
230
214
|
reset,
|
|
231
215
|
validate,
|
package/lib/rate/rate.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__wrap { width: 100%;}.var-rate__content { padding: var(--rate-action-padding);
|
|
1
|
+
:root { --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__wrap { width: 100%;}.var-rate__content { padding: var(--rate-action-padding); cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-rate__content-icon[var-rate-cover] { font-size: 24px;}.var-rate--primary { color: var(--rate-primary-color);}.var-rate--disabled { color: var(--rate-disabled-color); cursor: not-allowed;}.var-rate--error { color: var(--rate-error-color);}
|
package/lib/ripple/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _components = require("../utils/components");
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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 {
|
|
21
21
|
n
|
|
@@ -185,7 +185,7 @@ function updated(el, binding) {
|
|
|
185
185
|
var _el$_ripple4, _el$_ripple5;
|
|
186
186
|
|
|
187
187
|
el._ripple = _extends({
|
|
188
|
-
tasker: (_el$_ripple4 = el._ripple) == null ? void 0 : _el$_ripple4.tasker,
|
|
188
|
+
tasker: newBinding.disabled ? null : (_el$_ripple4 = el._ripple) == null ? void 0 : _el$_ripple4.tasker,
|
|
189
189
|
removeRipple: (_el$_ripple5 = el._ripple) == null ? void 0 : _el$_ripple5.removeRipple
|
|
190
190
|
}, newBinding);
|
|
191
191
|
}
|
package/lib/select/Select.js
CHANGED
|
@@ -65,27 +65,29 @@ function render(_ctx, _cache) {
|
|
|
65
65
|
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('icon'), [!_ctx.hint, _ctx.n('--non-hint')]))
|
|
66
66
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "prepend-icon")], 2
|
|
67
67
|
/* CLASS */
|
|
68
|
-
), (0, _vue.
|
|
69
|
-
class: (0, _vue.normalizeClass)(_ctx.n('
|
|
68
|
+
), (0, _vue.createElementVNode)("div", {
|
|
69
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('wrap'), [!_ctx.hint, _ctx.n('--non-hint')])),
|
|
70
|
+
ref: "wrapEl",
|
|
71
|
+
onClick: _cache[2] || (_cache[2] = function () {
|
|
72
|
+
return _ctx.handleFocus && _ctx.handleFocus(...arguments);
|
|
73
|
+
})
|
|
74
|
+
}, [(0, _vue.createVNode)(_component_var_menu, {
|
|
70
75
|
"var-select-cover": "",
|
|
76
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('menu'))),
|
|
71
77
|
"offset-y": _ctx.offsetY,
|
|
78
|
+
disabled: _ctx.readonly || _ctx.disabled,
|
|
79
|
+
"default-style": false,
|
|
72
80
|
show: _ctx.isFocus,
|
|
73
|
-
"onUpdate:show": _cache[
|
|
81
|
+
"onUpdate:show": _cache[1] || (_cache[1] = $event => _ctx.isFocus = $event),
|
|
74
82
|
onClose: _ctx.handleBlur
|
|
75
83
|
}, {
|
|
76
84
|
menu: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", {
|
|
77
85
|
ref: "menuEl",
|
|
78
|
-
class: (0, _vue.normalizeClass)(_ctx.n('scroller'))
|
|
86
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('scroller'), 'var-elevation--3'))
|
|
79
87
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "default")], 2
|
|
80
88
|
/* CLASS */
|
|
81
89
|
)]),
|
|
82
90
|
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", {
|
|
83
|
-
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('wrap'), [!_ctx.hint, _ctx.n('--non-hint')])),
|
|
84
|
-
ref: "wrapEl",
|
|
85
|
-
onClick: _cache[1] || (_cache[1] = function () {
|
|
86
|
-
return _ctx.handleFocus && _ctx.handleFocus(...arguments);
|
|
87
|
-
})
|
|
88
|
-
}, [(0, _vue.createElementVNode)("div", {
|
|
89
91
|
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('select'), [_ctx.errorMessage, _ctx.n('--error')], [_ctx.formDisabled || _ctx.disabled, _ctx.n('--disabled')])),
|
|
90
92
|
style: (0, _vue.normalizeStyle)({
|
|
91
93
|
textAlign: _ctx.textAlign,
|
|
@@ -141,15 +143,15 @@ function render(_ctx, _cache) {
|
|
|
141
143
|
})
|
|
142
144
|
}, (0, _vue.toDisplayString)(_ctx.placeholder), 7
|
|
143
145
|
/* TEXT, CLASS, STYLE */
|
|
144
|
-
)], 2
|
|
145
|
-
/* CLASS */
|
|
146
146
|
)]),
|
|
147
147
|
_: 3
|
|
148
148
|
/* FORWARDED */
|
|
149
149
|
|
|
150
150
|
}, 8
|
|
151
151
|
/* PROPS */
|
|
152
|
-
, ["class", "offset-y", "show", "onClose"]),
|
|
152
|
+
, ["class", "offset-y", "disabled", "show", "onClose"])], 2
|
|
153
|
+
/* CLASS */
|
|
154
|
+
), (0, _vue.createElementVNode)("div", {
|
|
153
155
|
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('icon'), [!_ctx.hint, _ctx.n('--non-hint')]))
|
|
154
156
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "append-icon", {}, () => [_ctx.clearable ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_icon, {
|
|
155
157
|
key: 0,
|
|
@@ -310,11 +312,6 @@ var _default = (0, _vue.defineComponent)({
|
|
|
310
312
|
return wrapEl.value && window.getComputedStyle(wrapEl.value).width || '0px';
|
|
311
313
|
};
|
|
312
314
|
|
|
313
|
-
var getOffsetY = () => {
|
|
314
|
-
var paddingTop = wrapEl.value && window.getComputedStyle(wrapEl.value).paddingTop || '0px';
|
|
315
|
-
return (0, _elements.toPxNum)(paddingTop) * 1.5;
|
|
316
|
-
};
|
|
317
|
-
|
|
318
315
|
var handleFocus = () => {
|
|
319
316
|
var {
|
|
320
317
|
disabled,
|
|
@@ -327,11 +324,10 @@ var _default = (0, _vue.defineComponent)({
|
|
|
327
324
|
}
|
|
328
325
|
|
|
329
326
|
wrapWidth.value = getWrapWidth();
|
|
330
|
-
offsetY.value =
|
|
327
|
+
offsetY.value = (0, _elements.toPxNum)(props.offsetY);
|
|
331
328
|
isFocus.value = true;
|
|
332
329
|
(0, _components.call)(onFocus);
|
|
333
330
|
validateWithTrigger('onFocus');
|
|
334
|
-
detectBoundary();
|
|
335
331
|
};
|
|
336
332
|
|
|
337
333
|
var handleBlur = () => {
|
|
@@ -454,9 +450,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
454
450
|
|
|
455
451
|
var focus = () => {
|
|
456
452
|
wrapWidth.value = getWrapWidth();
|
|
457
|
-
offsetY.value =
|
|
453
|
+
offsetY.value = (0, _elements.toPxNum)(props.offsetY);
|
|
458
454
|
isFocus.value = true;
|
|
459
|
-
detectBoundary();
|
|
460
455
|
}; // expose
|
|
461
456
|
|
|
462
457
|
|
|
@@ -473,29 +468,6 @@ var _default = (0, _vue.defineComponent)({
|
|
|
473
468
|
resetValidation();
|
|
474
469
|
};
|
|
475
470
|
|
|
476
|
-
var detectBoundary = () => {
|
|
477
|
-
var {
|
|
478
|
-
body
|
|
479
|
-
} = document;
|
|
480
|
-
var bodyScrollHeight = body.scrollHeight;
|
|
481
|
-
(0, _vue.nextTick)(() => {
|
|
482
|
-
var _menuEl$value;
|
|
483
|
-
|
|
484
|
-
var {
|
|
485
|
-
offsetHeight: menuOffsetHeight
|
|
486
|
-
} = (_menuEl$value = menuEl.value) == null ? void 0 : _menuEl$value.parentElement;
|
|
487
|
-
var wrapOffsetTop = (0, _elements.getTop)(wrapEl.value);
|
|
488
|
-
|
|
489
|
-
if (wrapOffsetTop + offsetY.value < 0) {
|
|
490
|
-
offsetY.value = getOffsetY();
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
if (menuOffsetHeight + wrapOffsetTop + offsetY.value > bodyScrollHeight) {
|
|
494
|
-
offsetY.value -= menuOffsetHeight - getOffsetY();
|
|
495
|
-
}
|
|
496
|
-
});
|
|
497
|
-
};
|
|
498
|
-
|
|
499
471
|
(0, _vue.watch)(() => props.multiple, () => {
|
|
500
472
|
var {
|
|
501
473
|
multiple,
|
package/lib/select/select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --select-select-text-color: #555; --select-select-padding: 5px 0; --select-error-color: var(--color-danger); --select-blur-color: #888; --select-focus-color: var(--color-primary); --select-scroller-background: #fff; --select-scroller-padding: 6px 0; --select-scroller-max-height: 278px; --select-placeholder-size: 16px; --select-icon-padding: 16px 0 0; --select-icon-size: 20px; --select-chip-margin: 5px 5px 0; --select-line-size: 1px; --select-line-spread-size: 2px; --select-arrow-size: 20px; --select-disabled-color: var(--color-text-disabled);}.var-select-footer-margin-enter-from,.var-select-footer-margin-leave-to { opacity: 0; margin-top: 2px !important;}.var-select-footer-margin-enter-active,.var-select-footer-margin-leave-active { transition: 0.2s all var(--cubic-bezier);}.var-select { width: 100%; color: var(--select-select-text-color);}.var-select__controller { width: 100%; display: flex; position: relative;}.var-select__menu[var-select-cover] { flex-grow: 1; background: transparent;}.var-select__chip[var-select-cover] { margin: var(--select-chip-margin);}.var-select__scroller { max-height: var(--select-scroller-max-height); background: var(--select-scroller-background); padding: var(--select-scroller-padding); overflow-y: auto;}.var-select__wrap { position: relative; display: flex; flex-direction: column; padding-top: var(--select-placeholder-size);}.var-select__icon { display: flex; align-items: center; padding: var(--select-icon-padding); font-size: 20px;}.var-select__placeholder { position: absolute; top: 50%; left: 0; width: 100%; transform-origin: left; transition-property: top, transform, width; transition-duration: 0.3s; transform: translate(0, calc(-50% + var(--select-placeholder-size) / 2)) scale(1); font-size: var(--select-placeholder-size); color: var(--select-blur-color);}.var-select__select { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 32px; padding: var(--select-select-padding); outline: none; border: none; font-size: inherit; color: var(--select-select-text-color); word-break: break-all; overflow-x: hidden;}.var-select__arrow[var-select-cover] { flex-shrink: 0; font-size: var(--select-arrow-size);}.var-select__line { width: 100%; height: var(--select-line-size); background: var(--select-blur-color);}.var-select__dot { width: 100%; height: var(--select-line-spread-size); background: var(--select-focus-color); transform: scaleX(0); transform-origin: center; transition: transform 0.3s var(--cubic-bezier);}.var-select--placeholder-hint { top: 0; width: 133.33%; transform: translate(0, 0) scale(0.75);}.var-select--placeholder-non-hint { top: 50%; transform: translate(0, -50%) scale(1);}.var-select--non-hint { padding-top: 0;}.var-select--placeholder-hidden { visibility: hidden;}.var-select--focus { color: var(--select-focus-color);}.var-select--spread { transform: scaleX(1);}.var-select--disabled { color: var(--select-disabled-color);}.var-select--error { color: var(--select-error-color);}.var-select--line-disabled { background: var(--select-disabled-color);}.var-select--line-error { background: var(--select-error-color);}.var-select--arrow-rotate { transform: rotate(180deg);}
|
|
1
|
+
:root { --select-select-text-color: #555; --select-select-padding: 5px 0; --select-error-color: var(--color-danger); --select-blur-color: #888; --select-focus-color: var(--color-primary); --select-scroller-background: #fff; --select-scroller-padding: 6px 0; --select-scroller-margin: 8px 0 0 0; --select-scroller-max-height: 278px; --select-placeholder-size: 16px; --select-icon-padding: 16px 0 0; --select-icon-size: 20px; --select-chip-margin: 5px 5px 0; --select-line-size: 1px; --select-line-spread-size: 2px; --select-arrow-size: 20px; --select-disabled-color: var(--color-text-disabled);}.var-select-footer-margin-enter-from,.var-select-footer-margin-leave-to { opacity: 0; margin-top: 2px !important;}.var-select-footer-margin-enter-active,.var-select-footer-margin-leave-active { transition: 0.2s all var(--cubic-bezier);}.var-select { width: 100%; color: var(--select-select-text-color);}.var-select__controller { width: 100%; display: flex; position: relative;}.var-select__menu[var-select-cover] { flex-grow: 1; background: transparent;}.var-select__chip[var-select-cover] { margin: var(--select-chip-margin);}.var-select__scroller { max-height: var(--select-scroller-max-height); background: var(--select-scroller-background); padding: var(--select-scroller-padding); overflow-y: auto; margin: var(--select-scroller-margin);}.var-select__wrap { position: relative; display: flex; flex-direction: column; width: 100%; padding-top: var(--select-placeholder-size);}.var-select__icon { display: flex; align-items: center; padding: var(--select-icon-padding); font-size: 20px;}.var-select__placeholder { position: absolute; top: 50%; left: 0; width: 100%; transform-origin: left; transition-property: top, transform, width; transition-duration: 0.3s; transform: translate(0, calc(-50% + var(--select-placeholder-size) / 2)) scale(1); font-size: var(--select-placeholder-size); color: var(--select-blur-color);}.var-select__select { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 32px; padding: var(--select-select-padding); outline: none; border: none; font-size: inherit; color: var(--select-select-text-color); word-break: break-all; overflow-x: hidden;}.var-select__arrow[var-select-cover] { flex-shrink: 0; font-size: var(--select-arrow-size);}.var-select__line { width: 100%; height: var(--select-line-size); background: var(--select-blur-color);}.var-select__dot { width: 100%; height: var(--select-line-spread-size); background: var(--select-focus-color); transform: scaleX(0); transform-origin: center; transition: transform 0.3s var(--cubic-bezier);}.var-select--placeholder-hint { top: 0; width: 133.33%; transform: translate(0, 0) scale(0.75);}.var-select--placeholder-non-hint { top: 50%; transform: translate(0, -50%) scale(1);}.var-select--non-hint { padding-top: 0;}.var-select--placeholder-hidden { visibility: hidden;}.var-select--focus { color: var(--select-focus-color);}.var-select--spread { transform: scaleX(1);}.var-select--disabled { color: var(--select-disabled-color);}.var-select--error { color: var(--select-error-color);}.var-select--line-disabled { background: var(--select-disabled-color);}.var-select--line-error { background: var(--select-error-color);}.var-select--arrow-rotate { transform: rotate(180deg);}
|
package/lib/slider/Slider.js
CHANGED
|
@@ -20,7 +20,7 @@ var _formDetails = _interopRequireDefault(require("../form-details"));
|
|
|
20
20
|
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
22
|
|
|
23
|
-
function _extends() { _extends = Object.assign
|
|
23
|
+
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); }
|
|
24
24
|
|
|
25
25
|
var {
|
|
26
26
|
n,
|
package/lib/snackbar/core.js
CHANGED
|
@@ -66,10 +66,12 @@ function render(_ctx, _cache) {
|
|
|
66
66
|
, ["name"])) : (0, _vue.createCommentVNode)("v-if", true), _ctx.type === 'loading' ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_loading, {
|
|
67
67
|
key: 1,
|
|
68
68
|
type: _ctx.loadingType,
|
|
69
|
-
size: _ctx.loadingSize
|
|
69
|
+
size: _ctx.loadingSize,
|
|
70
|
+
color: _ctx.loadingColor,
|
|
71
|
+
radius: _ctx.loadingRadius
|
|
70
72
|
}, null, 8
|
|
71
73
|
/* PROPS */
|
|
72
|
-
, ["type", "size"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.renderSlot)(_ctx.$slots, "action")], 2
|
|
74
|
+
, ["type", "size", "color", "radius"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.renderSlot)(_ctx.$slots, "action")], 2
|
|
73
75
|
/* CLASS */
|
|
74
76
|
)], 6
|
|
75
77
|
/* CLASS, STYLE */
|
package/lib/snackbar/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var _shared = require("@varlet/shared");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
function _extends() { _extends = Object.assign
|
|
20
|
+
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); }
|
|
21
21
|
|
|
22
22
|
function _isSlot(s) {
|
|
23
23
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
|
package/lib/snackbar/props.js
CHANGED
|
@@ -11,6 +11,8 @@ var _props = require("../loading/props");
|
|
|
11
11
|
|
|
12
12
|
var _index = require("./index");
|
|
13
13
|
|
|
14
|
+
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); }
|
|
15
|
+
|
|
14
16
|
function positionValidator(position) {
|
|
15
17
|
var validPositions = ['top', 'center', 'bottom'];
|
|
16
18
|
return validPositions.includes(position);
|
|
@@ -49,10 +51,12 @@ var props = {
|
|
|
49
51
|
type: Boolean,
|
|
50
52
|
default: false
|
|
51
53
|
},
|
|
52
|
-
// 加载动画类型
|
|
53
54
|
loadingType: (0, _components.pickProps)(_props.props, 'type'),
|
|
54
|
-
// 加载动画尺寸
|
|
55
55
|
loadingSize: (0, _components.pickProps)(_props.props, 'size'),
|
|
56
|
+
loadingRadius: (0, _components.pickProps)(_props.props, 'radius'),
|
|
57
|
+
loadingColor: _extends({}, (0, _components.pickProps)(_props.props, 'color'), {
|
|
58
|
+
default: 'currentColor'
|
|
59
|
+
}),
|
|
56
60
|
// 是否禁止滚动穿透
|
|
57
61
|
lockScroll: {
|
|
58
62
|
type: Boolean,
|
package/lib/space/Space.js
CHANGED
|
@@ -41,6 +41,10 @@ var _default = (0, _vue.defineComponent)({
|
|
|
41
41
|
return isInternalSize ? internalSizes[size] : (0, _shared.isArray)(size) ? size.map(_elements.toPxNum) : [(0, _elements.toPxNum)(size), (0, _elements.toPxNum)(size)];
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
+
var padStartFlex = style => {
|
|
45
|
+
return style === 'start' || style === 'end' ? "flex-" + style : style;
|
|
46
|
+
};
|
|
47
|
+
|
|
44
48
|
return () => {
|
|
45
49
|
var _call;
|
|
46
50
|
|
|
@@ -114,8 +118,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
114
118
|
"class": classes(n(), 'var--box', [inline, n('--inline')]),
|
|
115
119
|
"style": {
|
|
116
120
|
flexDirection: direction,
|
|
117
|
-
justifyContent: justify,
|
|
118
|
-
alignItems: align,
|
|
121
|
+
justifyContent: padStartFlex(justify),
|
|
122
|
+
alignItems: padStartFlex(align),
|
|
119
123
|
flexWrap: wrap ? 'wrap' : 'nowrap',
|
|
120
124
|
margin: direction === 'row' ? "-" + y / 2 + "px 0" : undefined
|
|
121
125
|
}
|
|
@@ -19,6 +19,10 @@ var _default = (0, _vue.defineComponent)({
|
|
|
19
19
|
styleVars: {
|
|
20
20
|
type: Object,
|
|
21
21
|
default: () => ({})
|
|
22
|
+
},
|
|
23
|
+
tag: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: 'div'
|
|
22
26
|
}
|
|
23
27
|
},
|
|
24
28
|
|
|
@@ -26,7 +30,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
26
30
|
var {
|
|
27
31
|
slots
|
|
28
32
|
} = _ref;
|
|
29
|
-
return () => (0, _vue.h)(
|
|
33
|
+
return () => (0, _vue.h)(props.tag, {
|
|
30
34
|
class: n(),
|
|
31
35
|
style: (0, _elements.formatStyleVars)(props.styleVars)
|
|
32
36
|
}, (0, _components.call)(slots.default));
|
|
@@ -12,13 +12,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
var mountedVarKeys = [];
|
|
13
13
|
|
|
14
14
|
function StyleProvider(styleVars) {
|
|
15
|
-
if (styleVars === void 0) {
|
|
16
|
-
styleVars = {};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
15
|
mountedVarKeys.forEach(key => document.documentElement.style.removeProperty(key));
|
|
20
16
|
mountedVarKeys.length = 0;
|
|
21
|
-
var styles = (0, _elements.formatStyleVars)(styleVars);
|
|
17
|
+
var styles = (0, _elements.formatStyleVars)(styleVars != null ? styleVars : {});
|
|
22
18
|
Object.entries(styles).forEach(_ref => {
|
|
23
19
|
var [key, value] = _ref;
|
|
24
20
|
document.documentElement.style.setProperty(key, value);
|