@varlet/ui 1.23.4-alpha.4 → 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.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/lib/dialog/props.js
DELETED
|
@@ -1,73 +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
|
-
function messageAlignValidator(messageAlign) {
|
|
13
|
-
return ['left', 'center', 'right'].includes(messageAlign);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
var props = _extends({
|
|
17
|
-
show: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false
|
|
20
|
-
},
|
|
21
|
-
title: {
|
|
22
|
-
type: String
|
|
23
|
-
},
|
|
24
|
-
message: {
|
|
25
|
-
type: String
|
|
26
|
-
},
|
|
27
|
-
messageAlign: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: 'left',
|
|
30
|
-
validator: messageAlignValidator
|
|
31
|
-
},
|
|
32
|
-
confirmButton: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: true
|
|
35
|
-
},
|
|
36
|
-
cancelButton: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: true
|
|
39
|
-
},
|
|
40
|
-
confirmButtonText: {
|
|
41
|
-
type: String
|
|
42
|
-
},
|
|
43
|
-
cancelButtonText: {
|
|
44
|
-
type: String
|
|
45
|
-
},
|
|
46
|
-
confirmButtonTextColor: {
|
|
47
|
-
type: String
|
|
48
|
-
},
|
|
49
|
-
cancelButtonTextColor: {
|
|
50
|
-
type: String
|
|
51
|
-
},
|
|
52
|
-
confirmButtonColor: {
|
|
53
|
-
type: String
|
|
54
|
-
},
|
|
55
|
-
cancelButtonColor: {
|
|
56
|
-
type: String
|
|
57
|
-
},
|
|
58
|
-
onBeforeClose: {
|
|
59
|
-
type: Function
|
|
60
|
-
},
|
|
61
|
-
onConfirm: {
|
|
62
|
-
type: Function
|
|
63
|
-
},
|
|
64
|
-
onCancel: {
|
|
65
|
-
type: Function
|
|
66
|
-
},
|
|
67
|
-
'onUpdate:show': {
|
|
68
|
-
type: Function
|
|
69
|
-
}
|
|
70
|
-
}, (0, _components.pickProps)(_props.props, ['overlay', 'overlayClass', 'overlayStyle', 'lockScroll', 'closeOnClickOverlay', 'teleport', 'onOpen', 'onClose', 'onOpened', 'onClosed', 'onClickOverlay', // internal for function call closes the dialog
|
|
71
|
-
'onRouteChange']));
|
|
72
|
-
|
|
73
|
-
exports.props = props;
|
package/lib/dialog/style/less.js
DELETED
package/lib/divider/Divider.js
DELETED
|
@@ -1,88 +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 _elements = require("../utils/elements");
|
|
10
|
-
|
|
11
|
-
var _shared = require("../utils/shared");
|
|
12
|
-
|
|
13
|
-
var _props = require("./props");
|
|
14
|
-
|
|
15
|
-
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); }
|
|
16
|
-
|
|
17
|
-
var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
|
|
18
|
-
|
|
19
|
-
var _hoisted_1 = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "var-divider__text"
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
function render(_ctx, _cache) {
|
|
25
|
-
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
26
|
-
class: (0, _vue.normalizeClass)(["var-divider var--box", [_ctx.vertical ? 'var-divider--vertical' : null, _ctx.withText ? 'var-divider--with-text' : null, _ctx.isInset ? 'var-divider--inset' : null, _ctx.dashed ? 'var-divider--dashed' : null]]),
|
|
27
|
-
style: (0, _vue.normalizeStyle)(_ctx.style)
|
|
28
|
-
}, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [_ctx.description ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("span", _hoisted_1, (0, _vue.toDisplayString)(_ctx.description), 1
|
|
29
|
-
/* TEXT */
|
|
30
|
-
)) : (0, _vue.createCommentVNode)("v-if", true)])], 6
|
|
31
|
-
/* CLASS, STYLE */
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
var _default = (0, _vue.defineComponent)({
|
|
36
|
-
render,
|
|
37
|
-
name: 'VarDivider',
|
|
38
|
-
props: _props.props,
|
|
39
|
-
|
|
40
|
-
setup(props, {
|
|
41
|
-
slots
|
|
42
|
-
}) {
|
|
43
|
-
var state = (0, _vue.reactive)({
|
|
44
|
-
withText: false
|
|
45
|
-
});
|
|
46
|
-
var isInset = (0, _vue.computed)(() => (0, _shared.isBool)(props.inset) ? props.inset : true);
|
|
47
|
-
var style = (0, _vue.computed)(() => {
|
|
48
|
-
var {
|
|
49
|
-
inset,
|
|
50
|
-
vertical,
|
|
51
|
-
margin
|
|
52
|
-
} = props;
|
|
53
|
-
var baseStyle = {
|
|
54
|
-
margin
|
|
55
|
-
};
|
|
56
|
-
if ((0, _shared.isBool)(inset) || inset === 0) return _extends({}, baseStyle); // -18px -> -18
|
|
57
|
-
|
|
58
|
-
var _inset = (0, _shared.toNumber)(inset); // -18px -> 18px
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
var absInsetWithUnit = Math.abs(_inset) + (inset + '').replace(_inset + '', '');
|
|
62
|
-
return vertical ? _extends({}, baseStyle, {
|
|
63
|
-
height: "calc(80% - " + (0, _elements.toSizeUnit)(absInsetWithUnit) + ")"
|
|
64
|
-
}) : _extends({}, baseStyle, {
|
|
65
|
-
width: "calc(100% - " + (0, _elements.toSizeUnit)(absInsetWithUnit) + ")",
|
|
66
|
-
left: _inset > 0 ? (0, _elements.toSizeUnit)(absInsetWithUnit) : (0, _elements.toSizeUnit)(0)
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
var checkHasText = () => {
|
|
71
|
-
state.withText = Boolean(slots.default == null ? void 0 : slots.default().length) || Boolean(props.description);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
(0, _vue.onMounted)(() => {
|
|
75
|
-
checkHasText();
|
|
76
|
-
});
|
|
77
|
-
(0, _vue.onUpdated)(() => {
|
|
78
|
-
checkHasText();
|
|
79
|
-
});
|
|
80
|
-
return _extends({}, (0, _vue.toRefs)(state), {
|
|
81
|
-
style,
|
|
82
|
-
isInset
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
exports.default = _default;
|
|
File without changes
|
|
File without changes
|
package/lib/divider/divider.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root { --divider-color: rgba(0, 0, 0, 0.12); --divider-text-color: #888; --divider-text-margin: 8px 0; --divider-text-padding: 0 8px; --divider-inset: 72px; --divider-vertical-inset: 8px;}.var-divider { position: relative; width: 100%; height: 0; border: none; border-top: 1px solid var(--divider-color); margin: var(--divider-text-margin); font-size: var(--font-size-md); color: var(--divider-text-color);}.var-divider--vertical { width: 0; height: 80%; margin: auto var(--divider-text-margin); padding: var(--divider-text-margin); border-top: none; border-left: 1px solid var(--divider-color); transform: translateY(-10%);}.var-divider--inset { width: calc(100% - var(--divider-inset)); left: var(--divider-inset);}.var-divider--vertical.var-divider--inset { width: 0; left: unset; height: calc(80% - var(--divider-vertical-inset));}.var-divider__text { display: inline-block; padding: var(--divider-text-padding);}.var-divider--with-text { background-color: transparent; height: fit-content; display: flex; align-items: center; justify-content: center; border: none;}.var-divider--with-text::before,.var-divider--with-text::after { display: inline-block; content: ''; flex: 1; height: 0; border-top: 1px solid var(--divider-color);}.var-divider--dashed { border-top-style: dashed;}.var-divider--dashed.var-divider--vertical { border-top: none; border-left-style: dashed;}
|
package/lib/divider/divider.less
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
@divider-color: rgba(0, 0, 0, 0.12);
|
|
2
|
-
@divider-text-color: #888;
|
|
3
|
-
@divider-text-margin: 8px 0;
|
|
4
|
-
@divider-text-padding: 0 8px;
|
|
5
|
-
@divider-inset: 72px;
|
|
6
|
-
@divider-vertical-inset: 8px;
|
|
7
|
-
|
|
8
|
-
:root {
|
|
9
|
-
--divider-color: @divider-color;
|
|
10
|
-
--divider-text-color: @divider-text-color;
|
|
11
|
-
--divider-text-margin: @divider-text-margin;
|
|
12
|
-
--divider-text-padding: @divider-text-padding;
|
|
13
|
-
--divider-inset: @divider-inset;
|
|
14
|
-
--divider-vertical-inset: @divider-vertical-inset;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.var-divider {
|
|
18
|
-
position: relative;
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 0;
|
|
21
|
-
border: none;
|
|
22
|
-
border-top: 1px solid var(--divider-color);
|
|
23
|
-
margin: var(--divider-text-margin);
|
|
24
|
-
font-size: var(--font-size-md);
|
|
25
|
-
color: var(--divider-text-color);
|
|
26
|
-
|
|
27
|
-
&--vertical {
|
|
28
|
-
width: 0;
|
|
29
|
-
height: 80%;
|
|
30
|
-
margin: auto var(--divider-text-margin);
|
|
31
|
-
padding: var(--divider-text-margin);
|
|
32
|
-
border-top: none;
|
|
33
|
-
border-left: 1px solid var(--divider-color);
|
|
34
|
-
transform: translateY(-10%);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&--inset {
|
|
38
|
-
width: calc(100% - var(--divider-inset));
|
|
39
|
-
left: var(--divider-inset);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&--vertical&--inset {
|
|
43
|
-
width: 0;
|
|
44
|
-
left: unset;
|
|
45
|
-
height: calc(80% - var(--divider-vertical-inset));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&__text {
|
|
49
|
-
display: inline-block;
|
|
50
|
-
padding: var(--divider-text-padding);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&--with-text {
|
|
54
|
-
background-color: transparent;
|
|
55
|
-
height: fit-content;
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
border: none;
|
|
60
|
-
|
|
61
|
-
&::before,
|
|
62
|
-
&::after {
|
|
63
|
-
display: inline-block;
|
|
64
|
-
content: '';
|
|
65
|
-
flex: 1;
|
|
66
|
-
height: 0;
|
|
67
|
-
border-top: 1px solid var(--divider-color);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&--dashed {
|
|
72
|
-
border-top-style: dashed;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&--dashed&--vertical {
|
|
76
|
-
border-top: none;
|
|
77
|
-
border-left-style: dashed;
|
|
78
|
-
}
|
|
79
|
-
}
|
package/lib/divider/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports._DividerComponent = void 0;
|
|
5
|
-
|
|
6
|
-
var _Divider = _interopRequireDefault(require("./Divider.js"));
|
|
7
|
-
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
|
-
_Divider.default.install = function (app) {
|
|
11
|
-
app.component(_Divider.default.name, _Divider.default);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
var _DividerComponent = _Divider.default;
|
|
15
|
-
exports._DividerComponent = _DividerComponent;
|
|
16
|
-
var _default = _Divider.default;
|
|
17
|
-
exports.default = _default;
|
package/lib/divider/props.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.props = void 0;
|
|
5
|
-
var props = {
|
|
6
|
-
inset: {
|
|
7
|
-
type: [Boolean, Number, String],
|
|
8
|
-
default: false
|
|
9
|
-
},
|
|
10
|
-
vertical: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: false
|
|
13
|
-
},
|
|
14
|
-
description: {
|
|
15
|
-
type: String
|
|
16
|
-
},
|
|
17
|
-
margin: {
|
|
18
|
-
type: String
|
|
19
|
-
},
|
|
20
|
-
dashed: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: false
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.props = props;
|
package/lib/form/Form.js
DELETED
|
@@ -1,77 +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 _provide = require("./provide");
|
|
12
|
-
|
|
13
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
14
|
-
|
|
15
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
16
|
-
|
|
17
|
-
var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
|
|
18
|
-
|
|
19
|
-
var _hoisted_1 = {
|
|
20
|
-
class: "var-form"
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
function render(_ctx, _cache) {
|
|
24
|
-
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_1, [(0, _vue.renderSlot)(_ctx.$slots, "default")]);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var _default = (0, _vue.defineComponent)({
|
|
28
|
-
render,
|
|
29
|
-
name: 'VarForm',
|
|
30
|
-
props: _props.props,
|
|
31
|
-
|
|
32
|
-
setup(props) {
|
|
33
|
-
var disabled = (0, _vue.computed)(() => props.disabled);
|
|
34
|
-
var readonly = (0, _vue.computed)(() => props.readonly);
|
|
35
|
-
var {
|
|
36
|
-
formItems,
|
|
37
|
-
bindFormItems
|
|
38
|
-
} = (0, _provide.useFormItems)(); // expose
|
|
39
|
-
|
|
40
|
-
var validate = /*#__PURE__*/function () {
|
|
41
|
-
var _ref = _asyncToGenerator(function* () {
|
|
42
|
-
var res = yield Promise.all(formItems.map(({
|
|
43
|
-
validate
|
|
44
|
-
}) => validate()));
|
|
45
|
-
return res.every(r => r === true);
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
return function validate() {
|
|
49
|
-
return _ref.apply(this, arguments);
|
|
50
|
-
};
|
|
51
|
-
}(); // expose
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var reset = () => formItems.forEach(({
|
|
55
|
-
reset
|
|
56
|
-
}) => reset()); // expose
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var resetValidation = () => formItems.forEach(({
|
|
60
|
-
resetValidation
|
|
61
|
-
}) => resetValidation());
|
|
62
|
-
|
|
63
|
-
var formProvider = {
|
|
64
|
-
disabled,
|
|
65
|
-
readonly
|
|
66
|
-
};
|
|
67
|
-
bindFormItems(formProvider);
|
|
68
|
-
return {
|
|
69
|
-
validate,
|
|
70
|
-
reset,
|
|
71
|
-
resetValidation
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
exports.default = _default;
|
package/lib/form/FormSfc.css
DELETED
|
File without changes
|
package/lib/form/FormSfc.less
DELETED
|
File without changes
|
package/lib/form/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports._FormComponent = void 0;
|
|
5
|
-
|
|
6
|
-
var _Form = _interopRequireDefault(require("./Form.js"));
|
|
7
|
-
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
|
-
_Form.default.install = function (app) {
|
|
11
|
-
app.component(_Form.default.name, _Form.default);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
var _FormComponent = _Form.default;
|
|
15
|
-
exports._FormComponent = _FormComponent;
|
|
16
|
-
var _default = _Form.default;
|
|
17
|
-
exports.default = _default;
|
package/lib/form/props.js
DELETED
package/lib/form/provide.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.useForm = useForm;
|
|
5
|
-
exports.useFormItems = useFormItems;
|
|
6
|
-
exports.FORM_BIND_FORM_ITEM_KEY = void 0;
|
|
7
|
-
|
|
8
|
-
var _components = require("../utils/components");
|
|
9
|
-
|
|
10
|
-
var FORM_BIND_FORM_ITEM_KEY = Symbol('FORM_BIND_FORM_ITEM_KEY');
|
|
11
|
-
exports.FORM_BIND_FORM_ITEM_KEY = FORM_BIND_FORM_ITEM_KEY;
|
|
12
|
-
|
|
13
|
-
function useForm() {
|
|
14
|
-
var {
|
|
15
|
-
bindParent,
|
|
16
|
-
parentProvider
|
|
17
|
-
} = (0, _components.useParent)(FORM_BIND_FORM_ITEM_KEY);
|
|
18
|
-
return {
|
|
19
|
-
bindForm: bindParent,
|
|
20
|
-
form: parentProvider
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function useFormItems() {
|
|
25
|
-
var {
|
|
26
|
-
bindChildren,
|
|
27
|
-
childProviders
|
|
28
|
-
} = (0, _components.useChildren)(FORM_BIND_FORM_ITEM_KEY);
|
|
29
|
-
return {
|
|
30
|
-
formItems: childProviders,
|
|
31
|
-
bindFormItems: bindChildren
|
|
32
|
-
};
|
|
33
|
-
}
|
package/lib/form/style/index.js
DELETED
package/lib/form/style/less.js
DELETED
|
@@ -1,45 +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
|
-
key: 0,
|
|
15
|
-
class: "var-form-details"
|
|
16
|
-
};
|
|
17
|
-
var _hoisted_2 = {
|
|
18
|
-
class: "var-form-details__message"
|
|
19
|
-
};
|
|
20
|
-
var _hoisted_3 = {
|
|
21
|
-
class: "var-form-details__length"
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
function render(_ctx, _cache) {
|
|
25
|
-
return (0, _vue.openBlock)(), (0, _vue.createBlock)(_vue.Transition, {
|
|
26
|
-
name: "var-form-details"
|
|
27
|
-
}, {
|
|
28
|
-
default: (0, _vue.withCtx)(() => [_ctx.errorMessage || _ctx.maxlengthText ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_1, [(0, _vue.createElementVNode)("div", _hoisted_2, (0, _vue.toDisplayString)(_ctx.errorMessage), 1
|
|
29
|
-
/* TEXT */
|
|
30
|
-
), (0, _vue.createElementVNode)("div", _hoisted_3, (0, _vue.toDisplayString)(_ctx.maxlengthText), 1
|
|
31
|
-
/* TEXT */
|
|
32
|
-
)])) : (0, _vue.createCommentVNode)("v-if", true)]),
|
|
33
|
-
_: 1
|
|
34
|
-
/* STABLE */
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var _default = (0, _vue.defineComponent)({
|
|
40
|
-
render,
|
|
41
|
-
name: 'VarFormDetails',
|
|
42
|
-
props: _props.props
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
exports.default = _default;
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root { --form-details-error-color: var(--color-danger); --form-details-length-color: #888; --form-details-margin-top: 6px; --form-details-font-size: 12px; --form-details-message-margin-right: 4px;}.var-form-details-enter-from,.var-form-details-leave-to { opacity: 0; margin-top: 2px !important;}.var-form-details-enter-active,.var-form-details-leave-active { transition: 0.2s all var(--cubic-bezier);}.var-form-details { display: flex; justify-content: space-between; font-size: var(--form-details-font-size); margin-top: var(--form-details-margin-top);}.var-form-details__message { flex-grow: 1; color: var(--form-details-error-color); margin-right: var(--form-details-message-margin-right); user-select: none; text-align: left;}.var-form-details__length { flex-shrink: 0; color: var(--form-details-length-color); user-select: none; text-align: right;}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
@form-details-error-color: var(--color-danger);
|
|
2
|
-
@form-details-length-color: #888;
|
|
3
|
-
@form-details-margin-top: 6px;
|
|
4
|
-
@form-details-font-size: 12px;
|
|
5
|
-
@form-details-message-margin-right: 4px;
|
|
6
|
-
|
|
7
|
-
:root {
|
|
8
|
-
--form-details-error-color: @form-details-error-color;
|
|
9
|
-
--form-details-length-color: @form-details-length-color;
|
|
10
|
-
--form-details-margin-top: @form-details-margin-top;
|
|
11
|
-
--form-details-font-size: @form-details-font-size;
|
|
12
|
-
--form-details-message-margin-right: @form-details-message-margin-right;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.var {
|
|
16
|
-
&-form-details-enter-from,
|
|
17
|
-
&-form-details-leave-to {
|
|
18
|
-
opacity: 0;
|
|
19
|
-
margin-top: 2px !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-form-details-enter-active,
|
|
23
|
-
&-form-details-leave-active {
|
|
24
|
-
transition: 0.2s all var(--cubic-bezier);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.var-form-details {
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: space-between;
|
|
31
|
-
font-size: var(--form-details-font-size);
|
|
32
|
-
margin-top: var(--form-details-margin-top);
|
|
33
|
-
|
|
34
|
-
&__message {
|
|
35
|
-
flex-grow: 1;
|
|
36
|
-
color: var(--form-details-error-color);
|
|
37
|
-
margin-right: var(--form-details-message-margin-right);
|
|
38
|
-
user-select: none;
|
|
39
|
-
text-align: left;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&__length {
|
|
43
|
-
flex-shrink: 0;
|
|
44
|
-
color: var(--form-details-length-color);
|
|
45
|
-
user-select: none;
|
|
46
|
-
text-align: right;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports._FormDetailsComponent = void 0;
|
|
5
|
-
|
|
6
|
-
var _FormDetails = _interopRequireDefault(require("./FormDetails.js"));
|
|
7
|
-
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
|
-
_FormDetails.default.install = function (app) {
|
|
11
|
-
app.component(_FormDetails.default.name, _FormDetails.default);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
var _FormDetailsComponent = _FormDetails.default;
|
|
15
|
-
exports._FormDetailsComponent = _FormDetailsComponent;
|
|
16
|
-
var _default = _FormDetails.default;
|
|
17
|
-
exports.default = _default;
|