cy-element-ui 1.1.13 → 1.1.15
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/README.md +35 -5
- package/lib/alert.js +68 -68
- package/lib/aside.js +11 -11
- package/lib/autocomplete.js +287 -287
- package/lib/avatar.js +121 -121
- package/lib/backtop.js +91 -91
- package/lib/badge.js +32 -32
- package/lib/breadcrumb-item.js +33 -33
- package/lib/breadcrumb.js +27 -27
- package/lib/button-group.js +4 -4
- package/lib/button.js +53 -53
- package/lib/calendar.js +426 -426
- package/lib/card.js +11 -11
- package/lib/carousel-item.js +108 -108
- package/lib/carousel.js +244 -244
- package/lib/cascader-panel.js +1045 -1045
- package/lib/cascader.js +577 -577
- package/lib/checkbox-button.js +137 -137
- package/lib/checkbox-group.js +39 -39
- package/lib/checkbox.js +151 -151
- package/lib/col.js +64 -64
- package/lib/collapse-item.js +66 -66
- package/lib/collapse.js +63 -63
- package/lib/color-picker.js +944 -944
- package/lib/container.js +24 -24
- package/lib/date-picker.js +2968 -2967
- package/lib/descriptions-item.js +29 -29
- package/lib/descriptions.js +324 -324
- package/lib/dialog.js +170 -170
- package/lib/directives/mousewheel.js +9 -9
- package/lib/directives/repeat-click.js +22 -22
- package/lib/divider.js +20 -20
- package/lib/drawer.js +156 -156
- package/lib/dropdown-item.js +19 -19
- package/lib/dropdown-menu.js +56 -56
- package/lib/dropdown.js +329 -329
- package/lib/element-ui.common.js +44918 -0
- package/lib/empty.js +39 -39
- package/lib/footer.js +11 -11
- package/lib/form-item.js +369 -369
- package/lib/form.js +181 -181
- package/lib/header.js +11 -11
- package/lib/icon.js +7 -7
- package/lib/image.js +520 -520
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +127 -127
- package/lib/input-number.js +260 -260
- package/lib/input.js +370 -370
- package/lib/link.js +28 -28
- package/lib/loading.js +219 -219
- package/lib/locale/format.js +25 -26
- package/lib/locale/index.js +24 -24
- package/lib/locale/lang/en.js +121 -121
- package/lib/locale/lang/zh-CN.js +121 -121
- package/lib/locale/lang/zh-TW.js +121 -121
- package/lib/main.js +5 -5
- package/lib/menu-item-group.js +33 -33
- package/lib/menu-item.js +116 -116
- package/lib/menu.js +490 -490
- package/lib/message-box.js +421 -421
- package/lib/message.js +150 -150
- package/lib/mixins/emitter.js +26 -26
- package/lib/mixins/focus.js +7 -7
- package/lib/mixins/locale.js +8 -8
- package/lib/mixins/migrating.js +34 -34
- package/lib/notification.js +184 -184
- package/lib/option-group.js +46 -46
- package/lib/option.js +145 -145
- package/lib/page-header.js +14 -14
- package/lib/pagination.js +530 -530
- package/lib/popconfirm.js +68 -68
- package/lib/popover.js +225 -225
- package/lib/progress.js +183 -183
- package/lib/radio-button.js +78 -78
- package/lib/radio-group.js +103 -103
- package/lib/radio.js +86 -86
- package/lib/rate.js +283 -283
- package/lib/result.js +61 -61
- package/lib/row.js +32 -32
- package/lib/scrollbar.js +247 -247
- package/lib/select.js +999 -999
- package/lib/selectDisplayInput.js +61 -61
- package/lib/skeleton-item.js +19 -19
- package/lib/skeleton.js +53 -53
- package/lib/slider.js +550 -550
- package/lib/spinner.js +19 -19
- package/lib/statistic.js +198 -198
- package/lib/step.js +125 -125
- package/lib/steps.js +54 -54
- package/lib/subTitle.js +24 -24
- package/lib/submenu.js +405 -406
- package/lib/switch.js +135 -135
- package/lib/tab-pane.js +43 -43
- package/lib/tabDialog.js +508 -508
- package/lib/table-column.js +713 -713
- package/lib/table.js +3432 -3432
- package/lib/tabs.js +578 -578
- package/lib/tag.js +60 -60
- package/lib/time-picker.js +1350 -1350
- package/lib/time-select.js +949 -949
- package/lib/timeline-item.js +25 -25
- package/lib/timeline.js +30 -30
- package/lib/tooltip.js +255 -255
- package/lib/transfer.js +385 -385
- package/lib/transitions/collapse-transition.js +76 -76
- package/lib/tree.js +1547 -1547
- package/lib/treeSelect.js +2618 -2618
- package/lib/umd/locale/en.js +137 -137
- package/lib/umd/locale/zh-CN.js +137 -137
- package/lib/umd/locale/zh-TW.js +137 -137
- package/lib/upload.js +738 -738
- package/lib/utils/after-leave.js +19 -19
- package/lib/utils/aria-dialog.js +56 -56
- package/lib/utils/aria-utils.js +66 -66
- package/lib/utils/clickoutside.js +39 -39
- package/lib/utils/date-util.js +177 -177
- package/lib/utils/dom.js +161 -161
- package/lib/utils/menu/aria-menubar.js +8 -8
- package/lib/utils/menu/aria-menuitem.js +38 -38
- package/lib/utils/menu/aria-submenu.js +45 -45
- package/lib/utils/merge.js +12 -12
- package/lib/utils/popup/index.js +201 -201
- package/lib/utils/popup/popup-manager.js +171 -171
- package/lib/utils/resize-event.js +33 -33
- package/lib/utils/scroll-into-view.js +25 -25
- package/lib/utils/scrollbar-width.js +18 -18
- package/lib/utils/shared.js +3 -3
- package/lib/utils/types.js +10 -10
- package/lib/utils/util.js +170 -170
- package/lib/utils/vdom.js +1 -1
- package/lib/utils/vue-popper.js +176 -176
- package/package.json +9 -7
- package/packages/alert/index.js +1 -1
- package/packages/alert/src/main.vue +82 -82
- package/packages/aside/index.js +1 -1
- package/packages/aside/src/main.vue +13 -13
- package/packages/autocomplete/index.js +1 -1
- package/packages/autocomplete/src/autocomplete-suggestions.vue +64 -64
- package/packages/autocomplete/src/autocomplete.vue +272 -272
- package/packages/avatar/index.js +1 -1
- package/packages/avatar/src/main.vue +88 -88
- package/packages/backtop/index.js +1 -1
- package/packages/backtop/src/main.vue +92 -92
- package/packages/badge/index.js +1 -1
- package/packages/badge/src/main.vue +41 -41
- package/packages/breadcrumb/index.js +1 -1
- package/packages/breadcrumb/src/breadcrumb-item.vue +35 -35
- package/packages/breadcrumb/src/breadcrumb.vue +27 -27
- package/packages/breadcrumb-item/index.js +1 -1
- package/packages/button/index.js +1 -1
- package/packages/button/src/button-group.vue +6 -6
- package/packages/button/src/button.vue +70 -70
- package/packages/button-group/index.js +1 -1
- package/packages/calendar/index.js +1 -1
- package/packages/calendar/src/date-table.vue +193 -193
- package/packages/calendar/src/main.vue +242 -242
- package/packages/card/index.js +1 -1
- package/packages/card/src/main.vue +18 -18
- package/packages/carousel/index.js +1 -1
- package/packages/carousel/src/item.vue +122 -122
- package/packages/carousel/src/main.vue +305 -305
- package/packages/carousel-item/index.js +1 -1
- package/packages/cascader/index.js +1 -1
- package/packages/cascader/src/cascader.vue +626 -626
- package/packages/cascader-panel/index.js +1 -1
- package/packages/cascader-panel/src/cascader-menu.vue +128 -128
- package/packages/cascader-panel/src/cascader-node.vue +244 -244
- package/packages/cascader-panel/src/cascader-panel.vue +334 -334
- package/packages/cascader-panel/src/node.js +157 -158
- package/packages/cascader-panel/src/store.js +49 -50
- package/packages/checkbox/index.js +1 -1
- package/packages/checkbox/src/checkbox-button.vue +195 -195
- package/packages/checkbox/src/checkbox-group.vue +43 -43
- package/packages/checkbox/src/checkbox.vue +218 -218
- package/packages/checkbox-button/index.js +1 -1
- package/packages/checkbox-group/index.js +1 -1
- package/packages/col/index.js +1 -1
- package/packages/col/src/col.js +63 -63
- package/packages/collapse/index.js +1 -1
- package/packages/collapse/src/collapse-item.vue +101 -101
- package/packages/collapse/src/collapse.vue +61 -61
- package/packages/collapse-item/index.js +1 -1
- package/packages/color-picker/index.js +1 -1
- package/packages/color-picker/src/color.js +263 -263
- package/packages/color-picker/src/components/alpha-slider.vue +127 -127
- package/packages/color-picker/src/components/hue-slider.vue +118 -118
- package/packages/color-picker/src/components/picker-dropdown.vue +105 -105
- package/packages/color-picker/src/components/predefine.vue +55 -55
- package/packages/color-picker/src/components/sv-panel.vue +95 -95
- package/packages/color-picker/src/draggable.js +27 -27
- package/packages/color-picker/src/main.vue +183 -183
- package/packages/container/index.js +1 -1
- package/packages/container/src/main.vue +25 -25
- package/packages/date-picker/index.js +1 -1
- package/packages/date-picker/src/basic/date-table.vue +435 -435
- package/packages/date-picker/src/basic/month-table.vue +239 -240
- package/packages/date-picker/src/basic/time-spinner.vue +279 -279
- package/packages/date-picker/src/basic/year-table.vue +99 -99
- package/packages/date-picker/src/panel/date-range.vue +675 -675
- package/packages/date-picker/src/panel/date.vue +604 -604
- package/packages/date-picker/src/panel/month-range.vue +260 -260
- package/packages/date-picker/src/panel/time-range.vue +242 -242
- package/packages/date-picker/src/panel/time-select.vue +173 -173
- package/packages/date-picker/src/panel/time.vue +181 -181
- package/packages/date-picker/src/picker/date-picker.js +29 -29
- package/packages/date-picker/src/picker/time-picker.js +28 -28
- package/packages/date-picker/src/picker/time-select.js +12 -12
- package/packages/date-picker/src/picker.vue +900 -900
- package/packages/descriptions/index.js +1 -1
- package/packages/descriptions/src/descriptions-item.js +28 -28
- package/packages/descriptions/src/descriptions-row.js +114 -114
- package/packages/descriptions/src/index.js +168 -168
- package/packages/descriptions-item/index.js +1 -1
- package/packages/dialog/index.js +1 -1
- package/packages/dialog/src/component.vue +207 -207
- package/packages/divider/index.js +1 -1
- package/packages/divider/src/main.vue +29 -29
- package/packages/drawer/index.js +1 -1
- package/packages/drawer/src/main.vue +195 -195
- package/packages/dropdown/index.js +1 -1
- package/packages/dropdown/src/dropdown-item.vue +29 -29
- package/packages/dropdown/src/dropdown-menu.vue +59 -59
- package/packages/dropdown/src/dropdown.vue +271 -271
- package/packages/dropdown-item/index.js +1 -1
- package/packages/dropdown-menu/index.js +1 -1
- package/packages/empty/index.js +1 -1
- package/packages/empty/src/img-empty.vue +124 -124
- package/packages/empty/src/index.vue +40 -40
- package/packages/footer/index.js +1 -1
- package/packages/footer/src/main.vue +13 -13
- package/packages/form/index.js +1 -1
- package/packages/form/src/form-item.vue +294 -294
- package/packages/form/src/form.vue +169 -169
- package/packages/form/src/label-wrap.vue +65 -65
- package/packages/form-item/index.js +1 -1
- package/packages/header/index.js +1 -1
- package/packages/header/src/main.vue +13 -13
- package/packages/icon/index.js +1 -1
- package/packages/icon/src/icon.vue +7 -7
- package/packages/image/index.js +1 -1
- package/packages/image/src/image-viewer.vue +309 -309
- package/packages/image/src/main.vue +242 -242
- package/packages/infinite-scroll/index.js +1 -1
- package/packages/infinite-scroll/src/main.js +113 -114
- package/packages/input/index.js +1 -1
- package/packages/input/src/calcTextareaHeight.js +70 -70
- package/packages/input/src/input.vue +416 -416
- package/packages/input-number/index.js +1 -1
- package/packages/input-number/src/input-number.vue +272 -272
- package/packages/link/index.js +1 -1
- package/packages/link/src/main.vue +40 -40
- package/packages/loading/index.js +6 -6
- package/packages/loading/src/directive.js +105 -105
- package/packages/loading/src/index.js +74 -74
- package/packages/loading/src/loading.vue +35 -35
- package/packages/main/index.js +1 -1
- package/packages/main/src/main.vue +7 -7
- package/packages/menu/index.js +1 -1
- package/packages/menu/src/menu-item-group.vue +38 -38
- package/packages/menu/src/menu-item.vue +103 -103
- package/packages/menu/src/menu-mixin.js +39 -39
- package/packages/menu/src/menu.vue +298 -298
- package/packages/menu/src/submenu.vue +330 -331
- package/packages/menu-item/index.js +1 -1
- package/packages/menu-item-group/index.js +1 -1
- package/packages/message/src/main.js +65 -65
- package/packages/message/src/main.vue +105 -105
- package/packages/message-box/src/main.js +172 -172
- package/packages/message-box/src/main.vue +309 -309
- package/packages/notification/src/main.js +63 -63
- package/packages/notification/src/main.vue +135 -135
- package/packages/option/index.js +1 -1
- package/packages/option-group/index.js +1 -1
- package/packages/page-header/index.js +1 -1
- package/packages/page-header/src/main.vue +21 -21
- package/packages/pagination/index.js +1 -1
- package/packages/pagination/src/pager.vue +158 -158
- package/packages/pagination/src/pagination.js +377 -377
- package/packages/popconfirm/index.js +1 -1
- package/packages/popconfirm/src/main.vue +94 -94
- package/packages/popover/index.js +2 -2
- package/packages/popover/src/directive.js +15 -15
- package/packages/popover/src/main.vue +214 -214
- package/packages/progress/index.js +1 -1
- package/packages/progress/src/progress.vue +228 -228
- package/packages/radio/index.js +1 -1
- package/packages/radio/src/radio-button.vue +106 -106
- package/packages/radio/src/radio-group.vue +101 -101
- package/packages/radio/src/radio.vue +122 -122
- package/packages/radio-button/index.js +1 -1
- package/packages/radio-group/index.js +1 -1
- package/packages/rate/index.js +1 -1
- package/packages/rate/src/main.vue +316 -316
- package/packages/result/index.js +1 -1
- package/packages/result/src/icon-error.vue +6 -6
- package/packages/result/src/icon-info.vue +6 -6
- package/packages/result/src/icon-success.vue +6 -6
- package/packages/result/src/icon-warning.vue +6 -6
- package/packages/result/src/index.vue +51 -51
- package/packages/row/index.js +1 -1
- package/packages/row/src/row.js +36 -36
- package/packages/scrollbar/index.js +1 -1
- package/packages/scrollbar/src/bar.js +86 -86
- package/packages/scrollbar/src/main.js +120 -120
- package/packages/scrollbar/src/util.js +27 -27
- package/packages/select/index.js +1 -1
- package/packages/select/src/navigation-mixin.js +47 -47
- package/packages/select/src/option-group.vue +55 -55
- package/packages/select/src/option.vue +163 -163
- package/packages/select/src/select-dropdown.vue +57 -57
- package/packages/select/src/select.vue +895 -895
- package/packages/selectDisplayInput/index.js +1 -1
- package/packages/selectDisplayInput/src/main.vue +61 -61
- package/packages/skeleton/index.js +1 -1
- package/packages/skeleton/src/img-placeholder.vue +9 -9
- package/packages/skeleton/src/index.vue +70 -70
- package/packages/skeleton/src/item.vue +17 -17
- package/packages/skeleton-item/index.js +1 -1
- package/packages/slider/index.js +1 -1
- package/packages/slider/src/button.vue +230 -230
- package/packages/slider/src/main.vue +422 -422
- package/packages/slider/src/marker.js +14 -14
- package/packages/spinner/index.js +1 -1
- package/packages/spinner/src/spinner.vue +23 -23
- package/packages/statistic/index.js +1 -1
- package/packages/statistic/src/main.vue +196 -197
- package/packages/step/index.js +1 -1
- package/packages/steps/index.js +1 -1
- package/packages/steps/src/step.vue +177 -177
- package/packages/steps/src/steps.vue +53 -53
- package/packages/subTitle/index.js +1 -1
- package/packages/subTitle/src/main.vue +29 -29
- package/packages/submenu/index.js +1 -1
- package/packages/switch/index.js +1 -1
- package/packages/switch/src/component.vue +169 -169
- package/packages/tab-pane/index.js +1 -1
- package/packages/tabDialog/index.js +10 -10
- package/packages/tabDialog/src/dialog/drag.js +50 -50
- package/packages/tabDialog/src/dialog/dragHeight.js +27 -27
- package/packages/tabDialog/src/dialog/dragWidth.js +23 -23
- package/packages/tabDialog/src/main.vue +257 -257
- package/packages/table/index.js +1 -1
- package/packages/table/src/config.js +108 -108
- package/packages/table/src/dropdown.js +19 -19
- package/packages/table/src/filter-panel.vue +189 -189
- package/packages/table/src/layout-observer.js +60 -60
- package/packages/table/src/store/current.js +65 -65
- package/packages/table/src/store/expand.js +57 -57
- package/packages/table/src/store/helper.js +32 -32
- package/packages/table/src/store/index.js +133 -133
- package/packages/table/src/store/tree.js +194 -194
- package/packages/table/src/store/watcher.js +366 -366
- package/packages/table/src/table-body.js +456 -456
- package/packages/table/src/table-column.js +311 -311
- package/packages/table/src/table-footer.js +139 -139
- package/packages/table/src/table-header.js +496 -496
- package/packages/table/src/table-layout.js +241 -241
- package/packages/table/src/table-row.js +97 -97
- package/packages/table/src/table.vue +666 -666
- package/packages/table/src/util.js +214 -214
- package/packages/table-column/index.js +1 -1
- package/packages/tabs/index.js +1 -1
- package/packages/tabs/src/tab-bar.vue +47 -47
- package/packages/tabs/src/tab-nav.vue +268 -268
- package/packages/tabs/src/tab-pane.vue +47 -47
- package/packages/tabs/src/tabs.vue +174 -174
- package/packages/tag/index.js +1 -1
- package/packages/tag/src/tag.vue +55 -55
- package/packages/theme-chalk/gulpfile.js +11 -11
- package/packages/theme-chalk/src/alert.scss +138 -138
- package/packages/theme-chalk/src/aside.scss +3 -3
- package/packages/theme-chalk/src/autocomplete.scss +58 -58
- package/packages/theme-chalk/src/avatar.scss +46 -46
- package/packages/theme-chalk/src/backtop.scss +16 -16
- package/packages/theme-chalk/src/badge.scss +47 -47
- package/packages/theme-chalk/src/breadcrumb.scss +49 -49
- package/packages/theme-chalk/src/button.scss +229 -229
- package/packages/theme-chalk/src/calendar.scss +57 -57
- package/packages/theme-chalk/src/card.scss +23 -23
- package/packages/theme-chalk/src/carousel-item.scss +41 -41
- package/packages/theme-chalk/src/carousel.scss +148 -148
- package/packages/theme-chalk/src/cascader-panel.scss +106 -106
- package/packages/theme-chalk/src/cascader.scss +173 -173
- package/packages/theme-chalk/src/checkbox.scss +346 -346
- package/packages/theme-chalk/src/col.scss +130 -130
- package/packages/theme-chalk/src/collapse.scss +52 -52
- package/packages/theme-chalk/src/color-picker.scss +364 -364
- package/packages/theme-chalk/src/common/popup.scss +22 -22
- package/packages/theme-chalk/src/common/transition.scss +33 -33
- package/packages/theme-chalk/src/common/var.scss +16 -16
- package/packages/theme-chalk/src/container.scss +9 -9
- package/packages/theme-chalk/src/cy/base.scss +1 -1
- package/packages/theme-chalk/src/date-picker/date-picker.scss +91 -91
- package/packages/theme-chalk/src/date-picker/date-range-picker.scss +97 -97
- package/packages/theme-chalk/src/date-picker/date-table.scss +146 -146
- package/packages/theme-chalk/src/date-picker/month-table.scss +69 -69
- package/packages/theme-chalk/src/date-picker/picker-panel.scss +105 -105
- package/packages/theme-chalk/src/date-picker/picker.scss +188 -188
- package/packages/theme-chalk/src/date-picker/time-picker.scss +72 -72
- package/packages/theme-chalk/src/date-picker/time-range-picker.scss +23 -23
- package/packages/theme-chalk/src/date-picker/time-spinner.scss +106 -106
- package/packages/theme-chalk/src/date-picker/year-table.scss +47 -47
- package/packages/theme-chalk/src/descriptions-item.scss +33 -33
- package/packages/theme-chalk/src/descriptions.scss +105 -105
- package/packages/theme-chalk/src/dialog.scss +104 -104
- package/packages/theme-chalk/src/display.scss +7 -7
- package/packages/theme-chalk/src/divider.scss +36 -36
- package/packages/theme-chalk/src/drawer.scss +185 -185
- package/packages/theme-chalk/src/dropdown.scss +172 -172
- package/packages/theme-chalk/src/empty.scss +34 -34
- package/packages/theme-chalk/src/footer.scss +3 -3
- package/packages/theme-chalk/src/form.scss +149 -149
- package/packages/theme-chalk/src/header.scss +3 -3
- package/packages/theme-chalk/src/icon.scss +309 -309
- package/packages/theme-chalk/src/image.scss +153 -153
- package/packages/theme-chalk/src/input-number.scss +255 -255
- package/packages/theme-chalk/src/input.scss +345 -345
- package/packages/theme-chalk/src/link.scss +67 -67
- package/packages/theme-chalk/src/loading.scss +67 -67
- package/packages/theme-chalk/src/main.scss +7 -7
- package/packages/theme-chalk/src/menu.scss +248 -248
- package/packages/theme-chalk/src/message-box.scss +205 -205
- package/packages/theme-chalk/src/message.scss +111 -111
- package/packages/theme-chalk/src/mixins/_button.scss +64 -64
- package/packages/theme-chalk/src/mixins/function.scss +18 -18
- package/packages/theme-chalk/src/mixins/mixins.scss +126 -126
- package/packages/theme-chalk/src/mixins/utils.scss +26 -26
- package/packages/theme-chalk/src/notification.scss +88 -88
- package/packages/theme-chalk/src/option-group.scss +31 -31
- package/packages/theme-chalk/src/option.scss +27 -27
- package/packages/theme-chalk/src/page-header.scss +31 -31
- package/packages/theme-chalk/src/pagination.scss +284 -284
- package/packages/theme-chalk/src/popconfirm.scss +11 -11
- package/packages/theme-chalk/src/popover.scss +30 -30
- package/packages/theme-chalk/src/popper.scss +82 -82
- package/packages/theme-chalk/src/progress.scss +128 -128
- package/packages/theme-chalk/src/radio-button.scss +94 -94
- package/packages/theme-chalk/src/radio-group.scss +4 -4
- package/packages/theme-chalk/src/radio.scss +192 -192
- package/packages/theme-chalk/src/rate.scss +38 -38
- package/packages/theme-chalk/src/reset.scss +39 -39
- package/packages/theme-chalk/src/result.scss +56 -56
- package/packages/theme-chalk/src/row.scss +31 -31
- package/packages/theme-chalk/src/scrollbar.scss +57 -57
- package/packages/theme-chalk/src/select-dropdown.scss +47 -47
- package/packages/theme-chalk/src/select.scss +140 -140
- package/packages/theme-chalk/src/skeleton-item.scss +75 -75
- package/packages/theme-chalk/src/skeleton.scss +27 -27
- package/packages/theme-chalk/src/slider.scss +238 -238
- package/packages/theme-chalk/src/spinner.scss +27 -27
- package/packages/theme-chalk/src/statistic.scss +32 -32
- package/packages/theme-chalk/src/step.scss +312 -312
- package/packages/theme-chalk/src/steps.scss +13 -13
- package/packages/theme-chalk/src/switch.scss +101 -101
- package/packages/theme-chalk/src/table-column.scss +87 -87
- package/packages/theme-chalk/src/table.scss +556 -556
- package/packages/theme-chalk/src/tabs.scss +576 -576
- package/packages/theme-chalk/src/tag.scss +155 -155
- package/packages/theme-chalk/src/time-select.scss +14 -14
- package/packages/theme-chalk/src/timeline-item.scss +71 -71
- package/packages/theme-chalk/src/timeline.scss +8 -8
- package/packages/theme-chalk/src/tooltip.scss +136 -136
- package/packages/theme-chalk/src/transfer.scss +214 -214
- package/packages/theme-chalk/src/tree.scss +110 -110
- package/packages/theme-chalk/src/upload.scss +587 -587
- package/packages/time-picker/index.js +1 -1
- package/packages/time-select/index.js +1 -1
- package/packages/timeline/index.js +1 -1
- package/packages/timeline/src/item.vue +56 -56
- package/packages/timeline/src/main.vue +28 -28
- package/packages/timeline-item/index.js +1 -1
- package/packages/tooltip/index.js +1 -1
- package/packages/tooltip/src/main.js +234 -234
- package/packages/transfer/index.js +1 -1
- package/packages/transfer/src/main.vue +225 -225
- package/packages/transfer/src/transfer-panel.vue +245 -245
- package/packages/tree/index.js +1 -1
- package/packages/tree/src/model/node.js +467 -467
- package/packages/tree/src/model/tree-store.js +335 -335
- package/packages/tree/src/model/util.js +17 -17
- package/packages/tree/src/tree-node.vue +247 -247
- package/packages/tree/src/tree.vue +491 -491
- package/packages/treeSelect/index.js +1 -1
- package/packages/treeSelect/src/main.vue +275 -275
- package/packages/upload/index.js +1 -1
- package/packages/upload/src/ajax.js +77 -77
- package/packages/upload/src/index.vue +304 -304
- package/packages/upload/src/upload-dragger.vue +65 -65
- package/packages/upload/src/upload-list.vue +96 -96
- package/packages/upload/src/upload.vue +194 -194
- package/src/directives/mousewheel.js +9 -9
- package/src/directives/repeat-click.js +20 -20
- package/src/index.js +209 -210
- package/src/locale/format.js +24 -25
- package/src/locale/index.js +25 -25
- package/src/locale/lang/en.js +121 -121
- package/src/locale/lang/zh-CN.js +121 -121
- package/src/locale/lang/zh-TW.js +121 -121
- package/src/mixins/emitter.js +26 -26
- package/src/mixins/focus.js +7 -7
- package/src/mixins/locale.js +5 -5
- package/src/mixins/migrating.js +28 -28
- package/src/transitions/collapse-transition.js +60 -60
- package/src/utils/after-leave.js +17 -17
- package/src/utils/aria-dialog.js +48 -48
- package/src/utils/aria-utils.js +64 -64
- package/src/utils/clickoutside.js +34 -34
- package/src/utils/date-util.js +163 -163
- package/src/utils/dom.js +165 -165
- package/src/utils/menu/aria-menubar.js +5 -5
- package/src/utils/menu/aria-menuitem.js +36 -36
- package/src/utils/menu/aria-submenu.js +44 -44
- package/src/utils/merge.js +12 -12
- package/src/utils/popup/index.js +203 -203
- package/src/utils/popup/popup-manager.js +169 -169
- package/src/utils/resize-event.js +20 -20
- package/src/utils/scroll-into-view.js +20 -20
- package/src/utils/scrollbar-width.js +18 -18
- package/src/utils/shared.js +3 -3
- package/src/utils/types.js +12 -12
- package/src/utils/util.js +157 -157
- package/src/utils/vdom.js +1 -1
- package/src/utils/vue-popper.js +179 -179
|
@@ -1,150 +1,149 @@
|
|
|
1
1
|
import throttle from 'throttle-debounce/debounce';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
isHtmlElement,
|
|
4
|
+
isFunction,
|
|
5
|
+
isUndefined,
|
|
6
|
+
isDefined
|
|
7
7
|
} from 'element-ui/src/utils/types';
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
getScrollContainer
|
|
10
10
|
} from 'element-ui/src/utils/dom';
|
|
11
11
|
|
|
12
12
|
const getStyleComputedProperty = (element, property) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
if (element === window) {
|
|
14
|
+
element = document.documentElement;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (element.nodeType !== 1) {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
// NOTE: 1 DOM access here
|
|
21
|
+
const css = window.getComputedStyle(element, null);
|
|
22
|
+
return property ? css[property] : css;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
const entries = (obj) => {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
return Object.keys(obj || {})
|
|
27
|
+
.map(key => ([key, obj[key]]));
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
const getPositionSize = (el, prop) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
return el === window || el === document
|
|
32
|
+
? document.documentElement[prop]
|
|
33
|
+
: el[prop];
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
const getOffsetHeight = el => {
|
|
37
|
-
|
|
37
|
+
return getPositionSize(el, 'offsetHeight');
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
const getClientHeight = el => {
|
|
41
|
-
|
|
41
|
+
return getPositionSize(el, 'clientHeight');
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
const scope = 'ElInfiniteScroll';
|
|
45
45
|
const attributes = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
delay: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: 200
|
|
49
|
+
},
|
|
50
|
+
distance: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: 0
|
|
53
|
+
},
|
|
54
|
+
disabled: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
},
|
|
58
|
+
immediate: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: true
|
|
61
|
+
}
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
const getScrollOptions = (el, vm) => {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
65
|
+
if (!isHtmlElement(el)) return {};
|
|
66
|
+
|
|
67
|
+
return entries(attributes).reduce((map, [key, option]) => {
|
|
68
|
+
const { type, default: defaultValue } = option;
|
|
69
|
+
let value = el.getAttribute(`infinite-scroll-${ key }`);
|
|
70
|
+
value = isUndefined(vm[value]) ? value : vm[value];
|
|
71
|
+
switch (type) {
|
|
72
|
+
case Number:
|
|
73
|
+
value = Number(value);
|
|
74
|
+
value = Number.isNaN(value) ? defaultValue : value;
|
|
75
|
+
break;
|
|
76
|
+
case Boolean:
|
|
77
|
+
value = isDefined(value) ? value === 'false' ? false : Boolean(value) : defaultValue;
|
|
78
|
+
break;
|
|
79
|
+
default:
|
|
80
|
+
value = type(value);
|
|
81
|
+
}
|
|
82
|
+
map[key] = value;
|
|
83
|
+
return map;
|
|
84
|
+
}, {});
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
const getElementTop = el => el.getBoundingClientRect().top;
|
|
88
88
|
|
|
89
89
|
const handleScroll = function(cb) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
90
|
+
const { el, vm, container, observer } = this[scope];
|
|
91
|
+
const { distance, disabled } = getScrollOptions(el, vm);
|
|
92
|
+
|
|
93
|
+
if (disabled) return;
|
|
94
|
+
|
|
95
|
+
const containerInfo = container.getBoundingClientRect();
|
|
96
|
+
if (!containerInfo.width && !containerInfo.height) return;
|
|
97
|
+
|
|
98
|
+
let shouldTrigger = false;
|
|
99
|
+
|
|
100
|
+
if (container === el) {
|
|
101
|
+
// be aware of difference between clientHeight & offsetHeight & window.getComputedStyle().height
|
|
102
|
+
const scrollBottom = container.scrollTop + getClientHeight(container);
|
|
103
|
+
shouldTrigger = container.scrollHeight - scrollBottom <= distance;
|
|
104
|
+
} else {
|
|
105
|
+
const heightBelowTop = getOffsetHeight(el) + getElementTop(el) - getElementTop(container);
|
|
106
|
+
const offsetHeight = getOffsetHeight(container);
|
|
107
|
+
const borderBottom = Number.parseFloat(getStyleComputedProperty(container, 'borderBottomWidth'));
|
|
108
|
+
shouldTrigger = heightBelowTop - offsetHeight + borderBottom <= distance;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (shouldTrigger && isFunction(cb)) {
|
|
112
|
+
cb.call(vm);
|
|
113
|
+
} else if (observer) {
|
|
114
|
+
observer.disconnect();
|
|
115
|
+
this[scope].observer = null;
|
|
116
|
+
}
|
|
118
117
|
};
|
|
119
118
|
|
|
120
119
|
export default {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
120
|
+
name: 'InfiniteScroll',
|
|
121
|
+
inserted(el, binding, vnode) {
|
|
122
|
+
const cb = binding.value;
|
|
123
|
+
|
|
124
|
+
const vm = vnode.context;
|
|
125
|
+
// only include vertical scroll
|
|
126
|
+
const container = getScrollContainer(el, true);
|
|
127
|
+
const { delay, immediate } = getScrollOptions(el, vm);
|
|
128
|
+
const onScroll = throttle(delay, handleScroll.bind(el, cb));
|
|
129
|
+
|
|
130
|
+
el[scope] = { el, vm, container, onScroll };
|
|
131
|
+
|
|
132
|
+
if (container) {
|
|
133
|
+
container.addEventListener('scroll', onScroll);
|
|
134
|
+
|
|
135
|
+
if (immediate) {
|
|
136
|
+
const observer = el[scope].observer = new MutationObserver(onScroll);
|
|
137
|
+
observer.observe(container, { childList: true, subtree: true });
|
|
138
|
+
onScroll();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
unbind(el) {
|
|
143
|
+
const { container, onScroll } = el[scope];
|
|
144
|
+
if (container) {
|
|
145
|
+
container.removeEventListener('scroll', onScroll);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
149
148
|
};
|
|
150
149
|
|
package/packages/input/index.js
CHANGED
|
@@ -11,94 +11,94 @@ const HIDDEN_STYLE = `
|
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
13
|
const CONTEXT_STYLE = [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
'letter-spacing',
|
|
15
|
+
'line-height',
|
|
16
|
+
'padding-top',
|
|
17
|
+
'padding-bottom',
|
|
18
|
+
'font-family',
|
|
19
|
+
'font-weight',
|
|
20
|
+
'font-size',
|
|
21
|
+
'text-rendering',
|
|
22
|
+
'text-transform',
|
|
23
|
+
'width',
|
|
24
|
+
'text-indent',
|
|
25
|
+
'padding-left',
|
|
26
|
+
'padding-right',
|
|
27
|
+
'border-width',
|
|
28
|
+
'box-sizing'
|
|
29
29
|
];
|
|
30
30
|
|
|
31
31
|
function calculateNodeStyling(targetElement) {
|
|
32
|
-
|
|
32
|
+
const style = window.getComputedStyle(targetElement);
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
const boxSizing = style.getPropertyValue('box-sizing');
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
const paddingSize = (
|
|
37
|
+
parseFloat(style.getPropertyValue('padding-bottom')) +
|
|
38
38
|
parseFloat(style.getPropertyValue('padding-top'))
|
|
39
|
-
|
|
39
|
+
);
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
const borderSize = (
|
|
42
|
+
parseFloat(style.getPropertyValue('border-bottom-width')) +
|
|
43
43
|
parseFloat(style.getPropertyValue('border-top-width'))
|
|
44
|
-
|
|
44
|
+
);
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
const contextStyle = CONTEXT_STYLE
|
|
47
|
+
.map(name => `${ name }:${ style.getPropertyValue(name) }`)
|
|
48
|
+
.join(';');
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
return { contextStyle, paddingSize, borderSize, boxSizing };
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export default function calcTextareaHeight(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
targetElement,
|
|
55
|
+
minRows = 1,
|
|
56
|
+
maxRows = null
|
|
57
57
|
) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
if (!hiddenTextarea) {
|
|
59
|
+
hiddenTextarea = document.createElement('textarea');
|
|
60
|
+
document.body.appendChild(hiddenTextarea);
|
|
61
|
+
}
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
let {
|
|
64
|
+
paddingSize,
|
|
65
|
+
borderSize,
|
|
66
|
+
boxSizing,
|
|
67
|
+
contextStyle
|
|
68
|
+
} = calculateNodeStyling(targetElement);
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
hiddenTextarea.setAttribute('style', `${ contextStyle };${ HIDDEN_STYLE }`);
|
|
71
|
+
hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
let height = hiddenTextarea.scrollHeight;
|
|
74
|
+
const result = {};
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
if (boxSizing === 'border-box') {
|
|
77
|
+
height = height + borderSize;
|
|
78
|
+
} else if (boxSizing === 'content-box') {
|
|
79
|
+
height = height - paddingSize;
|
|
80
|
+
}
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
hiddenTextarea.value = '';
|
|
83
|
+
let singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
85
|
+
if (minRows !== null) {
|
|
86
|
+
let minHeight = singleRowHeight * minRows;
|
|
87
|
+
if (boxSizing === 'border-box') {
|
|
88
|
+
minHeight = minHeight + paddingSize + borderSize;
|
|
89
|
+
}
|
|
90
|
+
height = Math.max(minHeight, height);
|
|
91
|
+
result.minHeight = `${ minHeight }px`;
|
|
92
|
+
}
|
|
93
|
+
if (maxRows !== null) {
|
|
94
|
+
let maxHeight = singleRowHeight * maxRows;
|
|
95
|
+
if (boxSizing === 'border-box') {
|
|
96
|
+
maxHeight = maxHeight + paddingSize + borderSize;
|
|
97
|
+
}
|
|
98
|
+
height = Math.min(maxHeight, height);
|
|
99
|
+
}
|
|
100
|
+
result.height = `${ height }px`;
|
|
101
|
+
hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
|
|
102
|
+
hiddenTextarea = null;
|
|
103
|
+
return result;
|
|
104
104
|
};
|