mazey-element-ui 2.0.1 → 2.15.16
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/LICENSE +2 -2
- package/README.md +71 -68
- package/lib/alert.js +271 -262
- package/lib/aside.js +134 -200
- package/lib/autocomplete.js +500 -443
- package/lib/avatar.js +284 -0
- package/lib/backtop.js +336 -0
- package/lib/badge.js +188 -221
- package/lib/breadcrumb-item.js +176 -226
- package/lib/breadcrumb.js +150 -213
- package/lib/button-group.js +121 -190
- package/lib/button.js +213 -268
- package/lib/calendar.js +801 -0
- package/lib/card.js +156 -203
- package/lib/carousel-item.js +242 -264
- package/lib/carousel.js +386 -284
- package/lib/cascader-panel.js +1323 -0
- package/lib/cascader.js +1000 -1116
- package/lib/checkbox-button.js +388 -327
- package/lib/checkbox-group.js +168 -233
- package/lib/checkbox.js +422 -350
- package/lib/col.js +58 -112
- package/lib/collapse-item.js +335 -327
- package/lib/collapse.js +177 -246
- package/lib/color-picker.js +1128 -1231
- package/lib/container.js +144 -211
- package/lib/date-picker.js +4316 -2745
- package/lib/descriptions-item.js +88 -0
- package/lib/descriptions.js +342 -0
- package/lib/dialog.js +359 -337
- package/lib/directives/mousewheel.js +6 -12
- package/lib/directives/repeat-click.js +10 -10
- package/lib/divider.js +251 -0
- package/lib/drawer.js +523 -0
- package/lib/dropdown-item.js +175 -228
- package/lib/dropdown-menu.js +203 -253
- package/lib/dropdown.js +286 -384
- package/lib/element-ui.common.js +34136 -25458
- package/lib/empty.js +657 -0
- package/lib/footer.js +134 -200
- package/lib/form-item.js +401 -304
- package/lib/form.js +278 -297
- package/lib/header.js +134 -200
- package/lib/icon.js +123 -193
- package/lib/image.js +1005 -0
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +219 -0
- package/lib/input-number.js +442 -386
- package/lib/input.js +682 -512
- package/lib/link.js +267 -0
- package/lib/loading.js +278 -377
- package/lib/locale/format.js +14 -25
- package/lib/locale/index.js +19 -33
- package/lib/locale/lang/af-ZA.js +29 -8
- package/lib/locale/lang/ar.js +29 -14
- package/lib/locale/lang/az.js +127 -0
- package/lib/locale/lang/bg.js +35 -11
- package/lib/locale/lang/bn.js +126 -0
- package/lib/locale/lang/ca.js +24 -9
- package/lib/locale/lang/cs-CZ.js +19 -3
- package/lib/locale/lang/da.js +19 -3
- package/lib/locale/lang/de.js +19 -3
- package/lib/locale/lang/ee.js +24 -8
- package/lib/locale/lang/el.js +20 -4
- package/lib/locale/lang/en.js +25 -7
- package/lib/locale/lang/eo.js +128 -0
- package/lib/locale/lang/es.js +22 -7
- package/lib/locale/lang/eu.js +131 -0
- package/lib/locale/lang/fa.js +24 -8
- package/lib/locale/lang/fi.js +40 -24
- package/lib/locale/lang/fr.js +21 -4
- package/lib/locale/lang/he.js +29 -8
- package/lib/locale/lang/hr.js +131 -0
- package/lib/locale/lang/hu.js +20 -4
- package/lib/locale/lang/hy-AM.js +128 -0
- package/lib/locale/lang/id.js +23 -8
- package/lib/locale/lang/is.js +127 -0
- package/lib/locale/lang/it.js +21 -6
- package/lib/locale/lang/ja.js +19 -3
- package/lib/locale/lang/kg.js +128 -0
- package/lib/locale/lang/km.js +21 -6
- package/lib/locale/lang/ko.js +19 -3
- package/lib/locale/lang/ku.js +19 -3
- package/lib/locale/lang/kz.js +19 -3
- package/lib/locale/lang/lt.js +19 -3
- package/lib/locale/lang/lv.js +26 -10
- package/lib/locale/lang/mn.js +19 -3
- package/lib/locale/lang/ms.js +126 -0
- package/lib/locale/lang/nb-NO.js +28 -13
- package/lib/locale/lang/nl.js +19 -3
- package/lib/locale/lang/pl.js +19 -3
- package/lib/locale/lang/pt-br.js +18 -3
- package/lib/locale/lang/pt.js +35 -11
- package/lib/locale/lang/ro.js +19 -3
- package/lib/locale/lang/ru-RU.js +20 -5
- package/lib/locale/lang/si.js +130 -0
- package/lib/locale/lang/sk.js +23 -8
- package/lib/locale/lang/sl.js +26 -10
- package/lib/locale/lang/sr-Latn.js +127 -0
- package/lib/locale/lang/sr.js +131 -0
- package/lib/locale/lang/sv-SE.js +34 -15
- package/lib/locale/lang/sw.js +130 -0
- package/lib/locale/lang/ta.js +31 -9
- package/lib/locale/lang/th.js +30 -12
- package/lib/locale/lang/tk.js +27 -7
- package/lib/locale/lang/tr-TR.js +20 -4
- package/lib/locale/lang/ua.js +20 -5
- package/lib/locale/lang/ug-CN.js +22 -7
- package/lib/locale/lang/uz-UZ.js +127 -0
- package/lib/locale/lang/vi.js +23 -8
- package/lib/locale/lang/zh-CN.js +18 -3
- package/lib/locale/lang/zh-TW.js +25 -6
- package/lib/main.js +123 -192
- package/lib/menu-item-group.js +164 -225
- package/lib/menu-item.js +300 -333
- package/lib/menu.js +401 -576
- package/lib/message-box.js +730 -614
- package/lib/message.js +289 -327
- package/lib/mixins/emitter.js +2 -4
- package/lib/mixins/focus.js +3 -4
- package/lib/mixins/locale.js +5 -7
- package/lib/mixins/migrating.js +19 -21
- package/lib/notification.js +366 -394
- package/lib/option-group.js +198 -250
- package/lib/option.js +247 -291
- package/lib/page-header.js +248 -0
- package/lib/pagination.js +485 -635
- package/lib/popconfirm.js +381 -0
- package/lib/popover.js +361 -396
- package/lib/progress.js +387 -261
- package/lib/radio-button.js +319 -309
- package/lib/radio-group.js +224 -282
- package/lib/radio.js +347 -328
- package/lib/rate.js +286 -305
- package/lib/result.js +513 -0
- package/lib/row.js +59 -110
- package/lib/scrollbar.js +234 -344
- package/lib/select.js +1041 -806
- package/lib/skeleton-item.js +278 -0
- package/lib/skeleton.js +308 -0
- package/lib/slider.js +608 -467
- package/lib/spinner.js +160 -207
- package/lib/statistic.js +462 -0
- package/lib/step.js +270 -262
- package/lib/steps.js +198 -261
- package/lib/submenu.js +318 -420
- package/lib/switch.js +311 -281
- package/lib/tab-pane.js +185 -245
- package/lib/table-column.js +667 -414
- package/lib/table.js +3388 -2770
- package/lib/tabs.js +577 -648
- package/lib/tag.js +160 -227
- package/lib/theme-chalk/alert.css +1 -1
- package/lib/theme-chalk/aside.css +1 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/avatar.css +1 -0
- package/lib/theme-chalk/backtop.css +1 -0
- package/lib/theme-chalk/badge.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/breadcrumb.css +1 -1
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/card.css +1 -1
- package/lib/theme-chalk/carousel-item.css +1 -1
- package/lib/theme-chalk/carousel.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -0
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/checkbox.css +1 -1
- package/lib/theme-chalk/col.css +1 -1
- package/lib/theme-chalk/collapse.css +1 -1
- package/lib/theme-chalk/color-picker.css +1 -1
- package/lib/theme-chalk/container.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/descriptions-item.css +1 -0
- package/lib/theme-chalk/descriptions.css +1 -0
- package/lib/theme-chalk/dialog.css +1 -1
- package/lib/theme-chalk/display.css +1 -1
- package/lib/theme-chalk/divider.css +1 -0
- package/lib/theme-chalk/drawer.css +1 -0
- package/lib/theme-chalk/dropdown.css +1 -1
- package/lib/theme-chalk/empty.css +1 -0
- package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
- package/lib/theme-chalk/fonts/element-icons.woff +0 -0
- package/lib/theme-chalk/footer.css +1 -1
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/header.css +1 -1
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/image.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/link.css +1 -0
- package/lib/theme-chalk/loading.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/message.css +1 -1
- package/lib/theme-chalk/notification.css +1 -1
- package/lib/theme-chalk/option-group.css +1 -1
- package/lib/theme-chalk/option.css +1 -1
- package/lib/theme-chalk/page-header.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/popconfirm.css +1 -0
- package/lib/theme-chalk/popover.css +1 -1
- package/lib/theme-chalk/popper.css +1 -1
- package/lib/theme-chalk/progress.css +1 -1
- package/lib/theme-chalk/radio-button.css +1 -1
- package/lib/theme-chalk/radio.css +1 -1
- package/lib/theme-chalk/rate.css +1 -1
- package/lib/theme-chalk/reset.css +1 -1
- package/lib/theme-chalk/result.css +1 -0
- package/lib/theme-chalk/row.css +1 -1
- package/lib/theme-chalk/scrollbar.css +1 -1
- package/lib/theme-chalk/select-dropdown.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/skeleton-item.css +1 -0
- package/lib/theme-chalk/skeleton.css +1 -0
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/spinner.css +1 -1
- package/lib/theme-chalk/statistic.css +1 -0
- package/lib/theme-chalk/step.css +1 -1
- package/lib/theme-chalk/steps.css +1 -1
- package/lib/theme-chalk/switch.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/tag.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/lib/theme-chalk/timeline-item.css +1 -0
- package/lib/theme-chalk/timeline.css +1 -0
- package/lib/theme-chalk/tooltip.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/time-picker.js +1548 -1348
- package/lib/time-select.js +633 -853
- package/lib/timeline-item.js +301 -0
- package/lib/timeline.js +207 -0
- package/lib/tooltip.js +166 -240
- package/lib/transfer.js +731 -639
- package/lib/transitions/collapse-transition.js +13 -31
- package/lib/tree.js +1769 -1883
- package/lib/umd/locale/af-ZA.js +35 -14
- package/lib/umd/locale/ar.js +35 -20
- package/lib/umd/locale/az.js +143 -0
- package/lib/umd/locale/bg.js +41 -17
- package/lib/umd/locale/bn.js +142 -0
- package/lib/umd/locale/ca.js +30 -15
- package/lib/umd/locale/cs-CZ.js +25 -9
- package/lib/umd/locale/da.js +25 -9
- package/lib/umd/locale/de.js +25 -9
- package/lib/umd/locale/ee.js +30 -14
- package/lib/umd/locale/el.js +26 -10
- package/lib/umd/locale/en.js +31 -13
- package/lib/umd/locale/eo.js +144 -0
- package/lib/umd/locale/es.js +28 -13
- package/lib/umd/locale/eu.js +147 -0
- package/lib/umd/locale/fa.js +30 -14
- package/lib/umd/locale/fi.js +46 -30
- package/lib/umd/locale/fr.js +27 -10
- package/lib/umd/locale/he.js +35 -14
- package/lib/umd/locale/hr.js +147 -0
- package/lib/umd/locale/hu.js +26 -10
- package/lib/umd/locale/hy-AM.js +144 -0
- package/lib/umd/locale/id.js +29 -14
- package/lib/umd/locale/is.js +143 -0
- package/lib/umd/locale/it.js +27 -12
- package/lib/umd/locale/ja.js +25 -9
- package/lib/umd/locale/kg.js +144 -0
- package/lib/umd/locale/km.js +27 -12
- package/lib/umd/locale/ko.js +25 -9
- package/lib/umd/locale/ku.js +25 -9
- package/lib/umd/locale/kz.js +25 -9
- package/lib/umd/locale/lt.js +25 -9
- package/lib/umd/locale/lv.js +32 -16
- package/lib/umd/locale/mn.js +25 -9
- package/lib/umd/locale/ms.js +142 -0
- package/lib/umd/locale/nb-NO.js +34 -19
- package/lib/umd/locale/nl.js +25 -9
- package/lib/umd/locale/pl.js +25 -9
- package/lib/umd/locale/pt-br.js +24 -9
- package/lib/umd/locale/pt.js +41 -17
- package/lib/umd/locale/ro.js +25 -9
- package/lib/umd/locale/ru-RU.js +26 -11
- package/lib/umd/locale/si.js +146 -0
- package/lib/umd/locale/sk.js +29 -14
- package/lib/umd/locale/sl.js +32 -16
- package/lib/umd/locale/sr-Latn.js +143 -0
- package/lib/umd/locale/sr.js +147 -0
- package/lib/umd/locale/sv-SE.js +40 -21
- package/lib/umd/locale/sw.js +146 -0
- package/lib/umd/locale/ta.js +37 -15
- package/lib/umd/locale/th.js +36 -18
- package/lib/umd/locale/tk.js +33 -13
- package/lib/umd/locale/tr-TR.js +26 -10
- package/lib/umd/locale/ua.js +26 -11
- package/lib/umd/locale/ug-CN.js +28 -13
- package/lib/umd/locale/uz-UZ.js +143 -0
- package/lib/umd/locale/vi.js +29 -14
- package/lib/umd/locale/zh-CN.js +24 -9
- package/lib/umd/locale/zh-TW.js +31 -12
- package/lib/upload.js +1093 -1338
- package/lib/utils/after-leave.js +19 -16
- package/lib/utils/aria-dialog.js +11 -29
- package/lib/utils/aria-utils.js +7 -15
- package/lib/utils/clickoutside.js +16 -24
- package/lib/utils/date-util.js +267 -0
- package/lib/utils/date.js +56 -52
- package/lib/utils/dom.js +57 -27
- package/lib/utils/lodash.js +9421 -0
- package/lib/utils/menu/aria-menubar.js +6 -11
- package/lib/utils/menu/aria-menuitem.js +11 -22
- package/lib/utils/menu/aria-submenu.js +7 -16
- package/lib/utils/merge.js +9 -16
- package/lib/utils/popper.js +1141 -1170
- package/lib/utils/popup/index.js +24 -76
- package/lib/utils/popup/popup-manager.js +17 -49
- package/lib/utils/resize-event.js +11 -24
- package/lib/utils/scroll-into-view.js +4 -12
- package/lib/utils/scrollbar-width.js +8 -19
- package/lib/utils/types.js +38 -0
- package/lib/utils/util.js +165 -18
- package/lib/utils/vdom.js +5 -16
- package/lib/utils/vue-popper.js +10 -31
- package/package.json +131 -139
- package/packages/alert/src/main.vue +15 -8
- package/packages/autocomplete/src/autocomplete-suggestions.vue +4 -4
- package/packages/autocomplete/src/autocomplete.vue +45 -14
- package/packages/avatar/index.js +8 -0
- package/packages/avatar/src/main.vue +107 -0
- package/packages/backtop/index.js +8 -0
- package/packages/backtop/src/main.vue +110 -0
- package/packages/badge/src/main.vue +15 -3
- package/packages/button/src/button.vue +2 -1
- package/packages/calendar/index.js +8 -0
- package/packages/calendar/src/date-table.vue +200 -0
- package/packages/calendar/src/main.vue +280 -0
- package/packages/carousel/src/item.vue +36 -12
- package/packages/carousel/src/main.vue +83 -22
- package/packages/cascader/index.js +1 -1
- package/packages/cascader/src/cascader.vue +663 -0
- package/packages/cascader-panel/index.js +8 -0
- package/packages/cascader-panel/src/cascader-menu.vue +138 -0
- package/packages/cascader-panel/src/cascader-node.vue +246 -0
- package/packages/cascader-panel/src/cascader-panel.vue +391 -0
- package/packages/cascader-panel/src/node.js +166 -0
- package/packages/cascader-panel/src/store.js +58 -0
- package/packages/checkbox/src/checkbox-button.vue +11 -3
- package/packages/checkbox/src/checkbox-group.vue +1 -1
- package/packages/checkbox/src/checkbox.vue +15 -8
- package/packages/collapse/src/collapse-item.vue +12 -11
- package/packages/color-picker/src/color.js +1 -0
- package/packages/color-picker/src/components/picker-dropdown.vue +10 -6
- package/packages/color-picker/src/components/sv-panel.vue +1 -3
- package/packages/color-picker/src/main.vue +13 -4
- package/packages/date-picker/src/basic/date-table.vue +104 -168
- package/packages/date-picker/src/basic/month-table.vue +223 -58
- package/packages/date-picker/src/basic/time-spinner.vue +31 -15
- package/packages/date-picker/src/basic/year-table.vue +16 -5
- package/packages/date-picker/src/panel/date-range.vue +105 -48
- package/packages/date-picker/src/panel/date.vue +82 -39
- package/packages/date-picker/src/panel/month-range.vue +289 -0
- package/packages/date-picker/src/panel/time-range.vue +2 -2
- package/packages/date-picker/src/panel/time-select.vue +3 -2
- package/packages/date-picker/src/panel/time.vue +2 -2
- package/packages/date-picker/src/picker/date-picker.js +3 -0
- package/packages/date-picker/src/picker.vue +87 -43
- package/packages/descriptions/index.js +8 -0
- package/packages/descriptions/src/descriptions-item.js +30 -0
- package/packages/descriptions/src/descriptions-row.js +116 -0
- package/packages/descriptions/src/index.js +180 -0
- package/packages/descriptions-item/index.js +8 -0
- package/packages/dialog/src/component.vue +35 -12
- package/packages/divider/index.js +8 -0
- package/packages/divider/src/main.vue +37 -0
- package/packages/drawer/index.js +8 -0
- package/packages/drawer/src/main.vue +205 -0
- package/packages/dropdown/src/dropdown-item.vue +4 -2
- package/packages/dropdown/src/dropdown-menu.vue +6 -3
- package/packages/dropdown/src/dropdown.vue +55 -35
- package/packages/empty/index.js +7 -0
- package/packages/empty/src/img-empty.vue +132 -0
- package/packages/empty/src/index.vue +50 -0
- package/packages/form/src/form-item.vue +76 -44
- package/packages/form/src/form.vue +59 -11
- package/packages/form/src/label-wrap.vue +78 -0
- package/packages/image/index.js +8 -0
- package/packages/image/src/image-viewer.vue +330 -0
- package/packages/image/src/main.vue +249 -0
- package/packages/infinite-scroll/index.js +8 -0
- package/packages/infinite-scroll/src/main.js +150 -0
- package/packages/input/src/input.vue +186 -75
- package/packages/input-number/src/input-number.vue +52 -25
- package/packages/link/index.js +8 -0
- package/packages/link/src/main.vue +53 -0
- package/packages/loading/src/directive.js +9 -4
- package/packages/loading/src/index.js +5 -5
- package/packages/menu/src/menu-item.vue +4 -4
- package/packages/menu/src/menu.vue +24 -10
- package/packages/menu/src/submenu.vue +26 -12
- package/packages/message/src/main.js +35 -16
- package/packages/message/src/main.vue +12 -15
- package/packages/message-box/src/main.js +6 -4
- package/packages/message-box/src/main.vue +32 -24
- package/packages/notification/src/main.js +9 -8
- package/packages/page-header/index.js +8 -0
- package/packages/page-header/src/main.vue +30 -0
- package/packages/pagination/src/pagination.js +36 -77
- package/packages/popconfirm/index.js +8 -0
- package/packages/popconfirm/src/main.vue +104 -0
- package/packages/popover/src/directive.js +5 -1
- package/packages/popover/src/main.vue +49 -31
- package/packages/progress/src/progress.vue +118 -21
- package/packages/radio/index.js +1 -1
- package/packages/radio/src/radio-button.vue +7 -3
- package/packages/radio/src/radio-group.vue +9 -3
- package/packages/radio/src/radio.vue +6 -3
- package/packages/rate/src/main.vue +36 -37
- package/packages/result/index.js +8 -0
- package/packages/result/src/icon-error.vue +13 -0
- package/packages/result/src/icon-info.vue +13 -0
- package/packages/result/src/icon-success.vue +13 -0
- package/packages/result/src/icon-warning.vue +13 -0
- package/packages/result/src/index.vue +65 -0
- package/packages/row/src/row.js +2 -5
- package/packages/scrollbar/src/bar.js +5 -1
- package/packages/scrollbar/src/main.js +3 -3
- package/packages/select/src/option-group.vue +1 -1
- package/packages/select/src/option.vue +22 -9
- package/packages/select/src/select-dropdown.vue +1 -1
- package/packages/select/src/select.vue +126 -105
- package/packages/skeleton/index.js +8 -0
- package/packages/skeleton/src/img-placeholder.vue +16 -0
- package/packages/skeleton/src/index.vue +76 -0
- package/packages/skeleton/src/item.vue +22 -0
- package/packages/skeleton-item/index.js +8 -0
- package/packages/slider/src/button.vue +6 -9
- package/packages/slider/src/main.vue +60 -32
- package/packages/slider/src/marker.js +18 -0
- package/packages/spinner/src/spinner.vue +1 -1
- package/packages/statistic/index.js +8 -0
- package/packages/statistic/src/main.vue +204 -0
- package/packages/steps/src/step.vue +5 -1
- package/packages/steps/src/steps.vue +1 -1
- package/packages/switch/src/component.vue +18 -7
- package/packages/table/src/config.js +124 -0
- package/packages/table/src/filter-panel.vue +9 -18
- package/packages/table/src/layout-observer.js +2 -2
- package/packages/table/src/store/current.js +76 -0
- package/packages/table/src/store/expand.js +65 -0
- package/packages/table/src/store/helper.js +41 -0
- package/packages/table/src/store/index.js +147 -0
- package/packages/table/src/store/tree.js +209 -0
- package/packages/table/src/store/watcher.js +381 -0
- package/packages/table/src/table-body.js +221 -166
- package/packages/table/src/table-column.js +203 -308
- package/packages/table/src/table-footer.js +75 -65
- package/packages/table/src/table-header.js +68 -77
- package/packages/table/src/table-layout.js +43 -25
- package/packages/table/src/table-row.js +101 -0
- package/packages/table/src/table.vue +155 -99
- package/packages/table/src/util.js +164 -1
- package/packages/tabs/src/tab-bar.vue +7 -7
- package/packages/tabs/src/tab-nav.vue +35 -14
- package/packages/tabs/src/tab-pane.vue +10 -18
- package/packages/tabs/src/tabs.vue +45 -22
- package/packages/tag/src/tag.vue +35 -18
- package/packages/theme-chalk/gulpfile.js +33 -0
- package/packages/theme-chalk/package.json +36 -0
- package/packages/theme-chalk/src/alert.scss +57 -15
- package/packages/theme-chalk/src/autocomplete.scss +3 -4
- package/packages/theme-chalk/src/avatar.scss +51 -0
- package/packages/theme-chalk/src/backtop.scss +22 -0
- package/packages/theme-chalk/src/badge.scss +17 -1
- package/packages/theme-chalk/src/button.scss +40 -20
- package/packages/theme-chalk/src/calendar.scss +79 -0
- package/packages/theme-chalk/src/carousel.scss +33 -6
- package/packages/theme-chalk/src/cascader-panel.scss +120 -0
- package/packages/theme-chalk/src/cascader.scss +118 -112
- package/packages/theme-chalk/src/checkbox.scss +18 -17
- package/packages/theme-chalk/src/collapse.scss +16 -9
- package/packages/theme-chalk/src/common/popup.scss +3 -2
- package/packages/theme-chalk/src/common/var.scss +500 -184
- package/packages/theme-chalk/src/date-picker/date-picker.scss +1 -1
- package/packages/theme-chalk/src/date-picker/date-range-picker.scss +4 -7
- package/packages/theme-chalk/src/date-picker/date-table.scss +11 -11
- package/packages/theme-chalk/src/date-picker/month-table.scss +48 -6
- package/packages/theme-chalk/src/date-picker/picker-panel.scss +3 -3
- package/packages/theme-chalk/src/date-picker/picker.scss +7 -0
- package/packages/theme-chalk/src/date-picker/time-picker.scss +1 -0
- package/packages/theme-chalk/src/date-picker/year-table.scss +9 -2
- package/packages/theme-chalk/src/descriptions-item.scss +42 -0
- package/packages/theme-chalk/src/descriptions.scss +111 -0
- package/packages/theme-chalk/src/dialog.scss +5 -4
- package/packages/theme-chalk/src/divider.scss +47 -0
- package/packages/theme-chalk/src/drawer.scss +219 -0
- package/packages/theme-chalk/src/dropdown.scss +14 -1
- package/packages/theme-chalk/src/empty.scss +45 -0
- package/packages/theme-chalk/src/fonts/element-icons.ttf +0 -0
- package/packages/theme-chalk/src/fonts/element-icons.woff +0 -0
- package/packages/theme-chalk/src/form.scss +18 -23
- package/packages/theme-chalk/src/icon.scss +1052 -71
- package/packages/theme-chalk/src/image.scss +179 -0
- package/packages/theme-chalk/src/index.scss +20 -0
- package/packages/theme-chalk/src/input.scss +56 -5
- package/packages/theme-chalk/src/link.scss +81 -0
- package/packages/theme-chalk/src/main.scss +2 -0
- package/packages/theme-chalk/src/menu.scss +11 -8
- package/packages/theme-chalk/src/message-box.scss +14 -11
- package/packages/theme-chalk/src/message.scss +10 -10
- package/packages/theme-chalk/src/notification.scss +8 -7
- package/packages/theme-chalk/src/option.scss +1 -5
- package/packages/theme-chalk/src/page-header.scss +41 -0
- package/packages/theme-chalk/src/pagination.scss +9 -10
- package/packages/theme-chalk/src/popconfirm.scss +16 -0
- package/packages/theme-chalk/src/popover.scss +3 -2
- package/packages/theme-chalk/src/popper.scss +4 -4
- package/packages/theme-chalk/src/progress.scss +13 -1
- package/packages/theme-chalk/src/radio-button.scss +8 -8
- package/packages/theme-chalk/src/radio.scss +7 -6
- package/packages/theme-chalk/src/result.scss +61 -0
- package/packages/theme-chalk/src/row.scss +4 -0
- package/packages/theme-chalk/src/scrollbar.scss +1 -0
- package/packages/theme-chalk/src/select-dropdown.scss +5 -2
- package/packages/theme-chalk/src/select.scss +14 -6
- package/packages/theme-chalk/src/skeleton-item.scss +84 -0
- package/packages/theme-chalk/src/skeleton.scss +40 -0
- package/packages/theme-chalk/src/slider.scss +22 -0
- package/packages/theme-chalk/src/statistic.scss +38 -0
- package/packages/theme-chalk/src/switch.scss +0 -3
- package/packages/theme-chalk/src/table.scss +67 -60
- package/packages/theme-chalk/src/tabs.scss +58 -32
- package/packages/theme-chalk/src/tag.scss +85 -68
- package/packages/theme-chalk/src/timeline-item.scss +86 -0
- package/packages/theme-chalk/src/timeline.scss +14 -0
- package/packages/theme-chalk/src/tooltip.scss +1 -0
- package/packages/theme-chalk/src/transfer.scss +2 -2
- package/packages/theme-chalk/src/tree.scss +8 -5
- package/packages/theme-chalk/src/upload.scss +1 -0
- package/packages/timeline/index.js +8 -0
- package/packages/timeline/src/item.vue +73 -0
- package/packages/timeline/src/main.vue +33 -0
- package/packages/timeline-item/index.js +8 -0
- package/packages/tooltip/src/main.js +52 -26
- package/packages/transfer/src/main.vue +15 -7
- package/packages/transfer/src/transfer-panel.vue +4 -4
- package/packages/tree/src/model/node.js +27 -21
- package/packages/tree/src/model/tree-store.js +22 -16
- package/packages/tree/src/tree-node.vue +16 -10
- package/packages/tree/src/tree.vue +41 -27
- package/packages/upload/src/index.vue +42 -13
- package/packages/upload/src/upload-list.vue +46 -41
- package/src/directives/repeat-click.js +6 -4
- package/src/index.js +66 -8
- package/src/locale/format.js +1 -1
- package/src/locale/index.js +1 -1
- package/src/locale/lang/af-ZA.js +15 -1
- package/src/locale/lang/ar.js +26 -12
- package/src/locale/lang/az.js +126 -0
- package/src/locale/lang/bg.js +15 -1
- package/src/locale/lang/bn.js +126 -0
- package/src/locale/lang/ca.js +21 -7
- package/src/locale/lang/cs-CZ.js +15 -1
- package/src/locale/lang/da.js +15 -1
- package/src/locale/lang/de.js +15 -1
- package/src/locale/lang/ee.js +20 -6
- package/src/locale/lang/el.js +16 -2
- package/src/locale/lang/en.js +16 -2
- package/src/locale/lang/eo.js +123 -0
- package/src/locale/lang/es.js +19 -5
- package/src/locale/lang/eu.js +123 -0
- package/src/locale/lang/fa.js +20 -6
- package/src/locale/lang/fi.js +36 -22
- package/src/locale/lang/fr.js +15 -1
- package/src/locale/lang/he.js +15 -1
- package/src/locale/lang/hr.js +123 -0
- package/src/locale/lang/hu.js +16 -2
- package/src/locale/lang/hy-AM.js +123 -0
- package/src/locale/lang/id.js +20 -6
- package/src/locale/lang/is.js +124 -0
- package/src/locale/lang/it.js +18 -4
- package/src/locale/lang/ja.js +15 -1
- package/src/locale/lang/kg.js +123 -0
- package/src/locale/lang/km.js +18 -4
- package/src/locale/lang/ko.js +15 -1
- package/src/locale/lang/ku.js +15 -1
- package/src/locale/lang/kz.js +15 -1
- package/src/locale/lang/lt.js +15 -1
- package/src/locale/lang/lv.js +22 -8
- package/src/locale/lang/mn.js +15 -1
- package/src/locale/lang/ms.js +122 -0
- package/src/locale/lang/nb-NO.js +25 -11
- package/src/locale/lang/nl.js +15 -1
- package/src/locale/lang/pl.js +15 -1
- package/src/locale/lang/pt-br.js +15 -1
- package/src/locale/lang/pt.js +15 -1
- package/src/locale/lang/ro.js +15 -1
- package/src/locale/lang/ru-RU.js +17 -3
- package/src/locale/lang/si.js +123 -0
- package/src/locale/lang/sk.js +20 -6
- package/src/locale/lang/sl.js +21 -7
- package/src/locale/lang/sr-Latn.js +123 -0
- package/src/locale/lang/sr.js +123 -0
- package/src/locale/lang/sv-SE.js +23 -9
- package/src/locale/lang/sw.js +123 -0
- package/src/locale/lang/ta.js +15 -1
- package/src/locale/lang/th.js +22 -8
- package/src/locale/lang/tk.js +15 -1
- package/src/locale/lang/tr-TR.js +16 -2
- package/src/locale/lang/ua.js +17 -3
- package/src/locale/lang/ug-CN.js +19 -5
- package/src/locale/lang/uz-UZ.js +123 -0
- package/src/locale/lang/vi.js +20 -6
- package/src/locale/lang/zh-CN.js +15 -1
- package/src/locale/lang/zh-TW.js +15 -1
- package/src/mixins/locale.js +1 -1
- package/src/mixins/migrating.js +6 -3
- package/src/transitions/collapse-transition.js +1 -1
- package/src/utils/aria-utils.js +2 -1
- package/src/utils/clickoutside.js +1 -1
- package/{packages/date-picker/src/util/index.js → src/utils/date-util.js} +69 -27
- package/src/utils/date.js +54 -30
- package/src/utils/dom.js +55 -2
- package/src/utils/lodash.js +18075 -0
- package/src/utils/merge.js +3 -13
- package/src/utils/popup/index.js +3 -11
- package/src/utils/popup/popup-manager.js +3 -3
- package/src/utils/resize-event.js +2 -1
- package/src/utils/types.js +38 -0
- package/src/utils/util.js +161 -0
- package/src/utils/vdom.js +1 -5
- package/src/utils/vue-popper.js +2 -1
- package/types/alert.d.ts +4 -0
- package/types/autocomplete.d.ts +6 -3
- package/types/avatar.d.ts +20 -0
- package/types/backtop.d.ts +16 -0
- package/types/calendar.d.ts +15 -0
- package/types/carousel.d.ts +4 -0
- package/types/cascader-panel.d.ts +72 -0
- package/types/cascader.d.ts +29 -21
- package/types/collapse-item.d.ts +3 -0
- package/types/descriptions-item.d.ts +37 -0
- package/types/descriptions.d.ts +52 -0
- package/types/dialog.d.ts +3 -0
- package/types/divider.d.ts +12 -0
- package/types/drawer.d.ts +63 -0
- package/types/dropdown-item.d.ts +3 -0
- package/types/dropdown.d.ts +12 -0
- package/types/element-ui.d.ts +91 -3
- package/types/empty.d.ts +31 -0
- package/types/form.d.ts +6 -6
- package/types/icon.d.ts +7 -0
- package/types/image.d.ts +43 -0
- package/types/infinite-scroll.d.ts +6 -0
- package/types/input-number.d.ts +4 -1
- package/types/input.d.ts +16 -1
- package/types/link.d.ts +25 -0
- package/types/loading.d.ts +3 -1
- package/types/message-box.d.ts +14 -4
- package/types/message.d.ts +17 -2
- package/types/page-header.d.ts +10 -0
- package/types/pagination.d.ts +3 -0
- package/types/popconfirm.d.ts +29 -0
- package/types/popover.d.ts +7 -1
- package/types/progress.d.ts +7 -1
- package/types/rate.d.ts +16 -4
- package/types/result.d.ts +33 -0
- package/types/select.d.ts +9 -0
- package/types/skeleton-item.d.ts +7 -0
- package/types/skeleton.d.ts +33 -0
- package/types/slider.d.ts +6 -0
- package/types/spinner.d.ts +16 -0
- package/types/statistic.d.ts +37 -0
- package/types/submenu.d.ts +1 -1
- package/types/switch.d.ts +3 -0
- package/types/table-column.d.ts +1 -1
- package/types/table.d.ts +58 -3
- package/types/tabs.d.ts +4 -1
- package/types/tag.d.ts +5 -1
- package/types/timeline-item.d.ts +20 -0
- package/types/timeline.d.ts +6 -0
- package/types/tooltip.d.ts +3 -0
- package/types/tree.d.ts +120 -97
- package/types/upload.d.ts +7 -4
- package/web-types.json +4195 -0
- package/CHANGELOG.en-US.md +0 -576
- package/CHANGELOG.es.md +0 -581
- package/CHANGELOG.zh-CN.md +0 -576
- package/lib/utils/sync.js +0 -59
- package/packages/carousel/_index.js +0 -10
- package/packages/carousel/cooking.conf.js +0 -6
- package/packages/carousel/package.json +0 -17
- package/packages/cascader/cooking.conf.js +0 -18
- package/packages/cascader/package.json +0 -15
- package/packages/cascader/src/main.vue +0 -438
- package/packages/cascader/src/menu.vue +0 -369
- package/packages/color-picker/cooking.conf.js +0 -6
- package/packages/color-picker/package.json +0 -15
- package/packages/date-picker/README.md +0 -64
- package/packages/date-picker/_index.js +0 -12
- package/packages/date-picker/cooking.conf.js +0 -6
- package/packages/date-picker/package.json +0 -15
- package/packages/loading/README.md +0 -66
- package/packages/loading/cooking.conf.js +0 -6
- package/packages/loading/package.json +0 -15
- package/packages/pagination/README.md +0 -59
- package/packages/pagination/cooking.conf.js +0 -6
- package/packages/pagination/package.json +0 -15
- package/packages/table/README.md +0 -106
- package/packages/table/_index.js +0 -10
- package/packages/table/cooking.conf.js +0 -6
- package/packages/table/package.json +0 -17
- package/packages/table/src/table-store.js +0 -619
- package/packages/theme-chalk/lib/alert.css +0 -1
- package/packages/theme-chalk/lib/aside.css +0 -1
- package/packages/theme-chalk/lib/autocomplete.css +0 -1
- package/packages/theme-chalk/lib/badge.css +0 -1
- package/packages/theme-chalk/lib/base.css +0 -1
- package/packages/theme-chalk/lib/breadcrumb.css +0 -1
- package/packages/theme-chalk/lib/button.css +0 -1
- package/packages/theme-chalk/lib/card.css +0 -1
- package/packages/theme-chalk/lib/carousel-item.css +0 -1
- package/packages/theme-chalk/lib/carousel.css +0 -1
- package/packages/theme-chalk/lib/cascader.css +0 -1
- package/packages/theme-chalk/lib/checkbox.css +0 -1
- package/packages/theme-chalk/lib/col.css +0 -1
- package/packages/theme-chalk/lib/collapse-item.css +0 -0
- package/packages/theme-chalk/lib/collapse.css +0 -1
- package/packages/theme-chalk/lib/color-picker.css +0 -1
- package/packages/theme-chalk/lib/container.css +0 -1
- package/packages/theme-chalk/lib/date-picker.css +0 -1
- package/packages/theme-chalk/lib/dialog.css +0 -1
- package/packages/theme-chalk/lib/display.css +0 -1
- package/packages/theme-chalk/lib/dropdown-item.css +0 -0
- package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
- package/packages/theme-chalk/lib/dropdown.css +0 -1
- package/packages/theme-chalk/lib/fonts/element-icons.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/element-icons.woff +0 -0
- package/packages/theme-chalk/lib/footer.css +0 -1
- package/packages/theme-chalk/lib/form-item.css +0 -0
- package/packages/theme-chalk/lib/form.css +0 -1
- package/packages/theme-chalk/lib/header.css +0 -1
- package/packages/theme-chalk/lib/icon.css +0 -1
- package/packages/theme-chalk/lib/index.css +0 -1
- package/packages/theme-chalk/lib/input-number.css +0 -1
- package/packages/theme-chalk/lib/input.css +0 -1
- package/packages/theme-chalk/lib/loading.css +0 -1
- package/packages/theme-chalk/lib/main.css +0 -1
- package/packages/theme-chalk/lib/menu-item-group.css +0 -0
- package/packages/theme-chalk/lib/menu-item.css +0 -0
- package/packages/theme-chalk/lib/menu.css +0 -1
- package/packages/theme-chalk/lib/message-box.css +0 -1
- package/packages/theme-chalk/lib/message.css +0 -1
- package/packages/theme-chalk/lib/notification.css +0 -1
- package/packages/theme-chalk/lib/option-group.css +0 -1
- package/packages/theme-chalk/lib/option.css +0 -1
- package/packages/theme-chalk/lib/pagination.css +0 -1
- package/packages/theme-chalk/lib/popover.css +0 -1
- package/packages/theme-chalk/lib/popper.css +0 -1
- package/packages/theme-chalk/lib/progress.css +0 -1
- package/packages/theme-chalk/lib/radio-button.css +0 -1
- package/packages/theme-chalk/lib/radio-group.css +0 -1
- package/packages/theme-chalk/lib/radio.css +0 -1
- package/packages/theme-chalk/lib/rate.css +0 -1
- package/packages/theme-chalk/lib/reset.css +0 -1
- package/packages/theme-chalk/lib/row.css +0 -1
- package/packages/theme-chalk/lib/scrollbar.css +0 -1
- package/packages/theme-chalk/lib/select-dropdown.css +0 -1
- package/packages/theme-chalk/lib/select.css +0 -1
- package/packages/theme-chalk/lib/slider.css +0 -1
- package/packages/theme-chalk/lib/spinner.css +0 -1
- package/packages/theme-chalk/lib/step.css +0 -1
- package/packages/theme-chalk/lib/steps.css +0 -1
- package/packages/theme-chalk/lib/submenu.css +0 -0
- package/packages/theme-chalk/lib/switch.css +0 -1
- package/packages/theme-chalk/lib/tab-pane.css +0 -0
- package/packages/theme-chalk/lib/table-column.css +0 -1
- package/packages/theme-chalk/lib/table.css +0 -1
- package/packages/theme-chalk/lib/tabs.css +0 -1
- package/packages/theme-chalk/lib/tag.css +0 -1
- package/packages/theme-chalk/lib/time-picker.css +0 -1
- package/packages/theme-chalk/lib/time-select.css +0 -1
- package/packages/theme-chalk/lib/tooltip.css +0 -1
- package/packages/theme-chalk/lib/transfer.css +0 -1
- package/packages/theme-chalk/lib/tree.css +0 -1
- package/packages/theme-chalk/lib/upload.css +0 -1
- package/packages/upload/README.md +0 -67
- package/packages/upload/cooking.conf.js +0 -6
- package/packages/upload/package.json +0 -16
- package/packages/upload/src/iframe-upload.vue +0 -167
- package/src/utils/sync.js +0 -54
- /package/{packages/theme-chalk/lib/breadcrumb-item.css → lib/theme-chalk/infinite-scroll.css} +0 -0
- /package/{packages/theme-chalk/lib/button-group.css → lib/theme-chalk/infiniteScroll.css} +0 -0
- /package/packages/theme-chalk/{lib/checkbox-button.css → src/infinite-scroll.scss} +0 -0
- /package/packages/theme-chalk/{lib/checkbox-group.css → src/infiniteScroll.scss} +0 -0
package/lib/slider.js
CHANGED
|
@@ -1,216 +1,348 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ const __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ const getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter/value functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ if(Array.isArray(definition)) {
|
|
24
|
+
/******/ var i = 0;
|
|
25
|
+
/******/ while(i < definition.length) {
|
|
26
|
+
/******/ var key = definition[i++];
|
|
27
|
+
/******/ var binding = definition[i++];
|
|
28
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
29
|
+
/******/ if(binding === 0) {
|
|
30
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
31
|
+
/******/ } else {
|
|
32
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
33
|
+
/******/ }
|
|
34
|
+
/******/ } else if(binding === 0) { i++; }
|
|
35
|
+
/******/ }
|
|
36
|
+
/******/ } else {
|
|
37
|
+
/******/ for(var key in definition) {
|
|
38
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
39
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
40
|
+
/******/ }
|
|
41
|
+
/******/ }
|
|
42
|
+
/******/ }
|
|
18
43
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, {
|
|
41
|
-
/******/ configurable: false,
|
|
42
|
-
/******/ enumerable: true,
|
|
43
|
-
/******/ get: getter
|
|
44
|
-
/******/ });
|
|
45
|
-
/******/ }
|
|
46
|
-
/******/ };
|
|
47
|
-
/******/
|
|
48
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
49
|
-
/******/ __webpack_require__.n = function(module) {
|
|
50
|
-
/******/ var getter = module && module.__esModule ?
|
|
51
|
-
/******/ function getDefault() { return module['default']; } :
|
|
52
|
-
/******/ function getModuleExports() { return module; };
|
|
53
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
54
|
-
/******/ return getter;
|
|
55
|
-
/******/ };
|
|
56
|
-
/******/
|
|
57
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
58
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
59
|
-
/******/
|
|
60
|
-
/******/ // __webpack_public_path__
|
|
61
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
62
|
-
/******/
|
|
63
|
-
/******/ // Load entry module and return exports
|
|
64
|
-
/******/ return __webpack_require__(__webpack_require__.s = 303);
|
|
65
|
-
/******/ })
|
|
44
|
+
/******/ })();
|
|
45
|
+
/******/
|
|
46
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
47
|
+
/******/ (() => {
|
|
48
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
49
|
+
/******/ })();
|
|
50
|
+
/******/
|
|
66
51
|
/************************************************************************/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
52
|
+
let __webpack_exports__ = {};
|
|
53
|
+
|
|
54
|
+
// EXPORTS
|
|
55
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
56
|
+
"default": () => (/* binding */ slider)
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/slider/src/main.vue?vue&type=template&id=4f769e3c
|
|
60
|
+
var render = function () {
|
|
61
|
+
var _vm = this
|
|
62
|
+
var _h = _vm.$createElement
|
|
63
|
+
var _c = _vm._self._c || _h
|
|
64
|
+
return _c(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
staticClass: "el-slider",
|
|
68
|
+
class: {
|
|
69
|
+
"is-vertical": _vm.vertical,
|
|
70
|
+
"el-slider--with-input": _vm.showInput,
|
|
71
|
+
},
|
|
72
|
+
attrs: {
|
|
73
|
+
role: "slider",
|
|
74
|
+
"aria-valuemin": _vm.min,
|
|
75
|
+
"aria-valuemax": _vm.max,
|
|
76
|
+
"aria-orientation": _vm.vertical ? "vertical" : "horizontal",
|
|
77
|
+
"aria-disabled": _vm.sliderDisabled,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
[
|
|
81
|
+
_vm.showInput && !_vm.range
|
|
82
|
+
? _c("el-input-number", {
|
|
83
|
+
ref: "input",
|
|
84
|
+
staticClass: "el-slider__input",
|
|
85
|
+
attrs: {
|
|
86
|
+
step: _vm.step,
|
|
87
|
+
disabled: _vm.sliderDisabled,
|
|
88
|
+
controls: _vm.showInputControls,
|
|
89
|
+
min: _vm.min,
|
|
90
|
+
max: _vm.max,
|
|
91
|
+
debounce: _vm.debounce,
|
|
92
|
+
size: _vm.inputSize,
|
|
93
|
+
},
|
|
94
|
+
on: { change: _vm.emitChange },
|
|
95
|
+
model: {
|
|
96
|
+
value: _vm.firstValue,
|
|
97
|
+
callback: function ($$v) {
|
|
98
|
+
_vm.firstValue = $$v
|
|
99
|
+
},
|
|
100
|
+
expression: "firstValue",
|
|
101
|
+
},
|
|
102
|
+
})
|
|
103
|
+
: _vm._e(),
|
|
104
|
+
_c(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
ref: "slider",
|
|
108
|
+
staticClass: "el-slider__runway",
|
|
109
|
+
class: { "show-input": _vm.showInput, disabled: _vm.sliderDisabled },
|
|
110
|
+
style: _vm.runwayStyle,
|
|
111
|
+
on: { click: _vm.onSliderClick },
|
|
112
|
+
},
|
|
113
|
+
[
|
|
114
|
+
_c("div", { staticClass: "el-slider__bar", style: _vm.barStyle }),
|
|
115
|
+
_c("slider-button", {
|
|
116
|
+
ref: "button1",
|
|
117
|
+
attrs: {
|
|
118
|
+
vertical: _vm.vertical,
|
|
119
|
+
"tooltip-class": _vm.tooltipClass,
|
|
120
|
+
},
|
|
121
|
+
model: {
|
|
122
|
+
value: _vm.firstValue,
|
|
123
|
+
callback: function ($$v) {
|
|
124
|
+
_vm.firstValue = $$v
|
|
125
|
+
},
|
|
126
|
+
expression: "firstValue",
|
|
127
|
+
},
|
|
128
|
+
}),
|
|
129
|
+
_vm.range
|
|
130
|
+
? _c("slider-button", {
|
|
131
|
+
ref: "button2",
|
|
132
|
+
attrs: {
|
|
133
|
+
vertical: _vm.vertical,
|
|
134
|
+
"tooltip-class": _vm.tooltipClass,
|
|
135
|
+
},
|
|
136
|
+
model: {
|
|
137
|
+
value: _vm.secondValue,
|
|
138
|
+
callback: function ($$v) {
|
|
139
|
+
_vm.secondValue = $$v
|
|
140
|
+
},
|
|
141
|
+
expression: "secondValue",
|
|
142
|
+
},
|
|
143
|
+
})
|
|
144
|
+
: _vm._e(),
|
|
145
|
+
_vm._l(_vm.stops, function (item, key) {
|
|
146
|
+
return _vm.showStops
|
|
147
|
+
? _c("div", {
|
|
148
|
+
key: key,
|
|
149
|
+
staticClass: "el-slider__stop",
|
|
150
|
+
style: _vm.getStopStyle(item),
|
|
151
|
+
})
|
|
152
|
+
: _vm._e()
|
|
153
|
+
}),
|
|
154
|
+
_vm.markList.length > 0
|
|
155
|
+
? [
|
|
156
|
+
_c(
|
|
157
|
+
"div",
|
|
158
|
+
_vm._l(_vm.markList, function (item, key) {
|
|
159
|
+
return _c("div", {
|
|
160
|
+
key: key,
|
|
161
|
+
staticClass: "el-slider__stop el-slider__marks-stop",
|
|
162
|
+
style: _vm.getStopStyle(item.position),
|
|
163
|
+
})
|
|
164
|
+
}),
|
|
165
|
+
0
|
|
166
|
+
),
|
|
167
|
+
_c(
|
|
168
|
+
"div",
|
|
169
|
+
{ staticClass: "el-slider__marks" },
|
|
170
|
+
_vm._l(_vm.markList, function (item, key) {
|
|
171
|
+
return _c("slider-marker", {
|
|
172
|
+
key: key,
|
|
173
|
+
style: _vm.getStopStyle(item.position),
|
|
174
|
+
attrs: { mark: item.mark },
|
|
175
|
+
})
|
|
176
|
+
}),
|
|
177
|
+
1
|
|
178
|
+
),
|
|
179
|
+
]
|
|
180
|
+
: _vm._e(),
|
|
181
|
+
],
|
|
182
|
+
2
|
|
183
|
+
),
|
|
184
|
+
],
|
|
185
|
+
1
|
|
186
|
+
)
|
|
174
187
|
}
|
|
188
|
+
var staticRenderFns = []
|
|
189
|
+
render._withStripped = true
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
;// ./packages/slider/src/main.vue?vue&type=template&id=4f769e3c
|
|
193
|
+
|
|
194
|
+
;// external "mazey-element-ui/lib/input-number"
|
|
195
|
+
const input_number_namespaceObject = require("mazey-element-ui/lib/input-number");
|
|
196
|
+
var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_namespaceObject);
|
|
197
|
+
;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/slider/src/button.vue?vue&type=template&id=926088e4
|
|
198
|
+
var buttonvue_type_template_id_926088e4_render = function () {
|
|
199
|
+
var _vm = this
|
|
200
|
+
var _h = _vm.$createElement
|
|
201
|
+
var _c = _vm._self._c || _h
|
|
202
|
+
return _c(
|
|
203
|
+
"div",
|
|
204
|
+
{
|
|
205
|
+
ref: "button",
|
|
206
|
+
staticClass: "el-slider__button-wrapper",
|
|
207
|
+
class: { hover: _vm.hovering, dragging: _vm.dragging },
|
|
208
|
+
style: _vm.wrapperStyle,
|
|
209
|
+
attrs: { tabindex: "0" },
|
|
210
|
+
on: {
|
|
211
|
+
mouseenter: _vm.handleMouseEnter,
|
|
212
|
+
mouseleave: _vm.handleMouseLeave,
|
|
213
|
+
mousedown: _vm.onButtonDown,
|
|
214
|
+
touchstart: _vm.onButtonDown,
|
|
215
|
+
focus: _vm.handleMouseEnter,
|
|
216
|
+
blur: _vm.handleMouseLeave,
|
|
217
|
+
keydown: [
|
|
218
|
+
function ($event) {
|
|
219
|
+
if (
|
|
220
|
+
!("button" in $event) &&
|
|
221
|
+
_vm._k($event.keyCode, "left", 37, $event.key, [
|
|
222
|
+
"Left",
|
|
223
|
+
"ArrowLeft",
|
|
224
|
+
])
|
|
225
|
+
) {
|
|
226
|
+
return null
|
|
227
|
+
}
|
|
228
|
+
if ("button" in $event && $event.button !== 0) {
|
|
229
|
+
return null
|
|
230
|
+
}
|
|
231
|
+
return _vm.onLeftKeyDown($event)
|
|
232
|
+
},
|
|
233
|
+
function ($event) {
|
|
234
|
+
if (
|
|
235
|
+
!("button" in $event) &&
|
|
236
|
+
_vm._k($event.keyCode, "right", 39, $event.key, [
|
|
237
|
+
"Right",
|
|
238
|
+
"ArrowRight",
|
|
239
|
+
])
|
|
240
|
+
) {
|
|
241
|
+
return null
|
|
242
|
+
}
|
|
243
|
+
if ("button" in $event && $event.button !== 2) {
|
|
244
|
+
return null
|
|
245
|
+
}
|
|
246
|
+
return _vm.onRightKeyDown($event)
|
|
247
|
+
},
|
|
248
|
+
function ($event) {
|
|
249
|
+
if (
|
|
250
|
+
!("button" in $event) &&
|
|
251
|
+
_vm._k($event.keyCode, "down", 40, $event.key, [
|
|
252
|
+
"Down",
|
|
253
|
+
"ArrowDown",
|
|
254
|
+
])
|
|
255
|
+
) {
|
|
256
|
+
return null
|
|
257
|
+
}
|
|
258
|
+
$event.preventDefault()
|
|
259
|
+
return _vm.onLeftKeyDown($event)
|
|
260
|
+
},
|
|
261
|
+
function ($event) {
|
|
262
|
+
if (
|
|
263
|
+
!("button" in $event) &&
|
|
264
|
+
_vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])
|
|
265
|
+
) {
|
|
266
|
+
return null
|
|
267
|
+
}
|
|
268
|
+
$event.preventDefault()
|
|
269
|
+
return _vm.onRightKeyDown($event)
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
[
|
|
275
|
+
_c(
|
|
276
|
+
"el-tooltip",
|
|
277
|
+
{
|
|
278
|
+
ref: "tooltip",
|
|
279
|
+
attrs: {
|
|
280
|
+
placement: "top",
|
|
281
|
+
"popper-class": _vm.tooltipClass,
|
|
282
|
+
disabled: !_vm.showTooltip,
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
[
|
|
286
|
+
_c("span", { attrs: { slot: "content" }, slot: "content" }, [
|
|
287
|
+
_vm._v(_vm._s(_vm.formatValue)),
|
|
288
|
+
]),
|
|
289
|
+
_c("div", {
|
|
290
|
+
staticClass: "el-slider__button",
|
|
291
|
+
class: { hover: _vm.hovering, dragging: _vm.dragging },
|
|
292
|
+
}),
|
|
293
|
+
]
|
|
294
|
+
),
|
|
295
|
+
],
|
|
296
|
+
1
|
|
297
|
+
)
|
|
298
|
+
}
|
|
299
|
+
var buttonvue_type_template_id_926088e4_staticRenderFns = []
|
|
300
|
+
buttonvue_type_template_id_926088e4_render._withStripped = true
|
|
175
301
|
|
|
176
302
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
/***/ 1:
|
|
180
|
-
/***/ (function(module, exports) {
|
|
181
|
-
|
|
182
|
-
module.exports = require("element-ui/lib/mixins/emitter");
|
|
183
|
-
|
|
184
|
-
/***/ }),
|
|
185
|
-
|
|
186
|
-
/***/ 100:
|
|
187
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
188
|
-
|
|
189
|
-
"use strict";
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
exports.__esModule = true;
|
|
193
|
-
|
|
194
|
-
var _tooltip = __webpack_require__(23);
|
|
303
|
+
;// ./packages/slider/src/button.vue?vue&type=template&id=926088e4
|
|
195
304
|
|
|
196
|
-
|
|
305
|
+
;// external "mazey-element-ui/lib/tooltip"
|
|
306
|
+
const tooltip_namespaceObject = require("mazey-element-ui/lib/tooltip");
|
|
307
|
+
var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_namespaceObject);
|
|
308
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/slider/src/button.vue?vue&type=script&lang=js
|
|
309
|
+
//
|
|
310
|
+
//
|
|
311
|
+
//
|
|
312
|
+
//
|
|
313
|
+
//
|
|
314
|
+
//
|
|
315
|
+
//
|
|
316
|
+
//
|
|
317
|
+
//
|
|
318
|
+
//
|
|
319
|
+
//
|
|
320
|
+
//
|
|
321
|
+
//
|
|
322
|
+
//
|
|
323
|
+
//
|
|
324
|
+
//
|
|
325
|
+
//
|
|
326
|
+
//
|
|
327
|
+
//
|
|
328
|
+
//
|
|
329
|
+
//
|
|
330
|
+
//
|
|
331
|
+
//
|
|
332
|
+
//
|
|
333
|
+
//
|
|
334
|
+
//
|
|
335
|
+
//
|
|
336
|
+
//
|
|
337
|
+
//
|
|
197
338
|
|
|
198
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
199
339
|
|
|
200
|
-
|
|
340
|
+
/* harmony default export */ const buttonvue_type_script_lang_js = ({
|
|
201
341
|
name: 'ElSliderButton',
|
|
202
|
-
|
|
203
342
|
components: {
|
|
204
|
-
ElTooltip:
|
|
343
|
+
ElTooltip: (tooltip_default())
|
|
205
344
|
},
|
|
206
|
-
|
|
207
345
|
props: {
|
|
208
|
-
buttonStyle: {
|
|
209
|
-
type: [Object, String],
|
|
210
|
-
default: function _default() {
|
|
211
|
-
return {};
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
346
|
value: {
|
|
215
347
|
type: Number,
|
|
216
348
|
default: 0
|
|
@@ -221,7 +353,6 @@ exports.default = {
|
|
|
221
353
|
},
|
|
222
354
|
tooltipClass: String
|
|
223
355
|
},
|
|
224
|
-
|
|
225
356
|
data: function data() {
|
|
226
357
|
return {
|
|
227
358
|
hovering: false,
|
|
@@ -236,8 +367,6 @@ exports.default = {
|
|
|
236
367
|
oldValue: this.value
|
|
237
368
|
};
|
|
238
369
|
},
|
|
239
|
-
|
|
240
|
-
|
|
241
370
|
computed: {
|
|
242
371
|
disabled: function disabled() {
|
|
243
372
|
return this.$parent.sliderDisabled;
|
|
@@ -258,7 +387,7 @@ exports.default = {
|
|
|
258
387
|
return this.$parent.precision;
|
|
259
388
|
},
|
|
260
389
|
currentPosition: function currentPosition() {
|
|
261
|
-
return (this.value - this.min) / (this.max - this.min) * 100 +
|
|
390
|
+
return (this.value - this.min) / (this.max - this.min) * 100 + "%";
|
|
262
391
|
},
|
|
263
392
|
enableFormat: function enableFormat() {
|
|
264
393
|
return this.$parent.formatTooltip instanceof Function;
|
|
@@ -267,16 +396,18 @@ exports.default = {
|
|
|
267
396
|
return this.enableFormat && this.$parent.formatTooltip(this.value) || this.value;
|
|
268
397
|
},
|
|
269
398
|
wrapperStyle: function wrapperStyle() {
|
|
270
|
-
return
|
|
399
|
+
return this.vertical ? {
|
|
400
|
+
bottom: this.currentPosition
|
|
401
|
+
} : {
|
|
402
|
+
left: this.currentPosition
|
|
403
|
+
};
|
|
271
404
|
}
|
|
272
405
|
},
|
|
273
|
-
|
|
274
406
|
watch: {
|
|
275
407
|
dragging: function dragging(val) {
|
|
276
408
|
this.$parent.dragging = val;
|
|
277
409
|
}
|
|
278
410
|
},
|
|
279
|
-
|
|
280
411
|
methods: {
|
|
281
412
|
displayTooltip: function displayTooltip() {
|
|
282
413
|
this.$refs.tooltip && (this.$refs.tooltip.showPopper = true);
|
|
@@ -306,11 +437,13 @@ exports.default = {
|
|
|
306
437
|
if (this.disabled) return;
|
|
307
438
|
this.newPosition = parseFloat(this.currentPosition) - this.step / (this.max - this.min) * 100;
|
|
308
439
|
this.setPosition(this.newPosition);
|
|
440
|
+
this.$parent.emitChange();
|
|
309
441
|
},
|
|
310
442
|
onRightKeyDown: function onRightKeyDown() {
|
|
311
443
|
if (this.disabled) return;
|
|
312
444
|
this.newPosition = parseFloat(this.currentPosition) + this.step / (this.max - this.min) * 100;
|
|
313
445
|
this.setPosition(this.newPosition);
|
|
446
|
+
this.$parent.emitChange();
|
|
314
447
|
},
|
|
315
448
|
onDragStart: function onDragStart(event) {
|
|
316
449
|
this.dragging = true;
|
|
@@ -350,7 +483,6 @@ exports.default = {
|
|
|
350
483
|
},
|
|
351
484
|
onDragEnd: function onDragEnd() {
|
|
352
485
|
var _this = this;
|
|
353
|
-
|
|
354
486
|
if (this.dragging) {
|
|
355
487
|
/*
|
|
356
488
|
* 防止在 mouseup 后立即触发 click,导致滑块有几率产生一小段位移
|
|
@@ -373,8 +505,7 @@ exports.default = {
|
|
|
373
505
|
},
|
|
374
506
|
setPosition: function setPosition(newPosition) {
|
|
375
507
|
var _this2 = this;
|
|
376
|
-
|
|
377
|
-
if (newPosition === null) return;
|
|
508
|
+
if (newPosition === null || isNaN(newPosition)) return;
|
|
378
509
|
if (newPosition < 0) {
|
|
379
510
|
newPosition = 0;
|
|
380
511
|
} else if (newPosition > 100) {
|
|
@@ -386,6 +517,7 @@ exports.default = {
|
|
|
386
517
|
value = parseFloat(value.toFixed(this.precision));
|
|
387
518
|
this.$emit('input', value);
|
|
388
519
|
this.$nextTick(function () {
|
|
520
|
+
_this2.displayTooltip();
|
|
389
521
|
_this2.$refs.tooltip && _this2.$refs.tooltip.updatePopper();
|
|
390
522
|
});
|
|
391
523
|
if (!this.dragging && this.value !== this.oldValue) {
|
|
@@ -393,7 +525,195 @@ exports.default = {
|
|
|
393
525
|
}
|
|
394
526
|
}
|
|
395
527
|
}
|
|
396
|
-
};
|
|
528
|
+
});
|
|
529
|
+
;// ./packages/slider/src/button.vue?vue&type=script&lang=js
|
|
530
|
+
/* harmony default export */ const src_buttonvue_type_script_lang_js = (buttonvue_type_script_lang_js);
|
|
531
|
+
;// ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
532
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
533
|
+
|
|
534
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
535
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
536
|
+
// be included in the final webpack user bundle.
|
|
537
|
+
|
|
538
|
+
function normalizeComponent(
|
|
539
|
+
scriptExports,
|
|
540
|
+
render,
|
|
541
|
+
staticRenderFns,
|
|
542
|
+
functionalTemplate,
|
|
543
|
+
injectStyles,
|
|
544
|
+
scopeId,
|
|
545
|
+
moduleIdentifier /* server only */,
|
|
546
|
+
shadowMode /* vue-cli only */
|
|
547
|
+
) {
|
|
548
|
+
// Vue.extend constructor export interop
|
|
549
|
+
var options =
|
|
550
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
551
|
+
|
|
552
|
+
// render functions
|
|
553
|
+
if (render) {
|
|
554
|
+
options.render = render
|
|
555
|
+
options.staticRenderFns = staticRenderFns
|
|
556
|
+
options._compiled = true
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// functional template
|
|
560
|
+
if (functionalTemplate) {
|
|
561
|
+
options.functional = true
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
// scopedId
|
|
565
|
+
if (scopeId) {
|
|
566
|
+
options._scopeId = 'data-v-' + scopeId
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
var hook
|
|
570
|
+
if (moduleIdentifier) {
|
|
571
|
+
// server build
|
|
572
|
+
hook = function (context) {
|
|
573
|
+
// 2.3 injection
|
|
574
|
+
context =
|
|
575
|
+
context || // cached call
|
|
576
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
577
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
578
|
+
// 2.2 with runInNewContext: true
|
|
579
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
580
|
+
context = __VUE_SSR_CONTEXT__
|
|
581
|
+
}
|
|
582
|
+
// inject component styles
|
|
583
|
+
if (injectStyles) {
|
|
584
|
+
injectStyles.call(this, context)
|
|
585
|
+
}
|
|
586
|
+
// register component module identifier for async chunk inferrence
|
|
587
|
+
if (context && context._registeredComponents) {
|
|
588
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
// used by ssr in case component is cached and beforeCreate
|
|
592
|
+
// never gets called
|
|
593
|
+
options._ssrRegister = hook
|
|
594
|
+
} else if (injectStyles) {
|
|
595
|
+
hook = shadowMode
|
|
596
|
+
? function () {
|
|
597
|
+
injectStyles.call(
|
|
598
|
+
this,
|
|
599
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
600
|
+
)
|
|
601
|
+
}
|
|
602
|
+
: injectStyles
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
if (hook) {
|
|
606
|
+
if (options.functional) {
|
|
607
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
608
|
+
// go through the normalizer
|
|
609
|
+
options._injectStyles = hook
|
|
610
|
+
// register for functional component in vue file
|
|
611
|
+
var originalRender = options.render
|
|
612
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
613
|
+
hook.call(context)
|
|
614
|
+
return originalRender(h, context)
|
|
615
|
+
}
|
|
616
|
+
} else {
|
|
617
|
+
// inject component registration as beforeCreate hook
|
|
618
|
+
var existing = options.beforeCreate
|
|
619
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
return {
|
|
624
|
+
exports: scriptExports,
|
|
625
|
+
options: options
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
;// ./packages/slider/src/button.vue
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
/* normalize component */
|
|
636
|
+
;
|
|
637
|
+
var component = normalizeComponent(
|
|
638
|
+
src_buttonvue_type_script_lang_js,
|
|
639
|
+
buttonvue_type_template_id_926088e4_render,
|
|
640
|
+
buttonvue_type_template_id_926088e4_staticRenderFns,
|
|
641
|
+
false,
|
|
642
|
+
null,
|
|
643
|
+
null,
|
|
644
|
+
null
|
|
645
|
+
|
|
646
|
+
)
|
|
647
|
+
|
|
648
|
+
/* harmony default export */ const src_button = (component.exports);
|
|
649
|
+
;// ./packages/slider/src/marker.js
|
|
650
|
+
/* harmony default export */ const marker = ({
|
|
651
|
+
name: 'ElMarker',
|
|
652
|
+
props: {
|
|
653
|
+
mark: {
|
|
654
|
+
type: [String, Object]
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
render: function render() {
|
|
658
|
+
var h = arguments[0];
|
|
659
|
+
var label = typeof this.mark === 'string' ? this.mark : this.mark.label;
|
|
660
|
+
return h("div", {
|
|
661
|
+
"class": "el-slider__marks-text",
|
|
662
|
+
"style": this.mark.style || {}
|
|
663
|
+
}, [label]);
|
|
664
|
+
}
|
|
665
|
+
});
|
|
666
|
+
;// external "mazey-element-ui/lib/mixins/emitter"
|
|
667
|
+
const emitter_namespaceObject = require("mazey-element-ui/lib/mixins/emitter");
|
|
668
|
+
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_namespaceObject);
|
|
669
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/slider/src/main.vue?vue&type=script&lang=js
|
|
670
|
+
//
|
|
671
|
+
//
|
|
672
|
+
//
|
|
673
|
+
//
|
|
674
|
+
//
|
|
675
|
+
//
|
|
676
|
+
//
|
|
677
|
+
//
|
|
678
|
+
//
|
|
679
|
+
//
|
|
680
|
+
//
|
|
681
|
+
//
|
|
682
|
+
//
|
|
683
|
+
//
|
|
684
|
+
//
|
|
685
|
+
//
|
|
686
|
+
//
|
|
687
|
+
//
|
|
688
|
+
//
|
|
689
|
+
//
|
|
690
|
+
//
|
|
691
|
+
//
|
|
692
|
+
//
|
|
693
|
+
//
|
|
694
|
+
//
|
|
695
|
+
//
|
|
696
|
+
//
|
|
697
|
+
//
|
|
698
|
+
//
|
|
699
|
+
//
|
|
700
|
+
//
|
|
701
|
+
//
|
|
702
|
+
//
|
|
703
|
+
//
|
|
704
|
+
//
|
|
705
|
+
//
|
|
706
|
+
//
|
|
707
|
+
//
|
|
708
|
+
//
|
|
709
|
+
//
|
|
710
|
+
//
|
|
711
|
+
//
|
|
712
|
+
//
|
|
713
|
+
//
|
|
714
|
+
//
|
|
715
|
+
//
|
|
716
|
+
//
|
|
397
717
|
//
|
|
398
718
|
//
|
|
399
719
|
//
|
|
@@ -423,179 +743,19 @@ exports.default = {
|
|
|
423
743
|
//
|
|
424
744
|
//
|
|
425
745
|
|
|
426
|
-
/***/ }),
|
|
427
|
-
|
|
428
|
-
/***/ 23:
|
|
429
|
-
/***/ (function(module, exports) {
|
|
430
|
-
|
|
431
|
-
module.exports = require("element-ui/lib/tooltip");
|
|
432
|
-
|
|
433
|
-
/***/ }),
|
|
434
|
-
|
|
435
|
-
/***/ 303:
|
|
436
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
437
|
-
|
|
438
|
-
"use strict";
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
exports.__esModule = true;
|
|
442
|
-
|
|
443
|
-
var _main = __webpack_require__(304);
|
|
444
|
-
|
|
445
|
-
var _main2 = _interopRequireDefault(_main);
|
|
446
|
-
|
|
447
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
448
|
-
|
|
449
|
-
/* istanbul ignore next */
|
|
450
|
-
_main2.default.install = function (Vue) {
|
|
451
|
-
Vue.component(_main2.default.name, _main2.default);
|
|
452
|
-
};
|
|
453
|
-
|
|
454
|
-
exports.default = _main2.default;
|
|
455
|
-
|
|
456
|
-
/***/ }),
|
|
457
|
-
|
|
458
|
-
/***/ 304:
|
|
459
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
460
|
-
|
|
461
|
-
"use strict";
|
|
462
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
463
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue__ = __webpack_require__(99);
|
|
464
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue__);
|
|
465
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
466
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_2629c622_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_main_vue__ = __webpack_require__(308);
|
|
467
|
-
var normalizeComponent = __webpack_require__(0)
|
|
468
|
-
/* script */
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
/* template */
|
|
472
|
-
|
|
473
|
-
/* template functional */
|
|
474
|
-
var __vue_template_functional__ = false
|
|
475
|
-
/* styles */
|
|
476
|
-
var __vue_styles__ = null
|
|
477
|
-
/* scopeId */
|
|
478
|
-
var __vue_scopeId__ = null
|
|
479
|
-
/* moduleIdentifier (server only) */
|
|
480
|
-
var __vue_module_identifier__ = null
|
|
481
|
-
var Component = normalizeComponent(
|
|
482
|
-
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue___default.a,
|
|
483
|
-
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_2629c622_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_main_vue__["a" /* default */],
|
|
484
|
-
__vue_template_functional__,
|
|
485
|
-
__vue_styles__,
|
|
486
|
-
__vue_scopeId__,
|
|
487
|
-
__vue_module_identifier__
|
|
488
|
-
)
|
|
489
|
-
|
|
490
|
-
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
/***/ }),
|
|
494
|
-
|
|
495
|
-
/***/ 305:
|
|
496
|
-
/***/ (function(module, exports) {
|
|
497
|
-
|
|
498
|
-
module.exports = require("element-ui/lib/input-number");
|
|
499
|
-
|
|
500
|
-
/***/ }),
|
|
501
|
-
|
|
502
|
-
/***/ 306:
|
|
503
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
504
|
-
|
|
505
|
-
"use strict";
|
|
506
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
507
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_button_vue__ = __webpack_require__(100);
|
|
508
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_button_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_button_vue__);
|
|
509
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_button_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_button_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
510
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_54beaef9_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_button_vue__ = __webpack_require__(307);
|
|
511
|
-
var normalizeComponent = __webpack_require__(0)
|
|
512
|
-
/* script */
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
/* template */
|
|
516
|
-
|
|
517
|
-
/* template functional */
|
|
518
|
-
var __vue_template_functional__ = false
|
|
519
|
-
/* styles */
|
|
520
|
-
var __vue_styles__ = null
|
|
521
|
-
/* scopeId */
|
|
522
|
-
var __vue_scopeId__ = null
|
|
523
|
-
/* moduleIdentifier (server only) */
|
|
524
|
-
var __vue_module_identifier__ = null
|
|
525
|
-
var Component = normalizeComponent(
|
|
526
|
-
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_button_vue___default.a,
|
|
527
|
-
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_54beaef9_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_button_vue__["a" /* default */],
|
|
528
|
-
__vue_template_functional__,
|
|
529
|
-
__vue_styles__,
|
|
530
|
-
__vue_scopeId__,
|
|
531
|
-
__vue_module_identifier__
|
|
532
|
-
)
|
|
533
|
-
|
|
534
|
-
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
/***/ }),
|
|
538
|
-
|
|
539
|
-
/***/ 307:
|
|
540
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
541
|
-
|
|
542
|
-
"use strict";
|
|
543
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"button",staticClass:"el-slider__button-wrapper",class:{ 'hover': _vm.hovering, 'dragging': _vm.dragging },style:(_vm.wrapperStyle),attrs:{"tabindex":"0"},on:{"mouseenter":_vm.handleMouseEnter,"mouseleave":_vm.handleMouseLeave,"mousedown":_vm.onButtonDown,"touchstart":_vm.onButtonDown,"focus":_vm.handleMouseEnter,"blur":_vm.handleMouseLeave,"keydown":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"left",37,$event.key,["Left","ArrowLeft"])){ return null; }if('button' in $event && $event.button !== 0){ return null; }return _vm.onLeftKeyDown($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"right",39,$event.key,["Right","ArrowRight"])){ return null; }if('button' in $event && $event.button !== 2){ return null; }return _vm.onRightKeyDown($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.onLeftKeyDown($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.onRightKeyDown($event)}]}},[_c('el-tooltip',{ref:"tooltip",attrs:{"placement":"top","popper-class":_vm.tooltipClass,"disabled":!_vm.showTooltip}},[_c('span',{attrs:{"slot":"content"},slot:"content"},[_vm._v(_vm._s(_vm.formatValue))]),_c('div',{staticClass:"el-slider__button",class:{ 'hover': _vm.hovering, 'dragging': _vm.dragging }})])],1)}
|
|
544
|
-
var staticRenderFns = []
|
|
545
|
-
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
546
|
-
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
547
|
-
|
|
548
|
-
/***/ }),
|
|
549
|
-
|
|
550
|
-
/***/ 308:
|
|
551
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
552
|
-
|
|
553
|
-
"use strict";
|
|
554
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-slider",class:{ 'is-vertical': _vm.vertical, 'el-slider--with-input': _vm.showInput },attrs:{"role":"slider","aria-valuemin":_vm.min,"aria-valuemax":_vm.max,"aria-orientation":_vm.vertical ? 'vertical': 'horizontal',"aria-disabled":_vm.sliderDisabled}},[(_vm.showInput && !_vm.range)?_c('el-input-number',{ref:"input",staticClass:"el-slider__input",attrs:{"step":_vm.step,"disabled":_vm.sliderDisabled,"controls":_vm.showInputControls,"min":_vm.min,"max":_vm.max,"debounce":_vm.debounce,"size":_vm.inputSize},on:{"change":function($event){_vm.$nextTick(_vm.emitChange)}},model:{value:(_vm.firstValue),callback:function ($$v) {_vm.firstValue=$$v},expression:"firstValue"}}):_vm._e(),_c('div',{ref:"slider",staticClass:"el-slider__runway",class:{ 'show-input': _vm.showInput, 'disabled': _vm.sliderDisabled, buttonStyle: _vm.buttonStyle },style:(_vm.runwayStyle),on:{"click":_vm.onSliderClick}},[_c('div',{staticClass:"el-slider__bar",style:(_vm.barStyle)}),(_vm.showRemain)?_c('div',{staticClass:"el-slider__remain-bar",style:(_vm.remainBarStyle)}):_vm._e(),_c('slider-button',{ref:"button1",attrs:{"vertical":_vm.vertical,"tooltip-class":_vm.tooltipClass},model:{value:(_vm.firstValue),callback:function ($$v) {_vm.firstValue=$$v},expression:"firstValue"}}),(_vm.range)?_c('slider-button',{ref:"button2",attrs:{"vertical":_vm.vertical,"tooltip-class":_vm.tooltipClass},model:{value:(_vm.secondValue),callback:function ($$v) {_vm.secondValue=$$v},expression:"secondValue"}}):_vm._e(),_vm._l((_vm.stops),function(item){return (_vm.showStops)?_c('div',{staticClass:"el-slider__stop",style:(_vm.vertical ? { 'bottom': item + '%' } : { 'left': item + '%' })}):_vm._e()})],2)],1)}
|
|
555
|
-
var staticRenderFns = []
|
|
556
|
-
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
557
|
-
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
558
|
-
|
|
559
|
-
/***/ }),
|
|
560
|
-
|
|
561
|
-
/***/ 99:
|
|
562
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
563
|
-
|
|
564
|
-
"use strict";
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
exports.__esModule = true;
|
|
568
|
-
|
|
569
|
-
var _inputNumber = __webpack_require__(305);
|
|
570
|
-
|
|
571
|
-
var _inputNumber2 = _interopRequireDefault(_inputNumber);
|
|
572
|
-
|
|
573
|
-
var _button = __webpack_require__(306);
|
|
574
|
-
|
|
575
|
-
var _button2 = _interopRequireDefault(_button);
|
|
576
746
|
|
|
577
|
-
var _emitter = __webpack_require__(1);
|
|
578
747
|
|
|
579
|
-
var _emitter2 = _interopRequireDefault(_emitter);
|
|
580
748
|
|
|
581
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
582
749
|
|
|
583
|
-
|
|
750
|
+
/* harmony default export */ const mainvue_type_script_lang_js = ({
|
|
584
751
|
name: 'ElSlider',
|
|
585
|
-
|
|
586
|
-
mixins: [_emitter2.default],
|
|
587
|
-
|
|
752
|
+
mixins: [(emitter_default())],
|
|
588
753
|
inject: {
|
|
589
754
|
elForm: {
|
|
590
755
|
default: ''
|
|
591
756
|
}
|
|
592
757
|
},
|
|
593
|
-
|
|
594
758
|
props: {
|
|
595
|
-
showRemain: {
|
|
596
|
-
type: Boolean,
|
|
597
|
-
default: false
|
|
598
|
-
},
|
|
599
759
|
min: {
|
|
600
760
|
type: Number,
|
|
601
761
|
default: 0
|
|
@@ -655,26 +815,23 @@ exports.default = {
|
|
|
655
815
|
label: {
|
|
656
816
|
type: String
|
|
657
817
|
},
|
|
658
|
-
tooltipClass: String
|
|
818
|
+
tooltipClass: String,
|
|
819
|
+
marks: Object
|
|
659
820
|
},
|
|
660
|
-
|
|
661
821
|
components: {
|
|
662
|
-
ElInputNumber:
|
|
663
|
-
SliderButton:
|
|
822
|
+
ElInputNumber: (input_number_default()),
|
|
823
|
+
SliderButton: src_button,
|
|
824
|
+
SliderMarker: marker
|
|
664
825
|
},
|
|
665
|
-
|
|
666
826
|
data: function data() {
|
|
667
827
|
return {
|
|
668
828
|
firstValue: null,
|
|
669
829
|
secondValue: null,
|
|
670
830
|
oldValue: null,
|
|
671
831
|
dragging: false,
|
|
672
|
-
sliderSize: 1
|
|
673
|
-
buttonStyle: ''
|
|
832
|
+
sliderSize: 1
|
|
674
833
|
};
|
|
675
834
|
},
|
|
676
|
-
|
|
677
|
-
|
|
678
835
|
watch: {
|
|
679
836
|
value: function value(val, oldVal) {
|
|
680
837
|
if (this.dragging || Array.isArray(val) && Array.isArray(oldVal) && val.every(function (item, index) {
|
|
@@ -708,11 +865,9 @@ exports.default = {
|
|
|
708
865
|
this.setValues();
|
|
709
866
|
}
|
|
710
867
|
},
|
|
711
|
-
|
|
712
868
|
methods: {
|
|
713
869
|
valueChanged: function valueChanged() {
|
|
714
870
|
var _this = this;
|
|
715
|
-
|
|
716
871
|
if (this.range) {
|
|
717
872
|
return ![this.minValue, this.maxValue].every(function (item, index) {
|
|
718
873
|
return item === _this.oldValue[index];
|
|
@@ -764,7 +919,7 @@ exports.default = {
|
|
|
764
919
|
this.$refs.button1.setPosition(percent);
|
|
765
920
|
return;
|
|
766
921
|
}
|
|
767
|
-
var button
|
|
922
|
+
var button;
|
|
768
923
|
if (Math.abs(this.minValue - targetValue) < Math.abs(this.maxValue - targetValue)) {
|
|
769
924
|
button = this.firstValue < this.secondValue ? 'button1' : 'button2';
|
|
770
925
|
} else {
|
|
@@ -786,25 +941,29 @@ exports.default = {
|
|
|
786
941
|
},
|
|
787
942
|
resetSize: function resetSize() {
|
|
788
943
|
if (this.$refs.slider) {
|
|
789
|
-
this.sliderSize = this.$refs.slider[
|
|
944
|
+
this.sliderSize = this.$refs.slider["client" + (this.vertical ? 'Height' : 'Width')];
|
|
790
945
|
}
|
|
791
946
|
},
|
|
792
947
|
emitChange: function emitChange() {
|
|
793
948
|
var _this2 = this;
|
|
794
|
-
|
|
795
949
|
this.$nextTick(function () {
|
|
796
950
|
_this2.$emit('change', _this2.range ? [_this2.minValue, _this2.maxValue] : _this2.value);
|
|
797
951
|
});
|
|
952
|
+
},
|
|
953
|
+
getStopStyle: function getStopStyle(position) {
|
|
954
|
+
return this.vertical ? {
|
|
955
|
+
'bottom': position + '%'
|
|
956
|
+
} : {
|
|
957
|
+
'left': position + '%'
|
|
958
|
+
};
|
|
798
959
|
}
|
|
799
960
|
},
|
|
800
|
-
|
|
801
961
|
computed: {
|
|
802
962
|
stops: function stops() {
|
|
803
963
|
var _this3 = this;
|
|
804
|
-
|
|
805
964
|
if (!this.showStops || this.min > this.max) return [];
|
|
806
965
|
if (this.step === 0) {
|
|
807
|
-
|
|
966
|
+
false && 0;
|
|
808
967
|
return [];
|
|
809
968
|
}
|
|
810
969
|
var stopCount = (this.max - this.min) / this.step;
|
|
@@ -823,6 +982,24 @@ exports.default = {
|
|
|
823
982
|
});
|
|
824
983
|
}
|
|
825
984
|
},
|
|
985
|
+
markList: function markList() {
|
|
986
|
+
var _this4 = this;
|
|
987
|
+
if (!this.marks) {
|
|
988
|
+
return [];
|
|
989
|
+
}
|
|
990
|
+
var marksKeys = Object.keys(this.marks);
|
|
991
|
+
return marksKeys.map(parseFloat).sort(function (a, b) {
|
|
992
|
+
return a - b;
|
|
993
|
+
}).filter(function (point) {
|
|
994
|
+
return point <= _this4.max && point >= _this4.min;
|
|
995
|
+
}).map(function (point) {
|
|
996
|
+
return {
|
|
997
|
+
point: point,
|
|
998
|
+
position: (point - _this4.min) * 100 / (_this4.max - _this4.min),
|
|
999
|
+
mark: _this4.marks[point]
|
|
1000
|
+
};
|
|
1001
|
+
});
|
|
1002
|
+
},
|
|
826
1003
|
minValue: function minValue() {
|
|
827
1004
|
return Math.min(this.firstValue, this.secondValue);
|
|
828
1005
|
},
|
|
@@ -830,10 +1007,10 @@ exports.default = {
|
|
|
830
1007
|
return Math.max(this.firstValue, this.secondValue);
|
|
831
1008
|
},
|
|
832
1009
|
barSize: function barSize() {
|
|
833
|
-
return this.range ? 100 * (this.maxValue - this.minValue) / (this.max - this.min) +
|
|
1010
|
+
return this.range ? 100 * (this.maxValue - this.minValue) / (this.max - this.min) + "%" : 100 * (this.firstValue - this.min) / (this.max - this.min) + "%";
|
|
834
1011
|
},
|
|
835
1012
|
barStart: function barStart() {
|
|
836
|
-
return this.range ? 100 * (this.minValue - this.min) / (this.max - this.min) +
|
|
1013
|
+
return this.range ? 100 * (this.minValue - this.min) / (this.max - this.min) + "%" : '0%';
|
|
837
1014
|
},
|
|
838
1015
|
precision: function precision() {
|
|
839
1016
|
var precisions = [this.min, this.max, this.step].map(function (item) {
|
|
@@ -843,7 +1020,9 @@ exports.default = {
|
|
|
843
1020
|
return Math.max.apply(null, precisions);
|
|
844
1021
|
},
|
|
845
1022
|
runwayStyle: function runwayStyle() {
|
|
846
|
-
return this.vertical ? {
|
|
1023
|
+
return this.vertical ? {
|
|
1024
|
+
height: this.height
|
|
1025
|
+
} : {};
|
|
847
1026
|
},
|
|
848
1027
|
barStyle: function barStyle() {
|
|
849
1028
|
return this.vertical ? {
|
|
@@ -854,19 +1033,12 @@ exports.default = {
|
|
|
854
1033
|
left: this.barStart
|
|
855
1034
|
};
|
|
856
1035
|
},
|
|
857
|
-
remainBarStyle: function remainBarStyle() {
|
|
858
|
-
return {
|
|
859
|
-
width: 100 - parseInt(this.barSize, 10) + '%',
|
|
860
|
-
left: this.barSize
|
|
861
|
-
};
|
|
862
|
-
},
|
|
863
1036
|
sliderDisabled: function sliderDisabled() {
|
|
864
1037
|
return this.disabled || (this.elForm || {}).disabled;
|
|
865
1038
|
}
|
|
866
1039
|
},
|
|
867
|
-
|
|
868
1040
|
mounted: function mounted() {
|
|
869
|
-
var valuetext
|
|
1041
|
+
var valuetext;
|
|
870
1042
|
if (this.range) {
|
|
871
1043
|
if (Array.isArray(this.value)) {
|
|
872
1044
|
this.firstValue = Math.max(this.min, this.value[0]);
|
|
@@ -876,7 +1048,7 @@ exports.default = {
|
|
|
876
1048
|
this.secondValue = this.max;
|
|
877
1049
|
}
|
|
878
1050
|
this.oldValue = [this.firstValue, this.secondValue];
|
|
879
|
-
valuetext = this.firstValue +
|
|
1051
|
+
valuetext = this.firstValue + "-" + this.secondValue;
|
|
880
1052
|
} else {
|
|
881
1053
|
if (typeof this.value !== 'number' || isNaN(this.value)) {
|
|
882
1054
|
this.firstValue = this.min;
|
|
@@ -889,75 +1061,44 @@ exports.default = {
|
|
|
889
1061
|
this.$el.setAttribute('aria-valuetext', valuetext);
|
|
890
1062
|
|
|
891
1063
|
// label screen reader
|
|
892
|
-
this.$el.setAttribute('aria-label', this.label ? this.label :
|
|
893
|
-
|
|
1064
|
+
this.$el.setAttribute('aria-label', this.label ? this.label : "slider between " + this.min + " and " + this.max);
|
|
894
1065
|
this.resetSize();
|
|
895
1066
|
window.addEventListener('resize', this.resetSize);
|
|
896
1067
|
},
|
|
897
1068
|
beforeDestroy: function beforeDestroy() {
|
|
898
1069
|
window.removeEventListener('resize', this.resetSize);
|
|
899
1070
|
}
|
|
900
|
-
};
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
//
|
|
908
|
-
//
|
|
909
|
-
//
|
|
910
|
-
//
|
|
911
|
-
//
|
|
912
|
-
//
|
|
913
|
-
//
|
|
914
|
-
//
|
|
915
|
-
//
|
|
916
|
-
//
|
|
917
|
-
//
|
|
918
|
-
//
|
|
919
|
-
//
|
|
920
|
-
//
|
|
921
|
-
//
|
|
922
|
-
//
|
|
923
|
-
//
|
|
924
|
-
//
|
|
925
|
-
//
|
|
926
|
-
//
|
|
927
|
-
//
|
|
928
|
-
//
|
|
929
|
-
//
|
|
930
|
-
//
|
|
931
|
-
//
|
|
932
|
-
//
|
|
933
|
-
//
|
|
934
|
-
//
|
|
935
|
-
//
|
|
936
|
-
//
|
|
937
|
-
//
|
|
938
|
-
//
|
|
939
|
-
//
|
|
940
|
-
//
|
|
941
|
-
//
|
|
942
|
-
//
|
|
943
|
-
//
|
|
944
|
-
//
|
|
945
|
-
//
|
|
946
|
-
//
|
|
947
|
-
//
|
|
948
|
-
//
|
|
949
|
-
//
|
|
950
|
-
//
|
|
951
|
-
//
|
|
952
|
-
//
|
|
953
|
-
//
|
|
954
|
-
//
|
|
955
|
-
//
|
|
956
|
-
//
|
|
957
|
-
//
|
|
958
|
-
//
|
|
959
|
-
//
|
|
1071
|
+
});
|
|
1072
|
+
;// ./packages/slider/src/main.vue?vue&type=script&lang=js
|
|
1073
|
+
/* harmony default export */ const src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
1074
|
+
;// ./packages/slider/src/main.vue
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
960
1078
|
|
|
961
|
-
/***/ })
|
|
962
1079
|
|
|
963
|
-
|
|
1080
|
+
/* normalize component */
|
|
1081
|
+
;
|
|
1082
|
+
var main_component = normalizeComponent(
|
|
1083
|
+
src_mainvue_type_script_lang_js,
|
|
1084
|
+
render,
|
|
1085
|
+
staticRenderFns,
|
|
1086
|
+
false,
|
|
1087
|
+
null,
|
|
1088
|
+
null,
|
|
1089
|
+
null
|
|
1090
|
+
|
|
1091
|
+
)
|
|
1092
|
+
|
|
1093
|
+
/* harmony default export */ const main = (main_component.exports);
|
|
1094
|
+
;// ./packages/slider/index.js
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
/* istanbul ignore next */
|
|
1098
|
+
main.install = function (Vue) {
|
|
1099
|
+
Vue.component(main.name, main);
|
|
1100
|
+
};
|
|
1101
|
+
/* harmony default export */ const slider = (main);
|
|
1102
|
+
module.exports = __webpack_exports__["default"];
|
|
1103
|
+
/******/ })()
|
|
1104
|
+
;
|