@varlet/ui 1.23.4-alpha.8 → 1.23.4
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 +11 -0
- package/es/snackbar/style/index.js +1 -1
- package/es/snackbar/style/less.js +1 -1
- package/package.json +3 -5
- package/types/global.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/list.d.ts +21 -0
- package/lib/action-sheet/ActionSheet.js +0 -149
- package/lib/action-sheet/ActionSheetSfc.css +0 -0
- package/lib/action-sheet/ActionSheetSfc.less +0 -0
- package/lib/action-sheet/actionSheet.css +0 -1
- package/lib/action-sheet/actionSheet.less +0 -68
- package/lib/action-sheet/index.js +0 -79
- package/lib/action-sheet/props.js +0 -37
- package/lib/action-sheet/style/index.js +0 -6
- package/lib/action-sheet/style/less.js +0 -6
- package/lib/app-bar/AppBar.js +0 -66
- package/lib/app-bar/AppBarSfc.css +0 -0
- package/lib/app-bar/AppBarSfc.less +0 -0
- package/lib/app-bar/appBar.css +0 -1
- package/lib/app-bar/appBar.less +0 -56
- package/lib/app-bar/index.js +0 -17
- package/lib/app-bar/props.js +0 -32
- package/lib/app-bar/style/index.js +0 -4
- package/lib/app-bar/style/less.js +0 -4
- package/lib/back-top/BackTop.js +0 -96
- package/lib/back-top/BackTopSfc.css +0 -0
- package/lib/back-top/BackTopSfc.less +0 -0
- package/lib/back-top/backTop.css +0 -1
- package/lib/back-top/backTop.less +0 -27
- package/lib/back-top/index.js +0 -17
- package/lib/back-top/props.js +0 -21
- package/lib/back-top/style/index.js +0 -5
- package/lib/back-top/style/less.js +0 -5
- package/lib/badge/Badge.js +0 -107
- package/lib/badge/BadgeSfc.css +0 -0
- package/lib/badge/BadgeSfc.less +0 -0
- package/lib/badge/badge.css +0 -1
- package/lib/badge/badge.less +0 -119
- package/lib/badge/index.js +0 -17
- package/lib/badge/props.js +0 -55
- package/lib/badge/style/index.js +0 -4
- package/lib/badge/style/less.js +0 -4
- package/lib/button/Button.js +0 -102
- package/lib/button/ButtonSfc.css +0 -0
- package/lib/button/ButtonSfc.less +0 -0
- package/lib/button/button.css +0 -1
- package/lib/button/button.less +0 -183
- package/lib/button/index.js +0 -17
- package/lib/button/props.js +0 -76
- package/lib/button/style/index.js +0 -6
- package/lib/button/style/less.js +0 -6
- package/lib/card/Card.js +0 -83
- package/lib/card/CardSfc.css +0 -0
- package/lib/card/CardSfc.less +0 -0
- package/lib/card/card.css +0 -1
- package/lib/card/card.less +0 -84
- package/lib/card/index.js +0 -17
- package/lib/card/props.js +0 -45
- package/lib/card/style/index.js +0 -5
- package/lib/card/style/less.js +0 -5
- package/lib/cell/Cell.js +0 -68
- package/lib/cell/CellSfc.css +0 -0
- package/lib/cell/CellSfc.less +0 -0
- package/lib/cell/cell.css +0 -1
- package/lib/cell/cell.less +0 -74
- package/lib/cell/index.js +0 -17
- package/lib/cell/props.js +0 -32
- package/lib/cell/style/index.js +0 -4
- package/lib/cell/style/less.js +0 -4
- package/lib/checkbox/Checkbox.js +0 -232
- package/lib/checkbox/CheckboxSfc.css +0 -0
- package/lib/checkbox/CheckboxSfc.less +0 -0
- package/lib/checkbox/checkbox.css +0 -1
- package/lib/checkbox/checkbox.less +0 -78
- package/lib/checkbox/index.js +0 -17
- package/lib/checkbox/props.js +0 -56
- package/lib/checkbox/provide.js +0 -23
- package/lib/checkbox/style/index.js +0 -5
- package/lib/checkbox/style/less.js +0 -5
- package/lib/checkbox-group/CheckboxGroup.js +0 -181
- package/lib/checkbox-group/CheckboxGroupSfc.css +0 -0
- package/lib/checkbox-group/CheckboxGroupSfc.less +0 -0
- package/lib/checkbox-group/checkboxGroup.css +0 -1
- package/lib/checkbox-group/checkboxGroup.less +0 -12
- package/lib/checkbox-group/index.js +0 -17
- package/lib/checkbox-group/props.js +0 -38
- package/lib/checkbox-group/provide.js +0 -27
- package/lib/checkbox-group/style/index.js +0 -4
- package/lib/checkbox-group/style/less.js +0 -4
- package/lib/chip/Chip.js +0 -95
- package/lib/chip/ChipSfc.css +0 -0
- package/lib/chip/ChipSfc.less +0 -0
- package/lib/chip/chip.css +0 -1
- package/lib/chip/chip.less +0 -182
- package/lib/chip/index.js +0 -17
- package/lib/chip/props.js +0 -56
- package/lib/chip/style/index.js +0 -4
- package/lib/chip/style/less.js +0 -4
- package/lib/col/Col.js +0 -68
- package/lib/col/ColSfc.css +0 -0
- package/lib/col/ColSfc.less +0 -0
- package/lib/col/col.css +0 -1
- package/lib/col/col.less +0 -17
- package/lib/col/index.js +0 -17
- package/lib/col/props.js +0 -18
- package/lib/col/provide.js +0 -28
- package/lib/col/style/index.js +0 -3
- package/lib/col/style/less.js +0 -3
- package/lib/collapse/Collapse.js +0 -126
- package/lib/collapse/CollapseSfc.css +0 -1
- package/lib/collapse/CollapseSfc.less +0 -1
- package/lib/collapse/index.js +0 -17
- package/lib/collapse/props.js +0 -24
- package/lib/collapse/provide.js +0 -27
- package/lib/collapse/style/index.js +0 -3
- package/lib/collapse/style/less.js +0 -3
- package/lib/collapse-item/CollapseItem.js +0 -155
- package/lib/collapse-item/CollapseItemSfc.css +0 -0
- package/lib/collapse-item/CollapseItemSfc.less +0 -0
- package/lib/collapse-item/collapseItem.css +0 -1
- package/lib/collapse-item/collapseItem.less +0 -105
- package/lib/collapse-item/index.js +0 -17
- package/lib/collapse-item/props.js +0 -21
- package/lib/collapse-item/provide.js +0 -28
- package/lib/collapse-item/style/index.js +0 -4
- package/lib/collapse-item/style/less.js +0 -4
- package/lib/context/index.js +0 -20
- package/lib/context/lock.js +0 -107
- package/lib/context/style/index.js +0 -0
- package/lib/context/style/less.js +0 -0
- package/lib/context/zIndex.js +0 -25
- package/lib/countdown/Countdown.js +0 -119
- package/lib/countdown/CountdownSfc.css +0 -0
- package/lib/countdown/CountdownSfc.less +0 -0
- package/lib/countdown/index.js +0 -17
- package/lib/countdown/props.js +0 -25
- package/lib/countdown/style/index.js +0 -2
- package/lib/countdown/style/less.js +0 -2
- package/lib/counter/Counter.js +0 -387
- package/lib/counter/CounterSfc.css +0 -0
- package/lib/counter/CounterSfc.less +0 -0
- package/lib/counter/counter.css +0 -1
- package/lib/counter/counter.less +0 -85
- package/lib/counter/index.js +0 -17
- package/lib/counter/props.js +0 -98
- package/lib/counter/provide.js +0 -3
- package/lib/counter/style/index.js +0 -7
- package/lib/counter/style/less.js +0 -7
- package/lib/date-picker/DatePicker.js +0 -469
- package/lib/date-picker/DatePickerSfc.css +0 -0
- package/lib/date-picker/DatePickerSfc.less +0 -0
- package/lib/date-picker/date-picker.css +0 -1
- package/lib/date-picker/date-picker.less +0 -330
- package/lib/date-picker/index.js +0 -17
- package/lib/date-picker/props.js +0 -107
- package/lib/date-picker/src/day-picker-panel.js +0 -355
- package/lib/date-picker/src/month-picker-panel.js +0 -289
- package/lib/date-picker/src/panel-header.js +0 -152
- package/lib/date-picker/src/year-picker-panel.js +0 -112
- package/lib/date-picker/style/index.js +0 -5
- package/lib/date-picker/style/less.js +0 -5
- package/lib/dialog/Dialog.js +0 -214
- package/lib/dialog/DialogSfc.css +0 -0
- package/lib/dialog/DialogSfc.less +0 -0
- package/lib/dialog/dialog.css +0 -1
- package/lib/dialog/dialog.less +0 -77
- package/lib/dialog/index.js +0 -85
- package/lib/dialog/props.js +0 -73
- package/lib/dialog/style/index.js +0 -5
- package/lib/dialog/style/less.js +0 -5
- package/lib/divider/Divider.js +0 -88
- package/lib/divider/DividerSfc.css +0 -0
- package/lib/divider/DividerSfc.less +0 -0
- package/lib/divider/divider.css +0 -1
- package/lib/divider/divider.less +0 -79
- package/lib/divider/index.js +0 -17
- package/lib/divider/props.js +0 -25
- package/lib/divider/style/index.js +0 -3
- package/lib/divider/style/less.js +0 -3
- package/lib/form/Form.js +0 -77
- package/lib/form/FormSfc.css +0 -0
- package/lib/form/FormSfc.less +0 -0
- package/lib/form/index.js +0 -17
- package/lib/form/props.js +0 -15
- package/lib/form/provide.js +0 -33
- package/lib/form/style/index.js +0 -2
- package/lib/form/style/less.js +0 -2
- package/lib/form-details/FormDetails.js +0 -45
- package/lib/form-details/FormDetailsSfc.css +0 -0
- package/lib/form-details/FormDetailsSfc.less +0 -0
- package/lib/form-details/formDetails.css +0 -1
- package/lib/form-details/formDetails.less +0 -48
- package/lib/form-details/index.js +0 -17
- package/lib/form-details/props.js +0 -15
- package/lib/form-details/style/index.js +0 -3
- package/lib/form-details/style/less.js +0 -3
- package/lib/icon/Icon.js +0 -83
- package/lib/icon/IconSfc.css +0 -0
- package/lib/icon/IconSfc.less +0 -0
- package/lib/icon/icon.css +0 -1
- package/lib/icon/icon.less +0 -25
- package/lib/icon/index.js +0 -17
- package/lib/icon/props.js +0 -27
- package/lib/icon/style/index.js +0 -3
- package/lib/icon/style/less.js +0 -3
- package/lib/image/Image.js +0 -113
- package/lib/image/ImageSfc.css +0 -0
- package/lib/image/ImageSfc.less +0 -0
- package/lib/image/image.css +0 -1
- package/lib/image/image.less +0 -9
- package/lib/image/index.js +0 -17
- package/lib/image/props.js +0 -60
- package/lib/image/style/index.js +0 -4
- package/lib/image/style/less.js +0 -4
- package/lib/image-preview/ImagePreview.js +0 -369
- package/lib/image-preview/ImagePreviewSfc.css +0 -0
- package/lib/image-preview/ImagePreviewSfc.less +0 -0
- package/lib/image-preview/imagePreview.css +0 -1
- package/lib/image-preview/imagePreview.less +0 -66
- package/lib/image-preview/index.js +0 -74
- package/lib/image-preview/props.js +0 -40
- package/lib/image-preview/style/index.js +0 -7
- package/lib/image-preview/style/less.js +0 -7
- package/lib/index-anchor/IndexAnchor.js +0 -99
- package/lib/index-anchor/IndexAnchorSfc.css +0 -1
- package/lib/index-anchor/IndexAnchorSfc.less +0 -1
- package/lib/index-anchor/index.js +0 -17
- package/lib/index-anchor/props.js +0 -10
- package/lib/index-anchor/provide.js +0 -28
- package/lib/index-anchor/style/index.js +0 -3
- package/lib/index-anchor/style/less.js +0 -3
- package/lib/index-bar/IndexBar.js +0 -186
- package/lib/index-bar/IndexBarSfc.css +0 -0
- package/lib/index-bar/IndexBarSfc.less +0 -0
- package/lib/index-bar/index.js +0 -17
- package/lib/index-bar/indexBar.css +0 -1
- package/lib/index-bar/indexBar.less +0 -43
- package/lib/index-bar/props.js +0 -40
- package/lib/index-bar/provide.js +0 -27
- package/lib/index-bar/style/index.js +0 -3
- package/lib/index-bar/style/less.js +0 -3
- package/lib/index.js +0 -195
- package/lib/input/Input.js +0 -304
- package/lib/input/InputSfc.css +0 -0
- package/lib/input/InputSfc.less +0 -0
- package/lib/input/index.js +0 -17
- package/lib/input/input.css +0 -1
- package/lib/input/input.less +0 -183
- package/lib/input/props.js +0 -96
- package/lib/input/provide.js +0 -3
- package/lib/input/style/index.js +0 -5
- package/lib/input/style/less.js +0 -5
- package/lib/lazy/index.js +0 -247
- package/lib/lazy/style/index.js +0 -0
- package/lib/lazy/style/less.js +0 -0
- package/lib/less.js +0 -62
- package/lib/list/List.js +0 -157
- package/lib/list/ListSfc.css +0 -0
- package/lib/list/ListSfc.less +0 -0
- package/lib/list/index.js +0 -17
- package/lib/list/list.css +0 -1
- package/lib/list/list.less +0 -63
- package/lib/list/props.js +0 -45
- package/lib/list/style/index.js +0 -5
- package/lib/list/style/less.js +0 -5
- package/lib/loading/Loading.js +0 -93
- package/lib/loading/LoadingSfc.css +0 -0
- package/lib/loading/LoadingSfc.less +0 -0
- package/lib/loading/index.js +0 -17
- package/lib/loading/loading.css +0 -1
- package/lib/loading/loading.less +0 -420
- package/lib/loading/props.js +0 -39
- package/lib/loading/style/index.js +0 -3
- package/lib/loading/style/less.js +0 -3
- package/lib/locale/en-US.js +0 -107
- package/lib/locale/index.js +0 -83
- package/lib/locale/style/index.js +0 -0
- package/lib/locale/style/less.js +0 -0
- package/lib/locale/zh-CN.js +0 -107
- package/lib/menu/Menu.js +0 -144
- package/lib/menu/MenuSfc.css +0 -0
- package/lib/menu/MenuSfc.less +0 -0
- package/lib/menu/index.js +0 -17
- package/lib/menu/menu.css +0 -1
- package/lib/menu/menu.less +0 -21
- package/lib/menu/props.js +0 -48
- package/lib/menu/style/index.js +0 -4
- package/lib/menu/style/less.js +0 -4
- package/lib/option/Option.js +0 -125
- package/lib/option/OptionSfc.css +0 -0
- package/lib/option/OptionSfc.less +0 -0
- package/lib/option/index.js +0 -17
- package/lib/option/option.css +0 -1
- package/lib/option/option.less +0 -37
- package/lib/option/props.js +0 -9
- package/lib/option/provide.js +0 -28
- package/lib/option/style/index.js +0 -6
- package/lib/option/style/less.js +0 -6
- package/lib/pagination/Pagination.js +0 -373
- package/lib/pagination/PaginationSfc.css +0 -0
- package/lib/pagination/PaginationSfc.less +0 -0
- package/lib/pagination/index.js +0 -17
- package/lib/pagination/pagination.css +0 -1
- package/lib/pagination/pagination.less +0 -178
- package/lib/pagination/porps.js +0 -48
- package/lib/pagination/style/index.js +0 -8
- package/lib/pagination/style/less.js +0 -8
- package/lib/picker/Picker.js +0 -446
- package/lib/picker/PickerSfc.css +0 -0
- package/lib/picker/PickerSfc.less +0 -0
- package/lib/picker/index.js +0 -98
- package/lib/picker/picker.css +0 -1
- package/lib/picker/picker.less +0 -103
- package/lib/picker/props.js +0 -68
- package/lib/picker/style/index.js +0 -5
- package/lib/picker/style/less.js +0 -5
- package/lib/popup/Popup.js +0 -121
- package/lib/popup/PopupSfc.css +0 -0
- package/lib/popup/PopupSfc.less +0 -0
- package/lib/popup/index.js +0 -17
- package/lib/popup/popup.css +0 -1
- package/lib/popup/popup.less +0 -125
- package/lib/popup/props.js +0 -67
- package/lib/popup/style/index.js +0 -3
- package/lib/popup/style/less.js +0 -3
- package/lib/progress/Progress.js +0 -154
- package/lib/progress/ProgressSfc.css +0 -0
- package/lib/progress/ProgressSfc.less +0 -0
- package/lib/progress/index.js +0 -17
- package/lib/progress/progress.css +0 -1
- package/lib/progress/progress.less +0 -98
- package/lib/progress/props.js +0 -61
- package/lib/progress/style/index.js +0 -3
- package/lib/progress/style/less.js +0 -3
- package/lib/pull-refresh/PullRefresh.js +0 -150
- package/lib/pull-refresh/PullRefreshSfc.css +0 -0
- package/lib/pull-refresh/PullRefreshSfc.less +0 -0
- package/lib/pull-refresh/index.js +0 -17
- package/lib/pull-refresh/props.js +0 -47
- package/lib/pull-refresh/pullRefresh.css +0 -1
- package/lib/pull-refresh/pullRefresh.less +0 -55
- package/lib/pull-refresh/style/index.js +0 -5
- package/lib/pull-refresh/style/less.js +0 -5
- package/lib/radio/Radio.js +0 -231
- package/lib/radio/RadioSfc.css +0 -0
- package/lib/radio/RadioSfc.less +0 -0
- package/lib/radio/index.js +0 -17
- package/lib/radio/props.js +0 -56
- package/lib/radio/provide.js +0 -23
- package/lib/radio/radio.css +0 -1
- package/lib/radio/radio.less +0 -78
- package/lib/radio/style/index.js +0 -6
- package/lib/radio/style/less.js +0 -6
- package/lib/radio-group/RadioGroup.js +0 -122
- package/lib/radio-group/RadioGroupSfc.css +0 -0
- package/lib/radio-group/RadioGroupSfc.less +0 -0
- package/lib/radio-group/index.js +0 -17
- package/lib/radio-group/props.js +0 -35
- package/lib/radio-group/provide.js +0 -27
- package/lib/radio-group/radioGroup.css +0 -1
- package/lib/radio-group/radioGroup.less +0 -12
- package/lib/radio-group/style/index.js +0 -4
- package/lib/radio-group/style/less.js +0 -4
- package/lib/rate/Rate.js +0 -235
- package/lib/rate/RateSfc.css +0 -0
- package/lib/rate/RateSfc.less +0 -0
- package/lib/rate/index.js +0 -17
- package/lib/rate/props.js +0 -69
- package/lib/rate/provide.js +0 -3
- package/lib/rate/rate.css +0 -1
- package/lib/rate/rate.less +0 -35
- package/lib/rate/style/index.js +0 -6
- package/lib/rate/style/less.js +0 -6
- package/lib/ripple/index.js +0 -187
- package/lib/ripple/ripple.css +0 -1
- package/lib/ripple/ripple.less +0 -17
- package/lib/ripple/style/index.js +0 -2
- package/lib/ripple/style/less.js +0 -2
- package/lib/row/Row.js +0 -102
- package/lib/row/RowSfc.css +0 -0
- package/lib/row/RowSfc.less +0 -0
- package/lib/row/index.js +0 -17
- package/lib/row/props.js +0 -33
- package/lib/row/provide.js +0 -27
- package/lib/row/row.css +0 -1
- package/lib/row/row.less +0 -4
- package/lib/row/style/index.js +0 -3
- package/lib/row/style/less.js +0 -3
- package/lib/select/Select.js +0 -492
- package/lib/select/SelectSfc.css +0 -0
- package/lib/select/SelectSfc.less +0 -0
- package/lib/select/index.js +0 -17
- package/lib/select/props.js +0 -93
- package/lib/select/provide.js +0 -27
- package/lib/select/select.css +0 -1
- package/lib/select/select.less +0 -181
- package/lib/select/style/index.js +0 -7
- package/lib/select/style/less.js +0 -7
- package/lib/skeleton/Skeleton.js +0 -134
- package/lib/skeleton/SkeletonSfc.css +0 -0
- package/lib/skeleton/SkeletonSfc.less +0 -0
- package/lib/skeleton/index.js +0 -17
- package/lib/skeleton/props.js +0 -44
- package/lib/skeleton/skeleton.css +0 -1
- package/lib/skeleton/skeleton.less +0 -138
- package/lib/skeleton/style/index.js +0 -3
- package/lib/skeleton/style/less.js +0 -3
- package/lib/slider/Slider.js +0 -386
- package/lib/slider/SliderSfc.css +0 -0
- package/lib/slider/SliderSfc.less +0 -0
- package/lib/slider/index.js +0 -17
- package/lib/slider/props.js +0 -77
- package/lib/slider/provide.js +0 -3
- package/lib/slider/slider.css +0 -1
- package/lib/slider/slider.less +0 -146
- package/lib/slider/style/index.js +0 -4
- package/lib/slider/style/less.js +0 -4
- package/lib/snackbar/Snackbar.js +0 -70
- package/lib/snackbar/SnackbarSfc.css +0 -0
- package/lib/snackbar/SnackbarSfc.less +0 -0
- package/lib/snackbar/core.js +0 -146
- package/lib/snackbar/coreSfc.css +0 -0
- package/lib/snackbar/coreSfc.less +0 -0
- package/lib/snackbar/index.js +0 -232
- package/lib/snackbar/props.js +0 -103
- package/lib/snackbar/snackbar.css +0 -1
- package/lib/snackbar/snackbar.less +0 -135
- package/lib/snackbar/style/index.js +0 -8
- package/lib/snackbar/style/less.js +0 -8
- package/lib/space/Space.js +0 -99
- package/lib/space/index.js +0 -17
- package/lib/space/props.js +0 -49
- package/lib/space/space.css +0 -1
- package/lib/space/space.less +0 -6
- package/lib/space/style/index.js +0 -2
- package/lib/space/style/less.js +0 -2
- package/lib/step/Step.js +0 -156
- package/lib/step/StepSfc.css +0 -0
- package/lib/step/StepSfc.less +0 -0
- package/lib/step/index.js +0 -17
- package/lib/step/props.js +0 -17
- package/lib/step/provide.js +0 -28
- package/lib/step/step.css +0 -1
- package/lib/step/step.less +0 -145
- package/lib/step/style/index.js +0 -4
- package/lib/step/style/less.js +0 -4
- package/lib/steps/Steps.js +0 -56
- package/lib/steps/StepsSfc.css +0 -1
- package/lib/steps/StepsSfc.less +0 -1
- package/lib/steps/index.js +0 -17
- package/lib/steps/props.js +0 -30
- package/lib/steps/provide.js +0 -27
- package/lib/steps/style/index.js +0 -2
- package/lib/steps/style/less.js +0 -2
- package/lib/sticky/Sticky.js +0 -145
- package/lib/sticky/StickySfc.css +0 -0
- package/lib/sticky/StickySfc.less +0 -0
- package/lib/sticky/index.js +0 -17
- package/lib/sticky/props.js +0 -26
- package/lib/sticky/sticky.css +0 -1
- package/lib/sticky/sticky.less +0 -8
- package/lib/sticky/style/index.js +0 -3
- package/lib/sticky/style/less.js +0 -3
- package/lib/style-provider/StyleProvider.js +0 -30
- package/lib/style-provider/StyleProviderSfc.css +0 -0
- package/lib/style-provider/StyleProviderSfc.less +0 -0
- package/lib/style-provider/index.js +0 -37
- package/lib/style-provider/style/index.js +0 -2
- package/lib/style-provider/style/less.js +0 -2
- package/lib/style.css +0 -1
- package/lib/style.js +0 -62
- package/lib/styles/common.css +0 -1
- package/lib/styles/common.less +0 -67
- package/lib/styles/elevation.css +0 -1
- package/lib/styles/elevation.less +0 -126
- 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 +0 -30
- package/lib/swipe/Swipe.js +0 -408
- package/lib/swipe/SwipeSfc.css +0 -0
- package/lib/swipe/SwipeSfc.less +0 -0
- package/lib/swipe/index.js +0 -17
- package/lib/swipe/props.js +0 -40
- package/lib/swipe/provide.js +0 -27
- package/lib/swipe/style/index.js +0 -3
- package/lib/swipe/style/less.js +0 -3
- package/lib/swipe/swipe.css +0 -1
- package/lib/swipe/swipe.less +0 -59
- package/lib/swipe-item/SwipeItem.js +0 -58
- package/lib/swipe-item/SwipeItemSfc.css +0 -0
- package/lib/swipe-item/SwipeItemSfc.less +0 -0
- package/lib/swipe-item/index.js +0 -17
- package/lib/swipe-item/provide.js +0 -28
- package/lib/swipe-item/style/index.js +0 -3
- package/lib/swipe-item/style/less.js +0 -3
- package/lib/swipe-item/swipeItem.css +0 -1
- package/lib/swipe-item/swipeItem.less +0 -5
- package/lib/switch/Switch.js +0 -185
- package/lib/switch/SwitchSfc.css +0 -0
- package/lib/switch/SwitchSfc.less +0 -0
- package/lib/switch/index.js +0 -17
- package/lib/switch/props.js +0 -57
- package/lib/switch/provide.js +0 -3
- package/lib/switch/style/index.js +0 -7
- package/lib/switch/style/less.js +0 -7
- package/lib/switch/switch.css +0 -1
- package/lib/switch/switch.less +0 -80
- package/lib/tab/Tab.js +0 -116
- package/lib/tab/TabSfc.css +0 -0
- package/lib/tab/TabSfc.less +0 -0
- package/lib/tab/index.js +0 -17
- package/lib/tab/props.js +0 -17
- package/lib/tab/provide.js +0 -28
- package/lib/tab/style/index.js +0 -4
- package/lib/tab/style/less.js +0 -4
- package/lib/tab/tab.css +0 -1
- package/lib/tab/tab.less +0 -46
- package/lib/tab-item/TabItem.js +0 -74
- package/lib/tab-item/TabItemSfc.css +0 -0
- package/lib/tab-item/TabItemSfc.less +0 -0
- package/lib/tab-item/index.js +0 -17
- package/lib/tab-item/props.js +0 -10
- package/lib/tab-item/provide.js +0 -28
- package/lib/tab-item/style/index.js +0 -4
- package/lib/tab-item/style/less.js +0 -4
- package/lib/tab-item/tabItem.css +0 -1
- package/lib/tab-item/tabItem.less +0 -6
- package/lib/table/Table.js +0 -53
- package/lib/table/TableSfc.css +0 -0
- package/lib/table/TableSfc.less +0 -0
- package/lib/table/index.js +0 -17
- package/lib/table/style/index.js +0 -4
- package/lib/table/style/less.js +0 -4
- package/lib/table/table.css +0 -1
- package/lib/table/table.less +0 -110
- package/lib/tabs/Tabs.js +0 -208
- package/lib/tabs/TabsSfc.css +0 -0
- package/lib/tabs/TabsSfc.less +0 -0
- package/lib/tabs/index.js +0 -17
- package/lib/tabs/props.js +0 -70
- package/lib/tabs/provide.js +0 -27
- package/lib/tabs/style/index.js +0 -5
- package/lib/tabs/style/less.js +0 -5
- package/lib/tabs/tabs.css +0 -1
- package/lib/tabs/tabs.less +0 -93
- package/lib/tabs-items/TabsItems.js +0 -107
- package/lib/tabs-items/TabsItemsSfc.css +0 -0
- package/lib/tabs-items/TabsItemsSfc.less +0 -0
- package/lib/tabs-items/index.js +0 -17
- package/lib/tabs-items/props.js +0 -22
- package/lib/tabs-items/provide.js +0 -27
- package/lib/tabs-items/style/index.js +0 -3
- package/lib/tabs-items/style/less.js +0 -3
- package/lib/themes/dark/actionSheet.js +0 -10
- package/lib/themes/dark/badge.js +0 -8
- package/lib/themes/dark/button.js +0 -8
- package/lib/themes/dark/card.js +0 -11
- package/lib/themes/dark/cell.js +0 -9
- package/lib/themes/dark/checkbox.js +0 -8
- package/lib/themes/dark/chip.js +0 -8
- package/lib/themes/dark/collapse.js +0 -10
- package/lib/themes/dark/datePicker.js +0 -10
- package/lib/themes/dark/dialog.js +0 -9
- package/lib/themes/dark/divider.js +0 -9
- package/lib/themes/dark/index.js +0 -75
- package/lib/themes/dark/input.js +0 -9
- package/lib/themes/dark/pagination.js +0 -12
- package/lib/themes/dark/picker.js +0 -10
- package/lib/themes/dark/popup.js +0 -8
- package/lib/themes/dark/pullRefresh.js +0 -8
- package/lib/themes/dark/radio.js +0 -8
- package/lib/themes/dark/select.js +0 -10
- package/lib/themes/dark/skeleton.js +0 -11
- package/lib/themes/dark/steps.js +0 -10
- package/lib/themes/dark/switch.js +0 -9
- package/lib/themes/dark/tab-item.js +0 -8
- package/lib/themes/dark/tab.js +0 -8
- package/lib/themes/dark/table.js +0 -12
- package/lib/themes/dark/tabs.js +0 -8
- package/lib/themes/dark/timePicker.js +0 -10
- package/lib/themes/dark/uploader.js +0 -12
- package/lib/themes/style/index.js +0 -0
- package/lib/themes/style/less.js +0 -0
- package/lib/time-picker/TimePicker.js +0 -413
- package/lib/time-picker/TimePickerSfc.css +0 -0
- package/lib/time-picker/TimePickerSfc.less +0 -0
- package/lib/time-picker/clock.js +0 -347
- package/lib/time-picker/index.js +0 -17
- package/lib/time-picker/props.js +0 -59
- package/lib/time-picker/style/index.js +0 -4
- package/lib/time-picker/style/less.js +0 -4
- package/lib/time-picker/timePicker.css +0 -1
- package/lib/time-picker/timePicker.less +0 -236
- package/lib/time-picker/utils.js +0 -148
- package/lib/uploader/Uploader.js +0 -433
- package/lib/uploader/UploaderSfc.css +0 -0
- package/lib/uploader/UploaderSfc.less +0 -0
- package/lib/uploader/index.js +0 -17
- package/lib/uploader/props.js +0 -74
- package/lib/uploader/provide.js +0 -3
- package/lib/uploader/style/index.js +0 -8
- package/lib/uploader/style/less.js +0 -8
- package/lib/uploader/uploader.css +0 -1
- package/lib/uploader/uploader.less +0 -219
- package/lib/utils/components.js +0 -276
- package/lib/utils/elements.js +0 -261
- package/lib/utils/jest.js +0 -252
- package/lib/utils/shared.js +0 -212
- package/lib/utils/style/index.js +0 -0
- package/lib/utils/style/less.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.23.4](https://github.com/haoziqaq/varlet/compare/v1.23.3...v1.23.4) (2021-11-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui/types:** add list.d.ts ([ab06a8f](https://github.com/haoziqaq/varlet/commit/ab06a8f219fcf5f4f929938f048a142a6c4b1715))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [1.23.3](https://github.com/haoziqaq/varlet/compare/v1.23.2...v1.23.3) (2021-11-20)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.css'
|
|
2
|
-
import '../SnackbarSfc.css'
|
|
3
2
|
import '../../styles/elevation.css'
|
|
4
3
|
import '../../loading/loading.css'
|
|
5
4
|
import '../../button/button.css'
|
|
6
5
|
import '../../icon/icon.css'
|
|
7
6
|
import '../snackbar.css'
|
|
8
7
|
import '../coreSfc.css'
|
|
8
|
+
import '../SnackbarSfc.css'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.less'
|
|
2
|
-
import '../SnackbarSfc.less'
|
|
3
2
|
import '../../styles/elevation.less'
|
|
4
3
|
import '../../loading/loading.less'
|
|
5
4
|
import '../../button/button.less'
|
|
6
5
|
import '../../icon/icon.less'
|
|
7
6
|
import '../snackbar.less'
|
|
8
7
|
import '../coreSfc.less'
|
|
8
|
+
import '../SnackbarSfc.less'
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "1.23.4
|
|
3
|
+
"version": "1.23.4",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"module": "es/index.js",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
6
|
"typings": "types/index.d.ts",
|
|
8
7
|
"vetur": {
|
|
9
8
|
"tags": "highlight/tags.json",
|
|
@@ -17,7 +16,6 @@
|
|
|
17
16
|
],
|
|
18
17
|
"files": [
|
|
19
18
|
"json",
|
|
20
|
-
"lib",
|
|
21
19
|
"es",
|
|
22
20
|
"umd",
|
|
23
21
|
"highlight",
|
|
@@ -49,9 +47,9 @@
|
|
|
49
47
|
"peerDependencies": {
|
|
50
48
|
"vue": "^3.2.0"
|
|
51
49
|
},
|
|
52
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "d228e23e65cbfc89e53fe34c4a83e92d31ff494c",
|
|
53
51
|
"devDependencies": {
|
|
54
|
-
"@varlet/cli": "^1.23.
|
|
52
|
+
"@varlet/cli": "^1.23.3"
|
|
55
53
|
},
|
|
56
54
|
"dependencies": {
|
|
57
55
|
"dayjs": "^1.10.4",
|
package/types/global.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ declare module 'vue' {
|
|
|
26
26
|
VarIndexBar: typeof import('@varlet/ui')['_IndexBarComponent']
|
|
27
27
|
VarInput: typeof import('@varlet/ui')['_InputComponent']
|
|
28
28
|
VarLazy: typeof import('@varlet/ui')['_LazyComponent']
|
|
29
|
+
VarList: typeof import('@varlet/ui')['_ListComponent']
|
|
29
30
|
VarLoading: typeof import('@varlet/ui')['_LoadingComponent']
|
|
30
31
|
VarLocale: typeof import('@varlet/ui')['_LocaleComponent']
|
|
31
32
|
VarMenu: typeof import('@varlet/ui')['_MenuComponent']
|
package/types/index.d.ts
CHANGED
package/types/list.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VarComponent } from './varComponent'
|
|
2
|
+
|
|
3
|
+
export interface ListProps {
|
|
4
|
+
loading?: boolean
|
|
5
|
+
immediateCheck?: boolean
|
|
6
|
+
finished?: boolean
|
|
7
|
+
error?: boolean
|
|
8
|
+
offset?: string | number
|
|
9
|
+
loadingText?: string
|
|
10
|
+
finishedText?: string
|
|
11
|
+
errorText?: string
|
|
12
|
+
onLoad?: () => void
|
|
13
|
+
'onUpdate:loading'?: (loading: boolean) => void
|
|
14
|
+
'onUpdate:error'?: (error: boolean) => void
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class List extends VarComponent {
|
|
18
|
+
$props: ListProps
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class _ListComponent extends List {}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.render = render;
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
|
|
7
|
-
var _ripple = _interopRequireDefault(require("../ripple"));
|
|
8
|
-
|
|
9
|
-
var _popup = _interopRequireDefault(require("../popup"));
|
|
10
|
-
|
|
11
|
-
var _icon = _interopRequireDefault(require("../icon"));
|
|
12
|
-
|
|
13
|
-
var _vue = require("vue");
|
|
14
|
-
|
|
15
|
-
var _props = require("./props");
|
|
16
|
-
|
|
17
|
-
var _shared = require("../utils/shared");
|
|
18
|
-
|
|
19
|
-
var _locale = require("../locale");
|
|
20
|
-
|
|
21
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
-
|
|
23
|
-
var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
|
|
24
|
-
|
|
25
|
-
var _hoisted_1 = {
|
|
26
|
-
class: "var-action-sheet__title"
|
|
27
|
-
};
|
|
28
|
-
var _hoisted_2 = ["onClick"];
|
|
29
|
-
var _hoisted_3 = {
|
|
30
|
-
class: "var-action-sheet__action-name"
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
function render(_ctx, _cache) {
|
|
34
|
-
var _component_var_icon = (0, _vue.resolveComponent)("var-icon");
|
|
35
|
-
|
|
36
|
-
var _component_var_popup = (0, _vue.resolveComponent)("var-popup");
|
|
37
|
-
|
|
38
|
-
var _directive_ripple = (0, _vue.resolveDirective)("ripple");
|
|
39
|
-
|
|
40
|
-
return (0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_popup, (0, _vue.mergeProps)({
|
|
41
|
-
class: "var-action-sheet__popup-radius",
|
|
42
|
-
position: "bottom",
|
|
43
|
-
overlay: _ctx.overlay,
|
|
44
|
-
"overlay-class": _ctx.overlayClass,
|
|
45
|
-
"overlay-style": _ctx.overlayStyle,
|
|
46
|
-
"lock-scroll": _ctx.lockScroll,
|
|
47
|
-
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
48
|
-
teleport: _ctx.teleport,
|
|
49
|
-
show: _ctx.popupShow
|
|
50
|
-
}, {
|
|
51
|
-
'onUpdate:show': value => {
|
|
52
|
-
var _ctx$$props$onUpdate, _ctx$$props;
|
|
53
|
-
|
|
54
|
-
return (_ctx$$props$onUpdate = (_ctx$$props = _ctx.$props)['onUpdate:show']) == null ? void 0 : _ctx$$props$onUpdate.call(_ctx$$props, value);
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
57
|
-
onOpen: _ctx.onOpen,
|
|
58
|
-
onClose: _ctx.onClose,
|
|
59
|
-
onClosed: _ctx.onClosed,
|
|
60
|
-
onOpened: _ctx.onOpened,
|
|
61
|
-
onRouteChange: _ctx.onRouteChange
|
|
62
|
-
}), {
|
|
63
|
-
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", (0, _vue.mergeProps)({
|
|
64
|
-
class: "var-action-sheet var--box"
|
|
65
|
-
}, _ctx.$attrs), [(0, _vue.renderSlot)(_ctx.$slots, "title", {}, () => [(0, _vue.createElementVNode)("div", _hoisted_1, (0, _vue.toDisplayString)(_ctx.dt(_ctx.title, _ctx.pack.actionSheetTitle)), 1
|
|
66
|
-
/* TEXT */
|
|
67
|
-
)]), (0, _vue.renderSlot)(_ctx.$slots, "actions", {}, () => [((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, null, (0, _vue.renderList)(_ctx.actions, action => {
|
|
68
|
-
return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
69
|
-
class: (0, _vue.normalizeClass)(["var-action-sheet__action-item", [action.className, action.disabled ? 'var-action-sheet--disabled' : null]]),
|
|
70
|
-
key: action.name,
|
|
71
|
-
style: (0, _vue.normalizeStyle)({
|
|
72
|
-
color: action.color
|
|
73
|
-
}),
|
|
74
|
-
onClick: $event => _ctx.handleSelect(action)
|
|
75
|
-
}, [action.icon ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_icon, {
|
|
76
|
-
key: 0,
|
|
77
|
-
class: "var-action-sheet__action-icon",
|
|
78
|
-
"var-action-sheet-cover": "",
|
|
79
|
-
name: action.icon,
|
|
80
|
-
size: action.iconSize
|
|
81
|
-
}, null, 8
|
|
82
|
-
/* PROPS */
|
|
83
|
-
, ["name", "size"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div", _hoisted_3, (0, _vue.toDisplayString)(action.name), 1
|
|
84
|
-
/* TEXT */
|
|
85
|
-
)], 14
|
|
86
|
-
/* CLASS, STYLE, PROPS */
|
|
87
|
-
, _hoisted_2)), [[_directive_ripple, {
|
|
88
|
-
disabled: action.disabled
|
|
89
|
-
}]]);
|
|
90
|
-
}), 128
|
|
91
|
-
/* KEYED_FRAGMENT */
|
|
92
|
-
))])], 16
|
|
93
|
-
/* FULL_PROPS */
|
|
94
|
-
)]),
|
|
95
|
-
_: 3
|
|
96
|
-
/* FORWARDED */
|
|
97
|
-
|
|
98
|
-
}, 16
|
|
99
|
-
/* FULL_PROPS */
|
|
100
|
-
, ["overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "teleport", "show", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var _default = (0, _vue.defineComponent)({
|
|
104
|
-
render,
|
|
105
|
-
name: 'VarActionSheet',
|
|
106
|
-
directives: {
|
|
107
|
-
Ripple: _ripple.default
|
|
108
|
-
},
|
|
109
|
-
components: {
|
|
110
|
-
VarPopup: _popup.default,
|
|
111
|
-
VarIcon: _icon.default
|
|
112
|
-
},
|
|
113
|
-
inheritAttrs: false,
|
|
114
|
-
props: _props.props,
|
|
115
|
-
|
|
116
|
-
setup(props) {
|
|
117
|
-
var popupShow = (0, _vue.ref)(false);
|
|
118
|
-
|
|
119
|
-
var handleSelect = action => {
|
|
120
|
-
var _props$onUpdateShow;
|
|
121
|
-
|
|
122
|
-
if (action.disabled) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
var {
|
|
127
|
-
closeOnClickAction,
|
|
128
|
-
onSelect
|
|
129
|
-
} = props;
|
|
130
|
-
onSelect == null ? void 0 : onSelect(action);
|
|
131
|
-
closeOnClickAction && ((_props$onUpdateShow = props['onUpdate:show']) == null ? void 0 : _props$onUpdateShow.call(props, false));
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
(0, _vue.watch)(() => props.show, newValue => {
|
|
135
|
-
popupShow.value = newValue;
|
|
136
|
-
}, {
|
|
137
|
-
immediate: true
|
|
138
|
-
});
|
|
139
|
-
return {
|
|
140
|
-
popupShow,
|
|
141
|
-
pack: _locale.pack,
|
|
142
|
-
dt: _shared.dt,
|
|
143
|
-
handleSelect
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
exports.default = _default;
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root { --action-sheet-border-radius: 2px; --action-sheet-title-color: #888; --action-sheet-title-padding: 10px 16px; --action-sheet-title-font-size: 14px; --action-sheet-action-item-height: 48px; --action-sheet-action-item-padding: 0px 18px; --action-sheet-action-item-color: #333; --action-sheet-action-item-disabled-color: var(--color-text-disabled); --action-sheet-icon-margin: 0 20px 0 0; --action-sheet-icon-size: 24px; --action-sheet-background: #fff;}.var-action-sheet { padding: 10px 0; max-height: 80%; background: var(--action-sheet-background); transition: background-color 0.25s;}.var-action-sheet__popup-radius { border-radius: var(--action-sheet-border-radius);}.var-action-sheet__title { padding: var(--action-sheet-title-padding); color: var(--action-sheet-title-color); font-size: var(--action-sheet-title-font-size);}.var-action-sheet__action-item { display: flex; align-items: center; height: var(--action-sheet-action-item-height); padding: var(--action-sheet-action-item-padding); color: var(--action-sheet-action-item-color); cursor: pointer;}.var-action-sheet__action-name { overflow: auto; max-height: var(--action-sheet-action-item-height);}.var-action-sheet__action-icon[var-action-sheet-cover] { margin: var(--action-sheet-icon-margin); width: var(--action-sheet-icon-size); height: var(--action-sheet-icon-size); font-size: var(--action-sheet-icon-size);}.var-action-sheet--disabled { color: var(--action-sheet-action-item-disabled-color) !important; cursor: not-allowed;}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
@action-sheet-border-radius: 2px;
|
|
2
|
-
@action-sheet-title-color: #888;
|
|
3
|
-
@action-sheet-title-padding: 10px 16px;
|
|
4
|
-
@action-sheet-title-font-size: 14px;
|
|
5
|
-
@action-sheet-action-item-height: 48px;
|
|
6
|
-
@action-sheet-action-item-padding: 0px 18px;
|
|
7
|
-
@action-sheet-action-item-color: #333;
|
|
8
|
-
@action-sheet-action-item-disabled-color: var(--color-text-disabled);
|
|
9
|
-
@action-sheet-icon-margin: 0 20px 0 0;
|
|
10
|
-
@action-sheet-icon-size: 24px;
|
|
11
|
-
@action-sheet-background: #fff;
|
|
12
|
-
|
|
13
|
-
:root {
|
|
14
|
-
--action-sheet-border-radius: @action-sheet-border-radius;
|
|
15
|
-
--action-sheet-title-color: @action-sheet-title-color;
|
|
16
|
-
--action-sheet-title-padding: @action-sheet-title-padding;
|
|
17
|
-
--action-sheet-title-font-size: @action-sheet-title-font-size;
|
|
18
|
-
--action-sheet-action-item-height: @action-sheet-action-item-height;
|
|
19
|
-
--action-sheet-action-item-padding: @action-sheet-action-item-padding;
|
|
20
|
-
--action-sheet-action-item-color: @action-sheet-action-item-color;
|
|
21
|
-
--action-sheet-action-item-disabled-color: @action-sheet-action-item-disabled-color;
|
|
22
|
-
--action-sheet-icon-margin: @action-sheet-icon-margin;
|
|
23
|
-
--action-sheet-icon-size: @action-sheet-icon-size;
|
|
24
|
-
--action-sheet-background: @action-sheet-background;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.var-action-sheet {
|
|
28
|
-
padding: 10px 0;
|
|
29
|
-
max-height: 80%;
|
|
30
|
-
background: var(--action-sheet-background);
|
|
31
|
-
transition: background-color 0.25s;
|
|
32
|
-
|
|
33
|
-
&__popup-radius {
|
|
34
|
-
border-radius: var(--action-sheet-border-radius);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&__title {
|
|
38
|
-
padding: var(--action-sheet-title-padding);
|
|
39
|
-
color: var(--action-sheet-title-color);
|
|
40
|
-
font-size: var(--action-sheet-title-font-size);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__action-item {
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
height: var(--action-sheet-action-item-height);
|
|
47
|
-
padding: var(--action-sheet-action-item-padding);
|
|
48
|
-
color: var(--action-sheet-action-item-color);
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&__action-name {
|
|
53
|
-
overflow: auto;
|
|
54
|
-
max-height: var(--action-sheet-action-item-height);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&__action-icon[var-action-sheet-cover] {
|
|
58
|
-
margin: var(--action-sheet-icon-margin);
|
|
59
|
-
width: var(--action-sheet-icon-size);
|
|
60
|
-
height: var(--action-sheet-icon-size);
|
|
61
|
-
font-size: var(--action-sheet-icon-size);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&--disabled {
|
|
65
|
-
color: var(--action-sheet-action-item-disabled-color) !important;
|
|
66
|
-
cursor: not-allowed;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports._ActionSheetComponent = void 0;
|
|
5
|
-
|
|
6
|
-
var _ActionSheet = _interopRequireDefault(require("./ActionSheet.js"));
|
|
7
|
-
|
|
8
|
-
var _vue = require("vue");
|
|
9
|
-
|
|
10
|
-
var _shared = require("../utils/shared");
|
|
11
|
-
|
|
12
|
-
var _components = require("../utils/components");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
var singletonOptions;
|
|
17
|
-
|
|
18
|
-
function ActionSheet(options) {
|
|
19
|
-
if (!_shared.inBrowser) {
|
|
20
|
-
return Promise.resolve();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return new Promise(resolve => {
|
|
24
|
-
ActionSheet.close();
|
|
25
|
-
var reactiveActionSheetOptions = (0, _vue.reactive)(options);
|
|
26
|
-
reactiveActionSheetOptions.teleport = 'body';
|
|
27
|
-
singletonOptions = reactiveActionSheetOptions;
|
|
28
|
-
var {
|
|
29
|
-
unmountInstance
|
|
30
|
-
} = (0, _components.mountInstance)(_ActionSheet.default, reactiveActionSheetOptions, {
|
|
31
|
-
onSelect: action => {
|
|
32
|
-
reactiveActionSheetOptions.onSelect == null ? void 0 : reactiveActionSheetOptions.onSelect(action);
|
|
33
|
-
resolve(action);
|
|
34
|
-
},
|
|
35
|
-
onClose: () => {
|
|
36
|
-
reactiveActionSheetOptions.onClose == null ? void 0 : reactiveActionSheetOptions.onClose();
|
|
37
|
-
resolve('close');
|
|
38
|
-
},
|
|
39
|
-
onClosed: () => {
|
|
40
|
-
reactiveActionSheetOptions.onClosed == null ? void 0 : reactiveActionSheetOptions.onClosed();
|
|
41
|
-
unmountInstance();
|
|
42
|
-
singletonOptions === reactiveActionSheetOptions && (singletonOptions = null);
|
|
43
|
-
},
|
|
44
|
-
onRouteChange: () => {
|
|
45
|
-
unmountInstance();
|
|
46
|
-
singletonOptions === reactiveActionSheetOptions && (singletonOptions = null);
|
|
47
|
-
},
|
|
48
|
-
'onUpdate:show': value => {
|
|
49
|
-
reactiveActionSheetOptions.show = value;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
reactiveActionSheetOptions.show = true;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
ActionSheet.Component = _ActionSheet.default;
|
|
57
|
-
|
|
58
|
-
_ActionSheet.default.install = function (app) {
|
|
59
|
-
app.component(_ActionSheet.default.name, _ActionSheet.default);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
ActionSheet.close = () => {
|
|
63
|
-
if (singletonOptions != null) {
|
|
64
|
-
var prevSingletonOptions = singletonOptions;
|
|
65
|
-
singletonOptions = null;
|
|
66
|
-
(0, _vue.nextTick)().then(() => {
|
|
67
|
-
prevSingletonOptions.show = false;
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
ActionSheet.install = function (app) {
|
|
73
|
-
app.component(_ActionSheet.default.name, _ActionSheet.default);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
var _ActionSheetComponent = _ActionSheet.default;
|
|
77
|
-
exports._ActionSheetComponent = _ActionSheetComponent;
|
|
78
|
-
var _default = ActionSheet;
|
|
79
|
-
exports.default = _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.props = void 0;
|
|
5
|
-
|
|
6
|
-
var _components = require("../utils/components");
|
|
7
|
-
|
|
8
|
-
var _props = require("../popup/props");
|
|
9
|
-
|
|
10
|
-
function _extends() { _extends = Object.assign || 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
|
-
|
|
12
|
-
var props = _extends({
|
|
13
|
-
show: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: false
|
|
16
|
-
},
|
|
17
|
-
actions: {
|
|
18
|
-
type: Array,
|
|
19
|
-
default: () => []
|
|
20
|
-
},
|
|
21
|
-
title: {
|
|
22
|
-
type: String
|
|
23
|
-
},
|
|
24
|
-
closeOnClickAction: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: true
|
|
27
|
-
},
|
|
28
|
-
onSelect: {
|
|
29
|
-
type: Function
|
|
30
|
-
},
|
|
31
|
-
'onUpdate:show': {
|
|
32
|
-
type: Function
|
|
33
|
-
}
|
|
34
|
-
}, (0, _components.pickProps)(_props.props, ['overlay', 'overlayClass', 'overlayStyle', 'lockScroll', 'closeOnClickOverlay', 'teleport', 'onOpen', 'onClose', 'onOpened', 'onClosed', 'onClickOverlay', // internal for function call closes the dialog
|
|
35
|
-
'onRouteChange']));
|
|
36
|
-
|
|
37
|
-
exports.props = props;
|
package/lib/app-bar/AppBar.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
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 _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
|
|
12
|
-
|
|
13
|
-
var _hoisted_1 = {
|
|
14
|
-
class: "var-app-bar__left"
|
|
15
|
-
};
|
|
16
|
-
var _hoisted_2 = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "var-app-bar__title"
|
|
19
|
-
};
|
|
20
|
-
var _hoisted_3 = {
|
|
21
|
-
class: "var-app-bar__right"
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
function render(_ctx, _cache) {
|
|
25
|
-
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
26
|
-
class: (0, _vue.normalizeClass)(["var-app-bar", {
|
|
27
|
-
'var-elevation--3': _ctx.elevation
|
|
28
|
-
}]),
|
|
29
|
-
style: (0, _vue.normalizeStyle)({
|
|
30
|
-
background: _ctx.color,
|
|
31
|
-
color: _ctx.textColor
|
|
32
|
-
})
|
|
33
|
-
}, [(0, _vue.createElementVNode)("div", _hoisted_1, [(0, _vue.renderSlot)(_ctx.$slots, "left"), _ctx.titlePosition === 'left' ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
34
|
-
key: 0,
|
|
35
|
-
class: "var-app-bar__title",
|
|
36
|
-
style: (0, _vue.normalizeStyle)({
|
|
37
|
-
paddingLeft: _ctx.$slots.left ? 0 : undefined
|
|
38
|
-
})
|
|
39
|
-
}, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.title), 1
|
|
40
|
-
/* TEXT */
|
|
41
|
-
)])], 4
|
|
42
|
-
/* STYLE */
|
|
43
|
-
)) : (0, _vue.createCommentVNode)("v-if", true)]), _ctx.titlePosition === 'center' ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_2, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.title), 1
|
|
44
|
-
/* TEXT */
|
|
45
|
-
)])])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div", _hoisted_3, [_ctx.titlePosition === 'right' ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: "var-app-bar__title",
|
|
48
|
-
style: (0, _vue.normalizeStyle)({
|
|
49
|
-
paddingRight: _ctx.$slots.right ? 0 : undefined
|
|
50
|
-
})
|
|
51
|
-
}, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.title), 1
|
|
52
|
-
/* TEXT */
|
|
53
|
-
)])], 4
|
|
54
|
-
/* STYLE */
|
|
55
|
-
)) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.renderSlot)(_ctx.$slots, "right")])], 6
|
|
56
|
-
/* CLASS, STYLE */
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
var _default = (0, _vue.defineComponent)({
|
|
61
|
-
render,
|
|
62
|
-
name: 'VarAppBar',
|
|
63
|
-
props: _props.props
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
exports.default = _default;
|
|
File without changes
|
|
File without changes
|
package/lib/app-bar/appBar.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root { --app-bar-color: var(--color-primary); --app-bar-title-padding: 0 12px; --app-bar-text-color: #fff; --app-bar-height: 54px; --app-bar-left-gap: 6px; --app-bar-right-gap: 6px;}.var-app-bar { position: relative; display: flex; justify-content: center; align-items: center; height: var(--app-bar-height); background: var(--app-bar-color); color: var(--app-bar-text-color); transition: background-color 0.25s;}.var-app-bar__title { flex: 1; display: flex; justify-content: center; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; padding: var(--app-bar-title-padding);}.var-app-bar__left,.var-app-bar__right { display: flex; align-items: center; height: 100%; z-index: 2;}.var-app-bar__left { position: absolute; top: 0; left: var(--app-bar-left-gap);}.var-app-bar__right { position: absolute; top: 0; right: var(--app-bar-right-gap);}
|
package/lib/app-bar/appBar.less
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
@app-bar-color: var(--color-primary);
|
|
2
|
-
@app-bar-height: 54px;
|
|
3
|
-
@app-bar-text-color: #fff;
|
|
4
|
-
@app-bar-title-padding: 0 12px;
|
|
5
|
-
@app-bar-left-gap: 6px;
|
|
6
|
-
@app-bar-right-gap: 6px;
|
|
7
|
-
|
|
8
|
-
:root {
|
|
9
|
-
--app-bar-color: @app-bar-color;
|
|
10
|
-
--app-bar-title-padding: @app-bar-title-padding;
|
|
11
|
-
--app-bar-text-color: #fff;
|
|
12
|
-
--app-bar-height: @app-bar-height;
|
|
13
|
-
--app-bar-left-gap: @app-bar-left-gap;
|
|
14
|
-
--app-bar-right-gap: @app-bar-right-gap;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.var-app-bar {
|
|
18
|
-
position: relative;
|
|
19
|
-
display: flex;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
height: var(--app-bar-height);
|
|
23
|
-
background: var(--app-bar-color);
|
|
24
|
-
color: var(--app-bar-text-color);
|
|
25
|
-
transition: background-color 0.25s;
|
|
26
|
-
|
|
27
|
-
&__title {
|
|
28
|
-
flex: 1;
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
white-space: nowrap;
|
|
32
|
-
text-overflow: ellipsis;
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
padding: var(--app-bar-title-padding);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&__left,
|
|
38
|
-
&__right {
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
height: 100%;
|
|
42
|
-
z-index: 2;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&__left {
|
|
46
|
-
position: absolute;
|
|
47
|
-
top: 0;
|
|
48
|
-
left: var(--app-bar-left-gap);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&__right {
|
|
52
|
-
position: absolute;
|
|
53
|
-
top: 0;
|
|
54
|
-
right: var(--app-bar-right-gap);
|
|
55
|
-
}
|
|
56
|
-
}
|
package/lib/app-bar/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports._AppBarComponent = void 0;
|
|
5
|
-
|
|
6
|
-
var _AppBar = _interopRequireDefault(require("./AppBar.js"));
|
|
7
|
-
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
|
-
_AppBar.default.install = function (app) {
|
|
11
|
-
app.component(_AppBar.default.name, _AppBar.default);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
var _AppBarComponent = _AppBar.default;
|
|
15
|
-
exports._AppBarComponent = _AppBarComponent;
|
|
16
|
-
var _default = _AppBar.default;
|
|
17
|
-
exports.default = _default;
|
package/lib/app-bar/props.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.positionValidator = positionValidator;
|
|
5
|
-
exports.props = void 0;
|
|
6
|
-
|
|
7
|
-
function positionValidator(position) {
|
|
8
|
-
var validPositions = ['left', 'center', 'right'];
|
|
9
|
-
return validPositions.includes(position);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
var props = {
|
|
13
|
-
color: {
|
|
14
|
-
type: String
|
|
15
|
-
},
|
|
16
|
-
textColor: {
|
|
17
|
-
type: String
|
|
18
|
-
},
|
|
19
|
-
title: {
|
|
20
|
-
type: String
|
|
21
|
-
},
|
|
22
|
-
titlePosition: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: 'left',
|
|
25
|
-
validator: positionValidator
|
|
26
|
-
},
|
|
27
|
-
elevation: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: true
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.props = props;
|