mazey-element-ui 2.0.1 → 2.15.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +2 -2
- package/README.md +71 -68
- package/lib/alert.js +271 -262
- package/lib/aside.js +134 -200
- package/lib/autocomplete.js +500 -443
- package/lib/avatar.js +284 -0
- package/lib/backtop.js +336 -0
- package/lib/badge.js +188 -221
- package/lib/breadcrumb-item.js +176 -226
- package/lib/breadcrumb.js +150 -213
- package/lib/button-group.js +121 -190
- package/lib/button.js +213 -268
- package/lib/calendar.js +801 -0
- package/lib/card.js +156 -203
- package/lib/carousel-item.js +242 -264
- package/lib/carousel.js +386 -284
- package/lib/cascader-panel.js +1323 -0
- package/lib/cascader.js +1000 -1116
- package/lib/checkbox-button.js +388 -327
- package/lib/checkbox-group.js +168 -233
- package/lib/checkbox.js +422 -350
- package/lib/col.js +58 -112
- package/lib/collapse-item.js +335 -327
- package/lib/collapse.js +177 -246
- package/lib/color-picker.js +1128 -1231
- package/lib/container.js +144 -211
- package/lib/date-picker.js +4316 -2745
- package/lib/descriptions-item.js +88 -0
- package/lib/descriptions.js +342 -0
- package/lib/dialog.js +359 -337
- package/lib/directives/mousewheel.js +6 -12
- package/lib/directives/repeat-click.js +10 -10
- package/lib/divider.js +251 -0
- package/lib/drawer.js +523 -0
- package/lib/dropdown-item.js +175 -228
- package/lib/dropdown-menu.js +203 -253
- package/lib/dropdown.js +286 -384
- package/lib/element-ui.common.js +34136 -25458
- package/lib/empty.js +657 -0
- package/lib/footer.js +134 -200
- package/lib/form-item.js +401 -304
- package/lib/form.js +278 -297
- package/lib/header.js +134 -200
- package/lib/icon.js +123 -193
- package/lib/image.js +1005 -0
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +219 -0
- package/lib/input-number.js +442 -386
- package/lib/input.js +682 -512
- package/lib/link.js +267 -0
- package/lib/loading.js +278 -377
- package/lib/locale/format.js +14 -25
- package/lib/locale/index.js +19 -33
- package/lib/locale/lang/af-ZA.js +29 -8
- package/lib/locale/lang/ar.js +29 -14
- package/lib/locale/lang/az.js +127 -0
- package/lib/locale/lang/bg.js +35 -11
- package/lib/locale/lang/bn.js +126 -0
- package/lib/locale/lang/ca.js +24 -9
- package/lib/locale/lang/cs-CZ.js +19 -3
- package/lib/locale/lang/da.js +19 -3
- package/lib/locale/lang/de.js +19 -3
- package/lib/locale/lang/ee.js +24 -8
- package/lib/locale/lang/el.js +20 -4
- package/lib/locale/lang/en.js +25 -7
- package/lib/locale/lang/eo.js +128 -0
- package/lib/locale/lang/es.js +22 -7
- package/lib/locale/lang/eu.js +131 -0
- package/lib/locale/lang/fa.js +24 -8
- package/lib/locale/lang/fi.js +40 -24
- package/lib/locale/lang/fr.js +21 -4
- package/lib/locale/lang/he.js +29 -8
- package/lib/locale/lang/hr.js +131 -0
- package/lib/locale/lang/hu.js +20 -4
- package/lib/locale/lang/hy-AM.js +128 -0
- package/lib/locale/lang/id.js +23 -8
- package/lib/locale/lang/is.js +127 -0
- package/lib/locale/lang/it.js +21 -6
- package/lib/locale/lang/ja.js +19 -3
- package/lib/locale/lang/kg.js +128 -0
- package/lib/locale/lang/km.js +21 -6
- package/lib/locale/lang/ko.js +19 -3
- package/lib/locale/lang/ku.js +19 -3
- package/lib/locale/lang/kz.js +19 -3
- package/lib/locale/lang/lt.js +19 -3
- package/lib/locale/lang/lv.js +26 -10
- package/lib/locale/lang/mn.js +19 -3
- package/lib/locale/lang/ms.js +126 -0
- package/lib/locale/lang/nb-NO.js +28 -13
- package/lib/locale/lang/nl.js +19 -3
- package/lib/locale/lang/pl.js +19 -3
- package/lib/locale/lang/pt-br.js +18 -3
- package/lib/locale/lang/pt.js +35 -11
- package/lib/locale/lang/ro.js +19 -3
- package/lib/locale/lang/ru-RU.js +20 -5
- package/lib/locale/lang/si.js +130 -0
- package/lib/locale/lang/sk.js +23 -8
- package/lib/locale/lang/sl.js +26 -10
- package/lib/locale/lang/sr-Latn.js +127 -0
- package/lib/locale/lang/sr.js +131 -0
- package/lib/locale/lang/sv-SE.js +34 -15
- package/lib/locale/lang/sw.js +130 -0
- package/lib/locale/lang/ta.js +31 -9
- package/lib/locale/lang/th.js +30 -12
- package/lib/locale/lang/tk.js +27 -7
- package/lib/locale/lang/tr-TR.js +20 -4
- package/lib/locale/lang/ua.js +20 -5
- package/lib/locale/lang/ug-CN.js +22 -7
- package/lib/locale/lang/uz-UZ.js +127 -0
- package/lib/locale/lang/vi.js +23 -8
- package/lib/locale/lang/zh-CN.js +18 -3
- package/lib/locale/lang/zh-TW.js +25 -6
- package/lib/main.js +123 -192
- package/lib/menu-item-group.js +164 -225
- package/lib/menu-item.js +300 -333
- package/lib/menu.js +401 -576
- package/lib/message-box.js +730 -614
- package/lib/message.js +289 -327
- package/lib/mixins/emitter.js +2 -4
- package/lib/mixins/focus.js +3 -4
- package/lib/mixins/locale.js +5 -7
- package/lib/mixins/migrating.js +19 -21
- package/lib/notification.js +366 -394
- package/lib/option-group.js +198 -250
- package/lib/option.js +247 -291
- package/lib/page-header.js +248 -0
- package/lib/pagination.js +485 -635
- package/lib/popconfirm.js +381 -0
- package/lib/popover.js +361 -396
- package/lib/progress.js +387 -261
- package/lib/radio-button.js +319 -309
- package/lib/radio-group.js +224 -282
- package/lib/radio.js +347 -328
- package/lib/rate.js +286 -305
- package/lib/result.js +513 -0
- package/lib/row.js +59 -110
- package/lib/scrollbar.js +234 -344
- package/lib/select.js +1041 -806
- package/lib/skeleton-item.js +278 -0
- package/lib/skeleton.js +308 -0
- package/lib/slider.js +608 -467
- package/lib/spinner.js +160 -207
- package/lib/statistic.js +462 -0
- package/lib/step.js +270 -262
- package/lib/steps.js +198 -261
- package/lib/submenu.js +318 -420
- package/lib/switch.js +311 -281
- package/lib/tab-pane.js +185 -245
- package/lib/table-column.js +667 -414
- package/lib/table.js +3388 -2770
- package/lib/tabs.js +577 -648
- package/lib/tag.js +160 -227
- package/lib/theme-chalk/alert.css +1 -1
- package/lib/theme-chalk/aside.css +1 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/avatar.css +1 -0
- package/lib/theme-chalk/backtop.css +1 -0
- package/lib/theme-chalk/badge.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/breadcrumb.css +1 -1
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/card.css +1 -1
- package/lib/theme-chalk/carousel-item.css +1 -1
- package/lib/theme-chalk/carousel.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -0
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/checkbox.css +1 -1
- package/lib/theme-chalk/col.css +1 -1
- package/lib/theme-chalk/collapse.css +1 -1
- package/lib/theme-chalk/color-picker.css +1 -1
- package/lib/theme-chalk/container.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/descriptions-item.css +1 -0
- package/lib/theme-chalk/descriptions.css +1 -0
- package/lib/theme-chalk/dialog.css +1 -1
- package/lib/theme-chalk/display.css +1 -1
- package/lib/theme-chalk/divider.css +1 -0
- package/lib/theme-chalk/drawer.css +1 -0
- package/lib/theme-chalk/dropdown.css +1 -1
- package/lib/theme-chalk/empty.css +1 -0
- package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
- package/lib/theme-chalk/fonts/element-icons.woff +0 -0
- package/lib/theme-chalk/footer.css +1 -1
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/header.css +1 -1
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/image.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/link.css +1 -0
- package/lib/theme-chalk/loading.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/message.css +1 -1
- package/lib/theme-chalk/notification.css +1 -1
- package/lib/theme-chalk/option-group.css +1 -1
- package/lib/theme-chalk/option.css +1 -1
- package/lib/theme-chalk/page-header.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/popconfirm.css +1 -0
- package/lib/theme-chalk/popover.css +1 -1
- package/lib/theme-chalk/popper.css +1 -1
- package/lib/theme-chalk/progress.css +1 -1
- package/lib/theme-chalk/radio-button.css +1 -1
- package/lib/theme-chalk/radio.css +1 -1
- package/lib/theme-chalk/rate.css +1 -1
- package/lib/theme-chalk/reset.css +1 -1
- package/lib/theme-chalk/result.css +1 -0
- package/lib/theme-chalk/row.css +1 -1
- package/lib/theme-chalk/scrollbar.css +1 -1
- package/lib/theme-chalk/select-dropdown.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/skeleton-item.css +1 -0
- package/lib/theme-chalk/skeleton.css +1 -0
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/spinner.css +1 -1
- package/lib/theme-chalk/statistic.css +1 -0
- package/lib/theme-chalk/step.css +1 -1
- package/lib/theme-chalk/steps.css +1 -1
- package/lib/theme-chalk/switch.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/tag.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/lib/theme-chalk/timeline-item.css +1 -0
- package/lib/theme-chalk/timeline.css +1 -0
- package/lib/theme-chalk/tooltip.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/time-picker.js +1548 -1348
- package/lib/time-select.js +633 -853
- package/lib/timeline-item.js +301 -0
- package/lib/timeline.js +207 -0
- package/lib/tooltip.js +166 -240
- package/lib/transfer.js +731 -639
- package/lib/transitions/collapse-transition.js +13 -31
- package/lib/tree.js +1769 -1883
- package/lib/umd/locale/af-ZA.js +35 -14
- package/lib/umd/locale/ar.js +35 -20
- package/lib/umd/locale/az.js +143 -0
- package/lib/umd/locale/bg.js +41 -17
- package/lib/umd/locale/bn.js +142 -0
- package/lib/umd/locale/ca.js +30 -15
- package/lib/umd/locale/cs-CZ.js +25 -9
- package/lib/umd/locale/da.js +25 -9
- package/lib/umd/locale/de.js +25 -9
- package/lib/umd/locale/ee.js +30 -14
- package/lib/umd/locale/el.js +26 -10
- package/lib/umd/locale/en.js +31 -13
- package/lib/umd/locale/eo.js +144 -0
- package/lib/umd/locale/es.js +28 -13
- package/lib/umd/locale/eu.js +147 -0
- package/lib/umd/locale/fa.js +30 -14
- package/lib/umd/locale/fi.js +46 -30
- package/lib/umd/locale/fr.js +27 -10
- package/lib/umd/locale/he.js +35 -14
- package/lib/umd/locale/hr.js +147 -0
- package/lib/umd/locale/hu.js +26 -10
- package/lib/umd/locale/hy-AM.js +144 -0
- package/lib/umd/locale/id.js +29 -14
- package/lib/umd/locale/is.js +143 -0
- package/lib/umd/locale/it.js +27 -12
- package/lib/umd/locale/ja.js +25 -9
- package/lib/umd/locale/kg.js +144 -0
- package/lib/umd/locale/km.js +27 -12
- package/lib/umd/locale/ko.js +25 -9
- package/lib/umd/locale/ku.js +25 -9
- package/lib/umd/locale/kz.js +25 -9
- package/lib/umd/locale/lt.js +25 -9
- package/lib/umd/locale/lv.js +32 -16
- package/lib/umd/locale/mn.js +25 -9
- package/lib/umd/locale/ms.js +142 -0
- package/lib/umd/locale/nb-NO.js +34 -19
- package/lib/umd/locale/nl.js +25 -9
- package/lib/umd/locale/pl.js +25 -9
- package/lib/umd/locale/pt-br.js +24 -9
- package/lib/umd/locale/pt.js +41 -17
- package/lib/umd/locale/ro.js +25 -9
- package/lib/umd/locale/ru-RU.js +26 -11
- package/lib/umd/locale/si.js +146 -0
- package/lib/umd/locale/sk.js +29 -14
- package/lib/umd/locale/sl.js +32 -16
- package/lib/umd/locale/sr-Latn.js +143 -0
- package/lib/umd/locale/sr.js +147 -0
- package/lib/umd/locale/sv-SE.js +40 -21
- package/lib/umd/locale/sw.js +146 -0
- package/lib/umd/locale/ta.js +37 -15
- package/lib/umd/locale/th.js +36 -18
- package/lib/umd/locale/tk.js +33 -13
- package/lib/umd/locale/tr-TR.js +26 -10
- package/lib/umd/locale/ua.js +26 -11
- package/lib/umd/locale/ug-CN.js +28 -13
- package/lib/umd/locale/uz-UZ.js +143 -0
- package/lib/umd/locale/vi.js +29 -14
- package/lib/umd/locale/zh-CN.js +24 -9
- package/lib/umd/locale/zh-TW.js +31 -12
- package/lib/upload.js +1093 -1338
- package/lib/utils/after-leave.js +19 -16
- package/lib/utils/aria-dialog.js +11 -29
- package/lib/utils/aria-utils.js +7 -15
- package/lib/utils/clickoutside.js +16 -24
- package/lib/utils/date-util.js +267 -0
- package/lib/utils/date.js +56 -52
- package/lib/utils/dom.js +57 -27
- package/lib/utils/lodash.js +9421 -0
- package/lib/utils/menu/aria-menubar.js +6 -11
- package/lib/utils/menu/aria-menuitem.js +11 -22
- package/lib/utils/menu/aria-submenu.js +7 -16
- package/lib/utils/merge.js +9 -16
- package/lib/utils/popper.js +1141 -1170
- package/lib/utils/popup/index.js +24 -76
- package/lib/utils/popup/popup-manager.js +17 -49
- package/lib/utils/resize-event.js +11 -24
- package/lib/utils/scroll-into-view.js +4 -12
- package/lib/utils/scrollbar-width.js +8 -19
- package/lib/utils/types.js +38 -0
- package/lib/utils/util.js +165 -18
- package/lib/utils/vdom.js +5 -16
- package/lib/utils/vue-popper.js +10 -31
- package/package.json +131 -139
- package/packages/alert/src/main.vue +15 -8
- package/packages/autocomplete/src/autocomplete-suggestions.vue +4 -4
- package/packages/autocomplete/src/autocomplete.vue +45 -14
- package/packages/avatar/index.js +8 -0
- package/packages/avatar/src/main.vue +107 -0
- package/packages/backtop/index.js +8 -0
- package/packages/backtop/src/main.vue +110 -0
- package/packages/badge/src/main.vue +15 -3
- package/packages/button/src/button.vue +2 -1
- package/packages/calendar/index.js +8 -0
- package/packages/calendar/src/date-table.vue +200 -0
- package/packages/calendar/src/main.vue +280 -0
- package/packages/carousel/src/item.vue +36 -12
- package/packages/carousel/src/main.vue +83 -22
- package/packages/cascader/index.js +1 -1
- package/packages/cascader/src/cascader.vue +663 -0
- package/packages/cascader-panel/index.js +8 -0
- package/packages/cascader-panel/src/cascader-menu.vue +138 -0
- package/packages/cascader-panel/src/cascader-node.vue +246 -0
- package/packages/cascader-panel/src/cascader-panel.vue +391 -0
- package/packages/cascader-panel/src/node.js +166 -0
- package/packages/cascader-panel/src/store.js +58 -0
- package/packages/checkbox/src/checkbox-button.vue +11 -3
- package/packages/checkbox/src/checkbox-group.vue +1 -1
- package/packages/checkbox/src/checkbox.vue +15 -8
- package/packages/collapse/src/collapse-item.vue +12 -11
- package/packages/color-picker/src/color.js +1 -0
- package/packages/color-picker/src/components/picker-dropdown.vue +10 -6
- package/packages/color-picker/src/components/sv-panel.vue +1 -3
- package/packages/color-picker/src/main.vue +13 -4
- package/packages/date-picker/src/basic/date-table.vue +104 -168
- package/packages/date-picker/src/basic/month-table.vue +223 -58
- package/packages/date-picker/src/basic/time-spinner.vue +31 -15
- package/packages/date-picker/src/basic/year-table.vue +16 -5
- package/packages/date-picker/src/panel/date-range.vue +105 -48
- package/packages/date-picker/src/panel/date.vue +82 -39
- package/packages/date-picker/src/panel/month-range.vue +289 -0
- package/packages/date-picker/src/panel/time-range.vue +2 -2
- package/packages/date-picker/src/panel/time-select.vue +3 -2
- package/packages/date-picker/src/panel/time.vue +2 -2
- package/packages/date-picker/src/picker/date-picker.js +3 -0
- package/packages/date-picker/src/picker.vue +87 -43
- package/packages/descriptions/index.js +8 -0
- package/packages/descriptions/src/descriptions-item.js +30 -0
- package/packages/descriptions/src/descriptions-row.js +116 -0
- package/packages/descriptions/src/index.js +180 -0
- package/packages/descriptions-item/index.js +8 -0
- package/packages/dialog/src/component.vue +35 -12
- package/packages/divider/index.js +8 -0
- package/packages/divider/src/main.vue +37 -0
- package/packages/drawer/index.js +8 -0
- package/packages/drawer/src/main.vue +205 -0
- package/packages/dropdown/src/dropdown-item.vue +4 -2
- package/packages/dropdown/src/dropdown-menu.vue +6 -3
- package/packages/dropdown/src/dropdown.vue +55 -35
- package/packages/empty/index.js +7 -0
- package/packages/empty/src/img-empty.vue +132 -0
- package/packages/empty/src/index.vue +50 -0
- package/packages/form/src/form-item.vue +76 -44
- package/packages/form/src/form.vue +59 -11
- package/packages/form/src/label-wrap.vue +78 -0
- package/packages/image/index.js +8 -0
- package/packages/image/src/image-viewer.vue +330 -0
- package/packages/image/src/main.vue +249 -0
- package/packages/infinite-scroll/index.js +8 -0
- package/packages/infinite-scroll/src/main.js +150 -0
- package/packages/input/src/input.vue +186 -75
- package/packages/input-number/src/input-number.vue +52 -25
- package/packages/link/index.js +8 -0
- package/packages/link/src/main.vue +53 -0
- package/packages/loading/src/directive.js +9 -4
- package/packages/loading/src/index.js +5 -5
- package/packages/menu/src/menu-item.vue +4 -4
- package/packages/menu/src/menu.vue +24 -10
- package/packages/menu/src/submenu.vue +26 -12
- package/packages/message/src/main.js +35 -16
- package/packages/message/src/main.vue +12 -15
- package/packages/message-box/src/main.js +6 -4
- package/packages/message-box/src/main.vue +32 -24
- package/packages/notification/src/main.js +9 -8
- package/packages/page-header/index.js +8 -0
- package/packages/page-header/src/main.vue +30 -0
- package/packages/pagination/src/pagination.js +36 -77
- package/packages/popconfirm/index.js +8 -0
- package/packages/popconfirm/src/main.vue +104 -0
- package/packages/popover/src/directive.js +5 -1
- package/packages/popover/src/main.vue +49 -31
- package/packages/progress/src/progress.vue +118 -21
- package/packages/radio/index.js +1 -1
- package/packages/radio/src/radio-button.vue +7 -3
- package/packages/radio/src/radio-group.vue +9 -3
- package/packages/radio/src/radio.vue +6 -3
- package/packages/rate/src/main.vue +36 -37
- package/packages/result/index.js +8 -0
- package/packages/result/src/icon-error.vue +13 -0
- package/packages/result/src/icon-info.vue +13 -0
- package/packages/result/src/icon-success.vue +13 -0
- package/packages/result/src/icon-warning.vue +13 -0
- package/packages/result/src/index.vue +65 -0
- package/packages/row/src/row.js +2 -5
- package/packages/scrollbar/src/bar.js +5 -1
- package/packages/scrollbar/src/main.js +3 -3
- package/packages/select/src/option-group.vue +1 -1
- package/packages/select/src/option.vue +22 -9
- package/packages/select/src/select-dropdown.vue +1 -1
- package/packages/select/src/select.vue +126 -105
- package/packages/skeleton/index.js +8 -0
- package/packages/skeleton/src/img-placeholder.vue +16 -0
- package/packages/skeleton/src/index.vue +76 -0
- package/packages/skeleton/src/item.vue +22 -0
- package/packages/skeleton-item/index.js +8 -0
- package/packages/slider/src/button.vue +6 -9
- package/packages/slider/src/main.vue +60 -32
- package/packages/slider/src/marker.js +18 -0
- package/packages/spinner/src/spinner.vue +1 -1
- package/packages/statistic/index.js +8 -0
- package/packages/statistic/src/main.vue +204 -0
- package/packages/steps/src/step.vue +5 -1
- package/packages/steps/src/steps.vue +1 -1
- package/packages/switch/src/component.vue +18 -7
- package/packages/table/src/config.js +124 -0
- package/packages/table/src/filter-panel.vue +9 -18
- package/packages/table/src/layout-observer.js +2 -2
- package/packages/table/src/store/current.js +76 -0
- package/packages/table/src/store/expand.js +65 -0
- package/packages/table/src/store/helper.js +41 -0
- package/packages/table/src/store/index.js +147 -0
- package/packages/table/src/store/tree.js +209 -0
- package/packages/table/src/store/watcher.js +381 -0
- package/packages/table/src/table-body.js +221 -166
- package/packages/table/src/table-column.js +203 -308
- package/packages/table/src/table-footer.js +75 -65
- package/packages/table/src/table-header.js +68 -77
- package/packages/table/src/table-layout.js +43 -25
- package/packages/table/src/table-row.js +101 -0
- package/packages/table/src/table.vue +155 -99
- package/packages/table/src/util.js +164 -1
- package/packages/tabs/src/tab-bar.vue +7 -7
- package/packages/tabs/src/tab-nav.vue +35 -14
- package/packages/tabs/src/tab-pane.vue +10 -18
- package/packages/tabs/src/tabs.vue +45 -22
- package/packages/tag/src/tag.vue +35 -18
- package/packages/theme-chalk/gulpfile.js +33 -0
- package/packages/theme-chalk/package.json +36 -0
- package/packages/theme-chalk/src/alert.scss +57 -15
- package/packages/theme-chalk/src/autocomplete.scss +3 -4
- package/packages/theme-chalk/src/avatar.scss +51 -0
- package/packages/theme-chalk/src/backtop.scss +22 -0
- package/packages/theme-chalk/src/badge.scss +17 -1
- package/packages/theme-chalk/src/button.scss +40 -20
- package/packages/theme-chalk/src/calendar.scss +79 -0
- package/packages/theme-chalk/src/carousel.scss +33 -6
- package/packages/theme-chalk/src/cascader-panel.scss +120 -0
- package/packages/theme-chalk/src/cascader.scss +118 -112
- package/packages/theme-chalk/src/checkbox.scss +18 -17
- package/packages/theme-chalk/src/collapse.scss +16 -9
- package/packages/theme-chalk/src/common/popup.scss +3 -2
- package/packages/theme-chalk/src/common/var.scss +500 -184
- package/packages/theme-chalk/src/date-picker/date-picker.scss +1 -1
- package/packages/theme-chalk/src/date-picker/date-range-picker.scss +4 -7
- package/packages/theme-chalk/src/date-picker/date-table.scss +11 -11
- package/packages/theme-chalk/src/date-picker/month-table.scss +48 -6
- package/packages/theme-chalk/src/date-picker/picker-panel.scss +3 -3
- package/packages/theme-chalk/src/date-picker/picker.scss +7 -0
- package/packages/theme-chalk/src/date-picker/time-picker.scss +1 -0
- package/packages/theme-chalk/src/date-picker/year-table.scss +9 -2
- package/packages/theme-chalk/src/descriptions-item.scss +42 -0
- package/packages/theme-chalk/src/descriptions.scss +111 -0
- package/packages/theme-chalk/src/dialog.scss +5 -4
- package/packages/theme-chalk/src/divider.scss +47 -0
- package/packages/theme-chalk/src/drawer.scss +219 -0
- package/packages/theme-chalk/src/dropdown.scss +14 -1
- package/packages/theme-chalk/src/empty.scss +45 -0
- package/packages/theme-chalk/src/fonts/element-icons.ttf +0 -0
- package/packages/theme-chalk/src/fonts/element-icons.woff +0 -0
- package/packages/theme-chalk/src/form.scss +18 -23
- package/packages/theme-chalk/src/icon.scss +1052 -71
- package/packages/theme-chalk/src/image.scss +179 -0
- package/packages/theme-chalk/src/index.scss +20 -0
- package/packages/theme-chalk/src/input.scss +56 -5
- package/packages/theme-chalk/src/link.scss +81 -0
- package/packages/theme-chalk/src/main.scss +2 -0
- package/packages/theme-chalk/src/menu.scss +11 -8
- package/packages/theme-chalk/src/message-box.scss +14 -11
- package/packages/theme-chalk/src/message.scss +10 -10
- package/packages/theme-chalk/src/notification.scss +8 -7
- package/packages/theme-chalk/src/option.scss +1 -5
- package/packages/theme-chalk/src/page-header.scss +41 -0
- package/packages/theme-chalk/src/pagination.scss +9 -10
- package/packages/theme-chalk/src/popconfirm.scss +16 -0
- package/packages/theme-chalk/src/popover.scss +3 -2
- package/packages/theme-chalk/src/popper.scss +4 -4
- package/packages/theme-chalk/src/progress.scss +13 -1
- package/packages/theme-chalk/src/radio-button.scss +8 -8
- package/packages/theme-chalk/src/radio.scss +7 -6
- package/packages/theme-chalk/src/result.scss +61 -0
- package/packages/theme-chalk/src/row.scss +4 -0
- package/packages/theme-chalk/src/scrollbar.scss +1 -0
- package/packages/theme-chalk/src/select-dropdown.scss +5 -2
- package/packages/theme-chalk/src/select.scss +14 -6
- package/packages/theme-chalk/src/skeleton-item.scss +84 -0
- package/packages/theme-chalk/src/skeleton.scss +40 -0
- package/packages/theme-chalk/src/slider.scss +22 -0
- package/packages/theme-chalk/src/statistic.scss +38 -0
- package/packages/theme-chalk/src/switch.scss +0 -3
- package/packages/theme-chalk/src/table.scss +67 -60
- package/packages/theme-chalk/src/tabs.scss +58 -32
- package/packages/theme-chalk/src/tag.scss +85 -68
- package/packages/theme-chalk/src/timeline-item.scss +86 -0
- package/packages/theme-chalk/src/timeline.scss +14 -0
- package/packages/theme-chalk/src/tooltip.scss +1 -0
- package/packages/theme-chalk/src/transfer.scss +2 -2
- package/packages/theme-chalk/src/tree.scss +8 -5
- package/packages/theme-chalk/src/upload.scss +1 -0
- package/packages/timeline/index.js +8 -0
- package/packages/timeline/src/item.vue +73 -0
- package/packages/timeline/src/main.vue +33 -0
- package/packages/timeline-item/index.js +8 -0
- package/packages/tooltip/src/main.js +52 -26
- package/packages/transfer/src/main.vue +15 -7
- package/packages/transfer/src/transfer-panel.vue +4 -4
- package/packages/tree/src/model/node.js +27 -21
- package/packages/tree/src/model/tree-store.js +22 -16
- package/packages/tree/src/tree-node.vue +16 -10
- package/packages/tree/src/tree.vue +41 -27
- package/packages/upload/src/index.vue +42 -13
- package/packages/upload/src/upload-list.vue +46 -41
- package/src/directives/repeat-click.js +6 -4
- package/src/index.js +66 -8
- package/src/locale/format.js +1 -1
- package/src/locale/index.js +1 -1
- package/src/locale/lang/af-ZA.js +15 -1
- package/src/locale/lang/ar.js +26 -12
- package/src/locale/lang/az.js +126 -0
- package/src/locale/lang/bg.js +15 -1
- package/src/locale/lang/bn.js +126 -0
- package/src/locale/lang/ca.js +21 -7
- package/src/locale/lang/cs-CZ.js +15 -1
- package/src/locale/lang/da.js +15 -1
- package/src/locale/lang/de.js +15 -1
- package/src/locale/lang/ee.js +20 -6
- package/src/locale/lang/el.js +16 -2
- package/src/locale/lang/en.js +16 -2
- package/src/locale/lang/eo.js +123 -0
- package/src/locale/lang/es.js +19 -5
- package/src/locale/lang/eu.js +123 -0
- package/src/locale/lang/fa.js +20 -6
- package/src/locale/lang/fi.js +36 -22
- package/src/locale/lang/fr.js +15 -1
- package/src/locale/lang/he.js +15 -1
- package/src/locale/lang/hr.js +123 -0
- package/src/locale/lang/hu.js +16 -2
- package/src/locale/lang/hy-AM.js +123 -0
- package/src/locale/lang/id.js +20 -6
- package/src/locale/lang/is.js +124 -0
- package/src/locale/lang/it.js +18 -4
- package/src/locale/lang/ja.js +15 -1
- package/src/locale/lang/kg.js +123 -0
- package/src/locale/lang/km.js +18 -4
- package/src/locale/lang/ko.js +15 -1
- package/src/locale/lang/ku.js +15 -1
- package/src/locale/lang/kz.js +15 -1
- package/src/locale/lang/lt.js +15 -1
- package/src/locale/lang/lv.js +22 -8
- package/src/locale/lang/mn.js +15 -1
- package/src/locale/lang/ms.js +122 -0
- package/src/locale/lang/nb-NO.js +25 -11
- package/src/locale/lang/nl.js +15 -1
- package/src/locale/lang/pl.js +15 -1
- package/src/locale/lang/pt-br.js +15 -1
- package/src/locale/lang/pt.js +15 -1
- package/src/locale/lang/ro.js +15 -1
- package/src/locale/lang/ru-RU.js +17 -3
- package/src/locale/lang/si.js +123 -0
- package/src/locale/lang/sk.js +20 -6
- package/src/locale/lang/sl.js +21 -7
- package/src/locale/lang/sr-Latn.js +123 -0
- package/src/locale/lang/sr.js +123 -0
- package/src/locale/lang/sv-SE.js +23 -9
- package/src/locale/lang/sw.js +123 -0
- package/src/locale/lang/ta.js +15 -1
- package/src/locale/lang/th.js +22 -8
- package/src/locale/lang/tk.js +15 -1
- package/src/locale/lang/tr-TR.js +16 -2
- package/src/locale/lang/ua.js +17 -3
- package/src/locale/lang/ug-CN.js +19 -5
- package/src/locale/lang/uz-UZ.js +123 -0
- package/src/locale/lang/vi.js +20 -6
- package/src/locale/lang/zh-CN.js +15 -1
- package/src/locale/lang/zh-TW.js +15 -1
- package/src/mixins/locale.js +1 -1
- package/src/mixins/migrating.js +6 -3
- package/src/transitions/collapse-transition.js +1 -1
- package/src/utils/aria-utils.js +2 -1
- package/src/utils/clickoutside.js +1 -1
- package/{packages/date-picker/src/util/index.js → src/utils/date-util.js} +69 -27
- package/src/utils/date.js +54 -30
- package/src/utils/dom.js +55 -2
- package/src/utils/lodash.js +18075 -0
- package/src/utils/merge.js +3 -13
- package/src/utils/popup/index.js +3 -11
- package/src/utils/popup/popup-manager.js +3 -3
- package/src/utils/resize-event.js +2 -1
- package/src/utils/types.js +38 -0
- package/src/utils/util.js +161 -0
- package/src/utils/vdom.js +1 -5
- package/src/utils/vue-popper.js +2 -1
- package/types/alert.d.ts +4 -0
- package/types/autocomplete.d.ts +6 -3
- package/types/avatar.d.ts +20 -0
- package/types/backtop.d.ts +16 -0
- package/types/calendar.d.ts +15 -0
- package/types/carousel.d.ts +4 -0
- package/types/cascader-panel.d.ts +72 -0
- package/types/cascader.d.ts +29 -21
- package/types/collapse-item.d.ts +3 -0
- package/types/descriptions-item.d.ts +37 -0
- package/types/descriptions.d.ts +52 -0
- package/types/dialog.d.ts +3 -0
- package/types/divider.d.ts +12 -0
- package/types/drawer.d.ts +63 -0
- package/types/dropdown-item.d.ts +3 -0
- package/types/dropdown.d.ts +12 -0
- package/types/element-ui.d.ts +91 -3
- package/types/empty.d.ts +31 -0
- package/types/form.d.ts +6 -6
- package/types/icon.d.ts +7 -0
- package/types/image.d.ts +43 -0
- package/types/infinite-scroll.d.ts +6 -0
- package/types/input-number.d.ts +4 -1
- package/types/input.d.ts +16 -1
- package/types/link.d.ts +25 -0
- package/types/loading.d.ts +3 -1
- package/types/message-box.d.ts +14 -4
- package/types/message.d.ts +17 -2
- package/types/page-header.d.ts +10 -0
- package/types/pagination.d.ts +3 -0
- package/types/popconfirm.d.ts +29 -0
- package/types/popover.d.ts +7 -1
- package/types/progress.d.ts +7 -1
- package/types/rate.d.ts +16 -4
- package/types/result.d.ts +33 -0
- package/types/select.d.ts +9 -0
- package/types/skeleton-item.d.ts +7 -0
- package/types/skeleton.d.ts +33 -0
- package/types/slider.d.ts +6 -0
- package/types/spinner.d.ts +16 -0
- package/types/statistic.d.ts +37 -0
- package/types/submenu.d.ts +1 -1
- package/types/switch.d.ts +3 -0
- package/types/table-column.d.ts +1 -1
- package/types/table.d.ts +58 -3
- package/types/tabs.d.ts +4 -1
- package/types/tag.d.ts +5 -1
- package/types/timeline-item.d.ts +20 -0
- package/types/timeline.d.ts +6 -0
- package/types/tooltip.d.ts +3 -0
- package/types/tree.d.ts +120 -97
- package/types/upload.d.ts +7 -4
- package/web-types.json +4195 -0
- package/CHANGELOG.en-US.md +0 -576
- package/CHANGELOG.es.md +0 -581
- package/CHANGELOG.zh-CN.md +0 -576
- package/lib/utils/sync.js +0 -59
- package/packages/carousel/_index.js +0 -10
- package/packages/carousel/cooking.conf.js +0 -6
- package/packages/carousel/package.json +0 -17
- package/packages/cascader/cooking.conf.js +0 -18
- package/packages/cascader/package.json +0 -15
- package/packages/cascader/src/main.vue +0 -438
- package/packages/cascader/src/menu.vue +0 -369
- package/packages/color-picker/cooking.conf.js +0 -6
- package/packages/color-picker/package.json +0 -15
- package/packages/date-picker/README.md +0 -64
- package/packages/date-picker/_index.js +0 -12
- package/packages/date-picker/cooking.conf.js +0 -6
- package/packages/date-picker/package.json +0 -15
- package/packages/loading/README.md +0 -66
- package/packages/loading/cooking.conf.js +0 -6
- package/packages/loading/package.json +0 -15
- package/packages/pagination/README.md +0 -59
- package/packages/pagination/cooking.conf.js +0 -6
- package/packages/pagination/package.json +0 -15
- package/packages/table/README.md +0 -106
- package/packages/table/_index.js +0 -10
- package/packages/table/cooking.conf.js +0 -6
- package/packages/table/package.json +0 -17
- package/packages/table/src/table-store.js +0 -619
- package/packages/theme-chalk/lib/alert.css +0 -1
- package/packages/theme-chalk/lib/aside.css +0 -1
- package/packages/theme-chalk/lib/autocomplete.css +0 -1
- package/packages/theme-chalk/lib/badge.css +0 -1
- package/packages/theme-chalk/lib/base.css +0 -1
- package/packages/theme-chalk/lib/breadcrumb.css +0 -1
- package/packages/theme-chalk/lib/button.css +0 -1
- package/packages/theme-chalk/lib/card.css +0 -1
- package/packages/theme-chalk/lib/carousel-item.css +0 -1
- package/packages/theme-chalk/lib/carousel.css +0 -1
- package/packages/theme-chalk/lib/cascader.css +0 -1
- package/packages/theme-chalk/lib/checkbox.css +0 -1
- package/packages/theme-chalk/lib/col.css +0 -1
- package/packages/theme-chalk/lib/collapse-item.css +0 -0
- package/packages/theme-chalk/lib/collapse.css +0 -1
- package/packages/theme-chalk/lib/color-picker.css +0 -1
- package/packages/theme-chalk/lib/container.css +0 -1
- package/packages/theme-chalk/lib/date-picker.css +0 -1
- package/packages/theme-chalk/lib/dialog.css +0 -1
- package/packages/theme-chalk/lib/display.css +0 -1
- package/packages/theme-chalk/lib/dropdown-item.css +0 -0
- package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
- package/packages/theme-chalk/lib/dropdown.css +0 -1
- package/packages/theme-chalk/lib/fonts/element-icons.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/element-icons.woff +0 -0
- package/packages/theme-chalk/lib/footer.css +0 -1
- package/packages/theme-chalk/lib/form-item.css +0 -0
- package/packages/theme-chalk/lib/form.css +0 -1
- package/packages/theme-chalk/lib/header.css +0 -1
- package/packages/theme-chalk/lib/icon.css +0 -1
- package/packages/theme-chalk/lib/index.css +0 -1
- package/packages/theme-chalk/lib/input-number.css +0 -1
- package/packages/theme-chalk/lib/input.css +0 -1
- package/packages/theme-chalk/lib/loading.css +0 -1
- package/packages/theme-chalk/lib/main.css +0 -1
- package/packages/theme-chalk/lib/menu-item-group.css +0 -0
- package/packages/theme-chalk/lib/menu-item.css +0 -0
- package/packages/theme-chalk/lib/menu.css +0 -1
- package/packages/theme-chalk/lib/message-box.css +0 -1
- package/packages/theme-chalk/lib/message.css +0 -1
- package/packages/theme-chalk/lib/notification.css +0 -1
- package/packages/theme-chalk/lib/option-group.css +0 -1
- package/packages/theme-chalk/lib/option.css +0 -1
- package/packages/theme-chalk/lib/pagination.css +0 -1
- package/packages/theme-chalk/lib/popover.css +0 -1
- package/packages/theme-chalk/lib/popper.css +0 -1
- package/packages/theme-chalk/lib/progress.css +0 -1
- package/packages/theme-chalk/lib/radio-button.css +0 -1
- package/packages/theme-chalk/lib/radio-group.css +0 -1
- package/packages/theme-chalk/lib/radio.css +0 -1
- package/packages/theme-chalk/lib/rate.css +0 -1
- package/packages/theme-chalk/lib/reset.css +0 -1
- package/packages/theme-chalk/lib/row.css +0 -1
- package/packages/theme-chalk/lib/scrollbar.css +0 -1
- package/packages/theme-chalk/lib/select-dropdown.css +0 -1
- package/packages/theme-chalk/lib/select.css +0 -1
- package/packages/theme-chalk/lib/slider.css +0 -1
- package/packages/theme-chalk/lib/spinner.css +0 -1
- package/packages/theme-chalk/lib/step.css +0 -1
- package/packages/theme-chalk/lib/steps.css +0 -1
- package/packages/theme-chalk/lib/submenu.css +0 -0
- package/packages/theme-chalk/lib/switch.css +0 -1
- package/packages/theme-chalk/lib/tab-pane.css +0 -0
- package/packages/theme-chalk/lib/table-column.css +0 -1
- package/packages/theme-chalk/lib/table.css +0 -1
- package/packages/theme-chalk/lib/tabs.css +0 -1
- package/packages/theme-chalk/lib/tag.css +0 -1
- package/packages/theme-chalk/lib/time-picker.css +0 -1
- package/packages/theme-chalk/lib/time-select.css +0 -1
- package/packages/theme-chalk/lib/tooltip.css +0 -1
- package/packages/theme-chalk/lib/transfer.css +0 -1
- package/packages/theme-chalk/lib/tree.css +0 -1
- package/packages/theme-chalk/lib/upload.css +0 -1
- package/packages/upload/README.md +0 -67
- package/packages/upload/cooking.conf.js +0 -6
- package/packages/upload/package.json +0 -16
- package/packages/upload/src/iframe-upload.vue +0 -167
- package/src/utils/sync.js +0 -54
- /package/{packages/theme-chalk/lib/breadcrumb-item.css → lib/theme-chalk/infinite-scroll.css} +0 -0
- /package/{packages/theme-chalk/lib/button-group.css → lib/theme-chalk/infiniteScroll.css} +0 -0
- /package/packages/theme-chalk/{lib/checkbox-button.css → src/infinite-scroll.scss} +0 -0
- /package/packages/theme-chalk/{lib/checkbox-group.css → src/infiniteScroll.scss} +0 -0
package/lib/table-column.js
CHANGED
|
@@ -1,128 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/
|
|
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, {
|
|
41
|
-
/******/ configurable: false,
|
|
42
|
-
/******/ enumerable: true,
|
|
43
|
-
/******/ get: getter
|
|
44
|
-
/******/ });
|
|
45
|
-
/******/ }
|
|
46
|
-
/******/ };
|
|
47
|
-
/******/
|
|
48
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
49
|
-
/******/ __webpack_require__.n = function(module) {
|
|
50
|
-
/******/ var getter = module && module.__esModule ?
|
|
51
|
-
/******/ function getDefault() { return module['default']; } :
|
|
52
|
-
/******/ function getModuleExports() { return module; };
|
|
53
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
54
|
-
/******/ return getter;
|
|
55
|
-
/******/ };
|
|
56
|
-
/******/
|
|
57
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
58
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
59
|
-
/******/
|
|
60
|
-
/******/ // __webpack_public_path__
|
|
61
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
62
|
-
/******/
|
|
63
|
-
/******/ // Load entry module and return exports
|
|
64
|
-
/******/ return __webpack_require__(__webpack_require__.s = 233);
|
|
65
|
-
/******/ })
|
|
66
|
-
/************************************************************************/
|
|
67
|
-
/******/ ({
|
|
68
|
-
|
|
69
|
-
/***/ 16:
|
|
70
|
-
/***/ (function(module, exports) {
|
|
71
|
-
|
|
72
|
-
module.exports = require("element-ui/lib/checkbox");
|
|
73
|
-
|
|
74
|
-
/***/ }),
|
|
75
|
-
|
|
76
|
-
/***/ 233:
|
|
77
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
78
4
|
|
|
79
|
-
|
|
5
|
+
/***/ 7668
|
|
6
|
+
(module, __webpack_exports__, __webpack_require__) {
|
|
80
7
|
|
|
81
8
|
|
|
82
|
-
|
|
9
|
+
// EXPORTS
|
|
10
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
"default": () => (/* binding */ packages_table_column)
|
|
12
|
+
});
|
|
83
13
|
|
|
84
|
-
|
|
14
|
+
;// ./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js
|
|
15
|
+
var helper_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) {
|
|
16
|
+
function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=[].concat(d,e)}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=[].concat(g,h)}else c[b][f]=a[b][f];}else if("hook"===b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments)}};module.exports=mergeJsxProps;
|
|
85
17
|
|
|
86
|
-
|
|
18
|
+
});
|
|
87
19
|
|
|
88
|
-
|
|
20
|
+
var helper_default = /*#__PURE__*/__webpack_require__.n(helper_namespaceObject);
|
|
21
|
+
;// external "mazey-element-ui/lib/utils/util"
|
|
22
|
+
const util_namespaceObject = require("mazey-element-ui/lib/utils/util");
|
|
23
|
+
;// ./packages/table/src/config.js
|
|
89
24
|
|
|
90
|
-
|
|
91
|
-
_tableColumn2.default.install = function (Vue) {
|
|
92
|
-
Vue.component(_tableColumn2.default.name, _tableColumn2.default);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
exports.default = _tableColumn2.default;
|
|
96
|
-
|
|
97
|
-
/***/ }),
|
|
98
|
-
|
|
99
|
-
/***/ 234:
|
|
100
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
-
|
|
102
|
-
"use strict";
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
exports.__esModule = true;
|
|
106
|
-
|
|
107
|
-
var _checkbox = __webpack_require__(16);
|
|
108
|
-
|
|
109
|
-
var _checkbox2 = _interopRequireDefault(_checkbox);
|
|
110
|
-
|
|
111
|
-
var _tag = __webpack_require__(27);
|
|
112
|
-
|
|
113
|
-
var _tag2 = _interopRequireDefault(_tag);
|
|
114
|
-
|
|
115
|
-
var _merge = __webpack_require__(9);
|
|
116
|
-
|
|
117
|
-
var _merge2 = _interopRequireDefault(_merge);
|
|
118
|
-
|
|
119
|
-
var _util = __webpack_require__(3);
|
|
120
|
-
|
|
121
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
122
|
-
|
|
123
|
-
var columnIdSeed = 1;
|
|
124
|
-
|
|
125
|
-
var defaults = {
|
|
25
|
+
var cellStarts = {
|
|
126
26
|
default: {
|
|
127
27
|
order: ''
|
|
128
28
|
},
|
|
@@ -147,40 +47,40 @@ var defaults = {
|
|
|
147
47
|
}
|
|
148
48
|
};
|
|
149
49
|
|
|
150
|
-
|
|
50
|
+
// 这些选项不应该被覆盖
|
|
51
|
+
var cellForced = {
|
|
151
52
|
selection: {
|
|
152
53
|
renderHeader: function renderHeader(h, _ref) {
|
|
153
54
|
var store = _ref.store;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
'click': this.toggleAllSelection
|
|
55
|
+
return h("el-checkbox", {
|
|
56
|
+
"attrs": {
|
|
57
|
+
"disabled": store.states.data && store.states.data.length === 0,
|
|
58
|
+
"indeterminate": store.states.selection.length > 0 && !this.isAllSelected,
|
|
59
|
+
"value": this.isAllSelected
|
|
60
|
+
},
|
|
61
|
+
"on": {
|
|
62
|
+
"input": this.toggleAllSelection
|
|
163
63
|
}
|
|
164
64
|
});
|
|
165
65
|
},
|
|
166
66
|
renderCell: function renderCell(h, _ref2) {
|
|
167
67
|
var row = _ref2.row,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return h(
|
|
173
|
-
nativeOn: {
|
|
174
|
-
|
|
68
|
+
column = _ref2.column,
|
|
69
|
+
isSelected = _ref2.isSelected,
|
|
70
|
+
store = _ref2.store,
|
|
71
|
+
$index = _ref2.$index;
|
|
72
|
+
return h("el-checkbox", {
|
|
73
|
+
"nativeOn": {
|
|
74
|
+
"click": function click(event) {
|
|
175
75
|
return event.stopPropagation();
|
|
176
76
|
}
|
|
177
77
|
},
|
|
178
|
-
attrs: {
|
|
179
|
-
value:
|
|
180
|
-
disabled: column.selectable ? !column.selectable.call(null, row, $index) : false
|
|
78
|
+
"attrs": {
|
|
79
|
+
"value": isSelected,
|
|
80
|
+
"disabled": column.selectable ? !column.selectable.call(null, row, $index) : false
|
|
181
81
|
},
|
|
182
|
-
on: {
|
|
183
|
-
|
|
82
|
+
"on": {
|
|
83
|
+
"input": function input() {
|
|
184
84
|
store.commit('rowSelectedChanged', row);
|
|
185
85
|
}
|
|
186
86
|
}
|
|
@@ -192,92 +92,250 @@ var forced = {
|
|
|
192
92
|
index: {
|
|
193
93
|
renderHeader: function renderHeader(h, _ref3) {
|
|
194
94
|
var column = _ref3.column;
|
|
195
|
-
|
|
196
95
|
return column.label || '#';
|
|
197
96
|
},
|
|
198
97
|
renderCell: function renderCell(h, _ref4) {
|
|
199
98
|
var $index = _ref4.$index,
|
|
200
|
-
|
|
201
|
-
|
|
99
|
+
column = _ref4.column;
|
|
202
100
|
var i = $index + 1;
|
|
203
101
|
var index = column.index;
|
|
204
|
-
|
|
205
102
|
if (typeof index === 'number') {
|
|
206
103
|
i = $index + index;
|
|
207
104
|
} else if (typeof index === 'function') {
|
|
208
105
|
i = index($index);
|
|
209
106
|
}
|
|
210
|
-
|
|
211
|
-
return h('div', [i]);
|
|
107
|
+
return h("div", [i]);
|
|
212
108
|
},
|
|
213
109
|
sortable: false
|
|
214
110
|
},
|
|
215
111
|
expand: {
|
|
216
112
|
renderHeader: function renderHeader(h, _ref5) {
|
|
217
113
|
var column = _ref5.column;
|
|
218
|
-
|
|
219
114
|
return column.label || '';
|
|
220
115
|
},
|
|
221
|
-
renderCell: function renderCell(h, _ref6
|
|
116
|
+
renderCell: function renderCell(h, _ref6) {
|
|
222
117
|
var row = _ref6.row,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
var
|
|
226
|
-
|
|
227
|
-
'
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
118
|
+
store = _ref6.store,
|
|
119
|
+
isExpanded = _ref6.isExpanded;
|
|
120
|
+
var classes = ['el-table__expand-icon'];
|
|
121
|
+
if (isExpanded) {
|
|
122
|
+
classes.push('el-table__expand-icon--expanded');
|
|
123
|
+
}
|
|
124
|
+
var callback = function callback(e) {
|
|
125
|
+
e.stopPropagation();
|
|
126
|
+
store.toggleRowExpansion(row);
|
|
127
|
+
};
|
|
128
|
+
return h("div", {
|
|
129
|
+
"class": classes,
|
|
130
|
+
"on": {
|
|
131
|
+
"click": callback
|
|
132
|
+
}
|
|
133
|
+
}, [h("i", {
|
|
134
|
+
"class": 'el-icon el-icon-arrow-right'
|
|
135
|
+
})]);
|
|
237
136
|
},
|
|
238
137
|
sortable: false,
|
|
239
138
|
resizable: false,
|
|
240
139
|
className: 'el-table__expand-column'
|
|
241
140
|
}
|
|
242
141
|
};
|
|
243
|
-
|
|
244
|
-
var
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
142
|
+
function defaultRenderCell(h, _ref7) {
|
|
143
|
+
var row = _ref7.row,
|
|
144
|
+
column = _ref7.column,
|
|
145
|
+
$index = _ref7.$index;
|
|
146
|
+
var property = column.property;
|
|
147
|
+
var value = property && (0,util_namespaceObject.getPropByPath)(row, property).v;
|
|
148
|
+
if (column && column.formatter) {
|
|
149
|
+
return column.formatter(row, column, value, $index);
|
|
150
|
+
}
|
|
151
|
+
return value;
|
|
152
|
+
}
|
|
153
|
+
function treeCellPrefix(h, _ref8) {
|
|
154
|
+
var row = _ref8.row,
|
|
155
|
+
treeNode = _ref8.treeNode,
|
|
156
|
+
store = _ref8.store;
|
|
157
|
+
if (!treeNode) return null;
|
|
158
|
+
var ele = [];
|
|
159
|
+
var callback = function callback(e) {
|
|
160
|
+
e.stopPropagation();
|
|
161
|
+
store.loadOrToggle(row);
|
|
162
|
+
};
|
|
163
|
+
if (treeNode.indent) {
|
|
164
|
+
ele.push(h("span", {
|
|
165
|
+
"class": "el-table__indent",
|
|
166
|
+
"style": {
|
|
167
|
+
'padding-left': treeNode.indent + 'px'
|
|
168
|
+
}
|
|
169
|
+
}));
|
|
170
|
+
}
|
|
171
|
+
if (typeof treeNode.expanded === 'boolean' && !treeNode.noLazyChildren) {
|
|
172
|
+
var expandClasses = ['el-table__expand-icon', treeNode.expanded ? 'el-table__expand-icon--expanded' : ''];
|
|
173
|
+
var iconClasses = ['el-icon-arrow-right'];
|
|
174
|
+
if (treeNode.loading) {
|
|
175
|
+
iconClasses = ['el-icon-loading'];
|
|
176
|
+
}
|
|
177
|
+
ele.push(h("div", {
|
|
178
|
+
"class": expandClasses,
|
|
179
|
+
"on": {
|
|
180
|
+
"click": callback
|
|
254
181
|
}
|
|
182
|
+
}, [h("i", {
|
|
183
|
+
"class": iconClasses
|
|
184
|
+
})]));
|
|
185
|
+
} else {
|
|
186
|
+
ele.push(h("span", {
|
|
187
|
+
"class": "el-table__placeholder"
|
|
188
|
+
}));
|
|
189
|
+
}
|
|
190
|
+
return ele;
|
|
191
|
+
}
|
|
192
|
+
;// ./packages/table/src/util.js
|
|
193
|
+
/* unused harmony import specifier */ var getValueByPath;
|
|
194
|
+
|
|
195
|
+
var getCell = function getCell(event) {
|
|
196
|
+
var cell = event.target;
|
|
197
|
+
while (cell && cell.tagName.toUpperCase() !== 'HTML') {
|
|
198
|
+
if (cell.tagName.toUpperCase() === 'TD') {
|
|
199
|
+
return cell;
|
|
255
200
|
}
|
|
201
|
+
cell = cell.parentNode;
|
|
256
202
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
203
|
+
return null;
|
|
204
|
+
};
|
|
205
|
+
var isObject = function isObject(obj) {
|
|
206
|
+
return obj !== null && typeof obj === 'object';
|
|
207
|
+
};
|
|
208
|
+
var orderBy = function orderBy(array, sortKey, reverse, sortMethod, sortBy) {
|
|
209
|
+
if (!sortKey && !sortMethod && (!sortBy || Array.isArray(sortBy) && !sortBy.length)) {
|
|
210
|
+
return array;
|
|
260
211
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
212
|
+
if (typeof reverse === 'string') {
|
|
213
|
+
reverse = reverse === 'descending' ? -1 : 1;
|
|
214
|
+
} else {
|
|
215
|
+
reverse = reverse && reverse < 0 ? -1 : 1;
|
|
216
|
+
}
|
|
217
|
+
var getKey = sortMethod ? null : function (value, index) {
|
|
218
|
+
if (sortBy) {
|
|
219
|
+
if (!Array.isArray(sortBy)) {
|
|
220
|
+
sortBy = [sortBy];
|
|
221
|
+
}
|
|
222
|
+
return sortBy.map(function (by) {
|
|
223
|
+
if (typeof by === 'string') {
|
|
224
|
+
return getValueByPath(value, by);
|
|
225
|
+
} else {
|
|
226
|
+
return by(value, index, array);
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
if (sortKey !== '$key') {
|
|
231
|
+
if (isObject(value) && '$value' in value) value = value.$value;
|
|
232
|
+
}
|
|
233
|
+
return [isObject(value) ? getValueByPath(value, sortKey) : value];
|
|
234
|
+
};
|
|
235
|
+
var compare = function compare(a, b) {
|
|
236
|
+
if (sortMethod) {
|
|
237
|
+
return sortMethod(a.value, b.value);
|
|
238
|
+
}
|
|
239
|
+
for (var i = 0, len = a.key.length; i < len; i++) {
|
|
240
|
+
if (a.key[i] < b.key[i]) {
|
|
241
|
+
return -1;
|
|
242
|
+
}
|
|
243
|
+
if (a.key[i] > b.key[i]) {
|
|
244
|
+
return 1;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return 0;
|
|
248
|
+
};
|
|
249
|
+
return array.map(function (value, index) {
|
|
250
|
+
return {
|
|
251
|
+
value: value,
|
|
252
|
+
index: index,
|
|
253
|
+
key: getKey ? getKey(value, index) : null
|
|
254
|
+
};
|
|
255
|
+
}).sort(function (a, b) {
|
|
256
|
+
var order = compare(a, b);
|
|
257
|
+
if (!order) {
|
|
258
|
+
// make stable https://en.wikipedia.org/wiki/Sorting_algorithm#Stability
|
|
259
|
+
order = a.index - b.index;
|
|
260
|
+
}
|
|
261
|
+
return order * reverse;
|
|
262
|
+
}).map(function (item) {
|
|
263
|
+
return item.value;
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
var getColumnById = function getColumnById(table, columnId) {
|
|
267
|
+
var column = null;
|
|
268
|
+
table.columns.forEach(function (item) {
|
|
269
|
+
if (item.id === columnId) {
|
|
270
|
+
column = item;
|
|
271
|
+
}
|
|
272
|
+
});
|
|
264
273
|
return column;
|
|
265
274
|
};
|
|
266
|
-
|
|
267
|
-
var
|
|
268
|
-
var
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
if (column && column.formatter) {
|
|
275
|
-
return column.formatter(row, column, value, $index);
|
|
275
|
+
var getColumnByKey = function getColumnByKey(table, columnKey) {
|
|
276
|
+
var column = null;
|
|
277
|
+
for (var i = 0; i < table.columns.length; i++) {
|
|
278
|
+
var item = table.columns[i];
|
|
279
|
+
if (item.columnKey === columnKey) {
|
|
280
|
+
column = item;
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
276
283
|
}
|
|
277
|
-
return
|
|
284
|
+
return column;
|
|
278
285
|
};
|
|
279
|
-
|
|
280
|
-
var
|
|
286
|
+
var getColumnByCell = function getColumnByCell(table, cell) {
|
|
287
|
+
var matches = (cell.className || '').match(/el-table_[^\s]+/gm);
|
|
288
|
+
if (matches) {
|
|
289
|
+
return getColumnById(table, matches[0]);
|
|
290
|
+
}
|
|
291
|
+
return null;
|
|
292
|
+
};
|
|
293
|
+
var getRowIdentity = function getRowIdentity(row, rowKey) {
|
|
294
|
+
if (!row) throw new Error('row is required when get row identity');
|
|
295
|
+
if (typeof rowKey === 'string') {
|
|
296
|
+
if (rowKey.indexOf('.') < 0) {
|
|
297
|
+
return row[rowKey];
|
|
298
|
+
}
|
|
299
|
+
var key = rowKey.split('.');
|
|
300
|
+
var current = row;
|
|
301
|
+
for (var i = 0; i < key.length; i++) {
|
|
302
|
+
current = current[key[i]];
|
|
303
|
+
}
|
|
304
|
+
return current;
|
|
305
|
+
} else if (typeof rowKey === 'function') {
|
|
306
|
+
return rowKey.call(null, row);
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
var getKeysMap = function getKeysMap(array, rowKey) {
|
|
310
|
+
var arrayMap = {};
|
|
311
|
+
(array || []).forEach(function (row, index) {
|
|
312
|
+
arrayMap[getRowIdentity(row, rowKey)] = {
|
|
313
|
+
row: row,
|
|
314
|
+
index: index
|
|
315
|
+
};
|
|
316
|
+
});
|
|
317
|
+
return arrayMap;
|
|
318
|
+
};
|
|
319
|
+
function hasOwn(obj, key) {
|
|
320
|
+
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
321
|
+
}
|
|
322
|
+
function mergeOptions(defaults, config) {
|
|
323
|
+
var options = {};
|
|
324
|
+
var key;
|
|
325
|
+
for (key in defaults) {
|
|
326
|
+
options[key] = defaults[key];
|
|
327
|
+
}
|
|
328
|
+
for (key in config) {
|
|
329
|
+
if (hasOwn(config, key)) {
|
|
330
|
+
var value = config[key];
|
|
331
|
+
if (typeof value !== 'undefined') {
|
|
332
|
+
options[key] = value;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
return options;
|
|
337
|
+
}
|
|
338
|
+
function parseWidth(width) {
|
|
281
339
|
if (width !== undefined) {
|
|
282
340
|
width = parseInt(width, 10);
|
|
283
341
|
if (isNaN(width)) {
|
|
@@ -285,21 +343,140 @@ var parseWidth = function parseWidth(width) {
|
|
|
285
343
|
}
|
|
286
344
|
}
|
|
287
345
|
return width;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
minWidth = parseInt(minWidth, 10);
|
|
346
|
+
}
|
|
347
|
+
function parseMinWidth(minWidth) {
|
|
348
|
+
if (typeof minWidth !== 'undefined') {
|
|
349
|
+
minWidth = parseWidth(minWidth);
|
|
293
350
|
if (isNaN(minWidth)) {
|
|
294
351
|
minWidth = 80;
|
|
295
352
|
}
|
|
296
353
|
}
|
|
297
354
|
return minWidth;
|
|
355
|
+
}
|
|
356
|
+
;
|
|
357
|
+
function parseHeight(height) {
|
|
358
|
+
if (typeof height === 'number') {
|
|
359
|
+
return height;
|
|
360
|
+
}
|
|
361
|
+
if (typeof height === 'string') {
|
|
362
|
+
if (/^\d+(?:px)?$/.test(height)) {
|
|
363
|
+
return parseInt(height, 10);
|
|
364
|
+
} else {
|
|
365
|
+
return height;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
return null;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// https://github.com/reduxjs/redux/blob/master/src/compose.js
|
|
372
|
+
function compose() {
|
|
373
|
+
for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
374
|
+
funcs[_key] = arguments[_key];
|
|
375
|
+
}
|
|
376
|
+
if (funcs.length === 0) {
|
|
377
|
+
return function (arg) {
|
|
378
|
+
return arg;
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
if (funcs.length === 1) {
|
|
382
|
+
return funcs[0];
|
|
383
|
+
}
|
|
384
|
+
return funcs.reduce(function (a, b) {
|
|
385
|
+
return function () {
|
|
386
|
+
return a(b.apply(void 0, arguments));
|
|
387
|
+
};
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
function toggleRowStatus(statusArr, row, newVal) {
|
|
391
|
+
var changed = false;
|
|
392
|
+
var index = statusArr.indexOf(row);
|
|
393
|
+
var included = index !== -1;
|
|
394
|
+
var addRow = function addRow() {
|
|
395
|
+
statusArr.push(row);
|
|
396
|
+
changed = true;
|
|
397
|
+
};
|
|
398
|
+
var removeRow = function removeRow() {
|
|
399
|
+
statusArr.splice(index, 1);
|
|
400
|
+
changed = true;
|
|
401
|
+
};
|
|
402
|
+
if (typeof newVal === 'boolean') {
|
|
403
|
+
if (newVal && !included) {
|
|
404
|
+
addRow();
|
|
405
|
+
} else if (!newVal && included) {
|
|
406
|
+
removeRow();
|
|
407
|
+
}
|
|
408
|
+
} else {
|
|
409
|
+
if (included) {
|
|
410
|
+
removeRow();
|
|
411
|
+
} else {
|
|
412
|
+
addRow();
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return changed;
|
|
416
|
+
}
|
|
417
|
+
function walkTreeNode(root, cb, childrenKey, lazyKey) {
|
|
418
|
+
if (childrenKey === void 0) {
|
|
419
|
+
childrenKey = 'children';
|
|
420
|
+
}
|
|
421
|
+
if (lazyKey === void 0) {
|
|
422
|
+
lazyKey = 'hasChildren';
|
|
423
|
+
}
|
|
424
|
+
var isNil = function isNil(array) {
|
|
425
|
+
return !(Array.isArray(array) && array.length);
|
|
426
|
+
};
|
|
427
|
+
function _walker(parent, children, level) {
|
|
428
|
+
cb(parent, children, level);
|
|
429
|
+
children.forEach(function (item) {
|
|
430
|
+
if (item[lazyKey]) {
|
|
431
|
+
cb(item, null, level + 1);
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
var children = item[childrenKey];
|
|
435
|
+
if (!isNil(children)) {
|
|
436
|
+
_walker(item, children, level + 1);
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
root.forEach(function (item) {
|
|
441
|
+
if (item[lazyKey]) {
|
|
442
|
+
cb(item, null, 0);
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
var children = item[childrenKey];
|
|
446
|
+
if (!isNil(children)) {
|
|
447
|
+
_walker(item, children, 0);
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
var objectEquals = function objectEquals(objectA, objectB) {
|
|
452
|
+
// 取对象a和b的属性名
|
|
453
|
+
var aProps = Object.getOwnPropertyNames(objectA);
|
|
454
|
+
var bProps = Object.getOwnPropertyNames(objectB);
|
|
455
|
+
// 判断属性名的length是否一致
|
|
456
|
+
if (aProps.length !== bProps.length) {
|
|
457
|
+
return false;
|
|
458
|
+
}
|
|
459
|
+
// 循环取出属性名,再判断属性值是否一致
|
|
460
|
+
for (var i = 0; i < aProps.length; i++) {
|
|
461
|
+
var propName = aProps[i];
|
|
462
|
+
if (objectA[propName] !== objectB[propName]) {
|
|
463
|
+
return false;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return true;
|
|
298
467
|
};
|
|
468
|
+
;// external "mazey-element-ui/lib/checkbox"
|
|
469
|
+
const checkbox_namespaceObject = require("mazey-element-ui/lib/checkbox");
|
|
470
|
+
var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_namespaceObject);
|
|
471
|
+
;// ./packages/table/src/table-column.js
|
|
299
472
|
|
|
300
|
-
|
|
301
|
-
|
|
473
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
474
|
+
;
|
|
302
475
|
|
|
476
|
+
|
|
477
|
+
var columnIdSeed = 1;
|
|
478
|
+
/* harmony default export */ const table_column = ({
|
|
479
|
+
name: 'ElTableColumn',
|
|
303
480
|
props: {
|
|
304
481
|
type: {
|
|
305
482
|
type: String,
|
|
@@ -314,7 +491,7 @@ exports.default = {
|
|
|
314
491
|
minWidth: {},
|
|
315
492
|
renderHeader: Function,
|
|
316
493
|
sortable: {
|
|
317
|
-
type: [
|
|
494
|
+
type: [Boolean, String],
|
|
318
495
|
default: false
|
|
319
496
|
},
|
|
320
497
|
sortMethod: Function,
|
|
@@ -323,7 +500,6 @@ exports.default = {
|
|
|
323
500
|
type: Boolean,
|
|
324
501
|
default: true
|
|
325
502
|
},
|
|
326
|
-
context: {},
|
|
327
503
|
columnKey: String,
|
|
328
504
|
align: String,
|
|
329
505
|
headerAlign: String,
|
|
@@ -354,25 +530,12 @@ exports.default = {
|
|
|
354
530
|
}
|
|
355
531
|
}
|
|
356
532
|
},
|
|
357
|
-
|
|
358
533
|
data: function data() {
|
|
359
534
|
return {
|
|
360
535
|
isSubColumn: false,
|
|
361
536
|
columns: []
|
|
362
537
|
};
|
|
363
538
|
},
|
|
364
|
-
beforeCreate: function beforeCreate() {
|
|
365
|
-
this.row = {};
|
|
366
|
-
this.column = {};
|
|
367
|
-
this.$index = 0;
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
components: {
|
|
372
|
-
ElCheckbox: _checkbox2.default,
|
|
373
|
-
ElTag: _tag2.default
|
|
374
|
-
},
|
|
375
|
-
|
|
376
539
|
computed: {
|
|
377
540
|
owner: function owner() {
|
|
378
541
|
var parent = this.$parent;
|
|
@@ -387,230 +550,320 @@ exports.default = {
|
|
|
387
550
|
parent = parent.$parent;
|
|
388
551
|
}
|
|
389
552
|
return parent;
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
|
|
393
|
-
created: function created() {
|
|
394
|
-
var _this = this;
|
|
395
|
-
|
|
396
|
-
var h = this.$createElement;
|
|
397
|
-
|
|
398
|
-
this.customRender = this.$options.render;
|
|
399
|
-
this.$options.render = function (h) {
|
|
400
|
-
return h('div', _this.$slots.default);
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
var parent = this.columnOrTableParent;
|
|
404
|
-
var owner = this.owner;
|
|
405
|
-
this.isSubColumn = owner !== parent;
|
|
406
|
-
this.columnId = (parent.tableId || parent.columnId) + '_column_' + columnIdSeed++;
|
|
407
|
-
|
|
408
|
-
var type = this.type;
|
|
409
|
-
|
|
410
|
-
var width = parseWidth(this.width);
|
|
411
|
-
var minWidth = parseMinWidth(this.minWidth);
|
|
412
|
-
|
|
413
|
-
var isColumnGroup = false;
|
|
414
|
-
|
|
415
|
-
var column = getDefaultColumn(type, {
|
|
416
|
-
id: this.columnId,
|
|
417
|
-
columnKey: this.columnKey,
|
|
418
|
-
label: this.label,
|
|
419
|
-
className: this.className,
|
|
420
|
-
labelClassName: this.labelClassName,
|
|
421
|
-
property: this.prop || this.property,
|
|
422
|
-
type: type,
|
|
423
|
-
renderCell: null,
|
|
424
|
-
renderHeader: this.renderHeader,
|
|
425
|
-
minWidth: minWidth,
|
|
426
|
-
width: width,
|
|
427
|
-
isColumnGroup: isColumnGroup,
|
|
428
|
-
context: this.context,
|
|
429
|
-
align: this.align ? 'is-' + this.align : null,
|
|
430
|
-
headerAlign: this.headerAlign ? 'is-' + this.headerAlign : this.align ? 'is-' + this.align : null,
|
|
431
|
-
sortable: this.sortable === '' ? true : this.sortable,
|
|
432
|
-
sortMethod: this.sortMethod,
|
|
433
|
-
sortBy: this.sortBy,
|
|
434
|
-
resizable: this.resizable,
|
|
435
|
-
showOverflowTooltip: this.showOverflowTooltip || this.showTooltipWhenOverflow,
|
|
436
|
-
formatter: this.formatter,
|
|
437
|
-
selectable: this.selectable,
|
|
438
|
-
reserveSelection: this.reserveSelection,
|
|
439
|
-
fixed: this.fixed === '' ? true : this.fixed,
|
|
440
|
-
filterMethod: this.filterMethod,
|
|
441
|
-
filters: this.filters,
|
|
442
|
-
filterable: this.filters || this.filterMethod,
|
|
443
|
-
filterMultiple: this.filterMultiple,
|
|
444
|
-
filterOpened: false,
|
|
445
|
-
filteredValue: this.filteredValue || [],
|
|
446
|
-
filterPlacement: this.filterPlacement || '',
|
|
447
|
-
index: this.index,
|
|
448
|
-
sortOrders: this.sortOrders
|
|
449
|
-
});
|
|
450
|
-
|
|
451
|
-
(0, _merge2.default)(column, forced[type] || {});
|
|
452
|
-
|
|
453
|
-
this.columnConfig = column;
|
|
454
|
-
|
|
455
|
-
var renderCell = column.renderCell;
|
|
456
|
-
var _self = this;
|
|
457
|
-
|
|
458
|
-
if (type === 'expand') {
|
|
459
|
-
owner.renderExpanded = function (h, data) {
|
|
460
|
-
return _self.$scopedSlots.default ? _self.$scopedSlots.default(data) : _self.$slots.default;
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
column.renderCell = function (h, data) {
|
|
464
|
-
return h(
|
|
465
|
-
'div',
|
|
466
|
-
{ 'class': 'cell' },
|
|
467
|
-
[renderCell(h, data, this._renderProxy)]
|
|
468
|
-
);
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
column.renderCell = function (h, data) {
|
|
475
|
-
if (_self.$scopedSlots.default) {
|
|
476
|
-
renderCell = function renderCell() {
|
|
477
|
-
return _self.$scopedSlots.default(data);
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
if (!renderCell) {
|
|
482
|
-
renderCell = DEFAULT_RENDER_CELL;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
return _self.showOverflowTooltip || _self.showTooltipWhenOverflow ? h(
|
|
486
|
-
'div',
|
|
487
|
-
{ 'class': 'cell el-tooltip', style: { width: (data.column.realWidth || data.column.width) - 1 + 'px' } },
|
|
488
|
-
[renderCell(h, data)]
|
|
489
|
-
) : h(
|
|
490
|
-
'div',
|
|
491
|
-
{ 'class': 'cell' },
|
|
492
|
-
[renderCell(h, data)]
|
|
493
|
-
);
|
|
494
|
-
};
|
|
495
|
-
},
|
|
496
|
-
destroyed: function destroyed() {
|
|
497
|
-
if (!this.$parent) return;
|
|
498
|
-
var parent = this.$parent;
|
|
499
|
-
this.owner.store.commit('removeColumn', this.columnConfig, this.isSubColumn ? parent.columnConfig : null);
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
watch: {
|
|
504
|
-
label: function label(newVal) {
|
|
505
|
-
if (this.columnConfig) {
|
|
506
|
-
this.columnConfig.label = newVal;
|
|
507
|
-
}
|
|
508
553
|
},
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
this.columnConfig.property = newVal;
|
|
512
|
-
}
|
|
554
|
+
realWidth: function realWidth() {
|
|
555
|
+
return parseWidth(this.width);
|
|
513
556
|
},
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
this.columnConfig.property = newVal;
|
|
517
|
-
}
|
|
557
|
+
realMinWidth: function realMinWidth() {
|
|
558
|
+
return parseMinWidth(this.minWidth);
|
|
518
559
|
},
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
this.columnConfig.filters = newVal;
|
|
522
|
-
}
|
|
560
|
+
realAlign: function realAlign() {
|
|
561
|
+
return this.align ? 'is-' + this.align : null;
|
|
523
562
|
},
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
563
|
+
realHeaderAlign: function realHeaderAlign() {
|
|
564
|
+
return this.headerAlign ? 'is-' + this.headerAlign : this.realAlign;
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
methods: {
|
|
568
|
+
getPropsData: function getPropsData() {
|
|
569
|
+
var _this = this;
|
|
570
|
+
for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
571
|
+
props[_key] = arguments[_key];
|
|
527
572
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
if (!this.headerAlign) {
|
|
534
|
-
this.columnConfig.headerAlign = newVal ? 'is-' + newVal : null;
|
|
573
|
+
return props.reduce(function (prev, cur) {
|
|
574
|
+
if (Array.isArray(cur)) {
|
|
575
|
+
cur.forEach(function (key) {
|
|
576
|
+
prev[key] = _this[key];
|
|
577
|
+
});
|
|
535
578
|
}
|
|
536
|
-
|
|
579
|
+
return prev;
|
|
580
|
+
}, {});
|
|
537
581
|
},
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
this.columnConfig.headerAlign = 'is-' + (newVal ? newVal : this.align);
|
|
541
|
-
}
|
|
582
|
+
getColumnElIndex: function getColumnElIndex(children, child) {
|
|
583
|
+
return [].indexOf.call(children, child);
|
|
542
584
|
},
|
|
543
|
-
|
|
544
|
-
if (this.
|
|
545
|
-
|
|
546
|
-
this.owner.store.scheduleLayout();
|
|
585
|
+
setColumnWidth: function setColumnWidth(column) {
|
|
586
|
+
if (this.realWidth) {
|
|
587
|
+
column.width = this.realWidth;
|
|
547
588
|
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
if (this.columnConfig) {
|
|
551
|
-
this.columnConfig.minWidth = parseMinWidth(newVal);
|
|
552
|
-
this.owner.store.scheduleLayout();
|
|
589
|
+
if (this.realMinWidth) {
|
|
590
|
+
column.minWidth = this.realMinWidth;
|
|
553
591
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
if (this.columnConfig) {
|
|
557
|
-
this.columnConfig.fixed = newVal;
|
|
558
|
-
this.owner.store.scheduleLayout(true);
|
|
592
|
+
if (!column.minWidth) {
|
|
593
|
+
column.minWidth = 80;
|
|
559
594
|
}
|
|
595
|
+
column.realWidth = column.width === undefined ? column.minWidth : column.width;
|
|
596
|
+
return column;
|
|
560
597
|
},
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}
|
|
598
|
+
setColumnForcedProps: function setColumnForcedProps(column) {
|
|
599
|
+
// 对于特定类型的 column,某些属性不允许设置
|
|
600
|
+
var type = column.type;
|
|
601
|
+
var source = cellForced[type] || {};
|
|
602
|
+
Object.keys(source).forEach(function (prop) {
|
|
603
|
+
var value = source[prop];
|
|
604
|
+
if (value !== undefined) {
|
|
605
|
+
column[prop] = prop === 'className' ? column[prop] + " " + value : value;
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
return column;
|
|
565
609
|
},
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
610
|
+
setColumnRenders: function setColumnRenders(column) {
|
|
611
|
+
var _this2 = this;
|
|
612
|
+
var h = this.$createElement;
|
|
613
|
+
// renderHeader 属性不推荐使用。
|
|
614
|
+
if (this.renderHeader) {
|
|
615
|
+
console.warn('[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.');
|
|
616
|
+
} else if (column.type !== 'selection') {
|
|
617
|
+
column.renderHeader = function (h, scope) {
|
|
618
|
+
var renderHeader = _this2.$scopedSlots.header;
|
|
619
|
+
return renderHeader ? renderHeader(scope) : column.label;
|
|
620
|
+
};
|
|
569
621
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
if (
|
|
573
|
-
|
|
622
|
+
var originRenderCell = column.renderCell;
|
|
623
|
+
// TODO: 这里的实现调整
|
|
624
|
+
if (column.type === 'expand') {
|
|
625
|
+
// 对于展开行,renderCell 不允许配置的。在上一步中已经设置过,这里需要简单封装一下。
|
|
626
|
+
column.renderCell = function (h, data) {
|
|
627
|
+
return h("div", {
|
|
628
|
+
"class": "cell"
|
|
629
|
+
}, [originRenderCell(h, data)]);
|
|
630
|
+
};
|
|
631
|
+
this.owner.renderExpanded = function (h, data) {
|
|
632
|
+
return _this2.$scopedSlots.default ? _this2.$scopedSlots.default(data) : _this2.$slots.default;
|
|
633
|
+
};
|
|
634
|
+
} else {
|
|
635
|
+
originRenderCell = originRenderCell || defaultRenderCell;
|
|
636
|
+
// 对 renderCell 进行包装
|
|
637
|
+
column.renderCell = function (h, data) {
|
|
638
|
+
var children = null;
|
|
639
|
+
if (_this2.$scopedSlots.default) {
|
|
640
|
+
children = _this2.$scopedSlots.default(data);
|
|
641
|
+
} else {
|
|
642
|
+
children = originRenderCell(h, data);
|
|
643
|
+
}
|
|
644
|
+
var prefix = treeCellPrefix(h, data);
|
|
645
|
+
var props = {
|
|
646
|
+
class: 'cell',
|
|
647
|
+
style: {}
|
|
648
|
+
};
|
|
649
|
+
if (column.showOverflowTooltip) {
|
|
650
|
+
props.class += ' el-tooltip';
|
|
651
|
+
props.style = {
|
|
652
|
+
width: (data.column.realWidth || data.column.width) - 1 + 'px'
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
return h("div", helper_default()([{}, props]), [prefix, children]);
|
|
656
|
+
};
|
|
574
657
|
}
|
|
658
|
+
return column;
|
|
659
|
+
},
|
|
660
|
+
registerNormalWatchers: function registerNormalWatchers() {
|
|
661
|
+
var _this3 = this;
|
|
662
|
+
var props = ['label', 'property', 'filters', 'filterMultiple', 'sortable', 'index', 'formatter', 'className', 'labelClassName', 'showOverflowTooltip'];
|
|
663
|
+
// 一些属性具有别名
|
|
664
|
+
var aliases = {
|
|
665
|
+
prop: 'property',
|
|
666
|
+
realAlign: 'align',
|
|
667
|
+
realHeaderAlign: 'headerAlign',
|
|
668
|
+
realWidth: 'width'
|
|
669
|
+
};
|
|
670
|
+
var allAliases = props.reduce(function (prev, cur) {
|
|
671
|
+
prev[cur] = cur;
|
|
672
|
+
return prev;
|
|
673
|
+
}, aliases);
|
|
674
|
+
Object.keys(allAliases).forEach(function (key) {
|
|
675
|
+
var columnKey = aliases[key];
|
|
676
|
+
_this3.$watch(key, function (newVal) {
|
|
677
|
+
_this3.columnConfig[columnKey] = newVal;
|
|
678
|
+
});
|
|
679
|
+
});
|
|
680
|
+
},
|
|
681
|
+
registerComplexWatchers: function registerComplexWatchers() {
|
|
682
|
+
var _this4 = this;
|
|
683
|
+
var props = ['fixed'];
|
|
684
|
+
var aliases = {
|
|
685
|
+
realWidth: 'width',
|
|
686
|
+
realMinWidth: 'minWidth'
|
|
687
|
+
};
|
|
688
|
+
var allAliases = props.reduce(function (prev, cur) {
|
|
689
|
+
prev[cur] = cur;
|
|
690
|
+
return prev;
|
|
691
|
+
}, aliases);
|
|
692
|
+
Object.keys(allAliases).forEach(function (key) {
|
|
693
|
+
var columnKey = aliases[key];
|
|
694
|
+
_this4.$watch(key, function (newVal) {
|
|
695
|
+
_this4.columnConfig[columnKey] = newVal;
|
|
696
|
+
var updateColumns = columnKey === 'fixed';
|
|
697
|
+
_this4.owner.store.scheduleLayout(updateColumns);
|
|
698
|
+
});
|
|
699
|
+
});
|
|
575
700
|
}
|
|
576
701
|
},
|
|
702
|
+
components: {
|
|
703
|
+
ElCheckbox: (checkbox_default())
|
|
704
|
+
},
|
|
705
|
+
beforeCreate: function beforeCreate() {
|
|
706
|
+
this.row = {};
|
|
707
|
+
this.column = {};
|
|
708
|
+
this.$index = 0;
|
|
709
|
+
this.columnId = '';
|
|
710
|
+
},
|
|
711
|
+
created: function created() {
|
|
712
|
+
var parent = this.columnOrTableParent;
|
|
713
|
+
this.isSubColumn = this.owner !== parent;
|
|
714
|
+
this.columnId = (parent.tableId || parent.columnId) + '_column_' + columnIdSeed++;
|
|
715
|
+
var type = this.type || 'default';
|
|
716
|
+
var sortable = this.sortable === '' ? true : this.sortable;
|
|
717
|
+
var defaults = _extends({}, cellStarts[type], {
|
|
718
|
+
id: this.columnId,
|
|
719
|
+
type: type,
|
|
720
|
+
property: this.prop || this.property,
|
|
721
|
+
align: this.realAlign,
|
|
722
|
+
headerAlign: this.realHeaderAlign,
|
|
723
|
+
showOverflowTooltip: this.showOverflowTooltip || this.showTooltipWhenOverflow,
|
|
724
|
+
// filter 相关属性
|
|
725
|
+
filterable: this.filters || this.filterMethod,
|
|
726
|
+
filteredValue: [],
|
|
727
|
+
filterPlacement: '',
|
|
728
|
+
isColumnGroup: false,
|
|
729
|
+
filterOpened: false,
|
|
730
|
+
// sort 相关属性
|
|
731
|
+
sortable: sortable,
|
|
732
|
+
// index 列
|
|
733
|
+
index: this.index
|
|
734
|
+
});
|
|
735
|
+
var basicProps = ['columnKey', 'label', 'className', 'labelClassName', 'type', 'renderHeader', 'formatter', 'fixed', 'resizable'];
|
|
736
|
+
var sortProps = ['sortMethod', 'sortBy', 'sortOrders'];
|
|
737
|
+
var selectProps = ['selectable', 'reserveSelection'];
|
|
738
|
+
var filterProps = ['filterMethod', 'filters', 'filterMultiple', 'filterOpened', 'filteredValue', 'filterPlacement'];
|
|
739
|
+
var column = this.getPropsData(basicProps, sortProps, selectProps, filterProps);
|
|
740
|
+
column = mergeOptions(defaults, column);
|
|
741
|
+
|
|
742
|
+
// 注意 compose 中函数执行的顺序是从右到左
|
|
743
|
+
var chains = compose(this.setColumnRenders, this.setColumnWidth, this.setColumnForcedProps);
|
|
744
|
+
column = chains(column);
|
|
745
|
+
this.columnConfig = column;
|
|
577
746
|
|
|
747
|
+
// 注册 watcher
|
|
748
|
+
this.registerNormalWatchers();
|
|
749
|
+
this.registerComplexWatchers();
|
|
750
|
+
},
|
|
578
751
|
mounted: function mounted() {
|
|
579
752
|
var owner = this.owner;
|
|
580
753
|
var parent = this.columnOrTableParent;
|
|
581
|
-
var
|
|
582
|
-
|
|
583
|
-
if (!this.isSubColumn) {
|
|
584
|
-
columnIndex = [].indexOf.call(parent.$refs.hiddenColumns.children, this.$el);
|
|
585
|
-
} else {
|
|
586
|
-
columnIndex = [].indexOf.call(parent.$el.children, this.$el);
|
|
587
|
-
}
|
|
588
|
-
|
|
754
|
+
var children = this.isSubColumn ? parent.$el.children : parent.$refs.hiddenColumns.children;
|
|
755
|
+
var columnIndex = this.getColumnElIndex(children, this.$el);
|
|
589
756
|
owner.store.commit('insertColumn', this.columnConfig, columnIndex, this.isSubColumn ? parent.columnConfig : null);
|
|
757
|
+
},
|
|
758
|
+
destroyed: function destroyed() {
|
|
759
|
+
if (!this.$parent) return;
|
|
760
|
+
var parent = this.$parent;
|
|
761
|
+
this.owner.store.commit('removeColumn', this.columnConfig, this.isSubColumn ? parent.columnConfig : null);
|
|
762
|
+
},
|
|
763
|
+
render: function render(h) {
|
|
764
|
+
// slots 也要渲染,需要计算合并表头
|
|
765
|
+
return h('div', this.$slots.default);
|
|
590
766
|
}
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
/***/ }),
|
|
767
|
+
});
|
|
768
|
+
;// ./packages/table-column/index.js
|
|
594
769
|
|
|
595
|
-
/***/ 27:
|
|
596
|
-
/***/ (function(module, exports) {
|
|
597
770
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
/***/ (function(module, exports) {
|
|
604
|
-
|
|
605
|
-
module.exports = require("element-ui/lib/utils/util");
|
|
606
|
-
|
|
607
|
-
/***/ }),
|
|
608
|
-
|
|
609
|
-
/***/ 9:
|
|
610
|
-
/***/ (function(module, exports) {
|
|
611
|
-
|
|
612
|
-
module.exports = require("element-ui/lib/utils/merge");
|
|
771
|
+
/* istanbul ignore next */
|
|
772
|
+
table_column.install = function (Vue) {
|
|
773
|
+
Vue.component(table_column.name, table_column);
|
|
774
|
+
};
|
|
775
|
+
/* harmony default export */ const packages_table_column = (table_column);
|
|
613
776
|
|
|
614
|
-
/***/ }
|
|
777
|
+
/***/ }
|
|
615
778
|
|
|
616
|
-
/******/
|
|
779
|
+
/******/ });
|
|
780
|
+
/************************************************************************/
|
|
781
|
+
/******/ // The module cache
|
|
782
|
+
/******/ const __webpack_module_cache__ = {};
|
|
783
|
+
/******/
|
|
784
|
+
/******/ // The require function
|
|
785
|
+
/******/ function __webpack_require__(moduleId) {
|
|
786
|
+
/******/ // Check if module is in cache
|
|
787
|
+
/******/ const cachedModule = __webpack_module_cache__[moduleId];
|
|
788
|
+
/******/ if (cachedModule !== undefined) {
|
|
789
|
+
/******/ return cachedModule.exports;
|
|
790
|
+
/******/ }
|
|
791
|
+
/******/ // Create a new module (and put it into the cache)
|
|
792
|
+
/******/ const module = __webpack_module_cache__[moduleId] = {
|
|
793
|
+
/******/ // no module.id needed
|
|
794
|
+
/******/ // no module.loaded needed
|
|
795
|
+
/******/ exports: {}
|
|
796
|
+
/******/ };
|
|
797
|
+
/******/
|
|
798
|
+
/******/ // Execute the module function
|
|
799
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
800
|
+
/******/
|
|
801
|
+
/******/ // Return the exports of the module
|
|
802
|
+
/******/ return module.exports;
|
|
803
|
+
/******/ }
|
|
804
|
+
/******/
|
|
805
|
+
/************************************************************************/
|
|
806
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
807
|
+
/******/ (() => {
|
|
808
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
809
|
+
/******/ __webpack_require__.n = (module) => {
|
|
810
|
+
/******/ const getter = module && module.__esModule ?
|
|
811
|
+
/******/ () => (module['default']) :
|
|
812
|
+
/******/ () => (module);
|
|
813
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
814
|
+
/******/ return getter;
|
|
815
|
+
/******/ };
|
|
816
|
+
/******/ })();
|
|
817
|
+
/******/
|
|
818
|
+
/******/ /* webpack/runtime/define property getters */
|
|
819
|
+
/******/ (() => {
|
|
820
|
+
/******/ // define getter/value functions for harmony exports
|
|
821
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
822
|
+
/******/ if(Array.isArray(definition)) {
|
|
823
|
+
/******/ var i = 0;
|
|
824
|
+
/******/ while(i < definition.length) {
|
|
825
|
+
/******/ var key = definition[i++];
|
|
826
|
+
/******/ var binding = definition[i++];
|
|
827
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
828
|
+
/******/ if(binding === 0) {
|
|
829
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
830
|
+
/******/ } else {
|
|
831
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
832
|
+
/******/ }
|
|
833
|
+
/******/ } else if(binding === 0) { i++; }
|
|
834
|
+
/******/ }
|
|
835
|
+
/******/ } else {
|
|
836
|
+
/******/ for(var key in definition) {
|
|
837
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
838
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
839
|
+
/******/ }
|
|
840
|
+
/******/ }
|
|
841
|
+
/******/ }
|
|
842
|
+
/******/ };
|
|
843
|
+
/******/ })();
|
|
844
|
+
/******/
|
|
845
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
846
|
+
/******/ (() => {
|
|
847
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
848
|
+
/******/ })();
|
|
849
|
+
/******/
|
|
850
|
+
/******/ /* webpack/runtime/wrap commonjs module */
|
|
851
|
+
/******/ (() => {
|
|
852
|
+
/******/ // execute a CommonJS module body with real module/exports objects, returning the final exports
|
|
853
|
+
/******/ __webpack_require__.cjs = (body) => {
|
|
854
|
+
/******/ const mod = { exports: {} };
|
|
855
|
+
/******/ body.call(mod.exports, mod, mod.exports);
|
|
856
|
+
/******/ return mod.exports;
|
|
857
|
+
/******/ };
|
|
858
|
+
/******/ })();
|
|
859
|
+
/******/
|
|
860
|
+
/************************************************************************/
|
|
861
|
+
/******/
|
|
862
|
+
/******/ // startup
|
|
863
|
+
/******/ // Load entry module and return exports
|
|
864
|
+
/******/ // This entry module used 'module' so it can't be inlined
|
|
865
|
+
/******/ let __webpack_exports__ = __webpack_require__(7668);
|
|
866
|
+
/******/ module.exports = __webpack_exports__["default"];
|
|
867
|
+
/******/
|
|
868
|
+
/******/ })()
|
|
869
|
+
;
|