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/utils/vue-popper.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
|
|
5
|
-
var _vue = require(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _popup = require('element-ui/lib/utils/popup');
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
13
|
-
var PopperJS = _vue2.default.prototype.$isServer ? function () {} : require('./popper');
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _vue = _interopRequireDefault(require("vue"));
|
|
6
|
+
var _popup = require("./popup");
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
var PopperJS = _vue.default.prototype.$isServer ? function () {} : require("./popper");
|
|
14
9
|
var stop = function stop(e) {
|
|
15
|
-
|
|
10
|
+
return e.stopPropagation();
|
|
16
11
|
};
|
|
17
12
|
|
|
18
13
|
/**
|
|
@@ -23,180 +18,163 @@ var stop = function stop(e) {
|
|
|
23
18
|
* @param {Boolean} [visible=false] Visibility of the popup element.
|
|
24
19
|
* @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
|
|
25
20
|
*/
|
|
26
|
-
exports.default = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
element.appendChild(arrow);
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
beforeDestroy: function beforeDestroy() {
|
|
190
|
-
this.doDestroy(true);
|
|
191
|
-
if (this.popperElm && this.popperElm.parentNode === document.body) {
|
|
192
|
-
this.popperElm.removeEventListener('click', stop);
|
|
193
|
-
document.body.removeChild(this.popperElm);
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
// call destroy in keep-alive mode
|
|
199
|
-
deactivated: function deactivated() {
|
|
200
|
-
this.$options.beforeDestroy[0].call(this);
|
|
201
|
-
}
|
|
21
|
+
var _default2 = exports.default = {
|
|
22
|
+
props: {
|
|
23
|
+
transformOrigin: {
|
|
24
|
+
type: [Boolean, String],
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
27
|
+
placement: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'bottom'
|
|
30
|
+
},
|
|
31
|
+
boundariesPadding: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 5
|
|
34
|
+
},
|
|
35
|
+
reference: {},
|
|
36
|
+
popper: {},
|
|
37
|
+
offset: {
|
|
38
|
+
default: 0
|
|
39
|
+
},
|
|
40
|
+
value: Boolean,
|
|
41
|
+
visibleArrow: Boolean,
|
|
42
|
+
arrowOffset: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 35
|
|
45
|
+
},
|
|
46
|
+
appendToBody: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: true
|
|
49
|
+
},
|
|
50
|
+
popperOptions: {
|
|
51
|
+
type: Object,
|
|
52
|
+
default: function _default() {
|
|
53
|
+
return {
|
|
54
|
+
gpuAcceleration: false
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
data: function data() {
|
|
60
|
+
return {
|
|
61
|
+
showPopper: false,
|
|
62
|
+
currentPlacement: ''
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
watch: {
|
|
66
|
+
value: {
|
|
67
|
+
immediate: true,
|
|
68
|
+
handler: function handler(val) {
|
|
69
|
+
this.showPopper = val;
|
|
70
|
+
this.$emit('input', val);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
showPopper: function showPopper(val) {
|
|
74
|
+
if (this.disabled) return;
|
|
75
|
+
val ? this.updatePopper() : this.destroyPopper();
|
|
76
|
+
this.$emit('input', val);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
methods: {
|
|
80
|
+
createPopper: function createPopper() {
|
|
81
|
+
var _this = this;
|
|
82
|
+
if (this.$isServer) return;
|
|
83
|
+
this.currentPlacement = this.currentPlacement || this.placement;
|
|
84
|
+
if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
var options = this.popperOptions;
|
|
88
|
+
var popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
|
|
89
|
+
var reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
|
|
90
|
+
if (!reference && this.$slots.reference && this.$slots.reference[0]) {
|
|
91
|
+
reference = this.referenceElm = this.$slots.reference[0].elm;
|
|
92
|
+
}
|
|
93
|
+
if (!popper || !reference) return;
|
|
94
|
+
if (this.visibleArrow) this.appendArrow(popper);
|
|
95
|
+
if (this.appendToBody) document.body.appendChild(this.popperElm);
|
|
96
|
+
if (this.popperJS && this.popperJS.destroy) {
|
|
97
|
+
this.popperJS.destroy();
|
|
98
|
+
}
|
|
99
|
+
options.placement = this.currentPlacement;
|
|
100
|
+
options.offset = this.offset;
|
|
101
|
+
options.arrowOffset = this.arrowOffset;
|
|
102
|
+
this.popperJS = new PopperJS(reference, popper, options);
|
|
103
|
+
this.popperJS.onCreate(function (_) {
|
|
104
|
+
_this.$emit('created', _this);
|
|
105
|
+
_this.resetTransformOrigin();
|
|
106
|
+
_this.$nextTick(_this.updatePopper);
|
|
107
|
+
});
|
|
108
|
+
if (typeof options.onUpdate === 'function') {
|
|
109
|
+
this.popperJS.onUpdate(options.onUpdate);
|
|
110
|
+
}
|
|
111
|
+
this.popperJS._popper.style.zIndex = _popup.PopupManager.nextZIndex();
|
|
112
|
+
this.popperElm.addEventListener('click', stop);
|
|
113
|
+
},
|
|
114
|
+
updatePopper: function updatePopper() {
|
|
115
|
+
var popperJS = this.popperJS;
|
|
116
|
+
if (popperJS) {
|
|
117
|
+
popperJS.update();
|
|
118
|
+
if (popperJS._popper) {
|
|
119
|
+
popperJS._popper.style.zIndex = _popup.PopupManager.nextZIndex();
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
this.createPopper();
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
doDestroy: function doDestroy(forceDestroy) {
|
|
126
|
+
/* istanbul ignore if */
|
|
127
|
+
if (!this.popperJS || this.showPopper && !forceDestroy) return;
|
|
128
|
+
this.popperJS.destroy();
|
|
129
|
+
this.popperJS = null;
|
|
130
|
+
},
|
|
131
|
+
destroyPopper: function destroyPopper() {
|
|
132
|
+
if (this.popperJS) {
|
|
133
|
+
this.resetTransformOrigin();
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
resetTransformOrigin: function resetTransformOrigin() {
|
|
137
|
+
if (!this.transformOrigin) return;
|
|
138
|
+
var placementMap = {
|
|
139
|
+
top: 'bottom',
|
|
140
|
+
bottom: 'top',
|
|
141
|
+
left: 'right',
|
|
142
|
+
right: 'left'
|
|
143
|
+
};
|
|
144
|
+
var placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
|
|
145
|
+
var origin = placementMap[placement];
|
|
146
|
+
this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string' ? this.transformOrigin : ['top', 'bottom'].indexOf(placement) > -1 ? "center " + origin : origin + " center";
|
|
147
|
+
},
|
|
148
|
+
appendArrow: function appendArrow(element) {
|
|
149
|
+
var hash;
|
|
150
|
+
if (this.appended) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
this.appended = true;
|
|
154
|
+
for (var item in element.attributes) {
|
|
155
|
+
if (/^_v-/.test(element.attributes[item].name)) {
|
|
156
|
+
hash = element.attributes[item].name;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
var arrow = document.createElement('div');
|
|
161
|
+
if (hash) {
|
|
162
|
+
arrow.setAttribute(hash, '');
|
|
163
|
+
}
|
|
164
|
+
arrow.setAttribute('x-arrow', '');
|
|
165
|
+
arrow.className = 'popper__arrow';
|
|
166
|
+
element.appendChild(arrow);
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
beforeDestroy: function beforeDestroy() {
|
|
170
|
+
this.doDestroy(true);
|
|
171
|
+
if (this.popperElm && this.popperElm.parentNode === document.body) {
|
|
172
|
+
this.popperElm.removeEventListener('click', stop);
|
|
173
|
+
document.body.removeChild(this.popperElm);
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
// call destroy in keep-alive mode
|
|
177
|
+
deactivated: function deactivated() {
|
|
178
|
+
this.$options.beforeDestroy[0].call(this);
|
|
179
|
+
}
|
|
202
180
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cy-element-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "基于ElementUI开发的组件",
|
|
5
5
|
"main": "lib/element-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build:theme:comment": "构建主题样式:在 index.less 中自动引入各个组件的覆写样式文件 && 通过 gulp 将 less 文件编译成 css 并输出到 lib 目录 && 拷贝基础样式 theme-chalk 到 lib/theme-chalk && 拷贝 编译后的 theme-cy/lib/* 目录到 lib/theme-cy && 合并 theme-chalk 和 theme-cy",
|
|
19
19
|
"build:theme": "npm run gen-cssfile && gulp build --gulpfile packages/theme-cy/gulpfile.js && cp-cli packages/theme-cy/lib lib/theme-cy && cp-cli packages/theme-chalk lib/theme-chalk && node build/bin/compose-css-file.js",
|
|
20
20
|
"build:file": "node build/bin/iconInit.js & node build/bin/build-entry.js & node build/bin/version.js",
|
|
21
|
-
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
|
|
21
|
+
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js src",
|
|
22
22
|
"build:umd": "node build/bin/build-locale.js",
|
|
23
23
|
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage",
|
|
24
24
|
"deploy:build": "npm run build:file && cross-env NODE_ENV=production webpack --config build/webpack.demo.js && echo element.eleme.io>>examples/element-ui/CNAME",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"async-validator": "~1.8.1",
|
|
70
70
|
"babel-helper-vue-jsx-merge-props": "^2.0.0",
|
|
71
|
+
"core-js": "^3.44.0",
|
|
71
72
|
"deepmerge": "^1.2.0",
|
|
72
73
|
"normalize-wheel": "^1.0.1",
|
|
73
74
|
"resize-observer-polyfill": "^1.5.0",
|
|
@@ -77,19 +78,19 @@
|
|
|
77
78
|
"vue": "^2.6.12"
|
|
78
79
|
},
|
|
79
80
|
"devDependencies": {
|
|
81
|
+
"@babel/cli": "^7.18.6",
|
|
82
|
+
"@babel/core": "^7.18.6",
|
|
83
|
+
"@babel/plugin-syntax-jsx": "^7.0.0",
|
|
84
|
+
"@babel/plugin-transform-modules-umd": "^7.27.1",
|
|
85
|
+
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
86
|
+
"@vue/babel-preset-jsx": "^1.4.0",
|
|
87
|
+
"@vue/cli-plugin-babel": "4.4.6",
|
|
88
|
+
"@vue/cli-service": "4.4.6",
|
|
80
89
|
"@vue/component-compiler-utils": "^3.2.0",
|
|
81
90
|
"algoliasearch": "^3.24.5",
|
|
82
|
-
"
|
|
83
|
-
"babel-core": "^6.26.3",
|
|
84
|
-
"babel-loader": "^7.1.5",
|
|
85
|
-
"babel-plugin-add-module-exports": "^0.2.1",
|
|
91
|
+
"axios": "^1.11.0",
|
|
86
92
|
"babel-plugin-istanbul": "^4.1.1",
|
|
87
|
-
"babel-plugin-module-resolver": "^
|
|
88
|
-
"babel-plugin-syntax-jsx": "^6.18.0",
|
|
89
|
-
"babel-plugin-transform-vue-jsx": "^3.7.0",
|
|
90
|
-
"babel-preset-env": "^1.7.0",
|
|
91
|
-
"babel-preset-stage-2": "^6.24.1",
|
|
92
|
-
"babel-regenerator-runtime": "^6.5.0",
|
|
93
|
+
"babel-plugin-module-resolver": "^4.1.0",
|
|
93
94
|
"chai": "^4.2.0",
|
|
94
95
|
"chokidar": "^1.7.0",
|
|
95
96
|
"copy-webpack-plugin": "^5.0.0",
|
|
@@ -98,11 +99,11 @@
|
|
|
98
99
|
"cross-env": "^3.1.3",
|
|
99
100
|
"css-loader": "^2.1.0",
|
|
100
101
|
"es6-promise": "^4.0.5",
|
|
101
|
-
"eslint": "4.
|
|
102
|
+
"eslint": "4.19.1",
|
|
102
103
|
"eslint-config-elemefe": "0.1.1",
|
|
103
|
-
"eslint-loader": "
|
|
104
|
-
"eslint-plugin-html": "^4.0.1",
|
|
104
|
+
"eslint-loader": "2.2.1",
|
|
105
105
|
"eslint-plugin-json": "^1.2.0",
|
|
106
|
+
"eslint-plugin-vue": "^5.2.3",
|
|
106
107
|
"file-loader": "^1.1.11",
|
|
107
108
|
"file-save": "^0.2.0",
|
|
108
109
|
"gulp": "^4.0.0",
|
|
@@ -111,7 +112,8 @@
|
|
|
111
112
|
"gulp-sass": "^4.0.2",
|
|
112
113
|
"highlight.js": "^9.3.0",
|
|
113
114
|
"html-webpack-plugin": "^3.2.0",
|
|
114
|
-
"
|
|
115
|
+
"js-base64": "^3.7.7",
|
|
116
|
+
"js-cookie": "^3.0.5",
|
|
115
117
|
"json-templater": "^1.0.4",
|
|
116
118
|
"karma": "^4.0.1",
|
|
117
119
|
"karma-chrome-launcher": "^2.2.0",
|
|
@@ -120,7 +122,7 @@
|
|
|
120
122
|
"karma-sinon-chai": "^2.0.2",
|
|
121
123
|
"karma-sourcemap-loader": "^0.3.7",
|
|
122
124
|
"karma-spec-reporter": "^0.0.32",
|
|
123
|
-
"karma-webpack": "^
|
|
125
|
+
"karma-webpack": "^4.0.2",
|
|
124
126
|
"launch-editor-middleware": "^2.3.0",
|
|
125
127
|
"markdown-it": "^8.4.1",
|
|
126
128
|
"markdown-it-anchor": "^5.0.2",
|
|
@@ -147,8 +149,7 @@
|
|
|
147
149
|
"vue-loader": "^15.7.0",
|
|
148
150
|
"vue-router": "^3.0.1",
|
|
149
151
|
"vue-template-compiler": "^2.6.12",
|
|
150
|
-
"
|
|
151
|
-
"webpack": "^4.14.0",
|
|
152
|
+
"webpack": "^4.47.0",
|
|
152
153
|
"webpack-cli": "^3.0.8",
|
|
153
154
|
"webpack-dev-server": "^3.1.11",
|
|
154
155
|
"webpack-node-externals": "^1.7.2"
|
|
@@ -13,82 +13,82 @@
|
|
|
13
13
|
</span>
|
|
14
14
|
<p class="el-alert__description" v-if="$slots.default && !description"><slot></slot></p>
|
|
15
15
|
<p class="el-alert__description" v-if="description && !$slots.default">{{ description }}</p>
|
|
16
|
-
<i class="el-alert__closebtn" :class="{ 'is-customed': closeText !== '', 'el-icon-close': closeText === '' }" v-show="closable" @click="close()">{{closeText}}</i>
|
|
16
|
+
<i class="el-alert__closebtn" :class="{ 'is-customed': closeText !== '', 'el-icon-close': closeText === '' }" v-show="closable" @click="close()">{{ closeText }}</i>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
</transition>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script type="text/babel">
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
const TYPE_CLASSES_MAP = {
|
|
24
|
+
'success': 'el-icon-success',
|
|
25
|
+
'warning': 'el-icon-warning',
|
|
26
|
+
'error': 'el-icon-error'
|
|
27
|
+
};
|
|
28
|
+
export default {
|
|
29
|
+
name: 'ElAlert',
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
description: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: ''
|
|
39
|
-
},
|
|
40
|
-
type: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: 'info'
|
|
43
|
-
},
|
|
44
|
-
closable: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: true
|
|
47
|
-
},
|
|
48
|
-
closeText: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: ''
|
|
51
|
-
},
|
|
52
|
-
showIcon: Boolean,
|
|
53
|
-
center: Boolean,
|
|
54
|
-
effect: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: 'light',
|
|
57
|
-
validator: function(value) {
|
|
58
|
-
return ['light', 'dark'].indexOf(value) !== -1;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
31
|
+
props: {
|
|
32
|
+
title: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ''
|
|
61
35
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
visible: true
|
|
66
|
-
};
|
|
36
|
+
description: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ''
|
|
67
39
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
this.visible = false;
|
|
72
|
-
this.$emit('close');
|
|
73
|
-
}
|
|
40
|
+
type: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: 'info'
|
|
74
43
|
},
|
|
44
|
+
closable: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true
|
|
47
|
+
},
|
|
48
|
+
closeText: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: ''
|
|
51
|
+
},
|
|
52
|
+
showIcon: Boolean,
|
|
53
|
+
center: Boolean,
|
|
54
|
+
effect: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: 'light',
|
|
57
|
+
validator: function(value) {
|
|
58
|
+
return ['light', 'dark'].indexOf(value) !== -1;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
75
62
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
63
|
+
data() {
|
|
64
|
+
return {
|
|
65
|
+
visible: true
|
|
66
|
+
};
|
|
67
|
+
},
|
|
80
68
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
69
|
+
methods: {
|
|
70
|
+
close() {
|
|
71
|
+
this.visible = false;
|
|
72
|
+
this.$emit('close');
|
|
73
|
+
}
|
|
74
|
+
},
|
|
84
75
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
76
|
+
computed: {
|
|
77
|
+
typeClass() {
|
|
78
|
+
return `el-alert--${ this.type }`;
|
|
79
|
+
},
|
|
88
80
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
81
|
+
iconClass() {
|
|
82
|
+
return TYPE_CLASSES_MAP[this.type] || 'el-icon-info';
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
isBigIcon() {
|
|
86
|
+
return this.description || this.$slots.default ? 'is-big' : '';
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
isBoldTitle() {
|
|
90
|
+
return this.description || this.$slots.default ? 'is-bold' : '';
|
|
92
91
|
}
|
|
93
|
-
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
94
|
</script>
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
export default {
|
|
9
|
+
name: 'ElAside',
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
componentName: 'ElAside',
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
13
|
+
props: {
|
|
14
|
+
width: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: '300px'
|
|
18
17
|
}
|
|
19
|
-
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
20
|
</script>
|