@varlet/ui 1.23.4 → 1.23.7
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 +47 -0
- package/es/action-sheet/index.js +1 -1
- package/es/back-top/BackTop.js +2 -2
- package/es/date-picker/date-picker.css +1 -1
- package/es/date-picker/date-picker.less +7 -3
- package/es/date-picker/src/day-picker-panel.js +5 -5
- package/es/date-picker/src/month-picker-panel.js +5 -5
- package/es/date-picker/src/panel-header.js +4 -11
- package/es/dialog/index.js +1 -1
- package/es/image-preview/index.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/input/Input.js +36 -13
- package/es/list/List.js +1 -1
- package/es/loading/Loading.js +15 -5
- package/es/loading/props.js +1 -2
- package/es/popup/Popup.js +81 -59
- package/es/popup/index.js +1 -1
- package/es/popup/style/index.js +0 -1
- package/es/popup/style/less.js +0 -1
- package/es/pull-refresh/PullRefresh.js +1 -1
- package/es/sticky/Sticky.js +1 -1
- package/es/themes/dark/index.d.ts +5 -0
- package/es/utils/components.js +7 -0
- package/es/utils/elements.js +2 -2
- package/es/utils/shared.js +1 -1
- package/highlight/attributes.json +4 -0
- package/highlight/tags.json +2 -1
- package/highlight/web-types.json +10 -1
- package/lib/action-sheet/ActionSheet.js +149 -0
- package/{es/popup/PopupSfc.css → lib/action-sheet/ActionSheetSfc.css} +0 -0
- package/{es/popup/PopupSfc.less → lib/action-sheet/ActionSheetSfc.less} +0 -0
- package/lib/action-sheet/actionSheet.css +1 -0
- package/lib/action-sheet/actionSheet.less +68 -0
- package/lib/action-sheet/index.js +79 -0
- package/lib/action-sheet/props.js +37 -0
- package/lib/action-sheet/style/index.js +6 -0
- package/lib/action-sheet/style/less.js +6 -0
- package/lib/app-bar/AppBar.js +66 -0
- package/lib/app-bar/AppBarSfc.css +0 -0
- package/lib/app-bar/AppBarSfc.less +0 -0
- package/lib/app-bar/appBar.css +1 -0
- package/lib/app-bar/appBar.less +56 -0
- package/lib/app-bar/index.js +17 -0
- package/lib/app-bar/props.js +32 -0
- package/lib/app-bar/style/index.js +4 -0
- package/lib/app-bar/style/less.js +4 -0
- package/lib/back-top/BackTop.js +96 -0
- package/lib/back-top/BackTopSfc.css +0 -0
- package/lib/back-top/BackTopSfc.less +0 -0
- package/lib/back-top/backTop.css +1 -0
- package/lib/back-top/backTop.less +27 -0
- package/lib/back-top/index.js +17 -0
- package/lib/back-top/props.js +21 -0
- package/lib/back-top/style/index.js +5 -0
- package/lib/back-top/style/less.js +5 -0
- package/lib/badge/Badge.js +107 -0
- package/lib/badge/BadgeSfc.css +0 -0
- package/lib/badge/BadgeSfc.less +0 -0
- package/lib/badge/badge.css +1 -0
- package/lib/badge/badge.less +119 -0
- package/lib/badge/index.js +17 -0
- package/lib/badge/props.js +55 -0
- package/lib/badge/style/index.js +4 -0
- package/lib/badge/style/less.js +4 -0
- package/lib/button/Button.js +102 -0
- package/lib/button/ButtonSfc.css +0 -0
- package/lib/button/ButtonSfc.less +0 -0
- package/lib/button/button.css +1 -0
- package/lib/button/button.less +183 -0
- package/lib/button/index.js +17 -0
- package/lib/button/props.js +76 -0
- package/lib/button/style/index.js +6 -0
- package/lib/button/style/less.js +6 -0
- package/lib/card/Card.js +83 -0
- package/lib/card/CardSfc.css +0 -0
- package/lib/card/CardSfc.less +0 -0
- package/lib/card/card.css +1 -0
- package/lib/card/card.less +84 -0
- package/lib/card/index.js +17 -0
- package/lib/card/props.js +45 -0
- package/lib/card/style/index.js +5 -0
- package/lib/card/style/less.js +5 -0
- package/lib/cell/Cell.js +68 -0
- package/lib/cell/CellSfc.css +0 -0
- package/lib/cell/CellSfc.less +0 -0
- package/lib/cell/cell.css +1 -0
- package/lib/cell/cell.less +74 -0
- package/lib/cell/index.js +17 -0
- package/lib/cell/props.js +32 -0
- package/lib/cell/style/index.js +4 -0
- package/lib/cell/style/less.js +4 -0
- package/lib/checkbox/Checkbox.js +232 -0
- package/lib/checkbox/CheckboxSfc.css +0 -0
- package/lib/checkbox/CheckboxSfc.less +0 -0
- package/lib/checkbox/checkbox.css +1 -0
- package/lib/checkbox/checkbox.less +78 -0
- package/lib/checkbox/index.js +17 -0
- package/lib/checkbox/props.js +56 -0
- package/lib/checkbox/provide.js +23 -0
- package/lib/checkbox/style/index.js +5 -0
- package/lib/checkbox/style/less.js +5 -0
- package/lib/checkbox-group/CheckboxGroup.js +181 -0
- package/lib/checkbox-group/CheckboxGroupSfc.css +0 -0
- package/lib/checkbox-group/CheckboxGroupSfc.less +0 -0
- package/lib/checkbox-group/checkboxGroup.css +1 -0
- package/lib/checkbox-group/checkboxGroup.less +12 -0
- package/lib/checkbox-group/index.js +17 -0
- package/lib/checkbox-group/props.js +38 -0
- package/lib/checkbox-group/provide.js +27 -0
- package/lib/checkbox-group/style/index.js +4 -0
- package/lib/checkbox-group/style/less.js +4 -0
- package/lib/chip/Chip.js +95 -0
- package/lib/chip/ChipSfc.css +0 -0
- package/lib/chip/ChipSfc.less +0 -0
- package/lib/chip/chip.css +1 -0
- package/lib/chip/chip.less +182 -0
- package/lib/chip/index.js +17 -0
- package/lib/chip/props.js +56 -0
- package/lib/chip/style/index.js +4 -0
- package/lib/chip/style/less.js +4 -0
- package/lib/col/Col.js +68 -0
- package/lib/col/ColSfc.css +0 -0
- package/lib/col/ColSfc.less +0 -0
- package/lib/col/col.css +1 -0
- package/lib/col/col.less +17 -0
- package/lib/col/index.js +17 -0
- package/lib/col/props.js +18 -0
- package/lib/col/provide.js +28 -0
- package/lib/col/style/index.js +3 -0
- package/lib/col/style/less.js +3 -0
- package/lib/collapse/Collapse.js +126 -0
- package/lib/collapse/CollapseSfc.css +1 -0
- package/lib/collapse/CollapseSfc.less +1 -0
- package/lib/collapse/index.js +17 -0
- package/lib/collapse/props.js +24 -0
- package/lib/collapse/provide.js +27 -0
- package/lib/collapse/style/index.js +3 -0
- package/lib/collapse/style/less.js +3 -0
- package/lib/collapse-item/CollapseItem.js +155 -0
- package/lib/collapse-item/CollapseItemSfc.css +0 -0
- package/lib/collapse-item/CollapseItemSfc.less +0 -0
- package/lib/collapse-item/collapseItem.css +1 -0
- package/lib/collapse-item/collapseItem.less +105 -0
- package/lib/collapse-item/index.js +17 -0
- package/lib/collapse-item/props.js +21 -0
- package/lib/collapse-item/provide.js +28 -0
- package/lib/collapse-item/style/index.js +4 -0
- package/lib/collapse-item/style/less.js +4 -0
- package/lib/context/index.js +20 -0
- package/lib/context/lock.js +107 -0
- package/lib/context/style/index.js +0 -0
- package/lib/context/style/less.js +0 -0
- package/lib/context/zIndex.js +25 -0
- package/lib/countdown/Countdown.js +119 -0
- package/lib/countdown/CountdownSfc.css +0 -0
- package/lib/countdown/CountdownSfc.less +0 -0
- package/lib/countdown/index.js +17 -0
- package/lib/countdown/props.js +25 -0
- package/lib/countdown/style/index.js +2 -0
- package/lib/countdown/style/less.js +2 -0
- package/lib/counter/Counter.js +387 -0
- package/lib/counter/CounterSfc.css +0 -0
- package/lib/counter/CounterSfc.less +0 -0
- package/lib/counter/counter.css +1 -0
- package/lib/counter/counter.less +85 -0
- package/lib/counter/index.js +17 -0
- package/lib/counter/props.js +98 -0
- package/lib/counter/provide.js +3 -0
- package/lib/counter/style/index.js +7 -0
- package/lib/counter/style/less.js +7 -0
- package/lib/date-picker/DatePicker.js +469 -0
- package/lib/date-picker/DatePickerSfc.css +0 -0
- package/lib/date-picker/DatePickerSfc.less +0 -0
- package/lib/date-picker/date-picker.css +1 -0
- package/lib/date-picker/date-picker.less +334 -0
- package/lib/date-picker/index.js +17 -0
- package/lib/date-picker/props.js +107 -0
- package/lib/date-picker/src/day-picker-panel.js +355 -0
- package/lib/date-picker/src/month-picker-panel.js +289 -0
- package/lib/date-picker/src/panel-header.js +145 -0
- package/lib/date-picker/src/year-picker-panel.js +112 -0
- package/lib/date-picker/style/index.js +5 -0
- package/lib/date-picker/style/less.js +5 -0
- package/lib/dialog/Dialog.js +214 -0
- package/lib/dialog/DialogSfc.css +0 -0
- package/lib/dialog/DialogSfc.less +0 -0
- package/lib/dialog/dialog.css +1 -0
- package/lib/dialog/dialog.less +77 -0
- package/lib/dialog/index.js +85 -0
- package/lib/dialog/props.js +73 -0
- package/lib/dialog/style/index.js +5 -0
- package/lib/dialog/style/less.js +5 -0
- package/lib/divider/Divider.js +88 -0
- package/lib/divider/DividerSfc.css +0 -0
- package/lib/divider/DividerSfc.less +0 -0
- package/lib/divider/divider.css +1 -0
- package/lib/divider/divider.less +79 -0
- package/lib/divider/index.js +17 -0
- package/lib/divider/props.js +25 -0
- package/lib/divider/style/index.js +3 -0
- package/lib/divider/style/less.js +3 -0
- package/lib/form/Form.js +77 -0
- package/lib/form/FormSfc.css +0 -0
- package/lib/form/FormSfc.less +0 -0
- package/lib/form/index.js +17 -0
- package/lib/form/props.js +15 -0
- package/lib/form/provide.js +33 -0
- package/lib/form/style/index.js +2 -0
- package/lib/form/style/less.js +2 -0
- package/lib/form-details/FormDetails.js +45 -0
- package/lib/form-details/FormDetailsSfc.css +0 -0
- package/lib/form-details/FormDetailsSfc.less +0 -0
- package/lib/form-details/formDetails.css +1 -0
- package/lib/form-details/formDetails.less +48 -0
- package/lib/form-details/index.js +17 -0
- package/lib/form-details/props.js +15 -0
- package/lib/form-details/style/index.js +3 -0
- package/lib/form-details/style/less.js +3 -0
- package/lib/icon/Icon.js +83 -0
- package/lib/icon/IconSfc.css +0 -0
- package/lib/icon/IconSfc.less +0 -0
- package/lib/icon/icon.css +1 -0
- package/lib/icon/icon.less +25 -0
- package/lib/icon/index.js +17 -0
- package/lib/icon/props.js +27 -0
- package/lib/icon/style/index.js +3 -0
- package/lib/icon/style/less.js +3 -0
- package/lib/image/Image.js +113 -0
- package/lib/image/ImageSfc.css +0 -0
- package/lib/image/ImageSfc.less +0 -0
- package/lib/image/image.css +1 -0
- package/lib/image/image.less +9 -0
- package/lib/image/index.js +17 -0
- package/lib/image/props.js +60 -0
- package/lib/image/style/index.js +4 -0
- package/lib/image/style/less.js +4 -0
- package/lib/image-preview/ImagePreview.js +369 -0
- package/lib/image-preview/ImagePreviewSfc.css +0 -0
- package/lib/image-preview/ImagePreviewSfc.less +0 -0
- package/lib/image-preview/imagePreview.css +1 -0
- package/lib/image-preview/imagePreview.less +66 -0
- package/lib/image-preview/index.js +74 -0
- package/lib/image-preview/props.js +40 -0
- package/lib/image-preview/style/index.js +7 -0
- package/lib/image-preview/style/less.js +7 -0
- package/lib/index-anchor/IndexAnchor.js +99 -0
- package/lib/index-anchor/IndexAnchorSfc.css +1 -0
- package/lib/index-anchor/IndexAnchorSfc.less +1 -0
- package/lib/index-anchor/index.js +17 -0
- package/lib/index-anchor/props.js +10 -0
- package/lib/index-anchor/provide.js +28 -0
- package/lib/index-anchor/style/index.js +3 -0
- package/lib/index-anchor/style/less.js +3 -0
- package/lib/index-bar/IndexBar.js +186 -0
- package/lib/index-bar/IndexBarSfc.css +0 -0
- package/lib/index-bar/IndexBarSfc.less +0 -0
- package/lib/index-bar/index.js +17 -0
- package/lib/index-bar/indexBar.css +1 -0
- package/lib/index-bar/indexBar.less +43 -0
- package/lib/index-bar/props.js +40 -0
- package/lib/index-bar/provide.js +27 -0
- package/lib/index-bar/style/index.js +3 -0
- package/lib/index-bar/style/less.js +3 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +195 -0
- package/lib/input/Input.js +327 -0
- package/lib/input/InputSfc.css +0 -0
- package/lib/input/InputSfc.less +0 -0
- package/lib/input/index.js +17 -0
- package/lib/input/input.css +1 -0
- package/lib/input/input.less +183 -0
- package/lib/input/props.js +96 -0
- package/lib/input/provide.js +3 -0
- package/lib/input/style/index.js +5 -0
- package/lib/input/style/less.js +5 -0
- package/lib/lazy/index.js +247 -0
- package/lib/lazy/style/index.js +0 -0
- package/lib/lazy/style/less.js +0 -0
- package/lib/less.js +62 -0
- package/lib/list/List.js +157 -0
- package/lib/list/ListSfc.css +0 -0
- package/lib/list/ListSfc.less +0 -0
- package/lib/list/index.js +17 -0
- package/lib/list/list.css +1 -0
- package/lib/list/list.less +63 -0
- package/lib/list/props.js +45 -0
- package/lib/list/style/index.js +5 -0
- package/lib/list/style/less.js +5 -0
- package/lib/loading/Loading.js +103 -0
- package/lib/loading/LoadingSfc.css +0 -0
- package/lib/loading/LoadingSfc.less +0 -0
- package/lib/loading/index.js +17 -0
- package/lib/loading/loading.css +1 -0
- package/lib/loading/loading.less +420 -0
- package/lib/loading/props.js +38 -0
- package/lib/loading/style/index.js +3 -0
- package/lib/loading/style/less.js +3 -0
- package/lib/locale/en-US.js +107 -0
- package/lib/locale/index.js +83 -0
- package/lib/locale/style/index.js +0 -0
- package/lib/locale/style/less.js +0 -0
- package/lib/locale/zh-CN.js +107 -0
- package/lib/menu/Menu.js +144 -0
- package/lib/menu/MenuSfc.css +0 -0
- package/lib/menu/MenuSfc.less +0 -0
- package/lib/menu/index.js +17 -0
- package/lib/menu/menu.css +1 -0
- package/lib/menu/menu.less +21 -0
- package/lib/menu/props.js +48 -0
- package/lib/menu/style/index.js +4 -0
- package/lib/menu/style/less.js +4 -0
- package/lib/option/Option.js +125 -0
- package/lib/option/OptionSfc.css +0 -0
- package/lib/option/OptionSfc.less +0 -0
- package/lib/option/index.js +17 -0
- package/lib/option/option.css +1 -0
- package/lib/option/option.less +37 -0
- package/lib/option/props.js +9 -0
- package/lib/option/provide.js +28 -0
- package/lib/option/style/index.js +6 -0
- package/lib/option/style/less.js +6 -0
- package/lib/pagination/Pagination.js +373 -0
- package/lib/pagination/PaginationSfc.css +0 -0
- package/lib/pagination/PaginationSfc.less +0 -0
- package/lib/pagination/index.js +17 -0
- package/lib/pagination/pagination.css +1 -0
- package/lib/pagination/pagination.less +178 -0
- package/lib/pagination/porps.js +48 -0
- package/lib/pagination/style/index.js +8 -0
- package/lib/pagination/style/less.js +8 -0
- package/lib/picker/Picker.js +446 -0
- package/lib/picker/PickerSfc.css +0 -0
- package/lib/picker/PickerSfc.less +0 -0
- package/lib/picker/index.js +98 -0
- package/lib/picker/picker.css +1 -0
- package/lib/picker/picker.less +103 -0
- package/lib/picker/props.js +68 -0
- package/lib/picker/style/index.js +5 -0
- package/lib/picker/style/less.js +5 -0
- package/lib/popup/Popup.js +141 -0
- package/lib/popup/index.js +17 -0
- package/lib/popup/popup.css +1 -0
- package/lib/popup/popup.less +125 -0
- package/lib/popup/props.js +67 -0
- package/lib/popup/style/index.js +2 -0
- package/lib/popup/style/less.js +2 -0
- package/lib/progress/Progress.js +154 -0
- package/lib/progress/ProgressSfc.css +0 -0
- package/lib/progress/ProgressSfc.less +0 -0
- package/lib/progress/index.js +17 -0
- package/lib/progress/progress.css +1 -0
- package/lib/progress/progress.less +98 -0
- package/lib/progress/props.js +61 -0
- package/lib/progress/style/index.js +3 -0
- package/lib/progress/style/less.js +3 -0
- package/lib/pull-refresh/PullRefresh.js +150 -0
- package/lib/pull-refresh/PullRefreshSfc.css +0 -0
- package/lib/pull-refresh/PullRefreshSfc.less +0 -0
- package/lib/pull-refresh/index.js +17 -0
- package/lib/pull-refresh/props.js +47 -0
- package/lib/pull-refresh/pullRefresh.css +1 -0
- package/lib/pull-refresh/pullRefresh.less +55 -0
- package/lib/pull-refresh/style/index.js +5 -0
- package/lib/pull-refresh/style/less.js +5 -0
- package/lib/radio/Radio.js +231 -0
- package/lib/radio/RadioSfc.css +0 -0
- package/lib/radio/RadioSfc.less +0 -0
- package/lib/radio/index.js +17 -0
- package/lib/radio/props.js +56 -0
- package/lib/radio/provide.js +23 -0
- package/lib/radio/radio.css +1 -0
- package/lib/radio/radio.less +78 -0
- package/lib/radio/style/index.js +6 -0
- package/lib/radio/style/less.js +6 -0
- package/lib/radio-group/RadioGroup.js +122 -0
- package/lib/radio-group/RadioGroupSfc.css +0 -0
- package/lib/radio-group/RadioGroupSfc.less +0 -0
- package/lib/radio-group/index.js +17 -0
- package/lib/radio-group/props.js +35 -0
- package/lib/radio-group/provide.js +27 -0
- package/lib/radio-group/radioGroup.css +1 -0
- package/lib/radio-group/radioGroup.less +12 -0
- package/lib/radio-group/style/index.js +4 -0
- package/lib/radio-group/style/less.js +4 -0
- package/lib/rate/Rate.js +235 -0
- package/lib/rate/RateSfc.css +0 -0
- package/lib/rate/RateSfc.less +0 -0
- package/lib/rate/index.js +17 -0
- package/lib/rate/props.js +69 -0
- package/lib/rate/provide.js +3 -0
- package/lib/rate/rate.css +1 -0
- package/lib/rate/rate.less +35 -0
- package/lib/rate/style/index.js +6 -0
- package/lib/rate/style/less.js +6 -0
- package/lib/ripple/index.js +187 -0
- package/lib/ripple/ripple.css +1 -0
- package/lib/ripple/ripple.less +17 -0
- package/lib/ripple/style/index.js +2 -0
- package/lib/ripple/style/less.js +2 -0
- package/lib/row/Row.js +102 -0
- package/lib/row/RowSfc.css +0 -0
- package/lib/row/RowSfc.less +0 -0
- package/lib/row/index.js +17 -0
- package/lib/row/props.js +33 -0
- package/lib/row/provide.js +27 -0
- package/lib/row/row.css +1 -0
- package/lib/row/row.less +4 -0
- package/lib/row/style/index.js +3 -0
- package/lib/row/style/less.js +3 -0
- package/lib/select/Select.js +492 -0
- package/lib/select/SelectSfc.css +0 -0
- package/lib/select/SelectSfc.less +0 -0
- package/lib/select/index.js +17 -0
- package/lib/select/props.js +93 -0
- package/lib/select/provide.js +27 -0
- package/lib/select/select.css +1 -0
- package/lib/select/select.less +181 -0
- package/lib/select/style/index.js +7 -0
- package/lib/select/style/less.js +7 -0
- package/lib/skeleton/Skeleton.js +134 -0
- package/lib/skeleton/SkeletonSfc.css +0 -0
- package/lib/skeleton/SkeletonSfc.less +0 -0
- package/lib/skeleton/index.js +17 -0
- package/lib/skeleton/props.js +44 -0
- package/lib/skeleton/skeleton.css +1 -0
- package/lib/skeleton/skeleton.less +138 -0
- package/lib/skeleton/style/index.js +3 -0
- package/lib/skeleton/style/less.js +3 -0
- package/lib/slider/Slider.js +386 -0
- package/lib/slider/SliderSfc.css +0 -0
- package/lib/slider/SliderSfc.less +0 -0
- package/lib/slider/index.js +17 -0
- package/lib/slider/props.js +77 -0
- package/lib/slider/provide.js +3 -0
- package/lib/slider/slider.css +1 -0
- package/lib/slider/slider.less +146 -0
- package/lib/slider/style/index.js +4 -0
- package/lib/slider/style/less.js +4 -0
- package/lib/snackbar/Snackbar.js +70 -0
- package/lib/snackbar/SnackbarSfc.css +0 -0
- package/lib/snackbar/SnackbarSfc.less +0 -0
- package/lib/snackbar/core.js +146 -0
- package/lib/snackbar/coreSfc.css +0 -0
- package/lib/snackbar/coreSfc.less +0 -0
- package/lib/snackbar/index.js +232 -0
- package/lib/snackbar/props.js +103 -0
- package/lib/snackbar/snackbar.css +1 -0
- package/lib/snackbar/snackbar.less +135 -0
- package/lib/snackbar/style/index.js +8 -0
- package/lib/snackbar/style/less.js +8 -0
- package/lib/space/Space.js +99 -0
- package/lib/space/index.js +17 -0
- package/lib/space/props.js +49 -0
- package/lib/space/space.css +1 -0
- package/lib/space/space.less +6 -0
- package/lib/space/style/index.js +2 -0
- package/lib/space/style/less.js +2 -0
- package/lib/step/Step.js +156 -0
- package/lib/step/StepSfc.css +0 -0
- package/lib/step/StepSfc.less +0 -0
- package/lib/step/index.js +17 -0
- package/lib/step/props.js +17 -0
- package/lib/step/provide.js +28 -0
- package/lib/step/step.css +1 -0
- package/lib/step/step.less +145 -0
- package/lib/step/style/index.js +4 -0
- package/lib/step/style/less.js +4 -0
- package/lib/steps/Steps.js +56 -0
- package/lib/steps/StepsSfc.css +1 -0
- package/lib/steps/StepsSfc.less +1 -0
- package/lib/steps/index.js +17 -0
- package/lib/steps/props.js +30 -0
- package/lib/steps/provide.js +27 -0
- package/lib/steps/style/index.js +2 -0
- package/lib/steps/style/less.js +2 -0
- package/lib/sticky/Sticky.js +145 -0
- package/lib/sticky/StickySfc.css +0 -0
- package/lib/sticky/StickySfc.less +0 -0
- package/lib/sticky/index.js +17 -0
- package/lib/sticky/props.js +26 -0
- package/lib/sticky/sticky.css +1 -0
- package/lib/sticky/sticky.less +8 -0
- package/lib/sticky/style/index.js +3 -0
- package/lib/sticky/style/less.js +3 -0
- package/lib/style-provider/StyleProvider.js +30 -0
- package/lib/style-provider/StyleProviderSfc.css +0 -0
- package/lib/style-provider/StyleProviderSfc.less +0 -0
- package/lib/style-provider/index.js +37 -0
- package/lib/style-provider/style/index.js +2 -0
- package/lib/style-provider/style/less.js +2 -0
- package/lib/style.css +1 -0
- package/lib/style.js +62 -0
- package/lib/styles/common.css +1 -0
- package/lib/styles/common.less +67 -0
- package/lib/styles/elevation.css +1 -0
- package/lib/styles/elevation.less +126 -0
- package/lib/styles/style/index.js +0 -0
- package/lib/styles/style/less.js +0 -0
- package/lib/styles/var.css +0 -0
- package/lib/styles/var.less +30 -0
- package/lib/swipe/Swipe.js +408 -0
- package/lib/swipe/SwipeSfc.css +0 -0
- package/lib/swipe/SwipeSfc.less +0 -0
- package/lib/swipe/index.js +17 -0
- package/lib/swipe/props.js +40 -0
- package/lib/swipe/provide.js +27 -0
- package/lib/swipe/style/index.js +3 -0
- package/lib/swipe/style/less.js +3 -0
- package/lib/swipe/swipe.css +1 -0
- package/lib/swipe/swipe.less +59 -0
- package/lib/swipe-item/SwipeItem.js +58 -0
- package/lib/swipe-item/SwipeItemSfc.css +0 -0
- package/lib/swipe-item/SwipeItemSfc.less +0 -0
- package/lib/swipe-item/index.js +17 -0
- package/lib/swipe-item/provide.js +28 -0
- package/lib/swipe-item/style/index.js +3 -0
- package/lib/swipe-item/style/less.js +3 -0
- package/lib/swipe-item/swipeItem.css +1 -0
- package/lib/swipe-item/swipeItem.less +5 -0
- package/lib/switch/Switch.js +185 -0
- package/lib/switch/SwitchSfc.css +0 -0
- package/lib/switch/SwitchSfc.less +0 -0
- package/lib/switch/index.js +17 -0
- package/lib/switch/props.js +57 -0
- package/lib/switch/provide.js +3 -0
- package/lib/switch/style/index.js +7 -0
- package/lib/switch/style/less.js +7 -0
- package/lib/switch/switch.css +1 -0
- package/lib/switch/switch.less +80 -0
- package/lib/tab/Tab.js +116 -0
- package/lib/tab/TabSfc.css +0 -0
- package/lib/tab/TabSfc.less +0 -0
- package/lib/tab/index.js +17 -0
- package/lib/tab/props.js +17 -0
- package/lib/tab/provide.js +28 -0
- package/lib/tab/style/index.js +4 -0
- package/lib/tab/style/less.js +4 -0
- package/lib/tab/tab.css +1 -0
- package/lib/tab/tab.less +46 -0
- package/lib/tab-item/TabItem.js +74 -0
- package/lib/tab-item/TabItemSfc.css +0 -0
- package/lib/tab-item/TabItemSfc.less +0 -0
- package/lib/tab-item/index.js +17 -0
- package/lib/tab-item/props.js +10 -0
- package/lib/tab-item/provide.js +28 -0
- package/lib/tab-item/style/index.js +4 -0
- package/lib/tab-item/style/less.js +4 -0
- package/lib/tab-item/tabItem.css +1 -0
- package/lib/tab-item/tabItem.less +6 -0
- package/lib/table/Table.js +53 -0
- package/lib/table/TableSfc.css +0 -0
- package/lib/table/TableSfc.less +0 -0
- package/lib/table/index.js +17 -0
- package/lib/table/style/index.js +4 -0
- package/lib/table/style/less.js +4 -0
- package/lib/table/table.css +1 -0
- package/lib/table/table.less +110 -0
- package/lib/tabs/Tabs.js +208 -0
- package/lib/tabs/TabsSfc.css +0 -0
- package/lib/tabs/TabsSfc.less +0 -0
- package/lib/tabs/index.js +17 -0
- package/lib/tabs/props.js +70 -0
- package/lib/tabs/provide.js +27 -0
- package/lib/tabs/style/index.js +5 -0
- package/lib/tabs/style/less.js +5 -0
- package/lib/tabs/tabs.css +1 -0
- package/lib/tabs/tabs.less +93 -0
- package/lib/tabs-items/TabsItems.js +107 -0
- package/lib/tabs-items/TabsItemsSfc.css +0 -0
- package/lib/tabs-items/TabsItemsSfc.less +0 -0
- package/lib/tabs-items/index.js +17 -0
- package/lib/tabs-items/props.js +22 -0
- package/lib/tabs-items/provide.js +27 -0
- package/lib/tabs-items/style/index.js +3 -0
- package/lib/tabs-items/style/less.js +3 -0
- package/lib/themes/dark/actionSheet.js +10 -0
- package/lib/themes/dark/badge.js +8 -0
- package/lib/themes/dark/button.js +8 -0
- package/lib/themes/dark/card.js +11 -0
- package/lib/themes/dark/cell.js +9 -0
- package/lib/themes/dark/checkbox.js +8 -0
- package/lib/themes/dark/chip.js +8 -0
- package/lib/themes/dark/collapse.js +10 -0
- package/lib/themes/dark/datePicker.js +10 -0
- package/lib/themes/dark/dialog.js +9 -0
- package/lib/themes/dark/divider.js +9 -0
- package/lib/themes/dark/index.d.ts +5 -0
- package/lib/themes/dark/index.js +75 -0
- package/lib/themes/dark/input.js +9 -0
- package/lib/themes/dark/pagination.js +12 -0
- package/lib/themes/dark/picker.js +10 -0
- package/lib/themes/dark/popup.js +8 -0
- package/lib/themes/dark/pullRefresh.js +8 -0
- package/lib/themes/dark/radio.js +8 -0
- package/lib/themes/dark/select.js +10 -0
- package/lib/themes/dark/skeleton.js +11 -0
- package/lib/themes/dark/steps.js +10 -0
- package/lib/themes/dark/switch.js +9 -0
- package/lib/themes/dark/tab-item.js +8 -0
- package/lib/themes/dark/tab.js +8 -0
- package/lib/themes/dark/table.js +12 -0
- package/lib/themes/dark/tabs.js +8 -0
- package/lib/themes/dark/timePicker.js +10 -0
- package/lib/themes/dark/uploader.js +12 -0
- package/lib/themes/style/index.js +0 -0
- package/lib/themes/style/less.js +0 -0
- package/lib/time-picker/TimePicker.js +413 -0
- package/lib/time-picker/TimePickerSfc.css +0 -0
- package/lib/time-picker/TimePickerSfc.less +0 -0
- package/lib/time-picker/clock.js +347 -0
- package/lib/time-picker/index.js +17 -0
- package/lib/time-picker/props.js +59 -0
- package/lib/time-picker/style/index.js +4 -0
- package/lib/time-picker/style/less.js +4 -0
- package/lib/time-picker/timePicker.css +1 -0
- package/lib/time-picker/timePicker.less +236 -0
- package/lib/time-picker/utils.js +148 -0
- package/lib/uploader/Uploader.js +433 -0
- package/lib/uploader/UploaderSfc.css +0 -0
- package/lib/uploader/UploaderSfc.less +0 -0
- package/lib/uploader/index.js +17 -0
- package/lib/uploader/props.js +74 -0
- package/lib/uploader/provide.js +3 -0
- package/lib/uploader/style/index.js +8 -0
- package/lib/uploader/style/less.js +8 -0
- package/lib/uploader/uploader.css +1 -0
- package/lib/uploader/uploader.less +219 -0
- package/lib/utils/components.js +285 -0
- package/lib/utils/elements.js +261 -0
- package/lib/utils/jest.js +252 -0
- package/lib/utils/shared.js +214 -0
- package/lib/utils/style/index.js +0 -0
- package/lib/utils/style/less.js +0 -0
- package/package.json +5 -3
- package/umd/varlet.js +4 -3
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.render = render;
|
|
5
|
+
exports.default = void 0;
|
|
6
|
+
|
|
7
|
+
var _vue = require("vue");
|
|
8
|
+
|
|
9
|
+
var _props = require("./props");
|
|
10
|
+
|
|
11
|
+
var _shared = require("../utils/shared");
|
|
12
|
+
|
|
13
|
+
var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
|
|
14
|
+
|
|
15
|
+
var _hoisted_1 = {
|
|
16
|
+
class: "var--box var-loading"
|
|
17
|
+
};
|
|
18
|
+
var _hoisted_2 = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "var-loading__circle"
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var _hoisted_3 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/(0, _vue.createElementVNode)("svg", {
|
|
24
|
+
viewBox: "25 25 50 50"
|
|
25
|
+
}, [/*#__PURE__*/(0, _vue.createElementVNode)("circle", {
|
|
26
|
+
cx: "50",
|
|
27
|
+
cy: "50",
|
|
28
|
+
r: "20",
|
|
29
|
+
fill: "none"
|
|
30
|
+
})], -1
|
|
31
|
+
/* HOISTED */
|
|
32
|
+
));
|
|
33
|
+
|
|
34
|
+
var _hoisted_4 = [_hoisted_3];
|
|
35
|
+
|
|
36
|
+
function render(_ctx, _cache) {
|
|
37
|
+
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_1, [_ctx.type === 'circle' ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_2, [(0, _vue.createElementVNode)("span", {
|
|
38
|
+
class: "var-loading__circle-block",
|
|
39
|
+
style: (0, _vue.normalizeStyle)({
|
|
40
|
+
width: _ctx.getRadius * 2 + 'px',
|
|
41
|
+
height: _ctx.getRadius * 2 + 'px',
|
|
42
|
+
color: _ctx.color
|
|
43
|
+
})
|
|
44
|
+
}, _hoisted_4, 4
|
|
45
|
+
/* STYLE */
|
|
46
|
+
)])) : (0, _vue.createCommentVNode)("v-if", true), ((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, null, (0, _vue.renderList)(_ctx.loadingTypeDict, (nums, key) => {
|
|
47
|
+
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)(_vue.Fragment, {
|
|
48
|
+
key: key
|
|
49
|
+
}, [_ctx.type === key ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: (0, _vue.normalizeClass)("var-loading__" + key + " var-loading__" + key + "-" + _ctx.size)
|
|
52
|
+
}, [((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, null, (0, _vue.renderList)(nums, num => {
|
|
53
|
+
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
54
|
+
key: num + key,
|
|
55
|
+
style: (0, _vue.normalizeStyle)({
|
|
56
|
+
backgroundColor: _ctx.color
|
|
57
|
+
}),
|
|
58
|
+
class: (0, _vue.normalizeClass)("var-loading__" + key + "-item var-loading__" + key + "-item-" + _ctx.size)
|
|
59
|
+
}, null, 6
|
|
60
|
+
/* CLASS, STYLE */
|
|
61
|
+
);
|
|
62
|
+
}), 128
|
|
63
|
+
/* KEYED_FRAGMENT */
|
|
64
|
+
))], 2
|
|
65
|
+
/* CLASS */
|
|
66
|
+
)) : (0, _vue.createCommentVNode)("v-if", true)], 64
|
|
67
|
+
/* STABLE_FRAGMENT */
|
|
68
|
+
);
|
|
69
|
+
}), 128
|
|
70
|
+
/* KEYED_FRAGMENT */
|
|
71
|
+
))]);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var _default = (0, _vue.defineComponent)({
|
|
75
|
+
render,
|
|
76
|
+
name: 'VarLoading',
|
|
77
|
+
props: _props.props,
|
|
78
|
+
|
|
79
|
+
setup(props) {
|
|
80
|
+
var loadingTypeDict = {
|
|
81
|
+
wave: 5,
|
|
82
|
+
cube: 4,
|
|
83
|
+
rect: 8,
|
|
84
|
+
disappear: 3
|
|
85
|
+
};
|
|
86
|
+
var sizeDict = {
|
|
87
|
+
mini: 9,
|
|
88
|
+
small: 12,
|
|
89
|
+
normal: 15,
|
|
90
|
+
large: 18
|
|
91
|
+
};
|
|
92
|
+
var getRadius = (0, _vue.computed)(() => {
|
|
93
|
+
return props.radius ? (0, _shared.toNumber)(props.radius) : sizeDict[props.size];
|
|
94
|
+
});
|
|
95
|
+
return {
|
|
96
|
+
loadingTypeDict,
|
|
97
|
+
getRadius
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
exports.default = _default;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports._LoadingComponent = void 0;
|
|
5
|
+
|
|
6
|
+
var _Loading = _interopRequireDefault(require("./Loading.js"));
|
|
7
|
+
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
|
|
10
|
+
_Loading.default.install = function (app) {
|
|
11
|
+
app.component(_Loading.default.name, _Loading.default);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
var _LoadingComponent = _Loading.default;
|
|
15
|
+
exports._LoadingComponent = _LoadingComponent;
|
|
16
|
+
var _default = _Loading.default;
|
|
17
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.var-loading { display: flex; justify-content: center; align-items: center;}.var-loading__circle { display: flex;}.var-loading__circle-block { display: inline-block; animation: circle 1.8s linear infinite;}.var-loading__circle-block svg { display: block; width: 100%; height: 100%;}.var-loading__circle-block svg circle { animation: circular 1.5s ease-in-out infinite; stroke: currentColor; stroke-width: 3; stroke-linecap: round;}@keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); }}@keyframes circular { 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -40; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -120; }}.var-loading__wave { display: flex; align-items: center; justify-content: center;}.var-loading__wave-large { width: 64px; height: 18px;}.var-loading__wave-normal { width: 50px; height: 16px;}.var-loading__wave-small { width: 36px; height: 14px;}.var-loading__wave-mini { width: 22px; height: 12px;}.var-loading__wave-item { height: 100%; display: inline-block; animation: 1.2s ease-in-out infinite wave;}.var-loading__wave-item:nth-child(1) { animation-delay: -1.2s; margin-left: 0;}.var-loading__wave-item:nth-child(2) { animation-delay: -1.1s;}.var-loading__wave-item:nth-child(3) { animation-delay: -1s;}.var-loading__wave-item:nth-child(4) { animation-delay: -0.9s;}.var-loading__wave-item:nth-child(5) { animation-delay: -0.8s;}.var-loading__wave-item-large { width: 5px; margin-left: 5px;}.var-loading__wave-item-normal { width: 4px; margin-left: 4px;}.var-loading__wave-item-small { width: 3px; margin-left: 3px;}.var-loading__wave-item-mini { width: 2px; margin-left: 2px;}@keyframes wave { 0%, 40%, 100% { transform: scaleY(0.4); } 20% { transform: scaleY(1); }}.var-loading__cube { display: flex; align-items: center;}.var-loading__cube-large { width: 64px; height: 18px;}.var-loading__cube-normal { width: 50px; height: 16px;}.var-loading__cube-small { width: 36px; height: 14px;}.var-loading__cube-mini { width: 22px; height: 12px;}.var-loading__cube-item { display: inline-block; transform-origin: right bottom; animation: 1.5s ease infinite cube;}.var-loading__cube-item:nth-child(1) { animation-delay: 0.2s; margin-left: 0;}.var-loading__cube-item:nth-child(2) { animation-delay: 0.4s;}.var-loading__cube-item:nth-child(3) { animation-delay: 0.6s;}.var-loading__cube-item:nth-child(4) { animation-delay: 0.8s;}.var-loading__cube-item-large { height: 10px; width: 10px; margin-left: 5px;}.var-loading__cube-item-normal { height: 8px; width: 8px; margin-left: 4px;}.var-loading__cube-item-small { height: 6px; width: 6px; margin-left: 3px;}.var-loading__cube-item-mini { height: 4px; width: 4px; margin-left: 2px;}@keyframes cube { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: rotate(90deg) scale(0.3); }}.var-loading__rect { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center;}.var-loading__rect-large { width: 64px; height: 18px;}.var-loading__rect-normal { width: 50px; height: 16px;}.var-loading__rect-small { width: 36px; height: 14px;}.var-loading__rect-mini { width: 22px; height: 12px;}.var-loading__rect-item { animation: 2s ease-in-out infinite rect;}.var-loading__rect-item:nth-child(1) { animation-delay: 1.75s;}.var-loading__rect-item:nth-child(2) { animation-delay: 1.5s;}.var-loading__rect-item:nth-child(3) { animation-delay: 1.25s;}.var-loading__rect-item:nth-child(4) { animation-delay: 1s;}.var-loading__rect-item:nth-child(5) { animation-delay: 0.75s;}.var-loading__rect-item:nth-child(6) { animation-delay: 0.5s;}.var-loading__rect-item:nth-child(7) { animation-delay: 0.25s;}.var-loading__rect-item:nth-child(8) { animation-delay: 0s;}.var-loading__rect-item-large { height: 100%; width: 8px;}.var-loading__rect-item-normal { height: 90%; width: 6.4px;}.var-loading__rect-item-small { height: 80%; width: 4.8px;}.var-loading__rect-item-mini { height: 70%; width: 3.2px;}@keyframes rect { 0% { opacity: 0.3; } 25% { opacity: 1; } 50% { opacity: 0.3; } 65% { opacity: 1; } 100% { opacity: 0.3; }}.var-loading__disappear { display: flex; justify-content: space-around; align-items: center; flex-flow: nowrap;}.var-loading__disappear-large { width: 64px; height: 18px;}.var-loading__disappear-normal { width: 50px; height: 16px;}.var-loading__disappear-small { width: 36px; height: 14px;}.var-loading__disappear-mini { width: 22px; height: 12px;}.var-loading__disappear-item { border-radius: 50%; animation: 0.5s ease-in-out infinite alternate disappear;}.var-loading__disappear-item:nth-child(1) { animation-delay: -0.4s;}.var-loading__disappear-item:nth-child(2) { animation-delay: -0.2s;}.var-loading__disappear-item:nth-child(3) { animation-delay: 0s;}.var-loading__disappear-item-large { height: 15px; width: 15px;}.var-loading__disappear-item-normal { height: 12px; width: 12px;}.var-loading__disappear-item-small { height: 9px; width: 9px;}.var-loading__disappear-item-mini { height: 6px; width: 6px;}@keyframes disappear { 0% { opacity: 1; } 100% { opacity: 0; }}
|
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
@import '../styles/var';
|
|
2
|
+
|
|
3
|
+
@loading-normal-width: 50px;
|
|
4
|
+
@loading-normal-height: @font-size-md + 2;
|
|
5
|
+
|
|
6
|
+
@loading-large-width: 64px;
|
|
7
|
+
@loading-large-height: @font-size-lg + 2;
|
|
8
|
+
|
|
9
|
+
@loading-small-width: 36px;
|
|
10
|
+
@loading-small-height: @font-size-sm + 2;
|
|
11
|
+
|
|
12
|
+
@loading-mini-width: 22px;
|
|
13
|
+
@loading-mini-height: @font-size-xs + 2;
|
|
14
|
+
|
|
15
|
+
.var-loading {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
|
|
20
|
+
&__circle {
|
|
21
|
+
display: flex;
|
|
22
|
+
|
|
23
|
+
&-block {
|
|
24
|
+
display: inline-block;
|
|
25
|
+
animation: circle 1.8s linear infinite;
|
|
26
|
+
|
|
27
|
+
svg {
|
|
28
|
+
display: block;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
|
|
32
|
+
circle {
|
|
33
|
+
animation: circular 1.5s ease-in-out infinite;
|
|
34
|
+
stroke: currentColor;
|
|
35
|
+
stroke-width: 3;
|
|
36
|
+
stroke-linecap: round;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@keyframes circle {
|
|
42
|
+
from {
|
|
43
|
+
transform: rotate(0deg);
|
|
44
|
+
}
|
|
45
|
+
to {
|
|
46
|
+
transform: rotate(360deg);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@keyframes circular {
|
|
50
|
+
0% {
|
|
51
|
+
stroke-dasharray: 1, 200;
|
|
52
|
+
stroke-dashoffset: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
50% {
|
|
56
|
+
stroke-dasharray: 90, 150;
|
|
57
|
+
stroke-dashoffset: -40;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
100% {
|
|
61
|
+
stroke-dasharray: 90, 150;
|
|
62
|
+
stroke-dashoffset: -120;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__wave {
|
|
68
|
+
@loading-wave-size-item-width: 5px;
|
|
69
|
+
@loading-wave-size-item-margin: 5px;
|
|
70
|
+
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
|
|
75
|
+
&-large {
|
|
76
|
+
width: @loading-large-width;
|
|
77
|
+
height: @loading-large-height;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-normal {
|
|
81
|
+
width: @loading-normal-width;
|
|
82
|
+
height: @loading-normal-height;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-small {
|
|
86
|
+
width: @loading-small-width;
|
|
87
|
+
height: @loading-small-height;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-mini {
|
|
91
|
+
width: @loading-mini-width;
|
|
92
|
+
height: @loading-mini-height;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&-item {
|
|
96
|
+
height: 100%;
|
|
97
|
+
display: inline-block;
|
|
98
|
+
animation: 1.2s ease-in-out infinite wave;
|
|
99
|
+
|
|
100
|
+
&:nth-child(1) {
|
|
101
|
+
animation-delay: -1.2s;
|
|
102
|
+
margin-left: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:nth-child(2) {
|
|
106
|
+
animation-delay: -1.1s;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:nth-child(3) {
|
|
110
|
+
animation-delay: -1s;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:nth-child(4) {
|
|
114
|
+
animation-delay: -0.9s;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:nth-child(5) {
|
|
118
|
+
animation-delay: -0.8s;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&-item-large {
|
|
123
|
+
width: @loading-wave-size-item-width;
|
|
124
|
+
margin-left: @loading-wave-size-item-margin;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&-item-normal {
|
|
128
|
+
width: @loading-wave-size-item-width - 1;
|
|
129
|
+
margin-left: @loading-wave-size-item-margin - 1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&-item-small {
|
|
133
|
+
width: @loading-wave-size-item-width - 2;
|
|
134
|
+
margin-left: @loading-wave-size-item-margin - 2;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&-item-mini {
|
|
138
|
+
width: @loading-wave-size-item-width - 3;
|
|
139
|
+
margin-left: @loading-wave-size-item-margin - 3;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@keyframes wave {
|
|
143
|
+
0%,
|
|
144
|
+
40%,
|
|
145
|
+
100% {
|
|
146
|
+
transform: scaleY(0.4);
|
|
147
|
+
}
|
|
148
|
+
20% {
|
|
149
|
+
transform: scaleY(1);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&__cube {
|
|
155
|
+
@loading-cube-size-item-width: 10px;
|
|
156
|
+
@loading-cube-size-item-height: 10px;
|
|
157
|
+
@loading-cube-size-item-margin: 5px;
|
|
158
|
+
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
|
|
162
|
+
&-large {
|
|
163
|
+
width: @loading-large-width;
|
|
164
|
+
height: @loading-large-height;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&-normal {
|
|
168
|
+
width: @loading-normal-width;
|
|
169
|
+
height: @loading-normal-height;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&-small {
|
|
173
|
+
width: @loading-small-width;
|
|
174
|
+
height: @loading-small-height;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&-mini {
|
|
178
|
+
width: @loading-mini-width;
|
|
179
|
+
height: @loading-mini-height;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&-item {
|
|
183
|
+
display: inline-block;
|
|
184
|
+
transform-origin: right bottom;
|
|
185
|
+
animation: 1.5s ease infinite cube;
|
|
186
|
+
|
|
187
|
+
&:nth-child(1) {
|
|
188
|
+
animation-delay: 0.2s;
|
|
189
|
+
margin-left: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&:nth-child(2) {
|
|
193
|
+
animation-delay: 0.4s;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&:nth-child(3) {
|
|
197
|
+
animation-delay: 0.6s;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&:nth-child(4) {
|
|
201
|
+
animation-delay: 0.8s;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&-item-large {
|
|
206
|
+
height: @loading-cube-size-item-height;
|
|
207
|
+
width: @loading-cube-size-item-width;
|
|
208
|
+
margin-left: @loading-cube-size-item-margin;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&-item-normal {
|
|
212
|
+
height: @loading-cube-size-item-height - 2;
|
|
213
|
+
width: @loading-cube-size-item-width - 2;
|
|
214
|
+
margin-left: @loading-cube-size-item-margin - 1;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&-item-small {
|
|
218
|
+
height: @loading-cube-size-item-height - 4;
|
|
219
|
+
width: @loading-cube-size-item-width - 4;
|
|
220
|
+
margin-left: @loading-cube-size-item-margin - 2;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&-item-mini {
|
|
224
|
+
height: @loading-cube-size-item-height - 6;
|
|
225
|
+
width: @loading-cube-size-item-width - 6;
|
|
226
|
+
margin-left: @loading-cube-size-item-margin - 3;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@keyframes cube {
|
|
230
|
+
0% {
|
|
231
|
+
opacity: 1;
|
|
232
|
+
transform: scale(1);
|
|
233
|
+
}
|
|
234
|
+
100% {
|
|
235
|
+
opacity: 0;
|
|
236
|
+
transform: rotate(90deg) scale(0.3);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
&__rect {
|
|
242
|
+
@loading-rect-size-item-width: 8px;
|
|
243
|
+
@loading-rect-size-item-height: 100%;
|
|
244
|
+
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-wrap: nowrap;
|
|
247
|
+
justify-content: center;
|
|
248
|
+
align-items: center;
|
|
249
|
+
|
|
250
|
+
&-large {
|
|
251
|
+
width: @loading-large-width;
|
|
252
|
+
height: @loading-large-height;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&-normal {
|
|
256
|
+
width: @loading-normal-width;
|
|
257
|
+
height: @loading-normal-height;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&-small {
|
|
261
|
+
width: @loading-small-width;
|
|
262
|
+
height: @loading-small-height;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&-mini {
|
|
266
|
+
width: @loading-mini-width;
|
|
267
|
+
height: @loading-mini-height;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&-item {
|
|
271
|
+
animation: 2s ease-in-out infinite rect;
|
|
272
|
+
|
|
273
|
+
&:nth-child(1) {
|
|
274
|
+
animation-delay: 1.75s;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&:nth-child(2) {
|
|
278
|
+
animation-delay: 1.5s;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&:nth-child(3) {
|
|
282
|
+
animation-delay: 1.25s;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&:nth-child(4) {
|
|
286
|
+
animation-delay: 1s;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&:nth-child(5) {
|
|
290
|
+
animation-delay: 0.75s;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
&:nth-child(6) {
|
|
294
|
+
animation-delay: 0.5s;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
&:nth-child(7) {
|
|
298
|
+
animation-delay: 0.25s;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
&:nth-child(8) {
|
|
302
|
+
animation-delay: 0s;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&-item-large {
|
|
307
|
+
height: @loading-rect-size-item-height;
|
|
308
|
+
width: @loading-rect-size-item-width;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
&-item-normal {
|
|
312
|
+
height: @loading-rect-size-item-height * 0.9;
|
|
313
|
+
width: @loading-rect-size-item-width * 0.8;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&-item-small {
|
|
317
|
+
height: @loading-rect-size-item-height * 0.8;
|
|
318
|
+
width: @loading-rect-size-item-width * 0.6;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&-item-mini {
|
|
322
|
+
height: @loading-rect-size-item-height * 0.7;
|
|
323
|
+
width: @loading-rect-size-item-width * 0.4;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@keyframes rect {
|
|
327
|
+
0% {
|
|
328
|
+
opacity: 0.3;
|
|
329
|
+
}
|
|
330
|
+
25% {
|
|
331
|
+
opacity: 1;
|
|
332
|
+
}
|
|
333
|
+
50% {
|
|
334
|
+
opacity: 0.3;
|
|
335
|
+
}
|
|
336
|
+
65% {
|
|
337
|
+
opacity: 1;
|
|
338
|
+
}
|
|
339
|
+
100% {
|
|
340
|
+
opacity: 0.3;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&__disappear {
|
|
346
|
+
@loading-disappear-size-item-width: 15px;
|
|
347
|
+
@loading-disappear-size-item-height: 15px;
|
|
348
|
+
|
|
349
|
+
display: flex;
|
|
350
|
+
justify-content: space-around;
|
|
351
|
+
align-items: center;
|
|
352
|
+
flex-flow: nowrap;
|
|
353
|
+
|
|
354
|
+
&-large {
|
|
355
|
+
width: @loading-large-width;
|
|
356
|
+
height: @loading-large-height;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&-normal {
|
|
360
|
+
width: @loading-normal-width;
|
|
361
|
+
height: @loading-normal-height;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
&-small {
|
|
365
|
+
width: @loading-small-width;
|
|
366
|
+
height: @loading-small-height;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
&-mini {
|
|
370
|
+
width: @loading-mini-width;
|
|
371
|
+
height: @loading-mini-height;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
&-item {
|
|
375
|
+
border-radius: 50%;
|
|
376
|
+
animation: 0.5s ease-in-out infinite alternate disappear;
|
|
377
|
+
|
|
378
|
+
&:nth-child(1) {
|
|
379
|
+
animation-delay: -0.4s;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&:nth-child(2) {
|
|
383
|
+
animation-delay: -0.2s;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
&:nth-child(3) {
|
|
387
|
+
animation-delay: 0s;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
&-item-large {
|
|
392
|
+
height: @loading-disappear-size-item-height;
|
|
393
|
+
width: @loading-disappear-size-item-width;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
&-item-normal {
|
|
397
|
+
height: @loading-disappear-size-item-height * 0.8;
|
|
398
|
+
width: @loading-disappear-size-item-width * 0.8;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
&-item-small {
|
|
402
|
+
height: @loading-disappear-size-item-height * 0.6;
|
|
403
|
+
width: @loading-disappear-size-item-width * 0.6;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
&-item-mini {
|
|
407
|
+
height: @loading-disappear-size-item-height * 0.4;
|
|
408
|
+
width: @loading-disappear-size-item-width * 0.4;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@keyframes disappear {
|
|
412
|
+
0% {
|
|
413
|
+
opacity: 1;
|
|
414
|
+
}
|
|
415
|
+
100% {
|
|
416
|
+
opacity: 0;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.typeValidator = typeValidator;
|
|
5
|
+
exports.sizeValidator = sizeValidator;
|
|
6
|
+
exports.props = void 0;
|
|
7
|
+
|
|
8
|
+
function typeValidator(type) {
|
|
9
|
+
return ['circle', 'wave', 'cube', 'rect', 'disappear'].includes(type);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function sizeValidator(size) {
|
|
13
|
+
return ['normal', 'mini', 'small', 'large'].includes(size);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
var props = {
|
|
17
|
+
// loading类型
|
|
18
|
+
type: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: 'circle',
|
|
21
|
+
validator: typeValidator
|
|
22
|
+
},
|
|
23
|
+
radius: {
|
|
24
|
+
type: [String, Number]
|
|
25
|
+
},
|
|
26
|
+
// loading尺寸
|
|
27
|
+
size: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'normal',
|
|
30
|
+
validator: sizeValidator
|
|
31
|
+
},
|
|
32
|
+
// loading颜色
|
|
33
|
+
color: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: 'currentColor'
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.props = props;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _default = {
|
|
6
|
+
// Dialog
|
|
7
|
+
dialogTitle: 'Hint',
|
|
8
|
+
dialogConfirmButtonText: 'Confirm',
|
|
9
|
+
dialogCancelButtonText: 'Cancel',
|
|
10
|
+
// ActionSheet
|
|
11
|
+
actionSheetTitle: 'Select One',
|
|
12
|
+
// List
|
|
13
|
+
listLoadingText: 'Loading',
|
|
14
|
+
listFinishedText: 'No more',
|
|
15
|
+
listErrorText: 'Load fail',
|
|
16
|
+
// Picker
|
|
17
|
+
pickerTitle: 'Pick it',
|
|
18
|
+
pickerConfirmButtonText: 'Confirm',
|
|
19
|
+
pickerCancelButtonText: 'Cancel',
|
|
20
|
+
// date-picker
|
|
21
|
+
datePickerMonthDict: {
|
|
22
|
+
'01': {
|
|
23
|
+
name: 'January',
|
|
24
|
+
abbr: 'JAN'
|
|
25
|
+
},
|
|
26
|
+
'02': {
|
|
27
|
+
name: 'February',
|
|
28
|
+
abbr: 'FEB'
|
|
29
|
+
},
|
|
30
|
+
'03': {
|
|
31
|
+
name: 'March',
|
|
32
|
+
abbr: 'MAR'
|
|
33
|
+
},
|
|
34
|
+
'04': {
|
|
35
|
+
name: 'April',
|
|
36
|
+
abbr: 'APR'
|
|
37
|
+
},
|
|
38
|
+
'05': {
|
|
39
|
+
name: 'May',
|
|
40
|
+
abbr: 'MAY'
|
|
41
|
+
},
|
|
42
|
+
'06': {
|
|
43
|
+
name: 'June',
|
|
44
|
+
abbr: 'JUN'
|
|
45
|
+
},
|
|
46
|
+
'07': {
|
|
47
|
+
name: 'July',
|
|
48
|
+
abbr: 'JUL'
|
|
49
|
+
},
|
|
50
|
+
'08': {
|
|
51
|
+
name: 'August',
|
|
52
|
+
abbr: 'AUG'
|
|
53
|
+
},
|
|
54
|
+
'09': {
|
|
55
|
+
name: 'September',
|
|
56
|
+
abbr: 'SEP'
|
|
57
|
+
},
|
|
58
|
+
'10': {
|
|
59
|
+
name: 'October',
|
|
60
|
+
abbr: 'OCT'
|
|
61
|
+
},
|
|
62
|
+
'11': {
|
|
63
|
+
name: 'November',
|
|
64
|
+
abbr: 'NOV'
|
|
65
|
+
},
|
|
66
|
+
'12': {
|
|
67
|
+
name: 'December',
|
|
68
|
+
abbr: 'DEC'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
datePickerWeekDict: {
|
|
72
|
+
'0': {
|
|
73
|
+
name: 'Sunday',
|
|
74
|
+
abbr: 'S'
|
|
75
|
+
},
|
|
76
|
+
'1': {
|
|
77
|
+
name: 'Monday',
|
|
78
|
+
abbr: 'M'
|
|
79
|
+
},
|
|
80
|
+
'2': {
|
|
81
|
+
name: 'Tuesday',
|
|
82
|
+
abbr: 'T'
|
|
83
|
+
},
|
|
84
|
+
'3': {
|
|
85
|
+
name: 'Wednesday',
|
|
86
|
+
abbr: 'W'
|
|
87
|
+
},
|
|
88
|
+
'4': {
|
|
89
|
+
name: 'Thursday',
|
|
90
|
+
abbr: 'T'
|
|
91
|
+
},
|
|
92
|
+
'5': {
|
|
93
|
+
name: 'Friday',
|
|
94
|
+
abbr: 'F'
|
|
95
|
+
},
|
|
96
|
+
'6': {
|
|
97
|
+
name: 'Saturday',
|
|
98
|
+
abbr: 'S'
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
datePickerSelected: ' selected',
|
|
102
|
+
// pagination
|
|
103
|
+
paginationItem: '',
|
|
104
|
+
paginationPage: 'page',
|
|
105
|
+
paginationJump: 'Go to'
|
|
106
|
+
};
|
|
107
|
+
exports.default = _default;
|