element-sim 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/theme-chalk/src/common/var.scss +2 -2
- package/packages/theme-chalk/src/form.scss +6 -3
- package/packages/theme-chalk/src/index.scss +87 -87
- package/packages/theme-chalk/src/input.scss +1 -1
- package/src/index.js +51 -51
- package/types/index.d.ts +2 -2
- package/lib/alert.js +0 -420
- package/lib/aside.js +0 -277
- package/lib/autocomplete.js +0 -952
- package/lib/avatar.js +0 -363
- package/lib/backtop.js +0 -404
- package/lib/badge.js +0 -334
- package/lib/breadcrumb-item.js +0 -322
- package/lib/breadcrumb.js +0 -293
- package/lib/button-group.js +0 -262
- package/lib/button.js +0 -357
- package/lib/calendar.js +0 -933
- package/lib/card.js +0 -297
- package/lib/carousel-item.js +0 -434
- package/lib/carousel.js +0 -707
- package/lib/cascader-panel.js +0 -1558
- package/lib/cascader.js +0 -1439
- package/lib/checkbox-button.js +0 -583
- package/lib/checkbox-group.js +0 -313
- package/lib/checkbox.js +0 -627
- package/lib/col.js +0 -177
- package/lib/collapse-item.js +0 -497
- package/lib/collapse.js +0 -329
- package/lib/color-picker.js +0 -1943
- package/lib/container.js +0 -288
- package/lib/date-picker.js +0 -6335
- package/lib/descriptions-item.js +0 -140
- package/lib/descriptions.js +0 -457
- package/lib/dialog.js +0 -598
- package/lib/directives/mousewheel.js +0 -26
- package/lib/directives/repeat-click.js +0 -33
- package/lib/divider.js +0 -313
- package/lib/drawer.js +0 -592
- package/lib/dropdown-item.js +0 -316
- package/lib/dropdown-menu.js +0 -351
- package/lib/dropdown.js +0 -643
- package/lib/element-SIM.common.js +0 -43578
- package/lib/empty.js +0 -730
- package/lib/footer.js +0 -277
- package/lib/form-item.js +0 -826
- package/lib/form.js +0 -466
- package/lib/header.js +0 -277
- package/lib/icon.js +0 -265
- package/lib/image.js +0 -1138
- package/lib/index.js +0 -1
- package/lib/infinite-scroll.js +0 -301
- package/lib/input-number.js +0 -752
- package/lib/input.js +0 -998
- package/lib/link.js +0 -332
- package/lib/loading.js +0 -631
- package/lib/locale/format.js +0 -56
- package/lib/locale/index.js +0 -63
- package/lib/locale/lang/af-ZA.js +0 -126
- package/lib/locale/lang/ar.js +0 -125
- package/lib/locale/lang/az.js +0 -126
- package/lib/locale/lang/bg.js +0 -126
- package/lib/locale/lang/bn.js +0 -126
- package/lib/locale/lang/ca.js +0 -125
- package/lib/locale/lang/cs-CZ.js +0 -128
- package/lib/locale/lang/da.js +0 -125
- package/lib/locale/lang/de.js +0 -127
- package/lib/locale/lang/ee.js +0 -126
- package/lib/locale/lang/el.js +0 -126
- package/lib/locale/lang/en.js +0 -126
- package/lib/locale/lang/eo.js +0 -126
- package/lib/locale/lang/es.js +0 -125
- package/lib/locale/lang/eu.js +0 -126
- package/lib/locale/lang/fa.js +0 -126
- package/lib/locale/lang/fi.js +0 -126
- package/lib/locale/lang/fr.js +0 -125
- package/lib/locale/lang/he.js +0 -126
- package/lib/locale/lang/hr.js +0 -126
- package/lib/locale/lang/hu.js +0 -125
- package/lib/locale/lang/hy-AM.js +0 -126
- package/lib/locale/lang/id.js +0 -126
- package/lib/locale/lang/is.js +0 -126
- package/lib/locale/lang/it.js +0 -125
- package/lib/locale/lang/ja.js +0 -126
- package/lib/locale/lang/kg.js +0 -126
- package/lib/locale/lang/km.js +0 -126
- package/lib/locale/lang/ko.js +0 -126
- package/lib/locale/lang/ku.js +0 -126
- package/lib/locale/lang/kz.js +0 -126
- package/lib/locale/lang/lo-LA.js +0 -126
- package/lib/locale/lang/lt.js +0 -126
- package/lib/locale/lang/lv.js +0 -126
- package/lib/locale/lang/mn.js +0 -126
- package/lib/locale/lang/ms.js +0 -125
- package/lib/locale/lang/nb-NO.js +0 -125
- package/lib/locale/lang/nl.js +0 -126
- package/lib/locale/lang/pl.js +0 -126
- package/lib/locale/lang/pt-br.js +0 -126
- package/lib/locale/lang/pt.js +0 -126
- package/lib/locale/lang/ro.js +0 -126
- package/lib/locale/lang/ru-RU.js +0 -126
- package/lib/locale/lang/si.js +0 -126
- package/lib/locale/lang/sk.js +0 -128
- package/lib/locale/lang/sl.js +0 -126
- package/lib/locale/lang/sr-Latn.js +0 -126
- package/lib/locale/lang/sr.js +0 -126
- package/lib/locale/lang/sv-SE.js +0 -126
- package/lib/locale/lang/sw.js +0 -126
- package/lib/locale/lang/ta.js +0 -125
- package/lib/locale/lang/th.js +0 -126
- package/lib/locale/lang/tk.js +0 -126
- package/lib/locale/lang/tr-TR.js +0 -126
- package/lib/locale/lang/ua.js +0 -126
- package/lib/locale/lang/ug-CN.js +0 -126
- package/lib/locale/lang/uz-UZ.js +0 -126
- package/lib/locale/lang/vi.js +0 -126
- package/lib/locale/lang/zh-CN.js +0 -126
- package/lib/locale/lang/zh-TW.js +0 -126
- package/lib/main.js +0 -264
- package/lib/menu-item-group.js +0 -308
- package/lib/menu-item.js +0 -491
- package/lib/menu.js +0 -865
- package/lib/message-box.js +0 -1192
- package/lib/message.js +0 -548
- package/lib/mixins/emitter.js +0 -36
- package/lib/mixins/focus.js +0 -15
- package/lib/mixins/locale.js +0 -17
- package/lib/mixins/migrating.js +0 -69
- package/lib/notification.js +0 -615
- package/lib/option-group.js +0 -344
- package/lib/option.js +0 -474
- package/lib/page-header.js +0 -319
- package/lib/pagination.js +0 -950
- package/lib/popconfirm.js +0 -457
- package/lib/popover.js +0 -617
- package/lib/progress.js +0 -595
- package/lib/radio-button.js +0 -463
- package/lib/radio-group.js +0 -391
- package/lib/radio.js +0 -497
- package/lib/rate.js +0 -670
- package/lib/result.js +0 -578
- package/lib/row.js +0 -149
- package/lib/scrollbar.js +0 -423
- package/lib/select.js +0 -2167
- package/lib/skeleton-item.js +0 -342
- package/lib/skeleton.js +0 -372
- package/lib/slider.js +0 -1199
- package/lib/spinner.js +0 -301
- package/lib/statistic.js +0 -533
- package/lib/step.js +0 -522
- package/lib/steps.js +0 -342
- package/lib/submenu.js +0 -701
- package/lib/switch.js +0 -554
- package/lib/tab-pane.js +0 -332
- package/lib/table-column.js +0 -952
- package/lib/table.js +0 -5010
- package/lib/tabs.js +0 -920
- package/lib/tag.js +0 -304
- package/lib/theme-chalk/alert.css +0 -1
- package/lib/theme-chalk/aside.css +0 -1
- package/lib/theme-chalk/autocomplete.css +0 -1
- package/lib/theme-chalk/avatar.css +0 -1
- package/lib/theme-chalk/backtop.css +0 -1
- package/lib/theme-chalk/badge.css +0 -1
- package/lib/theme-chalk/base.css +0 -1
- package/lib/theme-chalk/breadcrumb-item.css +0 -0
- package/lib/theme-chalk/breadcrumb.css +0 -1
- package/lib/theme-chalk/button-group.css +0 -0
- package/lib/theme-chalk/button.css +0 -1
- package/lib/theme-chalk/calendar.css +0 -1
- package/lib/theme-chalk/card.css +0 -1
- package/lib/theme-chalk/carousel-item.css +0 -1
- package/lib/theme-chalk/carousel.css +0 -1
- package/lib/theme-chalk/cascader-panel.css +0 -1
- package/lib/theme-chalk/cascader.css +0 -1
- package/lib/theme-chalk/checkbox-button.css +0 -0
- package/lib/theme-chalk/checkbox-group.css +0 -0
- package/lib/theme-chalk/checkbox.css +0 -1
- package/lib/theme-chalk/col.css +0 -1
- package/lib/theme-chalk/collapse-item.css +0 -0
- package/lib/theme-chalk/collapse.css +0 -1
- package/lib/theme-chalk/color-picker.css +0 -1
- package/lib/theme-chalk/container.css +0 -1
- package/lib/theme-chalk/date-picker.css +0 -1
- package/lib/theme-chalk/descriptions-item.css +0 -1
- package/lib/theme-chalk/descriptions.css +0 -1
- package/lib/theme-chalk/dialog.css +0 -1
- package/lib/theme-chalk/display.css +0 -1
- package/lib/theme-chalk/divider.css +0 -1
- package/lib/theme-chalk/drawer.css +0 -1
- package/lib/theme-chalk/dropdown-item.css +0 -0
- package/lib/theme-chalk/dropdown-menu.css +0 -0
- package/lib/theme-chalk/dropdown.css +0 -1
- package/lib/theme-chalk/empty.css +0 -1
- 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 +0 -1
- package/lib/theme-chalk/form-item.css +0 -0
- package/lib/theme-chalk/form.css +0 -1
- package/lib/theme-chalk/header.css +0 -1
- package/lib/theme-chalk/icon.css +0 -1
- package/lib/theme-chalk/image.css +0 -1
- package/lib/theme-chalk/index.css +0 -1
- package/lib/theme-chalk/infinite-scroll.css +0 -0
- package/lib/theme-chalk/infiniteScroll.css +0 -0
- package/lib/theme-chalk/input-number.css +0 -1
- package/lib/theme-chalk/input.css +0 -1
- package/lib/theme-chalk/link.css +0 -1
- package/lib/theme-chalk/loading.css +0 -1
- package/lib/theme-chalk/main.css +0 -1
- package/lib/theme-chalk/menu-item-group.css +0 -0
- package/lib/theme-chalk/menu-item.css +0 -0
- package/lib/theme-chalk/menu.css +0 -1
- package/lib/theme-chalk/message-box.css +0 -1
- package/lib/theme-chalk/message.css +0 -1
- package/lib/theme-chalk/notification.css +0 -1
- package/lib/theme-chalk/option-group.css +0 -1
- package/lib/theme-chalk/option.css +0 -1
- package/lib/theme-chalk/page-header.css +0 -1
- package/lib/theme-chalk/pagination.css +0 -1
- package/lib/theme-chalk/popconfirm.css +0 -1
- package/lib/theme-chalk/popover.css +0 -1
- package/lib/theme-chalk/popper.css +0 -1
- package/lib/theme-chalk/progress.css +0 -1
- package/lib/theme-chalk/radio-button.css +0 -1
- package/lib/theme-chalk/radio-group.css +0 -1
- package/lib/theme-chalk/radio.css +0 -1
- package/lib/theme-chalk/rate.css +0 -1
- package/lib/theme-chalk/reset.css +0 -1
- package/lib/theme-chalk/result.css +0 -1
- package/lib/theme-chalk/row.css +0 -1
- package/lib/theme-chalk/scrollbar.css +0 -1
- package/lib/theme-chalk/select-dropdown.css +0 -1
- package/lib/theme-chalk/select.css +0 -1
- package/lib/theme-chalk/skeleton-item.css +0 -1
- package/lib/theme-chalk/skeleton.css +0 -1
- package/lib/theme-chalk/slider.css +0 -1
- package/lib/theme-chalk/spinner.css +0 -1
- package/lib/theme-chalk/statistic.css +0 -1
- package/lib/theme-chalk/step.css +0 -1
- package/lib/theme-chalk/steps.css +0 -1
- package/lib/theme-chalk/submenu.css +0 -0
- package/lib/theme-chalk/switch.css +0 -1
- package/lib/theme-chalk/tab-pane.css +0 -0
- package/lib/theme-chalk/table-column.css +0 -1
- package/lib/theme-chalk/table.css +0 -1
- package/lib/theme-chalk/tabs.css +0 -1
- package/lib/theme-chalk/tag.css +0 -1
- package/lib/theme-chalk/time-picker.css +0 -1
- package/lib/theme-chalk/time-select.css +0 -1
- package/lib/theme-chalk/timeline-item.css +0 -1
- package/lib/theme-chalk/timeline.css +0 -1
- package/lib/theme-chalk/tooltip.css +0 -1
- package/lib/theme-chalk/transfer.css +0 -1
- package/lib/theme-chalk/tree.css +0 -1
- package/lib/theme-chalk/upload.css +0 -1
- package/lib/time-picker.js +0 -2967
- package/lib/time-select.js +0 -1765
- package/lib/timeline-item.js +0 -371
- package/lib/timeline.js +0 -275
- package/lib/tooltip.js +0 -425
- package/lib/transfer.js +0 -1102
- package/lib/transitions/collapse-transition.js +0 -91
- package/lib/tree.js +0 -2263
- package/lib/umd/locale/af-ZA.js +0 -142
- package/lib/umd/locale/ar.js +0 -141
- package/lib/umd/locale/az.js +0 -141
- package/lib/umd/locale/bg.js +0 -142
- package/lib/umd/locale/bn.js +0 -141
- package/lib/umd/locale/ca.js +0 -141
- package/lib/umd/locale/cs-CZ.js +0 -144
- package/lib/umd/locale/da.js +0 -141
- package/lib/umd/locale/de.js +0 -143
- package/lib/umd/locale/ee.js +0 -142
- package/lib/umd/locale/el.js +0 -142
- package/lib/umd/locale/en.js +0 -142
- package/lib/umd/locale/eo.js +0 -142
- package/lib/umd/locale/es.js +0 -141
- package/lib/umd/locale/eu.js +0 -142
- package/lib/umd/locale/fa.js +0 -142
- package/lib/umd/locale/fi.js +0 -142
- package/lib/umd/locale/fr.js +0 -141
- package/lib/umd/locale/he.js +0 -142
- package/lib/umd/locale/hr.js +0 -142
- package/lib/umd/locale/hu.js +0 -141
- package/lib/umd/locale/hy-AM.js +0 -142
- package/lib/umd/locale/id.js +0 -142
- package/lib/umd/locale/is.js +0 -142
- package/lib/umd/locale/it.js +0 -141
- package/lib/umd/locale/ja.js +0 -142
- package/lib/umd/locale/kg.js +0 -142
- package/lib/umd/locale/km.js +0 -142
- package/lib/umd/locale/ko.js +0 -142
- package/lib/umd/locale/ku.js +0 -142
- package/lib/umd/locale/kz.js +0 -142
- package/lib/umd/locale/lo-LA.js +0 -141
- package/lib/umd/locale/lt.js +0 -142
- package/lib/umd/locale/lv.js +0 -142
- package/lib/umd/locale/mn.js +0 -142
- package/lib/umd/locale/ms.js +0 -141
- package/lib/umd/locale/nb-NO.js +0 -141
- package/lib/umd/locale/nl.js +0 -142
- package/lib/umd/locale/pl.js +0 -142
- package/lib/umd/locale/pt-br.js +0 -142
- package/lib/umd/locale/pt.js +0 -142
- package/lib/umd/locale/ro.js +0 -142
- package/lib/umd/locale/ru-RU.js +0 -142
- package/lib/umd/locale/si.js +0 -142
- package/lib/umd/locale/sk.js +0 -144
- package/lib/umd/locale/sl.js +0 -142
- package/lib/umd/locale/sr-Latn.js +0 -142
- package/lib/umd/locale/sr.js +0 -142
- package/lib/umd/locale/sv-SE.js +0 -142
- package/lib/umd/locale/sw.js +0 -142
- package/lib/umd/locale/ta.js +0 -141
- package/lib/umd/locale/th.js +0 -142
- package/lib/umd/locale/tk.js +0 -142
- package/lib/umd/locale/tr-TR.js +0 -142
- package/lib/umd/locale/ua.js +0 -142
- package/lib/umd/locale/ug-CN.js +0 -142
- package/lib/umd/locale/uz-UZ.js +0 -142
- package/lib/umd/locale/vi.js +0 -142
- package/lib/umd/locale/zh-CN.js +0 -142
- package/lib/umd/locale/zh-TW.js +0 -142
- package/lib/upload.js +0 -1390
- package/lib/utils/after-leave.js +0 -35
- package/lib/utils/aria-dialog.js +0 -104
- package/lib/utils/aria-utils.js +0 -126
- package/lib/utils/clickoutside.js +0 -79
- package/lib/utils/date-util.js +0 -310
- package/lib/utils/date.js +0 -369
- package/lib/utils/dom.js +0 -234
- package/lib/utils/lodash.js +0 -9421
- package/lib/utils/menu/aria-menubar.js +0 -24
- package/lib/utils/menu/aria-menuitem.js +0 -62
- package/lib/utils/menu/aria-submenu.js +0 -69
- package/lib/utils/merge.js +0 -21
- package/lib/utils/popper.js +0 -1261
- package/lib/utils/popup/index.js +0 -233
- package/lib/utils/popup/popup-manager.js +0 -205
- package/lib/utils/resize-event.js +0 -59
- package/lib/utils/scroll-into-view.js +0 -38
- package/lib/utils/scrollbar-width.js +0 -39
- package/lib/utils/shared.js +0 -12
- package/lib/utils/types.js +0 -52
- package/lib/utils/util.js +0 -272
- package/lib/utils/vdom.js +0 -13
- package/lib/utils/vue-popper.js +0 -202
- 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/avatar.css +0 -1
- package/packages/theme-chalk/lib/backtop.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-item.css +0 -0
- package/packages/theme-chalk/lib/breadcrumb.css +0 -1
- package/packages/theme-chalk/lib/button-group.css +0 -0
- package/packages/theme-chalk/lib/button.css +0 -1
- package/packages/theme-chalk/lib/calendar.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-panel.css +0 -1
- package/packages/theme-chalk/lib/cascader.css +0 -1
- package/packages/theme-chalk/lib/checkbox-button.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +0 -0
- 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/descriptions-item.css +0 -1
- package/packages/theme-chalk/lib/descriptions.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/divider.css +0 -1
- package/packages/theme-chalk/lib/drawer.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/empty.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/image.css +0 -1
- package/packages/theme-chalk/lib/index.css +0 -1
- package/packages/theme-chalk/lib/infinite-scroll.css +0 -0
- package/packages/theme-chalk/lib/infiniteScroll.css +0 -0
- package/packages/theme-chalk/lib/input-number.css +0 -1
- package/packages/theme-chalk/lib/input.css +0 -1
- package/packages/theme-chalk/lib/link.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/page-header.css +0 -1
- package/packages/theme-chalk/lib/pagination.css +0 -1
- package/packages/theme-chalk/lib/popconfirm.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/result.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/skeleton-item.css +0 -1
- package/packages/theme-chalk/lib/skeleton.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/statistic.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/timeline-item.css +0 -1
- package/packages/theme-chalk/lib/timeline.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/types/{element-ui.d.ts → element-sim.d.ts} +0 -0
package/lib/cascader.js
DELETED
|
@@ -1,1439 +0,0 @@
|
|
|
1
|
-
module.exports =
|
|
2
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
-
/******/ // The module cache
|
|
4
|
-
/******/ var installedModules = {};
|
|
5
|
-
/******/
|
|
6
|
-
/******/ // The require function
|
|
7
|
-
/******/ function __webpack_require__(moduleId) {
|
|
8
|
-
/******/
|
|
9
|
-
/******/ // Check if module is in cache
|
|
10
|
-
/******/ if(installedModules[moduleId]) {
|
|
11
|
-
/******/ return installedModules[moduleId].exports;
|
|
12
|
-
/******/ }
|
|
13
|
-
/******/ // Create a new module (and put it into the cache)
|
|
14
|
-
/******/ var module = installedModules[moduleId] = {
|
|
15
|
-
/******/ i: moduleId,
|
|
16
|
-
/******/ l: false,
|
|
17
|
-
/******/ exports: {}
|
|
18
|
-
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/ // Execute the module function
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
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, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 115);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ({
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
|
-
|
|
93
|
-
"use strict";
|
|
94
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
95
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
96
|
-
|
|
97
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
98
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
99
|
-
// be included in the final webpack user bundle.
|
|
100
|
-
|
|
101
|
-
function normalizeComponent(
|
|
102
|
-
scriptExports,
|
|
103
|
-
render,
|
|
104
|
-
staticRenderFns,
|
|
105
|
-
functionalTemplate,
|
|
106
|
-
injectStyles,
|
|
107
|
-
scopeId,
|
|
108
|
-
moduleIdentifier /* server only */,
|
|
109
|
-
shadowMode /* vue-cli only */
|
|
110
|
-
) {
|
|
111
|
-
// Vue.extend constructor export interop
|
|
112
|
-
var options =
|
|
113
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
114
|
-
|
|
115
|
-
// render functions
|
|
116
|
-
if (render) {
|
|
117
|
-
options.render = render
|
|
118
|
-
options.staticRenderFns = staticRenderFns
|
|
119
|
-
options._compiled = true
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// functional template
|
|
123
|
-
if (functionalTemplate) {
|
|
124
|
-
options.functional = true
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// scopedId
|
|
128
|
-
if (scopeId) {
|
|
129
|
-
options._scopeId = 'data-v-' + scopeId
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
var hook
|
|
133
|
-
if (moduleIdentifier) {
|
|
134
|
-
// server build
|
|
135
|
-
hook = function (context) {
|
|
136
|
-
// 2.3 injection
|
|
137
|
-
context =
|
|
138
|
-
context || // cached call
|
|
139
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
140
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
141
|
-
// 2.2 with runInNewContext: true
|
|
142
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
143
|
-
context = __VUE_SSR_CONTEXT__
|
|
144
|
-
}
|
|
145
|
-
// inject component styles
|
|
146
|
-
if (injectStyles) {
|
|
147
|
-
injectStyles.call(this, context)
|
|
148
|
-
}
|
|
149
|
-
// register component module identifier for async chunk inferrence
|
|
150
|
-
if (context && context._registeredComponents) {
|
|
151
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
// used by ssr in case component is cached and beforeCreate
|
|
155
|
-
// never gets called
|
|
156
|
-
options._ssrRegister = hook
|
|
157
|
-
} else if (injectStyles) {
|
|
158
|
-
hook = shadowMode
|
|
159
|
-
? function () {
|
|
160
|
-
injectStyles.call(
|
|
161
|
-
this,
|
|
162
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
: injectStyles
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (hook) {
|
|
169
|
-
if (options.functional) {
|
|
170
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
171
|
-
// go through the normalizer
|
|
172
|
-
options._injectStyles = hook
|
|
173
|
-
// register for functional component in vue file
|
|
174
|
-
var originalRender = options.render
|
|
175
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
176
|
-
hook.call(context)
|
|
177
|
-
return originalRender(h, context)
|
|
178
|
-
}
|
|
179
|
-
} else {
|
|
180
|
-
// inject component registration as beforeCreate hook
|
|
181
|
-
var existing = options.beforeCreate
|
|
182
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
return {
|
|
187
|
-
exports: scriptExports,
|
|
188
|
-
options: options
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
/***/ }),
|
|
194
|
-
|
|
195
|
-
/***/ 10:
|
|
196
|
-
/***/ (function(module, exports) {
|
|
197
|
-
|
|
198
|
-
module.exports = require("element-SIM/lib/input");
|
|
199
|
-
|
|
200
|
-
/***/ }),
|
|
201
|
-
|
|
202
|
-
/***/ 11:
|
|
203
|
-
/***/ (function(module, exports) {
|
|
204
|
-
|
|
205
|
-
module.exports = require("element-SIM/lib/mixins/migrating");
|
|
206
|
-
|
|
207
|
-
/***/ }),
|
|
208
|
-
|
|
209
|
-
/***/ 115:
|
|
210
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
211
|
-
|
|
212
|
-
"use strict";
|
|
213
|
-
// ESM COMPAT FLAG
|
|
214
|
-
__webpack_require__.r(__webpack_exports__);
|
|
215
|
-
|
|
216
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/cascader.vue?vue&type=template&id=6f465255
|
|
217
|
-
var render = function () {
|
|
218
|
-
var _vm = this
|
|
219
|
-
var _h = _vm.$createElement
|
|
220
|
-
var _c = _vm._self._c || _h
|
|
221
|
-
return _c(
|
|
222
|
-
"div",
|
|
223
|
-
{
|
|
224
|
-
directives: [
|
|
225
|
-
{
|
|
226
|
-
name: "clickoutside",
|
|
227
|
-
rawName: "v-clickoutside",
|
|
228
|
-
value: function () {
|
|
229
|
-
return _vm.toggleDropDownVisible(false)
|
|
230
|
-
},
|
|
231
|
-
expression: "() => toggleDropDownVisible(false)",
|
|
232
|
-
},
|
|
233
|
-
],
|
|
234
|
-
ref: "reference",
|
|
235
|
-
class: [
|
|
236
|
-
"el-cascader",
|
|
237
|
-
_vm.realSize && "el-cascader--" + _vm.realSize,
|
|
238
|
-
{ "is-disabled": _vm.isDisabled },
|
|
239
|
-
],
|
|
240
|
-
on: {
|
|
241
|
-
mouseenter: function ($event) {
|
|
242
|
-
_vm.inputHover = true
|
|
243
|
-
},
|
|
244
|
-
mouseleave: function ($event) {
|
|
245
|
-
_vm.inputHover = false
|
|
246
|
-
},
|
|
247
|
-
click: function () {
|
|
248
|
-
return _vm.toggleDropDownVisible(_vm.readonly ? undefined : true)
|
|
249
|
-
},
|
|
250
|
-
keydown: _vm.handleKeyDown,
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
[
|
|
254
|
-
_c(
|
|
255
|
-
"el-input",
|
|
256
|
-
{
|
|
257
|
-
ref: "input",
|
|
258
|
-
class: { "is-focus": _vm.dropDownVisible },
|
|
259
|
-
attrs: {
|
|
260
|
-
size: _vm.realSize,
|
|
261
|
-
placeholder: _vm.placeholder,
|
|
262
|
-
readonly: _vm.readonly,
|
|
263
|
-
disabled: _vm.isDisabled,
|
|
264
|
-
"validate-event": false,
|
|
265
|
-
},
|
|
266
|
-
on: {
|
|
267
|
-
focus: _vm.handleFocus,
|
|
268
|
-
blur: _vm.handleBlur,
|
|
269
|
-
input: _vm.handleInput,
|
|
270
|
-
},
|
|
271
|
-
model: {
|
|
272
|
-
value: _vm.multiple ? _vm.presentText : _vm.inputValue,
|
|
273
|
-
callback: function ($$v) {
|
|
274
|
-
_vm.multiple ? _vm.presentText : (_vm.inputValue = $$v)
|
|
275
|
-
},
|
|
276
|
-
expression: "multiple ? presentText : inputValue",
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
[
|
|
280
|
-
_c("template", { slot: "suffix" }, [
|
|
281
|
-
_vm.clearBtnVisible
|
|
282
|
-
? _c("i", {
|
|
283
|
-
key: "clear",
|
|
284
|
-
staticClass: "el-input__icon el-icon-circle-close",
|
|
285
|
-
on: {
|
|
286
|
-
click: function ($event) {
|
|
287
|
-
$event.stopPropagation()
|
|
288
|
-
return _vm.handleClear($event)
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
})
|
|
292
|
-
: _c("i", {
|
|
293
|
-
key: "arrow-down",
|
|
294
|
-
class: [
|
|
295
|
-
"el-input__icon",
|
|
296
|
-
"el-icon-arrow-down",
|
|
297
|
-
_vm.dropDownVisible && "is-reverse",
|
|
298
|
-
],
|
|
299
|
-
on: {
|
|
300
|
-
click: function ($event) {
|
|
301
|
-
$event.stopPropagation()
|
|
302
|
-
_vm.toggleDropDownVisible()
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
}),
|
|
306
|
-
]),
|
|
307
|
-
],
|
|
308
|
-
2
|
|
309
|
-
),
|
|
310
|
-
_vm.multiple
|
|
311
|
-
? _c(
|
|
312
|
-
"div",
|
|
313
|
-
{ staticClass: "el-cascader__tags" },
|
|
314
|
-
[
|
|
315
|
-
_vm._l(_vm.presentTags, function (tag) {
|
|
316
|
-
return _c(
|
|
317
|
-
"el-tag",
|
|
318
|
-
{
|
|
319
|
-
key: tag.key,
|
|
320
|
-
attrs: {
|
|
321
|
-
type: "info",
|
|
322
|
-
size: _vm.tagSize,
|
|
323
|
-
hit: tag.hitState,
|
|
324
|
-
closable: tag.closable,
|
|
325
|
-
"disable-transitions": "",
|
|
326
|
-
},
|
|
327
|
-
on: {
|
|
328
|
-
close: function ($event) {
|
|
329
|
-
_vm.deleteTag(tag)
|
|
330
|
-
},
|
|
331
|
-
},
|
|
332
|
-
},
|
|
333
|
-
[_c("span", [_vm._v(_vm._s(tag.text))])]
|
|
334
|
-
)
|
|
335
|
-
}),
|
|
336
|
-
_vm.filterable && !_vm.isDisabled
|
|
337
|
-
? _c("input", {
|
|
338
|
-
directives: [
|
|
339
|
-
{
|
|
340
|
-
name: "model",
|
|
341
|
-
rawName: "v-model.trim",
|
|
342
|
-
value: _vm.inputValue,
|
|
343
|
-
expression: "inputValue",
|
|
344
|
-
modifiers: { trim: true },
|
|
345
|
-
},
|
|
346
|
-
],
|
|
347
|
-
staticClass: "el-cascader__search-input",
|
|
348
|
-
attrs: {
|
|
349
|
-
type: "text",
|
|
350
|
-
placeholder: _vm.presentTags.length
|
|
351
|
-
? ""
|
|
352
|
-
: _vm.placeholder,
|
|
353
|
-
},
|
|
354
|
-
domProps: { value: _vm.inputValue },
|
|
355
|
-
on: {
|
|
356
|
-
input: [
|
|
357
|
-
function ($event) {
|
|
358
|
-
if ($event.target.composing) {
|
|
359
|
-
return
|
|
360
|
-
}
|
|
361
|
-
_vm.inputValue = $event.target.value.trim()
|
|
362
|
-
},
|
|
363
|
-
function (e) {
|
|
364
|
-
return _vm.handleInput(_vm.inputValue, e)
|
|
365
|
-
},
|
|
366
|
-
],
|
|
367
|
-
click: function ($event) {
|
|
368
|
-
$event.stopPropagation()
|
|
369
|
-
_vm.toggleDropDownVisible(true)
|
|
370
|
-
},
|
|
371
|
-
keydown: function ($event) {
|
|
372
|
-
if (
|
|
373
|
-
!("button" in $event) &&
|
|
374
|
-
_vm._k(
|
|
375
|
-
$event.keyCode,
|
|
376
|
-
"delete",
|
|
377
|
-
[8, 46],
|
|
378
|
-
$event.key,
|
|
379
|
-
["Backspace", "Delete", "Del"]
|
|
380
|
-
)
|
|
381
|
-
) {
|
|
382
|
-
return null
|
|
383
|
-
}
|
|
384
|
-
return _vm.handleDelete($event)
|
|
385
|
-
},
|
|
386
|
-
blur: function ($event) {
|
|
387
|
-
_vm.$forceUpdate()
|
|
388
|
-
},
|
|
389
|
-
},
|
|
390
|
-
})
|
|
391
|
-
: _vm._e(),
|
|
392
|
-
],
|
|
393
|
-
2
|
|
394
|
-
)
|
|
395
|
-
: _vm._e(),
|
|
396
|
-
_c(
|
|
397
|
-
"transition",
|
|
398
|
-
{
|
|
399
|
-
attrs: { name: "el-zoom-in-top" },
|
|
400
|
-
on: { "after-leave": _vm.handleDropdownLeave },
|
|
401
|
-
},
|
|
402
|
-
[
|
|
403
|
-
_c(
|
|
404
|
-
"div",
|
|
405
|
-
{
|
|
406
|
-
directives: [
|
|
407
|
-
{
|
|
408
|
-
name: "show",
|
|
409
|
-
rawName: "v-show",
|
|
410
|
-
value: _vm.dropDownVisible,
|
|
411
|
-
expression: "dropDownVisible",
|
|
412
|
-
},
|
|
413
|
-
],
|
|
414
|
-
ref: "popper",
|
|
415
|
-
class: ["el-popper", "el-cascader__dropdown", _vm.popperClass],
|
|
416
|
-
},
|
|
417
|
-
[
|
|
418
|
-
_c("el-cascader-panel", {
|
|
419
|
-
directives: [
|
|
420
|
-
{
|
|
421
|
-
name: "show",
|
|
422
|
-
rawName: "v-show",
|
|
423
|
-
value: !_vm.filtering,
|
|
424
|
-
expression: "!filtering",
|
|
425
|
-
},
|
|
426
|
-
],
|
|
427
|
-
ref: "panel",
|
|
428
|
-
attrs: {
|
|
429
|
-
options: _vm.options,
|
|
430
|
-
props: _vm.config,
|
|
431
|
-
border: false,
|
|
432
|
-
"render-label": _vm.$scopedSlots.default,
|
|
433
|
-
},
|
|
434
|
-
on: {
|
|
435
|
-
"expand-change": _vm.handleExpandChange,
|
|
436
|
-
close: function ($event) {
|
|
437
|
-
_vm.toggleDropDownVisible(false)
|
|
438
|
-
},
|
|
439
|
-
},
|
|
440
|
-
model: {
|
|
441
|
-
value: _vm.checkedValue,
|
|
442
|
-
callback: function ($$v) {
|
|
443
|
-
_vm.checkedValue = $$v
|
|
444
|
-
},
|
|
445
|
-
expression: "checkedValue",
|
|
446
|
-
},
|
|
447
|
-
}),
|
|
448
|
-
_vm.filterable
|
|
449
|
-
? _c(
|
|
450
|
-
"el-scrollbar",
|
|
451
|
-
{
|
|
452
|
-
directives: [
|
|
453
|
-
{
|
|
454
|
-
name: "show",
|
|
455
|
-
rawName: "v-show",
|
|
456
|
-
value: _vm.filtering,
|
|
457
|
-
expression: "filtering",
|
|
458
|
-
},
|
|
459
|
-
],
|
|
460
|
-
ref: "suggestionPanel",
|
|
461
|
-
staticClass: "el-cascader__suggestion-panel",
|
|
462
|
-
attrs: {
|
|
463
|
-
tag: "ul",
|
|
464
|
-
"view-class": "el-cascader__suggestion-list",
|
|
465
|
-
},
|
|
466
|
-
nativeOn: {
|
|
467
|
-
keydown: function ($event) {
|
|
468
|
-
return _vm.handleSuggestionKeyDown($event)
|
|
469
|
-
},
|
|
470
|
-
},
|
|
471
|
-
},
|
|
472
|
-
[
|
|
473
|
-
_vm.suggestions.length
|
|
474
|
-
? _vm._l(_vm.suggestions, function (item, index) {
|
|
475
|
-
return _c(
|
|
476
|
-
"li",
|
|
477
|
-
{
|
|
478
|
-
key: item.uid,
|
|
479
|
-
class: [
|
|
480
|
-
"el-cascader__suggestion-item",
|
|
481
|
-
item.checked && "is-checked",
|
|
482
|
-
],
|
|
483
|
-
attrs: { tabindex: -1 },
|
|
484
|
-
on: {
|
|
485
|
-
click: function ($event) {
|
|
486
|
-
_vm.handleSuggestionClick(index)
|
|
487
|
-
},
|
|
488
|
-
},
|
|
489
|
-
},
|
|
490
|
-
[
|
|
491
|
-
_c("span", [_vm._v(_vm._s(item.text))]),
|
|
492
|
-
item.checked
|
|
493
|
-
? _c("i", { staticClass: "el-icon-check" })
|
|
494
|
-
: _vm._e(),
|
|
495
|
-
]
|
|
496
|
-
)
|
|
497
|
-
})
|
|
498
|
-
: _vm._t("empty", [
|
|
499
|
-
_c(
|
|
500
|
-
"li",
|
|
501
|
-
{ staticClass: "el-cascader__empty-text" },
|
|
502
|
-
[_vm._v(_vm._s(_vm.t("el.cascader.noMatch")))]
|
|
503
|
-
),
|
|
504
|
-
]),
|
|
505
|
-
],
|
|
506
|
-
2
|
|
507
|
-
)
|
|
508
|
-
: _vm._e(),
|
|
509
|
-
],
|
|
510
|
-
1
|
|
511
|
-
),
|
|
512
|
-
]
|
|
513
|
-
),
|
|
514
|
-
],
|
|
515
|
-
1
|
|
516
|
-
)
|
|
517
|
-
}
|
|
518
|
-
var staticRenderFns = []
|
|
519
|
-
render._withStripped = true
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
// CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=template&id=6f465255
|
|
523
|
-
|
|
524
|
-
// EXTERNAL MODULE: external "element-SIM/lib/utils/vue-popper"
|
|
525
|
-
var vue_popper_ = __webpack_require__(5);
|
|
526
|
-
var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
|
|
527
|
-
|
|
528
|
-
// EXTERNAL MODULE: external "element-SIM/lib/utils/clickoutside"
|
|
529
|
-
var clickoutside_ = __webpack_require__(12);
|
|
530
|
-
var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
|
531
|
-
|
|
532
|
-
// EXTERNAL MODULE: external "element-SIM/lib/mixins/emitter"
|
|
533
|
-
var emitter_ = __webpack_require__(4);
|
|
534
|
-
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
535
|
-
|
|
536
|
-
// EXTERNAL MODULE: external "element-SIM/lib/mixins/locale"
|
|
537
|
-
var locale_ = __webpack_require__(6);
|
|
538
|
-
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
539
|
-
|
|
540
|
-
// EXTERNAL MODULE: external "element-SIM/lib/mixins/migrating"
|
|
541
|
-
var migrating_ = __webpack_require__(11);
|
|
542
|
-
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
|
543
|
-
|
|
544
|
-
// EXTERNAL MODULE: external "element-SIM/lib/input"
|
|
545
|
-
var input_ = __webpack_require__(10);
|
|
546
|
-
var input_default = /*#__PURE__*/__webpack_require__.n(input_);
|
|
547
|
-
|
|
548
|
-
// EXTERNAL MODULE: external "element-SIM/lib/tag"
|
|
549
|
-
var tag_ = __webpack_require__(38);
|
|
550
|
-
var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);
|
|
551
|
-
|
|
552
|
-
// EXTERNAL MODULE: external "element-SIM/lib/scrollbar"
|
|
553
|
-
var scrollbar_ = __webpack_require__(15);
|
|
554
|
-
var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
|
|
555
|
-
|
|
556
|
-
// EXTERNAL MODULE: external "element-SIM/lib/cascader-panel"
|
|
557
|
-
var cascader_panel_ = __webpack_require__(51);
|
|
558
|
-
var cascader_panel_default = /*#__PURE__*/__webpack_require__.n(cascader_panel_);
|
|
559
|
-
|
|
560
|
-
// EXTERNAL MODULE: external "element-SIM/lib/utils/aria-utils"
|
|
561
|
-
var aria_utils_ = __webpack_require__(41);
|
|
562
|
-
var aria_utils_default = /*#__PURE__*/__webpack_require__.n(aria_utils_);
|
|
563
|
-
|
|
564
|
-
// EXTERNAL MODULE: external "element-SIM/lib/locale"
|
|
565
|
-
var lib_locale_ = __webpack_require__(20);
|
|
566
|
-
|
|
567
|
-
// EXTERNAL MODULE: external "element-SIM/lib/utils/util"
|
|
568
|
-
var util_ = __webpack_require__(3);
|
|
569
|
-
|
|
570
|
-
// EXTERNAL MODULE: external "element-SIM/lib/utils/types"
|
|
571
|
-
var types_ = __webpack_require__(17);
|
|
572
|
-
|
|
573
|
-
// EXTERNAL MODULE: external "element-SIM/lib/utils/shared"
|
|
574
|
-
var shared_ = __webpack_require__(21);
|
|
575
|
-
|
|
576
|
-
// EXTERNAL MODULE: external "element-SIM/lib/utils/resize-event"
|
|
577
|
-
var resize_event_ = __webpack_require__(16);
|
|
578
|
-
|
|
579
|
-
// EXTERNAL MODULE: external "throttle-debounce/debounce"
|
|
580
|
-
var debounce_ = __webpack_require__(19);
|
|
581
|
-
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
|
|
582
|
-
|
|
583
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/cascader.vue?vue&type=script&lang=js
|
|
584
|
-
//
|
|
585
|
-
//
|
|
586
|
-
//
|
|
587
|
-
//
|
|
588
|
-
//
|
|
589
|
-
//
|
|
590
|
-
//
|
|
591
|
-
//
|
|
592
|
-
//
|
|
593
|
-
//
|
|
594
|
-
//
|
|
595
|
-
//
|
|
596
|
-
//
|
|
597
|
-
//
|
|
598
|
-
//
|
|
599
|
-
//
|
|
600
|
-
//
|
|
601
|
-
//
|
|
602
|
-
//
|
|
603
|
-
//
|
|
604
|
-
//
|
|
605
|
-
//
|
|
606
|
-
//
|
|
607
|
-
//
|
|
608
|
-
//
|
|
609
|
-
//
|
|
610
|
-
//
|
|
611
|
-
//
|
|
612
|
-
//
|
|
613
|
-
//
|
|
614
|
-
//
|
|
615
|
-
//
|
|
616
|
-
//
|
|
617
|
-
//
|
|
618
|
-
//
|
|
619
|
-
//
|
|
620
|
-
//
|
|
621
|
-
//
|
|
622
|
-
//
|
|
623
|
-
//
|
|
624
|
-
//
|
|
625
|
-
//
|
|
626
|
-
//
|
|
627
|
-
//
|
|
628
|
-
//
|
|
629
|
-
//
|
|
630
|
-
//
|
|
631
|
-
//
|
|
632
|
-
//
|
|
633
|
-
//
|
|
634
|
-
//
|
|
635
|
-
//
|
|
636
|
-
//
|
|
637
|
-
//
|
|
638
|
-
//
|
|
639
|
-
//
|
|
640
|
-
//
|
|
641
|
-
//
|
|
642
|
-
//
|
|
643
|
-
//
|
|
644
|
-
//
|
|
645
|
-
//
|
|
646
|
-
//
|
|
647
|
-
//
|
|
648
|
-
//
|
|
649
|
-
//
|
|
650
|
-
//
|
|
651
|
-
//
|
|
652
|
-
//
|
|
653
|
-
//
|
|
654
|
-
//
|
|
655
|
-
//
|
|
656
|
-
//
|
|
657
|
-
//
|
|
658
|
-
//
|
|
659
|
-
//
|
|
660
|
-
//
|
|
661
|
-
//
|
|
662
|
-
//
|
|
663
|
-
//
|
|
664
|
-
//
|
|
665
|
-
//
|
|
666
|
-
//
|
|
667
|
-
//
|
|
668
|
-
//
|
|
669
|
-
//
|
|
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
|
-
var KeyCode = aria_utils_default.a.keys;
|
|
716
|
-
|
|
717
|
-
var MigratingProps = {
|
|
718
|
-
expandTrigger: {
|
|
719
|
-
newProp: 'expandTrigger',
|
|
720
|
-
type: String
|
|
721
|
-
},
|
|
722
|
-
changeOnSelect: {
|
|
723
|
-
newProp: 'checkStrictly',
|
|
724
|
-
type: Boolean
|
|
725
|
-
},
|
|
726
|
-
hoverThreshold: {
|
|
727
|
-
newProp: 'hoverThreshold',
|
|
728
|
-
type: Number
|
|
729
|
-
}
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
var PopperMixin = {
|
|
733
|
-
props: {
|
|
734
|
-
placement: {
|
|
735
|
-
type: String,
|
|
736
|
-
default: 'bottom-start'
|
|
737
|
-
},
|
|
738
|
-
appendToBody: vue_popper_default.a.props.appendToBody,
|
|
739
|
-
visibleArrow: {
|
|
740
|
-
type: Boolean,
|
|
741
|
-
default: true
|
|
742
|
-
},
|
|
743
|
-
arrowOffset: vue_popper_default.a.props.arrowOffset,
|
|
744
|
-
offset: vue_popper_default.a.props.offset,
|
|
745
|
-
boundariesPadding: vue_popper_default.a.props.boundariesPadding,
|
|
746
|
-
popperOptions: vue_popper_default.a.props.popperOptions,
|
|
747
|
-
transformOrigin: vue_popper_default.a.props.transformOrigin
|
|
748
|
-
},
|
|
749
|
-
methods: vue_popper_default.a.methods,
|
|
750
|
-
data: vue_popper_default.a.data,
|
|
751
|
-
beforeDestroy: vue_popper_default.a.beforeDestroy
|
|
752
|
-
};
|
|
753
|
-
|
|
754
|
-
var InputSizeMap = {
|
|
755
|
-
medium: 36,
|
|
756
|
-
small: 32,
|
|
757
|
-
mini: 28
|
|
758
|
-
};
|
|
759
|
-
|
|
760
|
-
/* harmony default export */ var cascadervue_type_script_lang_js = ({
|
|
761
|
-
name: 'ElCascader',
|
|
762
|
-
|
|
763
|
-
directives: { Clickoutside: clickoutside_default.a },
|
|
764
|
-
|
|
765
|
-
mixins: [PopperMixin, emitter_default.a, locale_default.a, migrating_default.a],
|
|
766
|
-
|
|
767
|
-
inject: {
|
|
768
|
-
elForm: {
|
|
769
|
-
default: ''
|
|
770
|
-
},
|
|
771
|
-
elFormItem: {
|
|
772
|
-
default: ''
|
|
773
|
-
}
|
|
774
|
-
},
|
|
775
|
-
|
|
776
|
-
components: {
|
|
777
|
-
ElInput: input_default.a,
|
|
778
|
-
ElTag: tag_default.a,
|
|
779
|
-
ElScrollbar: scrollbar_default.a,
|
|
780
|
-
ElCascaderPanel: cascader_panel_default.a
|
|
781
|
-
},
|
|
782
|
-
|
|
783
|
-
props: {
|
|
784
|
-
value: {},
|
|
785
|
-
options: Array,
|
|
786
|
-
props: Object,
|
|
787
|
-
size: String,
|
|
788
|
-
placeholder: {
|
|
789
|
-
type: String,
|
|
790
|
-
default: function _default() {
|
|
791
|
-
return Object(lib_locale_["t"])('el.cascader.placeholder');
|
|
792
|
-
}
|
|
793
|
-
},
|
|
794
|
-
disabled: Boolean,
|
|
795
|
-
clearable: Boolean,
|
|
796
|
-
filterable: Boolean,
|
|
797
|
-
filterMethod: Function,
|
|
798
|
-
separator: {
|
|
799
|
-
type: String,
|
|
800
|
-
default: ' / '
|
|
801
|
-
},
|
|
802
|
-
showAllLevels: {
|
|
803
|
-
type: Boolean,
|
|
804
|
-
default: true
|
|
805
|
-
},
|
|
806
|
-
collapseTags: Boolean,
|
|
807
|
-
debounce: {
|
|
808
|
-
type: Number,
|
|
809
|
-
default: 300
|
|
810
|
-
},
|
|
811
|
-
beforeFilter: {
|
|
812
|
-
type: Function,
|
|
813
|
-
default: function _default() {
|
|
814
|
-
return function () {};
|
|
815
|
-
}
|
|
816
|
-
},
|
|
817
|
-
popperClass: String
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
data: function data() {
|
|
821
|
-
return {
|
|
822
|
-
dropDownVisible: false,
|
|
823
|
-
checkedValue: this.value,
|
|
824
|
-
inputHover: false,
|
|
825
|
-
inputValue: null,
|
|
826
|
-
presentText: null,
|
|
827
|
-
presentTags: [],
|
|
828
|
-
checkedNodes: [],
|
|
829
|
-
filtering: false,
|
|
830
|
-
suggestions: [],
|
|
831
|
-
inputInitialHeight: 0,
|
|
832
|
-
pressDeleteCount: 0
|
|
833
|
-
};
|
|
834
|
-
},
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
computed: {
|
|
838
|
-
realSize: function realSize() {
|
|
839
|
-
var _elFormItemSize = (this.elFormItem || {}).elFormItemSize;
|
|
840
|
-
return this.size || _elFormItemSize || (this.$ELEMENT || {}).size;
|
|
841
|
-
},
|
|
842
|
-
tagSize: function tagSize() {
|
|
843
|
-
return ['small', 'mini'].indexOf(this.realSize) > -1 ? 'mini' : 'small';
|
|
844
|
-
},
|
|
845
|
-
isDisabled: function isDisabled() {
|
|
846
|
-
return this.disabled || (this.elForm || {}).disabled;
|
|
847
|
-
},
|
|
848
|
-
config: function config() {
|
|
849
|
-
var config = this.props || {};
|
|
850
|
-
var $attrs = this.$attrs;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
Object.keys(MigratingProps).forEach(function (oldProp) {
|
|
854
|
-
var _MigratingProps$oldPr = MigratingProps[oldProp],
|
|
855
|
-
newProp = _MigratingProps$oldPr.newProp,
|
|
856
|
-
type = _MigratingProps$oldPr.type;
|
|
857
|
-
|
|
858
|
-
var oldValue = $attrs[oldProp] || $attrs[Object(util_["kebabCase"])(oldProp)];
|
|
859
|
-
if (Object(shared_["isDef"])(oldProp) && !Object(shared_["isDef"])(config[newProp])) {
|
|
860
|
-
if (type === Boolean && oldValue === '') {
|
|
861
|
-
oldValue = true;
|
|
862
|
-
}
|
|
863
|
-
config[newProp] = oldValue;
|
|
864
|
-
}
|
|
865
|
-
});
|
|
866
|
-
|
|
867
|
-
return config;
|
|
868
|
-
},
|
|
869
|
-
multiple: function multiple() {
|
|
870
|
-
return this.config.multiple;
|
|
871
|
-
},
|
|
872
|
-
leafOnly: function leafOnly() {
|
|
873
|
-
return !this.config.checkStrictly;
|
|
874
|
-
},
|
|
875
|
-
readonly: function readonly() {
|
|
876
|
-
return !this.filterable || this.multiple;
|
|
877
|
-
},
|
|
878
|
-
clearBtnVisible: function clearBtnVisible() {
|
|
879
|
-
if (!this.clearable || this.isDisabled || this.filtering || !this.inputHover) {
|
|
880
|
-
return false;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
return this.multiple ? !!this.checkedNodes.filter(function (node) {
|
|
884
|
-
return !node.isDisabled;
|
|
885
|
-
}).length : !!this.presentText;
|
|
886
|
-
},
|
|
887
|
-
panel: function panel() {
|
|
888
|
-
return this.$refs.panel;
|
|
889
|
-
}
|
|
890
|
-
},
|
|
891
|
-
|
|
892
|
-
watch: {
|
|
893
|
-
disabled: function disabled() {
|
|
894
|
-
this.computePresentContent();
|
|
895
|
-
},
|
|
896
|
-
value: function value(val) {
|
|
897
|
-
if (!Object(util_["isEqual"])(val, this.checkedValue)) {
|
|
898
|
-
this.checkedValue = val;
|
|
899
|
-
this.computePresentContent();
|
|
900
|
-
}
|
|
901
|
-
},
|
|
902
|
-
checkedValue: function checkedValue(val) {
|
|
903
|
-
var value = this.value,
|
|
904
|
-
dropDownVisible = this.dropDownVisible;
|
|
905
|
-
var _config = this.config,
|
|
906
|
-
checkStrictly = _config.checkStrictly,
|
|
907
|
-
multiple = _config.multiple;
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
if (!Object(util_["isEqual"])(val, value) || Object(types_["isUndefined"])(value)) {
|
|
911
|
-
this.computePresentContent();
|
|
912
|
-
// hide dropdown when single mode
|
|
913
|
-
if (!multiple && !checkStrictly && dropDownVisible) {
|
|
914
|
-
this.toggleDropDownVisible(false);
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
this.$emit('input', val);
|
|
918
|
-
this.$emit('change', val);
|
|
919
|
-
this.dispatch('ElFormItem', 'el.form.change', [val]);
|
|
920
|
-
}
|
|
921
|
-
},
|
|
922
|
-
|
|
923
|
-
options: {
|
|
924
|
-
handler: function handler() {
|
|
925
|
-
this.$nextTick(this.computePresentContent);
|
|
926
|
-
},
|
|
927
|
-
deep: true
|
|
928
|
-
},
|
|
929
|
-
presentText: function presentText(val) {
|
|
930
|
-
this.inputValue = val;
|
|
931
|
-
},
|
|
932
|
-
presentTags: function presentTags(val, oldVal) {
|
|
933
|
-
if (this.multiple && (val.length || oldVal.length)) {
|
|
934
|
-
this.$nextTick(this.updateStyle);
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
filtering: function filtering(val) {
|
|
938
|
-
this.$nextTick(this.updatePopper);
|
|
939
|
-
}
|
|
940
|
-
},
|
|
941
|
-
|
|
942
|
-
mounted: function mounted() {
|
|
943
|
-
var _this = this;
|
|
944
|
-
|
|
945
|
-
var input = this.$refs.input;
|
|
946
|
-
|
|
947
|
-
if (input && input.$el) {
|
|
948
|
-
this.inputInitialHeight = input.$el.offsetHeight || InputSizeMap[this.realSize] || 40;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
if (!this.isEmptyValue(this.value)) {
|
|
952
|
-
this.computePresentContent();
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
this.filterHandler = debounce_default()(this.debounce, function () {
|
|
956
|
-
var inputValue = _this.inputValue;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
if (!inputValue) {
|
|
960
|
-
_this.filtering = false;
|
|
961
|
-
return;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
var before = _this.beforeFilter(inputValue);
|
|
965
|
-
if (before && before.then) {
|
|
966
|
-
before.then(_this.getSuggestions);
|
|
967
|
-
} else if (before !== false) {
|
|
968
|
-
_this.getSuggestions();
|
|
969
|
-
} else {
|
|
970
|
-
_this.filtering = false;
|
|
971
|
-
}
|
|
972
|
-
});
|
|
973
|
-
|
|
974
|
-
Object(resize_event_["addResizeListener"])(this.$el, this.updateStyle);
|
|
975
|
-
},
|
|
976
|
-
beforeDestroy: function beforeDestroy() {
|
|
977
|
-
Object(resize_event_["removeResizeListener"])(this.$el, this.updateStyle);
|
|
978
|
-
},
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
methods: {
|
|
982
|
-
getMigratingConfig: function getMigratingConfig() {
|
|
983
|
-
return {
|
|
984
|
-
props: {
|
|
985
|
-
'expand-trigger': 'expand-trigger is removed, use `props.expandTrigger` instead.',
|
|
986
|
-
'change-on-select': 'change-on-select is removed, use `props.checkStrictly` instead.',
|
|
987
|
-
'hover-threshold': 'hover-threshold is removed, use `props.hoverThreshold` instead'
|
|
988
|
-
},
|
|
989
|
-
events: {
|
|
990
|
-
'active-item-change': 'active-item-change is renamed to expand-change'
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
},
|
|
994
|
-
toggleDropDownVisible: function toggleDropDownVisible(visible) {
|
|
995
|
-
var _this2 = this;
|
|
996
|
-
|
|
997
|
-
if (this.isDisabled) return;
|
|
998
|
-
|
|
999
|
-
var dropDownVisible = this.dropDownVisible;
|
|
1000
|
-
var input = this.$refs.input;
|
|
1001
|
-
|
|
1002
|
-
visible = Object(shared_["isDef"])(visible) ? visible : !dropDownVisible;
|
|
1003
|
-
if (visible !== dropDownVisible) {
|
|
1004
|
-
this.dropDownVisible = visible;
|
|
1005
|
-
if (visible) {
|
|
1006
|
-
this.$nextTick(function () {
|
|
1007
|
-
_this2.updatePopper();
|
|
1008
|
-
_this2.panel.scrollIntoView();
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
1011
|
-
input.$refs.input.setAttribute('aria-expanded', visible);
|
|
1012
|
-
this.$emit('visible-change', visible);
|
|
1013
|
-
}
|
|
1014
|
-
},
|
|
1015
|
-
handleDropdownLeave: function handleDropdownLeave() {
|
|
1016
|
-
this.filtering = false;
|
|
1017
|
-
this.inputValue = this.presentText;
|
|
1018
|
-
this.doDestroy();
|
|
1019
|
-
},
|
|
1020
|
-
handleKeyDown: function handleKeyDown(event) {
|
|
1021
|
-
switch (event.keyCode) {
|
|
1022
|
-
case KeyCode.enter:
|
|
1023
|
-
this.toggleDropDownVisible();
|
|
1024
|
-
break;
|
|
1025
|
-
case KeyCode.down:
|
|
1026
|
-
this.toggleDropDownVisible(true);
|
|
1027
|
-
this.focusFirstNode();
|
|
1028
|
-
event.preventDefault();
|
|
1029
|
-
break;
|
|
1030
|
-
case KeyCode.esc:
|
|
1031
|
-
case KeyCode.tab:
|
|
1032
|
-
this.toggleDropDownVisible(false);
|
|
1033
|
-
break;
|
|
1034
|
-
}
|
|
1035
|
-
},
|
|
1036
|
-
handleFocus: function handleFocus(e) {
|
|
1037
|
-
this.$emit('focus', e);
|
|
1038
|
-
},
|
|
1039
|
-
handleBlur: function handleBlur(e) {
|
|
1040
|
-
this.$emit('blur', e);
|
|
1041
|
-
},
|
|
1042
|
-
handleInput: function handleInput(val, event) {
|
|
1043
|
-
!this.dropDownVisible && this.toggleDropDownVisible(true);
|
|
1044
|
-
|
|
1045
|
-
if (event && event.isComposing) return;
|
|
1046
|
-
if (val) {
|
|
1047
|
-
this.filterHandler();
|
|
1048
|
-
} else {
|
|
1049
|
-
this.filtering = false;
|
|
1050
|
-
}
|
|
1051
|
-
},
|
|
1052
|
-
handleClear: function handleClear() {
|
|
1053
|
-
this.presentText = '';
|
|
1054
|
-
this.panel.clearCheckedNodes();
|
|
1055
|
-
},
|
|
1056
|
-
handleExpandChange: function handleExpandChange(value) {
|
|
1057
|
-
this.$nextTick(this.updatePopper.bind(this));
|
|
1058
|
-
this.$emit('expand-change', value);
|
|
1059
|
-
this.$emit('active-item-change', value); // Deprecated
|
|
1060
|
-
},
|
|
1061
|
-
focusFirstNode: function focusFirstNode() {
|
|
1062
|
-
var _this3 = this;
|
|
1063
|
-
|
|
1064
|
-
this.$nextTick(function () {
|
|
1065
|
-
var filtering = _this3.filtering;
|
|
1066
|
-
var _$refs = _this3.$refs,
|
|
1067
|
-
popper = _$refs.popper,
|
|
1068
|
-
suggestionPanel = _$refs.suggestionPanel;
|
|
1069
|
-
|
|
1070
|
-
var firstNode = null;
|
|
1071
|
-
|
|
1072
|
-
if (filtering && suggestionPanel) {
|
|
1073
|
-
firstNode = suggestionPanel.$el.querySelector('.el-cascader__suggestion-item');
|
|
1074
|
-
} else {
|
|
1075
|
-
var firstMenu = popper.querySelector('.el-cascader-menu');
|
|
1076
|
-
firstNode = firstMenu.querySelector('.el-cascader-node[tabindex="-1"]');
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
if (firstNode) {
|
|
1080
|
-
firstNode.focus();
|
|
1081
|
-
!filtering && firstNode.click();
|
|
1082
|
-
}
|
|
1083
|
-
});
|
|
1084
|
-
},
|
|
1085
|
-
computePresentContent: function computePresentContent() {
|
|
1086
|
-
var _this4 = this;
|
|
1087
|
-
|
|
1088
|
-
// nextTick is required, because checked nodes may not change right now
|
|
1089
|
-
this.$nextTick(function () {
|
|
1090
|
-
if (_this4.config.multiple) {
|
|
1091
|
-
_this4.computePresentTags();
|
|
1092
|
-
_this4.presentText = _this4.presentTags.length ? ' ' : null;
|
|
1093
|
-
} else {
|
|
1094
|
-
_this4.computePresentText();
|
|
1095
|
-
}
|
|
1096
|
-
});
|
|
1097
|
-
},
|
|
1098
|
-
isEmptyValue: function isEmptyValue(val) {
|
|
1099
|
-
var multiple = this.multiple;
|
|
1100
|
-
var emitPath = this.panel.config.emitPath;
|
|
1101
|
-
|
|
1102
|
-
if (multiple || emitPath) {
|
|
1103
|
-
return Object(util_["isEmpty"])(val);
|
|
1104
|
-
}
|
|
1105
|
-
return false;
|
|
1106
|
-
},
|
|
1107
|
-
computePresentText: function computePresentText() {
|
|
1108
|
-
var checkedValue = this.checkedValue,
|
|
1109
|
-
config = this.config;
|
|
1110
|
-
|
|
1111
|
-
if (!this.isEmptyValue(checkedValue)) {
|
|
1112
|
-
var node = this.panel.getNodeByValue(checkedValue);
|
|
1113
|
-
if (node && (config.checkStrictly || node.isLeaf)) {
|
|
1114
|
-
this.presentText = node.getText(this.showAllLevels, this.separator);
|
|
1115
|
-
return;
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
this.presentText = null;
|
|
1119
|
-
},
|
|
1120
|
-
computePresentTags: function computePresentTags() {
|
|
1121
|
-
var isDisabled = this.isDisabled,
|
|
1122
|
-
leafOnly = this.leafOnly,
|
|
1123
|
-
showAllLevels = this.showAllLevels,
|
|
1124
|
-
separator = this.separator,
|
|
1125
|
-
collapseTags = this.collapseTags;
|
|
1126
|
-
|
|
1127
|
-
var checkedNodes = this.getCheckedNodes(leafOnly);
|
|
1128
|
-
var tags = [];
|
|
1129
|
-
|
|
1130
|
-
var genTag = function genTag(node) {
|
|
1131
|
-
return {
|
|
1132
|
-
node: node,
|
|
1133
|
-
key: node.uid,
|
|
1134
|
-
text: node.getText(showAllLevels, separator),
|
|
1135
|
-
hitState: false,
|
|
1136
|
-
closable: !isDisabled && !node.isDisabled
|
|
1137
|
-
};
|
|
1138
|
-
};
|
|
1139
|
-
|
|
1140
|
-
if (checkedNodes.length) {
|
|
1141
|
-
var first = checkedNodes[0],
|
|
1142
|
-
rest = checkedNodes.slice(1);
|
|
1143
|
-
|
|
1144
|
-
var restCount = rest.length;
|
|
1145
|
-
tags.push(genTag(first));
|
|
1146
|
-
|
|
1147
|
-
if (restCount) {
|
|
1148
|
-
if (collapseTags) {
|
|
1149
|
-
tags.push({
|
|
1150
|
-
key: -1,
|
|
1151
|
-
text: '+ ' + restCount,
|
|
1152
|
-
closable: false
|
|
1153
|
-
});
|
|
1154
|
-
} else {
|
|
1155
|
-
rest.forEach(function (node) {
|
|
1156
|
-
return tags.push(genTag(node));
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
this.checkedNodes = checkedNodes;
|
|
1163
|
-
this.presentTags = tags;
|
|
1164
|
-
},
|
|
1165
|
-
getSuggestions: function getSuggestions() {
|
|
1166
|
-
var _this5 = this;
|
|
1167
|
-
|
|
1168
|
-
var filterMethod = this.filterMethod;
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
if (!Object(types_["isFunction"])(filterMethod)) {
|
|
1172
|
-
filterMethod = function filterMethod(node, keyword) {
|
|
1173
|
-
return node.text.includes(keyword);
|
|
1174
|
-
};
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
var suggestions = this.panel.getFlattedNodes(this.leafOnly).filter(function (node) {
|
|
1178
|
-
if (node.isDisabled) return false;
|
|
1179
|
-
node.text = node.getText(_this5.showAllLevels, _this5.separator) || '';
|
|
1180
|
-
return filterMethod(node, _this5.inputValue);
|
|
1181
|
-
});
|
|
1182
|
-
|
|
1183
|
-
if (this.multiple) {
|
|
1184
|
-
this.presentTags.forEach(function (tag) {
|
|
1185
|
-
tag.hitState = false;
|
|
1186
|
-
});
|
|
1187
|
-
} else {
|
|
1188
|
-
suggestions.forEach(function (node) {
|
|
1189
|
-
node.checked = Object(util_["isEqual"])(_this5.checkedValue, node.getValueByOption());
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
this.filtering = true;
|
|
1194
|
-
this.suggestions = suggestions;
|
|
1195
|
-
this.$nextTick(this.updatePopper);
|
|
1196
|
-
},
|
|
1197
|
-
handleSuggestionKeyDown: function handleSuggestionKeyDown(event) {
|
|
1198
|
-
var keyCode = event.keyCode,
|
|
1199
|
-
target = event.target;
|
|
1200
|
-
|
|
1201
|
-
switch (keyCode) {
|
|
1202
|
-
case KeyCode.enter:
|
|
1203
|
-
target.click();
|
|
1204
|
-
break;
|
|
1205
|
-
case KeyCode.up:
|
|
1206
|
-
var prev = target.previousElementSibling;
|
|
1207
|
-
prev && prev.focus();
|
|
1208
|
-
break;
|
|
1209
|
-
case KeyCode.down:
|
|
1210
|
-
var next = target.nextElementSibling;
|
|
1211
|
-
next && next.focus();
|
|
1212
|
-
break;
|
|
1213
|
-
case KeyCode.esc:
|
|
1214
|
-
case KeyCode.tab:
|
|
1215
|
-
this.toggleDropDownVisible(false);
|
|
1216
|
-
break;
|
|
1217
|
-
}
|
|
1218
|
-
},
|
|
1219
|
-
handleDelete: function handleDelete() {
|
|
1220
|
-
var inputValue = this.inputValue,
|
|
1221
|
-
pressDeleteCount = this.pressDeleteCount,
|
|
1222
|
-
presentTags = this.presentTags;
|
|
1223
|
-
|
|
1224
|
-
var lastIndex = presentTags.length - 1;
|
|
1225
|
-
var lastTag = presentTags[lastIndex];
|
|
1226
|
-
this.pressDeleteCount = inputValue ? 0 : pressDeleteCount + 1;
|
|
1227
|
-
|
|
1228
|
-
if (!lastTag) return;
|
|
1229
|
-
|
|
1230
|
-
if (this.pressDeleteCount) {
|
|
1231
|
-
if (lastTag.hitState) {
|
|
1232
|
-
this.deleteTag(lastTag);
|
|
1233
|
-
} else {
|
|
1234
|
-
lastTag.hitState = true;
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
},
|
|
1238
|
-
handleSuggestionClick: function handleSuggestionClick(index) {
|
|
1239
|
-
var multiple = this.multiple;
|
|
1240
|
-
|
|
1241
|
-
var targetNode = this.suggestions[index];
|
|
1242
|
-
|
|
1243
|
-
if (multiple) {
|
|
1244
|
-
var checked = targetNode.checked;
|
|
1245
|
-
|
|
1246
|
-
targetNode.doCheck(!checked);
|
|
1247
|
-
this.panel.calculateMultiCheckedValue();
|
|
1248
|
-
} else {
|
|
1249
|
-
this.checkedValue = targetNode.getValueByOption();
|
|
1250
|
-
this.toggleDropDownVisible(false);
|
|
1251
|
-
}
|
|
1252
|
-
},
|
|
1253
|
-
deleteTag: function deleteTag(tag) {
|
|
1254
|
-
var checkedValue = this.checkedValue;
|
|
1255
|
-
|
|
1256
|
-
var current = tag.node.getValueByOption();
|
|
1257
|
-
var val = checkedValue.find(function (n) {
|
|
1258
|
-
return Object(util_["isEqual"])(n, current);
|
|
1259
|
-
});
|
|
1260
|
-
this.checkedValue = checkedValue.filter(function (n) {
|
|
1261
|
-
return !Object(util_["isEqual"])(n, current);
|
|
1262
|
-
});
|
|
1263
|
-
this.$emit('remove-tag', val);
|
|
1264
|
-
},
|
|
1265
|
-
updateStyle: function updateStyle() {
|
|
1266
|
-
var $el = this.$el,
|
|
1267
|
-
inputInitialHeight = this.inputInitialHeight;
|
|
1268
|
-
|
|
1269
|
-
if (this.$isServer || !$el) return;
|
|
1270
|
-
|
|
1271
|
-
var suggestionPanel = this.$refs.suggestionPanel;
|
|
1272
|
-
|
|
1273
|
-
var inputInner = $el.querySelector('.el-input__inner');
|
|
1274
|
-
|
|
1275
|
-
if (!inputInner) return;
|
|
1276
|
-
|
|
1277
|
-
var tags = $el.querySelector('.el-cascader__tags');
|
|
1278
|
-
var suggestionPanelEl = null;
|
|
1279
|
-
|
|
1280
|
-
if (suggestionPanel && (suggestionPanelEl = suggestionPanel.$el)) {
|
|
1281
|
-
var suggestionList = suggestionPanelEl.querySelector('.el-cascader__suggestion-list');
|
|
1282
|
-
suggestionList.style.minWidth = inputInner.offsetWidth + 'px';
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
if (tags) {
|
|
1286
|
-
var offsetHeight = Math.round(tags.getBoundingClientRect().height);
|
|
1287
|
-
var height = Math.max(offsetHeight + 6, inputInitialHeight) + 'px';
|
|
1288
|
-
inputInner.style.height = height;
|
|
1289
|
-
if (this.dropDownVisible) {
|
|
1290
|
-
this.updatePopper();
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
},
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
/**
|
|
1297
|
-
* public methods
|
|
1298
|
-
*/
|
|
1299
|
-
getCheckedNodes: function getCheckedNodes(leafOnly) {
|
|
1300
|
-
return this.panel.getCheckedNodes(leafOnly);
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
});
|
|
1304
|
-
// CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=script&lang=js
|
|
1305
|
-
/* harmony default export */ var src_cascadervue_type_script_lang_js = (cascadervue_type_script_lang_js);
|
|
1306
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1307
|
-
var componentNormalizer = __webpack_require__(0);
|
|
1308
|
-
|
|
1309
|
-
// CONCATENATED MODULE: ./packages/cascader/src/cascader.vue
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
/* normalize component */
|
|
1316
|
-
|
|
1317
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1318
|
-
src_cascadervue_type_script_lang_js,
|
|
1319
|
-
render,
|
|
1320
|
-
staticRenderFns,
|
|
1321
|
-
false,
|
|
1322
|
-
null,
|
|
1323
|
-
null,
|
|
1324
|
-
null
|
|
1325
|
-
|
|
1326
|
-
)
|
|
1327
|
-
|
|
1328
|
-
/* harmony default export */ var cascader = (component.exports);
|
|
1329
|
-
// CONCATENATED MODULE: ./packages/cascader/index.js
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
/* istanbul ignore next */
|
|
1333
|
-
cascader.install = function (Vue) {
|
|
1334
|
-
Vue.component(cascader.name, cascader);
|
|
1335
|
-
};
|
|
1336
|
-
|
|
1337
|
-
/* harmony default export */ var packages_cascader = __webpack_exports__["default"] = (cascader);
|
|
1338
|
-
|
|
1339
|
-
/***/ }),
|
|
1340
|
-
|
|
1341
|
-
/***/ 12:
|
|
1342
|
-
/***/ (function(module, exports) {
|
|
1343
|
-
|
|
1344
|
-
module.exports = require("element-SIM/lib/utils/clickoutside");
|
|
1345
|
-
|
|
1346
|
-
/***/ }),
|
|
1347
|
-
|
|
1348
|
-
/***/ 15:
|
|
1349
|
-
/***/ (function(module, exports) {
|
|
1350
|
-
|
|
1351
|
-
module.exports = require("element-SIM/lib/scrollbar");
|
|
1352
|
-
|
|
1353
|
-
/***/ }),
|
|
1354
|
-
|
|
1355
|
-
/***/ 16:
|
|
1356
|
-
/***/ (function(module, exports) {
|
|
1357
|
-
|
|
1358
|
-
module.exports = require("element-SIM/lib/utils/resize-event");
|
|
1359
|
-
|
|
1360
|
-
/***/ }),
|
|
1361
|
-
|
|
1362
|
-
/***/ 17:
|
|
1363
|
-
/***/ (function(module, exports) {
|
|
1364
|
-
|
|
1365
|
-
module.exports = require("element-SIM/lib/utils/types");
|
|
1366
|
-
|
|
1367
|
-
/***/ }),
|
|
1368
|
-
|
|
1369
|
-
/***/ 19:
|
|
1370
|
-
/***/ (function(module, exports) {
|
|
1371
|
-
|
|
1372
|
-
module.exports = require("throttle-debounce/debounce");
|
|
1373
|
-
|
|
1374
|
-
/***/ }),
|
|
1375
|
-
|
|
1376
|
-
/***/ 20:
|
|
1377
|
-
/***/ (function(module, exports) {
|
|
1378
|
-
|
|
1379
|
-
module.exports = require("element-SIM/lib/locale");
|
|
1380
|
-
|
|
1381
|
-
/***/ }),
|
|
1382
|
-
|
|
1383
|
-
/***/ 21:
|
|
1384
|
-
/***/ (function(module, exports) {
|
|
1385
|
-
|
|
1386
|
-
module.exports = require("element-SIM/lib/utils/shared");
|
|
1387
|
-
|
|
1388
|
-
/***/ }),
|
|
1389
|
-
|
|
1390
|
-
/***/ 3:
|
|
1391
|
-
/***/ (function(module, exports) {
|
|
1392
|
-
|
|
1393
|
-
module.exports = require("element-SIM/lib/utils/util");
|
|
1394
|
-
|
|
1395
|
-
/***/ }),
|
|
1396
|
-
|
|
1397
|
-
/***/ 38:
|
|
1398
|
-
/***/ (function(module, exports) {
|
|
1399
|
-
|
|
1400
|
-
module.exports = require("element-SIM/lib/tag");
|
|
1401
|
-
|
|
1402
|
-
/***/ }),
|
|
1403
|
-
|
|
1404
|
-
/***/ 4:
|
|
1405
|
-
/***/ (function(module, exports) {
|
|
1406
|
-
|
|
1407
|
-
module.exports = require("element-SIM/lib/mixins/emitter");
|
|
1408
|
-
|
|
1409
|
-
/***/ }),
|
|
1410
|
-
|
|
1411
|
-
/***/ 41:
|
|
1412
|
-
/***/ (function(module, exports) {
|
|
1413
|
-
|
|
1414
|
-
module.exports = require("element-SIM/lib/utils/aria-utils");
|
|
1415
|
-
|
|
1416
|
-
/***/ }),
|
|
1417
|
-
|
|
1418
|
-
/***/ 5:
|
|
1419
|
-
/***/ (function(module, exports) {
|
|
1420
|
-
|
|
1421
|
-
module.exports = require("element-SIM/lib/utils/vue-popper");
|
|
1422
|
-
|
|
1423
|
-
/***/ }),
|
|
1424
|
-
|
|
1425
|
-
/***/ 51:
|
|
1426
|
-
/***/ (function(module, exports) {
|
|
1427
|
-
|
|
1428
|
-
module.exports = require("element-SIM/lib/cascader-panel");
|
|
1429
|
-
|
|
1430
|
-
/***/ }),
|
|
1431
|
-
|
|
1432
|
-
/***/ 6:
|
|
1433
|
-
/***/ (function(module, exports) {
|
|
1434
|
-
|
|
1435
|
-
module.exports = require("element-SIM/lib/mixins/locale");
|
|
1436
|
-
|
|
1437
|
-
/***/ })
|
|
1438
|
-
|
|
1439
|
-
/******/ });
|