eoss-ui 0.3.97
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/CHANGELOG.md +929 -0
- package/README.md +30 -0
- package/lib/button-group.js +2857 -0
- package/lib/button.js +2884 -0
- package/lib/card.js +603 -0
- package/lib/cascader.js +373 -0
- package/lib/checkbox-group.js +3099 -0
- package/lib/clients.js +375 -0
- package/lib/config/api.js +205 -0
- package/lib/data-table-form.js +3848 -0
- package/lib/data-table.js +6315 -0
- package/lib/date-picker.js +2821 -0
- package/lib/dialog.js +3730 -0
- package/lib/enterprise.js +372 -0
- package/lib/eoss-ui.common.js +65365 -0
- package/lib/error-page.js +293 -0
- package/lib/flow-group.js +4200 -0
- package/lib/flow-list.js +4350 -0
- package/lib/flow.js +12893 -0
- package/lib/form.js +15635 -0
- package/lib/handle-user.js +2900 -0
- package/lib/handler.js +3118 -0
- package/lib/index.js +1 -0
- package/lib/input-number.js +2743 -0
- package/lib/input.js +2935 -0
- package/lib/label.js +411 -0
- package/lib/login.js +5048 -0
- package/lib/main.js +5816 -0
- package/lib/mainComp.js +6530 -0
- package/lib/menu.js +529 -0
- package/lib/nav.js +3048 -0
- package/lib/notify.js +1079 -0
- package/lib/page.js +3036 -0
- package/lib/pagination.js +354 -0
- package/lib/player.js +2904 -0
- package/lib/qr-code.js +2860 -0
- package/lib/radio-group.js +3091 -0
- package/lib/select-ganged.js +3242 -0
- package/lib/select.js +3295 -0
- package/lib/selector-panel.js +4425 -0
- package/lib/selector.js +3722 -0
- package/lib/sizer.js +3067 -0
- package/lib/steps.js +2943 -0
- package/lib/switch.js +2784 -0
- package/lib/table-form.js +6211 -0
- package/lib/tabs-panel.js +274 -0
- package/lib/tabs.js +4988 -0
- package/lib/theme-chalk/base.css +1 -0
- package/lib/theme-chalk/button-group.css +1 -0
- package/lib/theme-chalk/button.css +0 -0
- package/lib/theme-chalk/card.css +1 -0
- package/lib/theme-chalk/cascader.css +0 -0
- package/lib/theme-chalk/checkbox-group.css +1 -0
- package/lib/theme-chalk/clients.css +1 -0
- package/lib/theme-chalk/data-table-form.css +1 -0
- package/lib/theme-chalk/data-table.css +1 -0
- package/lib/theme-chalk/date-picker.css +1 -0
- package/lib/theme-chalk/dialog.css +1 -0
- package/lib/theme-chalk/enterprise.css +1 -0
- package/lib/theme-chalk/error-page.css +1 -0
- package/lib/theme-chalk/flow-chart.css +0 -0
- package/lib/theme-chalk/flow-group.css +1 -0
- package/lib/theme-chalk/flow-list.css +1 -0
- package/lib/theme-chalk/flow.css +1 -0
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/form.css +1 -0
- package/lib/theme-chalk/handle-user.css +1 -0
- package/lib/theme-chalk/handler.css +1 -0
- package/lib/theme-chalk/icon.css +1 -0
- package/lib/theme-chalk/index.css +1 -0
- package/lib/theme-chalk/input-number.css +0 -0
- package/lib/theme-chalk/input.css +1 -0
- package/lib/theme-chalk/label.css +1 -0
- package/lib/theme-chalk/login.css +1 -0
- package/lib/theme-chalk/main.css +1 -0
- package/lib/theme-chalk/mainComp.css +0 -0
- package/lib/theme-chalk/menu.css +1 -0
- package/lib/theme-chalk/nav.css +1 -0
- package/lib/theme-chalk/notify.css +0 -0
- package/lib/theme-chalk/page.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -0
- package/lib/theme-chalk/player.css +1 -0
- package/lib/theme-chalk/qr-code.css +1 -0
- package/lib/theme-chalk/radio-group.css +1 -0
- package/lib/theme-chalk/radio.css +1 -0
- package/lib/theme-chalk/select-ganged.css +1 -0
- package/lib/theme-chalk/select.css +0 -0
- package/lib/theme-chalk/selector-panel.css +1 -0
- package/lib/theme-chalk/selector.css +1 -0
- package/lib/theme-chalk/sizer.css +1 -0
- package/lib/theme-chalk/steps.css +1 -0
- package/lib/theme-chalk/switch.css +1 -0
- package/lib/theme-chalk/table-form.css +0 -0
- package/lib/theme-chalk/tabs-panel.css +0 -0
- package/lib/theme-chalk/tabs.css +1 -0
- package/lib/theme-chalk/tips.css +1 -0
- package/lib/theme-chalk/toolbar.css +1 -0
- package/lib/theme-chalk/tree-group.css +1 -0
- package/lib/theme-chalk/tree.css +1 -0
- package/lib/theme-chalk/upload.css +1 -0
- package/lib/theme-chalk/wujie.css +0 -0
- package/lib/theme-chalk/wxlogin.css +1 -0
- package/lib/tips.js +2830 -0
- package/lib/toolbar.js +531 -0
- package/lib/tree-group.js +3373 -0
- package/lib/tree.js +3482 -0
- package/lib/upload.js +3913 -0
- package/lib/utils/bus.js +9 -0
- package/lib/utils/date-util.js +318 -0
- package/lib/utils/http.js +58 -0
- package/lib/utils/rules.js +19 -0
- package/lib/utils/store.js +22 -0
- package/lib/utils/util.js +2056 -0
- package/lib/wujie.js +2845 -0
- package/lib/wxlogin.js +2799 -0
- package/package.json +151 -0
- package/packages/button/index.js +5 -0
- package/packages/button/src/main.vue +264 -0
- package/packages/button-group/index.js +5 -0
- package/packages/button-group/src/main.vue +130 -0
- package/packages/card/index.js +5 -0
- package/packages/card/src/main.vue +144 -0
- package/packages/cascader/index.js +5 -0
- package/packages/cascader/src/main.vue +144 -0
- package/packages/checkbox-group/index.js +5 -0
- package/packages/checkbox-group/src/main.vue +285 -0
- package/packages/clients/index.js +5 -0
- package/packages/clients/src/main.vue +50 -0
- package/packages/data-table/index.js +5 -0
- package/packages/data-table/src/children.vue +40 -0
- package/packages/data-table/src/column.vue +796 -0
- package/packages/data-table/src/main copy.vue +1383 -0
- package/packages/data-table/src/main.vue +1229 -0
- package/packages/data-table/src/mixins/table.js +12 -0
- package/packages/data-table/src/sizer.vue +160 -0
- package/packages/data-table-form/index.js +5 -0
- package/packages/data-table-form/src/colgroup.vue +17 -0
- package/packages/data-table-form/src/main.vue +167 -0
- package/packages/data-table-form/src/table.vue +192 -0
- package/packages/data-table-form/src/tbody.vue +219 -0
- package/packages/data-table-form/src/thead.vue +68 -0
- package/packages/date-picker/index.js +5 -0
- package/packages/date-picker/src/main.vue +185 -0
- package/packages/dialog/index.js +5 -0
- package/packages/dialog/src/main.vue +442 -0
- package/packages/enterprise/index.js +5 -0
- package/packages/enterprise/src/main.vue +66 -0
- package/packages/error-page/index.js +5 -0
- package/packages/error-page/src/main.vue +44 -0
- package/packages/flow/index.js +5 -0
- package/packages/flow/src/component/CommonOpinions.vue +290 -0
- package/packages/flow/src/component/CustomPreset.vue +311 -0
- package/packages/flow/src/component/FileList.vue +97 -0
- package/packages/flow/src/component/Preset.vue +253 -0
- package/packages/flow/src/component/SendMsg.vue +221 -0
- package/packages/flow/src/component/TimeLimit.vue +190 -0
- package/packages/flow/src/component/taskUnionExamine.vue +507 -0
- package/packages/flow/src/form.vue +120 -0
- package/packages/flow/src/main.vue +2107 -0
- package/packages/flow/src/processForm.vue +866 -0
- package/packages/flow/src/processReject.vue +262 -0
- package/packages/flow/src/selectUser.vue +425 -0
- package/packages/flow/src/startTaskRead.vue +556 -0
- package/packages/flow/src/table.vue +51 -0
- package/packages/flow-group/index.js +5 -0
- package/packages/flow-group/src/main.vue +540 -0
- package/packages/flow-list/index.js +5 -0
- package/packages/flow-list/src/flow-table.vue +445 -0
- package/packages/flow-list/src/main.vue +456 -0
- package/packages/form/index.js +5 -0
- package/packages/form/src/main.vue +4429 -0
- package/packages/form/src/table.vue +1196 -0
- package/packages/handle-user/index.js +5 -0
- package/packages/handle-user/src/main.vue +122 -0
- package/packages/handler/index.js +5 -0
- package/packages/handler/src/main.vue +306 -0
- package/packages/input/index.js +5 -0
- package/packages/input/src/main.vue +307 -0
- package/packages/input-number/index.js +5 -0
- package/packages/input-number/src/main.vue +106 -0
- package/packages/label/index.js +5 -0
- package/packages/label/src/main.vue +208 -0
- package/packages/login/index.js +5 -0
- package/packages/login/src/main.vue +1193 -0
- package/packages/login/src/resetPassword.vue +332 -0
- package/packages/main/index.js +5 -0
- package/packages/main/src/main.vue +1496 -0
- package/packages/main/src/message.vue +239 -0
- package/packages/main/src/notice.vue +145 -0
- package/packages/main/src/settings.vue +105 -0
- package/packages/main/src/userinfo.vue +430 -0
- package/packages/mainComp/index.js +5 -0
- package/packages/mainComp/src/async-component/index.vue +85 -0
- package/packages/mainComp/src/main.vue +1934 -0
- package/packages/mainComp/src/message.vue +239 -0
- package/packages/mainComp/src/notice.vue +152 -0
- package/packages/mainComp/src/settings.vue +105 -0
- package/packages/mainComp/src/userinfo.vue +423 -0
- package/packages/menu/index.js +5 -0
- package/packages/menu/src/main.vue +401 -0
- package/packages/nav/index.js +5 -0
- package/packages/nav/src/main.vue +250 -0
- package/packages/notify/index.js +5 -0
- package/packages/notify/src/main.vue +538 -0
- package/packages/page/index.js +5 -0
- package/packages/page/src/main.vue +167 -0
- package/packages/pagination/index.js +5 -0
- package/packages/pagination/src/main.vue +77 -0
- package/packages/player/index.js +5 -0
- package/packages/player/src/main.vue +194 -0
- package/packages/qr-code/index.js +5 -0
- package/packages/qr-code/src/main.vue +154 -0
- package/packages/radio/index.js +5 -0
- package/packages/radio/src/main.vue +259 -0
- package/packages/radio-group/index.js +6 -0
- package/packages/radio-group/src/main.vue +267 -0
- package/packages/select/index.js +5 -0
- package/packages/select/src/main.vue +683 -0
- package/packages/select-ganged/index.js +5 -0
- package/packages/select-ganged/src/main.vue +686 -0
- package/packages/selector/index.js +5 -0
- package/packages/selector/src/main.vue +588 -0
- package/packages/selector-panel/index.js +5 -0
- package/packages/selector-panel/src/main.vue +968 -0
- package/packages/selector-panel/src/selection.vue +142 -0
- package/packages/selector-panel/src/tree.vue +129 -0
- package/packages/sizer/index.js +5 -0
- package/packages/sizer/src/main.vue +254 -0
- package/packages/steps/index.js +5 -0
- package/packages/steps/src/main.vue +175 -0
- package/packages/switch/index.js +5 -0
- package/packages/switch/src/main.vue +154 -0
- package/packages/table-form/index.js +5 -0
- package/packages/tabs/index.js +5 -0
- package/packages/tabs/src/main.vue +749 -0
- package/packages/tabs-panel/index.js +5 -0
- package/packages/tabs-panel/src/main.vue +18 -0
- package/packages/theme-chalk/README.md +33 -0
- package/packages/theme-chalk/lib/base.css +1 -0
- package/packages/theme-chalk/lib/button-group.css +1 -0
- package/packages/theme-chalk/lib/button.css +0 -0
- package/packages/theme-chalk/lib/card.css +1 -0
- package/packages/theme-chalk/lib/cascader.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +1 -0
- package/packages/theme-chalk/lib/clients.css +1 -0
- package/packages/theme-chalk/lib/data-table-form.css +1 -0
- package/packages/theme-chalk/lib/data-table.css +1 -0
- package/packages/theme-chalk/lib/date-picker.css +1 -0
- package/packages/theme-chalk/lib/dialog.css +1 -0
- package/packages/theme-chalk/lib/enterprise.css +1 -0
- package/packages/theme-chalk/lib/error-page.css +1 -0
- package/packages/theme-chalk/lib/flow-chart.css +0 -0
- package/packages/theme-chalk/lib/flow-group.css +1 -0
- package/packages/theme-chalk/lib/flow-list.css +1 -0
- package/packages/theme-chalk/lib/flow.css +1 -0
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/form.css +1 -0
- package/packages/theme-chalk/lib/handle-user.css +1 -0
- package/packages/theme-chalk/lib/handler.css +1 -0
- package/packages/theme-chalk/lib/icon.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -0
- package/packages/theme-chalk/lib/input-number.css +0 -0
- package/packages/theme-chalk/lib/input.css +1 -0
- package/packages/theme-chalk/lib/label.css +1 -0
- package/packages/theme-chalk/lib/login.css +1 -0
- package/packages/theme-chalk/lib/main.css +1 -0
- package/packages/theme-chalk/lib/mainComp.css +0 -0
- package/packages/theme-chalk/lib/menu.css +1 -0
- package/packages/theme-chalk/lib/nav.css +1 -0
- package/packages/theme-chalk/lib/notify.css +0 -0
- package/packages/theme-chalk/lib/page.css +1 -0
- package/packages/theme-chalk/lib/pagination.css +1 -0
- package/packages/theme-chalk/lib/player.css +1 -0
- package/packages/theme-chalk/lib/qr-code.css +1 -0
- package/packages/theme-chalk/lib/radio-group.css +1 -0
- package/packages/theme-chalk/lib/radio.css +1 -0
- package/packages/theme-chalk/lib/select-ganged.css +1 -0
- package/packages/theme-chalk/lib/select.css +0 -0
- package/packages/theme-chalk/lib/selector-panel.css +1 -0
- package/packages/theme-chalk/lib/selector.css +1 -0
- package/packages/theme-chalk/lib/sizer.css +1 -0
- package/packages/theme-chalk/lib/steps.css +1 -0
- package/packages/theme-chalk/lib/switch.css +1 -0
- package/packages/theme-chalk/lib/table-form.css +0 -0
- package/packages/theme-chalk/lib/tabs-panel.css +0 -0
- package/packages/theme-chalk/lib/tabs.css +1 -0
- package/packages/theme-chalk/lib/tips.css +1 -0
- package/packages/theme-chalk/lib/toolbar.css +1 -0
- package/packages/theme-chalk/lib/tree-group.css +1 -0
- package/packages/theme-chalk/lib/tree.css +1 -0
- package/packages/theme-chalk/lib/upload.css +1 -0
- package/packages/theme-chalk/lib/wujie.css +0 -0
- package/packages/theme-chalk/lib/wxlogin.css +1 -0
- package/packages/theme-chalk/package.json +35 -0
- package/packages/theme-chalk/src/base.scss +165 -0
- package/packages/theme-chalk/src/button-group.scss +9 -0
- package/packages/theme-chalk/src/button.scss +0 -0
- package/packages/theme-chalk/src/card.scss +55 -0
- package/packages/theme-chalk/src/cascader.scss +0 -0
- package/packages/theme-chalk/src/checkbox-group.scss +8 -0
- package/packages/theme-chalk/src/clients.scss +72 -0
- package/packages/theme-chalk/src/common/var.scss +1516 -0
- package/packages/theme-chalk/src/data-table-form.scss +55 -0
- package/packages/theme-chalk/src/data-table.scss +202 -0
- package/packages/theme-chalk/src/date-picker.scss +8 -0
- package/packages/theme-chalk/src/dialog.scss +52 -0
- package/packages/theme-chalk/src/enterprise.scss +5 -0
- package/packages/theme-chalk/src/error-page.scss +18 -0
- package/packages/theme-chalk/src/flow-chart.scss +0 -0
- package/packages/theme-chalk/src/flow-group.scss +101 -0
- package/packages/theme-chalk/src/flow-list.scss +41 -0
- package/packages/theme-chalk/src/flow.scss +285 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/form.scss +451 -0
- package/packages/theme-chalk/src/handle-user.scss +40 -0
- package/packages/theme-chalk/src/handler.scss +131 -0
- package/packages/theme-chalk/src/icon.scss +1714 -0
- package/packages/theme-chalk/src/index.scss +50 -0
- package/packages/theme-chalk/src/input-number.scss +0 -0
- package/packages/theme-chalk/src/input.scss +3 -0
- package/packages/theme-chalk/src/label.scss +24 -0
- package/packages/theme-chalk/src/login.scss +490 -0
- package/packages/theme-chalk/src/main.scss +483 -0
- package/packages/theme-chalk/src/mainComp.scss +0 -0
- package/packages/theme-chalk/src/menu.scss +201 -0
- package/packages/theme-chalk/src/mixins/color.scss +117 -0
- package/packages/theme-chalk/src/mixins/mixins.scss +25 -0
- package/packages/theme-chalk/src/nav.scss +73 -0
- package/packages/theme-chalk/src/notify.scss +0 -0
- package/packages/theme-chalk/src/page.scss +3 -0
- package/packages/theme-chalk/src/pagination.scss +14 -0
- package/packages/theme-chalk/src/player.scss +9 -0
- package/packages/theme-chalk/src/qr-code.scss +17 -0
- package/packages/theme-chalk/src/radio-group.scss +9 -0
- package/packages/theme-chalk/src/radio.scss +3 -0
- package/packages/theme-chalk/src/select-ganged.scss +9 -0
- package/packages/theme-chalk/src/select.scss +0 -0
- package/packages/theme-chalk/src/selector-panel.scss +203 -0
- package/packages/theme-chalk/src/selector.scss +85 -0
- package/packages/theme-chalk/src/sizer.scss +36 -0
- package/packages/theme-chalk/src/steps.scss +88 -0
- package/packages/theme-chalk/src/switch.scss +3 -0
- package/packages/theme-chalk/src/table-form.scss +1 -0
- package/packages/theme-chalk/src/tabs-panel.scss +0 -0
- package/packages/theme-chalk/src/tabs.scss +91 -0
- package/packages/theme-chalk/src/tips.scss +7 -0
- package/packages/theme-chalk/src/toolbar.scss +121 -0
- package/packages/theme-chalk/src/tree-group.scss +64 -0
- package/packages/theme-chalk/src/tree.scss +140 -0
- package/packages/theme-chalk/src/upload.scss +131 -0
- package/packages/theme-chalk/src/wujie.scss +0 -0
- package/packages/theme-chalk/src/wxlogin.scss +3 -0
- package/packages/tips/index.js +5 -0
- package/packages/tips/src/main.vue +126 -0
- package/packages/toolbar/index.js +5 -0
- package/packages/toolbar/src/main.vue +377 -0
- package/packages/tree/index.js +5 -0
- package/packages/tree/src/main.vue +636 -0
- package/packages/tree-group/index.js +5 -0
- package/packages/tree-group/src/main.vue +435 -0
- package/packages/upload/index.js +5 -0
- package/packages/upload/src/main.vue +1033 -0
- package/packages/upload/src/picture.js +15 -0
- package/packages/wujie/index.js +5 -0
- package/packages/wujie/src/main.vue +137 -0
- package/packages/wxlogin/index.js +5 -0
- package/packages/wxlogin/src/main.vue +110 -0
- package/src/config/api.js +211 -0
- package/src/index.js +167 -0
- package/src/utils/bus.js +3 -0
- package/src/utils/date-util.js +312 -0
- package/src/utils/http.js +50 -0
- package/src/utils/rules.js +18 -0
- package/src/utils/store.js +21 -0
- package/src/utils/util.js +2105 -0
package/lib/menu.js
ADDED
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
module.exports =
|
|
2
|
+
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
+
/******/ // The module cache
|
|
4
|
+
/******/ var installedModules = {};
|
|
5
|
+
/******/
|
|
6
|
+
/******/ // The require function
|
|
7
|
+
/******/ function __webpack_require__(moduleId) {
|
|
8
|
+
/******/
|
|
9
|
+
/******/ // Check if module is in cache
|
|
10
|
+
/******/ if(installedModules[moduleId]) {
|
|
11
|
+
/******/ return installedModules[moduleId].exports;
|
|
12
|
+
/******/ }
|
|
13
|
+
/******/ // Create a new module (and put it into the cache)
|
|
14
|
+
/******/ var module = installedModules[moduleId] = {
|
|
15
|
+
/******/ i: moduleId,
|
|
16
|
+
/******/ l: false,
|
|
17
|
+
/******/ exports: {}
|
|
18
|
+
/******/ };
|
|
19
|
+
/******/
|
|
20
|
+
/******/ // Execute the module function
|
|
21
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
+
/******/
|
|
23
|
+
/******/ // Flag the module as loaded
|
|
24
|
+
/******/ module.l = true;
|
|
25
|
+
/******/
|
|
26
|
+
/******/ // Return the exports of the module
|
|
27
|
+
/******/ return module.exports;
|
|
28
|
+
/******/ }
|
|
29
|
+
/******/
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
+
/******/ __webpack_require__.m = modules;
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // expose the module cache
|
|
35
|
+
/******/ __webpack_require__.c = installedModules;
|
|
36
|
+
/******/
|
|
37
|
+
/******/ // define getter function for harmony exports
|
|
38
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
+
/******/ }
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // define __esModule on exports
|
|
45
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
+
/******/ }
|
|
49
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
/******/ };
|
|
51
|
+
/******/
|
|
52
|
+
/******/ // create a fake namespace object
|
|
53
|
+
/******/ // mode & 1: value is a module id, require it
|
|
54
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
+
/******/ // mode & 4: return value when already ns object
|
|
56
|
+
/******/ // mode & 8|1: behave like require
|
|
57
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
+
/******/ if(mode & 8) return value;
|
|
60
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
+
/******/ var ns = Object.create(null);
|
|
62
|
+
/******/ __webpack_require__.r(ns);
|
|
63
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
+
/******/ return ns;
|
|
66
|
+
/******/ };
|
|
67
|
+
/******/
|
|
68
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
+
/******/ __webpack_require__.n = function(module) {
|
|
70
|
+
/******/ var getter = module && module.__esModule ?
|
|
71
|
+
/******/ function getDefault() { return module['default']; } :
|
|
72
|
+
/******/ function getModuleExports() { return module; };
|
|
73
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
+
/******/ return getter;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
+
/******/
|
|
80
|
+
/******/ // __webpack_public_path__
|
|
81
|
+
/******/ __webpack_require__.p = "/dist/";
|
|
82
|
+
/******/
|
|
83
|
+
/******/
|
|
84
|
+
/******/ // Load entry module and return exports
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 68);
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ 2:
|
|
91
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
"use strict";
|
|
94
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
95
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
96
|
+
|
|
97
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
98
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
99
|
+
// be included in the final webpack user bundle.
|
|
100
|
+
|
|
101
|
+
function normalizeComponent(
|
|
102
|
+
scriptExports,
|
|
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
|
|
114
|
+
|
|
115
|
+
// render functions
|
|
116
|
+
if (render) {
|
|
117
|
+
options.render = render
|
|
118
|
+
options.staticRenderFns = staticRenderFns
|
|
119
|
+
options._compiled = true
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// functional template
|
|
123
|
+
if (functionalTemplate) {
|
|
124
|
+
options.functional = true
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// scopedId
|
|
128
|
+
if (scopeId) {
|
|
129
|
+
options._scopeId = 'data-v-' + scopeId
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
var hook
|
|
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
|
+
}
|
|
167
|
+
|
|
168
|
+
if (hook) {
|
|
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
|
+
}
|
|
185
|
+
|
|
186
|
+
return {
|
|
187
|
+
exports: scriptExports,
|
|
188
|
+
options: options
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/***/ }),
|
|
194
|
+
|
|
195
|
+
/***/ 68:
|
|
196
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
|
+
|
|
198
|
+
"use strict";
|
|
199
|
+
// ESM COMPAT FLAG
|
|
200
|
+
__webpack_require__.r(__webpack_exports__);
|
|
201
|
+
|
|
202
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/main.vue?vue&type=script&lang=js&
|
|
203
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
204
|
+
|
|
205
|
+
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
206
|
+
name: 'EsMenu',
|
|
207
|
+
inheritAttrs: false,
|
|
208
|
+
props: {
|
|
209
|
+
data: {
|
|
210
|
+
type: Array,
|
|
211
|
+
default: function _default() {
|
|
212
|
+
return [];
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
titleIcons: {
|
|
216
|
+
type: Boolean,
|
|
217
|
+
default: true
|
|
218
|
+
},
|
|
219
|
+
deep: {
|
|
220
|
+
type: Boolean,
|
|
221
|
+
default: true
|
|
222
|
+
},
|
|
223
|
+
subNav: {
|
|
224
|
+
type: Boolean,
|
|
225
|
+
default: false
|
|
226
|
+
},
|
|
227
|
+
width: String,
|
|
228
|
+
height: String,
|
|
229
|
+
mode: {
|
|
230
|
+
type: String,
|
|
231
|
+
default: 'vertical'
|
|
232
|
+
},
|
|
233
|
+
collapse: Boolean,
|
|
234
|
+
defaultActive: String,
|
|
235
|
+
uniqueOpened: {
|
|
236
|
+
type: Boolean,
|
|
237
|
+
default: true
|
|
238
|
+
},
|
|
239
|
+
popperClass: String,
|
|
240
|
+
biserial: Boolean,
|
|
241
|
+
isDefault: Boolean,
|
|
242
|
+
paddingLeft: {
|
|
243
|
+
type: Number,
|
|
244
|
+
default: 14
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
computed: {
|
|
248
|
+
maxHeight: function maxHeight() {
|
|
249
|
+
return this.height === undefined ? this.maxH : this.height;
|
|
250
|
+
},
|
|
251
|
+
maxWidth: function maxWidth() {
|
|
252
|
+
if (this.mode === 'vertical') {
|
|
253
|
+
return this.width;
|
|
254
|
+
}
|
|
255
|
+
return this.maxW;
|
|
256
|
+
},
|
|
257
|
+
active: function active() {
|
|
258
|
+
if (this.isDefault || !this.defaultActive) {
|
|
259
|
+
return '';
|
|
260
|
+
}
|
|
261
|
+
return this.defaultActive;
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
watch: {
|
|
265
|
+
data: {
|
|
266
|
+
immediate: true,
|
|
267
|
+
deep: true,
|
|
268
|
+
handler: function handler() {
|
|
269
|
+
var _this = this;
|
|
270
|
+
|
|
271
|
+
if (this.mode === 'vertical') {
|
|
272
|
+
this.$nextTick(function () {
|
|
273
|
+
_this.maxH = _this.$refs.esMenu.$el.offsetHeight + 'px';
|
|
274
|
+
});
|
|
275
|
+
} else {
|
|
276
|
+
this.$nextTick(function () {
|
|
277
|
+
var w = 0;
|
|
278
|
+
Array.from(_this.$refs.menu.$el.children).forEach(function (item) {
|
|
279
|
+
w += item.offsetWidth;
|
|
280
|
+
});
|
|
281
|
+
var styles = window.getComputedStyle(_this.$refs.menu.$el);
|
|
282
|
+
w += parseFloat(styles.paddingLeft) + parseFloat(styles.paddingRight);
|
|
283
|
+
if (w > _this.$refs.esMenu.$el.offsetWidth) {
|
|
284
|
+
_this.maxW = w + 'px';
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
data: function data() {
|
|
292
|
+
return {
|
|
293
|
+
maxH: '',
|
|
294
|
+
maxW: '',
|
|
295
|
+
menuId: null
|
|
296
|
+
};
|
|
297
|
+
},
|
|
298
|
+
mounted: function mounted() {},
|
|
299
|
+
|
|
300
|
+
methods: {
|
|
301
|
+
getFirst: function getFirst(arry) {
|
|
302
|
+
var item = arry[0];
|
|
303
|
+
if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
|
|
304
|
+
return this.getFirst(item.children);
|
|
305
|
+
} else {
|
|
306
|
+
this.$emit('select', {
|
|
307
|
+
node: item,
|
|
308
|
+
mode: this.mode,
|
|
309
|
+
auto: true
|
|
310
|
+
});
|
|
311
|
+
return item.id;
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
handleSelect: function handleSelect(key, keyPath, item) {
|
|
315
|
+
var _this2 = this;
|
|
316
|
+
|
|
317
|
+
if (this.menuId !== null && keyPath.indexOf(this.menuId) == -1) {
|
|
318
|
+
this.$refs.menu.close(this.menuId);
|
|
319
|
+
} else {
|
|
320
|
+
var openedMenus = item.rootMenu.openedMenus;
|
|
321
|
+
openedMenus.forEach(function (item) {
|
|
322
|
+
if (keyPath.indexOf(item) == -1) {
|
|
323
|
+
_this2.$refs.menu.close(item);
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
this.$emit('select', {
|
|
328
|
+
key: key,
|
|
329
|
+
path: keyPath,
|
|
330
|
+
node: item.$attrs.data,
|
|
331
|
+
item: item,
|
|
332
|
+
mode: this.mode
|
|
333
|
+
});
|
|
334
|
+
},
|
|
335
|
+
handleOpen: function handleOpen(key, keyPath) {
|
|
336
|
+
this.menuId = key;
|
|
337
|
+
this.$emit('open', { key: key, path: keyPath });
|
|
338
|
+
},
|
|
339
|
+
handleClose: function handleClose(key, keyPath) {
|
|
340
|
+
this.menuId = null;
|
|
341
|
+
this.$emit('close', { key: key, path: keyPath });
|
|
342
|
+
},
|
|
343
|
+
getSub: function getSub(item, h, popper) {
|
|
344
|
+
var _this3 = this;
|
|
345
|
+
|
|
346
|
+
if (popper) {
|
|
347
|
+
popper += this.popperClass !== undefined ? ' ' + this.popperClass : ' es-menu-popper-' + this.mode;
|
|
348
|
+
} else {
|
|
349
|
+
popper = this.popperClass !== undefined ? this.popperClass : ' es-menu-popper-' + this.mode;
|
|
350
|
+
}
|
|
351
|
+
var title = [h('i', {
|
|
352
|
+
class: [item.icons ? this.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application', 'es-menu-item-icon'],
|
|
353
|
+
domProps: item.icons === '' || this.unicode(item.icons) ? {} : { innerHTML: item.icons }
|
|
354
|
+
}), h('div', {
|
|
355
|
+
class: 'es-menu-title-text es-menu-title-' + this.mode
|
|
356
|
+
}, [h('el-badge', {
|
|
357
|
+
class: ['es-badge', {
|
|
358
|
+
'es-badge-right': item.tips && typeof item.tips !== 'boolean',
|
|
359
|
+
'es-dot-right': item.tips && typeof item.tips === 'boolean'
|
|
360
|
+
}],
|
|
361
|
+
props: typeof item.tips === 'boolean' && item.tips ? {
|
|
362
|
+
isDot: true
|
|
363
|
+
//hidden: item.tips
|
|
364
|
+
} : {
|
|
365
|
+
value: item.tips,
|
|
366
|
+
max: 99,
|
|
367
|
+
hidden: !item.tips
|
|
368
|
+
}
|
|
369
|
+
}, [item.text])])];
|
|
370
|
+
var doms = [h('template', { slot: 'title' }, this.titleIcons ? title : [title[1]])];
|
|
371
|
+
if (this.deep && item.children && item.children.length) {
|
|
372
|
+
doms = doms.concat(item.children.map(function (ele, index) {
|
|
373
|
+
if (!ele) {
|
|
374
|
+
console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
|
|
375
|
+
} else {
|
|
376
|
+
return _this3.getSub(ele, h, popper);
|
|
377
|
+
}
|
|
378
|
+
}));
|
|
379
|
+
return [h('el-submenu', {
|
|
380
|
+
class: ['es-submenu', 'es-submenu-' + this.mode],
|
|
381
|
+
props: {
|
|
382
|
+
popperClass: popper,
|
|
383
|
+
popperAppendToBody: true,
|
|
384
|
+
maxHeight: this.maxHeight,
|
|
385
|
+
paddingLeft: this.paddingLeft
|
|
386
|
+
},
|
|
387
|
+
attrs: { index: item.id, key: item.id }
|
|
388
|
+
}, doms)];
|
|
389
|
+
} else if (this.deep && this.mode === 'horizontal' && item.fourthTabs && item.fourthTabs.length) {
|
|
390
|
+
doms = doms.concat(item.fourthTabs.map(function (ele, index) {
|
|
391
|
+
if (!ele) {
|
|
392
|
+
console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
|
|
393
|
+
} else {
|
|
394
|
+
return _this3.getSub(ele, h, popper);
|
|
395
|
+
}
|
|
396
|
+
}));
|
|
397
|
+
return [h('el-submenu', {
|
|
398
|
+
class: ['es-submenu', 'es-submenu-' + this.mode],
|
|
399
|
+
props: {
|
|
400
|
+
popperClass: popper,
|
|
401
|
+
popperAppendToBody: true,
|
|
402
|
+
maxHeight: this.maxHeight,
|
|
403
|
+
paddingLeft: this.paddingLeft
|
|
404
|
+
},
|
|
405
|
+
attrs: { index: item.id, key: item.id }
|
|
406
|
+
}, doms)];
|
|
407
|
+
} else {
|
|
408
|
+
return [h('el-menu-item', {
|
|
409
|
+
class: 'es-menu-item ' + (this.deep ? '' : 'es-item-' + this.mode),
|
|
410
|
+
props: {
|
|
411
|
+
paddingLeft: this.paddingLeft
|
|
412
|
+
},
|
|
413
|
+
attrs: {
|
|
414
|
+
data: item,
|
|
415
|
+
index: item.id,
|
|
416
|
+
key: item.id
|
|
417
|
+
}
|
|
418
|
+
}, this.titleIcons ? title : [title[1]])];
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
unicode: function unicode(res) {
|
|
422
|
+
if (!res) {
|
|
423
|
+
return false;
|
|
424
|
+
}
|
|
425
|
+
var reg = new RegExp(/^es-\S+/, 'g');
|
|
426
|
+
return res.match(reg) ? res.match(reg).length : 0;
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
render: function render(h) {
|
|
430
|
+
var _this4 = this;
|
|
431
|
+
|
|
432
|
+
var doms = [];
|
|
433
|
+
this.data.forEach(function (item) {
|
|
434
|
+
if (item.children && item.children.length) {
|
|
435
|
+
doms = doms.concat(_this4.getSub(item, h, 'es-sub-menu'));
|
|
436
|
+
} else {
|
|
437
|
+
var title = [h('i', {
|
|
438
|
+
class: item.icons ? _this4.unicode(item.icons) ? item.icons : 'es-icons iconfont' : 'es-icon-application',
|
|
439
|
+
domProps: item.icons === '' || _this4.unicode(item.icons) ? {} : { innerHTML: item.icons }
|
|
440
|
+
}), h('div', {
|
|
441
|
+
class: 'es-menu-title-text es-menu-title-' + _this4.mode
|
|
442
|
+
}, [h('el-badge', {
|
|
443
|
+
class: ['es-badge', {
|
|
444
|
+
'es-badge-right': item.tips && typeof item.tips !== 'boolean',
|
|
445
|
+
'es-dot-right': item.tips && typeof item.tips === 'boolean'
|
|
446
|
+
}],
|
|
447
|
+
props: typeof item.tips === 'boolean' && item.tips ? {
|
|
448
|
+
isDot: true
|
|
449
|
+
//hidden: item.tips
|
|
450
|
+
} : {
|
|
451
|
+
value: item.tips,
|
|
452
|
+
max: 99,
|
|
453
|
+
hidden: !item.tips
|
|
454
|
+
}
|
|
455
|
+
}, [item.text])])];
|
|
456
|
+
doms.push(h('el-menu-item', {
|
|
457
|
+
props: {
|
|
458
|
+
paddingLeft: _this4.paddingLeft
|
|
459
|
+
},
|
|
460
|
+
attrs: {
|
|
461
|
+
data: item,
|
|
462
|
+
index: item.id,
|
|
463
|
+
key: item.id
|
|
464
|
+
}
|
|
465
|
+
}, _this4.titleIcons ? title : [title[1]]));
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
return h('el-scrollbar', {
|
|
469
|
+
ref: 'esMenu',
|
|
470
|
+
props: {
|
|
471
|
+
horizontal: this.mode === 'horizontal'
|
|
472
|
+
},
|
|
473
|
+
class: 'es-menu-' + this.mode + '-scrollbar'
|
|
474
|
+
}, [h('el-menu', {
|
|
475
|
+
class: ['es-menu', 'es-menu-' + this.mode, { 'es-menu-collapse': this.collapse }, { 'es-menu-nav': this.subNav }],
|
|
476
|
+
ref: 'menu',
|
|
477
|
+
props: {
|
|
478
|
+
defaultActive: this.active,
|
|
479
|
+
collapse: this.collapse,
|
|
480
|
+
mode: this.mode,
|
|
481
|
+
uniqueOpened: this.uniqueOpened
|
|
482
|
+
},
|
|
483
|
+
style: { width: this.maxWidth },
|
|
484
|
+
attrs: _extends({}, this.$attrs),
|
|
485
|
+
on: _extends({}, this.$listeners, {
|
|
486
|
+
open: this.handleOpen,
|
|
487
|
+
close: this.handleClose,
|
|
488
|
+
select: this.handleSelect
|
|
489
|
+
})
|
|
490
|
+
}, doms)]);
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
// CONCATENATED MODULE: ./packages/menu/src/main.vue?vue&type=script&lang=js&
|
|
494
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
495
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
496
|
+
var componentNormalizer = __webpack_require__(2);
|
|
497
|
+
|
|
498
|
+
// CONCATENATED MODULE: ./packages/menu/src/main.vue
|
|
499
|
+
var render, staticRenderFns
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
/* normalize component */
|
|
505
|
+
|
|
506
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
507
|
+
src_mainvue_type_script_lang_js_,
|
|
508
|
+
render,
|
|
509
|
+
staticRenderFns,
|
|
510
|
+
false,
|
|
511
|
+
null,
|
|
512
|
+
null,
|
|
513
|
+
null
|
|
514
|
+
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
/* harmony default export */ var main = (component.exports);
|
|
518
|
+
// CONCATENATED MODULE: ./packages/menu/index.js
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
main.install = function (Vue) {
|
|
522
|
+
return Vue.component(main.name, main);
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
/* harmony default export */ var menu = __webpack_exports__["default"] = (main);
|
|
526
|
+
|
|
527
|
+
/***/ })
|
|
528
|
+
|
|
529
|
+
/******/ });
|