eoss 0.1.0-alpha.20 → 0.1.0-alpha.21
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/lib/account-login.js +1943 -1890
- package/lib/alert.js +4 -4
- package/lib/aside.js +4 -4
- package/lib/autocomplete.js +4936 -4834
- package/lib/avatar.js +4 -4
- package/lib/backtop.js +4 -4
- package/lib/badge.js +4 -4
- package/lib/breadcrumb-item.js +6 -6
- package/lib/breadcrumb.js +7 -7
- package/lib/button-group.js +11 -14
- package/lib/button.js +6 -6
- package/lib/ca-login.js +2480 -2382
- package/lib/calendar.js +798 -798
- package/lib/card.js +4 -4
- package/lib/carousel-item.js +911 -813
- package/lib/carousel.js +1646 -1548
- package/lib/cascader-panel.js +2556 -2458
- package/lib/cascader.js +4546 -4444
- package/lib/checkbox-button.js +4 -4
- package/lib/checkbox-group.js +2894 -2841
- package/lib/checkbox.js +4 -4
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +35159 -2572
- package/lib/collapse.js +35410 -2762
- package/lib/color-picker.js +494 -490
- package/lib/config/api.js +15 -1
- package/lib/container.js +4 -4
- package/lib/cron.js +4 -4
- package/lib/data-table.js +1895 -1842
- package/lib/date-picker.js +6422 -6320
- package/lib/dialog.js +2912 -2806
- package/lib/divider.js +4 -4
- package/lib/drawer.js +311 -299
- package/lib/dropdown-item.js +6 -6
- package/lib/dropdown-menu.js +539 -535
- package/lib/dropdown.js +2270 -2172
- package/lib/email-login.js +1783 -1730
- package/lib/empty.js +723 -0
- package/lib/eoss.common.js +63680 -56193
- package/lib/flip.js +4 -4
- package/lib/flow-group.js +2985 -2887
- package/lib/flow.js +28067 -28022
- package/lib/footer.js +4 -4
- package/lib/form-item.js +1935 -1837
- package/lib/form.js +9230 -9092
- package/lib/header.js +4 -4
- package/lib/icon.js +1708 -1590
- package/lib/icons.js +4 -4
- package/lib/image-viewer.js +1660 -1562
- package/lib/image.js +162 -162
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +76 -76
- package/lib/input-number.js +172 -172
- package/lib/input.js +1362 -1264
- package/lib/link.js +4 -4
- package/lib/loading.js +321 -317
- package/lib/login.js +3306 -3300
- package/lib/lowcode.js +13320 -0
- package/lib/main.js +14465 -14339
- package/lib/marquee.js +1237 -1139
- package/lib/menu-item-group.js +119 -119
- package/lib/menu-item.js +114 -114
- package/lib/menu.js +6193 -6091
- package/lib/message-box.js +3582 -3480
- package/lib/message.js +2265 -2163
- package/lib/notification.js +2430 -2328
- package/lib/option-group.js +4 -4
- package/lib/option.js +842 -744
- package/lib/page-header.js +4 -4
- package/lib/pagination.js +1916 -1815
- package/lib/phone-login.js +1788 -1735
- package/lib/popconfirm.js +8 -8
- package/lib/popover.js +4559 -4457
- package/lib/progress.js +4 -4
- package/lib/qr-code.js +9 -9
- package/lib/qrcode-login.js +1600 -1543
- package/lib/radio-button.js +6 -6
- package/lib/radio-group.js +2142 -2089
- package/lib/radio.js +6 -6
- package/lib/rate.js +1226 -1128
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +2695 -2597
- package/lib/select.js +5985 -5961
- package/lib/selector-panel.js +5239 -5186
- package/lib/selector.js +1712 -1659
- package/lib/slider.js +16 -16
- package/lib/step.js +35836 -2736
- package/lib/steps.js +1281 -1183
- package/lib/submenu.js +461 -457
- package/lib/switch.js +1010 -912
- package/lib/tab-pane.js +4 -4
- package/lib/table-column.js +2595 -2497
- package/lib/table.js +9225 -9239
- package/lib/tabs.js +2414 -2320
- package/lib/tag.js +4 -4
- package/lib/theme-chalk/account-login.css +1 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/empty.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 -1
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/lowcode.css +1 -0
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/qrcode-login.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/time-picker.js +5823 -5819
- package/lib/time-select.js +3578 -3574
- package/lib/timeline-item.js +4 -4
- package/lib/timeline.js +4 -4
- package/lib/tips.js +1633 -1580
- package/lib/toolbar.js +213 -213
- package/lib/tooltip.js +4441 -4339
- package/lib/transfer.js +938 -840
- package/lib/tree-group.js +1875 -1757
- package/lib/tree.js +2626 -2573
- package/lib/upload.js +7209 -7156
- package/lib/utils/ajax.js +185 -243
- package/lib/utils/bus.js +2 -2
- package/lib/utils/popup/index.js +5 -1
- package/lib/utils/util.js +108 -11
- package/package.json +2 -2
- package/packages/button/src/button-group.vue +1 -4
- package/packages/collapse/src/collapse-item.vue +47 -33
- package/packages/dialog/src/dialog.vue +4 -1
- package/packages/drawer/src/drawer.vue +12 -4
- package/packages/empty/index.js +7 -0
- package/packages/empty/src/img-empty.vue +132 -0
- package/packages/empty/src/index.vue +49 -0
- package/packages/form/src/form-item-render.vue +16 -18
- package/packages/form/src/form.vue +27 -5
- package/packages/icons/src/icon.json +1 -1
- package/packages/login/src/login.vue +19 -21
- package/packages/login/src/mixins.js +2 -1
- package/packages/lowcode/index.js +5 -0
- package/packages/lowcode/src/aside.vue +331 -0
- package/packages/lowcode/src/attribute/bind.vue +441 -0
- package/packages/lowcode/src/attribute/dependency.vue +325 -0
- package/packages/lowcode/src/attribute/function.vue +112 -0
- package/packages/lowcode/src/attribute/property.vue +331 -0
- package/packages/lowcode/src/attribute/styles.vue +318 -0
- package/packages/lowcode/src/attribute.vue +135 -0
- package/packages/lowcode/src/canvas.vue +296 -0
- package/packages/lowcode/src/json.vue +32 -0
- package/packages/lowcode/src/lowcode.vue +539 -0
- package/packages/lowcode/src/modules.vue +93 -0
- package/packages/lowcode/src/pages.vue +91 -0
- package/packages/lowcode/src/render.vue +247 -0
- package/packages/lowcode/src/source.vue +32 -0
- package/packages/lowcode/src/toolbar.vue +162 -0
- package/packages/main/src/components/pages.vue +28 -2
- package/packages/main/src/components/set-menus.vue +3 -3
- package/packages/main/src/components/user.vue +6 -1
- package/packages/main/src/early.vue +2 -2
- package/packages/main/src/gzw.vue +55 -61
- package/packages/main/src/minxs.js +113 -36
- package/packages/pagination/src/pager.vue +2 -2
- package/packages/pagination/src/pagination.js +4 -1
- package/packages/qrcode-login/src/qrcode-login.vue +6 -2
- package/packages/select/src/select.vue +28 -6
- package/packages/steps/src/step.vue +7 -5
- package/packages/tabs/src/tab-nav.vue +1 -0
- package/packages/tabs/src/tabs.vue +0 -2
- package/packages/theme-chalk/dist/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/dist/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/gulpfile.js +3 -0
- package/packages/theme-chalk/src/account-login.scss +1 -0
- package/packages/theme-chalk/src/base.scss +1 -1
- package/packages/theme-chalk/src/common/var.scss +16 -0
- package/packages/theme-chalk/src/empty.scss +45 -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 +1 -8
- package/packages/theme-chalk/src/icon.scss +30 -1
- package/packages/theme-chalk/src/index.scss +2 -0
- package/packages/theme-chalk/src/input-number.scss +0 -4
- package/packages/theme-chalk/src/input.scss +9 -0
- package/packages/theme-chalk/src/login.scss +32 -29
- package/packages/theme-chalk/src/lowcode.scss +461 -0
- package/packages/theme-chalk/src/main.scss +28 -65
- package/packages/theme-chalk/src/pagination.scss +4 -55
- package/packages/theme-chalk/src/qrcode-login.scss +3 -1
- package/packages/theme-chalk/src/tabs.scss +81 -50
- package/src/config/api.js +13 -0
- package/src/index.js +17 -4
- package/src/utils/ajax.js +61 -65
- package/src/utils/bus.js +2 -2
- package/src/utils/popup/index.js +5 -1
- package/src/utils/util.js +104 -7
- package/lib/index_/345/211/257/346/234/254.js +0 -583
- package/packages/dialog copy/index.js +0 -8
- package/packages/dialog copy/src/dialog.vue +0 -615
- package/src/index_/345/211/257/346/234/254.js +0 -359
- /package/{packages/form/src → src/components}/field-render.vue +0 -0
package/lib/option.js
CHANGED
|
@@ -82,7 +82,7 @@ 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 = 140);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -91,13 +91,13 @@ module.exports =
|
|
|
91
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
94
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
94
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return noop; });
|
|
95
95
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return hasOwn; });
|
|
96
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
96
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return toObject; });
|
|
97
97
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getValueByPath; });
|
|
98
98
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getPropByPath; });
|
|
99
99
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return generateId; });
|
|
100
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
100
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return valueEquals; });
|
|
101
101
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return escapeRegexpString; });
|
|
102
102
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return arrayFindIndex; });
|
|
103
103
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFind; });
|
|
@@ -111,12 +111,12 @@ module.exports =
|
|
|
111
111
|
/* unused harmony export looseEqual */
|
|
112
112
|
/* unused harmony export arrayEquals */
|
|
113
113
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isEqual; });
|
|
114
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
114
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return rafThrottle; });
|
|
115
115
|
/* unused harmony export objToArray */
|
|
116
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
116
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return requestAnimationFrame; });
|
|
117
117
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return cancelAnimationFrame; });
|
|
118
118
|
/* unused harmony export debounce */
|
|
119
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
119
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return throttle; });
|
|
120
120
|
/* unused harmony export guid */
|
|
121
121
|
/* unused harmony export uid */
|
|
122
122
|
/* unused harmony export get */
|
|
@@ -150,7 +150,7 @@ module.exports =
|
|
|
150
150
|
/* unused harmony export getValues */
|
|
151
151
|
/* unused harmony export getZoom */
|
|
152
152
|
/* unused harmony export getLength */
|
|
153
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
153
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return timestampUrl; });
|
|
154
154
|
/* unused harmony export hasChars */
|
|
155
155
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return identical; });
|
|
156
156
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return indexOfObj; });
|
|
@@ -159,41 +159,42 @@ module.exports =
|
|
|
159
159
|
/* unused harmony export isFunction */
|
|
160
160
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isObjectEqual; });
|
|
161
161
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return joinUrl; });
|
|
162
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return layoutWaterfall; });
|
|
162
163
|
/* unused harmony export loadJs */
|
|
163
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
164
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return loading; });
|
|
164
165
|
/* unused harmony export lowerCase */
|
|
165
166
|
/* unused harmony export overbrim */
|
|
166
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
167
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return queryParams; });
|
|
167
168
|
/* unused harmony export receiveMessage */
|
|
168
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
169
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return renderIcon; });
|
|
169
170
|
/* unused harmony export replenish */
|
|
170
171
|
/* unused harmony export rmbToCapital */
|
|
171
172
|
/* unused harmony export setScale */
|
|
172
173
|
/* unused harmony export sendMessage */
|
|
173
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
174
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return setFavicon; });
|
|
174
175
|
/* unused harmony export sum */
|
|
175
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
176
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return startWith; });
|
|
176
177
|
/* unused harmony export takeLeft */
|
|
177
178
|
/* unused harmony export takeRight */
|
|
178
179
|
/* unused harmony export trimWhitespace */
|
|
179
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
180
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return toFixed; });
|
|
180
181
|
/* unused harmony export toFunction */
|
|
181
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
182
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return updateTheme; });
|
|
182
183
|
/* unused harmony export upperType */
|
|
183
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
184
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
185
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
184
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return urlJoinParams; });
|
|
185
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return uuid; });
|
|
186
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return watermark; });
|
|
186
187
|
/* unused harmony export winTopOpen */
|
|
187
188
|
/* unused harmony export confirm */
|
|
188
189
|
/* unused harmony export success */
|
|
189
190
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return error; });
|
|
190
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
191
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
191
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return warning; });
|
|
192
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
192
193
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
193
|
-
/* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
194
|
-
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
195
|
-
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
196
|
-
/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
194
|
+
/* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13);
|
|
195
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
196
|
+
/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
|
|
197
|
+
/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
197
198
|
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; };
|
|
198
199
|
|
|
199
200
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
@@ -203,9 +204,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
203
204
|
|
|
204
205
|
|
|
205
206
|
|
|
206
|
-
var _get = __webpack_require__(
|
|
207
|
-
var _set = __webpack_require__(
|
|
208
|
-
var _cloneDeep = __webpack_require__(
|
|
207
|
+
var _get = __webpack_require__(20);
|
|
208
|
+
var _set = __webpack_require__(21);
|
|
209
|
+
var _cloneDeep = __webpack_require__(22);
|
|
209
210
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
210
211
|
|
|
211
212
|
// 导入date中的formatDate函数
|
|
@@ -1404,7 +1405,9 @@ var getObjectType = function getObjectType(obj) {
|
|
|
1404
1405
|
* @return {Object|string} 参数对象或指定参数值
|
|
1405
1406
|
**/
|
|
1406
1407
|
var getParams = function getParams() {
|
|
1407
|
-
var
|
|
1408
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1409
|
+
|
|
1410
|
+
var _ref5 = typeof options === 'string' ? { name: options } : options,
|
|
1408
1411
|
url = _ref5.url,
|
|
1409
1412
|
name = _ref5.name;
|
|
1410
1413
|
|
|
@@ -1816,10 +1819,7 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
1816
1819
|
return _i3;
|
|
1817
1820
|
}
|
|
1818
1821
|
} else if (target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object') {
|
|
1819
|
-
if (currentItem[currentKey] ===
|
|
1820
|
-
throw new Error('\u5C5E\u6027' + currentKey + '\u4E0D\u5B58\u5728');
|
|
1821
|
-
}
|
|
1822
|
-
if (currentItem[currentKey] === target[currentKey]) {
|
|
1822
|
+
if (currentItem[currentKey] !== undefined && currentItem[currentKey] === target[currentKey]) {
|
|
1823
1823
|
return _i3;
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
@@ -2014,7 +2014,105 @@ var joinUrl = function joinUrl(_ref8) {
|
|
|
2014
2014
|
// 如果前缀类型无效,直接返回URL
|
|
2015
2015
|
return url;
|
|
2016
2016
|
};
|
|
2017
|
+
/**
|
|
2018
|
+
* layoutWaterfall
|
|
2019
|
+
* @desc 布布流布局计算
|
|
2020
|
+
* @author huangbo
|
|
2021
|
+
* @date 2022年5月7日
|
|
2022
|
+
* @param {String} url - JS文件地址
|
|
2023
|
+
* @param {Function} [callback] - 回调函数
|
|
2024
|
+
**/
|
|
2025
|
+
var layoutWaterfall = function layoutWaterfall(self, container, pages, columns, gap) {
|
|
2026
|
+
if (!container) return;
|
|
2027
|
+
|
|
2028
|
+
if (pages.length === 0) return;
|
|
2029
|
+
|
|
2030
|
+
// 获取容器实际内容宽度(减去 padding)
|
|
2031
|
+
var computedStyle = getComputedStyle(container);
|
|
2032
|
+
var paddingLeft = parseFloat(computedStyle.paddingLeft) || 0;
|
|
2033
|
+
var paddingRight = parseFloat(computedStyle.paddingRight) || 0;
|
|
2034
|
+
var paddingTop = parseFloat(computedStyle.paddingTop) || 0;
|
|
2035
|
+
var containerWidth = container.clientWidth - paddingLeft - paddingRight;
|
|
2036
|
+
if (containerWidth === 0) return;
|
|
2037
|
+
|
|
2038
|
+
// 计算每列宽度
|
|
2039
|
+
var columnWidth = (containerWidth - gap * (columns - 1)) / columns;
|
|
2040
|
+
|
|
2041
|
+
// 初始化每列高度数组(以 paddingTop 为起始偏移)
|
|
2042
|
+
var columnHeights = new Array(columns).fill(paddingTop);
|
|
2043
|
+
|
|
2044
|
+
// 遍历所有元素,分配到高度最小的列
|
|
2045
|
+
pages.forEach(function (item) {
|
|
2046
|
+
// 确保span在有效范围内
|
|
2047
|
+
var span = Math.max(1, Math.min(item.style ? item.style.span || item.span || 1 : item.span || 1, columns));
|
|
2048
|
+
|
|
2049
|
+
// 找到可以容纳当前元素span宽度的最小高度起始列
|
|
2050
|
+
var minHeight = Infinity;
|
|
2051
|
+
var startColumn = 0;
|
|
2052
|
+
|
|
2053
|
+
// 遍历所有可能的起始列,找到可以放置span列元素的位置
|
|
2054
|
+
for (var i = 0; i <= columns - span; i++) {
|
|
2055
|
+
// 计算当前连续span列的最大高度
|
|
2056
|
+
var currentMaxHeight = 0;
|
|
2057
|
+
for (var j = i; j < i + span; j++) {
|
|
2058
|
+
if (columnHeights[j] > currentMaxHeight) {
|
|
2059
|
+
currentMaxHeight = columnHeights[j];
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
// 找到最小的最大高度
|
|
2064
|
+
if (currentMaxHeight < minHeight) {
|
|
2065
|
+
minHeight = currentMaxHeight;
|
|
2066
|
+
startColumn = i;
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
// 计算元素宽度和位置
|
|
2071
|
+
var existingWidth = item.style && item.style.width ? parseInt(item.style.width, 10) : null;
|
|
2072
|
+
var hasSpan = item.style && item.style.span || item.span;
|
|
2073
|
+
var calculatedWidth = columnWidth * span + gap * (span - 1);
|
|
2074
|
+
var useCustomWidth = !hasSpan && existingWidth;
|
|
2075
|
+
var elementWidth = useCustomWidth ? existingWidth : calculatedWidth;
|
|
2076
|
+
|
|
2077
|
+
// 根据是否使用自定义宽度计算 left(加上 padding 偏移)
|
|
2078
|
+
var left = void 0;
|
|
2079
|
+
if (useCustomWidth) {
|
|
2080
|
+
// 自定义宽度:在分配的列范围内居中(取整避免亚像素)
|
|
2081
|
+
var columnSpaceWidth = columnWidth * span + gap * (span - 1);
|
|
2082
|
+
left = Math.round(paddingLeft + startColumn * columnWidth + startColumn * gap + (columnSpaceWidth - elementWidth) / 2);
|
|
2083
|
+
} else {
|
|
2084
|
+
// 标准 span 宽度:正常计算位置
|
|
2085
|
+
left = paddingLeft + startColumn * columnWidth + startColumn * gap;
|
|
2086
|
+
}
|
|
2087
|
+
var top = minHeight;
|
|
2017
2088
|
|
|
2089
|
+
// 设置元素样式(使用Vue的$set确保响应式)
|
|
2090
|
+
if (!item.style) {
|
|
2091
|
+
self.$set(item, 'style', {});
|
|
2092
|
+
}
|
|
2093
|
+
var height = item.style.height ? parseInt(item.style.height, 10) : 30;
|
|
2094
|
+
self.$set(item.style, 'position', 'absolute');
|
|
2095
|
+
self.$set(item.style, 'width', elementWidth + 'px');
|
|
2096
|
+
self.$set(item.style, 'height', height + 'px');
|
|
2097
|
+
self.$set(item.style, 'left', left + 'px');
|
|
2098
|
+
self.$set(item.style, 'top', top + 'px');
|
|
2099
|
+
if (!useCustomWidth) {
|
|
2100
|
+
self.$set(item.style, 'span', span);
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
// 更新所有被占用列的高度
|
|
2104
|
+
var newHeight = top + height + gap;
|
|
2105
|
+
for (var _i5 = startColumn; _i5 < startColumn + span; _i5++) {
|
|
2106
|
+
columnHeights[_i5] = newHeight;
|
|
2107
|
+
}
|
|
2108
|
+
});
|
|
2109
|
+
|
|
2110
|
+
// 设置容器高度
|
|
2111
|
+
var maxHeight = Math.max.apply(Math, columnHeights);
|
|
2112
|
+
container.style.position = 'relative';
|
|
2113
|
+
container.style.height = maxHeight - gap + 'px'; // 减去最后一个间隙
|
|
2114
|
+
return { columnWidth: columnWidth, width: containerWidth };
|
|
2115
|
+
};
|
|
2018
2116
|
/**
|
|
2019
2117
|
* loadJs
|
|
2020
2118
|
* @desc 加载JS文件
|
|
@@ -2045,7 +2143,7 @@ var loadJs = function loadJs(url, callback) {
|
|
|
2045
2143
|
var loading = function loading() {
|
|
2046
2144
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '请求中...';
|
|
2047
2145
|
|
|
2048
|
-
var Loading = __webpack_require__(
|
|
2146
|
+
var Loading = __webpack_require__(19).default;
|
|
2049
2147
|
return Loading.service({
|
|
2050
2148
|
text: text,
|
|
2051
2149
|
spinner: 'es-icon-jiazai',
|
|
@@ -2163,8 +2261,8 @@ var renderIcon = function renderIcon(data, node, icons) {
|
|
|
2163
2261
|
var _ref9 = data || {},
|
|
2164
2262
|
attributes = _ref9.attributes;
|
|
2165
2263
|
|
|
2166
|
-
var orgType = attributes.orgType
|
|
2167
|
-
var layerlevel = attributes.layerlevel
|
|
2264
|
+
var orgType = attributes ? attributes.orgType : data.orgType;
|
|
2265
|
+
var layerlevel = attributes ? attributes.layerlevel : data.layerlevel;
|
|
2168
2266
|
if (!orgType) return '';
|
|
2169
2267
|
var key = orgType === 'org' ? layerlevel ? 'bumen' : 'gongsi' : 'bumen';
|
|
2170
2268
|
if (node.level === 1 && (data.subNode || data.isParent || data.hasChildren)) {
|
|
@@ -2243,10 +2341,10 @@ var rmbToCapital = function rmbToCapital(num) {
|
|
|
2243
2341
|
// 处理小数部分
|
|
2244
2342
|
var decimalCapital = '';
|
|
2245
2343
|
if (parseInt(decimalPart, 10) > 0) {
|
|
2246
|
-
for (var
|
|
2247
|
-
var _digit = parseInt(decimalPart[
|
|
2344
|
+
for (var _i6 = 0; _i6 < decimalPart.length; _i6++) {
|
|
2345
|
+
var _digit = parseInt(decimalPart[_i6], 10);
|
|
2248
2346
|
if (_digit > 0) {
|
|
2249
|
-
decimalCapital += chineseNumbers[_digit] + decimalUnits[
|
|
2347
|
+
decimalCapital += chineseNumbers[_digit] + decimalUnits[_i6];
|
|
2250
2348
|
} else if (decimalCapital[decimalCapital.length - 1] !== chineseNumbers[0]) {
|
|
2251
2349
|
decimalCapital += chineseNumbers[_digit];
|
|
2252
2350
|
}
|
|
@@ -2912,709 +3010,6 @@ var warning = function warning(content, _callback3) {
|
|
|
2912
3010
|
/***/ 1:
|
|
2913
3011
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2914
3012
|
|
|
2915
|
-
"use strict";
|
|
2916
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return setStorage; });
|
|
2917
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStorage; });
|
|
2918
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeStorage; });
|
|
2919
|
-
/* unused harmony export setCookie */
|
|
2920
|
-
/* unused harmony export getCookie */
|
|
2921
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
2922
|
-
|
|
2923
|
-
/**
|
|
2924
|
-
* setStorage
|
|
2925
|
-
* @desc:设置本地储存数据
|
|
2926
|
-
* @author huangbo
|
|
2927
|
-
* @date 2022年5月7日
|
|
2928
|
-
* @param {String|Object} [key] - 数据的名称或包含type、key、value的对象
|
|
2929
|
-
* @param {String} [value] - 数据的值(当第一个参数为字符串时使用)
|
|
2930
|
-
**/
|
|
2931
|
-
var setStorage = function setStorage(key, value) {
|
|
2932
|
-
// 解析参数,支持两种调用方式:setStorage(key, value) 和 setStorage({type, key, value})
|
|
2933
|
-
var type = void 0,
|
|
2934
|
-
finalKey = void 0,
|
|
2935
|
-
finalValue = void 0;
|
|
2936
|
-
|
|
2937
|
-
if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object' && key !== null) {
|
|
2938
|
-
// 对象调用方式:setStorage({type, key, value})
|
|
2939
|
-
type = key.type;
|
|
2940
|
-
finalKey = key.key;
|
|
2941
|
-
finalValue = key.value;
|
|
2942
|
-
} else {
|
|
2943
|
-
// 字符串调用方式:setStorage(key, value)
|
|
2944
|
-
type = getStorage('storageType');
|
|
2945
|
-
finalKey = key;
|
|
2946
|
-
finalValue = value;
|
|
2947
|
-
}
|
|
2948
|
-
|
|
2949
|
-
// 使用默认存储类型如果未指定
|
|
2950
|
-
type = type || getStorage('storageType');
|
|
2951
|
-
|
|
2952
|
-
// 获取存储对象
|
|
2953
|
-
var storage = type === 'localStorage' ? localStorage : sessionStorage;
|
|
2954
|
-
|
|
2955
|
-
// 处理不同类型的key
|
|
2956
|
-
if (typeof finalKey === 'string') {
|
|
2957
|
-
// 单个字符串key
|
|
2958
|
-
var storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
|
|
2959
|
-
storage.setItem(finalKey, storedValue);
|
|
2960
|
-
if (finalKey === 'token') {
|
|
2961
|
-
setCookie('token', storedValue);
|
|
2962
|
-
}
|
|
2963
|
-
} else if (Array.isArray(finalKey)) {
|
|
2964
|
-
// 数组key,为多个key设置同一个value
|
|
2965
|
-
var _storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
|
|
2966
|
-
for (var i = 0; i < finalKey.length; i++) {
|
|
2967
|
-
storage.setItem(finalKey[i], _storedValue);
|
|
2968
|
-
if (finalKey[i] === 'token') {
|
|
2969
|
-
setCookie('token', _storedValue);
|
|
2970
|
-
}
|
|
2971
|
-
}
|
|
2972
|
-
} else if ((typeof finalKey === 'undefined' ? 'undefined' : _typeof(finalKey)) === 'object' && finalKey !== null) {
|
|
2973
|
-
// 对象key,对象的属性名称作为key,属性值作为value
|
|
2974
|
-
for (var k in finalKey) {
|
|
2975
|
-
if (Object.prototype.hasOwnProperty.call(finalKey, k)) {
|
|
2976
|
-
var _storedValue2 = _typeof(finalKey[k]) === 'object' ? JSON.stringify(finalKey[k]) : finalKey[k];
|
|
2977
|
-
storage.setItem(k, _storedValue2);
|
|
2978
|
-
if (k === 'token') {
|
|
2979
|
-
setCookie('token', _storedValue2);
|
|
2980
|
-
}
|
|
2981
|
-
}
|
|
2982
|
-
}
|
|
2983
|
-
}
|
|
2984
|
-
};
|
|
2985
|
-
|
|
2986
|
-
/**
|
|
2987
|
-
* getStorage
|
|
2988
|
-
* @desc:获取本地储存数据
|
|
2989
|
-
* @author huangbo
|
|
2990
|
-
* @date 2022年5月7日
|
|
2991
|
-
* @param {String} [key] - 获取的名称
|
|
2992
|
-
**/
|
|
2993
|
-
var getStorage = function getStorage(key) {
|
|
2994
|
-
if (key) {
|
|
2995
|
-
var res = sessionStorage.getItem(key) || localStorage.getItem(key);
|
|
2996
|
-
if (!res && key === 'token') {
|
|
2997
|
-
res = getCookie('token');
|
|
2998
|
-
}
|
|
2999
|
-
if (key === 'host' && !res) {
|
|
3000
|
-
res = '';
|
|
3001
|
-
}
|
|
3002
|
-
return res;
|
|
3003
|
-
}
|
|
3004
|
-
var defaults = {};
|
|
3005
|
-
var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token');
|
|
3006
|
-
var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId');
|
|
3007
|
-
|
|
3008
|
-
var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique');
|
|
3009
|
-
if (token) {
|
|
3010
|
-
defaults.Authorization = token;
|
|
3011
|
-
}
|
|
3012
|
-
if (ssId) {
|
|
3013
|
-
defaults.ssId = ssId;
|
|
3014
|
-
}
|
|
3015
|
-
if (deviceUnique) {
|
|
3016
|
-
defaults.deviceUnique = deviceUnique;
|
|
3017
|
-
}
|
|
3018
|
-
return defaults;
|
|
3019
|
-
};
|
|
3020
|
-
|
|
3021
|
-
/**
|
|
3022
|
-
* removeStorage
|
|
3023
|
-
* @desc:删除本地储存数据
|
|
3024
|
-
* @author huangbo
|
|
3025
|
-
* @date 2022年5月7日
|
|
3026
|
-
* @param {String, Array} [key] - 获取的名称
|
|
3027
|
-
**/
|
|
3028
|
-
var removeStorage = function removeStorage(key) {
|
|
3029
|
-
if (Array.isArray(key)) {
|
|
3030
|
-
for (var i = 0; i < key.length; i++) {
|
|
3031
|
-
sessionStorage.removeItem(key[i]);
|
|
3032
|
-
localStorage.removeItem(key[i]);
|
|
3033
|
-
if (key[i] === 'token') {
|
|
3034
|
-
removeCookie('token');
|
|
3035
|
-
}
|
|
3036
|
-
}
|
|
3037
|
-
} else if (key) {
|
|
3038
|
-
sessionStorage.removeItem(key);
|
|
3039
|
-
localStorage.removeItem(key);
|
|
3040
|
-
if (key === 'token') {
|
|
3041
|
-
removeCookie('token');
|
|
3042
|
-
}
|
|
3043
|
-
} else {
|
|
3044
|
-
sessionStorage.clear();
|
|
3045
|
-
localStorage.clear();
|
|
3046
|
-
removeCookie('token');
|
|
3047
|
-
}
|
|
3048
|
-
};
|
|
3049
|
-
|
|
3050
|
-
/**
|
|
3051
|
-
* setCookie
|
|
3052
|
-
* @desc 设置cookie
|
|
3053
|
-
* @author huangbo
|
|
3054
|
-
* @param {string} [name] cookie名称
|
|
3055
|
-
* @param {string} [value] cookie值
|
|
3056
|
-
* @param {boolean} [isSession] 是否是会话cookie
|
|
3057
|
-
**/
|
|
3058
|
-
var setCookie = function setCookie(name, value) {
|
|
3059
|
-
var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
3060
|
-
var time = arguments[3];
|
|
3061
|
-
|
|
3062
|
-
try {
|
|
3063
|
-
var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
|
|
3064
|
-
];
|
|
3065
|
-
// 会话/持久Cookie设置
|
|
3066
|
-
if (!isSession) {
|
|
3067
|
-
if (/MSIE|Trident/.test(navigator.userAgent)) {
|
|
3068
|
-
// IE使用expires
|
|
3069
|
-
var date = new Date();
|
|
3070
|
-
date.setTime(date.getTime() + (time || 7 * 24 * 60 * 60 * 1000));
|
|
3071
|
-
cookieParts.push('expires=' + date.toUTCString());
|
|
3072
|
-
} else {
|
|
3073
|
-
// 其他浏览器使用max-age
|
|
3074
|
-
cookieParts.push('max-age=' + (time || 7 * 24 * 60 * 60));
|
|
3075
|
-
}
|
|
3076
|
-
}
|
|
3077
|
-
// 内核兼容处理
|
|
3078
|
-
if (/MSIE|Trident/.test(navigator.userAgent)) {
|
|
3079
|
-
// IE特殊处理:添加P3P协议头
|
|
3080
|
-
cookieParts.push('P3P=CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
|
|
3081
|
-
} else {
|
|
3082
|
-
// 现代浏览器设置
|
|
3083
|
-
cookieParts.push('samesite=lax');
|
|
3084
|
-
if (window.location.protocol === 'https:') {
|
|
3085
|
-
cookieParts.push('secure');
|
|
3086
|
-
}
|
|
3087
|
-
}
|
|
3088
|
-
|
|
3089
|
-
// 设置Cookie
|
|
3090
|
-
document.cookie = cookieParts.join('; ');
|
|
3091
|
-
return true;
|
|
3092
|
-
} catch (e) {
|
|
3093
|
-
console.error('Cookie设置失败:', e);
|
|
3094
|
-
return false;
|
|
3095
|
-
}
|
|
3096
|
-
};
|
|
3097
|
-
|
|
3098
|
-
/**
|
|
3099
|
-
* getCookie
|
|
3100
|
-
* @desc 获取cookie中指定名称的值
|
|
3101
|
-
* @author huangbo
|
|
3102
|
-
* @param {string} [name] cookie名称
|
|
3103
|
-
**/
|
|
3104
|
-
var getCookie = function getCookie(name) {
|
|
3105
|
-
var cookies = document.cookie.split(';');
|
|
3106
|
-
for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
|
3107
|
-
var _ref;
|
|
3108
|
-
|
|
3109
|
-
if (_isArray) {
|
|
3110
|
-
if (_i >= _iterator.length) break;
|
|
3111
|
-
_ref = _iterator[_i++];
|
|
3112
|
-
} else {
|
|
3113
|
-
_i = _iterator.next();
|
|
3114
|
-
if (_i.done) break;
|
|
3115
|
-
_ref = _i.value;
|
|
3116
|
-
}
|
|
3117
|
-
|
|
3118
|
-
var cookie = _ref;
|
|
3119
|
-
|
|
3120
|
-
var _cookie$trim$split = cookie.trim().split('='),
|
|
3121
|
-
cookieName = _cookie$trim$split[0],
|
|
3122
|
-
cookieValue = _cookie$trim$split[1];
|
|
3123
|
-
|
|
3124
|
-
if (decodeURIComponent(cookieName) === name) {
|
|
3125
|
-
return decodeURIComponent(cookieValue);
|
|
3126
|
-
}
|
|
3127
|
-
}
|
|
3128
|
-
return null;
|
|
3129
|
-
};
|
|
3130
|
-
|
|
3131
|
-
/**
|
|
3132
|
-
* removeCookie
|
|
3133
|
-
* @desc:删除cookie
|
|
3134
|
-
* @author huangbo
|
|
3135
|
-
* @date 2022年5月7日
|
|
3136
|
-
* @param {String, Array} [key] - 获取的名称
|
|
3137
|
-
**/
|
|
3138
|
-
var removeCookie = function removeCookie(key) {
|
|
3139
|
-
if (Array.isArray(key)) {
|
|
3140
|
-
for (var i = 0; i < key.length; i++) {
|
|
3141
|
-
document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
3142
|
-
}
|
|
3143
|
-
} else {
|
|
3144
|
-
document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
3145
|
-
}
|
|
3146
|
-
};
|
|
3147
|
-
|
|
3148
|
-
/***/ }),
|
|
3149
|
-
|
|
3150
|
-
/***/ 10:
|
|
3151
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3152
|
-
|
|
3153
|
-
"use strict";
|
|
3154
|
-
function _broadcast(componentName, eventName, params) {
|
|
3155
|
-
this.$children.forEach(function (child) {
|
|
3156
|
-
var name = child.$options.componentName;
|
|
3157
|
-
|
|
3158
|
-
if (name === componentName) {
|
|
3159
|
-
child.$emit.apply(child, [eventName].concat(params));
|
|
3160
|
-
} else {
|
|
3161
|
-
_broadcast.apply(child, [componentName, eventName].concat([params]));
|
|
3162
|
-
}
|
|
3163
|
-
});
|
|
3164
|
-
}
|
|
3165
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
3166
|
-
methods: {
|
|
3167
|
-
dispatch: function dispatch(componentName, eventName, params) {
|
|
3168
|
-
var parent = this.$parent || this.$root;
|
|
3169
|
-
var name = parent.$options.componentName;
|
|
3170
|
-
|
|
3171
|
-
while (parent && (!name || name !== componentName)) {
|
|
3172
|
-
parent = parent.$parent;
|
|
3173
|
-
|
|
3174
|
-
if (parent) {
|
|
3175
|
-
name = parent.$options.componentName;
|
|
3176
|
-
}
|
|
3177
|
-
}
|
|
3178
|
-
if (parent) {
|
|
3179
|
-
parent.$emit.apply(parent, [eventName].concat(params));
|
|
3180
|
-
}
|
|
3181
|
-
},
|
|
3182
|
-
broadcast: function broadcast(componentName, eventName, params) {
|
|
3183
|
-
_broadcast.call(this, componentName, eventName, params);
|
|
3184
|
-
}
|
|
3185
|
-
}
|
|
3186
|
-
});
|
|
3187
|
-
|
|
3188
|
-
/***/ }),
|
|
3189
|
-
|
|
3190
|
-
/***/ 12:
|
|
3191
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3192
|
-
|
|
3193
|
-
"use strict";
|
|
3194
|
-
/* unused harmony export getHue */
|
|
3195
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getColor; });
|
|
3196
|
-
/* unused harmony export getLightness */
|
|
3197
|
-
/* unused harmony export getSaturation */
|
|
3198
|
-
/* unused harmony export rgbToHsv */
|
|
3199
|
-
/* unused harmony export hsvTorgb */
|
|
3200
|
-
/* unused harmony export mixColor */
|
|
3201
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getRgb; });
|
|
3202
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
3203
|
-
|
|
3204
|
-
var $hueStep = 2;
|
|
3205
|
-
var $saturationStep1 = 0.16;
|
|
3206
|
-
var $saturationStep2 = 0.05;
|
|
3207
|
-
var $brightnessStep1 = 0.05;
|
|
3208
|
-
var $brightnessStep2 = 0.15;
|
|
3209
|
-
var $lightColorCount = 5;
|
|
3210
|
-
var $darkColorCount = 4;
|
|
3211
|
-
/**
|
|
3212
|
-
* getHue
|
|
3213
|
-
* @desc:转换色相
|
|
3214
|
-
* @author huangbo
|
|
3215
|
-
* @date 2022年5月7日
|
|
3216
|
-
**/
|
|
3217
|
-
var getHue = function getHue($h, $i, $isLight) {
|
|
3218
|
-
var $hue = void 0;
|
|
3219
|
-
if ($h >= 60 && $h <= 240) {
|
|
3220
|
-
$hue = $isLight ? $h - $hueStep * $i : $h + $hueStep * $i;
|
|
3221
|
-
} else {
|
|
3222
|
-
$hue = $isLight ? $h + $hueStep * $i : $h - $hueStep * $i;
|
|
3223
|
-
}
|
|
3224
|
-
$hue = ($hue + 360) % 360;
|
|
3225
|
-
return Math.round($hue);
|
|
3226
|
-
};
|
|
3227
|
-
|
|
3228
|
-
/**
|
|
3229
|
-
* getColor
|
|
3230
|
-
* @desc:根据颜色和对应的色板位置,计算出对应的色板颜色
|
|
3231
|
-
* @author huangbo
|
|
3232
|
-
* @date 2022年5月7日
|
|
3233
|
-
**/
|
|
3234
|
-
var getColor = function getColor($color, $n) {
|
|
3235
|
-
var $isLight = $n < 7;
|
|
3236
|
-
var $hsv = rgbToHsv($color);
|
|
3237
|
-
// 这里将i转换成以主色为中心,两侧的i值逐渐增大
|
|
3238
|
-
var $i = $isLight ? $lightColorCount + 1 - $n : $n - $lightColorCount - 1;
|
|
3239
|
-
var color = hsvTorgb(getHue($hsv[0], $i, $isLight), getSaturation($hsv[1], $i, $isLight), getLightness($hsv[2], $i, $isLight));
|
|
3240
|
-
return color;
|
|
3241
|
-
};
|
|
3242
|
-
|
|
3243
|
-
/**
|
|
3244
|
-
* getLightness
|
|
3245
|
-
* @desc:转换明度
|
|
3246
|
-
* @author huangbo
|
|
3247
|
-
* @date 2022年5月7日
|
|
3248
|
-
* @return {string,array} 元素类名或者id
|
|
3249
|
-
**/
|
|
3250
|
-
var getLightness = function getLightness($v, $i, $isLight) {
|
|
3251
|
-
var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
|
|
3252
|
-
$value = $value < 1 ? $value : 1;
|
|
3253
|
-
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "T"])($value, 2);
|
|
3254
|
-
};
|
|
3255
|
-
|
|
3256
|
-
/**
|
|
3257
|
-
* getSaturation
|
|
3258
|
-
* @desc:转换饱和度
|
|
3259
|
-
* @author huangbo
|
|
3260
|
-
* @date 2022年5月7日
|
|
3261
|
-
**/
|
|
3262
|
-
var getSaturation = function getSaturation($s, $i, $isLight) {
|
|
3263
|
-
var $saturation = void 0;
|
|
3264
|
-
if ($isLight) {
|
|
3265
|
-
$saturation = $s - $saturationStep1 * $i;
|
|
3266
|
-
} else if ($i === $darkColorCount) {
|
|
3267
|
-
$saturation = $s + $saturationStep1;
|
|
3268
|
-
} else {
|
|
3269
|
-
$saturation = $s + $saturationStep2 * $i;
|
|
3270
|
-
}
|
|
3271
|
-
$saturation = $saturation < 1 ? $saturation : 1;
|
|
3272
|
-
|
|
3273
|
-
if ($isLight && $i === $lightColorCount && $saturation > 0.1) {
|
|
3274
|
-
$saturation = 0.1;
|
|
3275
|
-
}
|
|
3276
|
-
$saturation = $saturation > 0.06 ? $saturation : 0.06;
|
|
3277
|
-
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "T"])($saturation, 2);
|
|
3278
|
-
};
|
|
3279
|
-
|
|
3280
|
-
/**
|
|
3281
|
-
* rgbToHsv
|
|
3282
|
-
* @desc:rgb转化成hsv
|
|
3283
|
-
* @author huangbo
|
|
3284
|
-
* @date 2022年5月7日
|
|
3285
|
-
* @param {string} [$color] - 颜色值
|
|
3286
|
-
**/
|
|
3287
|
-
var rgbToHsv = function rgbToHsv($color) {
|
|
3288
|
-
var rgb = getRgb($color);
|
|
3289
|
-
var $red = rgb[0];
|
|
3290
|
-
var $green = rgb[1];
|
|
3291
|
-
var $blue = rgb[2];
|
|
3292
|
-
var $max = Math.max($red, $green, $blue);
|
|
3293
|
-
var $min = Math.min($red, $green, $blue);
|
|
3294
|
-
var $diff = $max - $min;
|
|
3295
|
-
var $h = 0;
|
|
3296
|
-
if ($max === $min) {
|
|
3297
|
-
$h = 0;
|
|
3298
|
-
} else if ($max === $red) {
|
|
3299
|
-
$h = 60 * ($green - $blue) / $diff + ($green > $blue - 1 ? 0 : 360);
|
|
3300
|
-
} else if ($max === $green) {
|
|
3301
|
-
$h = 60 * ($blue - $red) / $diff + 120;
|
|
3302
|
-
} else if ($max === $blue) {
|
|
3303
|
-
$h = 60 * ($red - $green) / $diff + 240;
|
|
3304
|
-
}
|
|
3305
|
-
var $s = $max === 0 ? 0 : $diff / $max;
|
|
3306
|
-
var $v = $max / 255;
|
|
3307
|
-
return [$h, $s, $v];
|
|
3308
|
-
};
|
|
3309
|
-
|
|
3310
|
-
/**
|
|
3311
|
-
* hsvTorgb
|
|
3312
|
-
* @desc:hsv转化成rgb
|
|
3313
|
-
* @author huangbo
|
|
3314
|
-
* @date 2022年5月7日
|
|
3315
|
-
* @param {string} [$color] - 颜色值
|
|
3316
|
-
**/
|
|
3317
|
-
var hsvTorgb = function hsvTorgb($h, $s, $v) {
|
|
3318
|
-
var $th = Math.floor($h / 60);
|
|
3319
|
-
var $t1 = $h / 60 - $th;
|
|
3320
|
-
var $t2 = $v * (1 - $s);
|
|
3321
|
-
var $t3 = $v * (1 - $t1 * $s);
|
|
3322
|
-
var $t4 = $v * (1 - (1 - $t1) * $s);
|
|
3323
|
-
var $r = [$v, $t3, $t2, $t2, $t4, $v][$th % 6];
|
|
3324
|
-
var $g = [$t4, $v, $v, $t3, $t2, $t2][$th % 6];
|
|
3325
|
-
var $b = [$t2, $t2, $t4, $v, $v, $t3][$th % 6];
|
|
3326
|
-
// return `rgb(${Math.round($r * 255)}, ${Math.round($g * 255)}, ${Math.round($b * 255)})`;
|
|
3327
|
-
var red = Math.round($r * 255);
|
|
3328
|
-
var green = Math.round($g * 255);
|
|
3329
|
-
var blue = Math.round($b * 255);
|
|
3330
|
-
red = red.toString(16);
|
|
3331
|
-
green = green.toString(16);
|
|
3332
|
-
blue = blue.toString(16);
|
|
3333
|
-
red = red.length === 1 ? '0' + red : red;
|
|
3334
|
-
green = green.length === 1 ? '0' + green : green;
|
|
3335
|
-
blue = blue.length === 1 ? '0' + blue : blue;
|
|
3336
|
-
return '#' + red + green + blue;
|
|
3337
|
-
};
|
|
3338
|
-
|
|
3339
|
-
/**
|
|
3340
|
-
* mixColor
|
|
3341
|
-
* @desc:生成混合色
|
|
3342
|
-
* @author huangbo
|
|
3343
|
-
* @date 2022年5月7日
|
|
3344
|
-
* @param {string} [$color1] - 颜色值
|
|
3345
|
-
* @param {string} [$color2] - 颜色值
|
|
3346
|
-
* @param {string} [$n] - 百分比 0~1
|
|
3347
|
-
**/
|
|
3348
|
-
var mixColor = function mixColor($color1, $color2, $n) {
|
|
3349
|
-
var rgb1 = getRgb($color1);
|
|
3350
|
-
var rgb2 = getRgb($color2);
|
|
3351
|
-
var r = rgb1[0] * $n + rgb2[0] * (1 - $n);
|
|
3352
|
-
var g = rgb1[1] * $n + rgb2[1] * (1 - $n);
|
|
3353
|
-
var b = rgb1[2] * $n + rgb2[2] * (1 - $n);
|
|
3354
|
-
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
|
|
3355
|
-
};
|
|
3356
|
-
|
|
3357
|
-
/**
|
|
3358
|
-
* getRgb
|
|
3359
|
-
* @desc:获取颜色值的rgb值
|
|
3360
|
-
* @author huangbo
|
|
3361
|
-
* @date 2022年5月7日
|
|
3362
|
-
* @param {string} [$color] - 颜色值
|
|
3363
|
-
**/
|
|
3364
|
-
var getRgb = function getRgb($color) {
|
|
3365
|
-
var rgb = [];
|
|
3366
|
-
// 16进制颜色值的正则
|
|
3367
|
-
var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
3368
|
-
// 把颜色值变成小写
|
|
3369
|
-
$color = $color.toLowerCase();
|
|
3370
|
-
if (reg.test($color)) {
|
|
3371
|
-
// 如果只有三位的值,需变成六位,如:#fff => #ffffff
|
|
3372
|
-
if ($color.length === 4) {
|
|
3373
|
-
var colorNew = '#';
|
|
3374
|
-
for (var i = 1; i < 4; i++) {
|
|
3375
|
-
colorNew += $color.slice(i, i + 1).concat($color.slice(i, i + 1));
|
|
3376
|
-
}
|
|
3377
|
-
$color = colorNew;
|
|
3378
|
-
}
|
|
3379
|
-
// 处理六位的颜色值,转为RGB
|
|
3380
|
-
for (var _i = 1; _i < 7; _i += 2) {
|
|
3381
|
-
rgb.push(parseInt('0x' + $color.slice(_i, _i + 2), 16));
|
|
3382
|
-
}
|
|
3383
|
-
} else {
|
|
3384
|
-
rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
|
|
3385
|
-
}
|
|
3386
|
-
return rgb;
|
|
3387
|
-
};
|
|
3388
|
-
|
|
3389
|
-
/***/ }),
|
|
3390
|
-
|
|
3391
|
-
/***/ 13:
|
|
3392
|
-
/***/ (function(module, exports) {
|
|
3393
|
-
|
|
3394
|
-
module.exports = require("eoss/lib/loading");
|
|
3395
|
-
|
|
3396
|
-
/***/ }),
|
|
3397
|
-
|
|
3398
|
-
/***/ 138:
|
|
3399
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3400
|
-
|
|
3401
|
-
"use strict";
|
|
3402
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3403
|
-
/* harmony import */ var _select_src_option__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61);
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
/* istanbul ignore next */
|
|
3407
|
-
_select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].install = function (Vue) {
|
|
3408
|
-
Vue.component(_select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].name, _select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
|
|
3409
|
-
};
|
|
3410
|
-
|
|
3411
|
-
/* harmony default export */ __webpack_exports__["default"] = (_select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
|
|
3412
|
-
|
|
3413
|
-
/***/ }),
|
|
3414
|
-
|
|
3415
|
-
/***/ 15:
|
|
3416
|
-
/***/ (function(module, exports) {
|
|
3417
|
-
|
|
3418
|
-
module.exports = require("lodash/get");
|
|
3419
|
-
|
|
3420
|
-
/***/ }),
|
|
3421
|
-
|
|
3422
|
-
/***/ 16:
|
|
3423
|
-
/***/ (function(module, exports) {
|
|
3424
|
-
|
|
3425
|
-
module.exports = require("lodash/set");
|
|
3426
|
-
|
|
3427
|
-
/***/ }),
|
|
3428
|
-
|
|
3429
|
-
/***/ 17:
|
|
3430
|
-
/***/ (function(module, exports) {
|
|
3431
|
-
|
|
3432
|
-
module.exports = require("lodash/cloneDeep");
|
|
3433
|
-
|
|
3434
|
-
/***/ }),
|
|
3435
|
-
|
|
3436
|
-
/***/ 2:
|
|
3437
|
-
/***/ (function(module, exports) {
|
|
3438
|
-
|
|
3439
|
-
module.exports = require("vue");
|
|
3440
|
-
|
|
3441
|
-
/***/ }),
|
|
3442
|
-
|
|
3443
|
-
/***/ 3:
|
|
3444
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3445
|
-
|
|
3446
|
-
"use strict";
|
|
3447
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
|
|
3448
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
|
|
3449
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
|
|
3450
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
|
|
3451
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
|
|
3452
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
|
|
3453
|
-
/**
|
|
3454
|
-
* 检查一个值是否为字符串类型
|
|
3455
|
-
* @param {*} obj 要检查的值
|
|
3456
|
-
* @returns {boolean} 如果值为字符串则返回true,否则返回false
|
|
3457
|
-
*/
|
|
3458
|
-
function isString(obj) {
|
|
3459
|
-
return Object.prototype.toString.call(obj) === '[object String]';
|
|
3460
|
-
}
|
|
3461
|
-
|
|
3462
|
-
/**
|
|
3463
|
-
* 检查一个值是否为对象类型
|
|
3464
|
-
* @param {*} obj 要检查的值
|
|
3465
|
-
* @returns {boolean} 如果值为对象则返回true,否则返回false
|
|
3466
|
-
*/
|
|
3467
|
-
function isObject(obj) {
|
|
3468
|
-
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
3469
|
-
}
|
|
3470
|
-
|
|
3471
|
-
/**
|
|
3472
|
-
* 检查一个节点是否为HTML元素
|
|
3473
|
-
* @param {Node} node 要检查的节点
|
|
3474
|
-
* @returns {boolean} 如果节点为HTML元素则返回true,否则返回false
|
|
3475
|
-
*/
|
|
3476
|
-
function isHtmlElement(node) {
|
|
3477
|
-
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
3478
|
-
}
|
|
3479
|
-
|
|
3480
|
-
/**
|
|
3481
|
-
* 检查一个值是否为函数类型
|
|
3482
|
-
* @param {*} functionToCheck 要检查的值
|
|
3483
|
-
* @returns {boolean} 如果值为函数则返回true,否则返回false
|
|
3484
|
-
*/
|
|
3485
|
-
function isFunction(functionToCheck) {
|
|
3486
|
-
var getType = {};
|
|
3487
|
-
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
3488
|
-
}
|
|
3489
|
-
|
|
3490
|
-
/**
|
|
3491
|
-
* 检查一个值是否为undefined
|
|
3492
|
-
* @param {*} val 要检查的值
|
|
3493
|
-
* @returns {boolean} 如果值为undefined则返回true,否则返回false
|
|
3494
|
-
*/
|
|
3495
|
-
function isUndefined(val) {
|
|
3496
|
-
return val === void 0;
|
|
3497
|
-
}
|
|
3498
|
-
|
|
3499
|
-
/**
|
|
3500
|
-
* 检查一个值是否已定义(不是undefined或null)
|
|
3501
|
-
* @param {*} val 要检查的值
|
|
3502
|
-
* @returns {boolean} 如果值已定义则返回true,否则返回false
|
|
3503
|
-
*/
|
|
3504
|
-
function isDefined(val) {
|
|
3505
|
-
return val !== undefined && val !== null;
|
|
3506
|
-
}
|
|
3507
|
-
|
|
3508
|
-
/***/ }),
|
|
3509
|
-
|
|
3510
|
-
/***/ 5:
|
|
3511
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3512
|
-
|
|
3513
|
-
"use strict";
|
|
3514
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
3515
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
3516
|
-
|
|
3517
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
3518
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
3519
|
-
// be included in the final webpack user bundle.
|
|
3520
|
-
|
|
3521
|
-
function normalizeComponent(
|
|
3522
|
-
scriptExports,
|
|
3523
|
-
render,
|
|
3524
|
-
staticRenderFns,
|
|
3525
|
-
functionalTemplate,
|
|
3526
|
-
injectStyles,
|
|
3527
|
-
scopeId,
|
|
3528
|
-
moduleIdentifier /* server only */,
|
|
3529
|
-
shadowMode /* vue-cli only */
|
|
3530
|
-
) {
|
|
3531
|
-
// Vue.extend constructor export interop
|
|
3532
|
-
var options =
|
|
3533
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
3534
|
-
|
|
3535
|
-
// render functions
|
|
3536
|
-
if (render) {
|
|
3537
|
-
options.render = render
|
|
3538
|
-
options.staticRenderFns = staticRenderFns
|
|
3539
|
-
options._compiled = true
|
|
3540
|
-
}
|
|
3541
|
-
|
|
3542
|
-
// functional template
|
|
3543
|
-
if (functionalTemplate) {
|
|
3544
|
-
options.functional = true
|
|
3545
|
-
}
|
|
3546
|
-
|
|
3547
|
-
// scopedId
|
|
3548
|
-
if (scopeId) {
|
|
3549
|
-
options._scopeId = 'data-v-' + scopeId
|
|
3550
|
-
}
|
|
3551
|
-
|
|
3552
|
-
var hook
|
|
3553
|
-
if (moduleIdentifier) {
|
|
3554
|
-
// server build
|
|
3555
|
-
hook = function (context) {
|
|
3556
|
-
// 2.3 injection
|
|
3557
|
-
context =
|
|
3558
|
-
context || // cached call
|
|
3559
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
3560
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
3561
|
-
// 2.2 with runInNewContext: true
|
|
3562
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
3563
|
-
context = __VUE_SSR_CONTEXT__
|
|
3564
|
-
}
|
|
3565
|
-
// inject component styles
|
|
3566
|
-
if (injectStyles) {
|
|
3567
|
-
injectStyles.call(this, context)
|
|
3568
|
-
}
|
|
3569
|
-
// register component module identifier for async chunk inferrence
|
|
3570
|
-
if (context && context._registeredComponents) {
|
|
3571
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
3572
|
-
}
|
|
3573
|
-
}
|
|
3574
|
-
// used by ssr in case component is cached and beforeCreate
|
|
3575
|
-
// never gets called
|
|
3576
|
-
options._ssrRegister = hook
|
|
3577
|
-
} else if (injectStyles) {
|
|
3578
|
-
hook = shadowMode
|
|
3579
|
-
? function () {
|
|
3580
|
-
injectStyles.call(
|
|
3581
|
-
this,
|
|
3582
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
3583
|
-
)
|
|
3584
|
-
}
|
|
3585
|
-
: injectStyles
|
|
3586
|
-
}
|
|
3587
|
-
|
|
3588
|
-
if (hook) {
|
|
3589
|
-
if (options.functional) {
|
|
3590
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
3591
|
-
// go through the normalizer
|
|
3592
|
-
options._injectStyles = hook
|
|
3593
|
-
// register for functional component in vue file
|
|
3594
|
-
var originalRender = options.render
|
|
3595
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
3596
|
-
hook.call(context)
|
|
3597
|
-
return originalRender(h, context)
|
|
3598
|
-
}
|
|
3599
|
-
} else {
|
|
3600
|
-
// inject component registration as beforeCreate hook
|
|
3601
|
-
var existing = options.beforeCreate
|
|
3602
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
3603
|
-
}
|
|
3604
|
-
}
|
|
3605
|
-
|
|
3606
|
-
return {
|
|
3607
|
-
exports: scriptExports,
|
|
3608
|
-
options: options
|
|
3609
|
-
}
|
|
3610
|
-
}
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
/***/ }),
|
|
3614
|
-
|
|
3615
|
-
/***/ 6:
|
|
3616
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3617
|
-
|
|
3618
3013
|
"use strict";
|
|
3619
3014
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return fecha; });
|
|
3620
3015
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return getSettings; });
|
|
@@ -4602,7 +3997,643 @@ const timeCycle = function (time) {
|
|
|
4602
3997
|
|
|
4603
3998
|
/***/ }),
|
|
4604
3999
|
|
|
4605
|
-
/***/
|
|
4000
|
+
/***/ 10:
|
|
4001
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4002
|
+
|
|
4003
|
+
"use strict";
|
|
4004
|
+
function _broadcast(componentName, eventName, params) {
|
|
4005
|
+
this.$children.forEach(function (child) {
|
|
4006
|
+
var name = child.$options.componentName;
|
|
4007
|
+
|
|
4008
|
+
if (name === componentName) {
|
|
4009
|
+
child.$emit.apply(child, [eventName].concat(params));
|
|
4010
|
+
} else {
|
|
4011
|
+
_broadcast.apply(child, [componentName, eventName].concat([params]));
|
|
4012
|
+
}
|
|
4013
|
+
});
|
|
4014
|
+
}
|
|
4015
|
+
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
4016
|
+
methods: {
|
|
4017
|
+
dispatch: function dispatch(componentName, eventName, params) {
|
|
4018
|
+
var parent = this.$parent || this.$root;
|
|
4019
|
+
var name = parent.$options.componentName;
|
|
4020
|
+
|
|
4021
|
+
while (parent && (!name || name !== componentName)) {
|
|
4022
|
+
parent = parent.$parent;
|
|
4023
|
+
|
|
4024
|
+
if (parent) {
|
|
4025
|
+
name = parent.$options.componentName;
|
|
4026
|
+
}
|
|
4027
|
+
}
|
|
4028
|
+
if (parent) {
|
|
4029
|
+
parent.$emit.apply(parent, [eventName].concat(params));
|
|
4030
|
+
}
|
|
4031
|
+
},
|
|
4032
|
+
broadcast: function broadcast(componentName, eventName, params) {
|
|
4033
|
+
_broadcast.call(this, componentName, eventName, params);
|
|
4034
|
+
}
|
|
4035
|
+
}
|
|
4036
|
+
});
|
|
4037
|
+
|
|
4038
|
+
/***/ }),
|
|
4039
|
+
|
|
4040
|
+
/***/ 13:
|
|
4041
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4042
|
+
|
|
4043
|
+
"use strict";
|
|
4044
|
+
/* unused harmony export getHue */
|
|
4045
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getColor; });
|
|
4046
|
+
/* unused harmony export getLightness */
|
|
4047
|
+
/* unused harmony export getSaturation */
|
|
4048
|
+
/* unused harmony export rgbToHsv */
|
|
4049
|
+
/* unused harmony export hsvTorgb */
|
|
4050
|
+
/* unused harmony export mixColor */
|
|
4051
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getRgb; });
|
|
4052
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
4053
|
+
|
|
4054
|
+
var $hueStep = 2;
|
|
4055
|
+
var $saturationStep1 = 0.16;
|
|
4056
|
+
var $saturationStep2 = 0.05;
|
|
4057
|
+
var $brightnessStep1 = 0.05;
|
|
4058
|
+
var $brightnessStep2 = 0.15;
|
|
4059
|
+
var $lightColorCount = 5;
|
|
4060
|
+
var $darkColorCount = 4;
|
|
4061
|
+
/**
|
|
4062
|
+
* getHue
|
|
4063
|
+
* @desc:转换色相
|
|
4064
|
+
* @author huangbo
|
|
4065
|
+
* @date 2022年5月7日
|
|
4066
|
+
**/
|
|
4067
|
+
var getHue = function getHue($h, $i, $isLight) {
|
|
4068
|
+
var $hue = void 0;
|
|
4069
|
+
if ($h >= 60 && $h <= 240) {
|
|
4070
|
+
$hue = $isLight ? $h - $hueStep * $i : $h + $hueStep * $i;
|
|
4071
|
+
} else {
|
|
4072
|
+
$hue = $isLight ? $h + $hueStep * $i : $h - $hueStep * $i;
|
|
4073
|
+
}
|
|
4074
|
+
$hue = ($hue + 360) % 360;
|
|
4075
|
+
return Math.round($hue);
|
|
4076
|
+
};
|
|
4077
|
+
|
|
4078
|
+
/**
|
|
4079
|
+
* getColor
|
|
4080
|
+
* @desc:根据颜色和对应的色板位置,计算出对应的色板颜色
|
|
4081
|
+
* @author huangbo
|
|
4082
|
+
* @date 2022年5月7日
|
|
4083
|
+
**/
|
|
4084
|
+
var getColor = function getColor($color, $n) {
|
|
4085
|
+
var $isLight = $n < 7;
|
|
4086
|
+
var $hsv = rgbToHsv($color);
|
|
4087
|
+
// 这里将i转换成以主色为中心,两侧的i值逐渐增大
|
|
4088
|
+
var $i = $isLight ? $lightColorCount + 1 - $n : $n - $lightColorCount - 1;
|
|
4089
|
+
var color = hsvTorgb(getHue($hsv[0], $i, $isLight), getSaturation($hsv[1], $i, $isLight), getLightness($hsv[2], $i, $isLight));
|
|
4090
|
+
return color;
|
|
4091
|
+
};
|
|
4092
|
+
|
|
4093
|
+
/**
|
|
4094
|
+
* getLightness
|
|
4095
|
+
* @desc:转换明度
|
|
4096
|
+
* @author huangbo
|
|
4097
|
+
* @date 2022年5月7日
|
|
4098
|
+
* @return {string,array} 元素类名或者id
|
|
4099
|
+
**/
|
|
4100
|
+
var getLightness = function getLightness($v, $i, $isLight) {
|
|
4101
|
+
var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
|
|
4102
|
+
$value = $value < 1 ? $value : 1;
|
|
4103
|
+
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
|
|
4104
|
+
};
|
|
4105
|
+
|
|
4106
|
+
/**
|
|
4107
|
+
* getSaturation
|
|
4108
|
+
* @desc:转换饱和度
|
|
4109
|
+
* @author huangbo
|
|
4110
|
+
* @date 2022年5月7日
|
|
4111
|
+
**/
|
|
4112
|
+
var getSaturation = function getSaturation($s, $i, $isLight) {
|
|
4113
|
+
var $saturation = void 0;
|
|
4114
|
+
if ($isLight) {
|
|
4115
|
+
$saturation = $s - $saturationStep1 * $i;
|
|
4116
|
+
} else if ($i === $darkColorCount) {
|
|
4117
|
+
$saturation = $s + $saturationStep1;
|
|
4118
|
+
} else {
|
|
4119
|
+
$saturation = $s + $saturationStep2 * $i;
|
|
4120
|
+
}
|
|
4121
|
+
$saturation = $saturation < 1 ? $saturation : 1;
|
|
4122
|
+
|
|
4123
|
+
if ($isLight && $i === $lightColorCount && $saturation > 0.1) {
|
|
4124
|
+
$saturation = 0.1;
|
|
4125
|
+
}
|
|
4126
|
+
$saturation = $saturation > 0.06 ? $saturation : 0.06;
|
|
4127
|
+
return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
|
|
4128
|
+
};
|
|
4129
|
+
|
|
4130
|
+
/**
|
|
4131
|
+
* rgbToHsv
|
|
4132
|
+
* @desc:rgb转化成hsv
|
|
4133
|
+
* @author huangbo
|
|
4134
|
+
* @date 2022年5月7日
|
|
4135
|
+
* @param {string} [$color] - 颜色值
|
|
4136
|
+
**/
|
|
4137
|
+
var rgbToHsv = function rgbToHsv($color) {
|
|
4138
|
+
var rgb = getRgb($color);
|
|
4139
|
+
var $red = rgb[0];
|
|
4140
|
+
var $green = rgb[1];
|
|
4141
|
+
var $blue = rgb[2];
|
|
4142
|
+
var $max = Math.max($red, $green, $blue);
|
|
4143
|
+
var $min = Math.min($red, $green, $blue);
|
|
4144
|
+
var $diff = $max - $min;
|
|
4145
|
+
var $h = 0;
|
|
4146
|
+
if ($max === $min) {
|
|
4147
|
+
$h = 0;
|
|
4148
|
+
} else if ($max === $red) {
|
|
4149
|
+
$h = 60 * ($green - $blue) / $diff + ($green > $blue - 1 ? 0 : 360);
|
|
4150
|
+
} else if ($max === $green) {
|
|
4151
|
+
$h = 60 * ($blue - $red) / $diff + 120;
|
|
4152
|
+
} else if ($max === $blue) {
|
|
4153
|
+
$h = 60 * ($red - $green) / $diff + 240;
|
|
4154
|
+
}
|
|
4155
|
+
var $s = $max === 0 ? 0 : $diff / $max;
|
|
4156
|
+
var $v = $max / 255;
|
|
4157
|
+
return [$h, $s, $v];
|
|
4158
|
+
};
|
|
4159
|
+
|
|
4160
|
+
/**
|
|
4161
|
+
* hsvTorgb
|
|
4162
|
+
* @desc:hsv转化成rgb
|
|
4163
|
+
* @author huangbo
|
|
4164
|
+
* @date 2022年5月7日
|
|
4165
|
+
* @param {string} [$color] - 颜色值
|
|
4166
|
+
**/
|
|
4167
|
+
var hsvTorgb = function hsvTorgb($h, $s, $v) {
|
|
4168
|
+
var $th = Math.floor($h / 60);
|
|
4169
|
+
var $t1 = $h / 60 - $th;
|
|
4170
|
+
var $t2 = $v * (1 - $s);
|
|
4171
|
+
var $t3 = $v * (1 - $t1 * $s);
|
|
4172
|
+
var $t4 = $v * (1 - (1 - $t1) * $s);
|
|
4173
|
+
var $r = [$v, $t3, $t2, $t2, $t4, $v][$th % 6];
|
|
4174
|
+
var $g = [$t4, $v, $v, $t3, $t2, $t2][$th % 6];
|
|
4175
|
+
var $b = [$t2, $t2, $t4, $v, $v, $t3][$th % 6];
|
|
4176
|
+
// return `rgb(${Math.round($r * 255)}, ${Math.round($g * 255)}, ${Math.round($b * 255)})`;
|
|
4177
|
+
var red = Math.round($r * 255);
|
|
4178
|
+
var green = Math.round($g * 255);
|
|
4179
|
+
var blue = Math.round($b * 255);
|
|
4180
|
+
red = red.toString(16);
|
|
4181
|
+
green = green.toString(16);
|
|
4182
|
+
blue = blue.toString(16);
|
|
4183
|
+
red = red.length === 1 ? '0' + red : red;
|
|
4184
|
+
green = green.length === 1 ? '0' + green : green;
|
|
4185
|
+
blue = blue.length === 1 ? '0' + blue : blue;
|
|
4186
|
+
return '#' + red + green + blue;
|
|
4187
|
+
};
|
|
4188
|
+
|
|
4189
|
+
/**
|
|
4190
|
+
* mixColor
|
|
4191
|
+
* @desc:生成混合色
|
|
4192
|
+
* @author huangbo
|
|
4193
|
+
* @date 2022年5月7日
|
|
4194
|
+
* @param {string} [$color1] - 颜色值
|
|
4195
|
+
* @param {string} [$color2] - 颜色值
|
|
4196
|
+
* @param {string} [$n] - 百分比 0~1
|
|
4197
|
+
**/
|
|
4198
|
+
var mixColor = function mixColor($color1, $color2, $n) {
|
|
4199
|
+
var rgb1 = getRgb($color1);
|
|
4200
|
+
var rgb2 = getRgb($color2);
|
|
4201
|
+
var r = rgb1[0] * $n + rgb2[0] * (1 - $n);
|
|
4202
|
+
var g = rgb1[1] * $n + rgb2[1] * (1 - $n);
|
|
4203
|
+
var b = rgb1[2] * $n + rgb2[2] * (1 - $n);
|
|
4204
|
+
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
|
|
4205
|
+
};
|
|
4206
|
+
|
|
4207
|
+
/**
|
|
4208
|
+
* getRgb
|
|
4209
|
+
* @desc:获取颜色值的rgb值
|
|
4210
|
+
* @author huangbo
|
|
4211
|
+
* @date 2022年5月7日
|
|
4212
|
+
* @param {string} [$color] - 颜色值
|
|
4213
|
+
**/
|
|
4214
|
+
var getRgb = function getRgb($color) {
|
|
4215
|
+
var rgb = [];
|
|
4216
|
+
// 16进制颜色值的正则
|
|
4217
|
+
var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
4218
|
+
// 把颜色值变成小写
|
|
4219
|
+
$color = $color.toLowerCase();
|
|
4220
|
+
if (reg.test($color)) {
|
|
4221
|
+
// 如果只有三位的值,需变成六位,如:#fff => #ffffff
|
|
4222
|
+
if ($color.length === 4) {
|
|
4223
|
+
var colorNew = '#';
|
|
4224
|
+
for (var i = 1; i < 4; i++) {
|
|
4225
|
+
colorNew += $color.slice(i, i + 1).concat($color.slice(i, i + 1));
|
|
4226
|
+
}
|
|
4227
|
+
$color = colorNew;
|
|
4228
|
+
}
|
|
4229
|
+
// 处理六位的颜色值,转为RGB
|
|
4230
|
+
for (var _i = 1; _i < 7; _i += 2) {
|
|
4231
|
+
rgb.push(parseInt('0x' + $color.slice(_i, _i + 2), 16));
|
|
4232
|
+
}
|
|
4233
|
+
} else {
|
|
4234
|
+
rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
|
|
4235
|
+
}
|
|
4236
|
+
return rgb;
|
|
4237
|
+
};
|
|
4238
|
+
|
|
4239
|
+
/***/ }),
|
|
4240
|
+
|
|
4241
|
+
/***/ 140:
|
|
4242
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4243
|
+
|
|
4244
|
+
"use strict";
|
|
4245
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4246
|
+
/* harmony import */ var _select_src_option__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56);
|
|
4247
|
+
|
|
4248
|
+
|
|
4249
|
+
/* istanbul ignore next */
|
|
4250
|
+
_select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].install = function (Vue) {
|
|
4251
|
+
Vue.component(_select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].name, _select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
|
|
4252
|
+
};
|
|
4253
|
+
|
|
4254
|
+
/* harmony default export */ __webpack_exports__["default"] = (_select_src_option__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
|
|
4255
|
+
|
|
4256
|
+
/***/ }),
|
|
4257
|
+
|
|
4258
|
+
/***/ 19:
|
|
4259
|
+
/***/ (function(module, exports) {
|
|
4260
|
+
|
|
4261
|
+
module.exports = require("eoss/lib/loading");
|
|
4262
|
+
|
|
4263
|
+
/***/ }),
|
|
4264
|
+
|
|
4265
|
+
/***/ 2:
|
|
4266
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4267
|
+
|
|
4268
|
+
"use strict";
|
|
4269
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return setStorage; });
|
|
4270
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStorage; });
|
|
4271
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeStorage; });
|
|
4272
|
+
/* unused harmony export setCookie */
|
|
4273
|
+
/* unused harmony export getCookie */
|
|
4274
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
4275
|
+
|
|
4276
|
+
/**
|
|
4277
|
+
* setStorage
|
|
4278
|
+
* @desc:设置本地储存数据
|
|
4279
|
+
* @author huangbo
|
|
4280
|
+
* @date 2022年5月7日
|
|
4281
|
+
* @param {String|Object} [key] - 数据的名称或包含type、key、value的对象
|
|
4282
|
+
* @param {String} [value] - 数据的值(当第一个参数为字符串时使用)
|
|
4283
|
+
**/
|
|
4284
|
+
var setStorage = function setStorage(key, value) {
|
|
4285
|
+
// 解析参数,支持两种调用方式:setStorage(key, value) 和 setStorage({type, key, value})
|
|
4286
|
+
var type = void 0,
|
|
4287
|
+
finalKey = void 0,
|
|
4288
|
+
finalValue = void 0;
|
|
4289
|
+
|
|
4290
|
+
if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object' && key !== null) {
|
|
4291
|
+
// 对象调用方式:setStorage({type, key, value})
|
|
4292
|
+
type = key.type;
|
|
4293
|
+
finalKey = key.key;
|
|
4294
|
+
finalValue = key.value;
|
|
4295
|
+
} else {
|
|
4296
|
+
// 字符串调用方式:setStorage(key, value)
|
|
4297
|
+
type = getStorage('storageType');
|
|
4298
|
+
finalKey = key;
|
|
4299
|
+
finalValue = value;
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
// 使用默认存储类型如果未指定
|
|
4303
|
+
type = type || getStorage('storageType');
|
|
4304
|
+
|
|
4305
|
+
// 获取存储对象
|
|
4306
|
+
var storage = type === 'localStorage' ? localStorage : sessionStorage;
|
|
4307
|
+
|
|
4308
|
+
// 处理不同类型的key
|
|
4309
|
+
if (typeof finalKey === 'string') {
|
|
4310
|
+
// 单个字符串key
|
|
4311
|
+
var storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
|
|
4312
|
+
storage.setItem(finalKey, storedValue);
|
|
4313
|
+
if (finalKey === 'token') {
|
|
4314
|
+
setCookie('token', storedValue);
|
|
4315
|
+
}
|
|
4316
|
+
} else if (Array.isArray(finalKey)) {
|
|
4317
|
+
// 数组key,为多个key设置同一个value
|
|
4318
|
+
var _storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
|
|
4319
|
+
for (var i = 0; i < finalKey.length; i++) {
|
|
4320
|
+
storage.setItem(finalKey[i], _storedValue);
|
|
4321
|
+
if (finalKey[i] === 'token') {
|
|
4322
|
+
setCookie('token', _storedValue);
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
4325
|
+
} else if ((typeof finalKey === 'undefined' ? 'undefined' : _typeof(finalKey)) === 'object' && finalKey !== null) {
|
|
4326
|
+
// 对象key,对象的属性名称作为key,属性值作为value
|
|
4327
|
+
for (var k in finalKey) {
|
|
4328
|
+
if (Object.prototype.hasOwnProperty.call(finalKey, k)) {
|
|
4329
|
+
var _storedValue2 = _typeof(finalKey[k]) === 'object' ? JSON.stringify(finalKey[k]) : finalKey[k];
|
|
4330
|
+
storage.setItem(k, _storedValue2);
|
|
4331
|
+
if (k === 'token') {
|
|
4332
|
+
setCookie('token', _storedValue2);
|
|
4333
|
+
}
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4336
|
+
}
|
|
4337
|
+
};
|
|
4338
|
+
|
|
4339
|
+
/**
|
|
4340
|
+
* getStorage
|
|
4341
|
+
* @desc:获取本地储存数据
|
|
4342
|
+
* @author huangbo
|
|
4343
|
+
* @date 2022年5月7日
|
|
4344
|
+
* @param {String} [key] - 获取的名称
|
|
4345
|
+
**/
|
|
4346
|
+
var getStorage = function getStorage(key) {
|
|
4347
|
+
if (key) {
|
|
4348
|
+
var res = sessionStorage.getItem(key) || localStorage.getItem(key);
|
|
4349
|
+
if (!res && key === 'token') {
|
|
4350
|
+
res = getCookie('token');
|
|
4351
|
+
}
|
|
4352
|
+
if (key === 'host' && !res) {
|
|
4353
|
+
res = '';
|
|
4354
|
+
}
|
|
4355
|
+
return res;
|
|
4356
|
+
}
|
|
4357
|
+
var defaults = {};
|
|
4358
|
+
var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token');
|
|
4359
|
+
var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId');
|
|
4360
|
+
|
|
4361
|
+
var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique');
|
|
4362
|
+
if (token) {
|
|
4363
|
+
defaults.Authorization = token;
|
|
4364
|
+
}
|
|
4365
|
+
if (ssId) {
|
|
4366
|
+
defaults.ssId = ssId;
|
|
4367
|
+
}
|
|
4368
|
+
if (deviceUnique) {
|
|
4369
|
+
defaults.deviceUnique = deviceUnique;
|
|
4370
|
+
}
|
|
4371
|
+
return defaults;
|
|
4372
|
+
};
|
|
4373
|
+
|
|
4374
|
+
/**
|
|
4375
|
+
* removeStorage
|
|
4376
|
+
* @desc:删除本地储存数据
|
|
4377
|
+
* @author huangbo
|
|
4378
|
+
* @date 2022年5月7日
|
|
4379
|
+
* @param {String, Array} [key] - 获取的名称
|
|
4380
|
+
**/
|
|
4381
|
+
var removeStorage = function removeStorage(key) {
|
|
4382
|
+
if (Array.isArray(key)) {
|
|
4383
|
+
for (var i = 0; i < key.length; i++) {
|
|
4384
|
+
sessionStorage.removeItem(key[i]);
|
|
4385
|
+
localStorage.removeItem(key[i]);
|
|
4386
|
+
if (key[i] === 'token') {
|
|
4387
|
+
removeCookie('token');
|
|
4388
|
+
}
|
|
4389
|
+
}
|
|
4390
|
+
} else if (key) {
|
|
4391
|
+
sessionStorage.removeItem(key);
|
|
4392
|
+
localStorage.removeItem(key);
|
|
4393
|
+
if (key === 'token') {
|
|
4394
|
+
removeCookie('token');
|
|
4395
|
+
}
|
|
4396
|
+
} else {
|
|
4397
|
+
sessionStorage.clear();
|
|
4398
|
+
localStorage.clear();
|
|
4399
|
+
removeCookie('token');
|
|
4400
|
+
}
|
|
4401
|
+
};
|
|
4402
|
+
|
|
4403
|
+
/**
|
|
4404
|
+
* setCookie
|
|
4405
|
+
* @desc 设置cookie
|
|
4406
|
+
* @author huangbo
|
|
4407
|
+
* @param {string} [name] cookie名称
|
|
4408
|
+
* @param {string} [value] cookie值
|
|
4409
|
+
* @param {boolean} [isSession] 是否是会话cookie
|
|
4410
|
+
**/
|
|
4411
|
+
var setCookie = function setCookie(name, value) {
|
|
4412
|
+
var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
4413
|
+
var time = arguments[3];
|
|
4414
|
+
|
|
4415
|
+
try {
|
|
4416
|
+
var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
|
|
4417
|
+
];
|
|
4418
|
+
// 会话/持久Cookie设置
|
|
4419
|
+
if (!isSession) {
|
|
4420
|
+
if (/MSIE|Trident/.test(navigator.userAgent)) {
|
|
4421
|
+
// IE使用expires
|
|
4422
|
+
var date = new Date();
|
|
4423
|
+
date.setTime(date.getTime() + (time || 7 * 24 * 60 * 60 * 1000));
|
|
4424
|
+
cookieParts.push('expires=' + date.toUTCString());
|
|
4425
|
+
} else {
|
|
4426
|
+
// 其他浏览器使用max-age
|
|
4427
|
+
cookieParts.push('max-age=' + (time || 7 * 24 * 60 * 60));
|
|
4428
|
+
}
|
|
4429
|
+
}
|
|
4430
|
+
// 内核兼容处理
|
|
4431
|
+
if (/MSIE|Trident/.test(navigator.userAgent)) {
|
|
4432
|
+
// IE特殊处理:添加P3P协议头
|
|
4433
|
+
cookieParts.push('P3P=CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
|
|
4434
|
+
} else {
|
|
4435
|
+
// 现代浏览器设置
|
|
4436
|
+
cookieParts.push('samesite=lax');
|
|
4437
|
+
if (window.location.protocol === 'https:') {
|
|
4438
|
+
cookieParts.push('secure');
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
|
|
4442
|
+
// 设置Cookie
|
|
4443
|
+
document.cookie = cookieParts.join('; ');
|
|
4444
|
+
return true;
|
|
4445
|
+
} catch (e) {
|
|
4446
|
+
console.error('Cookie设置失败:', e);
|
|
4447
|
+
return false;
|
|
4448
|
+
}
|
|
4449
|
+
};
|
|
4450
|
+
|
|
4451
|
+
/**
|
|
4452
|
+
* getCookie
|
|
4453
|
+
* @desc 获取cookie中指定名称的值
|
|
4454
|
+
* @author huangbo
|
|
4455
|
+
* @param {string} [name] cookie名称
|
|
4456
|
+
**/
|
|
4457
|
+
var getCookie = function getCookie(name) {
|
|
4458
|
+
var cookies = document.cookie.split(';');
|
|
4459
|
+
for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
|
4460
|
+
var _ref;
|
|
4461
|
+
|
|
4462
|
+
if (_isArray) {
|
|
4463
|
+
if (_i >= _iterator.length) break;
|
|
4464
|
+
_ref = _iterator[_i++];
|
|
4465
|
+
} else {
|
|
4466
|
+
_i = _iterator.next();
|
|
4467
|
+
if (_i.done) break;
|
|
4468
|
+
_ref = _i.value;
|
|
4469
|
+
}
|
|
4470
|
+
|
|
4471
|
+
var cookie = _ref;
|
|
4472
|
+
|
|
4473
|
+
var _cookie$trim$split = cookie.trim().split('='),
|
|
4474
|
+
cookieName = _cookie$trim$split[0],
|
|
4475
|
+
cookieValue = _cookie$trim$split[1];
|
|
4476
|
+
|
|
4477
|
+
if (decodeURIComponent(cookieName) === name) {
|
|
4478
|
+
return decodeURIComponent(cookieValue);
|
|
4479
|
+
}
|
|
4480
|
+
}
|
|
4481
|
+
return null;
|
|
4482
|
+
};
|
|
4483
|
+
|
|
4484
|
+
/**
|
|
4485
|
+
* removeCookie
|
|
4486
|
+
* @desc:删除cookie
|
|
4487
|
+
* @author huangbo
|
|
4488
|
+
* @date 2022年5月7日
|
|
4489
|
+
* @param {String, Array} [key] - 获取的名称
|
|
4490
|
+
**/
|
|
4491
|
+
var removeCookie = function removeCookie(key) {
|
|
4492
|
+
if (Array.isArray(key)) {
|
|
4493
|
+
for (var i = 0; i < key.length; i++) {
|
|
4494
|
+
document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
4495
|
+
}
|
|
4496
|
+
} else {
|
|
4497
|
+
document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
4498
|
+
}
|
|
4499
|
+
};
|
|
4500
|
+
|
|
4501
|
+
/***/ }),
|
|
4502
|
+
|
|
4503
|
+
/***/ 20:
|
|
4504
|
+
/***/ (function(module, exports) {
|
|
4505
|
+
|
|
4506
|
+
module.exports = require("lodash/get");
|
|
4507
|
+
|
|
4508
|
+
/***/ }),
|
|
4509
|
+
|
|
4510
|
+
/***/ 21:
|
|
4511
|
+
/***/ (function(module, exports) {
|
|
4512
|
+
|
|
4513
|
+
module.exports = require("lodash/set");
|
|
4514
|
+
|
|
4515
|
+
/***/ }),
|
|
4516
|
+
|
|
4517
|
+
/***/ 22:
|
|
4518
|
+
/***/ (function(module, exports) {
|
|
4519
|
+
|
|
4520
|
+
module.exports = require("lodash/cloneDeep");
|
|
4521
|
+
|
|
4522
|
+
/***/ }),
|
|
4523
|
+
|
|
4524
|
+
/***/ 3:
|
|
4525
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4526
|
+
|
|
4527
|
+
"use strict";
|
|
4528
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
4529
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
4530
|
+
|
|
4531
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
4532
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
4533
|
+
// be included in the final webpack user bundle.
|
|
4534
|
+
|
|
4535
|
+
function normalizeComponent(
|
|
4536
|
+
scriptExports,
|
|
4537
|
+
render,
|
|
4538
|
+
staticRenderFns,
|
|
4539
|
+
functionalTemplate,
|
|
4540
|
+
injectStyles,
|
|
4541
|
+
scopeId,
|
|
4542
|
+
moduleIdentifier /* server only */,
|
|
4543
|
+
shadowMode /* vue-cli only */
|
|
4544
|
+
) {
|
|
4545
|
+
// Vue.extend constructor export interop
|
|
4546
|
+
var options =
|
|
4547
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
4548
|
+
|
|
4549
|
+
// render functions
|
|
4550
|
+
if (render) {
|
|
4551
|
+
options.render = render
|
|
4552
|
+
options.staticRenderFns = staticRenderFns
|
|
4553
|
+
options._compiled = true
|
|
4554
|
+
}
|
|
4555
|
+
|
|
4556
|
+
// functional template
|
|
4557
|
+
if (functionalTemplate) {
|
|
4558
|
+
options.functional = true
|
|
4559
|
+
}
|
|
4560
|
+
|
|
4561
|
+
// scopedId
|
|
4562
|
+
if (scopeId) {
|
|
4563
|
+
options._scopeId = 'data-v-' + scopeId
|
|
4564
|
+
}
|
|
4565
|
+
|
|
4566
|
+
var hook
|
|
4567
|
+
if (moduleIdentifier) {
|
|
4568
|
+
// server build
|
|
4569
|
+
hook = function (context) {
|
|
4570
|
+
// 2.3 injection
|
|
4571
|
+
context =
|
|
4572
|
+
context || // cached call
|
|
4573
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
4574
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
4575
|
+
// 2.2 with runInNewContext: true
|
|
4576
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
4577
|
+
context = __VUE_SSR_CONTEXT__
|
|
4578
|
+
}
|
|
4579
|
+
// inject component styles
|
|
4580
|
+
if (injectStyles) {
|
|
4581
|
+
injectStyles.call(this, context)
|
|
4582
|
+
}
|
|
4583
|
+
// register component module identifier for async chunk inferrence
|
|
4584
|
+
if (context && context._registeredComponents) {
|
|
4585
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
4586
|
+
}
|
|
4587
|
+
}
|
|
4588
|
+
// used by ssr in case component is cached and beforeCreate
|
|
4589
|
+
// never gets called
|
|
4590
|
+
options._ssrRegister = hook
|
|
4591
|
+
} else if (injectStyles) {
|
|
4592
|
+
hook = shadowMode
|
|
4593
|
+
? function () {
|
|
4594
|
+
injectStyles.call(
|
|
4595
|
+
this,
|
|
4596
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
4597
|
+
)
|
|
4598
|
+
}
|
|
4599
|
+
: injectStyles
|
|
4600
|
+
}
|
|
4601
|
+
|
|
4602
|
+
if (hook) {
|
|
4603
|
+
if (options.functional) {
|
|
4604
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
4605
|
+
// go through the normalizer
|
|
4606
|
+
options._injectStyles = hook
|
|
4607
|
+
// register for functional component in vue file
|
|
4608
|
+
var originalRender = options.render
|
|
4609
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
4610
|
+
hook.call(context)
|
|
4611
|
+
return originalRender(h, context)
|
|
4612
|
+
}
|
|
4613
|
+
} else {
|
|
4614
|
+
// inject component registration as beforeCreate hook
|
|
4615
|
+
var existing = options.beforeCreate
|
|
4616
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
4617
|
+
}
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
return {
|
|
4621
|
+
exports: scriptExports,
|
|
4622
|
+
options: options
|
|
4623
|
+
}
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4626
|
+
|
|
4627
|
+
/***/ }),
|
|
4628
|
+
|
|
4629
|
+
/***/ 4:
|
|
4630
|
+
/***/ (function(module, exports) {
|
|
4631
|
+
|
|
4632
|
+
module.exports = require("vue");
|
|
4633
|
+
|
|
4634
|
+
/***/ }),
|
|
4635
|
+
|
|
4636
|
+
/***/ 56:
|
|
4606
4637
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4607
4638
|
|
|
4608
4639
|
"use strict";
|
|
@@ -4660,7 +4691,7 @@ var emitter = __webpack_require__(10);
|
|
|
4660
4691
|
var util = __webpack_require__(0);
|
|
4661
4692
|
|
|
4662
4693
|
// EXTERNAL MODULE: ./src/utils/types.js
|
|
4663
|
-
var types = __webpack_require__(
|
|
4694
|
+
var types = __webpack_require__(6);
|
|
4664
4695
|
|
|
4665
4696
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=script&lang=js&
|
|
4666
4697
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
@@ -4914,7 +4945,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4914
4945
|
// CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=script&lang=js&
|
|
4915
4946
|
/* harmony default export */ var src_optionvue_type_script_lang_js_ = (optionvue_type_script_lang_js_);
|
|
4916
4947
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
4917
|
-
var componentNormalizer = __webpack_require__(
|
|
4948
|
+
var componentNormalizer = __webpack_require__(3);
|
|
4918
4949
|
|
|
4919
4950
|
// CONCATENATED MODULE: ./packages/select/src/option.vue
|
|
4920
4951
|
|
|
@@ -4939,6 +4970,73 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
4939
4970
|
|
|
4940
4971
|
/***/ }),
|
|
4941
4972
|
|
|
4973
|
+
/***/ 6:
|
|
4974
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4975
|
+
|
|
4976
|
+
"use strict";
|
|
4977
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
|
|
4978
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
|
|
4979
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
|
|
4980
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
|
|
4981
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
|
|
4982
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
|
|
4983
|
+
/**
|
|
4984
|
+
* 检查一个值是否为字符串类型
|
|
4985
|
+
* @param {*} obj 要检查的值
|
|
4986
|
+
* @returns {boolean} 如果值为字符串则返回true,否则返回false
|
|
4987
|
+
*/
|
|
4988
|
+
function isString(obj) {
|
|
4989
|
+
return Object.prototype.toString.call(obj) === '[object String]';
|
|
4990
|
+
}
|
|
4991
|
+
|
|
4992
|
+
/**
|
|
4993
|
+
* 检查一个值是否为对象类型
|
|
4994
|
+
* @param {*} obj 要检查的值
|
|
4995
|
+
* @returns {boolean} 如果值为对象则返回true,否则返回false
|
|
4996
|
+
*/
|
|
4997
|
+
function isObject(obj) {
|
|
4998
|
+
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
4999
|
+
}
|
|
5000
|
+
|
|
5001
|
+
/**
|
|
5002
|
+
* 检查一个节点是否为HTML元素
|
|
5003
|
+
* @param {Node} node 要检查的节点
|
|
5004
|
+
* @returns {boolean} 如果节点为HTML元素则返回true,否则返回false
|
|
5005
|
+
*/
|
|
5006
|
+
function isHtmlElement(node) {
|
|
5007
|
+
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
5008
|
+
}
|
|
5009
|
+
|
|
5010
|
+
/**
|
|
5011
|
+
* 检查一个值是否为函数类型
|
|
5012
|
+
* @param {*} functionToCheck 要检查的值
|
|
5013
|
+
* @returns {boolean} 如果值为函数则返回true,否则返回false
|
|
5014
|
+
*/
|
|
5015
|
+
function isFunction(functionToCheck) {
|
|
5016
|
+
var getType = {};
|
|
5017
|
+
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
5018
|
+
}
|
|
5019
|
+
|
|
5020
|
+
/**
|
|
5021
|
+
* 检查一个值是否为undefined
|
|
5022
|
+
* @param {*} val 要检查的值
|
|
5023
|
+
* @returns {boolean} 如果值为undefined则返回true,否则返回false
|
|
5024
|
+
*/
|
|
5025
|
+
function isUndefined(val) {
|
|
5026
|
+
return val === void 0;
|
|
5027
|
+
}
|
|
5028
|
+
|
|
5029
|
+
/**
|
|
5030
|
+
* 检查一个值是否已定义(不是undefined或null)
|
|
5031
|
+
* @param {*} val 要检查的值
|
|
5032
|
+
* @returns {boolean} 如果值已定义则返回true,否则返回false
|
|
5033
|
+
*/
|
|
5034
|
+
function isDefined(val) {
|
|
5035
|
+
return val !== undefined && val !== null;
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
/***/ }),
|
|
5039
|
+
|
|
4942
5040
|
/***/ 8:
|
|
4943
5041
|
/***/ (function(module, exports) {
|
|
4944
5042
|
|