cy-element-ui 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -13
- package/lib/alert.js +211 -203
- package/lib/aside.js +29 -29
- package/lib/autocomplete.js +4615 -483
- package/lib/avatar.js +152 -126
- package/lib/backtop.js +117 -125
- package/lib/badge.js +128 -134
- package/lib/breadcrumb-item.js +146 -122
- package/lib/breadcrumb.js +97 -96
- package/lib/button-group.js +68 -65
- package/lib/button.js +67 -87
- package/lib/calendar.js +2475 -603
- package/lib/card.js +101 -100
- package/lib/carousel-item.js +854 -210
- package/lib/carousel.js +575 -408
- package/lib/cascader-panel.js +3546 -1153
- package/lib/cascader.js +7376 -970
- package/lib/checkbox-button.js +337 -290
- package/lib/checkbox-group.js +176 -105
- package/lib/checkbox.js +240 -220
- package/lib/col.js +113 -68
- package/lib/collapse-item.js +1228 -225
- package/lib/collapse.js +163 -123
- package/lib/color-picker.js +5223 -1251
- package/lib/container.js +98 -88
- package/lib/date-picker.js +8396 -3945
- package/lib/descriptions-item.js +53 -32
- package/lib/descriptions.js +697 -334
- package/lib/dialog.js +1725 -247
- package/lib/directives/mousewheel.js +14 -20
- package/lib/directives/repeat-click.js +27 -30
- package/lib/divider.js +38 -45
- package/lib/drawer.js +1032 -238
- package/lib/dropdown-item.js +159 -111
- package/lib/dropdown-menu.js +2445 -117
- package/lib/dropdown.js +1675 -366
- package/lib/element-ui.common.js +49110 -39985
- package/lib/empty.js +1084 -203
- package/lib/fileUpload.js +3900 -0
- package/lib/footer.js +29 -29
- package/lib/form-item.js +1236 -467
- package/lib/form.js +326 -258
- package/lib/header.js +80 -80
- package/lib/icon.js +71 -68
- package/lib/image.js +2389 -743
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +814 -150
- package/lib/input-number.js +2181 -444
- package/lib/input.js +1197 -517
- package/lib/link.js +117 -135
- package/lib/loading.js +1130 -363
- package/lib/locale/format.js +38 -49
- package/lib/locale/index.js +38 -52
- package/lib/locale/lang/af-ZA.js +130 -123
- package/lib/locale/lang/ar.js +123 -122
- package/lib/locale/lang/az.js +122 -121
- package/lib/locale/lang/bg.js +133 -123
- package/lib/locale/lang/bn.js +121 -121
- package/lib/locale/lang/ca.js +123 -122
- package/lib/locale/lang/cs-CZ.js +127 -125
- package/lib/locale/lang/da.js +124 -122
- package/lib/locale/lang/de.js +126 -124
- package/lib/locale/lang/ee.js +125 -123
- package/lib/locale/lang/el.js +125 -123
- package/lib/locale/lang/en.js +127 -123
- package/lib/locale/lang/eo.js +125 -123
- package/lib/locale/lang/es.js +123 -122
- package/lib/locale/lang/eu.js +128 -123
- package/lib/locale/lang/fa.js +125 -123
- package/lib/locale/lang/fi.js +125 -123
- package/lib/locale/lang/fr.js +125 -122
- package/lib/locale/lang/he.js +130 -123
- package/lib/locale/lang/hr.js +128 -123
- package/lib/locale/lang/hu.js +124 -122
- package/lib/locale/lang/hy-AM.js +125 -123
- package/lib/locale/lang/id.js +124 -123
- package/lib/locale/lang/is.js +124 -123
- package/lib/locale/lang/it.js +123 -122
- package/lib/locale/lang/ja.js +125 -123
- package/lib/locale/lang/kg.js +125 -123
- package/lib/locale/lang/km.js +124 -123
- package/lib/locale/lang/ko.js +125 -123
- package/lib/locale/lang/ku.js +125 -123
- package/lib/locale/lang/kz.js +125 -123
- package/lib/locale/lang/lo-LA.js +121 -121
- package/lib/locale/lang/lt.js +125 -123
- package/lib/locale/lang/lv.js +125 -123
- package/lib/locale/lang/mn.js +125 -123
- package/lib/locale/lang/ms.js +123 -122
- package/lib/locale/lang/nb-NO.js +123 -122
- package/lib/locale/lang/nl.js +125 -123
- package/lib/locale/lang/pl.js +125 -123
- package/lib/locale/lang/pt-br.js +124 -123
- package/lib/locale/lang/pt.js +133 -123
- package/lib/locale/lang/ro.js +125 -123
- package/lib/locale/lang/ru-RU.js +124 -123
- package/lib/locale/lang/si.js +127 -123
- package/lib/locale/lang/sk.js +126 -125
- package/lib/locale/lang/sl.js +125 -123
- package/lib/locale/lang/sr-Latn.js +124 -123
- package/lib/locale/lang/sr.js +128 -123
- package/lib/locale/lang/sv-SE.js +128 -123
- package/lib/locale/lang/sw.js +127 -123
- package/lib/locale/lang/ta.js +130 -122
- package/lib/locale/lang/th.js +127 -123
- package/lib/locale/lang/tk.js +129 -123
- package/lib/locale/lang/tr-TR.js +125 -123
- package/lib/locale/lang/ua.js +124 -123
- package/lib/locale/lang/ug-CN.js +124 -123
- package/lib/locale/lang/uz-UZ.js +124 -123
- package/lib/locale/lang/vi.js +124 -123
- package/lib/locale/lang/zh-CN.js +124 -123
- package/lib/locale/lang/zh-TW.js +128 -123
- package/lib/main.js +23 -21
- package/lib/menu-item-group.js +105 -111
- package/lib/menu-item.js +3558 -253
- package/lib/menu.js +1680 -528
- package/lib/message-box.js +3427 -684
- package/lib/message.js +1677 -229
- package/lib/mixins/emitter.js +28 -30
- package/lib/mixins/focus.js +10 -11
- package/lib/mixins/locale.js +12 -14
- package/lib/mixins/migrating.js +38 -45
- package/lib/notification.js +1707 -269
- package/lib/option-group.js +190 -139
- package/lib/option.js +949 -196
- package/lib/page-header.js +964 -42
- package/lib/pagination.js +6947 -641
- package/lib/popconfirm.js +3951 -223
- package/lib/popover.js +3247 -369
- package/lib/progress.js +254 -244
- package/lib/radio-button.js +259 -226
- package/lib/radio-group.js +249 -186
- package/lib/radio.js +263 -253
- package/lib/rate.js +1399 -420
- package/lib/result.js +183 -227
- package/lib/row.js +58 -41
- package/lib/scrollbar.js +1331 -278
- package/lib/select.js +5816 -1428
- package/lib/skeleton-item.js +133 -145
- package/lib/skeleton.js +82 -91
- package/lib/slider.js +5157 -702
- package/lib/spinner.js +113 -101
- package/lib/statistic.js +10205 -254
- package/lib/step.js +274 -311
- package/lib/steps.js +854 -117
- package/lib/subTitle.js +292 -0
- package/lib/submenu.js +2867 -429
- package/lib/switch.js +1051 -291
- package/lib/tab-pane.js +125 -135
- package/lib/tabDialog.js +2658 -0
- package/lib/table-column.js +1975 -751
- package/lib/table.js +8019 -3979
- package/lib/tabs.js +1455 -605
- package/lib/tag.js +73 -68
- package/lib/theme-chalk/src/index.scss +3 -0
- package/lib/time-picker.js +6821 -1944
- package/lib/time-select.js +6297 -1186
- package/lib/timeline-item.js +43 -84
- package/lib/timeline.js +43 -39
- package/lib/tooltip.js +3185 -287
- package/lib/transfer.js +2943 -625
- package/lib/transitions/collapse-transition.js +69 -87
- package/lib/tree.js +3312 -1791
- package/lib/treeSelect.js +4436 -0
- package/lib/umd/locale/af-ZA.js +145 -138
- package/lib/umd/locale/ar.js +138 -137
- package/lib/umd/locale/az.js +139 -137
- package/lib/umd/locale/bg.js +148 -138
- package/lib/umd/locale/bn.js +138 -137
- package/lib/umd/locale/ca.js +138 -137
- package/lib/umd/locale/cs-CZ.js +142 -140
- package/lib/umd/locale/da.js +139 -137
- package/lib/umd/locale/de.js +141 -139
- package/lib/umd/locale/ee.js +140 -138
- package/lib/umd/locale/el.js +140 -138
- package/lib/umd/locale/en.js +142 -138
- package/lib/umd/locale/eo.js +140 -138
- package/lib/umd/locale/es.js +138 -137
- package/lib/umd/locale/eu.js +143 -138
- package/lib/umd/locale/fa.js +140 -138
- package/lib/umd/locale/fi.js +140 -138
- package/lib/umd/locale/fr.js +140 -137
- package/lib/umd/locale/he.js +145 -138
- package/lib/umd/locale/hr.js +143 -138
- package/lib/umd/locale/hu.js +139 -137
- package/lib/umd/locale/hy-AM.js +140 -138
- package/lib/umd/locale/id.js +139 -138
- package/lib/umd/locale/is.js +139 -138
- package/lib/umd/locale/it.js +138 -137
- package/lib/umd/locale/ja.js +140 -138
- package/lib/umd/locale/kg.js +140 -138
- package/lib/umd/locale/km.js +139 -138
- package/lib/umd/locale/ko.js +140 -138
- package/lib/umd/locale/ku.js +140 -138
- package/lib/umd/locale/kz.js +140 -138
- package/lib/umd/locale/lo-LA.js +138 -137
- package/lib/umd/locale/lt.js +140 -138
- package/lib/umd/locale/lv.js +140 -138
- package/lib/umd/locale/mn.js +140 -138
- package/lib/umd/locale/ms.js +138 -137
- package/lib/umd/locale/nb-NO.js +138 -137
- package/lib/umd/locale/nl.js +140 -138
- package/lib/umd/locale/pl.js +140 -138
- package/lib/umd/locale/pt-br.js +139 -138
- package/lib/umd/locale/pt.js +148 -138
- package/lib/umd/locale/ro.js +140 -138
- package/lib/umd/locale/ru-RU.js +139 -138
- package/lib/umd/locale/si.js +142 -138
- package/lib/umd/locale/sk.js +141 -140
- package/lib/umd/locale/sl.js +140 -138
- package/lib/umd/locale/sr-Latn.js +139 -138
- package/lib/umd/locale/sr.js +143 -138
- package/lib/umd/locale/sv-SE.js +143 -138
- package/lib/umd/locale/sw.js +142 -138
- package/lib/umd/locale/ta.js +145 -137
- package/lib/umd/locale/th.js +142 -138
- package/lib/umd/locale/tk.js +144 -138
- package/lib/umd/locale/tr-TR.js +140 -138
- package/lib/umd/locale/ua.js +139 -138
- package/lib/umd/locale/ug-CN.js +139 -138
- package/lib/umd/locale/uz-UZ.js +139 -138
- package/lib/umd/locale/vi.js +139 -138
- package/lib/umd/locale/zh-CN.js +139 -138
- package/lib/umd/locale/zh-TW.js +143 -138
- package/lib/upload.js +2377 -987
- package/lib/utils/after-leave.js +36 -33
- package/lib/utils/aria-dialog.js +55 -73
- package/lib/utils/aria-utils.js +67 -76
- package/lib/utils/clickoutside.js +52 -60
- package/lib/utils/date-util.js +198 -241
- package/lib/utils/date.js +6 -368
- package/lib/utils/date_source.js +349 -0
- package/lib/utils/dom.js +167 -183
- package/lib/utils/lodash.js +13 -9421
- package/lib/utils/lodash_source.js +9421 -0
- package/lib/utils/menu/aria-menubar.js +13 -18
- package/lib/utils/menu/aria-menuitem.js +43 -54
- package/lib/utils/menu/aria-submenu.js +50 -59
- package/lib/utils/merge.js +15 -17
- package/lib/utils/popper.js +1141 -1170
- package/lib/utils/popup/index.js +186 -230
- package/lib/utils/popup/popup-manager.js +159 -191
- package/lib/utils/resize-event.js +29 -44
- package/lib/utils/scroll-into-view.js +25 -33
- package/lib/utils/scrollbar-width.js +25 -36
- package/lib/utils/shared.js +3 -3
- package/lib/utils/types.js +19 -32
- package/lib/utils/util.js +187 -221
- package/lib/utils/vdom.js +5 -9
- package/lib/utils/vue-popper.js +166 -188
- package/package.json +20 -19
- package/packages/alert/src/main.vue +63 -63
- package/packages/aside/src/main.vue +9 -9
- package/packages/autocomplete/src/autocomplete-suggestions.vue +46 -46
- package/packages/autocomplete/src/autocomplete.vue +198 -198
- package/packages/avatar/src/main.vue +5 -5
- package/packages/backtop/src/main.vue +3 -3
- package/packages/badge/src/main.vue +1 -1
- package/packages/breadcrumb/src/breadcrumb-item.vue +26 -26
- package/packages/breadcrumb/src/breadcrumb.vue +22 -22
- package/packages/button/src/button-group.vue +3 -3
- package/packages/button/src/button.vue +44 -44
- package/packages/calendar/src/date-table.vue +3 -3
- package/packages/calendar/src/main.vue +7 -7
- package/packages/card/src/main.vue +9 -9
- package/packages/carousel/src/item.vue +98 -98
- package/packages/carousel/src/main.vue +2 -2
- package/packages/cascader/src/cascader.vue +4 -4
- package/packages/cascader-panel/src/cascader-menu.vue +4 -4
- package/packages/cascader-panel/src/cascader-node.vue +232 -232
- package/packages/cascader-panel/src/cascader-panel.vue +3 -3
- package/packages/cascader-panel/src/node.js +2 -3
- package/packages/cascader-panel/src/store.js +0 -1
- package/packages/checkbox/src/checkbox-button.vue +139 -139
- package/packages/checkbox/src/checkbox-group.vue +33 -33
- package/packages/checkbox/src/checkbox.vue +140 -140
- package/packages/col/src/col.js +5 -5
- package/packages/collapse/src/collapse-item.vue +55 -55
- package/packages/collapse/src/collapse.vue +54 -54
- package/packages/color-picker/src/color.js +4 -4
- package/packages/color-picker/src/components/alpha-slider.vue +100 -100
- package/packages/color-picker/src/components/hue-slider.vue +91 -91
- package/packages/color-picker/src/components/picker-dropdown.vue +64 -64
- package/packages/color-picker/src/components/predefine.vue +43 -43
- package/packages/color-picker/src/components/sv-panel.vue +70 -70
- package/packages/color-picker/src/main.vue +141 -141
- package/packages/container/src/main.vue +20 -20
- package/packages/date-picker/src/basic/date-table.vue +360 -360
- package/packages/date-picker/src/basic/month-table.vue +222 -223
- package/packages/date-picker/src/basic/time-spinner.vue +174 -174
- package/packages/date-picker/src/basic/year-table.vue +91 -91
- package/packages/date-picker/src/panel/date-range.vue +415 -415
- package/packages/date-picker/src/panel/date.vue +423 -423
- package/packages/date-picker/src/panel/month-range.vue +177 -177
- package/packages/date-picker/src/panel/time-range.vue +173 -173
- package/packages/date-picker/src/panel/time-select.vue +131 -131
- package/packages/date-picker/src/panel/time.vue +131 -131
- package/packages/date-picker/src/picker.vue +7 -7
- package/packages/descriptions/src/descriptions-row.js +3 -3
- package/packages/descriptions/src/index.js +1 -1
- package/packages/dialog/src/component.vue +155 -155
- package/packages/divider/src/main.vue +1 -1
- package/packages/drawer/src/main.vue +2 -2
- package/packages/dropdown/src/dropdown-item.vue +15 -15
- package/packages/dropdown/src/dropdown-menu.vue +47 -47
- package/packages/dropdown/src/dropdown.vue +260 -260
- package/packages/empty/src/index.vue +1 -1
- package/packages/fileUpload/index.js +8 -0
- package/packages/fileUpload/src/main.vue +430 -0
- package/packages/footer/src/main.vue +9 -9
- package/packages/form/src/form-item.vue +245 -245
- package/packages/form/src/form.vue +154 -154
- package/packages/header/src/main.vue +9 -9
- package/packages/icon/src/icon.vue +6 -6
- package/packages/image/src/image-viewer.vue +9 -9
- package/packages/image/src/main.vue +206 -206
- package/packages/infinite-scroll/src/main.js +1 -2
- package/packages/input/src/calcTextareaHeight.js +2 -2
- package/packages/input/src/input.vue +311 -311
- package/packages/input-number/src/input-number.vue +205 -205
- package/packages/loading/src/loading.vue +19 -19
- package/packages/main/src/main.vue +4 -4
- package/packages/menu/src/menu-item-group.vue +27 -27
- package/packages/menu/src/menu-item.vue +69 -69
- package/packages/menu/src/menu.vue +284 -284
- package/packages/menu/src/submenu.vue +308 -309
- package/packages/message/src/main.js +1 -1
- package/packages/message/src/main.vue +72 -72
- package/packages/message-box/src/main.vue +216 -216
- package/packages/notification/src/main.js +1 -1
- package/packages/notification/src/main.vue +93 -93
- package/packages/pagination/src/pager.vue +99 -99
- package/packages/popconfirm/src/main.vue +28 -28
- package/packages/popover/src/main.vue +6 -6
- package/packages/progress/src/progress.vue +174 -174
- package/packages/radio/src/radio-button.vue +64 -64
- package/packages/radio/src/radio-group.vue +88 -88
- package/packages/radio/src/radio.vue +74 -74
- package/packages/rate/src/main.vue +270 -270
- package/packages/row/src/row.js +3 -3
- package/packages/scrollbar/src/main.js +2 -2
- package/packages/scrollbar/src/util.js +1 -1
- package/packages/select/src/option-group.vue +46 -46
- package/packages/select/src/option.vue +122 -122
- package/packages/select/src/select-dropdown.vue +49 -49
- package/packages/select/src/select.vue +676 -676
- package/packages/skeleton/src/item.vue +12 -12
- package/packages/slider/src/button.vue +191 -191
- package/packages/slider/src/main.vue +314 -314
- package/packages/spinner/src/spinner.vue +16 -16
- package/packages/statistic/src/main.vue +5 -6
- package/packages/steps/src/step.vue +2 -2
- package/packages/steps/src/steps.vue +4 -4
- package/packages/subTitle/index.js +8 -0
- package/packages/subTitle/src/main.vue +33 -0
- package/packages/switch/src/component.vue +123 -123
- package/packages/tabDialog/index.js +23 -0
- package/packages/tabDialog/src/dialog/drag.js +63 -0
- package/packages/tabDialog/src/dialog/dragHeight.js +34 -0
- package/packages/tabDialog/src/dialog/dragWidth.js +30 -0
- package/packages/tabDialog/src/main.vue +277 -0
- package/packages/table/src/filter-panel.vue +128 -128
- package/packages/table/src/store/index.js +1 -1
- package/packages/table/src/table-body.js +2 -2
- package/packages/table/src/table-column.js +1 -1
- package/packages/table/src/table-header.js +1 -1
- package/packages/table/src/table-layout.js +1 -1
- package/packages/table/src/table.vue +416 -416
- package/packages/tabs/src/tab-bar.vue +43 -43
- package/packages/tabs/src/tab-nav.vue +250 -250
- package/packages/tabs/src/tab-pane.vue +34 -34
- package/packages/tabs/src/tabs.vue +165 -165
- package/packages/tag/src/tag.vue +52 -52
- package/packages/theme-cy/lib/element.css +1 -0
- package/packages/theme-cy/lib/fileUpload.css +1 -0
- package/packages/theme-cy/lib/index.css +1 -1
- package/packages/theme-cy/lib/subTitle.css +1 -0
- package/packages/theme-cy/lib/tabDialog.css +1 -0
- package/packages/theme-cy/lib/treeselect.css +1 -1
- package/packages/theme-cy/src/element.scss +45 -0
- package/packages/theme-cy/src/fileUpload.scss +30 -0
- package/packages/theme-cy/src/index.scss +4 -0
- package/packages/theme-cy/src/subTitle.scss +26 -0
- package/packages/theme-cy/src/tabDialog.scss +43 -0
- package/packages/theme-cy/src/treeselect.scss +20 -14
- package/packages/timeline/src/item.vue +24 -24
- package/packages/timeline/src/main.vue +27 -27
- package/packages/tooltip/src/main.js +1 -1
- package/packages/transfer/src/main.vue +169 -169
- package/packages/transfer/src/transfer-panel.vue +164 -164
- package/packages/tree/src/tree-node.vue +169 -169
- package/packages/tree/src/tree.vue +408 -408
- package/packages/treeSelect/index.js +8 -0
- package/packages/{treeselect → treeSelect}/src/main.vue +19 -19
- package/packages/upload/src/ajax.js +3 -3
- package/packages/upload/src/upload-dragger.vue +50 -50
- package/packages/upload/src/upload-list.vue +33 -33
- package/packages/upload/src/upload.vue +1 -1
- package/src/index.js +13 -5
- package/src/locale/format.js +0 -1
- package/src/mixins/migrating.js +2 -2
- package/src/utils/date.js +2 -368
- package/src/utils/date_source.js +368 -0
- package/src/utils/lodash.js +9 -18075
- package/src/utils/lodash_source.js +18075 -0
- package/src/utils/types.js +1 -1
- package/types/element-ui.d.ts +16 -3
- package/types/fileUpload.d.ts +5 -0
- package/types/subTitle.d.ts +5 -0
- package/types/tabDialog.d.ts +5 -0
- package/types/treeSelect.d.ts +5 -0
- package/lib/treeselect.js +0 -682
- package/packages/treeselect/index.js +0 -8
- package/types/treeselect.d.ts +0 -5
package/lib/drawer.js
CHANGED
|
@@ -82,12 +82,364 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 207);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
90
|
/***/ 0:
|
|
91
|
+
/***/ (function(module, exports) {
|
|
92
|
+
|
|
93
|
+
module.exports = require("vue");
|
|
94
|
+
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
97
|
+
/***/ 1:
|
|
98
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
|
+
|
|
100
|
+
"use strict";
|
|
101
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
|
|
102
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
|
|
103
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
|
|
104
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
|
|
105
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
|
|
106
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
|
|
107
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
|
|
108
|
+
/* unused harmony export setStyle */
|
|
109
|
+
/* unused harmony export isScroll */
|
|
110
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
|
|
111
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
|
|
112
|
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
|
|
113
|
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
114
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
|
|
115
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
116
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
117
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
118
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
|
|
119
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
120
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
|
|
121
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
122
|
+
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
|
|
123
|
+
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
124
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
|
|
125
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
126
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
|
|
127
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_7__);
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
/* istanbul ignore next */
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
var isServer = vue__WEBPACK_IMPORTED_MODULE_7___default.a.prototype.$isServer;
|
|
139
|
+
var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
|
|
140
|
+
var MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
|
141
|
+
var ieVersion = isServer ? 0 : Number(document.documentMode);
|
|
142
|
+
|
|
143
|
+
/* istanbul ignore next */
|
|
144
|
+
var trim = function trim(string) {
|
|
145
|
+
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
|
|
146
|
+
};
|
|
147
|
+
/* istanbul ignore next */
|
|
148
|
+
var camelCase = function camelCase(name) {
|
|
149
|
+
return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
|
|
150
|
+
return offset ? letter.toUpperCase() : letter;
|
|
151
|
+
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/* istanbul ignore next */
|
|
155
|
+
var on = function () {
|
|
156
|
+
if (!isServer && document.addEventListener) {
|
|
157
|
+
return function (element, event, handler) {
|
|
158
|
+
if (element && event && handler) {
|
|
159
|
+
element.addEventListener(event, handler, false);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
} else {
|
|
163
|
+
return function (element, event, handler) {
|
|
164
|
+
if (element && event && handler) {
|
|
165
|
+
element.attachEvent('on' + event, handler);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}();
|
|
170
|
+
|
|
171
|
+
/* istanbul ignore next */
|
|
172
|
+
var off = function () {
|
|
173
|
+
if (!isServer && document.removeEventListener) {
|
|
174
|
+
return function (element, event, handler) {
|
|
175
|
+
if (element && event) {
|
|
176
|
+
element.removeEventListener(event, handler, false);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
} else {
|
|
180
|
+
return function (element, event, handler) {
|
|
181
|
+
if (element && event) {
|
|
182
|
+
element.detachEvent('on' + event, handler);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
}();
|
|
187
|
+
|
|
188
|
+
/* istanbul ignore next */
|
|
189
|
+
var once = function once(el, event, fn) {
|
|
190
|
+
var _listener = function listener() {
|
|
191
|
+
if (fn) {
|
|
192
|
+
fn.apply(this, arguments);
|
|
193
|
+
}
|
|
194
|
+
off(el, event, _listener);
|
|
195
|
+
};
|
|
196
|
+
on(el, event, _listener);
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/* istanbul ignore next */
|
|
200
|
+
function hasClass(el, cls) {
|
|
201
|
+
if (!el || !cls) return false;
|
|
202
|
+
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
|
|
203
|
+
if (el.classList) {
|
|
204
|
+
return el.classList.contains(cls);
|
|
205
|
+
} else {
|
|
206
|
+
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
;
|
|
210
|
+
|
|
211
|
+
/* istanbul ignore next */
|
|
212
|
+
function addClass(el, cls) {
|
|
213
|
+
if (!el) return;
|
|
214
|
+
var curClass = el.className;
|
|
215
|
+
var classes = (cls || '').split(' ');
|
|
216
|
+
for (var i = 0, j = classes.length; i < j; i++) {
|
|
217
|
+
var clsName = classes[i];
|
|
218
|
+
if (!clsName) continue;
|
|
219
|
+
if (el.classList) {
|
|
220
|
+
el.classList.add(clsName);
|
|
221
|
+
} else if (!hasClass(el, clsName)) {
|
|
222
|
+
curClass += ' ' + clsName;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (!el.classList) {
|
|
226
|
+
el.setAttribute('class', curClass);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
;
|
|
230
|
+
|
|
231
|
+
/* istanbul ignore next */
|
|
232
|
+
function removeClass(el, cls) {
|
|
233
|
+
if (!el || !cls) return;
|
|
234
|
+
var classes = cls.split(' ');
|
|
235
|
+
var curClass = ' ' + el.className + ' ';
|
|
236
|
+
for (var i = 0, j = classes.length; i < j; i++) {
|
|
237
|
+
var clsName = classes[i];
|
|
238
|
+
if (!clsName) continue;
|
|
239
|
+
if (el.classList) {
|
|
240
|
+
el.classList.remove(clsName);
|
|
241
|
+
} else if (hasClass(el, clsName)) {
|
|
242
|
+
curClass = curClass.replace(' ' + clsName + ' ', ' ');
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
if (!el.classList) {
|
|
246
|
+
el.setAttribute('class', trim(curClass));
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
;
|
|
250
|
+
|
|
251
|
+
/* istanbul ignore next */
|
|
252
|
+
var getStyle = ieVersion < 9 ? function (element, styleName) {
|
|
253
|
+
if (isServer) return;
|
|
254
|
+
if (!element || !styleName) return null;
|
|
255
|
+
styleName = camelCase(styleName);
|
|
256
|
+
if (styleName === 'float') {
|
|
257
|
+
styleName = 'styleFloat';
|
|
258
|
+
}
|
|
259
|
+
try {
|
|
260
|
+
switch (styleName) {
|
|
261
|
+
case 'opacity':
|
|
262
|
+
try {
|
|
263
|
+
return element.filters.item('alpha').opacity / 100;
|
|
264
|
+
} catch (e) {
|
|
265
|
+
return 1.0;
|
|
266
|
+
}
|
|
267
|
+
default:
|
|
268
|
+
return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
|
|
269
|
+
}
|
|
270
|
+
} catch (e) {
|
|
271
|
+
return element.style[styleName];
|
|
272
|
+
}
|
|
273
|
+
} : function (element, styleName) {
|
|
274
|
+
if (isServer) return;
|
|
275
|
+
if (!element || !styleName) return null;
|
|
276
|
+
styleName = camelCase(styleName);
|
|
277
|
+
if (styleName === 'float') {
|
|
278
|
+
styleName = 'cssFloat';
|
|
279
|
+
}
|
|
280
|
+
try {
|
|
281
|
+
var computed = document.defaultView.getComputedStyle(element, '');
|
|
282
|
+
return element.style[styleName] || computed ? computed[styleName] : null;
|
|
283
|
+
} catch (e) {
|
|
284
|
+
return element.style[styleName];
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
/* istanbul ignore next */
|
|
289
|
+
function setStyle(element, styleName, value) {
|
|
290
|
+
if (!element || !styleName) return;
|
|
291
|
+
if (typeof styleName === 'object') {
|
|
292
|
+
for (var prop in styleName) {
|
|
293
|
+
if (styleName.hasOwnProperty(prop)) {
|
|
294
|
+
setStyle(element, prop, styleName[prop]);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
} else {
|
|
298
|
+
styleName = camelCase(styleName);
|
|
299
|
+
if (styleName === 'opacity' && ieVersion < 9) {
|
|
300
|
+
element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
|
|
301
|
+
} else {
|
|
302
|
+
element.style[styleName] = value;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
;
|
|
307
|
+
var isScroll = function isScroll(el, vertical) {
|
|
308
|
+
if (isServer) return;
|
|
309
|
+
var determinedDirection = vertical !== null && vertical !== undefined;
|
|
310
|
+
var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
|
|
311
|
+
return overflow.match(/(scroll|auto|overlay)/);
|
|
312
|
+
};
|
|
313
|
+
var getScrollContainer = function getScrollContainer(el, vertical) {
|
|
314
|
+
if (isServer) return;
|
|
315
|
+
var parent = el;
|
|
316
|
+
while (parent) {
|
|
317
|
+
if ([window, document, document.documentElement].includes(parent)) {
|
|
318
|
+
return window;
|
|
319
|
+
}
|
|
320
|
+
if (isScroll(parent, vertical)) {
|
|
321
|
+
return parent;
|
|
322
|
+
}
|
|
323
|
+
parent = parent.parentNode;
|
|
324
|
+
}
|
|
325
|
+
return parent;
|
|
326
|
+
};
|
|
327
|
+
var isInContainer = function isInContainer(el, container) {
|
|
328
|
+
if (isServer || !el || !container) return false;
|
|
329
|
+
var elRect = el.getBoundingClientRect();
|
|
330
|
+
var containerRect;
|
|
331
|
+
if ([window, document, document.documentElement, null, undefined].includes(container)) {
|
|
332
|
+
containerRect = {
|
|
333
|
+
top: 0,
|
|
334
|
+
right: window.innerWidth,
|
|
335
|
+
bottom: window.innerHeight,
|
|
336
|
+
left: 0
|
|
337
|
+
};
|
|
338
|
+
} else {
|
|
339
|
+
containerRect = container.getBoundingClientRect();
|
|
340
|
+
}
|
|
341
|
+
return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
/***/ }),
|
|
345
|
+
|
|
346
|
+
/***/ 10:
|
|
347
|
+
/***/ (function(module, exports) {
|
|
348
|
+
|
|
349
|
+
module.exports = require("core-js/modules/web.dom-collections.for-each.js");
|
|
350
|
+
|
|
351
|
+
/***/ }),
|
|
352
|
+
|
|
353
|
+
/***/ 12:
|
|
354
|
+
/***/ (function(module, exports) {
|
|
355
|
+
|
|
356
|
+
module.exports = require("core-js/modules/es.string.replace.js");
|
|
357
|
+
|
|
358
|
+
/***/ }),
|
|
359
|
+
|
|
360
|
+
/***/ 14:
|
|
361
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
362
|
+
|
|
363
|
+
"use strict";
|
|
364
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
|
|
365
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
366
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
367
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
368
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
|
|
369
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
function _broadcast(componentName, eventName, params) {
|
|
374
|
+
this.$children.forEach(function (child) {
|
|
375
|
+
var name = child.$options.componentName;
|
|
376
|
+
if (name === componentName) {
|
|
377
|
+
child.$emit.apply(child, [eventName].concat(params));
|
|
378
|
+
} else {
|
|
379
|
+
_broadcast.apply(child, [componentName, eventName].concat([params]));
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
384
|
+
methods: {
|
|
385
|
+
dispatch: function dispatch(componentName, eventName, params) {
|
|
386
|
+
var parent = this.$parent || this.$root;
|
|
387
|
+
var name = parent.$options.componentName;
|
|
388
|
+
while (parent && (!name || name !== componentName)) {
|
|
389
|
+
parent = parent.$parent;
|
|
390
|
+
if (parent) {
|
|
391
|
+
name = parent.$options.componentName;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
if (parent) {
|
|
395
|
+
parent.$emit.apply(parent, [eventName].concat(params));
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
broadcast: function broadcast(componentName, eventName, params) {
|
|
399
|
+
_broadcast.call(this, componentName, eventName, params);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
|
|
404
|
+
/***/ }),
|
|
405
|
+
|
|
406
|
+
/***/ 15:
|
|
407
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
408
|
+
|
|
409
|
+
"use strict";
|
|
410
|
+
/* harmony default export */ __webpack_exports__["a"] = (function (target) {
|
|
411
|
+
for (var i = 1, j = arguments.length; i < j; i++) {
|
|
412
|
+
var source = arguments[i] || {};
|
|
413
|
+
for (var prop in source) {
|
|
414
|
+
if (source.hasOwnProperty(prop)) {
|
|
415
|
+
var value = source[prop];
|
|
416
|
+
if (value !== undefined) {
|
|
417
|
+
target[prop] = value;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return target;
|
|
423
|
+
});
|
|
424
|
+
;
|
|
425
|
+
|
|
426
|
+
/***/ }),
|
|
427
|
+
|
|
428
|
+
/***/ 16:
|
|
429
|
+
/***/ (function(module, exports) {
|
|
430
|
+
|
|
431
|
+
module.exports = require("core-js/modules/es.string.match.js");
|
|
432
|
+
|
|
433
|
+
/***/ }),
|
|
434
|
+
|
|
435
|
+
/***/ 18:
|
|
436
|
+
/***/ (function(module, exports) {
|
|
437
|
+
|
|
438
|
+
module.exports = require("core-js/modules/es.array.filter.js");
|
|
439
|
+
|
|
440
|
+
/***/ }),
|
|
441
|
+
|
|
442
|
+
/***/ 2:
|
|
91
443
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
444
|
|
|
93
445
|
"use strict";
|
|
@@ -192,18 +544,20 @@ function normalizeComponent(
|
|
|
192
544
|
|
|
193
545
|
/***/ }),
|
|
194
546
|
|
|
195
|
-
/***/
|
|
547
|
+
/***/ 207:
|
|
196
548
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
549
|
|
|
198
550
|
"use strict";
|
|
199
551
|
// ESM COMPAT FLAG
|
|
200
552
|
__webpack_require__.r(__webpack_exports__);
|
|
201
553
|
|
|
202
|
-
//
|
|
203
|
-
var
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
554
|
+
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
555
|
+
var es_function_name_js_ = __webpack_require__(5);
|
|
556
|
+
|
|
557
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/drawer/src/main.vue?vue&type=template&id=19f4c8a0
|
|
558
|
+
var render = function render() {
|
|
559
|
+
var _vm = this,
|
|
560
|
+
_c = _vm._self._c
|
|
207
561
|
return _c(
|
|
208
562
|
"transition",
|
|
209
563
|
{
|
|
@@ -234,10 +588,8 @@ var render = function () {
|
|
|
234
588
|
attrs: { role: "document", tabindex: "-1" },
|
|
235
589
|
on: {
|
|
236
590
|
click: function ($event) {
|
|
237
|
-
if ($event.target !== $event.currentTarget)
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
return _vm.handleWrapperClick($event)
|
|
591
|
+
if ($event.target !== $event.currentTarget) return null
|
|
592
|
+
return _vm.handleWrapperClick.apply(null, arguments)
|
|
241
593
|
},
|
|
242
594
|
},
|
|
243
595
|
},
|
|
@@ -249,8 +601,8 @@ var render = function () {
|
|
|
249
601
|
staticClass: "el-drawer",
|
|
250
602
|
class: [_vm.direction, _vm.customClass],
|
|
251
603
|
style: _vm.isHorizontal
|
|
252
|
-
?
|
|
253
|
-
:
|
|
604
|
+
? `width: ${_vm.drawerSize}`
|
|
605
|
+
: `height: ${_vm.drawerSize}`,
|
|
254
606
|
attrs: {
|
|
255
607
|
"aria-modal": "true",
|
|
256
608
|
"aria-labelledby": "el-drawer__title",
|
|
@@ -268,21 +620,26 @@ var render = function () {
|
|
|
268
620
|
attrs: { id: "el-drawer__title" },
|
|
269
621
|
},
|
|
270
622
|
[
|
|
271
|
-
_vm._t("title",
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
623
|
+
_vm._t("title", function () {
|
|
624
|
+
return [
|
|
625
|
+
_c(
|
|
626
|
+
"span",
|
|
627
|
+
{
|
|
628
|
+
attrs: { role: "heading", title: _vm.title },
|
|
629
|
+
},
|
|
630
|
+
[_vm._v(_vm._s(_vm.title))]
|
|
631
|
+
),
|
|
632
|
+
]
|
|
633
|
+
}),
|
|
278
634
|
_vm.showClose
|
|
279
635
|
? _c(
|
|
280
636
|
"button",
|
|
281
637
|
{
|
|
282
638
|
staticClass: "el-drawer__close-btn",
|
|
283
639
|
attrs: {
|
|
284
|
-
"aria-label":
|
|
285
|
-
|
|
640
|
+
"aria-label": `close ${
|
|
641
|
+
_vm.title || "drawer"
|
|
642
|
+
}`,
|
|
286
643
|
type: "button",
|
|
287
644
|
},
|
|
288
645
|
on: { click: _vm.closeDrawer },
|
|
@@ -320,228 +677,178 @@ var staticRenderFns = []
|
|
|
320
677
|
render._withStripped = true
|
|
321
678
|
|
|
322
679
|
|
|
323
|
-
// CONCATENATED MODULE: ./packages/drawer/src/main.vue?vue&type=template&id=
|
|
680
|
+
// CONCATENATED MODULE: ./packages/drawer/src/main.vue?vue&type=template&id=19f4c8a0
|
|
324
681
|
|
|
325
|
-
// EXTERNAL MODULE: external "
|
|
326
|
-
var
|
|
327
|
-
var popup_default = /*#__PURE__*/__webpack_require__.n(popup_);
|
|
682
|
+
// EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
|
|
683
|
+
var es_number_constructor_js_ = __webpack_require__(6);
|
|
328
684
|
|
|
329
|
-
// EXTERNAL MODULE:
|
|
330
|
-
var
|
|
331
|
-
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
685
|
+
// EXTERNAL MODULE: ./src/utils/popup/index.js + 1 modules
|
|
686
|
+
var popup = __webpack_require__(24);
|
|
332
687
|
|
|
333
|
-
//
|
|
334
|
-
|
|
335
|
-
//
|
|
336
|
-
//
|
|
337
|
-
//
|
|
338
|
-
//
|
|
339
|
-
//
|
|
340
|
-
//
|
|
341
|
-
//
|
|
342
|
-
//
|
|
343
|
-
//
|
|
344
|
-
//
|
|
345
|
-
//
|
|
346
|
-
//
|
|
347
|
-
//
|
|
348
|
-
//
|
|
349
|
-
//
|
|
350
|
-
//
|
|
351
|
-
//
|
|
352
|
-
//
|
|
353
|
-
//
|
|
354
|
-
//
|
|
355
|
-
//
|
|
356
|
-
//
|
|
357
|
-
//
|
|
358
|
-
//
|
|
359
|
-
//
|
|
360
|
-
//
|
|
361
|
-
//
|
|
362
|
-
//
|
|
363
|
-
//
|
|
364
|
-
//
|
|
365
|
-
//
|
|
366
|
-
//
|
|
367
|
-
//
|
|
368
|
-
//
|
|
369
|
-
//
|
|
370
|
-
//
|
|
371
|
-
//
|
|
372
|
-
//
|
|
373
|
-
//
|
|
374
|
-
//
|
|
375
|
-
//
|
|
376
|
-
//
|
|
377
|
-
//
|
|
378
|
-
//
|
|
379
|
-
//
|
|
380
|
-
//
|
|
381
|
-
//
|
|
688
|
+
// EXTERNAL MODULE: ./src/mixins/emitter.js
|
|
689
|
+
var emitter = __webpack_require__(14);
|
|
382
690
|
|
|
691
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/drawer/src/main.vue?vue&type=script&lang=js
|
|
383
692
|
|
|
384
693
|
|
|
385
694
|
|
|
386
695
|
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
}
|
|
539
|
-
}
|
|
696
|
+
name: 'ElDrawer',
|
|
697
|
+
mixins: [popup["b" /* default */], emitter["a" /* default */]],
|
|
698
|
+
props: {
|
|
699
|
+
appendToBody: {
|
|
700
|
+
type: Boolean,
|
|
701
|
+
default: false
|
|
702
|
+
},
|
|
703
|
+
beforeClose: {
|
|
704
|
+
type: Function
|
|
705
|
+
},
|
|
706
|
+
customClass: {
|
|
707
|
+
type: String,
|
|
708
|
+
default: ''
|
|
709
|
+
},
|
|
710
|
+
closeOnPressEscape: {
|
|
711
|
+
type: Boolean,
|
|
712
|
+
default: true
|
|
713
|
+
},
|
|
714
|
+
destroyOnClose: {
|
|
715
|
+
type: Boolean,
|
|
716
|
+
default: false
|
|
717
|
+
},
|
|
718
|
+
modal: {
|
|
719
|
+
type: Boolean,
|
|
720
|
+
default: true
|
|
721
|
+
},
|
|
722
|
+
direction: {
|
|
723
|
+
type: String,
|
|
724
|
+
default: 'rtl',
|
|
725
|
+
validator: function validator(val) {
|
|
726
|
+
return ['ltr', 'rtl', 'ttb', 'btt'].indexOf(val) !== -1;
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
modalAppendToBody: {
|
|
730
|
+
type: Boolean,
|
|
731
|
+
default: true
|
|
732
|
+
},
|
|
733
|
+
showClose: {
|
|
734
|
+
type: Boolean,
|
|
735
|
+
default: true
|
|
736
|
+
},
|
|
737
|
+
size: {
|
|
738
|
+
type: [Number, String],
|
|
739
|
+
default: '30%'
|
|
740
|
+
},
|
|
741
|
+
title: {
|
|
742
|
+
type: String,
|
|
743
|
+
default: ''
|
|
744
|
+
},
|
|
745
|
+
visible: {
|
|
746
|
+
type: Boolean
|
|
747
|
+
},
|
|
748
|
+
wrapperClosable: {
|
|
749
|
+
type: Boolean,
|
|
750
|
+
default: true
|
|
751
|
+
},
|
|
752
|
+
withHeader: {
|
|
753
|
+
type: Boolean,
|
|
754
|
+
default: true
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
computed: {
|
|
758
|
+
isHorizontal: function isHorizontal() {
|
|
759
|
+
return this.direction === 'rtl' || this.direction === 'ltr';
|
|
760
|
+
},
|
|
761
|
+
drawerSize: function drawerSize() {
|
|
762
|
+
return typeof this.size === 'number' ? this.size + "px" : this.size;
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
data: function data() {
|
|
766
|
+
return {
|
|
767
|
+
closed: false,
|
|
768
|
+
prevActiveElement: null
|
|
769
|
+
};
|
|
770
|
+
},
|
|
771
|
+
watch: {
|
|
772
|
+
visible: function visible(val) {
|
|
773
|
+
var _this = this;
|
|
774
|
+
if (val) {
|
|
775
|
+
this.closed = false;
|
|
776
|
+
this.$emit('open');
|
|
777
|
+
if (this.appendToBody) {
|
|
778
|
+
document.body.appendChild(this.$el);
|
|
779
|
+
}
|
|
780
|
+
this.prevActiveElement = document.activeElement;
|
|
781
|
+
} else {
|
|
782
|
+
if (!this.closed) {
|
|
783
|
+
this.$emit('close');
|
|
784
|
+
if (this.destroyOnClose === true) {
|
|
785
|
+
this.rendered = false;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
this.$nextTick(function () {
|
|
789
|
+
if (_this.prevActiveElement) {
|
|
790
|
+
_this.prevActiveElement.focus();
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
methods: {
|
|
797
|
+
afterEnter: function afterEnter() {
|
|
798
|
+
this.$emit('opened');
|
|
799
|
+
},
|
|
800
|
+
afterLeave: function afterLeave() {
|
|
801
|
+
this.$emit('closed');
|
|
802
|
+
},
|
|
803
|
+
hide: function hide(cancel) {
|
|
804
|
+
if (cancel !== false) {
|
|
805
|
+
this.$emit('update:visible', false);
|
|
806
|
+
this.$emit('close');
|
|
807
|
+
if (this.destroyOnClose === true) {
|
|
808
|
+
this.rendered = false;
|
|
809
|
+
}
|
|
810
|
+
this.closed = true;
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
handleWrapperClick: function handleWrapperClick() {
|
|
814
|
+
if (this.wrapperClosable) {
|
|
815
|
+
this.closeDrawer();
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
closeDrawer: function closeDrawer() {
|
|
819
|
+
if (typeof this.beforeClose === 'function') {
|
|
820
|
+
this.beforeClose(this.hide);
|
|
821
|
+
} else {
|
|
822
|
+
this.hide();
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
handleClose: function handleClose() {
|
|
826
|
+
// This method here will be called by PopupManger, when the `closeOnPressEscape` was set to true
|
|
827
|
+
// pressing `ESC` will call this method, and also close the drawer.
|
|
828
|
+
// This method also calls `beforeClose` if there was one.
|
|
829
|
+
this.closeDrawer();
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
mounted: function mounted() {
|
|
833
|
+
if (this.visible) {
|
|
834
|
+
this.rendered = true;
|
|
835
|
+
this.open();
|
|
836
|
+
if (this.appendToBody) {
|
|
837
|
+
document.body.appendChild(this.$el);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
destroyed: function destroyed() {
|
|
842
|
+
// if appendToBody is true, remove DOM node after destroy
|
|
843
|
+
if (this.appendToBody && this.$el && this.$el.parentNode) {
|
|
844
|
+
this.$el.parentNode.removeChild(this.$el);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
540
847
|
});
|
|
541
848
|
// CONCATENATED MODULE: ./packages/drawer/src/main.vue?vue&type=script&lang=js
|
|
542
849
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
543
850
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
544
|
-
var componentNormalizer = __webpack_require__(
|
|
851
|
+
var componentNormalizer = __webpack_require__(2);
|
|
545
852
|
|
|
546
853
|
// CONCATENATED MODULE: ./packages/drawer/src/main.vue
|
|
547
854
|
|
|
@@ -566,26 +873,513 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
566
873
|
// CONCATENATED MODULE: ./packages/drawer/index.js
|
|
567
874
|
|
|
568
875
|
|
|
876
|
+
|
|
569
877
|
/* istanbul ignore next */
|
|
570
878
|
main.install = function (Vue) {
|
|
571
|
-
|
|
879
|
+
Vue.component(main.name, main);
|
|
572
880
|
};
|
|
573
|
-
|
|
574
881
|
/* harmony default export */ var drawer = __webpack_exports__["default"] = (main);
|
|
575
882
|
|
|
576
883
|
/***/ }),
|
|
577
884
|
|
|
578
|
-
/***/
|
|
885
|
+
/***/ 21:
|
|
886
|
+
/***/ (function(module, exports) {
|
|
887
|
+
|
|
888
|
+
module.exports = require("core-js/modules/es.array.concat.js");
|
|
889
|
+
|
|
890
|
+
/***/ }),
|
|
891
|
+
|
|
892
|
+
/***/ 22:
|
|
893
|
+
/***/ (function(module, exports) {
|
|
894
|
+
|
|
895
|
+
module.exports = require("core-js/modules/es.array.splice.js");
|
|
896
|
+
|
|
897
|
+
/***/ }),
|
|
898
|
+
|
|
899
|
+
/***/ 23:
|
|
900
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
901
|
+
|
|
902
|
+
"use strict";
|
|
903
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
904
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
905
|
+
|
|
906
|
+
var scrollBarWidth;
|
|
907
|
+
/* harmony default export */ __webpack_exports__["a"] = (function () {
|
|
908
|
+
if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
|
|
909
|
+
if (scrollBarWidth !== undefined) return scrollBarWidth;
|
|
910
|
+
var outer = document.createElement('div');
|
|
911
|
+
outer.className = 'el-scrollbar__wrap';
|
|
912
|
+
outer.style.visibility = 'hidden';
|
|
913
|
+
outer.style.width = '100px';
|
|
914
|
+
outer.style.position = 'absolute';
|
|
915
|
+
outer.style.top = '-9999px';
|
|
916
|
+
document.body.appendChild(outer);
|
|
917
|
+
var widthNoScroll = outer.offsetWidth;
|
|
918
|
+
outer.style.overflow = 'scroll';
|
|
919
|
+
var inner = document.createElement('div');
|
|
920
|
+
inner.style.width = '100%';
|
|
921
|
+
outer.appendChild(inner);
|
|
922
|
+
var widthWithScroll = inner.offsetWidth;
|
|
923
|
+
outer.parentNode.removeChild(outer);
|
|
924
|
+
scrollBarWidth = widthNoScroll - widthWithScroll;
|
|
925
|
+
return scrollBarWidth;
|
|
926
|
+
});
|
|
927
|
+
;
|
|
928
|
+
|
|
929
|
+
/***/ }),
|
|
930
|
+
|
|
931
|
+
/***/ 24:
|
|
932
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
933
|
+
|
|
934
|
+
"use strict";
|
|
935
|
+
|
|
936
|
+
// EXPORTS
|
|
937
|
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
|
|
938
|
+
|
|
939
|
+
// EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
|
|
940
|
+
var es_number_constructor_js_ = __webpack_require__(6);
|
|
941
|
+
|
|
942
|
+
// EXTERNAL MODULE: external "vue"
|
|
943
|
+
var external_vue_ = __webpack_require__(0);
|
|
944
|
+
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
945
|
+
|
|
946
|
+
// EXTERNAL MODULE: ./src/utils/merge.js
|
|
947
|
+
var merge = __webpack_require__(15);
|
|
948
|
+
|
|
949
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
|
|
950
|
+
var es_array_splice_js_ = __webpack_require__(22);
|
|
951
|
+
|
|
952
|
+
// EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
|
|
953
|
+
var es_object_to_string_js_ = __webpack_require__(3);
|
|
954
|
+
|
|
955
|
+
// EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
|
|
956
|
+
var es_regexp_exec_js_ = __webpack_require__(7);
|
|
957
|
+
|
|
958
|
+
// EXTERNAL MODULE: external "core-js/modules/es.string.split.js"
|
|
959
|
+
var es_string_split_js_ = __webpack_require__(59);
|
|
960
|
+
|
|
961
|
+
// EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
|
|
962
|
+
var es_string_trim_js_ = __webpack_require__(55);
|
|
963
|
+
|
|
964
|
+
// EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
|
|
965
|
+
var web_dom_collections_for_each_js_ = __webpack_require__(10);
|
|
966
|
+
|
|
967
|
+
// EXTERNAL MODULE: ./src/utils/dom.js
|
|
968
|
+
var utils_dom = __webpack_require__(1);
|
|
969
|
+
|
|
970
|
+
// CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
var hasModal = false;
|
|
980
|
+
var hasInitZIndex = false;
|
|
981
|
+
var popup_manager_zIndex;
|
|
982
|
+
var popup_manager_getModal = function getModal() {
|
|
983
|
+
if (external_vue_default.a.prototype.$isServer) return;
|
|
984
|
+
var modalDom = PopupManager.modalDom;
|
|
985
|
+
if (modalDom) {
|
|
986
|
+
hasModal = true;
|
|
987
|
+
} else {
|
|
988
|
+
hasModal = false;
|
|
989
|
+
modalDom = document.createElement('div');
|
|
990
|
+
PopupManager.modalDom = modalDom;
|
|
991
|
+
modalDom.addEventListener('touchmove', function (event) {
|
|
992
|
+
event.preventDefault();
|
|
993
|
+
event.stopPropagation();
|
|
994
|
+
});
|
|
995
|
+
modalDom.addEventListener('click', function () {
|
|
996
|
+
PopupManager.doOnModalClick && PopupManager.doOnModalClick();
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
return modalDom;
|
|
1000
|
+
};
|
|
1001
|
+
var instances = {};
|
|
1002
|
+
var PopupManager = {
|
|
1003
|
+
modalFade: true,
|
|
1004
|
+
getInstance: function getInstance(id) {
|
|
1005
|
+
return instances[id];
|
|
1006
|
+
},
|
|
1007
|
+
register: function register(id, instance) {
|
|
1008
|
+
if (id && instance) {
|
|
1009
|
+
instances[id] = instance;
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
deregister: function deregister(id) {
|
|
1013
|
+
if (id) {
|
|
1014
|
+
instances[id] = null;
|
|
1015
|
+
delete instances[id];
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
nextZIndex: function nextZIndex() {
|
|
1019
|
+
return PopupManager.zIndex++;
|
|
1020
|
+
},
|
|
1021
|
+
modalStack: [],
|
|
1022
|
+
doOnModalClick: function doOnModalClick() {
|
|
1023
|
+
var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
|
|
1024
|
+
if (!topItem) return;
|
|
1025
|
+
var instance = PopupManager.getInstance(topItem.id);
|
|
1026
|
+
if (instance && instance.closeOnClickModal) {
|
|
1027
|
+
instance.close();
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
|
|
1031
|
+
if (external_vue_default.a.prototype.$isServer) return;
|
|
1032
|
+
if (!id || zIndex === undefined) return;
|
|
1033
|
+
this.modalFade = modalFade;
|
|
1034
|
+
var modalStack = this.modalStack;
|
|
1035
|
+
for (var i = 0, j = modalStack.length; i < j; i++) {
|
|
1036
|
+
var item = modalStack[i];
|
|
1037
|
+
if (item.id === id) {
|
|
1038
|
+
return;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
var modalDom = popup_manager_getModal();
|
|
1042
|
+
Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
|
|
1043
|
+
if (this.modalFade && !hasModal) {
|
|
1044
|
+
Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
|
|
1045
|
+
}
|
|
1046
|
+
if (modalClass) {
|
|
1047
|
+
var classArr = modalClass.trim().split(/\s+/);
|
|
1048
|
+
classArr.forEach(function (item) {
|
|
1049
|
+
return Object(utils_dom["a" /* addClass */])(modalDom, item);
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
setTimeout(function () {
|
|
1053
|
+
Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
|
|
1054
|
+
}, 200);
|
|
1055
|
+
if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
|
|
1056
|
+
dom.parentNode.appendChild(modalDom);
|
|
1057
|
+
} else {
|
|
1058
|
+
document.body.appendChild(modalDom);
|
|
1059
|
+
}
|
|
1060
|
+
if (zIndex) {
|
|
1061
|
+
modalDom.style.zIndex = zIndex;
|
|
1062
|
+
}
|
|
1063
|
+
modalDom.tabIndex = 0;
|
|
1064
|
+
modalDom.style.display = '';
|
|
1065
|
+
this.modalStack.push({
|
|
1066
|
+
id: id,
|
|
1067
|
+
zIndex: zIndex,
|
|
1068
|
+
modalClass: modalClass
|
|
1069
|
+
});
|
|
1070
|
+
},
|
|
1071
|
+
closeModal: function closeModal(id) {
|
|
1072
|
+
var modalStack = this.modalStack;
|
|
1073
|
+
var modalDom = popup_manager_getModal();
|
|
1074
|
+
if (modalStack.length > 0) {
|
|
1075
|
+
var topItem = modalStack[modalStack.length - 1];
|
|
1076
|
+
if (topItem.id === id) {
|
|
1077
|
+
if (topItem.modalClass) {
|
|
1078
|
+
var classArr = topItem.modalClass.trim().split(/\s+/);
|
|
1079
|
+
classArr.forEach(function (item) {
|
|
1080
|
+
return Object(utils_dom["i" /* removeClass */])(modalDom, item);
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
modalStack.pop();
|
|
1084
|
+
if (modalStack.length > 0) {
|
|
1085
|
+
modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
|
|
1086
|
+
}
|
|
1087
|
+
} else {
|
|
1088
|
+
for (var i = modalStack.length - 1; i >= 0; i--) {
|
|
1089
|
+
if (modalStack[i].id === id) {
|
|
1090
|
+
modalStack.splice(i, 1);
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
if (modalStack.length === 0) {
|
|
1097
|
+
if (this.modalFade) {
|
|
1098
|
+
Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
|
|
1099
|
+
}
|
|
1100
|
+
setTimeout(function () {
|
|
1101
|
+
if (modalStack.length === 0) {
|
|
1102
|
+
if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
|
|
1103
|
+
modalDom.style.display = 'none';
|
|
1104
|
+
PopupManager.modalDom = undefined;
|
|
1105
|
+
}
|
|
1106
|
+
Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
|
|
1107
|
+
}, 200);
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
Object.defineProperty(PopupManager, 'zIndex', {
|
|
1112
|
+
configurable: true,
|
|
1113
|
+
get: function get() {
|
|
1114
|
+
if (!hasInitZIndex) {
|
|
1115
|
+
popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
|
|
1116
|
+
hasInitZIndex = true;
|
|
1117
|
+
}
|
|
1118
|
+
return popup_manager_zIndex;
|
|
1119
|
+
},
|
|
1120
|
+
set: function set(value) {
|
|
1121
|
+
popup_manager_zIndex = value;
|
|
1122
|
+
}
|
|
1123
|
+
});
|
|
1124
|
+
var popup_manager_getTopPopup = function getTopPopup() {
|
|
1125
|
+
if (external_vue_default.a.prototype.$isServer) return;
|
|
1126
|
+
if (PopupManager.modalStack.length > 0) {
|
|
1127
|
+
var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
|
|
1128
|
+
if (!topPopup) return;
|
|
1129
|
+
var instance = PopupManager.getInstance(topPopup.id);
|
|
1130
|
+
return instance;
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
if (!external_vue_default.a.prototype.$isServer) {
|
|
1134
|
+
// handle `esc` key when the popup is shown
|
|
1135
|
+
window.addEventListener('keydown', function (event) {
|
|
1136
|
+
if (event.keyCode === 27) {
|
|
1137
|
+
var topPopup = popup_manager_getTopPopup();
|
|
1138
|
+
if (topPopup && topPopup.closeOnPressEscape) {
|
|
1139
|
+
topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
/* harmony default export */ var popup_manager = (PopupManager);
|
|
1145
|
+
// EXTERNAL MODULE: ./src/utils/scrollbar-width.js
|
|
1146
|
+
var scrollbar_width = __webpack_require__(23);
|
|
1147
|
+
|
|
1148
|
+
// CONCATENATED MODULE: ./src/utils/popup/index.js
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
var idSeed = 1;
|
|
1156
|
+
var scrollBarWidth;
|
|
1157
|
+
/* harmony default export */ var popup = __webpack_exports__["b"] = ({
|
|
1158
|
+
props: {
|
|
1159
|
+
visible: {
|
|
1160
|
+
type: Boolean,
|
|
1161
|
+
default: false
|
|
1162
|
+
},
|
|
1163
|
+
openDelay: {},
|
|
1164
|
+
closeDelay: {},
|
|
1165
|
+
zIndex: {},
|
|
1166
|
+
modal: {
|
|
1167
|
+
type: Boolean,
|
|
1168
|
+
default: false
|
|
1169
|
+
},
|
|
1170
|
+
modalFade: {
|
|
1171
|
+
type: Boolean,
|
|
1172
|
+
default: true
|
|
1173
|
+
},
|
|
1174
|
+
modalClass: {},
|
|
1175
|
+
modalAppendToBody: {
|
|
1176
|
+
type: Boolean,
|
|
1177
|
+
default: false
|
|
1178
|
+
},
|
|
1179
|
+
lockScroll: {
|
|
1180
|
+
type: Boolean,
|
|
1181
|
+
default: true
|
|
1182
|
+
},
|
|
1183
|
+
closeOnPressEscape: {
|
|
1184
|
+
type: Boolean,
|
|
1185
|
+
default: false
|
|
1186
|
+
},
|
|
1187
|
+
closeOnClickModal: {
|
|
1188
|
+
type: Boolean,
|
|
1189
|
+
default: false
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
beforeMount: function beforeMount() {
|
|
1193
|
+
this._popupId = 'popup-' + idSeed++;
|
|
1194
|
+
popup_manager.register(this._popupId, this);
|
|
1195
|
+
},
|
|
1196
|
+
beforeDestroy: function beforeDestroy() {
|
|
1197
|
+
popup_manager.deregister(this._popupId);
|
|
1198
|
+
popup_manager.closeModal(this._popupId);
|
|
1199
|
+
this.restoreBodyStyle();
|
|
1200
|
+
},
|
|
1201
|
+
data: function data() {
|
|
1202
|
+
return {
|
|
1203
|
+
opened: false,
|
|
1204
|
+
bodyPaddingRight: null,
|
|
1205
|
+
computedBodyPaddingRight: 0,
|
|
1206
|
+
withoutHiddenClass: true,
|
|
1207
|
+
rendered: false
|
|
1208
|
+
};
|
|
1209
|
+
},
|
|
1210
|
+
watch: {
|
|
1211
|
+
visible: function visible(val) {
|
|
1212
|
+
var _this = this;
|
|
1213
|
+
if (val) {
|
|
1214
|
+
if (this._opening) return;
|
|
1215
|
+
if (!this.rendered) {
|
|
1216
|
+
this.rendered = true;
|
|
1217
|
+
external_vue_default.a.nextTick(function () {
|
|
1218
|
+
_this.open();
|
|
1219
|
+
});
|
|
1220
|
+
} else {
|
|
1221
|
+
this.open();
|
|
1222
|
+
}
|
|
1223
|
+
} else {
|
|
1224
|
+
this.close();
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
methods: {
|
|
1229
|
+
open: function open(options) {
|
|
1230
|
+
var _this2 = this;
|
|
1231
|
+
if (!this.rendered) {
|
|
1232
|
+
this.rendered = true;
|
|
1233
|
+
}
|
|
1234
|
+
var props = Object(merge["a" /* default */])({}, this.$props || this, options);
|
|
1235
|
+
if (this._closeTimer) {
|
|
1236
|
+
clearTimeout(this._closeTimer);
|
|
1237
|
+
this._closeTimer = null;
|
|
1238
|
+
}
|
|
1239
|
+
clearTimeout(this._openTimer);
|
|
1240
|
+
var openDelay = Number(props.openDelay);
|
|
1241
|
+
if (openDelay > 0) {
|
|
1242
|
+
this._openTimer = setTimeout(function () {
|
|
1243
|
+
_this2._openTimer = null;
|
|
1244
|
+
_this2.doOpen(props);
|
|
1245
|
+
}, openDelay);
|
|
1246
|
+
} else {
|
|
1247
|
+
this.doOpen(props);
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
doOpen: function doOpen(props) {
|
|
1251
|
+
if (this.$isServer) return;
|
|
1252
|
+
if (this.willOpen && !this.willOpen()) return;
|
|
1253
|
+
if (this.opened) return;
|
|
1254
|
+
this._opening = true;
|
|
1255
|
+
var dom = this.$el;
|
|
1256
|
+
var modal = props.modal;
|
|
1257
|
+
var zIndex = props.zIndex;
|
|
1258
|
+
if (zIndex) {
|
|
1259
|
+
popup_manager.zIndex = zIndex;
|
|
1260
|
+
}
|
|
1261
|
+
if (modal) {
|
|
1262
|
+
if (this._closing) {
|
|
1263
|
+
popup_manager.closeModal(this._popupId);
|
|
1264
|
+
this._closing = false;
|
|
1265
|
+
}
|
|
1266
|
+
popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
|
|
1267
|
+
if (props.lockScroll) {
|
|
1268
|
+
this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
|
|
1269
|
+
if (this.withoutHiddenClass) {
|
|
1270
|
+
this.bodyPaddingRight = document.body.style.paddingRight;
|
|
1271
|
+
this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
|
|
1272
|
+
}
|
|
1273
|
+
scrollBarWidth = Object(scrollbar_width["a" /* default */])();
|
|
1274
|
+
var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
1275
|
+
var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
|
|
1276
|
+
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
|
|
1277
|
+
document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
|
|
1278
|
+
}
|
|
1279
|
+
Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
if (getComputedStyle(dom).position === 'static') {
|
|
1283
|
+
dom.style.position = 'absolute';
|
|
1284
|
+
}
|
|
1285
|
+
dom.style.zIndex = popup_manager.nextZIndex();
|
|
1286
|
+
this.opened = true;
|
|
1287
|
+
this.onOpen && this.onOpen();
|
|
1288
|
+
this.doAfterOpen();
|
|
1289
|
+
},
|
|
1290
|
+
doAfterOpen: function doAfterOpen() {
|
|
1291
|
+
this._opening = false;
|
|
1292
|
+
},
|
|
1293
|
+
close: function close() {
|
|
1294
|
+
var _this3 = this;
|
|
1295
|
+
if (this.willClose && !this.willClose()) return;
|
|
1296
|
+
if (this._openTimer !== null) {
|
|
1297
|
+
clearTimeout(this._openTimer);
|
|
1298
|
+
this._openTimer = null;
|
|
1299
|
+
}
|
|
1300
|
+
clearTimeout(this._closeTimer);
|
|
1301
|
+
var closeDelay = Number(this.closeDelay);
|
|
1302
|
+
if (closeDelay > 0) {
|
|
1303
|
+
this._closeTimer = setTimeout(function () {
|
|
1304
|
+
_this3._closeTimer = null;
|
|
1305
|
+
_this3.doClose();
|
|
1306
|
+
}, closeDelay);
|
|
1307
|
+
} else {
|
|
1308
|
+
this.doClose();
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
doClose: function doClose() {
|
|
1312
|
+
this._closing = true;
|
|
1313
|
+
this.onClose && this.onClose();
|
|
1314
|
+
if (this.lockScroll) {
|
|
1315
|
+
setTimeout(this.restoreBodyStyle, 200);
|
|
1316
|
+
}
|
|
1317
|
+
this.opened = false;
|
|
1318
|
+
this.doAfterClose();
|
|
1319
|
+
},
|
|
1320
|
+
doAfterClose: function doAfterClose() {
|
|
1321
|
+
popup_manager.closeModal(this._popupId);
|
|
1322
|
+
this._closing = false;
|
|
1323
|
+
},
|
|
1324
|
+
restoreBodyStyle: function restoreBodyStyle() {
|
|
1325
|
+
if (this.modal && this.withoutHiddenClass) {
|
|
1326
|
+
document.body.style.paddingRight = this.bodyPaddingRight;
|
|
1327
|
+
Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
|
|
1328
|
+
}
|
|
1329
|
+
this.withoutHiddenClass = true;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
});
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
/***/ }),
|
|
1336
|
+
|
|
1337
|
+
/***/ 3:
|
|
1338
|
+
/***/ (function(module, exports) {
|
|
1339
|
+
|
|
1340
|
+
module.exports = require("core-js/modules/es.object.to-string.js");
|
|
1341
|
+
|
|
1342
|
+
/***/ }),
|
|
1343
|
+
|
|
1344
|
+
/***/ 5:
|
|
1345
|
+
/***/ (function(module, exports) {
|
|
1346
|
+
|
|
1347
|
+
module.exports = require("core-js/modules/es.function.name.js");
|
|
1348
|
+
|
|
1349
|
+
/***/ }),
|
|
1350
|
+
|
|
1351
|
+
/***/ 53:
|
|
1352
|
+
/***/ (function(module, exports) {
|
|
1353
|
+
|
|
1354
|
+
module.exports = require("core-js/modules/es.array.includes.js");
|
|
1355
|
+
|
|
1356
|
+
/***/ }),
|
|
1357
|
+
|
|
1358
|
+
/***/ 55:
|
|
1359
|
+
/***/ (function(module, exports) {
|
|
1360
|
+
|
|
1361
|
+
module.exports = require("core-js/modules/es.string.trim.js");
|
|
1362
|
+
|
|
1363
|
+
/***/ }),
|
|
1364
|
+
|
|
1365
|
+
/***/ 59:
|
|
1366
|
+
/***/ (function(module, exports) {
|
|
1367
|
+
|
|
1368
|
+
module.exports = require("core-js/modules/es.string.split.js");
|
|
1369
|
+
|
|
1370
|
+
/***/ }),
|
|
1371
|
+
|
|
1372
|
+
/***/ 6:
|
|
579
1373
|
/***/ (function(module, exports) {
|
|
580
1374
|
|
|
581
|
-
module.exports = require("
|
|
1375
|
+
module.exports = require("core-js/modules/es.number.constructor.js");
|
|
582
1376
|
|
|
583
1377
|
/***/ }),
|
|
584
1378
|
|
|
585
|
-
/***/
|
|
1379
|
+
/***/ 7:
|
|
586
1380
|
/***/ (function(module, exports) {
|
|
587
1381
|
|
|
588
|
-
module.exports = require("
|
|
1382
|
+
module.exports = require("core-js/modules/es.regexp.exec.js");
|
|
589
1383
|
|
|
590
1384
|
/***/ })
|
|
591
1385
|
|