cy-element-ui 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +163 -59
- package/lib/alert.js +211 -203
- package/lib/aside.js +29 -29
- package/lib/autocomplete.js +4615 -483
- package/lib/avatar.js +152 -126
- package/lib/backtop.js +117 -125
- package/lib/badge.js +128 -134
- package/lib/breadcrumb-item.js +146 -122
- package/lib/breadcrumb.js +97 -96
- package/lib/button-group.js +68 -65
- package/lib/button.js +67 -87
- package/lib/calendar.js +2475 -603
- package/lib/card.js +101 -100
- package/lib/carousel-item.js +854 -210
- package/lib/carousel.js +575 -408
- package/lib/cascader-panel.js +3546 -1153
- package/lib/cascader.js +7376 -970
- package/lib/checkbox-button.js +337 -290
- package/lib/checkbox-group.js +176 -105
- package/lib/checkbox.js +240 -220
- package/lib/col.js +113 -68
- package/lib/collapse-item.js +1228 -225
- package/lib/collapse.js +163 -123
- package/lib/color-picker.js +5223 -1251
- package/lib/container.js +98 -88
- package/lib/date-picker.js +8396 -3945
- package/lib/descriptions-item.js +53 -32
- package/lib/descriptions.js +697 -334
- package/lib/dialog.js +1725 -247
- package/lib/directives/mousewheel.js +14 -20
- package/lib/directives/repeat-click.js +27 -30
- package/lib/divider.js +38 -45
- package/lib/drawer.js +1032 -238
- package/lib/dropdown-item.js +159 -111
- package/lib/dropdown-menu.js +2445 -117
- package/lib/dropdown.js +1675 -366
- package/lib/element-ui.common.js +49110 -39985
- package/lib/empty.js +1084 -203
- package/lib/fileUpload.js +3900 -0
- package/lib/footer.js +29 -29
- package/lib/form-item.js +1236 -467
- package/lib/form.js +326 -258
- package/lib/header.js +80 -80
- package/lib/icon.js +71 -68
- package/lib/image.js +2389 -743
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +814 -150
- package/lib/input-number.js +2181 -444
- package/lib/input.js +1197 -517
- package/lib/link.js +117 -135
- package/lib/loading.js +1130 -363
- package/lib/locale/format.js +38 -49
- package/lib/locale/index.js +38 -52
- package/lib/locale/lang/af-ZA.js +130 -123
- package/lib/locale/lang/ar.js +123 -122
- package/lib/locale/lang/az.js +122 -121
- package/lib/locale/lang/bg.js +133 -123
- package/lib/locale/lang/bn.js +121 -121
- package/lib/locale/lang/ca.js +123 -122
- package/lib/locale/lang/cs-CZ.js +127 -125
- package/lib/locale/lang/da.js +124 -122
- package/lib/locale/lang/de.js +126 -124
- package/lib/locale/lang/ee.js +125 -123
- package/lib/locale/lang/el.js +125 -123
- package/lib/locale/lang/en.js +127 -123
- package/lib/locale/lang/eo.js +125 -123
- package/lib/locale/lang/es.js +123 -122
- package/lib/locale/lang/eu.js +128 -123
- package/lib/locale/lang/fa.js +125 -123
- package/lib/locale/lang/fi.js +125 -123
- package/lib/locale/lang/fr.js +125 -122
- package/lib/locale/lang/he.js +130 -123
- package/lib/locale/lang/hr.js +128 -123
- package/lib/locale/lang/hu.js +124 -122
- package/lib/locale/lang/hy-AM.js +125 -123
- package/lib/locale/lang/id.js +124 -123
- package/lib/locale/lang/is.js +124 -123
- package/lib/locale/lang/it.js +123 -122
- package/lib/locale/lang/ja.js +125 -123
- package/lib/locale/lang/kg.js +125 -123
- package/lib/locale/lang/km.js +124 -123
- package/lib/locale/lang/ko.js +125 -123
- package/lib/locale/lang/ku.js +125 -123
- package/lib/locale/lang/kz.js +125 -123
- package/lib/locale/lang/lo-LA.js +121 -121
- package/lib/locale/lang/lt.js +125 -123
- package/lib/locale/lang/lv.js +125 -123
- package/lib/locale/lang/mn.js +125 -123
- package/lib/locale/lang/ms.js +123 -122
- package/lib/locale/lang/nb-NO.js +123 -122
- package/lib/locale/lang/nl.js +125 -123
- package/lib/locale/lang/pl.js +125 -123
- package/lib/locale/lang/pt-br.js +124 -123
- package/lib/locale/lang/pt.js +133 -123
- package/lib/locale/lang/ro.js +125 -123
- package/lib/locale/lang/ru-RU.js +124 -123
- package/lib/locale/lang/si.js +127 -123
- package/lib/locale/lang/sk.js +126 -125
- package/lib/locale/lang/sl.js +125 -123
- package/lib/locale/lang/sr-Latn.js +124 -123
- package/lib/locale/lang/sr.js +128 -123
- package/lib/locale/lang/sv-SE.js +128 -123
- package/lib/locale/lang/sw.js +127 -123
- package/lib/locale/lang/ta.js +130 -122
- package/lib/locale/lang/th.js +127 -123
- package/lib/locale/lang/tk.js +129 -123
- package/lib/locale/lang/tr-TR.js +125 -123
- package/lib/locale/lang/ua.js +124 -123
- package/lib/locale/lang/ug-CN.js +124 -123
- package/lib/locale/lang/uz-UZ.js +124 -123
- package/lib/locale/lang/vi.js +124 -123
- package/lib/locale/lang/zh-CN.js +124 -123
- package/lib/locale/lang/zh-TW.js +128 -123
- package/lib/main.js +23 -21
- package/lib/menu-item-group.js +105 -111
- package/lib/menu-item.js +3558 -253
- package/lib/menu.js +1680 -528
- package/lib/message-box.js +3427 -684
- package/lib/message.js +1677 -229
- package/lib/mixins/emitter.js +28 -30
- package/lib/mixins/focus.js +10 -11
- package/lib/mixins/locale.js +12 -14
- package/lib/mixins/migrating.js +38 -45
- package/lib/notification.js +1707 -269
- package/lib/option-group.js +190 -139
- package/lib/option.js +949 -196
- package/lib/page-header.js +964 -42
- package/lib/pagination.js +6947 -641
- package/lib/popconfirm.js +3951 -223
- package/lib/popover.js +3247 -369
- package/lib/progress.js +254 -244
- package/lib/radio-button.js +259 -226
- package/lib/radio-group.js +249 -186
- package/lib/radio.js +263 -253
- package/lib/rate.js +1399 -420
- package/lib/result.js +183 -227
- package/lib/row.js +58 -41
- package/lib/scrollbar.js +1331 -278
- package/lib/select.js +5816 -1428
- package/lib/skeleton-item.js +133 -145
- package/lib/skeleton.js +82 -91
- package/lib/slider.js +5157 -702
- package/lib/spinner.js +113 -101
- package/lib/statistic.js +10205 -254
- package/lib/step.js +274 -311
- package/lib/steps.js +854 -117
- package/lib/subTitle.js +292 -0
- package/lib/submenu.js +2867 -429
- package/lib/switch.js +1051 -291
- package/lib/tab-pane.js +125 -135
- package/lib/tabDialog.js +2658 -0
- package/lib/table-column.js +1975 -751
- package/lib/table.js +8019 -3979
- package/lib/tabs.js +1455 -605
- package/lib/tag.js +73 -68
- package/lib/theme-chalk/src/index.scss +3 -0
- package/lib/time-picker.js +6821 -1944
- package/lib/time-select.js +6297 -1186
- package/lib/timeline-item.js +43 -84
- package/lib/timeline.js +43 -39
- package/lib/tooltip.js +3185 -287
- package/lib/transfer.js +2943 -625
- package/lib/transitions/collapse-transition.js +69 -87
- package/lib/tree.js +3312 -1791
- package/lib/treeSelect.js +4436 -0
- package/lib/umd/locale/af-ZA.js +145 -138
- package/lib/umd/locale/ar.js +138 -137
- package/lib/umd/locale/az.js +139 -137
- package/lib/umd/locale/bg.js +148 -138
- package/lib/umd/locale/bn.js +138 -137
- package/lib/umd/locale/ca.js +138 -137
- package/lib/umd/locale/cs-CZ.js +142 -140
- package/lib/umd/locale/da.js +139 -137
- package/lib/umd/locale/de.js +141 -139
- package/lib/umd/locale/ee.js +140 -138
- package/lib/umd/locale/el.js +140 -138
- package/lib/umd/locale/en.js +142 -138
- package/lib/umd/locale/eo.js +140 -138
- package/lib/umd/locale/es.js +138 -137
- package/lib/umd/locale/eu.js +143 -138
- package/lib/umd/locale/fa.js +140 -138
- package/lib/umd/locale/fi.js +140 -138
- package/lib/umd/locale/fr.js +140 -137
- package/lib/umd/locale/he.js +145 -138
- package/lib/umd/locale/hr.js +143 -138
- package/lib/umd/locale/hu.js +139 -137
- package/lib/umd/locale/hy-AM.js +140 -138
- package/lib/umd/locale/id.js +139 -138
- package/lib/umd/locale/is.js +139 -138
- package/lib/umd/locale/it.js +138 -137
- package/lib/umd/locale/ja.js +140 -138
- package/lib/umd/locale/kg.js +140 -138
- package/lib/umd/locale/km.js +139 -138
- package/lib/umd/locale/ko.js +140 -138
- package/lib/umd/locale/ku.js +140 -138
- package/lib/umd/locale/kz.js +140 -138
- package/lib/umd/locale/lo-LA.js +138 -137
- package/lib/umd/locale/lt.js +140 -138
- package/lib/umd/locale/lv.js +140 -138
- package/lib/umd/locale/mn.js +140 -138
- package/lib/umd/locale/ms.js +138 -137
- package/lib/umd/locale/nb-NO.js +138 -137
- package/lib/umd/locale/nl.js +140 -138
- package/lib/umd/locale/pl.js +140 -138
- package/lib/umd/locale/pt-br.js +139 -138
- package/lib/umd/locale/pt.js +148 -138
- package/lib/umd/locale/ro.js +140 -138
- package/lib/umd/locale/ru-RU.js +139 -138
- package/lib/umd/locale/si.js +142 -138
- package/lib/umd/locale/sk.js +141 -140
- package/lib/umd/locale/sl.js +140 -138
- package/lib/umd/locale/sr-Latn.js +139 -138
- package/lib/umd/locale/sr.js +143 -138
- package/lib/umd/locale/sv-SE.js +143 -138
- package/lib/umd/locale/sw.js +142 -138
- package/lib/umd/locale/ta.js +145 -137
- package/lib/umd/locale/th.js +142 -138
- package/lib/umd/locale/tk.js +144 -138
- package/lib/umd/locale/tr-TR.js +140 -138
- package/lib/umd/locale/ua.js +139 -138
- package/lib/umd/locale/ug-CN.js +139 -138
- package/lib/umd/locale/uz-UZ.js +139 -138
- package/lib/umd/locale/vi.js +139 -138
- package/lib/umd/locale/zh-CN.js +139 -138
- package/lib/umd/locale/zh-TW.js +143 -138
- package/lib/upload.js +2377 -987
- package/lib/utils/after-leave.js +36 -33
- package/lib/utils/aria-dialog.js +55 -73
- package/lib/utils/aria-utils.js +67 -76
- package/lib/utils/clickoutside.js +52 -60
- package/lib/utils/date-util.js +198 -241
- package/lib/utils/date.js +6 -368
- package/lib/utils/date_source.js +349 -0
- package/lib/utils/dom.js +167 -183
- package/lib/utils/lodash.js +13 -9421
- package/lib/utils/lodash_source.js +9421 -0
- package/lib/utils/menu/aria-menubar.js +13 -18
- package/lib/utils/menu/aria-menuitem.js +43 -54
- package/lib/utils/menu/aria-submenu.js +50 -59
- package/lib/utils/merge.js +15 -17
- package/lib/utils/popper.js +1141 -1170
- package/lib/utils/popup/index.js +186 -230
- package/lib/utils/popup/popup-manager.js +159 -191
- package/lib/utils/resize-event.js +29 -44
- package/lib/utils/scroll-into-view.js +25 -33
- package/lib/utils/scrollbar-width.js +25 -36
- package/lib/utils/shared.js +3 -3
- package/lib/utils/types.js +19 -32
- package/lib/utils/util.js +187 -221
- package/lib/utils/vdom.js +5 -9
- package/lib/utils/vue-popper.js +166 -188
- package/package.json +20 -19
- package/packages/alert/src/main.vue +63 -63
- package/packages/aside/src/main.vue +9 -9
- package/packages/autocomplete/src/autocomplete-suggestions.vue +46 -46
- package/packages/autocomplete/src/autocomplete.vue +198 -198
- package/packages/avatar/src/main.vue +5 -5
- package/packages/backtop/src/main.vue +3 -3
- package/packages/badge/src/main.vue +1 -1
- package/packages/breadcrumb/src/breadcrumb-item.vue +26 -26
- package/packages/breadcrumb/src/breadcrumb.vue +22 -22
- package/packages/button/src/button-group.vue +3 -3
- package/packages/button/src/button.vue +44 -44
- package/packages/calendar/src/date-table.vue +3 -3
- package/packages/calendar/src/main.vue +7 -7
- package/packages/card/src/main.vue +9 -9
- package/packages/carousel/src/item.vue +98 -98
- package/packages/carousel/src/main.vue +2 -2
- package/packages/cascader/src/cascader.vue +4 -4
- package/packages/cascader-panel/src/cascader-menu.vue +4 -4
- package/packages/cascader-panel/src/cascader-node.vue +232 -232
- package/packages/cascader-panel/src/cascader-panel.vue +3 -3
- package/packages/cascader-panel/src/node.js +2 -3
- package/packages/cascader-panel/src/store.js +0 -1
- package/packages/checkbox/src/checkbox-button.vue +139 -139
- package/packages/checkbox/src/checkbox-group.vue +33 -33
- package/packages/checkbox/src/checkbox.vue +140 -140
- package/packages/col/src/col.js +5 -5
- package/packages/collapse/src/collapse-item.vue +55 -55
- package/packages/collapse/src/collapse.vue +54 -54
- package/packages/color-picker/src/color.js +4 -4
- package/packages/color-picker/src/components/alpha-slider.vue +100 -100
- package/packages/color-picker/src/components/hue-slider.vue +91 -91
- package/packages/color-picker/src/components/picker-dropdown.vue +64 -64
- package/packages/color-picker/src/components/predefine.vue +43 -43
- package/packages/color-picker/src/components/sv-panel.vue +70 -70
- package/packages/color-picker/src/main.vue +141 -141
- package/packages/container/src/main.vue +20 -20
- package/packages/date-picker/src/basic/date-table.vue +360 -360
- package/packages/date-picker/src/basic/month-table.vue +222 -223
- package/packages/date-picker/src/basic/time-spinner.vue +174 -174
- package/packages/date-picker/src/basic/year-table.vue +91 -91
- package/packages/date-picker/src/panel/date-range.vue +415 -415
- package/packages/date-picker/src/panel/date.vue +423 -423
- package/packages/date-picker/src/panel/month-range.vue +177 -177
- package/packages/date-picker/src/panel/time-range.vue +173 -173
- package/packages/date-picker/src/panel/time-select.vue +131 -131
- package/packages/date-picker/src/panel/time.vue +131 -131
- package/packages/date-picker/src/picker.vue +7 -7
- package/packages/descriptions/src/descriptions-row.js +3 -3
- package/packages/descriptions/src/index.js +1 -1
- package/packages/dialog/src/component.vue +155 -155
- package/packages/divider/src/main.vue +1 -1
- package/packages/drawer/src/main.vue +2 -2
- package/packages/dropdown/src/dropdown-item.vue +15 -15
- package/packages/dropdown/src/dropdown-menu.vue +47 -47
- package/packages/dropdown/src/dropdown.vue +260 -260
- package/packages/empty/src/index.vue +1 -1
- package/packages/fileUpload/index.js +8 -0
- package/packages/fileUpload/src/main.vue +430 -0
- package/packages/footer/src/main.vue +9 -9
- package/packages/form/src/form-item.vue +245 -245
- package/packages/form/src/form.vue +154 -154
- package/packages/header/src/main.vue +9 -9
- package/packages/icon/src/icon.vue +6 -6
- package/packages/image/src/image-viewer.vue +9 -9
- package/packages/image/src/main.vue +206 -206
- package/packages/infinite-scroll/src/main.js +1 -2
- package/packages/input/src/calcTextareaHeight.js +2 -2
- package/packages/input/src/input.vue +311 -311
- package/packages/input-number/src/input-number.vue +205 -205
- package/packages/loading/src/loading.vue +19 -19
- package/packages/main/src/main.vue +4 -4
- package/packages/menu/src/menu-item-group.vue +27 -27
- package/packages/menu/src/menu-item.vue +69 -69
- package/packages/menu/src/menu.vue +284 -284
- package/packages/menu/src/submenu.vue +308 -309
- package/packages/message/src/main.js +1 -1
- package/packages/message/src/main.vue +72 -72
- package/packages/message-box/src/main.vue +216 -216
- package/packages/notification/src/main.js +1 -1
- package/packages/notification/src/main.vue +93 -93
- package/packages/pagination/src/pager.vue +99 -99
- package/packages/popconfirm/src/main.vue +28 -28
- package/packages/popover/src/main.vue +6 -6
- package/packages/progress/src/progress.vue +174 -174
- package/packages/radio/src/radio-button.vue +64 -64
- package/packages/radio/src/radio-group.vue +88 -88
- package/packages/radio/src/radio.vue +74 -74
- package/packages/rate/src/main.vue +270 -270
- package/packages/row/src/row.js +3 -3
- package/packages/scrollbar/src/main.js +2 -2
- package/packages/scrollbar/src/util.js +1 -1
- package/packages/select/src/option-group.vue +46 -46
- package/packages/select/src/option.vue +122 -122
- package/packages/select/src/select-dropdown.vue +49 -49
- package/packages/select/src/select.vue +676 -676
- package/packages/skeleton/src/item.vue +12 -12
- package/packages/slider/src/button.vue +191 -191
- package/packages/slider/src/main.vue +314 -314
- package/packages/spinner/src/spinner.vue +16 -16
- package/packages/statistic/src/main.vue +5 -6
- package/packages/steps/src/step.vue +2 -2
- package/packages/steps/src/steps.vue +4 -4
- package/packages/subTitle/index.js +8 -0
- package/packages/subTitle/src/main.vue +33 -0
- package/packages/switch/src/component.vue +123 -123
- package/packages/tabDialog/index.js +23 -0
- package/packages/tabDialog/src/dialog/drag.js +63 -0
- package/packages/tabDialog/src/dialog/dragHeight.js +34 -0
- package/packages/tabDialog/src/dialog/dragWidth.js +30 -0
- package/packages/tabDialog/src/main.vue +277 -0
- package/packages/table/src/filter-panel.vue +128 -128
- package/packages/table/src/store/index.js +1 -1
- package/packages/table/src/table-body.js +2 -2
- package/packages/table/src/table-column.js +1 -1
- package/packages/table/src/table-header.js +1 -1
- package/packages/table/src/table-layout.js +1 -1
- package/packages/table/src/table.vue +416 -416
- package/packages/tabs/src/tab-bar.vue +43 -43
- package/packages/tabs/src/tab-nav.vue +250 -250
- package/packages/tabs/src/tab-pane.vue +34 -34
- package/packages/tabs/src/tabs.vue +165 -165
- package/packages/tag/src/tag.vue +52 -52
- package/packages/theme-chalk/src/index.scss +3 -0
- package/packages/theme-cy/lib/element.css +1 -0
- package/packages/theme-cy/lib/fileUpload.css +1 -0
- package/packages/theme-cy/lib/index.css +1 -1
- package/packages/theme-cy/lib/subTitle.css +1 -0
- package/packages/theme-cy/lib/tabDialog.css +1 -0
- package/packages/theme-cy/lib/treeselect.css +1 -1
- package/packages/theme-cy/src/element.scss +45 -0
- package/packages/theme-cy/src/fileUpload.scss +30 -0
- package/packages/theme-cy/src/index.scss +4 -0
- package/packages/theme-cy/src/subTitle.scss +26 -0
- package/packages/theme-cy/src/tabDialog.scss +43 -0
- package/packages/theme-cy/src/treeselect.scss +20 -14
- package/packages/timeline/src/item.vue +24 -24
- package/packages/timeline/src/main.vue +27 -27
- package/packages/tooltip/src/main.js +1 -1
- package/packages/transfer/src/main.vue +169 -169
- package/packages/transfer/src/transfer-panel.vue +164 -164
- package/packages/tree/src/tree-node.vue +169 -169
- package/packages/tree/src/tree.vue +408 -408
- package/packages/treeSelect/index.js +8 -0
- package/packages/{treeselect → treeSelect}/src/main.vue +19 -19
- package/packages/upload/src/ajax.js +3 -3
- package/packages/upload/src/upload-dragger.vue +50 -50
- package/packages/upload/src/upload-list.vue +33 -33
- package/packages/upload/src/upload.vue +1 -1
- package/src/index.js +13 -5
- package/src/locale/format.js +0 -1
- package/src/mixins/migrating.js +2 -2
- package/src/utils/date.js +2 -368
- package/src/utils/date_source.js +368 -0
- package/src/utils/lodash.js +9 -18075
- package/src/utils/lodash_source.js +18075 -0
- package/src/utils/types.js +1 -1
- package/types/element-ui.d.ts +16 -3
- package/types/fileUpload.d.ts +5 -0
- package/types/subTitle.d.ts +5 -0
- package/types/tabDialog.d.ts +5 -0
- package/types/treeSelect.d.ts +5 -0
- package/lib/treeselect.js +0 -682
- package/packages/treeselect/index.js +0 -8
- package/types/treeselect.d.ts +0 -5
package/lib/checkbox-button.js
CHANGED
|
@@ -82,135 +82,92 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 178);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
91
|
-
/***/ (function(module,
|
|
90
|
+
/***/ 10:
|
|
91
|
+
/***/ (function(module, exports) {
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
95
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
93
|
+
module.exports = require("core-js/modules/web.dom-collections.for-each.js");
|
|
96
94
|
|
|
97
|
-
|
|
98
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
99
|
-
// be included in the final webpack user bundle.
|
|
95
|
+
/***/ }),
|
|
100
96
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
render,
|
|
104
|
-
staticRenderFns,
|
|
105
|
-
functionalTemplate,
|
|
106
|
-
injectStyles,
|
|
107
|
-
scopeId,
|
|
108
|
-
moduleIdentifier /* server only */,
|
|
109
|
-
shadowMode /* vue-cli only */
|
|
110
|
-
) {
|
|
111
|
-
// Vue.extend constructor export interop
|
|
112
|
-
var options =
|
|
113
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
97
|
+
/***/ 11:
|
|
98
|
+
/***/ (function(module, exports) {
|
|
114
99
|
|
|
115
|
-
|
|
116
|
-
if (render) {
|
|
117
|
-
options.render = render
|
|
118
|
-
options.staticRenderFns = staticRenderFns
|
|
119
|
-
options._compiled = true
|
|
120
|
-
}
|
|
100
|
+
module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
121
101
|
|
|
122
|
-
|
|
123
|
-
if (functionalTemplate) {
|
|
124
|
-
options.functional = true
|
|
125
|
-
}
|
|
102
|
+
/***/ }),
|
|
126
103
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
options._scopeId = 'data-v-' + scopeId
|
|
130
|
-
}
|
|
104
|
+
/***/ 110:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
131
106
|
|
|
132
|
-
|
|
133
|
-
if (moduleIdentifier) {
|
|
134
|
-
// server build
|
|
135
|
-
hook = function (context) {
|
|
136
|
-
// 2.3 injection
|
|
137
|
-
context =
|
|
138
|
-
context || // cached call
|
|
139
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
140
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
141
|
-
// 2.2 with runInNewContext: true
|
|
142
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
143
|
-
context = __VUE_SSR_CONTEXT__
|
|
144
|
-
}
|
|
145
|
-
// inject component styles
|
|
146
|
-
if (injectStyles) {
|
|
147
|
-
injectStyles.call(this, context)
|
|
148
|
-
}
|
|
149
|
-
// register component module identifier for async chunk inferrence
|
|
150
|
-
if (context && context._registeredComponents) {
|
|
151
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
// used by ssr in case component is cached and beforeCreate
|
|
155
|
-
// never gets called
|
|
156
|
-
options._ssrRegister = hook
|
|
157
|
-
} else if (injectStyles) {
|
|
158
|
-
hook = shadowMode
|
|
159
|
-
? function () {
|
|
160
|
-
injectStyles.call(
|
|
161
|
-
this,
|
|
162
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
: injectStyles
|
|
166
|
-
}
|
|
107
|
+
module.exports = require("core-js/modules/es.array.fill.js");
|
|
167
108
|
|
|
168
|
-
|
|
169
|
-
if (options.functional) {
|
|
170
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
171
|
-
// go through the normalizer
|
|
172
|
-
options._injectStyles = hook
|
|
173
|
-
// register for functional component in vue file
|
|
174
|
-
var originalRender = options.render
|
|
175
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
176
|
-
hook.call(context)
|
|
177
|
-
return originalRender(h, context)
|
|
178
|
-
}
|
|
179
|
-
} else {
|
|
180
|
-
// inject component registration as beforeCreate hook
|
|
181
|
-
var existing = options.beforeCreate
|
|
182
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
183
|
-
}
|
|
184
|
-
}
|
|
109
|
+
/***/ }),
|
|
185
110
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
options: options
|
|
189
|
-
}
|
|
190
|
-
}
|
|
111
|
+
/***/ 14:
|
|
112
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
191
113
|
|
|
114
|
+
"use strict";
|
|
115
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
|
|
116
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
117
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
118
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
119
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
|
|
120
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
192
121
|
|
|
193
|
-
/***/ }),
|
|
194
122
|
|
|
195
|
-
/***/ 4:
|
|
196
|
-
/***/ (function(module, exports) {
|
|
197
123
|
|
|
198
|
-
|
|
124
|
+
function _broadcast(componentName, eventName, params) {
|
|
125
|
+
this.$children.forEach(function (child) {
|
|
126
|
+
var name = child.$options.componentName;
|
|
127
|
+
if (name === componentName) {
|
|
128
|
+
child.$emit.apply(child, [eventName].concat(params));
|
|
129
|
+
} else {
|
|
130
|
+
_broadcast.apply(child, [componentName, eventName].concat([params]));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
135
|
+
methods: {
|
|
136
|
+
dispatch: function dispatch(componentName, eventName, params) {
|
|
137
|
+
var parent = this.$parent || this.$root;
|
|
138
|
+
var name = parent.$options.componentName;
|
|
139
|
+
while (parent && (!name || name !== componentName)) {
|
|
140
|
+
parent = parent.$parent;
|
|
141
|
+
if (parent) {
|
|
142
|
+
name = parent.$options.componentName;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (parent) {
|
|
146
|
+
parent.$emit.apply(parent, [eventName].concat(params));
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
broadcast: function broadcast(componentName, eventName, params) {
|
|
150
|
+
_broadcast.call(this, componentName, eventName, params);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
});
|
|
199
154
|
|
|
200
155
|
/***/ }),
|
|
201
156
|
|
|
202
|
-
/***/
|
|
157
|
+
/***/ 178:
|
|
203
158
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
204
159
|
|
|
205
160
|
"use strict";
|
|
206
161
|
// ESM COMPAT FLAG
|
|
207
162
|
__webpack_require__.r(__webpack_exports__);
|
|
208
163
|
|
|
209
|
-
//
|
|
210
|
-
var
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
164
|
+
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
165
|
+
var es_function_name_js_ = __webpack_require__(5);
|
|
166
|
+
|
|
167
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-button.vue?vue&type=template&id=ec584a88
|
|
168
|
+
var render = function render() {
|
|
169
|
+
var _vm = this,
|
|
170
|
+
_c = _vm._self._c
|
|
214
171
|
return _c(
|
|
215
172
|
"label",
|
|
216
173
|
{
|
|
@@ -341,7 +298,11 @@ var render = function () {
|
|
|
341
298
|
staticClass: "el-checkbox-button__inner",
|
|
342
299
|
style: _vm.isChecked ? _vm.activeStyle : null,
|
|
343
300
|
},
|
|
344
|
-
[
|
|
301
|
+
[
|
|
302
|
+
_vm._t("default", function () {
|
|
303
|
+
return [_vm._v(_vm._s(_vm.label))]
|
|
304
|
+
}),
|
|
305
|
+
],
|
|
345
306
|
2
|
|
346
307
|
)
|
|
347
308
|
: _vm._e(),
|
|
@@ -352,201 +313,154 @@ var staticRenderFns = []
|
|
|
352
313
|
render._withStripped = true
|
|
353
314
|
|
|
354
315
|
|
|
355
|
-
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue?vue&type=template&id=
|
|
316
|
+
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue?vue&type=template&id=ec584a88
|
|
317
|
+
|
|
318
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.fill.js"
|
|
319
|
+
var es_array_fill_js_ = __webpack_require__(110);
|
|
356
320
|
|
|
357
|
-
// EXTERNAL MODULE: external "
|
|
358
|
-
var
|
|
359
|
-
|
|
321
|
+
// EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
|
|
322
|
+
var es_number_constructor_js_ = __webpack_require__(6);
|
|
323
|
+
|
|
324
|
+
// EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
|
|
325
|
+
var es_object_to_string_js_ = __webpack_require__(3);
|
|
326
|
+
|
|
327
|
+
// EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
|
|
328
|
+
var es_regexp_to_string_js_ = __webpack_require__(11);
|
|
329
|
+
|
|
330
|
+
// EXTERNAL MODULE: ./src/mixins/emitter.js
|
|
331
|
+
var emitter = __webpack_require__(14);
|
|
360
332
|
|
|
361
333
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-button.vue?vue&type=script&lang=js
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
//
|
|
365
|
-
//
|
|
366
|
-
//
|
|
367
|
-
//
|
|
368
|
-
//
|
|
369
|
-
//
|
|
370
|
-
//
|
|
371
|
-
//
|
|
372
|
-
//
|
|
373
|
-
//
|
|
374
|
-
//
|
|
375
|
-
//
|
|
376
|
-
//
|
|
377
|
-
//
|
|
378
|
-
//
|
|
379
|
-
//
|
|
380
|
-
//
|
|
381
|
-
//
|
|
382
|
-
//
|
|
383
|
-
//
|
|
384
|
-
//
|
|
385
|
-
//
|
|
386
|
-
//
|
|
387
|
-
//
|
|
388
|
-
//
|
|
389
|
-
//
|
|
390
|
-
//
|
|
391
|
-
//
|
|
392
|
-
//
|
|
393
|
-
//
|
|
394
|
-
//
|
|
395
|
-
//
|
|
396
|
-
//
|
|
397
|
-
//
|
|
398
|
-
//
|
|
399
|
-
//
|
|
400
|
-
//
|
|
401
|
-
//
|
|
402
|
-
//
|
|
403
|
-
//
|
|
404
|
-
//
|
|
405
|
-
//
|
|
406
|
-
//
|
|
334
|
+
|
|
335
|
+
|
|
407
336
|
|
|
408
337
|
|
|
409
338
|
|
|
410
339
|
/* harmony default export */ var checkbox_buttonvue_type_script_lang_js = ({
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
} else {
|
|
531
|
-
value = this.falseLabel === undefined ? false : this.falseLabel;
|
|
532
|
-
}
|
|
533
|
-
this.$emit('change', value, ev);
|
|
534
|
-
this.$nextTick(function () {
|
|
535
|
-
if (_this._checkboxGroup) {
|
|
536
|
-
_this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
|
|
537
|
-
}
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
|
|
542
|
-
created: function created() {
|
|
543
|
-
this.checked && this.addToStore();
|
|
544
|
-
}
|
|
340
|
+
name: 'ElCheckboxButton',
|
|
341
|
+
mixins: [emitter["a" /* default */]],
|
|
342
|
+
inject: {
|
|
343
|
+
elForm: {
|
|
344
|
+
default: ''
|
|
345
|
+
},
|
|
346
|
+
elFormItem: {
|
|
347
|
+
default: ''
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
data: function data() {
|
|
351
|
+
return {
|
|
352
|
+
selfModel: false,
|
|
353
|
+
focus: false,
|
|
354
|
+
isLimitExceeded: false
|
|
355
|
+
};
|
|
356
|
+
},
|
|
357
|
+
props: {
|
|
358
|
+
value: {},
|
|
359
|
+
label: {},
|
|
360
|
+
disabled: Boolean,
|
|
361
|
+
checked: Boolean,
|
|
362
|
+
name: String,
|
|
363
|
+
trueLabel: [String, Number],
|
|
364
|
+
falseLabel: [String, Number]
|
|
365
|
+
},
|
|
366
|
+
computed: {
|
|
367
|
+
model: {
|
|
368
|
+
get: function get() {
|
|
369
|
+
return this._checkboxGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
|
|
370
|
+
},
|
|
371
|
+
set: function set(val) {
|
|
372
|
+
if (this._checkboxGroup) {
|
|
373
|
+
this.isLimitExceeded = false;
|
|
374
|
+
this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
|
|
375
|
+
this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
|
|
376
|
+
this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
|
|
377
|
+
} else if (this.value !== undefined) {
|
|
378
|
+
this.$emit('input', val);
|
|
379
|
+
} else {
|
|
380
|
+
this.selfModel = val;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
isChecked: function isChecked() {
|
|
385
|
+
if ({}.toString.call(this.model) === '[object Boolean]') {
|
|
386
|
+
return this.model;
|
|
387
|
+
} else if (Array.isArray(this.model)) {
|
|
388
|
+
return this.model.indexOf(this.label) > -1;
|
|
389
|
+
} else if (this.model !== null && this.model !== undefined) {
|
|
390
|
+
return this.model === this.trueLabel;
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
_checkboxGroup: function _checkboxGroup() {
|
|
394
|
+
var parent = this.$parent;
|
|
395
|
+
while (parent) {
|
|
396
|
+
if (parent.$options.componentName !== 'ElCheckboxGroup') {
|
|
397
|
+
parent = parent.$parent;
|
|
398
|
+
} else {
|
|
399
|
+
return parent;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return false;
|
|
403
|
+
},
|
|
404
|
+
store: function store() {
|
|
405
|
+
return this._checkboxGroup ? this._checkboxGroup.value : this.value;
|
|
406
|
+
},
|
|
407
|
+
activeStyle: function activeStyle() {
|
|
408
|
+
return {
|
|
409
|
+
backgroundColor: this._checkboxGroup.fill || '',
|
|
410
|
+
borderColor: this._checkboxGroup.fill || '',
|
|
411
|
+
color: this._checkboxGroup.textColor || '',
|
|
412
|
+
'box-shadow': '-1px 0 0 0 ' + this._checkboxGroup.fill
|
|
413
|
+
};
|
|
414
|
+
},
|
|
415
|
+
_elFormItemSize: function _elFormItemSize() {
|
|
416
|
+
return (this.elFormItem || {}).elFormItemSize;
|
|
417
|
+
},
|
|
418
|
+
size: function size() {
|
|
419
|
+
return this._checkboxGroup.checkboxGroupSize || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
420
|
+
},
|
|
421
|
+
/* used to make the isDisabled judgment under max/min props */isLimitDisabled: function isLimitDisabled() {
|
|
422
|
+
var _this$_checkboxGroup = this._checkboxGroup,
|
|
423
|
+
max = _this$_checkboxGroup.max,
|
|
424
|
+
min = _this$_checkboxGroup.min;
|
|
425
|
+
return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked;
|
|
426
|
+
},
|
|
427
|
+
isDisabled: function isDisabled() {
|
|
428
|
+
return this._checkboxGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled;
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
methods: {
|
|
432
|
+
addToStore: function addToStore() {
|
|
433
|
+
if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
|
|
434
|
+
this.model.push(this.label);
|
|
435
|
+
} else {
|
|
436
|
+
this.model = this.trueLabel || true;
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
handleChange: function handleChange(ev) {
|
|
440
|
+
var _this = this;
|
|
441
|
+
if (this.isLimitExceeded) return;
|
|
442
|
+
var value;
|
|
443
|
+
if (ev.target.checked) {
|
|
444
|
+
value = this.trueLabel === undefined ? true : this.trueLabel;
|
|
445
|
+
} else {
|
|
446
|
+
value = this.falseLabel === undefined ? false : this.falseLabel;
|
|
447
|
+
}
|
|
448
|
+
this.$emit('change', value, ev);
|
|
449
|
+
this.$nextTick(function () {
|
|
450
|
+
if (_this._checkboxGroup) {
|
|
451
|
+
_this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
created: function created() {
|
|
457
|
+
this.checked && this.addToStore();
|
|
458
|
+
}
|
|
545
459
|
});
|
|
546
460
|
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue?vue&type=script&lang=js
|
|
547
461
|
/* harmony default export */ var src_checkbox_buttonvue_type_script_lang_js = (checkbox_buttonvue_type_script_lang_js);
|
|
548
462
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
549
|
-
var componentNormalizer = __webpack_require__(
|
|
463
|
+
var componentNormalizer = __webpack_require__(2);
|
|
550
464
|
|
|
551
465
|
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue
|
|
552
466
|
|
|
@@ -571,13 +485,146 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
571
485
|
// CONCATENATED MODULE: ./packages/checkbox-button/index.js
|
|
572
486
|
|
|
573
487
|
|
|
488
|
+
|
|
574
489
|
/* istanbul ignore next */
|
|
575
490
|
checkbox_button.install = function (Vue) {
|
|
576
|
-
|
|
491
|
+
Vue.component(checkbox_button.name, checkbox_button);
|
|
577
492
|
};
|
|
578
|
-
|
|
579
493
|
/* harmony default export */ var packages_checkbox_button = __webpack_exports__["default"] = (checkbox_button);
|
|
580
494
|
|
|
495
|
+
/***/ }),
|
|
496
|
+
|
|
497
|
+
/***/ 2:
|
|
498
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
499
|
+
|
|
500
|
+
"use strict";
|
|
501
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
502
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
503
|
+
|
|
504
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
505
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
506
|
+
// be included in the final webpack user bundle.
|
|
507
|
+
|
|
508
|
+
function normalizeComponent(
|
|
509
|
+
scriptExports,
|
|
510
|
+
render,
|
|
511
|
+
staticRenderFns,
|
|
512
|
+
functionalTemplate,
|
|
513
|
+
injectStyles,
|
|
514
|
+
scopeId,
|
|
515
|
+
moduleIdentifier /* server only */,
|
|
516
|
+
shadowMode /* vue-cli only */
|
|
517
|
+
) {
|
|
518
|
+
// Vue.extend constructor export interop
|
|
519
|
+
var options =
|
|
520
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
521
|
+
|
|
522
|
+
// render functions
|
|
523
|
+
if (render) {
|
|
524
|
+
options.render = render
|
|
525
|
+
options.staticRenderFns = staticRenderFns
|
|
526
|
+
options._compiled = true
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
// functional template
|
|
530
|
+
if (functionalTemplate) {
|
|
531
|
+
options.functional = true
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// scopedId
|
|
535
|
+
if (scopeId) {
|
|
536
|
+
options._scopeId = 'data-v-' + scopeId
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
var hook
|
|
540
|
+
if (moduleIdentifier) {
|
|
541
|
+
// server build
|
|
542
|
+
hook = function (context) {
|
|
543
|
+
// 2.3 injection
|
|
544
|
+
context =
|
|
545
|
+
context || // cached call
|
|
546
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
547
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
548
|
+
// 2.2 with runInNewContext: true
|
|
549
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
550
|
+
context = __VUE_SSR_CONTEXT__
|
|
551
|
+
}
|
|
552
|
+
// inject component styles
|
|
553
|
+
if (injectStyles) {
|
|
554
|
+
injectStyles.call(this, context)
|
|
555
|
+
}
|
|
556
|
+
// register component module identifier for async chunk inferrence
|
|
557
|
+
if (context && context._registeredComponents) {
|
|
558
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
// used by ssr in case component is cached and beforeCreate
|
|
562
|
+
// never gets called
|
|
563
|
+
options._ssrRegister = hook
|
|
564
|
+
} else if (injectStyles) {
|
|
565
|
+
hook = shadowMode
|
|
566
|
+
? function () {
|
|
567
|
+
injectStyles.call(
|
|
568
|
+
this,
|
|
569
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
570
|
+
)
|
|
571
|
+
}
|
|
572
|
+
: injectStyles
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
if (hook) {
|
|
576
|
+
if (options.functional) {
|
|
577
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
578
|
+
// go through the normalizer
|
|
579
|
+
options._injectStyles = hook
|
|
580
|
+
// register for functional component in vue file
|
|
581
|
+
var originalRender = options.render
|
|
582
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
583
|
+
hook.call(context)
|
|
584
|
+
return originalRender(h, context)
|
|
585
|
+
}
|
|
586
|
+
} else {
|
|
587
|
+
// inject component registration as beforeCreate hook
|
|
588
|
+
var existing = options.beforeCreate
|
|
589
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
return {
|
|
594
|
+
exports: scriptExports,
|
|
595
|
+
options: options
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
/***/ }),
|
|
601
|
+
|
|
602
|
+
/***/ 21:
|
|
603
|
+
/***/ (function(module, exports) {
|
|
604
|
+
|
|
605
|
+
module.exports = require("core-js/modules/es.array.concat.js");
|
|
606
|
+
|
|
607
|
+
/***/ }),
|
|
608
|
+
|
|
609
|
+
/***/ 3:
|
|
610
|
+
/***/ (function(module, exports) {
|
|
611
|
+
|
|
612
|
+
module.exports = require("core-js/modules/es.object.to-string.js");
|
|
613
|
+
|
|
614
|
+
/***/ }),
|
|
615
|
+
|
|
616
|
+
/***/ 5:
|
|
617
|
+
/***/ (function(module, exports) {
|
|
618
|
+
|
|
619
|
+
module.exports = require("core-js/modules/es.function.name.js");
|
|
620
|
+
|
|
621
|
+
/***/ }),
|
|
622
|
+
|
|
623
|
+
/***/ 6:
|
|
624
|
+
/***/ (function(module, exports) {
|
|
625
|
+
|
|
626
|
+
module.exports = require("core-js/modules/es.number.constructor.js");
|
|
627
|
+
|
|
581
628
|
/***/ })
|
|
582
629
|
|
|
583
630
|
/******/ });
|