cy-element-ui 1.0.87 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +148 -172
- package/lib/index.js +1 -58539
- package/lib/theme-chalk/alert.css +1 -0
- package/lib/theme-chalk/aside.css +1 -0
- package/lib/theme-chalk/autocomplete.css +1 -0
- package/lib/theme-chalk/avatar.css +1 -0
- package/lib/theme-chalk/backtop.css +1 -0
- package/lib/theme-chalk/badge.css +1 -0
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/breadcrumb.css +1 -0
- package/lib/theme-chalk/button.css +1 -0
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/card.css +1 -0
- package/lib/theme-chalk/carousel-item.css +1 -0
- package/lib/theme-chalk/carousel.css +1 -0
- package/lib/theme-chalk/cascader-panel.css +1 -0
- package/lib/theme-chalk/cascader.css +1 -0
- package/lib/theme-chalk/checkbox.css +1 -0
- package/lib/theme-chalk/col.css +1 -0
- package/lib/theme-chalk/collapse.css +1 -0
- package/lib/theme-chalk/color-picker.css +1 -0
- package/lib/theme-chalk/container.css +1 -0
- package/lib/theme-chalk/date-picker.css +1 -0
- package/lib/theme-chalk/descriptions-item.css +1 -0
- package/lib/theme-chalk/descriptions.css +1 -0
- package/lib/theme-chalk/dialog.css +1 -0
- package/lib/theme-chalk/display.css +1 -0
- package/lib/theme-chalk/divider.css +1 -0
- package/lib/theme-chalk/drawer.css +1 -0
- package/lib/theme-chalk/dropdown.css +1 -0
- package/lib/theme-chalk/empty.css +1 -0
- package/lib/theme-chalk/footer.css +1 -0
- package/lib/theme-chalk/form.css +1 -0
- package/lib/theme-chalk/header.css +1 -0
- package/lib/theme-chalk/icon.css +1 -0
- package/lib/theme-chalk/image.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -0
- package/lib/theme-chalk/input.css +1 -0
- package/lib/theme-chalk/link.css +1 -0
- package/lib/theme-chalk/loading.css +1 -0
- package/lib/theme-chalk/main.css +1 -0
- package/lib/theme-chalk/menu.css +1 -0
- package/lib/theme-chalk/message-box.css +1 -0
- package/lib/theme-chalk/message.css +1 -0
- package/lib/theme-chalk/notification.css +1 -0
- package/lib/theme-chalk/option-group.css +1 -0
- package/lib/theme-chalk/option.css +1 -0
- package/lib/theme-chalk/page-header.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -0
- package/lib/theme-chalk/popconfirm.css +1 -0
- package/lib/theme-chalk/popover.css +1 -0
- package/lib/theme-chalk/popper.css +1 -0
- package/lib/theme-chalk/progress.css +1 -0
- package/lib/theme-chalk/radio-button.css +1 -0
- package/lib/theme-chalk/radio-group.css +1 -0
- package/lib/theme-chalk/radio.css +1 -0
- package/lib/theme-chalk/rate.css +1 -0
- package/lib/theme-chalk/reset.css +1 -0
- package/lib/theme-chalk/result.css +1 -0
- package/lib/theme-chalk/row.css +1 -0
- package/lib/theme-chalk/scrollbar.css +1 -0
- package/lib/theme-chalk/select-dropdown.css +1 -0
- package/lib/theme-chalk/select.css +1 -0
- package/lib/theme-chalk/skeleton-item.css +1 -0
- package/lib/theme-chalk/skeleton.css +1 -0
- package/lib/theme-chalk/slider.css +1 -0
- package/lib/theme-chalk/spinner.css +1 -0
- package/lib/theme-chalk/statistic.css +1 -0
- package/lib/theme-chalk/step.css +1 -0
- package/lib/theme-chalk/steps.css +1 -0
- package/lib/theme-chalk/switch.css +1 -0
- package/lib/theme-chalk/table-column.css +1 -0
- package/lib/theme-chalk/table.css +1 -0
- package/lib/theme-chalk/tabs.css +1 -0
- package/lib/theme-chalk/tag.css +1 -0
- package/lib/theme-chalk/time-picker.css +1 -0
- package/lib/theme-chalk/time-select.css +1 -0
- package/lib/theme-chalk/timeline-item.css +1 -0
- package/lib/theme-chalk/timeline.css +1 -0
- package/lib/theme-chalk/tooltip.css +1 -0
- package/lib/theme-chalk/transfer.css +1 -0
- package/lib/theme-chalk/tree.css +1 -0
- package/lib/theme-chalk/upload.css +1 -0
- package/package.json +150 -159
- package/packages/alert/index.js +8 -8
- package/packages/alert/src/main.vue +94 -94
- package/packages/aside/index.js +8 -8
- package/packages/aside/src/main.vue +20 -20
- package/packages/autocomplete/index.js +8 -8
- package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
- package/packages/autocomplete/src/autocomplete.vue +285 -285
- package/packages/avatar/index.js +8 -8
- package/packages/avatar/src/main.vue +107 -107
- package/packages/backtop/index.js +8 -8
- package/packages/backtop/src/main.vue +110 -110
- package/packages/badge/index.js +8 -8
- package/packages/badge/src/main.vue +53 -53
- package/packages/breadcrumb/index.js +8 -8
- package/packages/breadcrumb/src/breadcrumb-item.vue +41 -41
- package/packages/breadcrumb/src/breadcrumb.vue +34 -34
- package/packages/breadcrumb-item/index.js +8 -8
- package/packages/button/index.js +8 -8
- package/packages/button/src/button-group.vue +10 -10
- package/packages/button/src/button.vue +78 -78
- package/packages/button-group/index.js +8 -8
- package/packages/calendar/index.js +8 -8
- package/packages/calendar/src/date-table.vue +200 -200
- package/packages/calendar/src/main.vue +280 -280
- package/packages/card/index.js +8 -8
- package/packages/card/src/main.vue +23 -23
- package/packages/carousel/index.js +8 -8
- package/packages/carousel/src/item.vue +138 -138
- package/packages/carousel/src/main.vue +315 -315
- package/packages/carousel-item/index.js +8 -8
- package/packages/cascader/index.js +8 -8
- package/packages/cascader/src/cascader.vue +663 -663
- package/packages/cascader-panel/index.js +8 -8
- package/packages/cascader-panel/src/cascader-menu.vue +138 -138
- package/packages/cascader-panel/src/cascader-node.vue +246 -246
- package/packages/cascader-panel/src/cascader-panel.vue +391 -391
- package/packages/cascader-panel/src/node.js +166 -165
- package/packages/cascader-panel/src/store.js +58 -57
- package/packages/checkbox/index.js +8 -8
- package/packages/checkbox/src/checkbox-button.vue +199 -199
- package/packages/checkbox/src/checkbox-group.vue +48 -48
- package/packages/checkbox/src/checkbox.vue +222 -222
- package/packages/checkbox-button/index.js +8 -8
- package/packages/checkbox-group/index.js +8 -8
- package/packages/col/index.js +9 -9
- package/packages/col/src/col.js +71 -71
- package/packages/collapse/index.js +9 -9
- package/packages/collapse/src/collapse-item.vue +114 -114
- package/packages/collapse/src/collapse.vue +73 -73
- package/packages/collapse-item/index.js +8 -8
- package/packages/color-picker/index.js +8 -8
- package/packages/color-picker/src/color.js +317 -317
- package/packages/color-picker/src/components/alpha-slider.vue +132 -132
- package/packages/color-picker/src/components/hue-slider.vue +123 -123
- package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
- package/packages/color-picker/src/components/predefine.vue +61 -61
- package/packages/color-picker/src/components/sv-panel.vue +100 -100
- package/packages/color-picker/src/draggable.js +36 -36
- package/packages/color-picker/src/main.vue +188 -188
- package/packages/container/index.js +8 -8
- package/packages/container/src/main.vue +33 -33
- package/packages/date-picker/index.js +8 -8
- package/packages/date-picker/src/basic/date-table.vue +441 -441
- package/packages/date-picker/src/basic/month-table.vue +269 -268
- package/packages/date-picker/src/basic/time-spinner.vue +304 -304
- package/packages/date-picker/src/basic/year-table.vue +111 -111
- package/packages/date-picker/src/panel/date-range.vue +680 -680
- package/packages/date-picker/src/panel/date.vue +609 -609
- package/packages/date-picker/src/panel/month-range.vue +289 -289
- package/packages/date-picker/src/panel/time-range.vue +248 -248
- package/packages/date-picker/src/panel/time-select.vue +178 -178
- package/packages/date-picker/src/panel/time.vue +186 -186
- package/packages/date-picker/src/picker/date-picker.js +43 -43
- package/packages/date-picker/src/picker/time-picker.js +39 -39
- package/packages/date-picker/src/picker/time-select.js +21 -21
- package/packages/date-picker/src/picker.vue +932 -390
- package/packages/descriptions/index.js +8 -8
- package/packages/descriptions/src/descriptions-item.js +30 -30
- package/packages/descriptions/src/descriptions-row.js +116 -116
- package/packages/descriptions/src/index.js +180 -180
- package/packages/descriptions-item/index.js +8 -8
- package/packages/dialog/index.js +8 -8
- package/packages/dialog/src/component.vue +212 -212
- package/packages/divider/index.js +8 -8
- package/packages/divider/src/main.vue +37 -37
- package/packages/drawer/index.js +8 -8
- package/packages/drawer/src/main.vue +205 -205
- package/packages/dropdown/index.js +8 -8
- package/packages/dropdown/src/dropdown-item.vue +37 -37
- package/packages/dropdown/src/dropdown-menu.vue +63 -63
- package/packages/dropdown/src/dropdown.vue +293 -293
- package/packages/dropdown-item/index.js +8 -8
- package/packages/dropdown-menu/index.js +8 -8
- package/packages/empty/index.js +7 -7
- package/packages/empty/src/img-empty.vue +132 -132
- package/packages/empty/src/index.vue +50 -50
- package/packages/footer/index.js +8 -8
- package/packages/footer/src/main.vue +20 -20
- package/packages/form/index.js +8 -8
- package/packages/form/src/form-item.vue +294 -334
- package/packages/form/src/form.vue +182 -182
- package/packages/form/src/label-wrap.vue +78 -0
- package/packages/form-item/index.js +8 -8
- package/packages/header/index.js +8 -8
- package/packages/header/src/main.vue +20 -20
- package/packages/icon/index.js +8 -8
- package/packages/icon/src/icon.vue +13 -13
- package/packages/image/index.js +8 -8
- package/packages/image/src/image-viewer.vue +330 -330
- package/packages/image/src/main.vue +249 -249
- package/packages/infinite-scroll/index.js +8 -8
- package/packages/infinite-scroll/src/main.js +150 -149
- package/packages/input/index.js +8 -8
- package/packages/input/src/calcTextareaHeight.js +104 -104
- package/packages/input/src/input.vue +440 -440
- package/packages/input-number/index.js +8 -8
- package/packages/input-number/src/input-number.vue +286 -286
- package/packages/link/index.js +8 -8
- package/packages/link/src/main.vue +53 -53
- package/packages/loading/index.js +11 -11
- package/packages/loading/src/directive.js +133 -133
- package/packages/loading/src/index.js +106 -106
- package/packages/loading/src/loading.vue +41 -41
- package/packages/main/index.js +8 -8
- package/packages/main/src/main.vue +12 -12
- package/packages/menu/index.js +8 -8
- package/packages/menu/src/menu-item-group.vue +45 -45
- package/packages/menu/src/menu-item.vue +112 -112
- package/packages/menu/src/menu-mixin.js +44 -44
- package/packages/menu/src/menu.vue +325 -325
- package/packages/menu/src/submenu.vue +349 -348
- package/packages/menu-item/index.js +8 -8
- package/packages/menu-item-group/index.js +8 -8
- package/packages/message/index.js +2 -2
- package/packages/message/src/main.js +91 -91
- package/packages/message/src/main.vue +117 -117
- package/packages/message-box/index.js +2 -2
- package/packages/message-box/src/main.js +216 -216
- package/packages/message-box/src/main.vue +332 -332
- package/packages/notification/index.js +2 -2
- package/packages/notification/src/main.js +94 -94
- package/packages/notification/src/main.vue +152 -152
- package/packages/option/index.js +8 -8
- package/packages/option-group/index.js +8 -8
- package/packages/page-header/index.js +8 -8
- package/packages/page-header/src/main.vue +30 -30
- package/packages/pagination/index.js +8 -8
- package/packages/pagination/src/pager.vue +163 -163
- package/packages/pagination/src/pagination.js +386 -386
- package/packages/popconfirm/index.js +8 -8
- package/packages/popconfirm/src/main.vue +104 -104
- package/packages/popover/index.js +14 -14
- package/packages/popover/src/directive.js +20 -20
- package/packages/popover/src/main.vue +237 -237
- package/packages/progress/index.js +8 -8
- package/packages/progress/src/progress.vue +235 -235
- package/packages/radio/index.js +8 -8
- package/packages/radio/src/radio-button.vue +115 -115
- package/packages/radio/src/radio-group.vue +113 -113
- package/packages/radio/src/radio.vue +134 -134
- package/packages/radio-button/index.js +8 -8
- package/packages/radio-group/index.js +8 -8
- package/packages/rate/index.js +8 -8
- package/packages/rate/src/main.vue +348 -348
- package/packages/result/index.js +8 -8
- package/packages/result/src/icon-error.vue +13 -13
- package/packages/result/src/icon-info.vue +13 -13
- package/packages/result/src/icon-success.vue +13 -13
- package/packages/result/src/icon-warning.vue +13 -13
- package/packages/result/src/index.vue +65 -65
- package/packages/row/index.js +9 -9
- package/packages/row/src/row.js +44 -44
- package/packages/scrollbar/index.js +8 -8
- package/packages/scrollbar/src/bar.js +92 -92
- package/packages/scrollbar/src/main.js +130 -130
- package/packages/scrollbar/src/util.js +34 -34
- package/packages/select/index.js +8 -8
- package/packages/select/src/navigation-mixin.js +54 -54
- package/packages/select/src/option-group.vue +60 -60
- package/packages/select/src/option.vue +168 -168
- package/packages/select/src/select-dropdown.vue +74 -74
- package/packages/select/src/select.vue +900 -900
- package/packages/skeleton/index.js +8 -8
- package/packages/skeleton/src/img-placeholder.vue +16 -16
- package/packages/skeleton/src/index.vue +76 -76
- package/packages/skeleton/src/item.vue +22 -22
- package/packages/skeleton-item/index.js +8 -8
- package/packages/slider/index.js +8 -8
- package/packages/slider/src/button.vue +238 -238
- package/packages/slider/src/main.vue +427 -427
- package/packages/slider/src/marker.js +18 -18
- package/packages/spinner/index.js +8 -8
- package/packages/spinner/src/spinner.vue +27 -27
- package/packages/statistic/index.js +8 -8
- package/packages/statistic/src/main.vue +204 -203
- package/packages/step/index.js +8 -8
- package/packages/steps/README.md +69 -69
- package/packages/steps/index.js +8 -8
- package/packages/steps/src/step.vue +184 -184
- package/packages/steps/src/steps.vue +68 -68
- package/packages/submenu/index.js +8 -8
- package/packages/switch/index.js +9 -9
- package/packages/switch/src/component.vue +174 -174
- package/packages/tab-pane/index.js +8 -8
- package/packages/table/index.js +8 -8
- package/packages/table/src/config.js +124 -124
- package/packages/table/src/dropdown.js +28 -28
- package/packages/table/src/filter-panel.vue +194 -194
- package/packages/table/src/layout-observer.js +68 -68
- package/packages/table/src/store/current.js +76 -76
- package/packages/table/src/store/expand.js +65 -65
- package/packages/table/src/store/helper.js +41 -41
- package/packages/table/src/store/index.js +147 -147
- package/packages/table/src/store/tree.js +209 -209
- package/packages/table/src/store/watcher.js +381 -381
- package/packages/table/src/table-body.js +469 -469
- package/packages/table/src/table-column.js +319 -319
- package/packages/table/src/table-footer.js +153 -153
- package/packages/table/src/table-header.js +511 -511
- package/packages/table/src/table-layout.js +249 -249
- package/packages/table/src/table-row.js +101 -101
- package/packages/table/src/table.vue +712 -718
- package/packages/table/src/util.js +273 -273
- package/packages/table-column/index.js +8 -8
- package/packages/tabs/index.js +8 -8
- package/packages/tabs/src/tab-bar.vue +57 -57
- package/packages/tabs/src/tab-nav.vue +294 -294
- package/packages/tabs/src/tab-pane.vue +56 -56
- package/packages/tabs/src/tabs.vue +191 -191
- package/packages/tag/index.js +8 -8
- package/packages/tag/src/tag.vue +58 -58
- package/packages/theme-chalk/README.md +33 -33
- package/packages/theme-chalk/gulpfile.js +25 -27
- package/packages/theme-chalk/package.json +35 -35
- package/packages/theme-chalk/src/alert.scss +147 -147
- package/packages/theme-chalk/src/aside.scss +7 -7
- package/packages/theme-chalk/src/autocomplete.scss +80 -80
- package/packages/theme-chalk/src/avatar.scss +51 -51
- package/packages/theme-chalk/src/backtop.scss +22 -22
- package/packages/theme-chalk/src/badge.scss +57 -57
- package/packages/theme-chalk/src/base.scss +2 -2
- package/packages/theme-chalk/src/breadcrumb.scss +55 -55
- package/packages/theme-chalk/src/button.scss +262 -262
- package/packages/theme-chalk/src/calendar.scss +79 -79
- package/packages/theme-chalk/src/card.scss +32 -32
- package/packages/theme-chalk/src/carousel-item.scss +50 -50
- package/packages/theme-chalk/src/carousel.scss +161 -161
- package/packages/theme-chalk/src/cascader-panel.scss +120 -120
- package/packages/theme-chalk/src/cascader.scss +182 -182
- package/packages/theme-chalk/src/checkbox.scss +359 -359
- package/packages/theme-chalk/src/col.scss +156 -156
- package/packages/theme-chalk/src/collapse.scss +63 -63
- package/packages/theme-chalk/src/color-picker.scss +384 -384
- package/packages/theme-chalk/src/common/popup.scss +42 -42
- package/packages/theme-chalk/src/common/transition.scss +99 -99
- package/packages/theme-chalk/src/common/var.scss +1028 -1028
- package/packages/theme-chalk/src/container.scss +14 -14
- package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -97
- package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
- package/packages/theme-chalk/src/date-picker/date-table.scss +151 -151
- package/packages/theme-chalk/src/date-picker/month-table.scss +82 -82
- package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -117
- package/packages/theme-chalk/src/date-picker/picker.scss +197 -197
- package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -85
- package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
- package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -110
- package/packages/theme-chalk/src/date-picker/year-table.scss +51 -51
- package/packages/theme-chalk/src/date-picker.scss +11 -11
- package/packages/theme-chalk/src/descriptions-item.scss +42 -42
- package/packages/theme-chalk/src/descriptions.scss +111 -111
- package/packages/theme-chalk/src/dialog.scss +123 -123
- package/packages/theme-chalk/src/display.scss +12 -12
- package/packages/theme-chalk/src/divider.scss +47 -47
- package/packages/theme-chalk/src/drawer.scss +219 -219
- package/packages/theme-chalk/src/dropdown.scss +182 -182
- package/packages/theme-chalk/src/empty.scss +45 -45
- package/packages/theme-chalk/src/footer.scss +8 -8
- package/packages/theme-chalk/src/form.scss +167 -167
- package/packages/theme-chalk/src/header.scss +8 -8
- package/packages/theme-chalk/src/icon.scss +1167 -1167
- package/packages/theme-chalk/src/image.scss +179 -179
- package/packages/theme-chalk/src/index.scss +87 -87
- package/packages/theme-chalk/src/input-number.scss +261 -180
- package/packages/theme-chalk/src/input.scss +360 -360
- package/packages/theme-chalk/src/link.scss +81 -81
- package/packages/theme-chalk/src/loading.scss +96 -96
- package/packages/theme-chalk/src/main.scss +12 -12
- package/packages/theme-chalk/src/menu.scss +289 -289
- package/packages/theme-chalk/src/message-box.scss +226 -226
- package/packages/theme-chalk/src/message.scss +120 -120
- package/packages/theme-chalk/src/mixins/_button.scss +81 -81
- package/packages/theme-chalk/src/mixins/config.scss +4 -4
- package/packages/theme-chalk/src/mixins/function.scss +44 -44
- package/packages/theme-chalk/src/mixins/mixins.scss +191 -196
- package/packages/theme-chalk/src/mixins/utils.scss +39 -39
- package/packages/theme-chalk/src/notification.scss +99 -99
- package/packages/theme-chalk/src/option-group.scss +42 -42
- package/packages/theme-chalk/src/option.scss +36 -36
- package/packages/theme-chalk/src/page-header.scss +41 -41
- package/packages/theme-chalk/src/pagination.scss +295 -295
- package/packages/theme-chalk/src/popconfirm.scss +16 -16
- package/packages/theme-chalk/src/popover.scss +40 -40
- package/packages/theme-chalk/src/popper.scss +101 -101
- package/packages/theme-chalk/src/progress.scss +141 -141
- package/packages/theme-chalk/src/radio-button.scss +113 -113
- package/packages/theme-chalk/src/radio-group.scss +9 -9
- package/packages/theme-chalk/src/radio.scss +199 -199
- package/packages/theme-chalk/src/rate.scss +49 -49
- package/packages/theme-chalk/src/reset.scss +79 -79
- package/packages/theme-chalk/src/result.scss +61 -61
- package/packages/theme-chalk/src/row.scss +43 -43
- package/packages/theme-chalk/src/scrollbar.scss +72 -72
- package/packages/theme-chalk/src/select-dropdown.scss +62 -62
- package/packages/theme-chalk/src/select.scss +152 -152
- package/packages/theme-chalk/src/skeleton-item.scss +84 -84
- package/packages/theme-chalk/src/skeleton.scss +40 -40
- package/packages/theme-chalk/src/slider.scss +250 -250
- package/packages/theme-chalk/src/spinner.scss +44 -44
- package/packages/theme-chalk/src/statistic.scss +38 -38
- package/packages/theme-chalk/src/step.scss +317 -317
- package/packages/theme-chalk/src/steps.scss +20 -20
- package/packages/theme-chalk/src/switch.scss +116 -116
- package/packages/theme-chalk/src/table-column.scss +97 -97
- package/packages/theme-chalk/src/table.scss +564 -564
- package/packages/theme-chalk/src/tabs.scss +602 -602
- package/packages/theme-chalk/src/tag.scss +163 -163
- package/packages/theme-chalk/src/time-picker.scss +8 -8
- package/packages/theme-chalk/src/time-select.scss +37 -37
- package/packages/theme-chalk/src/timeline-item.scss +86 -86
- package/packages/theme-chalk/src/timeline.scss +14 -14
- package/packages/theme-chalk/src/tooltip.scss +141 -141
- package/packages/theme-chalk/src/transfer.scss +227 -227
- package/packages/theme-chalk/src/tree.scss +123 -123
- package/packages/theme-chalk/src/upload.scss +603 -603
- package/packages/time-picker/index.js +8 -8
- package/packages/time-select/index.js +8 -8
- package/packages/timeline/index.js +8 -8
- package/packages/timeline/src/item.vue +73 -73
- package/packages/timeline/src/main.vue +33 -33
- package/packages/timeline-item/index.js +8 -8
- package/packages/tooltip/index.js +8 -8
- package/packages/tooltip/src/main.js +242 -242
- package/packages/transfer/index.js +8 -8
- package/packages/transfer/src/main.vue +231 -231
- package/packages/transfer/src/transfer-panel.vue +251 -251
- package/packages/tree/index.js +8 -8
- package/packages/tree/src/model/node.js +484 -484
- package/packages/tree/src/model/tree-store.js +340 -340
- package/packages/tree/src/model/util.js +27 -27
- package/packages/tree/src/tree-node.vue +279 -279
- package/packages/tree/src/tree.vue +496 -496
- package/packages/upload/index.js +8 -8
- package/packages/upload/src/ajax.js +85 -85
- package/packages/upload/src/index.vue +338 -338
- package/packages/upload/src/upload-dragger.vue +70 -70
- package/packages/upload/src/upload-list.vue +105 -105
- package/packages/upload/src/upload.vue +211 -211
- package/src/directives/mousewheel.js +18 -18
- package/src/directives/repeat-click.js +26 -26
- package/src/index.js +202 -216
- package/src/locale/format.js +46 -45
- package/src/locale/index.js +48 -48
- package/src/locale/lang/en.js +123 -123
- package/src/locale/lang/zh-CN.js +123 -123
- package/src/locale/lang/zh-TW.js +123 -123
- package/src/mixins/emitter.js +33 -33
- package/src/mixins/focus.js +9 -9
- package/src/mixins/locale.js +9 -9
- package/src/mixins/migrating.js +54 -54
- package/src/transitions/collapse-transition.js +77 -77
- package/src/utils/after-leave.js +27 -27
- package/src/utils/aria-dialog.js +90 -90
- package/src/utils/aria-utils.js +122 -122
- package/src/utils/clickoutside.js +76 -76
- package/src/utils/date-util.js +282 -282
- package/src/utils/date.js +368 -368
- package/src/utils/dom.js +227 -227
- package/src/utils/lodash.js +18075 -18075
- package/src/utils/menu/aria-menubar.js +14 -14
- package/src/utils/menu/aria-menuitem.js +49 -49
- package/src/utils/menu/aria-submenu.js +59 -59
- package/src/utils/merge.js +15 -15
- package/src/utils/popper.js +1276 -1276
- package/src/utils/popup/index.js +218 -218
- package/src/utils/popup/popup-manager.js +194 -194
- package/src/utils/resize-event.js +36 -36
- package/src/utils/scroll-into-view.js +27 -27
- package/src/utils/scrollbar-width.js +29 -29
- package/src/utils/shared.js +7 -7
- package/src/utils/types.js +40 -40
- package/src/utils/util.js +245 -245
- package/src/utils/vdom.js +5 -5
- package/src/utils/vue-popper.js +198 -198
- package/types/alert.d.ts +31 -31
- package/types/aside.d.ts +7 -7
- package/types/autocomplete.d.ts +78 -78
- package/types/avatar.d.ts +20 -20
- package/types/backtop.d.ts +16 -16
- package/types/badge.d.ts +16 -16
- package/types/breadcrumb-item.d.ts +10 -10
- package/types/breadcrumb.d.ts +10 -10
- package/types/button-group.d.ts +4 -4
- package/types/button.d.ts +37 -37
- package/types/calendar.d.ts +15 -15
- package/types/card.d.ts +26 -26
- package/types/carousel-item.d.ts +10 -10
- package/types/carousel.d.ts +57 -57
- package/types/cascader-panel.d.ts +72 -72
- package/types/cascader.d.ts +65 -65
- package/types/checkbox-button.d.ts +22 -22
- package/types/checkbox-group.d.ts +22 -22
- package/types/checkbox.d.ts +34 -34
- package/types/col.d.ts +46 -46
- package/types/collapse-item.d.ts +26 -26
- package/types/collapse.d.ts +10 -10
- package/types/color-picker.d.ts +21 -21
- package/types/component.d.ts +13 -13
- package/types/container.d.ts +7 -7
- package/types/date-picker.d.ts +124 -124
- package/types/descriptions-item.d.ts +37 -37
- package/types/descriptions.d.ts +52 -52
- package/types/dialog.d.ts +62 -62
- package/types/divider.d.ts +12 -12
- package/types/drawer.d.ts +63 -63
- package/types/dropdown-item.d.ts +16 -16
- package/types/dropdown-menu.d.ts +4 -4
- package/types/dropdown.d.ts +38 -38
- package/types/element-ui.d.ts +1 -22
- package/types/empty.d.ts +31 -31
- package/types/footer.d.ts +7 -7
- package/types/form-item.d.ts +37 -37
- package/types/form.d.ts +82 -82
- package/types/header.d.ts +7 -7
- package/types/icon.d.ts +7 -7
- package/types/image.d.ts +43 -43
- package/types/index.d.ts +4 -4
- package/types/infinite-scroll.d.ts +5 -5
- package/types/input-number.d.ts +47 -47
- package/types/input.d.ts +107 -107
- package/types/link.d.ts +25 -25
- package/types/loading.d.ts +62 -62
- package/types/main.d.ts +4 -4
- package/types/menu-item-group.d.ts +7 -7
- package/types/menu-item.d.ts +10 -10
- package/types/menu.d.ts +46 -46
- package/types/message-box.d.ts +176 -176
- package/types/message.d.ts +90 -90
- package/types/notification.d.ts +84 -84
- package/types/option-group.d.ts +10 -10
- package/types/option.d.ts +13 -13
- package/types/page-header.d.ts +10 -10
- package/types/pagination.d.ts +43 -43
- package/types/popconfirm.d.ts +29 -29
- package/types/popover.d.ts +71 -71
- package/types/progress.d.ts +37 -37
- package/types/radio-button.d.ts +16 -16
- package/types/radio-group.d.ts +18 -18
- package/types/radio.d.ts +19 -19
- package/types/rate.d.ts +64 -64
- package/types/result.d.ts +33 -33
- package/types/row.d.ts +25 -25
- package/types/select.d.ts +90 -90
- package/types/skeleton-item.d.ts +7 -7
- package/types/skeleton.d.ts +33 -33
- package/types/slider.d.ts +68 -68
- package/types/spinner.d.ts +16 -16
- package/types/statistic.d.ts +37 -37
- package/types/step.d.ts +34 -34
- package/types/steps.d.ts +28 -28
- package/types/submenu.d.ts +22 -22
- package/types/switch.d.ts +43 -43
- package/types/tab-pane.d.ts +19 -19
- package/types/table-column.d.ts +117 -117
- package/types/table.d.ts +177 -177
- package/types/tabs.d.ts +31 -31
- package/types/tag.d.ts +28 -28
- package/types/time-picker.d.ts +63 -63
- package/types/time-select.d.ts +56 -56
- package/types/timeline-item.d.ts +20 -20
- package/types/timeline.d.ts +6 -6
- package/types/tooltip.d.ts +52 -52
- package/types/transfer.d.ts +73 -73
- package/types/tree.d.ts +266 -266
- package/types/upload.d.ts +124 -124
- package/web-types.json +4195 -4195
- package/lib/alert.js +0 -402
- package/lib/aside.js +0 -270
- package/lib/autocomplete.js +0 -4651
- package/lib/avatar.js +0 -363
- package/lib/backtop.js +0 -386
- package/lib/badge.js +0 -313
- package/lib/breadcrumb-item.js +0 -309
- package/lib/breadcrumb.js +0 -287
- package/lib/button-group.js +0 -256
- package/lib/button.js +0 -332
- package/lib/calendar.js +0 -2373
- package/lib/card.js +0 -289
- package/lib/carousel-item.js +0 -755
- package/lib/carousel.js +0 -719
- package/lib/cascader-panel.js +0 -3623
- package/lib/cascader.js +0 -7498
- package/lib/checkbox-button.js +0 -573
- package/lib/checkbox-group.js +0 -344
- package/lib/checkbox.js +0 -603
- package/lib/col.js +0 -177
- package/lib/collapse-item.js +0 -1156
- package/lib/collapse.js +0 -323
- package/lib/color-picker.js +0 -5600
- package/lib/container.js +0 -281
- package/lib/date-picker.js +0 -9871
- package/lib/descriptions-item.js +0 -140
- package/lib/descriptions.js +0 -512
- package/lib/dialog.js +0 -1736
- package/lib/directives/mousewheel.js +0 -26
- package/lib/directives/repeat-click.js +0 -33
- package/lib/divider.js +0 -297
- package/lib/drawer.js +0 -1316
- package/lib/dropdown-item.js +0 -332
- package/lib/dropdown-menu.js +0 -2545
- package/lib/dropdown.js +0 -1579
- package/lib/element-ui.common.js +0 -54072
- package/lib/empty.js +0 -1186
- package/lib/fileUpload.js +0 -3276
- package/lib/footer.js +0 -270
- package/lib/form-item.js +0 -1129
- package/lib/form.js +0 -471
- package/lib/header.js +0 -270
- package/lib/icon.js +0 -260
- package/lib/image.js +0 -2386
- package/lib/infinite-scroll.js +0 -591
- package/lib/input-number.js +0 -2093
- package/lib/input.js +0 -1358
- package/lib/link.js +0 -308
- package/lib/loading.js +0 -1349
- package/lib/locale/format.js +0 -55
- 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 -257
- package/lib/menu-item-group.js +0 -296
- package/lib/menu-item.js +0 -3344
- package/lib/menu.js +0 -1556
- package/lib/message-box.js +0 -3564
- package/lib/message.js +0 -1601
- 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 -1662
- package/lib/option-group.js +0 -364
- package/lib/option.js +0 -835
- package/lib/page-header.js +0 -908
- package/lib/pagination.js +0 -6855
- package/lib/popconfirm.js +0 -3708
- package/lib/popover.js +0 -3118
- package/lib/progress.js +0 -542
- package/lib/radio-button.js +0 -456
- package/lib/radio-group.js +0 -412
- package/lib/radio.js +0 -482
- package/lib/rate.js +0 -1278
- package/lib/result.js +0 -528
- package/lib/row.js +0 -149
- package/lib/scrollbar.js +0 -1108
- package/lib/select.js +0 -6134
- package/lib/selectDisplayInput.js +0 -355
- package/lib/skeleton-item.js +0 -322
- package/lib/skeleton.js +0 -345
- package/lib/slider.js +0 -5231
- package/lib/spinner.js +0 -293
- package/lib/statistic.js +0 -9999
- package/lib/step.js +0 -476
- package/lib/steps.js +0 -745
- package/lib/subTitle.js +0 -284
- package/lib/submenu.js +0 -3021
- package/lib/switch.js +0 -970
- package/lib/tab-pane.js +0 -318
- package/lib/tabDialog.js +0 -2264
- package/lib/table-column.js +0 -1800
- package/lib/table.js +0 -8803
- package/lib/tabs.js +0 -1329
- package/lib/tag.js +0 -304
- package/lib/theme-chalk/README.md +0 -33
- package/lib/theme-chalk/element.css +0 -1
- package/lib/theme-chalk/fileUpload.css +0 -1
- package/lib/theme-chalk/gulpfile.js +0 -27
- package/lib/theme-chalk/package.json +0 -35
- package/lib/theme-chalk/selectDisplayInput.css +0 -1
- package/lib/theme-chalk/src/alert.scss +0 -147
- package/lib/theme-chalk/src/aside.scss +0 -7
- package/lib/theme-chalk/src/autocomplete.scss +0 -80
- package/lib/theme-chalk/src/avatar.scss +0 -51
- package/lib/theme-chalk/src/backtop.scss +0 -22
- package/lib/theme-chalk/src/badge.scss +0 -57
- package/lib/theme-chalk/src/base.scss +0 -2
- package/lib/theme-chalk/src/breadcrumb.scss +0 -55
- package/lib/theme-chalk/src/button.scss +0 -262
- package/lib/theme-chalk/src/calendar.scss +0 -79
- package/lib/theme-chalk/src/card.scss +0 -32
- package/lib/theme-chalk/src/carousel-item.scss +0 -50
- package/lib/theme-chalk/src/carousel.scss +0 -161
- package/lib/theme-chalk/src/cascader-panel.scss +0 -120
- package/lib/theme-chalk/src/cascader.scss +0 -182
- package/lib/theme-chalk/src/checkbox.scss +0 -359
- package/lib/theme-chalk/src/col.scss +0 -156
- package/lib/theme-chalk/src/collapse.scss +0 -63
- package/lib/theme-chalk/src/color-picker.scss +0 -384
- package/lib/theme-chalk/src/common/popup.scss +0 -42
- package/lib/theme-chalk/src/common/transition.scss +0 -99
- package/lib/theme-chalk/src/common/var.scss +0 -1028
- package/lib/theme-chalk/src/container.scss +0 -14
- package/lib/theme-chalk/src/date-picker/date-picker.scss +0 -97
- package/lib/theme-chalk/src/date-picker/date-range-picker.scss +0 -101
- package/lib/theme-chalk/src/date-picker/date-table.scss +0 -151
- package/lib/theme-chalk/src/date-picker/month-table.scss +0 -82
- package/lib/theme-chalk/src/date-picker/picker-panel.scss +0 -117
- package/lib/theme-chalk/src/date-picker/picker.scss +0 -197
- package/lib/theme-chalk/src/date-picker/time-picker.scss +0 -85
- package/lib/theme-chalk/src/date-picker/time-range-picker.scss +0 -31
- package/lib/theme-chalk/src/date-picker/time-spinner.scss +0 -110
- package/lib/theme-chalk/src/date-picker/year-table.scss +0 -51
- package/lib/theme-chalk/src/date-picker.scss +0 -12
- package/lib/theme-chalk/src/descriptions-item.scss +0 -42
- package/lib/theme-chalk/src/descriptions.scss +0 -111
- package/lib/theme-chalk/src/dialog.scss +0 -123
- package/lib/theme-chalk/src/display.scss +0 -12
- package/lib/theme-chalk/src/divider.scss +0 -47
- package/lib/theme-chalk/src/drawer.scss +0 -219
- package/lib/theme-chalk/src/dropdown.scss +0 -182
- package/lib/theme-chalk/src/empty.scss +0 -45
- package/lib/theme-chalk/src/fonts/element-icons.ttf +0 -0
- package/lib/theme-chalk/src/fonts/element-icons.woff +0 -0
- package/lib/theme-chalk/src/footer.scss +0 -8
- package/lib/theme-chalk/src/form.scss +0 -167
- package/lib/theme-chalk/src/header.scss +0 -8
- package/lib/theme-chalk/src/icon.scss +0 -1167
- package/lib/theme-chalk/src/image.scss +0 -179
- package/lib/theme-chalk/src/index.scss +0 -87
- package/lib/theme-chalk/src/input-number.scss +0 -180
- package/lib/theme-chalk/src/input.scss +0 -360
- package/lib/theme-chalk/src/link.scss +0 -81
- package/lib/theme-chalk/src/loading.scss +0 -96
- package/lib/theme-chalk/src/main.scss +0 -12
- package/lib/theme-chalk/src/menu.scss +0 -289
- package/lib/theme-chalk/src/message-box.scss +0 -226
- package/lib/theme-chalk/src/message.scss +0 -120
- package/lib/theme-chalk/src/mixins/_button.scss +0 -81
- package/lib/theme-chalk/src/mixins/config.scss +0 -4
- package/lib/theme-chalk/src/mixins/function.scss +0 -44
- package/lib/theme-chalk/src/mixins/mixins.scss +0 -196
- package/lib/theme-chalk/src/mixins/utils.scss +0 -39
- package/lib/theme-chalk/src/notification.scss +0 -99
- package/lib/theme-chalk/src/option-group.scss +0 -42
- package/lib/theme-chalk/src/option.scss +0 -36
- package/lib/theme-chalk/src/page-header.scss +0 -41
- package/lib/theme-chalk/src/pagination.scss +0 -295
- package/lib/theme-chalk/src/popconfirm.scss +0 -16
- package/lib/theme-chalk/src/popover.scss +0 -40
- package/lib/theme-chalk/src/popper.scss +0 -101
- package/lib/theme-chalk/src/progress.scss +0 -141
- package/lib/theme-chalk/src/radio-button.scss +0 -113
- package/lib/theme-chalk/src/radio-group.scss +0 -9
- package/lib/theme-chalk/src/radio.scss +0 -199
- package/lib/theme-chalk/src/rate.scss +0 -49
- package/lib/theme-chalk/src/reset.scss +0 -79
- package/lib/theme-chalk/src/result.scss +0 -61
- package/lib/theme-chalk/src/row.scss +0 -43
- package/lib/theme-chalk/src/scrollbar.scss +0 -72
- package/lib/theme-chalk/src/select-dropdown.scss +0 -62
- package/lib/theme-chalk/src/select.scss +0 -152
- package/lib/theme-chalk/src/skeleton-item.scss +0 -84
- package/lib/theme-chalk/src/skeleton.scss +0 -40
- package/lib/theme-chalk/src/slider.scss +0 -250
- package/lib/theme-chalk/src/spinner.scss +0 -44
- package/lib/theme-chalk/src/statistic.scss +0 -38
- package/lib/theme-chalk/src/step.scss +0 -317
- package/lib/theme-chalk/src/steps.scss +0 -20
- package/lib/theme-chalk/src/switch.scss +0 -116
- package/lib/theme-chalk/src/table-column.scss +0 -97
- package/lib/theme-chalk/src/table.scss +0 -564
- package/lib/theme-chalk/src/tabs.scss +0 -602
- package/lib/theme-chalk/src/tag.scss +0 -163
- package/lib/theme-chalk/src/time-picker.scss +0 -8
- package/lib/theme-chalk/src/time-select.scss +0 -37
- package/lib/theme-chalk/src/timeline-item.scss +0 -86
- package/lib/theme-chalk/src/timeline.scss +0 -14
- package/lib/theme-chalk/src/tooltip.scss +0 -141
- package/lib/theme-chalk/src/transfer.scss +0 -227
- package/lib/theme-chalk/src/tree.scss +0 -123
- package/lib/theme-chalk/src/upload.scss +0 -603
- package/lib/theme-chalk/subTitle.css +0 -1
- package/lib/theme-chalk/tabDialog.css +0 -1
- package/lib/theme-chalk/treeSelect.css +0 -1
- package/lib/theme-cy/base.css +0 -1
- package/lib/theme-cy/element.css +0 -1
- package/lib/theme-cy/fileUpload.css +0 -1
- package/lib/theme-cy/index.css +0 -1
- package/lib/theme-cy/selectDisplayInput.css +0 -1
- package/lib/theme-cy/subTitle.css +0 -1
- package/lib/theme-cy/tabDialog.css +0 -1
- package/lib/theme-cy/treeSelect.css +0 -1
- package/lib/time-picker.js +0 -6881
- package/lib/time-select.js +0 -5892
- package/lib/timeline-item.js +0 -329
- package/lib/timeline.js +0 -275
- package/lib/tooltip.js +0 -2950
- package/lib/transfer.js +0 -2998
- package/lib/transitions/collapse-transition.js +0 -91
- package/lib/tree.js +0 -3470
- package/lib/treeSelect.js +0 -4058
- 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 -2337
- 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/fileUpload/index.js +0 -8
- package/packages/fileUpload/src/main.vue +0 -430
- package/packages/selectDisplayInput/index.js +0 -8
- package/packages/selectDisplayInput/src/main.vue +0 -75
- package/packages/subTitle/index.js +0 -8
- package/packages/subTitle/src/main.vue +0 -33
- package/packages/tabDialog/index.js +0 -23
- package/packages/tabDialog/src/dialog/drag.js +0 -63
- package/packages/tabDialog/src/dialog/dragHeight.js +0 -34
- package/packages/tabDialog/src/dialog/dragWidth.js +0 -30
- package/packages/tabDialog/src/main.vue +0 -277
- package/packages/theme-cy/README.md +0 -38
- package/packages/theme-cy/gulpfile.js +0 -27
- package/packages/theme-cy/package.json +0 -35
- package/packages/theme-cy/src/base.scss +0 -3
- package/packages/theme-cy/src/element.scss +0 -45
- package/packages/theme-cy/src/fileUpload.scss +0 -30
- package/packages/theme-cy/src/index.scss +0 -7
- package/packages/theme-cy/src/selectDisplayInput.scss +0 -76
- package/packages/theme-cy/src/subTitle.scss +0 -26
- package/packages/theme-cy/src/tabDialog.scss +0 -43
- package/packages/theme-cy/src/treeSelect.scss +0 -98
- package/packages/treeSelect/index.js +0 -8
- package/packages/treeSelect/src/main.vue +0 -325
- package/src/locale/lang/af-ZA.js +0 -123
- package/src/locale/lang/ar.js +0 -122
- package/src/locale/lang/az.js +0 -126
- package/src/locale/lang/bg.js +0 -123
- package/src/locale/lang/bn.js +0 -126
- package/src/locale/lang/ca.js +0 -122
- package/src/locale/lang/cs-CZ.js +0 -125
- package/src/locale/lang/da.js +0 -122
- package/src/locale/lang/de.js +0 -124
- package/src/locale/lang/ee.js +0 -123
- package/src/locale/lang/el.js +0 -123
- package/src/locale/lang/eo.js +0 -123
- package/src/locale/lang/es.js +0 -122
- package/src/locale/lang/eu.js +0 -123
- package/src/locale/lang/fa.js +0 -123
- package/src/locale/lang/fi.js +0 -123
- package/src/locale/lang/fr.js +0 -122
- package/src/locale/lang/he.js +0 -123
- package/src/locale/lang/hr.js +0 -123
- package/src/locale/lang/hu.js +0 -122
- package/src/locale/lang/hy-AM.js +0 -123
- package/src/locale/lang/id.js +0 -123
- package/src/locale/lang/is.js +0 -124
- package/src/locale/lang/it.js +0 -122
- package/src/locale/lang/ja.js +0 -123
- package/src/locale/lang/kg.js +0 -123
- package/src/locale/lang/km.js +0 -123
- package/src/locale/lang/ko.js +0 -123
- package/src/locale/lang/ku.js +0 -123
- package/src/locale/lang/kz.js +0 -123
- package/src/locale/lang/lo-LA.js +0 -126
- package/src/locale/lang/lt.js +0 -123
- package/src/locale/lang/lv.js +0 -123
- package/src/locale/lang/mn.js +0 -123
- package/src/locale/lang/ms.js +0 -122
- package/src/locale/lang/nb-NO.js +0 -122
- package/src/locale/lang/nl.js +0 -123
- package/src/locale/lang/pl.js +0 -123
- package/src/locale/lang/pt-br.js +0 -123
- package/src/locale/lang/pt.js +0 -123
- package/src/locale/lang/ro.js +0 -123
- package/src/locale/lang/ru-RU.js +0 -123
- package/src/locale/lang/si.js +0 -123
- package/src/locale/lang/sk.js +0 -125
- package/src/locale/lang/sl.js +0 -123
- package/src/locale/lang/sr-Latn.js +0 -123
- package/src/locale/lang/sr.js +0 -123
- package/src/locale/lang/sv-SE.js +0 -123
- package/src/locale/lang/sw.js +0 -123
- package/src/locale/lang/ta.js +0 -122
- package/src/locale/lang/th.js +0 -123
- package/src/locale/lang/tk.js +0 -123
- package/src/locale/lang/tr-TR.js +0 -123
- package/src/locale/lang/ua.js +0 -123
- package/src/locale/lang/ug-CN.js +0 -123
- package/src/locale/lang/uz-UZ.js +0 -123
- package/src/locale/lang/vi.js +0 -123
- package/types/fileUpload.d.ts +0 -5
- package/types/selectDisplayInput.d.ts +0 -5
- package/types/subTitle.d.ts +0 -5
- package/types/tabDialog.d.ts +0 -5
- package/types/treeSelect.d.ts +0 -5
- /package/lib/theme-chalk/{src/breadcrumb-item.scss → breadcrumb-item.css} +0 -0
- /package/lib/theme-chalk/{src/button-group.scss → button-group.css} +0 -0
- /package/lib/theme-chalk/{src/checkbox-button.scss → checkbox-button.css} +0 -0
- /package/lib/theme-chalk/{src/checkbox-group.scss → checkbox-group.css} +0 -0
- /package/lib/theme-chalk/{src/collapse-item.scss → collapse-item.css} +0 -0
- /package/lib/theme-chalk/{src/dropdown-item.scss → dropdown-item.css} +0 -0
- /package/lib/theme-chalk/{src/dropdown-menu.scss → dropdown-menu.css} +0 -0
- /package/lib/theme-chalk/{src/form-item.scss → form-item.css} +0 -0
- /package/lib/theme-chalk/{src/infinite-scroll.scss → infinite-scroll.css} +0 -0
- /package/lib/theme-chalk/{src/infiniteScroll.scss → infiniteScroll.css} +0 -0
- /package/lib/theme-chalk/{src/menu-item-group.scss → menu-item-group.css} +0 -0
- /package/lib/theme-chalk/{src/menu-item.scss → menu-item.css} +0 -0
- /package/lib/theme-chalk/{src/submenu.scss → submenu.css} +0 -0
- /package/lib/theme-chalk/{src/tab-pane.scss → tab-pane.css} +0 -0
package/lib/fileUpload.js
DELETED
|
@@ -1,3276 +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 = 125);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ({
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, exports) {
|
|
92
|
-
|
|
93
|
-
module.exports = require("vue");
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ 11:
|
|
98
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
|
-
|
|
100
|
-
"use strict";
|
|
101
|
-
|
|
102
|
-
// EXPORTS
|
|
103
|
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
|
|
104
|
-
|
|
105
|
-
// UNUSED EXPORTS: use, i18n
|
|
106
|
-
|
|
107
|
-
// CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
|
|
108
|
-
/* harmony default export */ var zh_CN = ({
|
|
109
|
-
el: {
|
|
110
|
-
colorpicker: {
|
|
111
|
-
confirm: '确定',
|
|
112
|
-
clear: '清空'
|
|
113
|
-
},
|
|
114
|
-
datepicker: {
|
|
115
|
-
now: '此刻',
|
|
116
|
-
today: '今天',
|
|
117
|
-
cancel: '取消',
|
|
118
|
-
clear: '清空',
|
|
119
|
-
confirm: '确定',
|
|
120
|
-
selectDate: '选择日期',
|
|
121
|
-
selectTime: '选择时间',
|
|
122
|
-
startDate: '开始日期',
|
|
123
|
-
startTime: '开始时间',
|
|
124
|
-
endDate: '结束日期',
|
|
125
|
-
endTime: '结束时间',
|
|
126
|
-
prevYear: '前一年',
|
|
127
|
-
nextYear: '后一年',
|
|
128
|
-
prevMonth: '上个月',
|
|
129
|
-
nextMonth: '下个月',
|
|
130
|
-
year: '年',
|
|
131
|
-
month1: '1 月',
|
|
132
|
-
month2: '2 月',
|
|
133
|
-
month3: '3 月',
|
|
134
|
-
month4: '4 月',
|
|
135
|
-
month5: '5 月',
|
|
136
|
-
month6: '6 月',
|
|
137
|
-
month7: '7 月',
|
|
138
|
-
month8: '8 月',
|
|
139
|
-
month9: '9 月',
|
|
140
|
-
month10: '10 月',
|
|
141
|
-
month11: '11 月',
|
|
142
|
-
month12: '12 月',
|
|
143
|
-
// week: '周次',
|
|
144
|
-
weeks: {
|
|
145
|
-
sun: '日',
|
|
146
|
-
mon: '一',
|
|
147
|
-
tue: '二',
|
|
148
|
-
wed: '三',
|
|
149
|
-
thu: '四',
|
|
150
|
-
fri: '五',
|
|
151
|
-
sat: '六'
|
|
152
|
-
},
|
|
153
|
-
months: {
|
|
154
|
-
jan: '一月',
|
|
155
|
-
feb: '二月',
|
|
156
|
-
mar: '三月',
|
|
157
|
-
apr: '四月',
|
|
158
|
-
may: '五月',
|
|
159
|
-
jun: '六月',
|
|
160
|
-
jul: '七月',
|
|
161
|
-
aug: '八月',
|
|
162
|
-
sep: '九月',
|
|
163
|
-
oct: '十月',
|
|
164
|
-
nov: '十一月',
|
|
165
|
-
dec: '十二月'
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
select: {
|
|
169
|
-
loading: '加载中',
|
|
170
|
-
noMatch: '无匹配数据',
|
|
171
|
-
noData: '无数据',
|
|
172
|
-
placeholder: '请选择'
|
|
173
|
-
},
|
|
174
|
-
cascader: {
|
|
175
|
-
noMatch: '无匹配数据',
|
|
176
|
-
loading: '加载中',
|
|
177
|
-
placeholder: '请选择',
|
|
178
|
-
noData: '暂无数据'
|
|
179
|
-
},
|
|
180
|
-
pagination: {
|
|
181
|
-
goto: '前往',
|
|
182
|
-
pagesize: '条/页',
|
|
183
|
-
total: '共 {total} 条',
|
|
184
|
-
pageClassifier: '页'
|
|
185
|
-
},
|
|
186
|
-
messagebox: {
|
|
187
|
-
title: '提示',
|
|
188
|
-
confirm: '确定',
|
|
189
|
-
cancel: '取消',
|
|
190
|
-
error: '输入的数据不合法!'
|
|
191
|
-
},
|
|
192
|
-
upload: {
|
|
193
|
-
deleteTip: '按 delete 键可删除',
|
|
194
|
-
delete: '删除',
|
|
195
|
-
preview: '查看图片',
|
|
196
|
-
continue: '继续上传'
|
|
197
|
-
},
|
|
198
|
-
table: {
|
|
199
|
-
emptyText: '暂无数据',
|
|
200
|
-
confirmFilter: '筛选',
|
|
201
|
-
resetFilter: '重置',
|
|
202
|
-
clearFilter: '全部',
|
|
203
|
-
sumText: '合计'
|
|
204
|
-
},
|
|
205
|
-
tree: {
|
|
206
|
-
emptyText: '暂无数据'
|
|
207
|
-
},
|
|
208
|
-
transfer: {
|
|
209
|
-
noMatch: '无匹配数据',
|
|
210
|
-
noData: '无数据',
|
|
211
|
-
titles: ['列表 1', '列表 2'],
|
|
212
|
-
filterPlaceholder: '请输入搜索内容',
|
|
213
|
-
noCheckedFormat: '共 {total} 项',
|
|
214
|
-
hasCheckedFormat: '已选 {checked}/{total} 项'
|
|
215
|
-
},
|
|
216
|
-
image: {
|
|
217
|
-
error: '加载失败'
|
|
218
|
-
},
|
|
219
|
-
pageHeader: {
|
|
220
|
-
title: '返回'
|
|
221
|
-
},
|
|
222
|
-
popconfirm: {
|
|
223
|
-
confirmButtonText: '确定',
|
|
224
|
-
cancelButtonText: '取消'
|
|
225
|
-
},
|
|
226
|
-
empty: {
|
|
227
|
-
description: '暂无数据'
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
// EXTERNAL MODULE: external "vue"
|
|
232
|
-
var external_vue_ = __webpack_require__(0);
|
|
233
|
-
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
234
|
-
|
|
235
|
-
// EXTERNAL MODULE: external "deepmerge"
|
|
236
|
-
var external_deepmerge_ = __webpack_require__(15);
|
|
237
|
-
var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
|
|
238
|
-
|
|
239
|
-
// EXTERNAL MODULE: ./src/utils/util.js
|
|
240
|
-
var util = __webpack_require__(3);
|
|
241
|
-
|
|
242
|
-
// CONCATENATED MODULE: ./src/locale/format.js
|
|
243
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
|
248
|
-
/**
|
|
249
|
-
* String format template
|
|
250
|
-
* - Inspired:
|
|
251
|
-
* https://github.com/Matt-Esch/string-template/index.js
|
|
252
|
-
*/
|
|
253
|
-
/* harmony default export */ var format = (function (Vue) {
|
|
254
|
-
/**
|
|
255
|
-
* template
|
|
256
|
-
*
|
|
257
|
-
* @param {String} string
|
|
258
|
-
* @param {Array} ...args
|
|
259
|
-
* @return {String}
|
|
260
|
-
*/
|
|
261
|
-
|
|
262
|
-
function template(string) {
|
|
263
|
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
264
|
-
args[_key - 1] = arguments[_key];
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (args.length === 1 && _typeof(args[0]) === 'object') {
|
|
268
|
-
args = args[0];
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
if (!args || !args.hasOwnProperty) {
|
|
272
|
-
args = {};
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
return string.replace(RE_NARGS, function (match, prefix, i, index) {
|
|
276
|
-
var result = void 0;
|
|
277
|
-
|
|
278
|
-
if (string[index - 1] === '{' && string[index + match.length] === '}') {
|
|
279
|
-
return i;
|
|
280
|
-
} else {
|
|
281
|
-
result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
|
|
282
|
-
if (result === null || result === undefined) {
|
|
283
|
-
return '';
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
return result;
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
return template;
|
|
292
|
-
});
|
|
293
|
-
// CONCATENATED MODULE: ./src/locale/index.js
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
var locale_format = format(external_vue_default.a);
|
|
300
|
-
var lang = zh_CN;
|
|
301
|
-
var merged = false;
|
|
302
|
-
var locale_i18nHandler = function i18nHandler() {
|
|
303
|
-
var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
|
|
304
|
-
if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
|
|
305
|
-
if (!merged) {
|
|
306
|
-
merged = true;
|
|
307
|
-
external_vue_default.a.locale(external_vue_default.a.config.lang, external_deepmerge_default()(lang, external_vue_default.a.locale(external_vue_default.a.config.lang) || {}, { clone: true }));
|
|
308
|
-
}
|
|
309
|
-
return vuei18n.apply(this, arguments);
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
var t = function t(path, options) {
|
|
314
|
-
var value = locale_i18nHandler.apply(this, arguments);
|
|
315
|
-
if (value !== null && value !== undefined) return value;
|
|
316
|
-
|
|
317
|
-
var array = path.split('.');
|
|
318
|
-
var current = lang;
|
|
319
|
-
|
|
320
|
-
for (var i = 0, j = array.length; i < j; i++) {
|
|
321
|
-
var property = array[i];
|
|
322
|
-
value = current[property];
|
|
323
|
-
if (i === j - 1) return locale_format(value, options);
|
|
324
|
-
if (!value) return '';
|
|
325
|
-
current = value;
|
|
326
|
-
}
|
|
327
|
-
return '';
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
var use = function use(l) {
|
|
331
|
-
lang = l || lang;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
var i18n = function i18n(fn) {
|
|
335
|
-
locale_i18nHandler = fn || locale_i18nHandler;
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
/* harmony default export */ var locale = ({ use: use, t: t, i18n: i18n });
|
|
339
|
-
|
|
340
|
-
/***/ }),
|
|
341
|
-
|
|
342
|
-
/***/ 12:
|
|
343
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
344
|
-
|
|
345
|
-
"use strict";
|
|
346
|
-
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Show migrating guide in browser console.
|
|
350
|
-
*
|
|
351
|
-
* Usage:
|
|
352
|
-
* import Migrating from 'src/mixins/migrating';
|
|
353
|
-
*
|
|
354
|
-
* mixins: [Migrating]
|
|
355
|
-
*
|
|
356
|
-
* add getMigratingConfig method for your component.
|
|
357
|
-
* getMigratingConfig() {
|
|
358
|
-
* return {
|
|
359
|
-
* props: {
|
|
360
|
-
* 'allow-no-selection': 'allow-no-selection is removed.',
|
|
361
|
-
* 'selection-mode': 'selection-mode is removed.'
|
|
362
|
-
* },
|
|
363
|
-
* events: {
|
|
364
|
-
* selectionchange: 'selectionchange is renamed to selection-change.'
|
|
365
|
-
* }
|
|
366
|
-
* };
|
|
367
|
-
* },
|
|
368
|
-
*/
|
|
369
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
370
|
-
mounted: function mounted() {
|
|
371
|
-
if (true) return;
|
|
372
|
-
if (!this.$vnode) return;
|
|
373
|
-
|
|
374
|
-
var _getMigratingConfig = this.getMigratingConfig(),
|
|
375
|
-
_getMigratingConfig$p = _getMigratingConfig.props,
|
|
376
|
-
props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
|
|
377
|
-
_getMigratingConfig$e = _getMigratingConfig.events,
|
|
378
|
-
events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
|
|
379
|
-
|
|
380
|
-
var _$vnode = this.$vnode,
|
|
381
|
-
data = _$vnode.data,
|
|
382
|
-
componentOptions = _$vnode.componentOptions;
|
|
383
|
-
|
|
384
|
-
var definedProps = data.attrs || {};
|
|
385
|
-
var definedEvents = componentOptions.listeners || {};
|
|
386
|
-
|
|
387
|
-
for (var propName in definedProps) {
|
|
388
|
-
propName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(propName); // compatible with camel case
|
|
389
|
-
if (props[propName]) {
|
|
390
|
-
console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
for (var eventName in definedEvents) {
|
|
395
|
-
eventName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(eventName); // compatible with camel case
|
|
396
|
-
if (events[eventName]) {
|
|
397
|
-
console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
methods: {
|
|
403
|
-
getMigratingConfig: function getMigratingConfig() {
|
|
404
|
-
return {
|
|
405
|
-
props: {},
|
|
406
|
-
events: {}
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
|
|
412
|
-
/***/ }),
|
|
413
|
-
|
|
414
|
-
/***/ 125:
|
|
415
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
416
|
-
|
|
417
|
-
"use strict";
|
|
418
|
-
// ESM COMPAT FLAG
|
|
419
|
-
__webpack_require__.r(__webpack_exports__);
|
|
420
|
-
|
|
421
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/fileUpload/src/main.vue?vue&type=template&id=01972aec
|
|
422
|
-
var render = function render() {
|
|
423
|
-
var _vm = this,
|
|
424
|
-
_c = _vm._self._c
|
|
425
|
-
return _c(
|
|
426
|
-
"div",
|
|
427
|
-
{ staticClass: "cy-file-upload" },
|
|
428
|
-
[
|
|
429
|
-
_c(
|
|
430
|
-
"div",
|
|
431
|
-
{ staticClass: "cy-file-upload-btn-box" },
|
|
432
|
-
[
|
|
433
|
-
_vm.showImportTemplate
|
|
434
|
-
? [
|
|
435
|
-
_c(
|
|
436
|
-
"el-button",
|
|
437
|
-
{
|
|
438
|
-
staticClass: "cy-file-upload-uploader",
|
|
439
|
-
staticStyle: { "margin-right": "10px" },
|
|
440
|
-
attrs: { size: "mini", type: "success", size: _vm.btnSize },
|
|
441
|
-
on: { click: _vm.importTemplate },
|
|
442
|
-
},
|
|
443
|
-
[_vm._v("下载模板")]
|
|
444
|
-
),
|
|
445
|
-
]
|
|
446
|
-
: _vm._e(),
|
|
447
|
-
!_vm.disabled
|
|
448
|
-
? _c(
|
|
449
|
-
"el-upload",
|
|
450
|
-
{
|
|
451
|
-
ref: "upload",
|
|
452
|
-
staticClass: "cy-file-upload-uploader",
|
|
453
|
-
attrs: {
|
|
454
|
-
action: _vm.baseUrl + _vm.uploadFileUrl,
|
|
455
|
-
"before-upload": _vm.handleBeforeUpload,
|
|
456
|
-
data: _vm.data,
|
|
457
|
-
name: _vm.name,
|
|
458
|
-
"file-list": _vm.fileList,
|
|
459
|
-
limit: _vm.limit,
|
|
460
|
-
accept: _vm.fileAccept,
|
|
461
|
-
"on-error": _vm.handleUploadError,
|
|
462
|
-
"on-exceed": _vm.handleExceed,
|
|
463
|
-
"on-success": _vm.handleUploadSuccess,
|
|
464
|
-
"show-file-list": false,
|
|
465
|
-
headers: _vm.headers,
|
|
466
|
-
},
|
|
467
|
-
},
|
|
468
|
-
[
|
|
469
|
-
_c(
|
|
470
|
-
"el-button",
|
|
471
|
-
{
|
|
472
|
-
attrs: {
|
|
473
|
-
size: _vm.btnSize,
|
|
474
|
-
type: _vm.btnColor,
|
|
475
|
-
loading: _vm.downloadLoading,
|
|
476
|
-
icon: _vm.btnIcon,
|
|
477
|
-
plain: _vm.btnPlain,
|
|
478
|
-
},
|
|
479
|
-
},
|
|
480
|
-
[_vm._v(_vm._s(_vm.btnText))]
|
|
481
|
-
),
|
|
482
|
-
],
|
|
483
|
-
1
|
|
484
|
-
)
|
|
485
|
-
: _vm._e(),
|
|
486
|
-
],
|
|
487
|
-
2
|
|
488
|
-
),
|
|
489
|
-
_vm.showTip && !_vm.onlyBtn && !_vm.disabled
|
|
490
|
-
? _c(
|
|
491
|
-
"div",
|
|
492
|
-
{
|
|
493
|
-
staticClass: "el-upload__tip",
|
|
494
|
-
attrs: { slot: "tip" },
|
|
495
|
-
slot: "tip",
|
|
496
|
-
},
|
|
497
|
-
[
|
|
498
|
-
_vm._v("\n\t\t请上传\n\t\t"),
|
|
499
|
-
_vm.fileSize
|
|
500
|
-
? [
|
|
501
|
-
_vm._v(" 大小不超过 "),
|
|
502
|
-
_c("b", { staticStyle: { color: "#f56c6c" } }, [
|
|
503
|
-
_vm._v(_vm._s(_vm.fileSize) + "MB"),
|
|
504
|
-
]),
|
|
505
|
-
]
|
|
506
|
-
: _vm._e(),
|
|
507
|
-
_vm.fileType && !_vm.fileType.includes("*")
|
|
508
|
-
? [
|
|
509
|
-
_vm._v(" 格式为 "),
|
|
510
|
-
_c("b", { staticStyle: { color: "#f56c6c" } }, [
|
|
511
|
-
_vm._v(_vm._s(_vm.fileType.join("/"))),
|
|
512
|
-
]),
|
|
513
|
-
]
|
|
514
|
-
: _vm._e(),
|
|
515
|
-
_vm._v("\n\t\t的文件\n\t"),
|
|
516
|
-
],
|
|
517
|
-
2
|
|
518
|
-
)
|
|
519
|
-
: _vm._e(),
|
|
520
|
-
!_vm.onlyBtn
|
|
521
|
-
? [
|
|
522
|
-
!_vm.isThumbnail
|
|
523
|
-
? _c(
|
|
524
|
-
"ul",
|
|
525
|
-
{
|
|
526
|
-
staticClass:
|
|
527
|
-
"cy-file-upload-list el-upload-list el-upload-list--text",
|
|
528
|
-
},
|
|
529
|
-
_vm._l(_vm.fileList, function (file, index) {
|
|
530
|
-
return _c(
|
|
531
|
-
"li",
|
|
532
|
-
{
|
|
533
|
-
key: file.id,
|
|
534
|
-
staticClass:
|
|
535
|
-
"el-upload-list__item ele-upload-list__item-content",
|
|
536
|
-
},
|
|
537
|
-
[
|
|
538
|
-
_c(
|
|
539
|
-
"el-link",
|
|
540
|
-
{
|
|
541
|
-
staticClass: "link_icon",
|
|
542
|
-
attrs: { underline: false },
|
|
543
|
-
nativeOn: {
|
|
544
|
-
click: function ($event) {
|
|
545
|
-
return _vm.downloadAttach(file)
|
|
546
|
-
},
|
|
547
|
-
},
|
|
548
|
-
},
|
|
549
|
-
[
|
|
550
|
-
_c("span", { staticClass: "el-icon-document" }, [
|
|
551
|
-
_vm._v(
|
|
552
|
-
" " +
|
|
553
|
-
_vm._s(_vm.getFileName(file.file_name)) +
|
|
554
|
-
" "
|
|
555
|
-
),
|
|
556
|
-
]),
|
|
557
|
-
]
|
|
558
|
-
),
|
|
559
|
-
_c(
|
|
560
|
-
"div",
|
|
561
|
-
{
|
|
562
|
-
staticClass:
|
|
563
|
-
"ele-upload-list__item-content-action flex_shrink",
|
|
564
|
-
},
|
|
565
|
-
[
|
|
566
|
-
_vm.isDownload
|
|
567
|
-
? _c(
|
|
568
|
-
"el-link",
|
|
569
|
-
{
|
|
570
|
-
attrs: {
|
|
571
|
-
underline: false,
|
|
572
|
-
type: "primary",
|
|
573
|
-
},
|
|
574
|
-
on: {
|
|
575
|
-
click: function ($event) {
|
|
576
|
-
return _vm.downloadAttach(file)
|
|
577
|
-
},
|
|
578
|
-
},
|
|
579
|
-
},
|
|
580
|
-
[_vm._v("下载")]
|
|
581
|
-
)
|
|
582
|
-
: _vm._e(),
|
|
583
|
-
_vm.isPreview
|
|
584
|
-
? _c(
|
|
585
|
-
"el-link",
|
|
586
|
-
{
|
|
587
|
-
attrs: {
|
|
588
|
-
underline: false,
|
|
589
|
-
type: "primary",
|
|
590
|
-
},
|
|
591
|
-
on: {
|
|
592
|
-
click: function ($event) {
|
|
593
|
-
return _vm.previewFile(file)
|
|
594
|
-
},
|
|
595
|
-
},
|
|
596
|
-
},
|
|
597
|
-
[_vm._v("预览")]
|
|
598
|
-
)
|
|
599
|
-
: _vm._e(),
|
|
600
|
-
!_vm.disabled
|
|
601
|
-
? _c(
|
|
602
|
-
"el-link",
|
|
603
|
-
{
|
|
604
|
-
attrs: { underline: false, type: "danger" },
|
|
605
|
-
on: {
|
|
606
|
-
click: function ($event) {
|
|
607
|
-
return _vm.handleDelete(index)
|
|
608
|
-
},
|
|
609
|
-
},
|
|
610
|
-
},
|
|
611
|
-
[_vm._v("删除")]
|
|
612
|
-
)
|
|
613
|
-
: _vm._e(),
|
|
614
|
-
],
|
|
615
|
-
1
|
|
616
|
-
),
|
|
617
|
-
],
|
|
618
|
-
1
|
|
619
|
-
)
|
|
620
|
-
}),
|
|
621
|
-
0
|
|
622
|
-
)
|
|
623
|
-
: _vm._e(),
|
|
624
|
-
]
|
|
625
|
-
: _vm._e(),
|
|
626
|
-
],
|
|
627
|
-
2
|
|
628
|
-
)
|
|
629
|
-
}
|
|
630
|
-
var staticRenderFns = []
|
|
631
|
-
render._withStripped = true
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
// CONCATENATED MODULE: ./packages/fileUpload/src/main.vue?vue&type=template&id=01972aec
|
|
635
|
-
|
|
636
|
-
// EXTERNAL MODULE: ./packages/upload/index.js + 17 modules
|
|
637
|
-
var upload = __webpack_require__(50);
|
|
638
|
-
|
|
639
|
-
// EXTERNAL MODULE: ./packages/link/index.js + 5 modules
|
|
640
|
-
var packages_link = __webpack_require__(55);
|
|
641
|
-
|
|
642
|
-
// EXTERNAL MODULE: ./packages/button/index.js + 5 modules
|
|
643
|
-
var packages_button = __webpack_require__(27);
|
|
644
|
-
|
|
645
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/fileUpload/src/main.vue?vue&type=script&lang=js
|
|
646
|
-
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
653
|
-
name: 'CyFileUpload',
|
|
654
|
-
component: [upload["default"], packages_link["default"], packages_button["default"]],
|
|
655
|
-
props: {
|
|
656
|
-
// 值
|
|
657
|
-
value: {
|
|
658
|
-
type: [Array, String],
|
|
659
|
-
default: function _default() {
|
|
660
|
-
return [];
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
|
-
// 数量限制
|
|
664
|
-
limit: {
|
|
665
|
-
type: Number,
|
|
666
|
-
default: 1000
|
|
667
|
-
},
|
|
668
|
-
// 大小限制(MB)
|
|
669
|
-
fileSize: {
|
|
670
|
-
type: Number,
|
|
671
|
-
default: 1000
|
|
672
|
-
},
|
|
673
|
-
// 文件类型, ['*']不限制文件类型, 例如['png', 'jpg', 'jpeg']
|
|
674
|
-
fileType: {
|
|
675
|
-
type: Array,
|
|
676
|
-
default: function _default() {
|
|
677
|
-
return ['jpg', 'jpeg', 'png', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'pdf'];
|
|
678
|
-
}
|
|
679
|
-
},
|
|
680
|
-
// 是否显示提示
|
|
681
|
-
isShowTip: {
|
|
682
|
-
type: Boolean,
|
|
683
|
-
default: true
|
|
684
|
-
},
|
|
685
|
-
// 上传的图片服务器地址
|
|
686
|
-
uploadFileUrl: {
|
|
687
|
-
type: String,
|
|
688
|
-
default: '/system/resource_file/upload_file'
|
|
689
|
-
},
|
|
690
|
-
// 请求参数
|
|
691
|
-
data: {
|
|
692
|
-
type: Object,
|
|
693
|
-
default: function _default() {
|
|
694
|
-
return {};
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
// 上传时的文件字段名
|
|
698
|
-
name: {
|
|
699
|
-
type: String,
|
|
700
|
-
default: 'file'
|
|
701
|
-
},
|
|
702
|
-
disabled: {
|
|
703
|
-
type: Boolean,
|
|
704
|
-
default: false
|
|
705
|
-
},
|
|
706
|
-
// 是否显示预览按钮
|
|
707
|
-
isPreview: {
|
|
708
|
-
type: Boolean,
|
|
709
|
-
default: true
|
|
710
|
-
},
|
|
711
|
-
// 只显示上传按钮
|
|
712
|
-
onlyBtn: {
|
|
713
|
-
type: Boolean,
|
|
714
|
-
default: false
|
|
715
|
-
},
|
|
716
|
-
// 上传按钮 文字
|
|
717
|
-
btnText: {
|
|
718
|
-
type: String,
|
|
719
|
-
default: '选取文件'
|
|
720
|
-
},
|
|
721
|
-
// 上传按钮 大小
|
|
722
|
-
btnSize: {
|
|
723
|
-
type: String,
|
|
724
|
-
default: 'mini'
|
|
725
|
-
},
|
|
726
|
-
// 上传按钮 颜色
|
|
727
|
-
btnColor: {
|
|
728
|
-
type: String,
|
|
729
|
-
default: 'primary'
|
|
730
|
-
},
|
|
731
|
-
// 上传按钮 图标
|
|
732
|
-
btnIcon: {
|
|
733
|
-
type: String,
|
|
734
|
-
default: ''
|
|
735
|
-
},
|
|
736
|
-
// 上传按钮 是否为朴素按钮
|
|
737
|
-
btnPlain: {
|
|
738
|
-
type: Boolean,
|
|
739
|
-
default: false
|
|
740
|
-
},
|
|
741
|
-
// 是否显示上传成功提示
|
|
742
|
-
isSuccessMsg: {
|
|
743
|
-
type: Boolean,
|
|
744
|
-
default: true
|
|
745
|
-
},
|
|
746
|
-
// 是否显示下载模板按钮
|
|
747
|
-
showImportTemplate: {
|
|
748
|
-
type: Boolean,
|
|
749
|
-
default: false
|
|
750
|
-
},
|
|
751
|
-
// 下载模板地址
|
|
752
|
-
importTemplateName: {
|
|
753
|
-
type: String,
|
|
754
|
-
default: 'template.xls'
|
|
755
|
-
},
|
|
756
|
-
// 列表是否以缩略图展示
|
|
757
|
-
isThumbnail: {
|
|
758
|
-
type: Boolean,
|
|
759
|
-
default: false
|
|
760
|
-
},
|
|
761
|
-
// 图片预览压缩率0-1,仅isThumbnail为true有效
|
|
762
|
-
imgRatio: {
|
|
763
|
-
type: Number,
|
|
764
|
-
default: 1
|
|
765
|
-
},
|
|
766
|
-
// 是否允许下载
|
|
767
|
-
isDownload: {
|
|
768
|
-
type: Boolean,
|
|
769
|
-
default: true
|
|
770
|
-
},
|
|
771
|
-
// 删除前回调, 必须为Promise
|
|
772
|
-
deleteBefore: {
|
|
773
|
-
type: Function
|
|
774
|
-
},
|
|
775
|
-
|
|
776
|
-
// 服务器转发代理规则,匹配请求路径的前缀
|
|
777
|
-
baseUrl: {
|
|
778
|
-
type: String,
|
|
779
|
-
default: ''
|
|
780
|
-
},
|
|
781
|
-
// 获取token的方法
|
|
782
|
-
getToken: {
|
|
783
|
-
type: Function,
|
|
784
|
-
default: function _default() {
|
|
785
|
-
return '';
|
|
786
|
-
}
|
|
787
|
-
},
|
|
788
|
-
// 下载接口方法,必须返回一个Promise
|
|
789
|
-
fileDownLoad: {
|
|
790
|
-
type: Function,
|
|
791
|
-
default: function _default() {
|
|
792
|
-
return Promise.resolve();
|
|
793
|
-
}
|
|
794
|
-
},
|
|
795
|
-
// 文件预览方法
|
|
796
|
-
getFilePreviewUrl: {
|
|
797
|
-
type: Function,
|
|
798
|
-
default: function _default() {
|
|
799
|
-
return '';
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
},
|
|
803
|
-
data: function data() {
|
|
804
|
-
return {
|
|
805
|
-
fileList: [],
|
|
806
|
-
downloadLoading: false
|
|
807
|
-
};
|
|
808
|
-
},
|
|
809
|
-
|
|
810
|
-
watch: {
|
|
811
|
-
value: {
|
|
812
|
-
handler: function handler(val) {
|
|
813
|
-
if (val) {
|
|
814
|
-
if (typeof val === 'string') {
|
|
815
|
-
this.fileList = [{
|
|
816
|
-
file_name: this.getFileName(val),
|
|
817
|
-
file_path: val,
|
|
818
|
-
id: this.createUUID()
|
|
819
|
-
}];
|
|
820
|
-
} else {
|
|
821
|
-
this.fileList = val.map(function (item) {
|
|
822
|
-
return Object.assign({}, item);
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
} else {
|
|
826
|
-
this.fileList = [];
|
|
827
|
-
return [];
|
|
828
|
-
}
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
deep: true,
|
|
832
|
-
immediate: true
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
computed: {
|
|
836
|
-
// 是否显示提示
|
|
837
|
-
showTip: function showTip() {
|
|
838
|
-
return this.isShowTip && (this.fileType && !this.fileType.includes('*') || this.fileSize);
|
|
839
|
-
},
|
|
840
|
-
fileAccept: function fileAccept() {
|
|
841
|
-
var arr = this.fileType.includes('*') ? [] : this.fileType.map(function (item) {
|
|
842
|
-
return '.' + item;
|
|
843
|
-
});
|
|
844
|
-
return arr.join();
|
|
845
|
-
},
|
|
846
|
-
headers: function headers() {
|
|
847
|
-
return {
|
|
848
|
-
Authorization: 'Bearer ' + this.getToken()
|
|
849
|
-
};
|
|
850
|
-
}
|
|
851
|
-
},
|
|
852
|
-
methods: {
|
|
853
|
-
/**
|
|
854
|
-
* 上传前校检格式和大小
|
|
855
|
-
*/
|
|
856
|
-
handleBeforeUpload: function handleBeforeUpload(file) {
|
|
857
|
-
this.downloadLoading = true;
|
|
858
|
-
// 校检文件类型
|
|
859
|
-
if (this.fileType && !this.fileType.includes('*')) {
|
|
860
|
-
var fileExtension = this.getFileExtension(file.name);
|
|
861
|
-
if (!this.fileType.includes(fileExtension)) {
|
|
862
|
-
this.$message.error('\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E, \u8BF7\u4E0A\u4F20' + this.fileType.join('/') + '\u683C\u5F0F\u6587\u4EF6!');
|
|
863
|
-
this.downloadLoading = false;
|
|
864
|
-
return false;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
// 校检文件大小
|
|
868
|
-
if (this.fileSize) {
|
|
869
|
-
var isLt = file.size / 1024 / 1024 < this.fileSize;
|
|
870
|
-
if (!isLt) {
|
|
871
|
-
this.$message.error('\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ' + this.fileSize + ' MB!');
|
|
872
|
-
this.downloadLoading = false;
|
|
873
|
-
return false;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
return true;
|
|
877
|
-
},
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
/**
|
|
881
|
-
* 文件个数超出
|
|
882
|
-
*/
|
|
883
|
-
handleExceed: function handleExceed() {
|
|
884
|
-
if (this.limit === 1) {
|
|
885
|
-
this.$message.error('只能上传单个文件!');
|
|
886
|
-
} else {
|
|
887
|
-
this.$message.error('\u4E0A\u4F20\u6587\u4EF6\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7 ' + this.limit + ' \u4E2A!');
|
|
888
|
-
}
|
|
889
|
-
this.downloadLoading = false;
|
|
890
|
-
},
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
/**
|
|
894
|
-
* 上传失败
|
|
895
|
-
*/
|
|
896
|
-
handleUploadError: function handleUploadError(err) {
|
|
897
|
-
this.$message.error('上传失败, 请重试');
|
|
898
|
-
this.downloadLoading = false;
|
|
899
|
-
},
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
/**
|
|
903
|
-
* 上传成功回调
|
|
904
|
-
*/
|
|
905
|
-
handleUploadSuccess: function handleUploadSuccess(res, file) {
|
|
906
|
-
if (res.code !== 200) {
|
|
907
|
-
this.$message.error(res.msg);
|
|
908
|
-
} else {
|
|
909
|
-
if (this.isSuccessMsg) this.$message.success('上传成功');
|
|
910
|
-
this.fileList.push(res.data);
|
|
911
|
-
}
|
|
912
|
-
this.downloadLoading = false;
|
|
913
|
-
this.$emit('input', this.fileList);
|
|
914
|
-
},
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* 删除文件
|
|
919
|
-
*/
|
|
920
|
-
handleDelete: function handleDelete(index) {
|
|
921
|
-
var _this = this;
|
|
922
|
-
|
|
923
|
-
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
924
|
-
var res;
|
|
925
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
926
|
-
while (1) {
|
|
927
|
-
switch (_context.prev = _context.next) {
|
|
928
|
-
case 0:
|
|
929
|
-
if (!_this.deleteBefore) {
|
|
930
|
-
_context.next = 13;
|
|
931
|
-
break;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
_context.prev = 1;
|
|
935
|
-
_context.next = 4;
|
|
936
|
-
return _this.deleteBefore(_this.fileList[index], index);
|
|
937
|
-
|
|
938
|
-
case 4:
|
|
939
|
-
res = _context.sent;
|
|
940
|
-
|
|
941
|
-
if (res) {
|
|
942
|
-
_context.next = 7;
|
|
943
|
-
break;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
return _context.abrupt('return');
|
|
947
|
-
|
|
948
|
-
case 7:
|
|
949
|
-
_context.next = 13;
|
|
950
|
-
break;
|
|
951
|
-
|
|
952
|
-
case 9:
|
|
953
|
-
_context.prev = 9;
|
|
954
|
-
_context.t0 = _context['catch'](1);
|
|
955
|
-
|
|
956
|
-
console.log(_context.t0);
|
|
957
|
-
return _context.abrupt('return');
|
|
958
|
-
|
|
959
|
-
case 13:
|
|
960
|
-
_this.fileList.splice(index, 1);
|
|
961
|
-
_this.$emit('input', _this.fileList);
|
|
962
|
-
|
|
963
|
-
case 15:
|
|
964
|
-
case 'end':
|
|
965
|
-
return _context.stop();
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
}, _callee, _this, [[1, 9]]);
|
|
969
|
-
}))();
|
|
970
|
-
},
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
/**
|
|
974
|
-
* 获取文件名称
|
|
975
|
-
*/
|
|
976
|
-
getFileName: function getFileName(name) {
|
|
977
|
-
if (name.lastIndexOf('/') > -1) {
|
|
978
|
-
return name.slice(name.lastIndexOf('/') + 1).toLowerCase();
|
|
979
|
-
} else {
|
|
980
|
-
return name;
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
/**
|
|
986
|
-
* 获取文件类型,后缀
|
|
987
|
-
*/
|
|
988
|
-
getFileExtension: function getFileExtension(name) {
|
|
989
|
-
if (name.lastIndexOf('.') > -1) {
|
|
990
|
-
return name.slice(name.lastIndexOf('.') + 1).toLowerCase();
|
|
991
|
-
}
|
|
992
|
-
return '';
|
|
993
|
-
},
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* 查看 预览
|
|
998
|
-
*/
|
|
999
|
-
previewFile: function previewFile(file) {
|
|
1000
|
-
window.open(this.getFilePreviewUrl(file));
|
|
1001
|
-
},
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* 附件下载
|
|
1006
|
-
* */
|
|
1007
|
-
downloadAttach: function downloadAttach(file) {
|
|
1008
|
-
var _this2 = this;
|
|
1009
|
-
|
|
1010
|
-
if (!this.isDownload) return;
|
|
1011
|
-
|
|
1012
|
-
var id = file.id,
|
|
1013
|
-
file_name = file.file_name,
|
|
1014
|
-
file_type = file.file_type;
|
|
1015
|
-
|
|
1016
|
-
this.downloadLoading = true;
|
|
1017
|
-
this.fileDownLoad(id).then(function (res) {
|
|
1018
|
-
var blob = new Blob([res]);
|
|
1019
|
-
if ('download' in document.createElement('a')) {
|
|
1020
|
-
var link = document.createElement('a');
|
|
1021
|
-
link.download = file_name;
|
|
1022
|
-
link.style.display = 'none';
|
|
1023
|
-
link.href = URL.createObjectURL(blob);
|
|
1024
|
-
document.body.appendChild(link);
|
|
1025
|
-
link.click();
|
|
1026
|
-
URL.revokeObjectURL(link.href);
|
|
1027
|
-
document.body.removeChild(link);
|
|
1028
|
-
} else {
|
|
1029
|
-
navigator.msSaveBlob(blob, file_name);
|
|
1030
|
-
}
|
|
1031
|
-
_this2.downloadLoading = false;
|
|
1032
|
-
}).catch(function (err) {
|
|
1033
|
-
_this2.downloadLoading = false;
|
|
1034
|
-
console.log(err);
|
|
1035
|
-
_this2.$message.error('文件下载失败!');
|
|
1036
|
-
});
|
|
1037
|
-
},
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
/**
|
|
1041
|
-
* 下载模板操作
|
|
1042
|
-
*/
|
|
1043
|
-
importTemplate: function importTemplate() {
|
|
1044
|
-
var link = document.createElement('a');
|
|
1045
|
-
link.style.display = 'none';
|
|
1046
|
-
link.setAttribute('href', '/static/' + this.importTemplateName);
|
|
1047
|
-
link.download = this.importTemplateName; // 下载的文件名
|
|
1048
|
-
document.body.appendChild(link);
|
|
1049
|
-
link.click();
|
|
1050
|
-
document.body.removeChild(link);
|
|
1051
|
-
},
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
/**
|
|
1055
|
-
* 自定义生成UUID
|
|
1056
|
-
*/
|
|
1057
|
-
createUUID: function createUUID() {
|
|
1058
|
-
return 'xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx'.replace(/[x]/g, function (c) {
|
|
1059
|
-
var r = Math.random() * 16 | 0;
|
|
1060
|
-
var v = c === 'x' ? r : r & 0x3 | 0x8;
|
|
1061
|
-
return v.toString(16);
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
});
|
|
1066
|
-
// CONCATENATED MODULE: ./packages/fileUpload/src/main.vue?vue&type=script&lang=js
|
|
1067
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
1068
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1069
|
-
var componentNormalizer = __webpack_require__(2);
|
|
1070
|
-
|
|
1071
|
-
// CONCATENATED MODULE: ./packages/fileUpload/src/main.vue
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
/* normalize component */
|
|
1078
|
-
|
|
1079
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1080
|
-
src_mainvue_type_script_lang_js,
|
|
1081
|
-
render,
|
|
1082
|
-
staticRenderFns,
|
|
1083
|
-
false,
|
|
1084
|
-
null,
|
|
1085
|
-
null,
|
|
1086
|
-
null
|
|
1087
|
-
|
|
1088
|
-
)
|
|
1089
|
-
|
|
1090
|
-
/* harmony default export */ var main = (component.exports);
|
|
1091
|
-
// CONCATENATED MODULE: ./packages/fileUpload/index.js
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
/* istanbul ignore next */
|
|
1095
|
-
main.install = function (Vue) {
|
|
1096
|
-
Vue.component(main.name, main);
|
|
1097
|
-
};
|
|
1098
|
-
|
|
1099
|
-
/* harmony default export */ var packages_fileUpload = __webpack_exports__["default"] = (main);
|
|
1100
|
-
|
|
1101
|
-
/***/ }),
|
|
1102
|
-
|
|
1103
|
-
/***/ 13:
|
|
1104
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1105
|
-
|
|
1106
|
-
"use strict";
|
|
1107
|
-
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1111
|
-
methods: {
|
|
1112
|
-
t: function t() {
|
|
1113
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
1114
|
-
args[_key] = arguments[_key];
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
return _locale__WEBPACK_IMPORTED_MODULE_0__[/* t */ "a"].apply(this, args);
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
});
|
|
1121
|
-
|
|
1122
|
-
/***/ }),
|
|
1123
|
-
|
|
1124
|
-
/***/ 15:
|
|
1125
|
-
/***/ (function(module, exports) {
|
|
1126
|
-
|
|
1127
|
-
module.exports = require("deepmerge");
|
|
1128
|
-
|
|
1129
|
-
/***/ }),
|
|
1130
|
-
|
|
1131
|
-
/***/ 2:
|
|
1132
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1133
|
-
|
|
1134
|
-
"use strict";
|
|
1135
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
1136
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
1137
|
-
|
|
1138
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
1139
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
1140
|
-
// be included in the final webpack user bundle.
|
|
1141
|
-
|
|
1142
|
-
function normalizeComponent(
|
|
1143
|
-
scriptExports,
|
|
1144
|
-
render,
|
|
1145
|
-
staticRenderFns,
|
|
1146
|
-
functionalTemplate,
|
|
1147
|
-
injectStyles,
|
|
1148
|
-
scopeId,
|
|
1149
|
-
moduleIdentifier /* server only */,
|
|
1150
|
-
shadowMode /* vue-cli only */
|
|
1151
|
-
) {
|
|
1152
|
-
// Vue.extend constructor export interop
|
|
1153
|
-
var options =
|
|
1154
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
1155
|
-
|
|
1156
|
-
// render functions
|
|
1157
|
-
if (render) {
|
|
1158
|
-
options.render = render
|
|
1159
|
-
options.staticRenderFns = staticRenderFns
|
|
1160
|
-
options._compiled = true
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
// functional template
|
|
1164
|
-
if (functionalTemplate) {
|
|
1165
|
-
options.functional = true
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
// scopedId
|
|
1169
|
-
if (scopeId) {
|
|
1170
|
-
options._scopeId = 'data-v-' + scopeId
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
var hook
|
|
1174
|
-
if (moduleIdentifier) {
|
|
1175
|
-
// server build
|
|
1176
|
-
hook = function (context) {
|
|
1177
|
-
// 2.3 injection
|
|
1178
|
-
context =
|
|
1179
|
-
context || // cached call
|
|
1180
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1181
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
1182
|
-
// 2.2 with runInNewContext: true
|
|
1183
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1184
|
-
context = __VUE_SSR_CONTEXT__
|
|
1185
|
-
}
|
|
1186
|
-
// inject component styles
|
|
1187
|
-
if (injectStyles) {
|
|
1188
|
-
injectStyles.call(this, context)
|
|
1189
|
-
}
|
|
1190
|
-
// register component module identifier for async chunk inferrence
|
|
1191
|
-
if (context && context._registeredComponents) {
|
|
1192
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
// used by ssr in case component is cached and beforeCreate
|
|
1196
|
-
// never gets called
|
|
1197
|
-
options._ssrRegister = hook
|
|
1198
|
-
} else if (injectStyles) {
|
|
1199
|
-
hook = shadowMode
|
|
1200
|
-
? function () {
|
|
1201
|
-
injectStyles.call(
|
|
1202
|
-
this,
|
|
1203
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
1204
|
-
)
|
|
1205
|
-
}
|
|
1206
|
-
: injectStyles
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
if (hook) {
|
|
1210
|
-
if (options.functional) {
|
|
1211
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
1212
|
-
// go through the normalizer
|
|
1213
|
-
options._injectStyles = hook
|
|
1214
|
-
// register for functional component in vue file
|
|
1215
|
-
var originalRender = options.render
|
|
1216
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1217
|
-
hook.call(context)
|
|
1218
|
-
return originalRender(h, context)
|
|
1219
|
-
}
|
|
1220
|
-
} else {
|
|
1221
|
-
// inject component registration as beforeCreate hook
|
|
1222
|
-
var existing = options.beforeCreate
|
|
1223
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
return {
|
|
1228
|
-
exports: scriptExports,
|
|
1229
|
-
options: options
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
/***/ }),
|
|
1235
|
-
|
|
1236
|
-
/***/ 27:
|
|
1237
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1238
|
-
|
|
1239
|
-
"use strict";
|
|
1240
|
-
// ESM COMPAT FLAG
|
|
1241
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1242
|
-
|
|
1243
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=7105114a
|
|
1244
|
-
var render = function render() {
|
|
1245
|
-
var _vm = this,
|
|
1246
|
-
_c = _vm._self._c
|
|
1247
|
-
return _c(
|
|
1248
|
-
"button",
|
|
1249
|
-
{
|
|
1250
|
-
staticClass: "el-button",
|
|
1251
|
-
class: [
|
|
1252
|
-
_vm.type ? "el-button--" + _vm.type : "",
|
|
1253
|
-
_vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
|
|
1254
|
-
{
|
|
1255
|
-
"is-disabled": _vm.buttonDisabled,
|
|
1256
|
-
"is-loading": _vm.loading,
|
|
1257
|
-
"is-plain": _vm.plain,
|
|
1258
|
-
"is-round": _vm.round,
|
|
1259
|
-
"is-circle": _vm.circle,
|
|
1260
|
-
},
|
|
1261
|
-
],
|
|
1262
|
-
attrs: {
|
|
1263
|
-
disabled: _vm.buttonDisabled || _vm.loading,
|
|
1264
|
-
autofocus: _vm.autofocus,
|
|
1265
|
-
type: _vm.nativeType,
|
|
1266
|
-
},
|
|
1267
|
-
on: { click: _vm.handleClick },
|
|
1268
|
-
},
|
|
1269
|
-
[
|
|
1270
|
-
_vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
|
|
1271
|
-
_vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
|
|
1272
|
-
_vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e(),
|
|
1273
|
-
]
|
|
1274
|
-
)
|
|
1275
|
-
}
|
|
1276
|
-
var staticRenderFns = []
|
|
1277
|
-
render._withStripped = true
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
// CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=7105114a
|
|
1281
|
-
|
|
1282
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js
|
|
1283
|
-
|
|
1284
|
-
/* harmony default export */ var buttonvue_type_script_lang_js = ({
|
|
1285
|
-
name: 'ElButton',
|
|
1286
|
-
|
|
1287
|
-
inject: {
|
|
1288
|
-
elForm: {
|
|
1289
|
-
default: ''
|
|
1290
|
-
},
|
|
1291
|
-
elFormItem: {
|
|
1292
|
-
default: ''
|
|
1293
|
-
}
|
|
1294
|
-
},
|
|
1295
|
-
|
|
1296
|
-
props: {
|
|
1297
|
-
type: {
|
|
1298
|
-
type: String,
|
|
1299
|
-
default: 'default'
|
|
1300
|
-
},
|
|
1301
|
-
size: String,
|
|
1302
|
-
icon: {
|
|
1303
|
-
type: String,
|
|
1304
|
-
default: ''
|
|
1305
|
-
},
|
|
1306
|
-
nativeType: {
|
|
1307
|
-
type: String,
|
|
1308
|
-
default: 'button'
|
|
1309
|
-
},
|
|
1310
|
-
loading: Boolean,
|
|
1311
|
-
disabled: Boolean,
|
|
1312
|
-
plain: Boolean,
|
|
1313
|
-
autofocus: Boolean,
|
|
1314
|
-
round: Boolean,
|
|
1315
|
-
circle: Boolean
|
|
1316
|
-
},
|
|
1317
|
-
|
|
1318
|
-
computed: {
|
|
1319
|
-
_elFormItemSize: function _elFormItemSize() {
|
|
1320
|
-
return (this.elFormItem || {}).elFormItemSize;
|
|
1321
|
-
},
|
|
1322
|
-
buttonSize: function buttonSize() {
|
|
1323
|
-
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
1324
|
-
},
|
|
1325
|
-
buttonDisabled: function buttonDisabled() {
|
|
1326
|
-
return this.$options.propsData.hasOwnProperty('disabled') ? this.disabled : (this.elForm || {}).disabled;
|
|
1327
|
-
}
|
|
1328
|
-
},
|
|
1329
|
-
|
|
1330
|
-
methods: {
|
|
1331
|
-
handleClick: function handleClick(evt) {
|
|
1332
|
-
this.$emit('click', evt);
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
});
|
|
1336
|
-
// CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js
|
|
1337
|
-
/* harmony default export */ var src_buttonvue_type_script_lang_js = (buttonvue_type_script_lang_js);
|
|
1338
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1339
|
-
var componentNormalizer = __webpack_require__(2);
|
|
1340
|
-
|
|
1341
|
-
// CONCATENATED MODULE: ./packages/button/src/button.vue
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
/* normalize component */
|
|
1348
|
-
|
|
1349
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1350
|
-
src_buttonvue_type_script_lang_js,
|
|
1351
|
-
render,
|
|
1352
|
-
staticRenderFns,
|
|
1353
|
-
false,
|
|
1354
|
-
null,
|
|
1355
|
-
null,
|
|
1356
|
-
null
|
|
1357
|
-
|
|
1358
|
-
)
|
|
1359
|
-
|
|
1360
|
-
/* harmony default export */ var src_button = (component.exports);
|
|
1361
|
-
// CONCATENATED MODULE: ./packages/button/index.js
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
/* istanbul ignore next */
|
|
1365
|
-
src_button.install = function (Vue) {
|
|
1366
|
-
Vue.component(src_button.name, src_button);
|
|
1367
|
-
};
|
|
1368
|
-
|
|
1369
|
-
/* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
|
|
1370
|
-
|
|
1371
|
-
/***/ }),
|
|
1372
|
-
|
|
1373
|
-
/***/ 29:
|
|
1374
|
-
/***/ (function(module, exports) {
|
|
1375
|
-
|
|
1376
|
-
module.exports = require("babel-helper-vue-jsx-merge-props");
|
|
1377
|
-
|
|
1378
|
-
/***/ }),
|
|
1379
|
-
|
|
1380
|
-
/***/ 3:
|
|
1381
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1382
|
-
|
|
1383
|
-
"use strict";
|
|
1384
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
|
|
1385
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
|
|
1386
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
|
|
1387
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
|
|
1388
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
|
|
1389
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
|
|
1390
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
|
|
1391
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
|
|
1392
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
|
|
1393
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
|
|
1394
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
|
|
1395
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
|
|
1396
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
|
|
1397
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
|
|
1398
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
|
|
1399
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
|
|
1400
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
|
|
1401
|
-
/* unused harmony export looseEqual */
|
|
1402
|
-
/* unused harmony export arrayEquals */
|
|
1403
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
|
|
1404
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
|
|
1405
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
|
|
1406
|
-
/* unused harmony export objToArray */
|
|
1407
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
|
|
1408
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
1409
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
1410
|
-
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
|
|
1411
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1417
|
-
|
|
1418
|
-
function noop() {};
|
|
1419
|
-
|
|
1420
|
-
function hasOwn(obj, key) {
|
|
1421
|
-
return hasOwnProperty.call(obj, key);
|
|
1422
|
-
};
|
|
1423
|
-
|
|
1424
|
-
function extend(to, _from) {
|
|
1425
|
-
for (var key in _from) {
|
|
1426
|
-
to[key] = _from[key];
|
|
1427
|
-
}
|
|
1428
|
-
return to;
|
|
1429
|
-
};
|
|
1430
|
-
|
|
1431
|
-
function toObject(arr) {
|
|
1432
|
-
var res = {};
|
|
1433
|
-
for (var i = 0; i < arr.length; i++) {
|
|
1434
|
-
if (arr[i]) {
|
|
1435
|
-
extend(res, arr[i]);
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
return res;
|
|
1439
|
-
};
|
|
1440
|
-
|
|
1441
|
-
var getValueByPath = function getValueByPath(object, prop) {
|
|
1442
|
-
prop = prop || '';
|
|
1443
|
-
var paths = prop.split('.');
|
|
1444
|
-
var current = object;
|
|
1445
|
-
var result = null;
|
|
1446
|
-
for (var i = 0, j = paths.length; i < j; i++) {
|
|
1447
|
-
var path = paths[i];
|
|
1448
|
-
if (!current) break;
|
|
1449
|
-
|
|
1450
|
-
if (i === j - 1) {
|
|
1451
|
-
result = current[path];
|
|
1452
|
-
break;
|
|
1453
|
-
}
|
|
1454
|
-
current = current[path];
|
|
1455
|
-
}
|
|
1456
|
-
return result;
|
|
1457
|
-
};
|
|
1458
|
-
|
|
1459
|
-
function getPropByPath(obj, path, strict) {
|
|
1460
|
-
var tempObj = obj;
|
|
1461
|
-
path = path.replace(/\[(\w+)\]/g, '.$1');
|
|
1462
|
-
path = path.replace(/^\./, '');
|
|
1463
|
-
|
|
1464
|
-
var keyArr = path.split('.');
|
|
1465
|
-
var i = 0;
|
|
1466
|
-
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
1467
|
-
if (!tempObj && !strict) break;
|
|
1468
|
-
var key = keyArr[i];
|
|
1469
|
-
if (key in tempObj) {
|
|
1470
|
-
tempObj = tempObj[key];
|
|
1471
|
-
} else {
|
|
1472
|
-
if (strict) {
|
|
1473
|
-
throw new Error('please transfer a valid prop path to form item!');
|
|
1474
|
-
}
|
|
1475
|
-
break;
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
return {
|
|
1479
|
-
o: tempObj,
|
|
1480
|
-
k: keyArr[i],
|
|
1481
|
-
v: tempObj ? tempObj[keyArr[i]] : null
|
|
1482
|
-
};
|
|
1483
|
-
};
|
|
1484
|
-
|
|
1485
|
-
var generateId = function generateId() {
|
|
1486
|
-
return Math.floor(Math.random() * 10000);
|
|
1487
|
-
};
|
|
1488
|
-
|
|
1489
|
-
var valueEquals = function valueEquals(a, b) {
|
|
1490
|
-
// see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
|
|
1491
|
-
if (a === b) return true;
|
|
1492
|
-
if (!(a instanceof Array)) return false;
|
|
1493
|
-
if (!(b instanceof Array)) return false;
|
|
1494
|
-
if (a.length !== b.length) return false;
|
|
1495
|
-
for (var i = 0; i !== a.length; ++i) {
|
|
1496
|
-
if (a[i] !== b[i]) return false;
|
|
1497
|
-
}
|
|
1498
|
-
return true;
|
|
1499
|
-
};
|
|
1500
|
-
|
|
1501
|
-
var escapeRegexpString = function escapeRegexpString() {
|
|
1502
|
-
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
1503
|
-
return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
|
1504
|
-
};
|
|
1505
|
-
|
|
1506
|
-
// TODO: use native Array.find, Array.findIndex when IE support is dropped
|
|
1507
|
-
var arrayFindIndex = function arrayFindIndex(arr, pred) {
|
|
1508
|
-
for (var i = 0; i !== arr.length; ++i) {
|
|
1509
|
-
if (pred(arr[i])) {
|
|
1510
|
-
return i;
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
return -1;
|
|
1514
|
-
};
|
|
1515
|
-
|
|
1516
|
-
var arrayFind = function arrayFind(arr, pred) {
|
|
1517
|
-
var idx = arrayFindIndex(arr, pred);
|
|
1518
|
-
return idx !== -1 ? arr[idx] : undefined;
|
|
1519
|
-
};
|
|
1520
|
-
|
|
1521
|
-
// coerce truthy value to array
|
|
1522
|
-
var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
|
|
1523
|
-
if (Array.isArray(val)) {
|
|
1524
|
-
return val;
|
|
1525
|
-
} else if (val) {
|
|
1526
|
-
return [val];
|
|
1527
|
-
} else {
|
|
1528
|
-
return [];
|
|
1529
|
-
}
|
|
1530
|
-
};
|
|
1531
|
-
|
|
1532
|
-
var isIE = function isIE() {
|
|
1533
|
-
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
|
|
1534
|
-
};
|
|
1535
|
-
|
|
1536
|
-
var isEdge = function isEdge() {
|
|
1537
|
-
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
|
|
1538
|
-
};
|
|
1539
|
-
|
|
1540
|
-
var isFirefox = function isFirefox() {
|
|
1541
|
-
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
|
|
1542
|
-
};
|
|
1543
|
-
|
|
1544
|
-
var autoprefixer = function autoprefixer(style) {
|
|
1545
|
-
if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
|
|
1546
|
-
var rules = ['transform', 'transition', 'animation'];
|
|
1547
|
-
var prefixes = ['ms-', 'webkit-'];
|
|
1548
|
-
rules.forEach(function (rule) {
|
|
1549
|
-
var value = style[rule];
|
|
1550
|
-
if (rule && value) {
|
|
1551
|
-
prefixes.forEach(function (prefix) {
|
|
1552
|
-
style[prefix + rule] = value;
|
|
1553
|
-
});
|
|
1554
|
-
}
|
|
1555
|
-
});
|
|
1556
|
-
return style;
|
|
1557
|
-
};
|
|
1558
|
-
|
|
1559
|
-
var kebabCase = function kebabCase(str) {
|
|
1560
|
-
var hyphenateRE = /([^-])([A-Z])/g;
|
|
1561
|
-
return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
|
|
1562
|
-
};
|
|
1563
|
-
|
|
1564
|
-
var capitalize = function capitalize(str) {
|
|
1565
|
-
if (!Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
|
|
1566
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
1567
|
-
};
|
|
1568
|
-
|
|
1569
|
-
var looseEqual = function looseEqual(a, b) {
|
|
1570
|
-
var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
|
|
1571
|
-
var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
|
|
1572
|
-
if (isObjectA && isObjectB) {
|
|
1573
|
-
return JSON.stringify(a) === JSON.stringify(b);
|
|
1574
|
-
} else if (!isObjectA && !isObjectB) {
|
|
1575
|
-
return String(a) === String(b);
|
|
1576
|
-
} else {
|
|
1577
|
-
return false;
|
|
1578
|
-
}
|
|
1579
|
-
};
|
|
1580
|
-
|
|
1581
|
-
var arrayEquals = function arrayEquals(arrayA, arrayB) {
|
|
1582
|
-
arrayA = arrayA || [];
|
|
1583
|
-
arrayB = arrayB || [];
|
|
1584
|
-
|
|
1585
|
-
if (arrayA.length !== arrayB.length) {
|
|
1586
|
-
return false;
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
for (var i = 0; i < arrayA.length; i++) {
|
|
1590
|
-
if (!looseEqual(arrayA[i], arrayB[i])) {
|
|
1591
|
-
return false;
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
return true;
|
|
1596
|
-
};
|
|
1597
|
-
|
|
1598
|
-
var isEqual = function isEqual(value1, value2) {
|
|
1599
|
-
if (Array.isArray(value1) && Array.isArray(value2)) {
|
|
1600
|
-
return arrayEquals(value1, value2);
|
|
1601
|
-
}
|
|
1602
|
-
return looseEqual(value1, value2);
|
|
1603
|
-
};
|
|
1604
|
-
|
|
1605
|
-
var isEmpty = function isEmpty(val) {
|
|
1606
|
-
// null or undefined
|
|
1607
|
-
if (val == null) return true;
|
|
1608
|
-
|
|
1609
|
-
if (typeof val === 'boolean') return false;
|
|
1610
|
-
|
|
1611
|
-
if (typeof val === 'number') return !val;
|
|
1612
|
-
|
|
1613
|
-
if (val instanceof Error) return val.message === '';
|
|
1614
|
-
|
|
1615
|
-
switch (Object.prototype.toString.call(val)) {
|
|
1616
|
-
// String or Array
|
|
1617
|
-
case '[object String]':
|
|
1618
|
-
case '[object Array]':
|
|
1619
|
-
return !val.length;
|
|
1620
|
-
|
|
1621
|
-
// Map or Set or File
|
|
1622
|
-
case '[object File]':
|
|
1623
|
-
case '[object Map]':
|
|
1624
|
-
case '[object Set]':
|
|
1625
|
-
{
|
|
1626
|
-
return !val.size;
|
|
1627
|
-
}
|
|
1628
|
-
// Plain Object
|
|
1629
|
-
case '[object Object]':
|
|
1630
|
-
{
|
|
1631
|
-
return !Object.keys(val).length;
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
return false;
|
|
1636
|
-
};
|
|
1637
|
-
|
|
1638
|
-
function rafThrottle(fn) {
|
|
1639
|
-
var locked = false;
|
|
1640
|
-
return function () {
|
|
1641
|
-
var _this = this;
|
|
1642
|
-
|
|
1643
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
1644
|
-
args[_key] = arguments[_key];
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
if (locked) return;
|
|
1648
|
-
locked = true;
|
|
1649
|
-
window.requestAnimationFrame(function (_) {
|
|
1650
|
-
fn.apply(_this, args);
|
|
1651
|
-
locked = false;
|
|
1652
|
-
});
|
|
1653
|
-
};
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
function objToArray(obj) {
|
|
1657
|
-
if (Array.isArray(obj)) {
|
|
1658
|
-
return obj;
|
|
1659
|
-
}
|
|
1660
|
-
return isEmpty(obj) ? [] : [obj];
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
var isMac = function isMac() {
|
|
1664
|
-
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
|
|
1665
|
-
};
|
|
1666
|
-
|
|
1667
|
-
/***/ }),
|
|
1668
|
-
|
|
1669
|
-
/***/ 34:
|
|
1670
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1671
|
-
|
|
1672
|
-
"use strict";
|
|
1673
|
-
// ESM COMPAT FLAG
|
|
1674
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1675
|
-
|
|
1676
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=template&id=279ef2ef
|
|
1677
|
-
var render = function render() {
|
|
1678
|
-
var _vm = this,
|
|
1679
|
-
_c = _vm._self._c
|
|
1680
|
-
return _c(
|
|
1681
|
-
"div",
|
|
1682
|
-
{
|
|
1683
|
-
staticClass: "el-progress",
|
|
1684
|
-
class: [
|
|
1685
|
-
"el-progress--" + _vm.type,
|
|
1686
|
-
_vm.status ? "is-" + _vm.status : "",
|
|
1687
|
-
{
|
|
1688
|
-
"el-progress--without-text": !_vm.showText,
|
|
1689
|
-
"el-progress--text-inside": _vm.textInside,
|
|
1690
|
-
},
|
|
1691
|
-
],
|
|
1692
|
-
attrs: {
|
|
1693
|
-
role: "progressbar",
|
|
1694
|
-
"aria-valuenow": _vm.percentage,
|
|
1695
|
-
"aria-valuemin": "0",
|
|
1696
|
-
"aria-valuemax": "100",
|
|
1697
|
-
},
|
|
1698
|
-
},
|
|
1699
|
-
[
|
|
1700
|
-
_vm.type === "line"
|
|
1701
|
-
? _c("div", { staticClass: "el-progress-bar" }, [
|
|
1702
|
-
_c(
|
|
1703
|
-
"div",
|
|
1704
|
-
{
|
|
1705
|
-
staticClass: "el-progress-bar__outer",
|
|
1706
|
-
style: {
|
|
1707
|
-
height: _vm.strokeWidth + "px",
|
|
1708
|
-
backgroundColor: _vm.defineBackColor,
|
|
1709
|
-
},
|
|
1710
|
-
},
|
|
1711
|
-
[
|
|
1712
|
-
_c(
|
|
1713
|
-
"div",
|
|
1714
|
-
{
|
|
1715
|
-
staticClass: "el-progress-bar__inner",
|
|
1716
|
-
style: _vm.barStyle,
|
|
1717
|
-
},
|
|
1718
|
-
[
|
|
1719
|
-
_vm.showText && _vm.textInside
|
|
1720
|
-
? _c(
|
|
1721
|
-
"div",
|
|
1722
|
-
{
|
|
1723
|
-
staticClass: "el-progress-bar__innerText",
|
|
1724
|
-
style: { color: _vm.textColor },
|
|
1725
|
-
},
|
|
1726
|
-
[_vm._v(_vm._s(_vm.content))]
|
|
1727
|
-
)
|
|
1728
|
-
: _vm._e(),
|
|
1729
|
-
]
|
|
1730
|
-
),
|
|
1731
|
-
]
|
|
1732
|
-
),
|
|
1733
|
-
])
|
|
1734
|
-
: _c(
|
|
1735
|
-
"div",
|
|
1736
|
-
{
|
|
1737
|
-
staticClass: "el-progress-circle",
|
|
1738
|
-
style: { height: _vm.width + "px", width: _vm.width + "px" },
|
|
1739
|
-
},
|
|
1740
|
-
[
|
|
1741
|
-
_c("svg", { attrs: { viewBox: "0 0 100 100" } }, [
|
|
1742
|
-
_c("path", {
|
|
1743
|
-
staticClass: "el-progress-circle__track",
|
|
1744
|
-
style: _vm.trailPathStyle,
|
|
1745
|
-
attrs: {
|
|
1746
|
-
d: _vm.trackPath,
|
|
1747
|
-
stroke: _vm.defineBackColor,
|
|
1748
|
-
"stroke-width": _vm.relativeStrokeWidth,
|
|
1749
|
-
fill: "none",
|
|
1750
|
-
},
|
|
1751
|
-
}),
|
|
1752
|
-
_c("path", {
|
|
1753
|
-
staticClass: "el-progress-circle__path",
|
|
1754
|
-
style: _vm.circlePathStyle,
|
|
1755
|
-
attrs: {
|
|
1756
|
-
d: _vm.trackPath,
|
|
1757
|
-
stroke: _vm.stroke,
|
|
1758
|
-
fill: "none",
|
|
1759
|
-
"stroke-linecap": _vm.strokeLinecap,
|
|
1760
|
-
"stroke-width": _vm.percentage
|
|
1761
|
-
? _vm.relativeStrokeWidth
|
|
1762
|
-
: 0,
|
|
1763
|
-
},
|
|
1764
|
-
}),
|
|
1765
|
-
]),
|
|
1766
|
-
]
|
|
1767
|
-
),
|
|
1768
|
-
_vm.showText && !_vm.textInside
|
|
1769
|
-
? _c(
|
|
1770
|
-
"div",
|
|
1771
|
-
{
|
|
1772
|
-
staticClass: "el-progress__text",
|
|
1773
|
-
style: {
|
|
1774
|
-
fontSize: _vm.progressTextSize + "px",
|
|
1775
|
-
color: _vm.textColor,
|
|
1776
|
-
},
|
|
1777
|
-
},
|
|
1778
|
-
[
|
|
1779
|
-
!_vm.status
|
|
1780
|
-
? [_vm._v(_vm._s(_vm.content))]
|
|
1781
|
-
: _c("i", { class: _vm.iconClass }),
|
|
1782
|
-
],
|
|
1783
|
-
2
|
|
1784
|
-
)
|
|
1785
|
-
: _vm._e(),
|
|
1786
|
-
]
|
|
1787
|
-
)
|
|
1788
|
-
}
|
|
1789
|
-
var staticRenderFns = []
|
|
1790
|
-
render._withStripped = true
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
// CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=template&id=279ef2ef
|
|
1794
|
-
|
|
1795
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=script&lang=js
|
|
1796
|
-
|
|
1797
|
-
/* harmony default export */ var progressvue_type_script_lang_js = ({
|
|
1798
|
-
name: 'ElProgress',
|
|
1799
|
-
props: {
|
|
1800
|
-
type: {
|
|
1801
|
-
type: String,
|
|
1802
|
-
default: 'line',
|
|
1803
|
-
validator: function validator(val) {
|
|
1804
|
-
return ['line', 'circle', 'dashboard'].indexOf(val) > -1;
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
percentage: {
|
|
1808
|
-
type: Number,
|
|
1809
|
-
default: 0,
|
|
1810
|
-
required: true,
|
|
1811
|
-
validator: function validator(val) {
|
|
1812
|
-
return val >= 0 && val <= 100;
|
|
1813
|
-
}
|
|
1814
|
-
},
|
|
1815
|
-
status: {
|
|
1816
|
-
type: String,
|
|
1817
|
-
validator: function validator(val) {
|
|
1818
|
-
return ['success', 'exception', 'warning'].indexOf(val) > -1;
|
|
1819
|
-
}
|
|
1820
|
-
},
|
|
1821
|
-
strokeWidth: {
|
|
1822
|
-
type: Number,
|
|
1823
|
-
default: 6
|
|
1824
|
-
},
|
|
1825
|
-
strokeLinecap: {
|
|
1826
|
-
type: String,
|
|
1827
|
-
default: 'round'
|
|
1828
|
-
},
|
|
1829
|
-
textInside: {
|
|
1830
|
-
type: Boolean,
|
|
1831
|
-
default: false
|
|
1832
|
-
},
|
|
1833
|
-
width: {
|
|
1834
|
-
type: Number,
|
|
1835
|
-
default: 126
|
|
1836
|
-
},
|
|
1837
|
-
showText: {
|
|
1838
|
-
type: Boolean,
|
|
1839
|
-
default: true
|
|
1840
|
-
},
|
|
1841
|
-
color: {
|
|
1842
|
-
type: [String, Array, Function],
|
|
1843
|
-
default: ''
|
|
1844
|
-
},
|
|
1845
|
-
defineBackColor: {
|
|
1846
|
-
type: [String, Array, Function],
|
|
1847
|
-
default: '#ebeef5'
|
|
1848
|
-
},
|
|
1849
|
-
textColor: {
|
|
1850
|
-
type: [String, Array, Function],
|
|
1851
|
-
default: '#606266'
|
|
1852
|
-
},
|
|
1853
|
-
format: Function
|
|
1854
|
-
},
|
|
1855
|
-
computed: {
|
|
1856
|
-
barStyle: function barStyle() {
|
|
1857
|
-
var style = {};
|
|
1858
|
-
style.width = this.percentage + '%';
|
|
1859
|
-
style.backgroundColor = this.getCurrentColor(this.percentage);
|
|
1860
|
-
return style;
|
|
1861
|
-
},
|
|
1862
|
-
relativeStrokeWidth: function relativeStrokeWidth() {
|
|
1863
|
-
return (this.strokeWidth / this.width * 100).toFixed(1);
|
|
1864
|
-
},
|
|
1865
|
-
radius: function radius() {
|
|
1866
|
-
if (this.type === 'circle' || this.type === 'dashboard') {
|
|
1867
|
-
return parseInt(50 - parseFloat(this.relativeStrokeWidth) / 2, 10);
|
|
1868
|
-
} else {
|
|
1869
|
-
return 0;
|
|
1870
|
-
}
|
|
1871
|
-
},
|
|
1872
|
-
trackPath: function trackPath() {
|
|
1873
|
-
var radius = this.radius;
|
|
1874
|
-
var isDashboard = this.type === 'dashboard';
|
|
1875
|
-
return '\n\t\t\t\t\tM 50 50\n\t\t\t\t\tm 0 ' + (isDashboard ? '' : '-') + radius + '\n\t\t\t\t\ta ' + radius + ' ' + radius + ' 0 1 1 0 ' + (isDashboard ? '-' : '') + radius * 2 + '\n\t\t\t\t\ta ' + radius + ' ' + radius + ' 0 1 1 0 ' + (isDashboard ? '' : '-') + radius * 2 + '\n\t\t\t\t\t';
|
|
1876
|
-
},
|
|
1877
|
-
perimeter: function perimeter() {
|
|
1878
|
-
return 2 * Math.PI * this.radius;
|
|
1879
|
-
},
|
|
1880
|
-
rate: function rate() {
|
|
1881
|
-
return this.type === 'dashboard' ? 0.75 : 1;
|
|
1882
|
-
},
|
|
1883
|
-
strokeDashoffset: function strokeDashoffset() {
|
|
1884
|
-
var offset = -1 * this.perimeter * (1 - this.rate) / 2;
|
|
1885
|
-
return offset + 'px';
|
|
1886
|
-
},
|
|
1887
|
-
trailPathStyle: function trailPathStyle() {
|
|
1888
|
-
return {
|
|
1889
|
-
strokeDasharray: this.perimeter * this.rate + 'px, ' + this.perimeter + 'px',
|
|
1890
|
-
strokeDashoffset: this.strokeDashoffset
|
|
1891
|
-
};
|
|
1892
|
-
},
|
|
1893
|
-
circlePathStyle: function circlePathStyle() {
|
|
1894
|
-
return {
|
|
1895
|
-
strokeDasharray: this.perimeter * this.rate * (this.percentage / 100) + 'px, ' + this.perimeter + 'px',
|
|
1896
|
-
strokeDashoffset: this.strokeDashoffset,
|
|
1897
|
-
transition: 'stroke-dasharray 0.6s ease 0s, stroke 0.6s ease'
|
|
1898
|
-
};
|
|
1899
|
-
},
|
|
1900
|
-
stroke: function stroke() {
|
|
1901
|
-
var ret = void 0;
|
|
1902
|
-
if (this.color) {
|
|
1903
|
-
ret = this.getCurrentColor(this.percentage);
|
|
1904
|
-
} else {
|
|
1905
|
-
switch (this.status) {
|
|
1906
|
-
case 'success':
|
|
1907
|
-
ret = '#13ce66';
|
|
1908
|
-
break;
|
|
1909
|
-
case 'exception':
|
|
1910
|
-
ret = '#ff4949';
|
|
1911
|
-
break;
|
|
1912
|
-
case 'warning':
|
|
1913
|
-
ret = '#e6a23c';
|
|
1914
|
-
break;
|
|
1915
|
-
default:
|
|
1916
|
-
ret = '#20a0ff';
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
return ret;
|
|
1920
|
-
},
|
|
1921
|
-
iconClass: function iconClass() {
|
|
1922
|
-
if (this.status === 'warning') {
|
|
1923
|
-
return 'el-icon-warning';
|
|
1924
|
-
}
|
|
1925
|
-
if (this.type === 'line') {
|
|
1926
|
-
return this.status === 'success' ? 'el-icon-circle-check' : 'el-icon-circle-close';
|
|
1927
|
-
} else {
|
|
1928
|
-
return this.status === 'success' ? 'el-icon-check' : 'el-icon-close';
|
|
1929
|
-
}
|
|
1930
|
-
},
|
|
1931
|
-
progressTextSize: function progressTextSize() {
|
|
1932
|
-
return this.type === 'line' ? 12 + this.strokeWidth * 0.4 : this.width * 0.111111 + 2;
|
|
1933
|
-
},
|
|
1934
|
-
content: function content() {
|
|
1935
|
-
if (typeof this.format === 'function') {
|
|
1936
|
-
return this.format(this.percentage) || '';
|
|
1937
|
-
} else {
|
|
1938
|
-
return this.percentage + '%';
|
|
1939
|
-
}
|
|
1940
|
-
}
|
|
1941
|
-
},
|
|
1942
|
-
methods: {
|
|
1943
|
-
getCurrentColor: function getCurrentColor(percentage) {
|
|
1944
|
-
if (typeof this.color === 'function') {
|
|
1945
|
-
return this.color(percentage);
|
|
1946
|
-
} else if (typeof this.color === 'string') {
|
|
1947
|
-
return this.color;
|
|
1948
|
-
} else {
|
|
1949
|
-
return this.getLevelColor(percentage);
|
|
1950
|
-
}
|
|
1951
|
-
},
|
|
1952
|
-
getLevelColor: function getLevelColor(percentage) {
|
|
1953
|
-
var colorArray = this.getColorArray().sort(function (a, b) {
|
|
1954
|
-
return a.percentage - b.percentage;
|
|
1955
|
-
});
|
|
1956
|
-
|
|
1957
|
-
for (var i = 0; i < colorArray.length; i++) {
|
|
1958
|
-
if (colorArray[i].percentage > percentage) {
|
|
1959
|
-
return colorArray[i].color;
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
return colorArray[colorArray.length - 1].color;
|
|
1963
|
-
},
|
|
1964
|
-
getColorArray: function getColorArray() {
|
|
1965
|
-
var color = this.color;
|
|
1966
|
-
var span = 100 / color.length;
|
|
1967
|
-
return color.map(function (seriesColor, index) {
|
|
1968
|
-
if (typeof seriesColor === 'string') {
|
|
1969
|
-
return {
|
|
1970
|
-
color: seriesColor,
|
|
1971
|
-
percentage: (index + 1) * span
|
|
1972
|
-
};
|
|
1973
|
-
}
|
|
1974
|
-
return seriesColor;
|
|
1975
|
-
});
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
});
|
|
1979
|
-
// CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=script&lang=js
|
|
1980
|
-
/* harmony default export */ var src_progressvue_type_script_lang_js = (progressvue_type_script_lang_js);
|
|
1981
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1982
|
-
var componentNormalizer = __webpack_require__(2);
|
|
1983
|
-
|
|
1984
|
-
// CONCATENATED MODULE: ./packages/progress/src/progress.vue
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
/* normalize component */
|
|
1991
|
-
|
|
1992
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1993
|
-
src_progressvue_type_script_lang_js,
|
|
1994
|
-
render,
|
|
1995
|
-
staticRenderFns,
|
|
1996
|
-
false,
|
|
1997
|
-
null,
|
|
1998
|
-
null,
|
|
1999
|
-
null
|
|
2000
|
-
|
|
2001
|
-
)
|
|
2002
|
-
|
|
2003
|
-
/* harmony default export */ var progress = (component.exports);
|
|
2004
|
-
// CONCATENATED MODULE: ./packages/progress/index.js
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
/* istanbul ignore next */
|
|
2008
|
-
progress.install = function (Vue) {
|
|
2009
|
-
Vue.component(progress.name, progress);
|
|
2010
|
-
};
|
|
2011
|
-
|
|
2012
|
-
/* harmony default export */ var packages_progress = __webpack_exports__["default"] = (progress);
|
|
2013
|
-
|
|
2014
|
-
/***/ }),
|
|
2015
|
-
|
|
2016
|
-
/***/ 5:
|
|
2017
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2018
|
-
|
|
2019
|
-
"use strict";
|
|
2020
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
|
|
2021
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
|
|
2022
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
|
|
2023
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
|
|
2024
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
|
|
2025
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
|
|
2026
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
2027
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
2028
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
function isString(obj) {
|
|
2033
|
-
return Object.prototype.toString.call(obj) === '[object String]';
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
function isObject(obj) {
|
|
2037
|
-
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2040
|
-
function isHtmlElement(node) {
|
|
2041
|
-
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
/**
|
|
2045
|
-
* - Inspired:
|
|
2046
|
-
* https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
|
|
2047
|
-
*/
|
|
2048
|
-
var isFunction = function isFunction(functionToCheck) {
|
|
2049
|
-
var getType = {};
|
|
2050
|
-
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
2051
|
-
};
|
|
2052
|
-
|
|
2053
|
-
if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
|
|
2054
|
-
isFunction = function isFunction(obj) {
|
|
2055
|
-
return typeof obj === 'function' || false;
|
|
2056
|
-
};
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
var isUndefined = function isUndefined(val) {
|
|
2062
|
-
return val === void 0;
|
|
2063
|
-
};
|
|
2064
|
-
|
|
2065
|
-
var isDefined = function isDefined(val) {
|
|
2066
|
-
return val !== undefined && val !== null;
|
|
2067
|
-
};
|
|
2068
|
-
|
|
2069
|
-
/***/ }),
|
|
2070
|
-
|
|
2071
|
-
/***/ 50:
|
|
2072
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2073
|
-
|
|
2074
|
-
"use strict";
|
|
2075
|
-
// ESM COMPAT FLAG
|
|
2076
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2077
|
-
|
|
2078
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-list.vue?vue&type=template&id=0943b648
|
|
2079
|
-
var upload_listvue_type_template_id_0943b648_render = function render() {
|
|
2080
|
-
var _vm = this,
|
|
2081
|
-
_c = _vm._self._c
|
|
2082
|
-
return _c(
|
|
2083
|
-
"transition-group",
|
|
2084
|
-
{
|
|
2085
|
-
class: [
|
|
2086
|
-
"el-upload-list",
|
|
2087
|
-
"el-upload-list--" + _vm.listType,
|
|
2088
|
-
{ "is-disabled": _vm.disabled },
|
|
2089
|
-
],
|
|
2090
|
-
attrs: { tag: "ul", name: "el-list" },
|
|
2091
|
-
},
|
|
2092
|
-
_vm._l(_vm.files, function (file) {
|
|
2093
|
-
return _c(
|
|
2094
|
-
"li",
|
|
2095
|
-
{
|
|
2096
|
-
key: file.uid,
|
|
2097
|
-
class: [
|
|
2098
|
-
"el-upload-list__item",
|
|
2099
|
-
"is-" + file.status,
|
|
2100
|
-
_vm.focusing ? "focusing" : "",
|
|
2101
|
-
],
|
|
2102
|
-
attrs: { tabindex: "0" },
|
|
2103
|
-
on: {
|
|
2104
|
-
keydown: function ($event) {
|
|
2105
|
-
if (
|
|
2106
|
-
!$event.type.indexOf("key") &&
|
|
2107
|
-
_vm._k($event.keyCode, "delete", [8, 46], $event.key, [
|
|
2108
|
-
"Backspace",
|
|
2109
|
-
"Delete",
|
|
2110
|
-
"Del",
|
|
2111
|
-
])
|
|
2112
|
-
)
|
|
2113
|
-
return null
|
|
2114
|
-
!_vm.disabled && _vm.$emit("remove", file)
|
|
2115
|
-
},
|
|
2116
|
-
focus: function ($event) {
|
|
2117
|
-
_vm.focusing = true
|
|
2118
|
-
},
|
|
2119
|
-
blur: function ($event) {
|
|
2120
|
-
_vm.focusing = false
|
|
2121
|
-
},
|
|
2122
|
-
click: function ($event) {
|
|
2123
|
-
_vm.focusing = false
|
|
2124
|
-
},
|
|
2125
|
-
},
|
|
2126
|
-
},
|
|
2127
|
-
[
|
|
2128
|
-
_vm._t(
|
|
2129
|
-
"default",
|
|
2130
|
-
function () {
|
|
2131
|
-
return [
|
|
2132
|
-
file.status !== "uploading" &&
|
|
2133
|
-
["picture-card", "picture"].indexOf(_vm.listType) > -1
|
|
2134
|
-
? _c("img", {
|
|
2135
|
-
staticClass: "el-upload-list__item-thumbnail",
|
|
2136
|
-
attrs: { src: file.url, alt: "" },
|
|
2137
|
-
})
|
|
2138
|
-
: _vm._e(),
|
|
2139
|
-
_c(
|
|
2140
|
-
"a",
|
|
2141
|
-
{
|
|
2142
|
-
staticClass: "el-upload-list__item-name",
|
|
2143
|
-
on: {
|
|
2144
|
-
click: function ($event) {
|
|
2145
|
-
return _vm.handleClick(file)
|
|
2146
|
-
},
|
|
2147
|
-
},
|
|
2148
|
-
},
|
|
2149
|
-
[
|
|
2150
|
-
_c("i", { staticClass: "el-icon-document" }),
|
|
2151
|
-
_vm._v(_vm._s(file.name) + "\n\t\t\t"),
|
|
2152
|
-
]
|
|
2153
|
-
),
|
|
2154
|
-
_c(
|
|
2155
|
-
"label",
|
|
2156
|
-
{ staticClass: "el-upload-list__item-status-label" },
|
|
2157
|
-
[
|
|
2158
|
-
_c("i", {
|
|
2159
|
-
class: {
|
|
2160
|
-
"el-icon-upload-success": true,
|
|
2161
|
-
"el-icon-circle-check": _vm.listType === "text",
|
|
2162
|
-
"el-icon-check":
|
|
2163
|
-
["picture-card", "picture"].indexOf(_vm.listType) >
|
|
2164
|
-
-1,
|
|
2165
|
-
},
|
|
2166
|
-
}),
|
|
2167
|
-
]
|
|
2168
|
-
),
|
|
2169
|
-
!_vm.disabled
|
|
2170
|
-
? _c("i", {
|
|
2171
|
-
staticClass: "el-icon-close",
|
|
2172
|
-
on: {
|
|
2173
|
-
click: function ($event) {
|
|
2174
|
-
return _vm.$emit("remove", file)
|
|
2175
|
-
},
|
|
2176
|
-
},
|
|
2177
|
-
})
|
|
2178
|
-
: _vm._e(),
|
|
2179
|
-
!_vm.disabled
|
|
2180
|
-
? _c("i", { staticClass: "el-icon-close-tip" }, [
|
|
2181
|
-
_vm._v(_vm._s(_vm.t("el.upload.deleteTip"))),
|
|
2182
|
-
])
|
|
2183
|
-
: _vm._e(),
|
|
2184
|
-
file.status === "uploading"
|
|
2185
|
-
? _c("el-progress", {
|
|
2186
|
-
attrs: {
|
|
2187
|
-
type:
|
|
2188
|
-
_vm.listType === "picture-card" ? "circle" : "line",
|
|
2189
|
-
"stroke-width": _vm.listType === "picture-card" ? 6 : 2,
|
|
2190
|
-
percentage: _vm.parsePercentage(file.percentage),
|
|
2191
|
-
},
|
|
2192
|
-
})
|
|
2193
|
-
: _vm._e(),
|
|
2194
|
-
_vm.listType === "picture-card"
|
|
2195
|
-
? _c(
|
|
2196
|
-
"span",
|
|
2197
|
-
{ staticClass: "el-upload-list__item-actions" },
|
|
2198
|
-
[
|
|
2199
|
-
_vm.handlePreview && _vm.listType === "picture-card"
|
|
2200
|
-
? _c(
|
|
2201
|
-
"span",
|
|
2202
|
-
{
|
|
2203
|
-
staticClass: "el-upload-list__item-preview",
|
|
2204
|
-
on: {
|
|
2205
|
-
click: function ($event) {
|
|
2206
|
-
return _vm.handlePreview(file)
|
|
2207
|
-
},
|
|
2208
|
-
},
|
|
2209
|
-
},
|
|
2210
|
-
[_c("i", { staticClass: "el-icon-zoom-in" })]
|
|
2211
|
-
)
|
|
2212
|
-
: _vm._e(),
|
|
2213
|
-
!_vm.disabled
|
|
2214
|
-
? _c(
|
|
2215
|
-
"span",
|
|
2216
|
-
{
|
|
2217
|
-
staticClass: "el-upload-list__item-delete",
|
|
2218
|
-
on: {
|
|
2219
|
-
click: function ($event) {
|
|
2220
|
-
return _vm.$emit("remove", file)
|
|
2221
|
-
},
|
|
2222
|
-
},
|
|
2223
|
-
},
|
|
2224
|
-
[_c("i", { staticClass: "el-icon-delete" })]
|
|
2225
|
-
)
|
|
2226
|
-
: _vm._e(),
|
|
2227
|
-
]
|
|
2228
|
-
)
|
|
2229
|
-
: _vm._e(),
|
|
2230
|
-
]
|
|
2231
|
-
},
|
|
2232
|
-
{ file: file }
|
|
2233
|
-
),
|
|
2234
|
-
],
|
|
2235
|
-
2
|
|
2236
|
-
)
|
|
2237
|
-
}),
|
|
2238
|
-
0
|
|
2239
|
-
)
|
|
2240
|
-
}
|
|
2241
|
-
var staticRenderFns = []
|
|
2242
|
-
upload_listvue_type_template_id_0943b648_render._withStripped = true
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=template&id=0943b648
|
|
2246
|
-
|
|
2247
|
-
// EXTERNAL MODULE: ./src/mixins/locale.js
|
|
2248
|
-
var locale = __webpack_require__(13);
|
|
2249
|
-
|
|
2250
|
-
// EXTERNAL MODULE: ./packages/progress/index.js + 5 modules
|
|
2251
|
-
var progress = __webpack_require__(34);
|
|
2252
|
-
|
|
2253
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-list.vue?vue&type=script&lang=js
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
/* harmony default export */ var upload_listvue_type_script_lang_js = ({
|
|
2259
|
-
|
|
2260
|
-
name: 'ElUploadList',
|
|
2261
|
-
|
|
2262
|
-
mixins: [locale["a" /* default */]],
|
|
2263
|
-
|
|
2264
|
-
data: function data() {
|
|
2265
|
-
return {
|
|
2266
|
-
focusing: false
|
|
2267
|
-
};
|
|
2268
|
-
},
|
|
2269
|
-
|
|
2270
|
-
components: { ElProgress: progress["default"] },
|
|
2271
|
-
|
|
2272
|
-
props: {
|
|
2273
|
-
files: {
|
|
2274
|
-
type: Array,
|
|
2275
|
-
default: function _default() {
|
|
2276
|
-
return [];
|
|
2277
|
-
}
|
|
2278
|
-
},
|
|
2279
|
-
disabled: {
|
|
2280
|
-
type: Boolean,
|
|
2281
|
-
default: false
|
|
2282
|
-
},
|
|
2283
|
-
handlePreview: Function,
|
|
2284
|
-
listType: String
|
|
2285
|
-
},
|
|
2286
|
-
methods: {
|
|
2287
|
-
parsePercentage: function parsePercentage(val) {
|
|
2288
|
-
return parseInt(val, 10);
|
|
2289
|
-
},
|
|
2290
|
-
handleClick: function handleClick(file) {
|
|
2291
|
-
this.handlePreview && this.handlePreview(file);
|
|
2292
|
-
}
|
|
2293
|
-
}
|
|
2294
|
-
});
|
|
2295
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=script&lang=js
|
|
2296
|
-
/* harmony default export */ var src_upload_listvue_type_script_lang_js = (upload_listvue_type_script_lang_js);
|
|
2297
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
2298
|
-
var componentNormalizer = __webpack_require__(2);
|
|
2299
|
-
|
|
2300
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload-list.vue
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
/* normalize component */
|
|
2307
|
-
|
|
2308
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
2309
|
-
src_upload_listvue_type_script_lang_js,
|
|
2310
|
-
upload_listvue_type_template_id_0943b648_render,
|
|
2311
|
-
staticRenderFns,
|
|
2312
|
-
false,
|
|
2313
|
-
null,
|
|
2314
|
-
null,
|
|
2315
|
-
null
|
|
2316
|
-
|
|
2317
|
-
)
|
|
2318
|
-
|
|
2319
|
-
/* harmony default export */ var upload_list = (component.exports);
|
|
2320
|
-
// EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props"
|
|
2321
|
-
var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(29);
|
|
2322
|
-
var external_babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(external_babel_helper_vue_jsx_merge_props_);
|
|
2323
|
-
|
|
2324
|
-
// CONCATENATED MODULE: ./packages/upload/src/ajax.js
|
|
2325
|
-
function getError(action, option, xhr) {
|
|
2326
|
-
var msg = void 0;
|
|
2327
|
-
if (xhr.response) {
|
|
2328
|
-
msg = '' + (xhr.response.error || xhr.response);
|
|
2329
|
-
} else if (xhr.responseText) {
|
|
2330
|
-
msg = '' + xhr.responseText;
|
|
2331
|
-
} else {
|
|
2332
|
-
msg = 'fail to post ' + action + ' ' + xhr.status;
|
|
2333
|
-
}
|
|
2334
|
-
|
|
2335
|
-
var err = new Error(msg);
|
|
2336
|
-
err.status = xhr.status;
|
|
2337
|
-
err.method = 'post';
|
|
2338
|
-
err.url = action;
|
|
2339
|
-
return err;
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2342
|
-
function getBody(xhr) {
|
|
2343
|
-
var text = xhr.responseText || xhr.response;
|
|
2344
|
-
if (!text) {
|
|
2345
|
-
return text;
|
|
2346
|
-
}
|
|
2347
|
-
|
|
2348
|
-
try {
|
|
2349
|
-
return JSON.parse(text);
|
|
2350
|
-
} catch (e) {
|
|
2351
|
-
return text;
|
|
2352
|
-
}
|
|
2353
|
-
}
|
|
2354
|
-
|
|
2355
|
-
function upload(option) {
|
|
2356
|
-
if (typeof XMLHttpRequest === 'undefined') {
|
|
2357
|
-
return;
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
|
-
var xhr = new XMLHttpRequest();
|
|
2361
|
-
var action = option.action;
|
|
2362
|
-
|
|
2363
|
-
if (xhr.upload) {
|
|
2364
|
-
xhr.upload.onprogress = function progress(e) {
|
|
2365
|
-
if (e.total > 0) {
|
|
2366
|
-
e.percent = e.loaded / e.total * 100;
|
|
2367
|
-
}
|
|
2368
|
-
option.onProgress(e);
|
|
2369
|
-
};
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
var formData = new FormData();
|
|
2373
|
-
|
|
2374
|
-
if (option.data) {
|
|
2375
|
-
Object.keys(option.data).forEach(function (key) {
|
|
2376
|
-
formData.append(key, option.data[key]);
|
|
2377
|
-
});
|
|
2378
|
-
}
|
|
2379
|
-
|
|
2380
|
-
formData.append(option.filename, option.file, option.file.name);
|
|
2381
|
-
|
|
2382
|
-
xhr.onerror = function error(e) {
|
|
2383
|
-
option.onError(e);
|
|
2384
|
-
};
|
|
2385
|
-
|
|
2386
|
-
xhr.onload = function onload() {
|
|
2387
|
-
if (xhr.status < 200 || xhr.status >= 300) {
|
|
2388
|
-
return option.onError(getError(action, option, xhr));
|
|
2389
|
-
}
|
|
2390
|
-
|
|
2391
|
-
option.onSuccess(getBody(xhr));
|
|
2392
|
-
};
|
|
2393
|
-
|
|
2394
|
-
xhr.open('post', action, true);
|
|
2395
|
-
|
|
2396
|
-
if (option.withCredentials && 'withCredentials' in xhr) {
|
|
2397
|
-
xhr.withCredentials = true;
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
var headers = option.headers || {};
|
|
2401
|
-
|
|
2402
|
-
for (var item in headers) {
|
|
2403
|
-
if (headers.hasOwnProperty(item) && headers[item] !== null) {
|
|
2404
|
-
xhr.setRequestHeader(item, headers[item]);
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
xhr.send(formData);
|
|
2408
|
-
return xhr;
|
|
2409
|
-
}
|
|
2410
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-dragger.vue?vue&type=template&id=7a1289f9
|
|
2411
|
-
var upload_draggervue_type_template_id_7a1289f9_render = function render() {
|
|
2412
|
-
var _vm = this,
|
|
2413
|
-
_c = _vm._self._c
|
|
2414
|
-
return _c(
|
|
2415
|
-
"div",
|
|
2416
|
-
{
|
|
2417
|
-
staticClass: "el-upload-dragger",
|
|
2418
|
-
class: {
|
|
2419
|
-
"is-dragover": _vm.dragover,
|
|
2420
|
-
},
|
|
2421
|
-
on: {
|
|
2422
|
-
drop: function ($event) {
|
|
2423
|
-
$event.preventDefault()
|
|
2424
|
-
return _vm.onDrop.apply(null, arguments)
|
|
2425
|
-
},
|
|
2426
|
-
dragover: function ($event) {
|
|
2427
|
-
$event.preventDefault()
|
|
2428
|
-
return _vm.onDragover.apply(null, arguments)
|
|
2429
|
-
},
|
|
2430
|
-
dragleave: function ($event) {
|
|
2431
|
-
$event.preventDefault()
|
|
2432
|
-
_vm.dragover = false
|
|
2433
|
-
},
|
|
2434
|
-
},
|
|
2435
|
-
},
|
|
2436
|
-
[_vm._t("default")],
|
|
2437
|
-
2
|
|
2438
|
-
)
|
|
2439
|
-
}
|
|
2440
|
-
var upload_draggervue_type_template_id_7a1289f9_staticRenderFns = []
|
|
2441
|
-
upload_draggervue_type_template_id_7a1289f9_render._withStripped = true
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload-dragger.vue?vue&type=template&id=7a1289f9
|
|
2445
|
-
|
|
2446
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-dragger.vue?vue&type=script&lang=js
|
|
2447
|
-
|
|
2448
|
-
/* harmony default export */ var upload_draggervue_type_script_lang_js = ({
|
|
2449
|
-
name: 'ElUploadDrag',
|
|
2450
|
-
props: {
|
|
2451
|
-
disabled: Boolean
|
|
2452
|
-
},
|
|
2453
|
-
inject: {
|
|
2454
|
-
uploader: {
|
|
2455
|
-
default: ''
|
|
2456
|
-
}
|
|
2457
|
-
},
|
|
2458
|
-
data: function data() {
|
|
2459
|
-
return {
|
|
2460
|
-
dragover: false
|
|
2461
|
-
};
|
|
2462
|
-
},
|
|
2463
|
-
|
|
2464
|
-
methods: {
|
|
2465
|
-
onDragover: function onDragover() {
|
|
2466
|
-
if (!this.disabled) {
|
|
2467
|
-
this.dragover = true;
|
|
2468
|
-
}
|
|
2469
|
-
},
|
|
2470
|
-
onDrop: function onDrop(e) {
|
|
2471
|
-
if (this.disabled || !this.uploader) return;
|
|
2472
|
-
var accept = this.uploader.accept;
|
|
2473
|
-
this.dragover = false;
|
|
2474
|
-
if (!accept) {
|
|
2475
|
-
this.$emit('file', e.dataTransfer.files);
|
|
2476
|
-
return;
|
|
2477
|
-
}
|
|
2478
|
-
this.$emit('file', [].slice.call(e.dataTransfer.files).filter(function (file) {
|
|
2479
|
-
var type = file.type,
|
|
2480
|
-
name = file.name;
|
|
2481
|
-
|
|
2482
|
-
var extension = name.indexOf('.') > -1 ? '.' + name.split('.').pop() : '';
|
|
2483
|
-
var baseType = type.replace(/\/.*$/, '');
|
|
2484
|
-
return accept.split(',').map(function (type) {
|
|
2485
|
-
return type.trim();
|
|
2486
|
-
}).filter(function (type) {
|
|
2487
|
-
return type;
|
|
2488
|
-
}).some(function (acceptedType) {
|
|
2489
|
-
if (/\..+$/.test(acceptedType)) {
|
|
2490
|
-
return extension === acceptedType;
|
|
2491
|
-
}
|
|
2492
|
-
if (/\/\*$/.test(acceptedType)) {
|
|
2493
|
-
return baseType === acceptedType.replace(/\/\*$/, '');
|
|
2494
|
-
}
|
|
2495
|
-
if (/^[^\/]+\/[^\/]+$/.test(acceptedType)) {
|
|
2496
|
-
return type === acceptedType;
|
|
2497
|
-
}
|
|
2498
|
-
return false;
|
|
2499
|
-
});
|
|
2500
|
-
}));
|
|
2501
|
-
}
|
|
2502
|
-
}
|
|
2503
|
-
});
|
|
2504
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload-dragger.vue?vue&type=script&lang=js
|
|
2505
|
-
/* harmony default export */ var src_upload_draggervue_type_script_lang_js = (upload_draggervue_type_script_lang_js);
|
|
2506
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload-dragger.vue
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
/* normalize component */
|
|
2513
|
-
|
|
2514
|
-
var upload_dragger_component = Object(componentNormalizer["a" /* default */])(
|
|
2515
|
-
src_upload_draggervue_type_script_lang_js,
|
|
2516
|
-
upload_draggervue_type_template_id_7a1289f9_render,
|
|
2517
|
-
upload_draggervue_type_template_id_7a1289f9_staticRenderFns,
|
|
2518
|
-
false,
|
|
2519
|
-
null,
|
|
2520
|
-
null,
|
|
2521
|
-
null
|
|
2522
|
-
|
|
2523
|
-
)
|
|
2524
|
-
|
|
2525
|
-
/* harmony default export */ var upload_dragger = (upload_dragger_component.exports);
|
|
2526
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload.vue?vue&type=script&lang=js
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
/* harmony default export */ var uploadvue_type_script_lang_js = ({
|
|
2533
|
-
inject: ['uploader'],
|
|
2534
|
-
components: {
|
|
2535
|
-
UploadDragger: upload_dragger
|
|
2536
|
-
},
|
|
2537
|
-
props: {
|
|
2538
|
-
type: String,
|
|
2539
|
-
action: {
|
|
2540
|
-
type: String,
|
|
2541
|
-
required: true
|
|
2542
|
-
},
|
|
2543
|
-
name: {
|
|
2544
|
-
type: String,
|
|
2545
|
-
default: 'file'
|
|
2546
|
-
},
|
|
2547
|
-
data: Object,
|
|
2548
|
-
headers: Object,
|
|
2549
|
-
withCredentials: Boolean,
|
|
2550
|
-
multiple: Boolean,
|
|
2551
|
-
accept: String,
|
|
2552
|
-
onStart: Function,
|
|
2553
|
-
onProgress: Function,
|
|
2554
|
-
onSuccess: Function,
|
|
2555
|
-
onError: Function,
|
|
2556
|
-
beforeUpload: Function,
|
|
2557
|
-
drag: Boolean,
|
|
2558
|
-
onPreview: {
|
|
2559
|
-
type: Function,
|
|
2560
|
-
default: function _default() {}
|
|
2561
|
-
},
|
|
2562
|
-
onRemove: {
|
|
2563
|
-
type: Function,
|
|
2564
|
-
default: function _default() {}
|
|
2565
|
-
},
|
|
2566
|
-
fileList: Array,
|
|
2567
|
-
autoUpload: Boolean,
|
|
2568
|
-
listType: String,
|
|
2569
|
-
httpRequest: {
|
|
2570
|
-
type: Function,
|
|
2571
|
-
default: upload
|
|
2572
|
-
},
|
|
2573
|
-
disabled: Boolean,
|
|
2574
|
-
limit: Number,
|
|
2575
|
-
onExceed: Function
|
|
2576
|
-
},
|
|
2577
|
-
|
|
2578
|
-
data: function data() {
|
|
2579
|
-
return {
|
|
2580
|
-
mouseover: false,
|
|
2581
|
-
reqs: {}
|
|
2582
|
-
};
|
|
2583
|
-
},
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
methods: {
|
|
2587
|
-
isImage: function isImage(str) {
|
|
2588
|
-
return str.indexOf('image') !== -1;
|
|
2589
|
-
},
|
|
2590
|
-
handleChange: function handleChange(ev) {
|
|
2591
|
-
var files = ev.target.files;
|
|
2592
|
-
|
|
2593
|
-
if (!files) return;
|
|
2594
|
-
this.uploadFiles(files);
|
|
2595
|
-
},
|
|
2596
|
-
uploadFiles: function uploadFiles(files) {
|
|
2597
|
-
var _this = this;
|
|
2598
|
-
|
|
2599
|
-
if (this.limit && this.fileList.length + files.length > this.limit) {
|
|
2600
|
-
this.onExceed && this.onExceed(files, this.fileList);
|
|
2601
|
-
return;
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
|
-
var postFiles = Array.prototype.slice.call(files);
|
|
2605
|
-
if (!this.multiple) {
|
|
2606
|
-
postFiles = postFiles.slice(0, 1);
|
|
2607
|
-
}
|
|
2608
|
-
|
|
2609
|
-
if (postFiles.length === 0) {
|
|
2610
|
-
return;
|
|
2611
|
-
}
|
|
2612
|
-
|
|
2613
|
-
postFiles.forEach(function (rawFile) {
|
|
2614
|
-
_this.onStart(rawFile);
|
|
2615
|
-
if (_this.autoUpload) _this.upload(rawFile);
|
|
2616
|
-
});
|
|
2617
|
-
},
|
|
2618
|
-
upload: function upload(rawFile) {
|
|
2619
|
-
var _this2 = this;
|
|
2620
|
-
|
|
2621
|
-
this.$refs.input.value = null;
|
|
2622
|
-
|
|
2623
|
-
if (!this.beforeUpload) {
|
|
2624
|
-
return this.post(rawFile);
|
|
2625
|
-
}
|
|
2626
|
-
|
|
2627
|
-
var before = this.beforeUpload(rawFile);
|
|
2628
|
-
if (before && before.then) {
|
|
2629
|
-
before.then(function (processedFile) {
|
|
2630
|
-
var fileType = Object.prototype.toString.call(processedFile);
|
|
2631
|
-
|
|
2632
|
-
if (fileType === '[object File]' || fileType === '[object Blob]') {
|
|
2633
|
-
if (fileType === '[object Blob]') {
|
|
2634
|
-
processedFile = new File([processedFile], rawFile.name, {
|
|
2635
|
-
type: rawFile.type
|
|
2636
|
-
});
|
|
2637
|
-
}
|
|
2638
|
-
for (var p in rawFile) {
|
|
2639
|
-
if (rawFile.hasOwnProperty(p)) {
|
|
2640
|
-
processedFile[p] = rawFile[p];
|
|
2641
|
-
}
|
|
2642
|
-
}
|
|
2643
|
-
_this2.post(processedFile);
|
|
2644
|
-
} else {
|
|
2645
|
-
_this2.post(rawFile);
|
|
2646
|
-
}
|
|
2647
|
-
}, function () {
|
|
2648
|
-
_this2.onRemove(null, rawFile);
|
|
2649
|
-
});
|
|
2650
|
-
} else if (before !== false) {
|
|
2651
|
-
this.post(rawFile);
|
|
2652
|
-
} else {
|
|
2653
|
-
this.onRemove(null, rawFile);
|
|
2654
|
-
}
|
|
2655
|
-
},
|
|
2656
|
-
abort: function abort(file) {
|
|
2657
|
-
var reqs = this.reqs;
|
|
2658
|
-
|
|
2659
|
-
if (file) {
|
|
2660
|
-
var uid = file;
|
|
2661
|
-
if (file.uid) uid = file.uid;
|
|
2662
|
-
if (reqs[uid]) {
|
|
2663
|
-
reqs[uid].abort();
|
|
2664
|
-
}
|
|
2665
|
-
} else {
|
|
2666
|
-
Object.keys(reqs).forEach(function (uid) {
|
|
2667
|
-
if (reqs[uid]) reqs[uid].abort();
|
|
2668
|
-
delete reqs[uid];
|
|
2669
|
-
});
|
|
2670
|
-
}
|
|
2671
|
-
},
|
|
2672
|
-
post: function post(rawFile) {
|
|
2673
|
-
var _this3 = this;
|
|
2674
|
-
|
|
2675
|
-
var uid = rawFile.uid;
|
|
2676
|
-
|
|
2677
|
-
var options = {
|
|
2678
|
-
headers: this.headers,
|
|
2679
|
-
withCredentials: this.withCredentials,
|
|
2680
|
-
file: rawFile,
|
|
2681
|
-
data: this.data,
|
|
2682
|
-
filename: this.name,
|
|
2683
|
-
action: this.action,
|
|
2684
|
-
onProgress: function onProgress(e) {
|
|
2685
|
-
_this3.onProgress(e, rawFile);
|
|
2686
|
-
},
|
|
2687
|
-
onSuccess: function onSuccess(res) {
|
|
2688
|
-
_this3.onSuccess(res, rawFile);
|
|
2689
|
-
delete _this3.reqs[uid];
|
|
2690
|
-
},
|
|
2691
|
-
onError: function onError(err) {
|
|
2692
|
-
_this3.onError(err, rawFile);
|
|
2693
|
-
delete _this3.reqs[uid];
|
|
2694
|
-
}
|
|
2695
|
-
};
|
|
2696
|
-
var req = this.httpRequest(options);
|
|
2697
|
-
this.reqs[uid] = req;
|
|
2698
|
-
if (req && req.then) {
|
|
2699
|
-
req.then(options.onSuccess, options.onError);
|
|
2700
|
-
}
|
|
2701
|
-
},
|
|
2702
|
-
handleClick: function handleClick() {
|
|
2703
|
-
if (!this.disabled) {
|
|
2704
|
-
this.$refs.input.value = null;
|
|
2705
|
-
this.$refs.input.click();
|
|
2706
|
-
}
|
|
2707
|
-
},
|
|
2708
|
-
handleKeydown: function handleKeydown(e) {
|
|
2709
|
-
if (e.target !== e.currentTarget) return;
|
|
2710
|
-
if (e.keyCode === 13 || e.keyCode === 32) {
|
|
2711
|
-
this.handleClick();
|
|
2712
|
-
}
|
|
2713
|
-
}
|
|
2714
|
-
},
|
|
2715
|
-
|
|
2716
|
-
render: function render(h) {
|
|
2717
|
-
var handleClick = this.handleClick,
|
|
2718
|
-
drag = this.drag,
|
|
2719
|
-
name = this.name,
|
|
2720
|
-
handleChange = this.handleChange,
|
|
2721
|
-
multiple = this.multiple,
|
|
2722
|
-
accept = this.accept,
|
|
2723
|
-
listType = this.listType,
|
|
2724
|
-
uploadFiles = this.uploadFiles,
|
|
2725
|
-
disabled = this.disabled,
|
|
2726
|
-
handleKeydown = this.handleKeydown;
|
|
2727
|
-
|
|
2728
|
-
var data = {
|
|
2729
|
-
class: {
|
|
2730
|
-
'el-upload': true
|
|
2731
|
-
},
|
|
2732
|
-
on: {
|
|
2733
|
-
click: handleClick,
|
|
2734
|
-
keydown: handleKeydown
|
|
2735
|
-
}
|
|
2736
|
-
};
|
|
2737
|
-
data.class['el-upload--' + listType] = true;
|
|
2738
|
-
return h(
|
|
2739
|
-
'div',
|
|
2740
|
-
external_babel_helper_vue_jsx_merge_props_default()([data, {
|
|
2741
|
-
attrs: { tabindex: '0' }
|
|
2742
|
-
}]),
|
|
2743
|
-
[drag ? h(
|
|
2744
|
-
'upload-dragger',
|
|
2745
|
-
{
|
|
2746
|
-
attrs: { disabled: disabled },
|
|
2747
|
-
on: {
|
|
2748
|
-
'file': uploadFiles
|
|
2749
|
-
}
|
|
2750
|
-
},
|
|
2751
|
-
[this.$slots.default]
|
|
2752
|
-
) : this.$slots.default, h('input', { 'class': 'el-upload__input', attrs: { type: 'file', name: name, multiple: multiple, accept: accept },
|
|
2753
|
-
ref: 'input', on: {
|
|
2754
|
-
'change': handleChange
|
|
2755
|
-
}
|
|
2756
|
-
})]
|
|
2757
|
-
);
|
|
2758
|
-
}
|
|
2759
|
-
});
|
|
2760
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload.vue?vue&type=script&lang=js
|
|
2761
|
-
/* harmony default export */ var src_uploadvue_type_script_lang_js = (uploadvue_type_script_lang_js);
|
|
2762
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload.vue
|
|
2763
|
-
var upload_render, upload_staticRenderFns
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
/* normalize component */
|
|
2769
|
-
|
|
2770
|
-
var upload_component = Object(componentNormalizer["a" /* default */])(
|
|
2771
|
-
src_uploadvue_type_script_lang_js,
|
|
2772
|
-
upload_render,
|
|
2773
|
-
upload_staticRenderFns,
|
|
2774
|
-
false,
|
|
2775
|
-
null,
|
|
2776
|
-
null,
|
|
2777
|
-
null
|
|
2778
|
-
|
|
2779
|
-
)
|
|
2780
|
-
|
|
2781
|
-
/* harmony default export */ var src_upload = (upload_component.exports);
|
|
2782
|
-
// EXTERNAL MODULE: ./src/mixins/migrating.js
|
|
2783
|
-
var migrating = __webpack_require__(12);
|
|
2784
|
-
|
|
2785
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/index.vue?vue&type=script&lang=js
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
function noop() {}
|
|
2793
|
-
|
|
2794
|
-
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
|
2795
|
-
name: 'ElUpload',
|
|
2796
|
-
|
|
2797
|
-
mixins: [migrating["a" /* default */]],
|
|
2798
|
-
|
|
2799
|
-
components: {
|
|
2800
|
-
ElProgress: progress["default"],
|
|
2801
|
-
UploadList: upload_list,
|
|
2802
|
-
Upload: src_upload
|
|
2803
|
-
},
|
|
2804
|
-
|
|
2805
|
-
provide: function provide() {
|
|
2806
|
-
return {
|
|
2807
|
-
uploader: this
|
|
2808
|
-
};
|
|
2809
|
-
},
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
inject: {
|
|
2813
|
-
elForm: {
|
|
2814
|
-
default: ''
|
|
2815
|
-
}
|
|
2816
|
-
},
|
|
2817
|
-
|
|
2818
|
-
props: {
|
|
2819
|
-
action: {
|
|
2820
|
-
type: String,
|
|
2821
|
-
required: true
|
|
2822
|
-
},
|
|
2823
|
-
headers: {
|
|
2824
|
-
type: Object,
|
|
2825
|
-
default: function _default() {
|
|
2826
|
-
return {};
|
|
2827
|
-
}
|
|
2828
|
-
},
|
|
2829
|
-
data: Object,
|
|
2830
|
-
multiple: Boolean,
|
|
2831
|
-
name: {
|
|
2832
|
-
type: String,
|
|
2833
|
-
default: 'file'
|
|
2834
|
-
},
|
|
2835
|
-
drag: Boolean,
|
|
2836
|
-
dragger: Boolean,
|
|
2837
|
-
withCredentials: Boolean,
|
|
2838
|
-
showFileList: {
|
|
2839
|
-
type: Boolean,
|
|
2840
|
-
default: true
|
|
2841
|
-
},
|
|
2842
|
-
accept: String,
|
|
2843
|
-
type: {
|
|
2844
|
-
type: String,
|
|
2845
|
-
default: 'select'
|
|
2846
|
-
},
|
|
2847
|
-
beforeUpload: Function,
|
|
2848
|
-
beforeRemove: Function,
|
|
2849
|
-
onRemove: {
|
|
2850
|
-
type: Function,
|
|
2851
|
-
default: noop
|
|
2852
|
-
},
|
|
2853
|
-
onChange: {
|
|
2854
|
-
type: Function,
|
|
2855
|
-
default: noop
|
|
2856
|
-
},
|
|
2857
|
-
onPreview: {
|
|
2858
|
-
type: Function
|
|
2859
|
-
},
|
|
2860
|
-
onSuccess: {
|
|
2861
|
-
type: Function,
|
|
2862
|
-
default: noop
|
|
2863
|
-
},
|
|
2864
|
-
onProgress: {
|
|
2865
|
-
type: Function,
|
|
2866
|
-
default: noop
|
|
2867
|
-
},
|
|
2868
|
-
onError: {
|
|
2869
|
-
type: Function,
|
|
2870
|
-
default: noop
|
|
2871
|
-
},
|
|
2872
|
-
fileList: {
|
|
2873
|
-
type: Array,
|
|
2874
|
-
default: function _default() {
|
|
2875
|
-
return [];
|
|
2876
|
-
}
|
|
2877
|
-
},
|
|
2878
|
-
autoUpload: {
|
|
2879
|
-
type: Boolean,
|
|
2880
|
-
default: true
|
|
2881
|
-
},
|
|
2882
|
-
listType: {
|
|
2883
|
-
type: String,
|
|
2884
|
-
default: 'text' // text,picture,picture-card
|
|
2885
|
-
},
|
|
2886
|
-
httpRequest: Function,
|
|
2887
|
-
disabled: Boolean,
|
|
2888
|
-
limit: Number,
|
|
2889
|
-
onExceed: {
|
|
2890
|
-
type: Function,
|
|
2891
|
-
default: noop
|
|
2892
|
-
}
|
|
2893
|
-
},
|
|
2894
|
-
|
|
2895
|
-
data: function data() {
|
|
2896
|
-
return {
|
|
2897
|
-
uploadFiles: [],
|
|
2898
|
-
dragOver: false,
|
|
2899
|
-
draging: false,
|
|
2900
|
-
tempIndex: 1
|
|
2901
|
-
};
|
|
2902
|
-
},
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
computed: {
|
|
2906
|
-
uploadDisabled: function uploadDisabled() {
|
|
2907
|
-
return this.disabled || (this.elForm || {}).disabled;
|
|
2908
|
-
}
|
|
2909
|
-
},
|
|
2910
|
-
|
|
2911
|
-
watch: {
|
|
2912
|
-
listType: function listType(type) {
|
|
2913
|
-
if (type === 'picture-card' || type === 'picture') {
|
|
2914
|
-
this.uploadFiles = this.uploadFiles.map(function (file) {
|
|
2915
|
-
if (!file.url && file.raw) {
|
|
2916
|
-
try {
|
|
2917
|
-
file.url = URL.createObjectURL(file.raw);
|
|
2918
|
-
} catch (err) {
|
|
2919
|
-
console.error('[Element Error][Upload]', err);
|
|
2920
|
-
}
|
|
2921
|
-
}
|
|
2922
|
-
return file;
|
|
2923
|
-
});
|
|
2924
|
-
}
|
|
2925
|
-
},
|
|
2926
|
-
|
|
2927
|
-
fileList: {
|
|
2928
|
-
immediate: true,
|
|
2929
|
-
handler: function handler(fileList) {
|
|
2930
|
-
var _this = this;
|
|
2931
|
-
|
|
2932
|
-
this.uploadFiles = fileList.map(function (item) {
|
|
2933
|
-
item.uid = item.uid || Date.now() + _this.tempIndex++;
|
|
2934
|
-
item.status = item.status || 'success';
|
|
2935
|
-
return item;
|
|
2936
|
-
});
|
|
2937
|
-
}
|
|
2938
|
-
}
|
|
2939
|
-
},
|
|
2940
|
-
|
|
2941
|
-
methods: {
|
|
2942
|
-
handleStart: function handleStart(rawFile) {
|
|
2943
|
-
rawFile.uid = Date.now() + this.tempIndex++;
|
|
2944
|
-
var file = {
|
|
2945
|
-
status: 'ready',
|
|
2946
|
-
name: rawFile.name,
|
|
2947
|
-
size: rawFile.size,
|
|
2948
|
-
percentage: 0,
|
|
2949
|
-
uid: rawFile.uid,
|
|
2950
|
-
raw: rawFile
|
|
2951
|
-
};
|
|
2952
|
-
|
|
2953
|
-
if (this.listType === 'picture-card' || this.listType === 'picture') {
|
|
2954
|
-
try {
|
|
2955
|
-
file.url = URL.createObjectURL(rawFile);
|
|
2956
|
-
} catch (err) {
|
|
2957
|
-
console.error('[Element Error][Upload]', err);
|
|
2958
|
-
return;
|
|
2959
|
-
}
|
|
2960
|
-
}
|
|
2961
|
-
|
|
2962
|
-
this.uploadFiles.push(file);
|
|
2963
|
-
this.onChange(file, this.uploadFiles);
|
|
2964
|
-
},
|
|
2965
|
-
handleProgress: function handleProgress(ev, rawFile) {
|
|
2966
|
-
var file = this.getFile(rawFile);
|
|
2967
|
-
this.onProgress(ev, file, this.uploadFiles);
|
|
2968
|
-
file.status = 'uploading';
|
|
2969
|
-
file.percentage = ev.percent || 0;
|
|
2970
|
-
},
|
|
2971
|
-
handleSuccess: function handleSuccess(res, rawFile) {
|
|
2972
|
-
var file = this.getFile(rawFile);
|
|
2973
|
-
|
|
2974
|
-
if (file) {
|
|
2975
|
-
file.status = 'success';
|
|
2976
|
-
file.response = res;
|
|
2977
|
-
|
|
2978
|
-
this.onSuccess(res, file, this.uploadFiles);
|
|
2979
|
-
this.onChange(file, this.uploadFiles);
|
|
2980
|
-
}
|
|
2981
|
-
},
|
|
2982
|
-
handleError: function handleError(err, rawFile) {
|
|
2983
|
-
var file = this.getFile(rawFile);
|
|
2984
|
-
var fileList = this.uploadFiles;
|
|
2985
|
-
|
|
2986
|
-
file.status = 'fail';
|
|
2987
|
-
|
|
2988
|
-
fileList.splice(fileList.indexOf(file), 1);
|
|
2989
|
-
|
|
2990
|
-
this.onError(err, file, this.uploadFiles);
|
|
2991
|
-
this.onChange(file, this.uploadFiles);
|
|
2992
|
-
},
|
|
2993
|
-
handleRemove: function handleRemove(file, raw) {
|
|
2994
|
-
var _this2 = this;
|
|
2995
|
-
|
|
2996
|
-
if (raw) {
|
|
2997
|
-
file = this.getFile(raw);
|
|
2998
|
-
}
|
|
2999
|
-
var doRemove = function doRemove() {
|
|
3000
|
-
_this2.abort(file);
|
|
3001
|
-
var fileList = _this2.uploadFiles;
|
|
3002
|
-
fileList.splice(fileList.indexOf(file), 1);
|
|
3003
|
-
_this2.onRemove(file, fileList);
|
|
3004
|
-
};
|
|
3005
|
-
|
|
3006
|
-
if (!this.beforeRemove) {
|
|
3007
|
-
doRemove();
|
|
3008
|
-
} else if (typeof this.beforeRemove === 'function') {
|
|
3009
|
-
var before = this.beforeRemove(file, this.uploadFiles);
|
|
3010
|
-
if (before && before.then) {
|
|
3011
|
-
before.then(function () {
|
|
3012
|
-
doRemove();
|
|
3013
|
-
}, noop);
|
|
3014
|
-
} else if (before !== false) {
|
|
3015
|
-
doRemove();
|
|
3016
|
-
}
|
|
3017
|
-
}
|
|
3018
|
-
},
|
|
3019
|
-
getFile: function getFile(rawFile) {
|
|
3020
|
-
var fileList = this.uploadFiles;
|
|
3021
|
-
var target = void 0;
|
|
3022
|
-
fileList.every(function (item) {
|
|
3023
|
-
target = rawFile.uid === item.uid ? item : null;
|
|
3024
|
-
return !target;
|
|
3025
|
-
});
|
|
3026
|
-
return target;
|
|
3027
|
-
},
|
|
3028
|
-
abort: function abort(file) {
|
|
3029
|
-
this.$refs['upload-inner'].abort(file);
|
|
3030
|
-
},
|
|
3031
|
-
clearFiles: function clearFiles() {
|
|
3032
|
-
this.uploadFiles = [];
|
|
3033
|
-
},
|
|
3034
|
-
submit: function submit() {
|
|
3035
|
-
var _this3 = this;
|
|
3036
|
-
|
|
3037
|
-
this.uploadFiles.filter(function (file) {
|
|
3038
|
-
return file.status === 'ready';
|
|
3039
|
-
}).forEach(function (file) {
|
|
3040
|
-
_this3.$refs['upload-inner'].upload(file.raw);
|
|
3041
|
-
});
|
|
3042
|
-
},
|
|
3043
|
-
getMigratingConfig: function getMigratingConfig() {
|
|
3044
|
-
return {
|
|
3045
|
-
props: {
|
|
3046
|
-
'default-file-list': 'default-file-list is renamed to file-list.',
|
|
3047
|
-
'show-upload-list': 'show-upload-list is renamed to show-file-list.',
|
|
3048
|
-
'thumbnail-mode': 'thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan'
|
|
3049
|
-
}
|
|
3050
|
-
};
|
|
3051
|
-
}
|
|
3052
|
-
},
|
|
3053
|
-
|
|
3054
|
-
beforeDestroy: function beforeDestroy() {
|
|
3055
|
-
this.uploadFiles.forEach(function (file) {
|
|
3056
|
-
if (file.url && file.url.indexOf('blob:') === 0) {
|
|
3057
|
-
URL.revokeObjectURL(file.url);
|
|
3058
|
-
}
|
|
3059
|
-
});
|
|
3060
|
-
},
|
|
3061
|
-
render: function render(h) {
|
|
3062
|
-
var _this4 = this;
|
|
3063
|
-
|
|
3064
|
-
var uploadList = void 0;
|
|
3065
|
-
|
|
3066
|
-
if (this.showFileList) {
|
|
3067
|
-
uploadList = h(
|
|
3068
|
-
upload_list,
|
|
3069
|
-
{
|
|
3070
|
-
attrs: {
|
|
3071
|
-
disabled: this.uploadDisabled,
|
|
3072
|
-
listType: this.listType,
|
|
3073
|
-
files: this.uploadFiles,
|
|
3074
|
-
|
|
3075
|
-
handlePreview: this.onPreview },
|
|
3076
|
-
on: {
|
|
3077
|
-
'remove': this.handleRemove
|
|
3078
|
-
}
|
|
3079
|
-
},
|
|
3080
|
-
[function (props) {
|
|
3081
|
-
if (_this4.$scopedSlots.file) {
|
|
3082
|
-
return _this4.$scopedSlots.file({
|
|
3083
|
-
file: props.file
|
|
3084
|
-
});
|
|
3085
|
-
}
|
|
3086
|
-
}]
|
|
3087
|
-
);
|
|
3088
|
-
}
|
|
3089
|
-
|
|
3090
|
-
var uploadData = {
|
|
3091
|
-
props: {
|
|
3092
|
-
type: this.type,
|
|
3093
|
-
drag: this.drag,
|
|
3094
|
-
action: this.action,
|
|
3095
|
-
multiple: this.multiple,
|
|
3096
|
-
'before-upload': this.beforeUpload,
|
|
3097
|
-
'with-credentials': this.withCredentials,
|
|
3098
|
-
headers: this.headers,
|
|
3099
|
-
name: this.name,
|
|
3100
|
-
data: this.data,
|
|
3101
|
-
accept: this.accept,
|
|
3102
|
-
fileList: this.uploadFiles,
|
|
3103
|
-
autoUpload: this.autoUpload,
|
|
3104
|
-
listType: this.listType,
|
|
3105
|
-
disabled: this.uploadDisabled,
|
|
3106
|
-
limit: this.limit,
|
|
3107
|
-
'on-exceed': this.onExceed,
|
|
3108
|
-
'on-start': this.handleStart,
|
|
3109
|
-
'on-progress': this.handleProgress,
|
|
3110
|
-
'on-success': this.handleSuccess,
|
|
3111
|
-
'on-error': this.handleError,
|
|
3112
|
-
'on-preview': this.onPreview,
|
|
3113
|
-
'on-remove': this.handleRemove,
|
|
3114
|
-
'http-request': this.httpRequest
|
|
3115
|
-
},
|
|
3116
|
-
ref: 'upload-inner'
|
|
3117
|
-
};
|
|
3118
|
-
|
|
3119
|
-
var trigger = this.$slots.trigger || this.$slots.default;
|
|
3120
|
-
var uploadComponent = h(
|
|
3121
|
-
'upload',
|
|
3122
|
-
uploadData,
|
|
3123
|
-
[trigger]
|
|
3124
|
-
);
|
|
3125
|
-
|
|
3126
|
-
return h('div', [this.listType === 'picture-card' ? uploadList : '', this.$slots.trigger ? [uploadComponent, this.$slots.default] : uploadComponent, this.$slots.tip, this.listType !== 'picture-card' ? uploadList : '']);
|
|
3127
|
-
}
|
|
3128
|
-
});
|
|
3129
|
-
// CONCATENATED MODULE: ./packages/upload/src/index.vue?vue&type=script&lang=js
|
|
3130
|
-
/* harmony default export */ var upload_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
|
3131
|
-
// CONCATENATED MODULE: ./packages/upload/src/index.vue
|
|
3132
|
-
var src_render, src_staticRenderFns
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
/* normalize component */
|
|
3138
|
-
|
|
3139
|
-
var src_component = Object(componentNormalizer["a" /* default */])(
|
|
3140
|
-
upload_srcvue_type_script_lang_js,
|
|
3141
|
-
src_render,
|
|
3142
|
-
src_staticRenderFns,
|
|
3143
|
-
false,
|
|
3144
|
-
null,
|
|
3145
|
-
null,
|
|
3146
|
-
null
|
|
3147
|
-
|
|
3148
|
-
)
|
|
3149
|
-
|
|
3150
|
-
/* harmony default export */ var src = (src_component.exports);
|
|
3151
|
-
// CONCATENATED MODULE: ./packages/upload/index.js
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
/* istanbul ignore next */
|
|
3155
|
-
src.install = function (Vue) {
|
|
3156
|
-
Vue.component(src.name, src);
|
|
3157
|
-
};
|
|
3158
|
-
|
|
3159
|
-
/* harmony default export */ var packages_upload = __webpack_exports__["default"] = (src);
|
|
3160
|
-
|
|
3161
|
-
/***/ }),
|
|
3162
|
-
|
|
3163
|
-
/***/ 55:
|
|
3164
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3165
|
-
|
|
3166
|
-
"use strict";
|
|
3167
|
-
// ESM COMPAT FLAG
|
|
3168
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3169
|
-
|
|
3170
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=template&id=4fa504fb
|
|
3171
|
-
var render = function render() {
|
|
3172
|
-
var _vm = this,
|
|
3173
|
-
_c = _vm._self._c
|
|
3174
|
-
return _c(
|
|
3175
|
-
"a",
|
|
3176
|
-
_vm._b(
|
|
3177
|
-
{
|
|
3178
|
-
class: [
|
|
3179
|
-
"el-link",
|
|
3180
|
-
_vm.type ? `el-link--${_vm.type}` : "",
|
|
3181
|
-
_vm.disabled && "is-disabled",
|
|
3182
|
-
_vm.underline && !_vm.disabled && "is-underline",
|
|
3183
|
-
],
|
|
3184
|
-
attrs: { href: _vm.disabled ? null : _vm.href },
|
|
3185
|
-
on: { click: _vm.handleClick },
|
|
3186
|
-
},
|
|
3187
|
-
"a",
|
|
3188
|
-
_vm.$attrs,
|
|
3189
|
-
false
|
|
3190
|
-
),
|
|
3191
|
-
[
|
|
3192
|
-
_vm.icon ? _c("i", { class: _vm.icon }) : _vm._e(),
|
|
3193
|
-
_vm.$slots.default
|
|
3194
|
-
? _c("span", { staticClass: "el-link--inner" }, [_vm._t("default")], 2)
|
|
3195
|
-
: _vm._e(),
|
|
3196
|
-
_vm.$slots.icon
|
|
3197
|
-
? [_vm.$slots.icon ? _vm._t("icon") : _vm._e()]
|
|
3198
|
-
: _vm._e(),
|
|
3199
|
-
],
|
|
3200
|
-
2
|
|
3201
|
-
)
|
|
3202
|
-
}
|
|
3203
|
-
var staticRenderFns = []
|
|
3204
|
-
render._withStripped = true
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
// CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=template&id=4fa504fb
|
|
3208
|
-
|
|
3209
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=script&lang=js
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
3213
|
-
name: 'ElLink',
|
|
3214
|
-
|
|
3215
|
-
props: {
|
|
3216
|
-
type: {
|
|
3217
|
-
type: String,
|
|
3218
|
-
default: 'default'
|
|
3219
|
-
},
|
|
3220
|
-
underline: {
|
|
3221
|
-
type: Boolean,
|
|
3222
|
-
default: true
|
|
3223
|
-
},
|
|
3224
|
-
disabled: Boolean,
|
|
3225
|
-
href: String,
|
|
3226
|
-
icon: String
|
|
3227
|
-
},
|
|
3228
|
-
|
|
3229
|
-
methods: {
|
|
3230
|
-
handleClick: function handleClick(event) {
|
|
3231
|
-
if (!this.disabled) {
|
|
3232
|
-
if (!this.href) {
|
|
3233
|
-
this.$emit('click', event);
|
|
3234
|
-
}
|
|
3235
|
-
}
|
|
3236
|
-
}
|
|
3237
|
-
}
|
|
3238
|
-
});
|
|
3239
|
-
// CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=script&lang=js
|
|
3240
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
3241
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
3242
|
-
var componentNormalizer = __webpack_require__(2);
|
|
3243
|
-
|
|
3244
|
-
// CONCATENATED MODULE: ./packages/link/src/main.vue
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
/* normalize component */
|
|
3251
|
-
|
|
3252
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
3253
|
-
src_mainvue_type_script_lang_js,
|
|
3254
|
-
render,
|
|
3255
|
-
staticRenderFns,
|
|
3256
|
-
false,
|
|
3257
|
-
null,
|
|
3258
|
-
null,
|
|
3259
|
-
null
|
|
3260
|
-
|
|
3261
|
-
)
|
|
3262
|
-
|
|
3263
|
-
/* harmony default export */ var main = (component.exports);
|
|
3264
|
-
// CONCATENATED MODULE: ./packages/link/index.js
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
/* istanbul ignore next */
|
|
3268
|
-
main.install = function (Vue) {
|
|
3269
|
-
Vue.component(main.name, main);
|
|
3270
|
-
};
|
|
3271
|
-
|
|
3272
|
-
/* harmony default export */ var packages_link = __webpack_exports__["default"] = (main);
|
|
3273
|
-
|
|
3274
|
-
/***/ })
|
|
3275
|
-
|
|
3276
|
-
/******/ });
|