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.
Files changed (207) hide show
  1. package/lib/account-login.js +1943 -1890
  2. package/lib/alert.js +4 -4
  3. package/lib/aside.js +4 -4
  4. package/lib/autocomplete.js +4936 -4834
  5. package/lib/avatar.js +4 -4
  6. package/lib/backtop.js +4 -4
  7. package/lib/badge.js +4 -4
  8. package/lib/breadcrumb-item.js +6 -6
  9. package/lib/breadcrumb.js +7 -7
  10. package/lib/button-group.js +11 -14
  11. package/lib/button.js +6 -6
  12. package/lib/ca-login.js +2480 -2382
  13. package/lib/calendar.js +798 -798
  14. package/lib/card.js +4 -4
  15. package/lib/carousel-item.js +911 -813
  16. package/lib/carousel.js +1646 -1548
  17. package/lib/cascader-panel.js +2556 -2458
  18. package/lib/cascader.js +4546 -4444
  19. package/lib/checkbox-button.js +4 -4
  20. package/lib/checkbox-group.js +2894 -2841
  21. package/lib/checkbox.js +4 -4
  22. package/lib/col.js +2 -2
  23. package/lib/collapse-item.js +35159 -2572
  24. package/lib/collapse.js +35410 -2762
  25. package/lib/color-picker.js +494 -490
  26. package/lib/config/api.js +15 -1
  27. package/lib/container.js +4 -4
  28. package/lib/cron.js +4 -4
  29. package/lib/data-table.js +1895 -1842
  30. package/lib/date-picker.js +6422 -6320
  31. package/lib/dialog.js +2912 -2806
  32. package/lib/divider.js +4 -4
  33. package/lib/drawer.js +311 -299
  34. package/lib/dropdown-item.js +6 -6
  35. package/lib/dropdown-menu.js +539 -535
  36. package/lib/dropdown.js +2270 -2172
  37. package/lib/email-login.js +1783 -1730
  38. package/lib/empty.js +723 -0
  39. package/lib/eoss.common.js +63680 -56193
  40. package/lib/flip.js +4 -4
  41. package/lib/flow-group.js +2985 -2887
  42. package/lib/flow.js +28067 -28022
  43. package/lib/footer.js +4 -4
  44. package/lib/form-item.js +1935 -1837
  45. package/lib/form.js +9230 -9092
  46. package/lib/header.js +4 -4
  47. package/lib/icon.js +1708 -1590
  48. package/lib/icons.js +4 -4
  49. package/lib/image-viewer.js +1660 -1562
  50. package/lib/image.js +162 -162
  51. package/lib/index.js +1 -1
  52. package/lib/infinite-scroll.js +76 -76
  53. package/lib/input-number.js +172 -172
  54. package/lib/input.js +1362 -1264
  55. package/lib/link.js +4 -4
  56. package/lib/loading.js +321 -317
  57. package/lib/login.js +3306 -3300
  58. package/lib/lowcode.js +13320 -0
  59. package/lib/main.js +14465 -14339
  60. package/lib/marquee.js +1237 -1139
  61. package/lib/menu-item-group.js +119 -119
  62. package/lib/menu-item.js +114 -114
  63. package/lib/menu.js +6193 -6091
  64. package/lib/message-box.js +3582 -3480
  65. package/lib/message.js +2265 -2163
  66. package/lib/notification.js +2430 -2328
  67. package/lib/option-group.js +4 -4
  68. package/lib/option.js +842 -744
  69. package/lib/page-header.js +4 -4
  70. package/lib/pagination.js +1916 -1815
  71. package/lib/phone-login.js +1788 -1735
  72. package/lib/popconfirm.js +8 -8
  73. package/lib/popover.js +4559 -4457
  74. package/lib/progress.js +4 -4
  75. package/lib/qr-code.js +9 -9
  76. package/lib/qrcode-login.js +1600 -1543
  77. package/lib/radio-button.js +6 -6
  78. package/lib/radio-group.js +2142 -2089
  79. package/lib/radio.js +6 -6
  80. package/lib/rate.js +1226 -1128
  81. package/lib/row.js +2 -2
  82. package/lib/scrollbar.js +2695 -2597
  83. package/lib/select.js +5985 -5961
  84. package/lib/selector-panel.js +5239 -5186
  85. package/lib/selector.js +1712 -1659
  86. package/lib/slider.js +16 -16
  87. package/lib/step.js +35836 -2736
  88. package/lib/steps.js +1281 -1183
  89. package/lib/submenu.js +461 -457
  90. package/lib/switch.js +1010 -912
  91. package/lib/tab-pane.js +4 -4
  92. package/lib/table-column.js +2595 -2497
  93. package/lib/table.js +9225 -9239
  94. package/lib/tabs.js +2414 -2320
  95. package/lib/tag.js +4 -4
  96. package/lib/theme-chalk/account-login.css +1 -1
  97. package/lib/theme-chalk/autocomplete.css +1 -1
  98. package/lib/theme-chalk/base.css +1 -1
  99. package/lib/theme-chalk/cascader.css +1 -1
  100. package/lib/theme-chalk/date-picker.css +1 -1
  101. package/lib/theme-chalk/empty.css +1 -0
  102. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  103. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  104. package/lib/theme-chalk/form.css +1 -1
  105. package/lib/theme-chalk/icon.css +1 -1
  106. package/lib/theme-chalk/index.css +1 -1
  107. package/lib/theme-chalk/input-number.css +1 -1
  108. package/lib/theme-chalk/input.css +1 -1
  109. package/lib/theme-chalk/login.css +1 -1
  110. package/lib/theme-chalk/lowcode.css +1 -0
  111. package/lib/theme-chalk/main.css +1 -1
  112. package/lib/theme-chalk/message-box.css +1 -1
  113. package/lib/theme-chalk/pagination.css +1 -1
  114. package/lib/theme-chalk/qrcode-login.css +1 -1
  115. package/lib/theme-chalk/select.css +1 -1
  116. package/lib/theme-chalk/slider.css +1 -1
  117. package/lib/theme-chalk/tabs.css +1 -1
  118. package/lib/theme-chalk/time-picker.css +1 -1
  119. package/lib/theme-chalk/transfer.css +1 -1
  120. package/lib/time-picker.js +5823 -5819
  121. package/lib/time-select.js +3578 -3574
  122. package/lib/timeline-item.js +4 -4
  123. package/lib/timeline.js +4 -4
  124. package/lib/tips.js +1633 -1580
  125. package/lib/toolbar.js +213 -213
  126. package/lib/tooltip.js +4441 -4339
  127. package/lib/transfer.js +938 -840
  128. package/lib/tree-group.js +1875 -1757
  129. package/lib/tree.js +2626 -2573
  130. package/lib/upload.js +7209 -7156
  131. package/lib/utils/ajax.js +185 -243
  132. package/lib/utils/bus.js +2 -2
  133. package/lib/utils/popup/index.js +5 -1
  134. package/lib/utils/util.js +108 -11
  135. package/package.json +2 -2
  136. package/packages/button/src/button-group.vue +1 -4
  137. package/packages/collapse/src/collapse-item.vue +47 -33
  138. package/packages/dialog/src/dialog.vue +4 -1
  139. package/packages/drawer/src/drawer.vue +12 -4
  140. package/packages/empty/index.js +7 -0
  141. package/packages/empty/src/img-empty.vue +132 -0
  142. package/packages/empty/src/index.vue +49 -0
  143. package/packages/form/src/form-item-render.vue +16 -18
  144. package/packages/form/src/form.vue +27 -5
  145. package/packages/icons/src/icon.json +1 -1
  146. package/packages/login/src/login.vue +19 -21
  147. package/packages/login/src/mixins.js +2 -1
  148. package/packages/lowcode/index.js +5 -0
  149. package/packages/lowcode/src/aside.vue +331 -0
  150. package/packages/lowcode/src/attribute/bind.vue +441 -0
  151. package/packages/lowcode/src/attribute/dependency.vue +325 -0
  152. package/packages/lowcode/src/attribute/function.vue +112 -0
  153. package/packages/lowcode/src/attribute/property.vue +331 -0
  154. package/packages/lowcode/src/attribute/styles.vue +318 -0
  155. package/packages/lowcode/src/attribute.vue +135 -0
  156. package/packages/lowcode/src/canvas.vue +296 -0
  157. package/packages/lowcode/src/json.vue +32 -0
  158. package/packages/lowcode/src/lowcode.vue +539 -0
  159. package/packages/lowcode/src/modules.vue +93 -0
  160. package/packages/lowcode/src/pages.vue +91 -0
  161. package/packages/lowcode/src/render.vue +247 -0
  162. package/packages/lowcode/src/source.vue +32 -0
  163. package/packages/lowcode/src/toolbar.vue +162 -0
  164. package/packages/main/src/components/pages.vue +28 -2
  165. package/packages/main/src/components/set-menus.vue +3 -3
  166. package/packages/main/src/components/user.vue +6 -1
  167. package/packages/main/src/early.vue +2 -2
  168. package/packages/main/src/gzw.vue +55 -61
  169. package/packages/main/src/minxs.js +113 -36
  170. package/packages/pagination/src/pager.vue +2 -2
  171. package/packages/pagination/src/pagination.js +4 -1
  172. package/packages/qrcode-login/src/qrcode-login.vue +6 -2
  173. package/packages/select/src/select.vue +28 -6
  174. package/packages/steps/src/step.vue +7 -5
  175. package/packages/tabs/src/tab-nav.vue +1 -0
  176. package/packages/tabs/src/tabs.vue +0 -2
  177. package/packages/theme-chalk/dist/fonts/iconfont.ttf +0 -0
  178. package/packages/theme-chalk/dist/fonts/iconfont.woff +0 -0
  179. package/packages/theme-chalk/gulpfile.js +3 -0
  180. package/packages/theme-chalk/src/account-login.scss +1 -0
  181. package/packages/theme-chalk/src/base.scss +1 -1
  182. package/packages/theme-chalk/src/common/var.scss +16 -0
  183. package/packages/theme-chalk/src/empty.scss +45 -0
  184. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  185. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  186. package/packages/theme-chalk/src/form.scss +1 -8
  187. package/packages/theme-chalk/src/icon.scss +30 -1
  188. package/packages/theme-chalk/src/index.scss +2 -0
  189. package/packages/theme-chalk/src/input-number.scss +0 -4
  190. package/packages/theme-chalk/src/input.scss +9 -0
  191. package/packages/theme-chalk/src/login.scss +32 -29
  192. package/packages/theme-chalk/src/lowcode.scss +461 -0
  193. package/packages/theme-chalk/src/main.scss +28 -65
  194. package/packages/theme-chalk/src/pagination.scss +4 -55
  195. package/packages/theme-chalk/src/qrcode-login.scss +3 -1
  196. package/packages/theme-chalk/src/tabs.scss +81 -50
  197. package/src/config/api.js +13 -0
  198. package/src/index.js +17 -4
  199. package/src/utils/ajax.js +61 -65
  200. package/src/utils/bus.js +2 -2
  201. package/src/utils/popup/index.js +5 -1
  202. package/src/utils/util.js +104 -7
  203. package/lib/index_/345/211/257/346/234/254.js +0 -583
  204. package/packages/dialog copy/index.js +0 -8
  205. package/packages/dialog copy/src/dialog.vue +0 -615
  206. package/src/index_/345/211/257/346/234/254.js +0 -359
  207. /package/{packages/form/src → src/components}/field-render.vue +0 -0
package/lib/rate.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 = 143);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 145);
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__, "K", function() { return noop; });
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__, "U", function() { return toObject; });
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__, "Y", function() { return valueEquals; });
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__, "M", function() { return rafThrottle; });
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__, "O", function() { return requestAnimationFrame; });
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__, "R", function() { return throttle; });
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__, "S", function() { return timestampUrl; });
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__, "J", function() { return loading; });
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__, "L", function() { return queryParams; });
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__, "N", function() { return renderIcon; });
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__, "P", function() { return setFavicon; });
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__, "Q", function() { return startWith; });
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__, "T", function() { return toFixed; });
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__, "V", function() { return updateTheme; });
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__, "W", function() { return urlJoinParams; });
184
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return uuid; });
185
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return watermark; });
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__, "Z", function() { return warning; });
191
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
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__(12);
194
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
195
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
196
- /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
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__(15);
207
- var _set = __webpack_require__(16);
208
- var _cloneDeep = __webpack_require__(17);
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 _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
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] === undefined) {
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__(13).default;
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 || data.orgType;
2167
- var layerlevel = attributes.layerlevel || data.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 _i5 = 0; _i5 < decimalPart.length; _i5++) {
2247
- var _digit = parseInt(decimalPart[_i5], 10);
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[_i5];
2347
+ decimalCapital += chineseNumbers[_digit] + decimalUnits[_i6];
2250
2348
  } else if (decimalCapital[decimalCapital.length - 1] !== chineseNumbers[0]) {
2251
2349
  decimalCapital += chineseNumbers[_digit];
2252
2350
  }
@@ -2912,999 +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
- /***/ 12:
3151
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3152
-
3153
- "use strict";
3154
- /* unused harmony export getHue */
3155
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getColor; });
3156
- /* unused harmony export getLightness */
3157
- /* unused harmony export getSaturation */
3158
- /* unused harmony export rgbToHsv */
3159
- /* unused harmony export hsvTorgb */
3160
- /* unused harmony export mixColor */
3161
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getRgb; });
3162
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
3163
-
3164
- var $hueStep = 2;
3165
- var $saturationStep1 = 0.16;
3166
- var $saturationStep2 = 0.05;
3167
- var $brightnessStep1 = 0.05;
3168
- var $brightnessStep2 = 0.15;
3169
- var $lightColorCount = 5;
3170
- var $darkColorCount = 4;
3171
- /**
3172
- * getHue
3173
- * @desc:转换色相
3174
- * @author huangbo
3175
- * @date 2022年5月7日
3176
- **/
3177
- var getHue = function getHue($h, $i, $isLight) {
3178
- var $hue = void 0;
3179
- if ($h >= 60 && $h <= 240) {
3180
- $hue = $isLight ? $h - $hueStep * $i : $h + $hueStep * $i;
3181
- } else {
3182
- $hue = $isLight ? $h + $hueStep * $i : $h - $hueStep * $i;
3183
- }
3184
- $hue = ($hue + 360) % 360;
3185
- return Math.round($hue);
3186
- };
3187
-
3188
- /**
3189
- * getColor
3190
- * @desc:根据颜色和对应的色板位置,计算出对应的色板颜色
3191
- * @author huangbo
3192
- * @date 2022年5月7日
3193
- **/
3194
- var getColor = function getColor($color, $n) {
3195
- var $isLight = $n < 7;
3196
- var $hsv = rgbToHsv($color);
3197
- // 这里将i转换成以主色为中心,两侧的i值逐渐增大
3198
- var $i = $isLight ? $lightColorCount + 1 - $n : $n - $lightColorCount - 1;
3199
- var color = hsvTorgb(getHue($hsv[0], $i, $isLight), getSaturation($hsv[1], $i, $isLight), getLightness($hsv[2], $i, $isLight));
3200
- return color;
3201
- };
3202
-
3203
- /**
3204
- * getLightness
3205
- * @desc:转换明度
3206
- * @author huangbo
3207
- * @date 2022年5月7日
3208
- * @return {string,array} 元素类名或者id
3209
- **/
3210
- var getLightness = function getLightness($v, $i, $isLight) {
3211
- var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
3212
- $value = $value < 1 ? $value : 1;
3213
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "T"])($value, 2);
3214
- };
3215
-
3216
- /**
3217
- * getSaturation
3218
- * @desc:转换饱和度
3219
- * @author huangbo
3220
- * @date 2022年5月7日
3221
- **/
3222
- var getSaturation = function getSaturation($s, $i, $isLight) {
3223
- var $saturation = void 0;
3224
- if ($isLight) {
3225
- $saturation = $s - $saturationStep1 * $i;
3226
- } else if ($i === $darkColorCount) {
3227
- $saturation = $s + $saturationStep1;
3228
- } else {
3229
- $saturation = $s + $saturationStep2 * $i;
3230
- }
3231
- $saturation = $saturation < 1 ? $saturation : 1;
3232
-
3233
- if ($isLight && $i === $lightColorCount && $saturation > 0.1) {
3234
- $saturation = 0.1;
3235
- }
3236
- $saturation = $saturation > 0.06 ? $saturation : 0.06;
3237
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "T"])($saturation, 2);
3238
- };
3239
-
3240
- /**
3241
- * rgbToHsv
3242
- * @desc:rgb转化成hsv
3243
- * @author huangbo
3244
- * @date 2022年5月7日
3245
- * @param {string} [$color] - 颜色值
3246
- **/
3247
- var rgbToHsv = function rgbToHsv($color) {
3248
- var rgb = getRgb($color);
3249
- var $red = rgb[0];
3250
- var $green = rgb[1];
3251
- var $blue = rgb[2];
3252
- var $max = Math.max($red, $green, $blue);
3253
- var $min = Math.min($red, $green, $blue);
3254
- var $diff = $max - $min;
3255
- var $h = 0;
3256
- if ($max === $min) {
3257
- $h = 0;
3258
- } else if ($max === $red) {
3259
- $h = 60 * ($green - $blue) / $diff + ($green > $blue - 1 ? 0 : 360);
3260
- } else if ($max === $green) {
3261
- $h = 60 * ($blue - $red) / $diff + 120;
3262
- } else if ($max === $blue) {
3263
- $h = 60 * ($red - $green) / $diff + 240;
3264
- }
3265
- var $s = $max === 0 ? 0 : $diff / $max;
3266
- var $v = $max / 255;
3267
- return [$h, $s, $v];
3268
- };
3269
-
3270
- /**
3271
- * hsvTorgb
3272
- * @desc:hsv转化成rgb
3273
- * @author huangbo
3274
- * @date 2022年5月7日
3275
- * @param {string} [$color] - 颜色值
3276
- **/
3277
- var hsvTorgb = function hsvTorgb($h, $s, $v) {
3278
- var $th = Math.floor($h / 60);
3279
- var $t1 = $h / 60 - $th;
3280
- var $t2 = $v * (1 - $s);
3281
- var $t3 = $v * (1 - $t1 * $s);
3282
- var $t4 = $v * (1 - (1 - $t1) * $s);
3283
- var $r = [$v, $t3, $t2, $t2, $t4, $v][$th % 6];
3284
- var $g = [$t4, $v, $v, $t3, $t2, $t2][$th % 6];
3285
- var $b = [$t2, $t2, $t4, $v, $v, $t3][$th % 6];
3286
- // return `rgb(${Math.round($r * 255)}, ${Math.round($g * 255)}, ${Math.round($b * 255)})`;
3287
- var red = Math.round($r * 255);
3288
- var green = Math.round($g * 255);
3289
- var blue = Math.round($b * 255);
3290
- red = red.toString(16);
3291
- green = green.toString(16);
3292
- blue = blue.toString(16);
3293
- red = red.length === 1 ? '0' + red : red;
3294
- green = green.length === 1 ? '0' + green : green;
3295
- blue = blue.length === 1 ? '0' + blue : blue;
3296
- return '#' + red + green + blue;
3297
- };
3298
-
3299
- /**
3300
- * mixColor
3301
- * @desc:生成混合色
3302
- * @author huangbo
3303
- * @date 2022年5月7日
3304
- * @param {string} [$color1] - 颜色值
3305
- * @param {string} [$color2] - 颜色值
3306
- * @param {string} [$n] - 百分比 0~1
3307
- **/
3308
- var mixColor = function mixColor($color1, $color2, $n) {
3309
- var rgb1 = getRgb($color1);
3310
- var rgb2 = getRgb($color2);
3311
- var r = rgb1[0] * $n + rgb2[0] * (1 - $n);
3312
- var g = rgb1[1] * $n + rgb2[1] * (1 - $n);
3313
- var b = rgb1[2] * $n + rgb2[2] * (1 - $n);
3314
- return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
3315
- };
3316
-
3317
- /**
3318
- * getRgb
3319
- * @desc:获取颜色值的rgb值
3320
- * @author huangbo
3321
- * @date 2022年5月7日
3322
- * @param {string} [$color] - 颜色值
3323
- **/
3324
- var getRgb = function getRgb($color) {
3325
- var rgb = [];
3326
- // 16进制颜色值的正则
3327
- var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
3328
- // 把颜色值变成小写
3329
- $color = $color.toLowerCase();
3330
- if (reg.test($color)) {
3331
- // 如果只有三位的值,需变成六位,如:#fff => #ffffff
3332
- if ($color.length === 4) {
3333
- var colorNew = '#';
3334
- for (var i = 1; i < 4; i++) {
3335
- colorNew += $color.slice(i, i + 1).concat($color.slice(i, i + 1));
3336
- }
3337
- $color = colorNew;
3338
- }
3339
- // 处理六位的颜色值,转为RGB
3340
- for (var _i = 1; _i < 7; _i += 2) {
3341
- rgb.push(parseInt('0x' + $color.slice(_i, _i + 2), 16));
3342
- }
3343
- } else {
3344
- rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
3345
- }
3346
- return rgb;
3347
- };
3348
-
3349
- /***/ }),
3350
-
3351
- /***/ 13:
3352
- /***/ (function(module, exports) {
3353
-
3354
- module.exports = require("eoss/lib/loading");
3355
-
3356
- /***/ }),
3357
-
3358
- /***/ 143:
3359
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3360
-
3361
- "use strict";
3362
- __webpack_require__.r(__webpack_exports__);
3363
- /* harmony import */ var _src_rate_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84);
3364
-
3365
-
3366
- _src_rate_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].install = function (Vue) {
3367
- Vue.component(_src_rate_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].name, _src_rate_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
3368
- };
3369
-
3370
- /* harmony default export */ __webpack_exports__["default"] = (_src_rate_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
3371
-
3372
- /***/ }),
3373
-
3374
- /***/ 15:
3375
- /***/ (function(module, exports) {
3376
-
3377
- module.exports = require("lodash/get");
3378
-
3379
- /***/ }),
3380
-
3381
- /***/ 16:
3382
- /***/ (function(module, exports) {
3383
-
3384
- module.exports = require("lodash/set");
3385
-
3386
- /***/ }),
3387
-
3388
- /***/ 17:
3389
- /***/ (function(module, exports) {
3390
-
3391
- module.exports = require("lodash/cloneDeep");
3392
-
3393
- /***/ }),
3394
-
3395
- /***/ 2:
3396
- /***/ (function(module, exports) {
3397
-
3398
- module.exports = require("vue");
3399
-
3400
- /***/ }),
3401
-
3402
- /***/ 3:
3403
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3404
-
3405
- "use strict";
3406
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
3407
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
3408
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
3409
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
3410
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
3411
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
3412
- /**
3413
- * 检查一个值是否为字符串类型
3414
- * @param {*} obj 要检查的值
3415
- * @returns {boolean} 如果值为字符串则返回true,否则返回false
3416
- */
3417
- function isString(obj) {
3418
- return Object.prototype.toString.call(obj) === '[object String]';
3419
- }
3420
-
3421
- /**
3422
- * 检查一个值是否为对象类型
3423
- * @param {*} obj 要检查的值
3424
- * @returns {boolean} 如果值为对象则返回true,否则返回false
3425
- */
3426
- function isObject(obj) {
3427
- return Object.prototype.toString.call(obj) === '[object Object]';
3428
- }
3429
-
3430
- /**
3431
- * 检查一个节点是否为HTML元素
3432
- * @param {Node} node 要检查的节点
3433
- * @returns {boolean} 如果节点为HTML元素则返回true,否则返回false
3434
- */
3435
- function isHtmlElement(node) {
3436
- return node && node.nodeType === Node.ELEMENT_NODE;
3437
- }
3438
-
3439
- /**
3440
- * 检查一个值是否为函数类型
3441
- * @param {*} functionToCheck 要检查的值
3442
- * @returns {boolean} 如果值为函数则返回true,否则返回false
3443
- */
3444
- function isFunction(functionToCheck) {
3445
- var getType = {};
3446
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
3447
- }
3448
-
3449
- /**
3450
- * 检查一个值是否为undefined
3451
- * @param {*} val 要检查的值
3452
- * @returns {boolean} 如果值为undefined则返回true,否则返回false
3453
- */
3454
- function isUndefined(val) {
3455
- return val === void 0;
3456
- }
3457
-
3458
- /**
3459
- * 检查一个值是否已定义(不是undefined或null)
3460
- * @param {*} val 要检查的值
3461
- * @returns {boolean} 如果值已定义则返回true,否则返回false
3462
- */
3463
- function isDefined(val) {
3464
- return val !== undefined && val !== null;
3465
- }
3466
-
3467
- /***/ }),
3468
-
3469
- /***/ 32:
3470
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3471
-
3472
- "use strict";
3473
- /* harmony import */ var eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
3474
-
3475
- /**
3476
- * Show migrating guide in browser console.
3477
- *
3478
- * Usage:
3479
- * import Migrating from 'eoss/src/mixins/migrating';
3480
- *
3481
- * mixins: [Migrating]
3482
- *
3483
- * add getMigratingConfig method for your component.
3484
- * getMigratingConfig() {
3485
- * return {
3486
- * props: {
3487
- * 'allow-no-selection': 'allow-no-selection is removed.',
3488
- * 'selection-mode': 'selection-mode is removed.'
3489
- * },
3490
- * events: {
3491
- * selectionchange: 'selectionchange is renamed to selection-change.'
3492
- * }
3493
- * };
3494
- * },
3495
- */
3496
- /* harmony default export */ __webpack_exports__["a"] = ({
3497
- mounted: function mounted() {
3498
- if (true) return;
3499
- if (!this.$vnode) return;
3500
-
3501
- var _getMigratingConfig = this.getMigratingConfig(),
3502
- _getMigratingConfig$p = _getMigratingConfig.props,
3503
- props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
3504
- _getMigratingConfig$e = _getMigratingConfig.events,
3505
- events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
3506
-
3507
- var _$vnode = this.$vnode,
3508
- data = _$vnode.data,
3509
- componentOptions = _$vnode.componentOptions;
3510
-
3511
- var definedProps = data.attrs || {};
3512
- var definedEvents = componentOptions.listeners || {};
3513
-
3514
- for (var propName in definedProps) {
3515
- propName = Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "I"])(propName); // compatible with camel case
3516
- if (props[propName]) {
3517
- console.warn('[Eoss Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
3518
- }
3519
- }
3520
-
3521
- for (var eventName in definedEvents) {
3522
- eventName = Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "I"])(eventName); // compatible with camel case
3523
- if (events[eventName]) {
3524
- console.warn('[Eoss Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
3525
- }
3526
- }
3527
- },
3528
-
3529
- methods: {
3530
- getMigratingConfig: function getMigratingConfig() {
3531
- return {
3532
- props: {},
3533
- events: {}
3534
- };
3535
- }
3536
- }
3537
- });
3538
-
3539
- /***/ }),
3540
-
3541
- /***/ 4:
3542
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3543
-
3544
- "use strict";
3545
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
3546
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
3547
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
3548
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
3549
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
3550
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
3551
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
3552
- /* unused harmony export setStyle */
3553
- /* unused harmony export isScroll */
3554
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
3555
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
3556
- /* unused harmony export insertAfter */
3557
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
3558
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3559
- 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; };
3560
-
3561
- /* istanbul ignore next */
3562
-
3563
-
3564
-
3565
- var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
3566
- var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
3567
- var MOZ_HACK_REGEXP = /^moz([A-Z])/;
3568
- var ieVersion = isServer ? 0 : Number(document.documentMode);
3569
-
3570
- /* istanbul ignore next */
3571
- var trim = function trim(string) {
3572
- return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
3573
- };
3574
- /* istanbul ignore next */
3575
- var camelCase = function camelCase(name) {
3576
- return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
3577
- return offset ? letter.toUpperCase() : letter;
3578
- }).replace(MOZ_HACK_REGEXP, 'Moz$1');
3579
- };
3580
-
3581
- /* istanbul ignore next */
3582
- var on = function () {
3583
- if (!isServer && document.addEventListener) {
3584
- return function (element, event, handler) {
3585
- if (element && event && handler) {
3586
- element.addEventListener(event, handler, false);
3587
- }
3588
- };
3589
- } else {
3590
- return function (element, event, handler) {
3591
- if (element && event && handler) {
3592
- element.attachEvent('on' + event, handler);
3593
- }
3594
- };
3595
- }
3596
- }();
3597
-
3598
- /* istanbul ignore next */
3599
- var off = function () {
3600
- if (!isServer && document.removeEventListener) {
3601
- return function (element, event, handler) {
3602
- if (element && event) {
3603
- element.removeEventListener(event, handler, false);
3604
- }
3605
- };
3606
- } else {
3607
- return function (element, event, handler) {
3608
- if (element && event) {
3609
- element.detachEvent('on' + event, handler);
3610
- }
3611
- };
3612
- }
3613
- }();
3614
-
3615
- /* istanbul ignore next */
3616
- var once = function once(el, event, fn) {
3617
- var listener = function listener() {
3618
- if (fn) {
3619
- fn.apply(this, arguments);
3620
- }
3621
- off(el, event, listener);
3622
- };
3623
- on(el, event, listener);
3624
- };
3625
-
3626
- /* istanbul ignore next */
3627
- function hasClass(el, cls) {
3628
- if (!el || !cls) return false;
3629
- if (cls.indexOf(' ') !== -1) {
3630
- throw new Error('className should not contain space.');
3631
- }
3632
- if (el.classList) {
3633
- return el.classList.contains(cls);
3634
- } else {
3635
- return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
3636
- }
3637
- }
3638
-
3639
- /* istanbul ignore next */
3640
- function addClass(el, cls) {
3641
- if (!el) return;
3642
- var curClass = el.className;
3643
- var classes = (cls || '').split(' ');
3644
-
3645
- for (var i = 0, j = classes.length; i < j; i++) {
3646
- var clsName = classes[i];
3647
- if (!clsName) continue;
3648
-
3649
- if (el.classList) {
3650
- el.classList.add(clsName);
3651
- } else if (!hasClass(el, clsName)) {
3652
- curClass += ' ' + clsName;
3653
- }
3654
- }
3655
- if (!el.classList) {
3656
- el.className = curClass;
3657
- }
3658
- }
3659
-
3660
- /* istanbul ignore next */
3661
- function removeClass(el, cls) {
3662
- if (!el || !cls) return;
3663
- var classes = cls.split(' ');
3664
- var curClass = ' ' + el.className + ' ';
3665
-
3666
- for (var i = 0, j = classes.length; i < j; i++) {
3667
- var clsName = classes[i];
3668
- if (!clsName) continue;
3669
-
3670
- if (el.classList) {
3671
- el.classList.remove(clsName);
3672
- } else if (hasClass(el, clsName)) {
3673
- curClass = curClass.replace(' ' + clsName + ' ', ' ');
3674
- }
3675
- }
3676
- if (!el.classList) {
3677
- el.className = trim(curClass);
3678
- }
3679
- }
3680
-
3681
- /* istanbul ignore next */
3682
- var getStyle = ieVersion < 9 ? function (element, styleName) {
3683
- if (isServer) return;
3684
- if (!element || !styleName) return null;
3685
- styleName = camelCase(styleName);
3686
- if (styleName === 'float') {
3687
- styleName = 'styleFloat';
3688
- }
3689
- try {
3690
- switch (styleName) {
3691
- case 'opacity':
3692
- try {
3693
- return element.filters.item('alpha').opacity / 100;
3694
- } catch (e) {
3695
- return 1.0;
3696
- }
3697
- default:
3698
- return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
3699
- }
3700
- } catch (e) {
3701
- return element.style[styleName];
3702
- }
3703
- } : function (element, styleName) {
3704
- if (isServer) return;
3705
- if (!element || !styleName) return null;
3706
- styleName = camelCase(styleName);
3707
- if (styleName === 'float') {
3708
- styleName = 'cssFloat';
3709
- }
3710
- try {
3711
- var computed = document.defaultView.getComputedStyle(element, '');
3712
- return element.style[styleName] || computed ? computed[styleName] : null;
3713
- } catch (e) {
3714
- return element.style[styleName];
3715
- }
3716
- };
3717
-
3718
- /* istanbul ignore next */
3719
- function setStyle(element, styleName, value) {
3720
- if (!element || !styleName) return;
3721
-
3722
- if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
3723
- for (var prop in styleName) {
3724
- if (styleName.hasOwnProperty(prop)) {
3725
- setStyle(element, prop, styleName[prop]);
3726
- }
3727
- }
3728
- } else {
3729
- styleName = camelCase(styleName);
3730
- if (styleName === 'opacity' && ieVersion < 9) {
3731
- element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
3732
- } else {
3733
- element.style[styleName] = value;
3734
- }
3735
- }
3736
- }
3737
-
3738
- var isScroll = function isScroll(el, vertical) {
3739
- if (isServer) return;
3740
-
3741
- var determinedDirection = vertical !== null || vertical !== undefined;
3742
- var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
3743
-
3744
- return overflow.match(/(scroll|auto)/);
3745
- };
3746
-
3747
- var getScrollContainer = function getScrollContainer(el, vertical) {
3748
- if (isServer) return;
3749
-
3750
- var parent = el;
3751
- while (parent) {
3752
- if ([window, document, document.documentElement].includes(parent)) {
3753
- return window;
3754
- }
3755
- if (isScroll(parent, vertical)) {
3756
- return parent;
3757
- }
3758
- parent = parent.parentNode;
3759
- }
3760
-
3761
- return parent;
3762
- };
3763
-
3764
- var isInContainer = function isInContainer(el, container) {
3765
- if (isServer || !el || !container) return false;
3766
-
3767
- var elRect = el.getBoundingClientRect();
3768
- var containerRect = void 0;
3769
-
3770
- if ([window, document, document.documentElement, null, undefined].includes(container)) {
3771
- containerRect = {
3772
- top: 0,
3773
- right: window.innerWidth,
3774
- bottom: window.innerHeight,
3775
- left: 0
3776
- };
3777
- } else {
3778
- containerRect = container.getBoundingClientRect();
3779
- }
3780
-
3781
- return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
3782
- };
3783
-
3784
- /**
3785
- * 在元素前插入元素
3786
- * @param {HTMLElement} newEl 新DOM元素
3787
- * @param {HTMLElement} targetEl 在指定目标DOM元素前插入
3788
- */
3789
- function insertAfter(newEl, targetEl) {
3790
- var parentEl = targetEl.parentNode;
3791
- if (parentEl.lastChild === targetEl) {
3792
- parentEl.appendChild(newEl);
3793
- } else {
3794
- parentEl.insertBefore(newEl, targetEl.nextSibling);
3795
- }
3796
- }
3797
-
3798
- /***/ }),
3799
-
3800
- /***/ 5:
3801
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3802
-
3803
- "use strict";
3804
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
3805
- /* globals __VUE_SSR_CONTEXT__ */
3806
-
3807
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
3808
- // This module is a runtime utility for cleaner component module output and will
3809
- // be included in the final webpack user bundle.
3810
-
3811
- function normalizeComponent(
3812
- scriptExports,
3813
- render,
3814
- staticRenderFns,
3815
- functionalTemplate,
3816
- injectStyles,
3817
- scopeId,
3818
- moduleIdentifier /* server only */,
3819
- shadowMode /* vue-cli only */
3820
- ) {
3821
- // Vue.extend constructor export interop
3822
- var options =
3823
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
3824
-
3825
- // render functions
3826
- if (render) {
3827
- options.render = render
3828
- options.staticRenderFns = staticRenderFns
3829
- options._compiled = true
3830
- }
3831
-
3832
- // functional template
3833
- if (functionalTemplate) {
3834
- options.functional = true
3835
- }
3836
-
3837
- // scopedId
3838
- if (scopeId) {
3839
- options._scopeId = 'data-v-' + scopeId
3840
- }
3841
-
3842
- var hook
3843
- if (moduleIdentifier) {
3844
- // server build
3845
- hook = function (context) {
3846
- // 2.3 injection
3847
- context =
3848
- context || // cached call
3849
- (this.$vnode && this.$vnode.ssrContext) || // stateful
3850
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
3851
- // 2.2 with runInNewContext: true
3852
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
3853
- context = __VUE_SSR_CONTEXT__
3854
- }
3855
- // inject component styles
3856
- if (injectStyles) {
3857
- injectStyles.call(this, context)
3858
- }
3859
- // register component module identifier for async chunk inferrence
3860
- if (context && context._registeredComponents) {
3861
- context._registeredComponents.add(moduleIdentifier)
3862
- }
3863
- }
3864
- // used by ssr in case component is cached and beforeCreate
3865
- // never gets called
3866
- options._ssrRegister = hook
3867
- } else if (injectStyles) {
3868
- hook = shadowMode
3869
- ? function () {
3870
- injectStyles.call(
3871
- this,
3872
- (options.functional ? this.parent : this).$root.$options.shadowRoot
3873
- )
3874
- }
3875
- : injectStyles
3876
- }
3877
-
3878
- if (hook) {
3879
- if (options.functional) {
3880
- // for template-only hot-reload because in that case the render fn doesn't
3881
- // go through the normalizer
3882
- options._injectStyles = hook
3883
- // register for functional component in vue file
3884
- var originalRender = options.render
3885
- options.render = function renderWithStyleInjection(h, context) {
3886
- hook.call(context)
3887
- return originalRender(h, context)
3888
- }
3889
- } else {
3890
- // inject component registration as beforeCreate hook
3891
- var existing = options.beforeCreate
3892
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
3893
- }
3894
- }
3895
-
3896
- return {
3897
- exports: scriptExports,
3898
- options: options
3899
- }
3900
- }
3901
-
3902
-
3903
- /***/ }),
3904
-
3905
- /***/ 6:
3906
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3907
-
3908
3013
  "use strict";
3909
3014
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return fecha; });
3910
3015
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return getSettings; });
@@ -4797,109 +3902,1095 @@ const getHour = function (date) {
4797
3902
  };
4798
3903
 
4799
3904
  /**
4800
- * 获取分钟
4801
- * @date 2022年5月7日
4802
- * @param {Date|string} [date] - 日期对象或日期字符串
4803
- * @returns {number} 分钟数(0-59)
4804
- */
4805
- const getMinute = function (date) {
4806
- if (!date) {
4807
- return new Date().getMinutes();
4808
- }
4809
- if (typeof date === 'string') {
4810
- date = new Date(date);
4811
- }
4812
- return date.getMinutes();
4813
- };
4814
-
3905
+ * 获取分钟
3906
+ * @date 2022年5月7日
3907
+ * @param {Date|string} [date] - 日期对象或日期字符串
3908
+ * @returns {number} 分钟数(0-59)
3909
+ */
3910
+ const getMinute = function (date) {
3911
+ if (!date) {
3912
+ return new Date().getMinutes();
3913
+ }
3914
+ if (typeof date === 'string') {
3915
+ date = new Date(date);
3916
+ }
3917
+ return date.getMinutes();
3918
+ };
3919
+
3920
+ /**
3921
+ * 获取月份
3922
+ * @date 2022年5月7日
3923
+ * @param {Date|string} [date] - 日期对象或日期字符串
3924
+ * @returns {number} 月份数(1-12)
3925
+ */
3926
+ const getMonth = function (date) {
3927
+ if (!date) {
3928
+ return new Date().getMonth() + 1;
3929
+ }
3930
+ if (typeof date === 'string') {
3931
+ date = new Date(date);
3932
+ }
3933
+ return date.getMonth() + 1;
3934
+ };
3935
+
3936
+ /**
3937
+ * 获取秒
3938
+ * @date 2022年5月7日
3939
+ * @param {Date|string} [date] - 日期对象或日期字符串
3940
+ * @returns {number} 秒数(0-59)
3941
+ */
3942
+ const getSecond = function (date) {
3943
+ if (!date) {
3944
+ return new Date().getSeconds();
3945
+ }
3946
+ if (typeof date === 'string') {
3947
+ date = new Date(date);
3948
+ }
3949
+ return date.getSeconds();
3950
+ };
3951
+
3952
+ /**
3953
+ * 获取星期几
3954
+ * @date 2022年5月7日
3955
+ * @param {Date|string} [date] - 日期对象或日期字符串
3956
+ * @returns {number} 星期几(0-6,0表示星期日)
3957
+ */
3958
+ const getWeekday = function (date) {
3959
+ if (!date) {
3960
+ return new Date().getDay();
3961
+ }
3962
+ if (typeof date === 'string') {
3963
+ date = new Date(date);
3964
+ }
3965
+ return date.getDay();
3966
+ };
3967
+
3968
+
3969
+ /**
3970
+ * @desc 获取上午/下午/晚上
3971
+ * @author huangbo
3972
+ * @date 2022年5月7日
3973
+ * @param {String} [time] - 时间
3974
+ **/
3975
+ const timeCycle = function (time) {
3976
+ let hour = 0;
3977
+ if (!time) {
3978
+ hour = new Date().getHours();
3979
+ } else if (typeof time === 'string') {
3980
+ // 从时间字符串中提取小时
3981
+ const match = time.match(/^(\d{1,2})/);
3982
+ if (match) {
3983
+ hour = parseInt(match[1], 10);
3984
+ }
3985
+ } else if (typeof time === 'number') {
3986
+ hour = time;
3987
+ }
3988
+ // 判断时间段
3989
+ if (hour >= 5 && hour < 12) {
3990
+ return '上午';
3991
+ } else if (hour >= 12 && hour < 18) {
3992
+ return '下午';
3993
+ } else {
3994
+ return '晚上';
3995
+ }
3996
+ };
3997
+
3998
+ /***/ }),
3999
+
4000
+ /***/ 13:
4001
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4002
+
4003
+ "use strict";
4004
+ /* unused harmony export getHue */
4005
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getColor; });
4006
+ /* unused harmony export getLightness */
4007
+ /* unused harmony export getSaturation */
4008
+ /* unused harmony export rgbToHsv */
4009
+ /* unused harmony export hsvTorgb */
4010
+ /* unused harmony export mixColor */
4011
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getRgb; });
4012
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
4013
+
4014
+ var $hueStep = 2;
4015
+ var $saturationStep1 = 0.16;
4016
+ var $saturationStep2 = 0.05;
4017
+ var $brightnessStep1 = 0.05;
4018
+ var $brightnessStep2 = 0.15;
4019
+ var $lightColorCount = 5;
4020
+ var $darkColorCount = 4;
4021
+ /**
4022
+ * getHue
4023
+ * @desc:转换色相
4024
+ * @author huangbo
4025
+ * @date 2022年5月7日
4026
+ **/
4027
+ var getHue = function getHue($h, $i, $isLight) {
4028
+ var $hue = void 0;
4029
+ if ($h >= 60 && $h <= 240) {
4030
+ $hue = $isLight ? $h - $hueStep * $i : $h + $hueStep * $i;
4031
+ } else {
4032
+ $hue = $isLight ? $h + $hueStep * $i : $h - $hueStep * $i;
4033
+ }
4034
+ $hue = ($hue + 360) % 360;
4035
+ return Math.round($hue);
4036
+ };
4037
+
4038
+ /**
4039
+ * getColor
4040
+ * @desc:根据颜色和对应的色板位置,计算出对应的色板颜色
4041
+ * @author huangbo
4042
+ * @date 2022年5月7日
4043
+ **/
4044
+ var getColor = function getColor($color, $n) {
4045
+ var $isLight = $n < 7;
4046
+ var $hsv = rgbToHsv($color);
4047
+ // 这里将i转换成以主色为中心,两侧的i值逐渐增大
4048
+ var $i = $isLight ? $lightColorCount + 1 - $n : $n - $lightColorCount - 1;
4049
+ var color = hsvTorgb(getHue($hsv[0], $i, $isLight), getSaturation($hsv[1], $i, $isLight), getLightness($hsv[2], $i, $isLight));
4050
+ return color;
4051
+ };
4052
+
4053
+ /**
4054
+ * getLightness
4055
+ * @desc:转换明度
4056
+ * @author huangbo
4057
+ * @date 2022年5月7日
4058
+ * @return {string,array} 元素类名或者id
4059
+ **/
4060
+ var getLightness = function getLightness($v, $i, $isLight) {
4061
+ var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
4062
+ $value = $value < 1 ? $value : 1;
4063
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
4064
+ };
4065
+
4066
+ /**
4067
+ * getSaturation
4068
+ * @desc:转换饱和度
4069
+ * @author huangbo
4070
+ * @date 2022年5月7日
4071
+ **/
4072
+ var getSaturation = function getSaturation($s, $i, $isLight) {
4073
+ var $saturation = void 0;
4074
+ if ($isLight) {
4075
+ $saturation = $s - $saturationStep1 * $i;
4076
+ } else if ($i === $darkColorCount) {
4077
+ $saturation = $s + $saturationStep1;
4078
+ } else {
4079
+ $saturation = $s + $saturationStep2 * $i;
4080
+ }
4081
+ $saturation = $saturation < 1 ? $saturation : 1;
4082
+
4083
+ if ($isLight && $i === $lightColorCount && $saturation > 0.1) {
4084
+ $saturation = 0.1;
4085
+ }
4086
+ $saturation = $saturation > 0.06 ? $saturation : 0.06;
4087
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
4088
+ };
4089
+
4090
+ /**
4091
+ * rgbToHsv
4092
+ * @desc:rgb转化成hsv
4093
+ * @author huangbo
4094
+ * @date 2022年5月7日
4095
+ * @param {string} [$color] - 颜色值
4096
+ **/
4097
+ var rgbToHsv = function rgbToHsv($color) {
4098
+ var rgb = getRgb($color);
4099
+ var $red = rgb[0];
4100
+ var $green = rgb[1];
4101
+ var $blue = rgb[2];
4102
+ var $max = Math.max($red, $green, $blue);
4103
+ var $min = Math.min($red, $green, $blue);
4104
+ var $diff = $max - $min;
4105
+ var $h = 0;
4106
+ if ($max === $min) {
4107
+ $h = 0;
4108
+ } else if ($max === $red) {
4109
+ $h = 60 * ($green - $blue) / $diff + ($green > $blue - 1 ? 0 : 360);
4110
+ } else if ($max === $green) {
4111
+ $h = 60 * ($blue - $red) / $diff + 120;
4112
+ } else if ($max === $blue) {
4113
+ $h = 60 * ($red - $green) / $diff + 240;
4114
+ }
4115
+ var $s = $max === 0 ? 0 : $diff / $max;
4116
+ var $v = $max / 255;
4117
+ return [$h, $s, $v];
4118
+ };
4119
+
4120
+ /**
4121
+ * hsvTorgb
4122
+ * @desc:hsv转化成rgb
4123
+ * @author huangbo
4124
+ * @date 2022年5月7日
4125
+ * @param {string} [$color] - 颜色值
4126
+ **/
4127
+ var hsvTorgb = function hsvTorgb($h, $s, $v) {
4128
+ var $th = Math.floor($h / 60);
4129
+ var $t1 = $h / 60 - $th;
4130
+ var $t2 = $v * (1 - $s);
4131
+ var $t3 = $v * (1 - $t1 * $s);
4132
+ var $t4 = $v * (1 - (1 - $t1) * $s);
4133
+ var $r = [$v, $t3, $t2, $t2, $t4, $v][$th % 6];
4134
+ var $g = [$t4, $v, $v, $t3, $t2, $t2][$th % 6];
4135
+ var $b = [$t2, $t2, $t4, $v, $v, $t3][$th % 6];
4136
+ // return `rgb(${Math.round($r * 255)}, ${Math.round($g * 255)}, ${Math.round($b * 255)})`;
4137
+ var red = Math.round($r * 255);
4138
+ var green = Math.round($g * 255);
4139
+ var blue = Math.round($b * 255);
4140
+ red = red.toString(16);
4141
+ green = green.toString(16);
4142
+ blue = blue.toString(16);
4143
+ red = red.length === 1 ? '0' + red : red;
4144
+ green = green.length === 1 ? '0' + green : green;
4145
+ blue = blue.length === 1 ? '0' + blue : blue;
4146
+ return '#' + red + green + blue;
4147
+ };
4148
+
4149
+ /**
4150
+ * mixColor
4151
+ * @desc:生成混合色
4152
+ * @author huangbo
4153
+ * @date 2022年5月7日
4154
+ * @param {string} [$color1] - 颜色值
4155
+ * @param {string} [$color2] - 颜色值
4156
+ * @param {string} [$n] - 百分比 0~1
4157
+ **/
4158
+ var mixColor = function mixColor($color1, $color2, $n) {
4159
+ var rgb1 = getRgb($color1);
4160
+ var rgb2 = getRgb($color2);
4161
+ var r = rgb1[0] * $n + rgb2[0] * (1 - $n);
4162
+ var g = rgb1[1] * $n + rgb2[1] * (1 - $n);
4163
+ var b = rgb1[2] * $n + rgb2[2] * (1 - $n);
4164
+ return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
4165
+ };
4166
+
4167
+ /**
4168
+ * getRgb
4169
+ * @desc:获取颜色值的rgb值
4170
+ * @author huangbo
4171
+ * @date 2022年5月7日
4172
+ * @param {string} [$color] - 颜色值
4173
+ **/
4174
+ var getRgb = function getRgb($color) {
4175
+ var rgb = [];
4176
+ // 16进制颜色值的正则
4177
+ var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
4178
+ // 把颜色值变成小写
4179
+ $color = $color.toLowerCase();
4180
+ if (reg.test($color)) {
4181
+ // 如果只有三位的值,需变成六位,如:#fff => #ffffff
4182
+ if ($color.length === 4) {
4183
+ var colorNew = '#';
4184
+ for (var i = 1; i < 4; i++) {
4185
+ colorNew += $color.slice(i, i + 1).concat($color.slice(i, i + 1));
4186
+ }
4187
+ $color = colorNew;
4188
+ }
4189
+ // 处理六位的颜色值,转为RGB
4190
+ for (var _i = 1; _i < 7; _i += 2) {
4191
+ rgb.push(parseInt('0x' + $color.slice(_i, _i + 2), 16));
4192
+ }
4193
+ } else {
4194
+ rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
4195
+ }
4196
+ return rgb;
4197
+ };
4198
+
4199
+ /***/ }),
4200
+
4201
+ /***/ 145:
4202
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4203
+
4204
+ "use strict";
4205
+ __webpack_require__.r(__webpack_exports__);
4206
+ /* harmony import */ var _src_rate_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73);
4207
+
4208
+
4209
+ _src_rate_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].install = function (Vue) {
4210
+ Vue.component(_src_rate_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].name, _src_rate_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
4211
+ };
4212
+
4213
+ /* harmony default export */ __webpack_exports__["default"] = (_src_rate_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]);
4214
+
4215
+ /***/ }),
4216
+
4217
+ /***/ 19:
4218
+ /***/ (function(module, exports) {
4219
+
4220
+ module.exports = require("eoss/lib/loading");
4221
+
4222
+ /***/ }),
4223
+
4224
+ /***/ 2:
4225
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4226
+
4227
+ "use strict";
4228
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return setStorage; });
4229
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStorage; });
4230
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeStorage; });
4231
+ /* unused harmony export setCookie */
4232
+ /* unused harmony export getCookie */
4233
+ 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; };
4234
+
4235
+ /**
4236
+ * setStorage
4237
+ * @desc:设置本地储存数据
4238
+ * @author huangbo
4239
+ * @date 2022年5月7日
4240
+ * @param {String|Object} [key] - 数据的名称或包含type、key、value的对象
4241
+ * @param {String} [value] - 数据的值(当第一个参数为字符串时使用)
4242
+ **/
4243
+ var setStorage = function setStorage(key, value) {
4244
+ // 解析参数,支持两种调用方式:setStorage(key, value) 和 setStorage({type, key, value})
4245
+ var type = void 0,
4246
+ finalKey = void 0,
4247
+ finalValue = void 0;
4248
+
4249
+ if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object' && key !== null) {
4250
+ // 对象调用方式:setStorage({type, key, value})
4251
+ type = key.type;
4252
+ finalKey = key.key;
4253
+ finalValue = key.value;
4254
+ } else {
4255
+ // 字符串调用方式:setStorage(key, value)
4256
+ type = getStorage('storageType');
4257
+ finalKey = key;
4258
+ finalValue = value;
4259
+ }
4260
+
4261
+ // 使用默认存储类型如果未指定
4262
+ type = type || getStorage('storageType');
4263
+
4264
+ // 获取存储对象
4265
+ var storage = type === 'localStorage' ? localStorage : sessionStorage;
4266
+
4267
+ // 处理不同类型的key
4268
+ if (typeof finalKey === 'string') {
4269
+ // 单个字符串key
4270
+ var storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
4271
+ storage.setItem(finalKey, storedValue);
4272
+ if (finalKey === 'token') {
4273
+ setCookie('token', storedValue);
4274
+ }
4275
+ } else if (Array.isArray(finalKey)) {
4276
+ // 数组key,为多个key设置同一个value
4277
+ var _storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
4278
+ for (var i = 0; i < finalKey.length; i++) {
4279
+ storage.setItem(finalKey[i], _storedValue);
4280
+ if (finalKey[i] === 'token') {
4281
+ setCookie('token', _storedValue);
4282
+ }
4283
+ }
4284
+ } else if ((typeof finalKey === 'undefined' ? 'undefined' : _typeof(finalKey)) === 'object' && finalKey !== null) {
4285
+ // 对象key,对象的属性名称作为key,属性值作为value
4286
+ for (var k in finalKey) {
4287
+ if (Object.prototype.hasOwnProperty.call(finalKey, k)) {
4288
+ var _storedValue2 = _typeof(finalKey[k]) === 'object' ? JSON.stringify(finalKey[k]) : finalKey[k];
4289
+ storage.setItem(k, _storedValue2);
4290
+ if (k === 'token') {
4291
+ setCookie('token', _storedValue2);
4292
+ }
4293
+ }
4294
+ }
4295
+ }
4296
+ };
4297
+
4298
+ /**
4299
+ * getStorage
4300
+ * @desc:获取本地储存数据
4301
+ * @author huangbo
4302
+ * @date 2022年5月7日
4303
+ * @param {String} [key] - 获取的名称
4304
+ **/
4305
+ var getStorage = function getStorage(key) {
4306
+ if (key) {
4307
+ var res = sessionStorage.getItem(key) || localStorage.getItem(key);
4308
+ if (!res && key === 'token') {
4309
+ res = getCookie('token');
4310
+ }
4311
+ if (key === 'host' && !res) {
4312
+ res = '';
4313
+ }
4314
+ return res;
4315
+ }
4316
+ var defaults = {};
4317
+ var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token');
4318
+ var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId');
4319
+
4320
+ var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique');
4321
+ if (token) {
4322
+ defaults.Authorization = token;
4323
+ }
4324
+ if (ssId) {
4325
+ defaults.ssId = ssId;
4326
+ }
4327
+ if (deviceUnique) {
4328
+ defaults.deviceUnique = deviceUnique;
4329
+ }
4330
+ return defaults;
4331
+ };
4332
+
4333
+ /**
4334
+ * removeStorage
4335
+ * @desc:删除本地储存数据
4336
+ * @author huangbo
4337
+ * @date 2022年5月7日
4338
+ * @param {String, Array} [key] - 获取的名称
4339
+ **/
4340
+ var removeStorage = function removeStorage(key) {
4341
+ if (Array.isArray(key)) {
4342
+ for (var i = 0; i < key.length; i++) {
4343
+ sessionStorage.removeItem(key[i]);
4344
+ localStorage.removeItem(key[i]);
4345
+ if (key[i] === 'token') {
4346
+ removeCookie('token');
4347
+ }
4348
+ }
4349
+ } else if (key) {
4350
+ sessionStorage.removeItem(key);
4351
+ localStorage.removeItem(key);
4352
+ if (key === 'token') {
4353
+ removeCookie('token');
4354
+ }
4355
+ } else {
4356
+ sessionStorage.clear();
4357
+ localStorage.clear();
4358
+ removeCookie('token');
4359
+ }
4360
+ };
4361
+
4362
+ /**
4363
+ * setCookie
4364
+ * @desc 设置cookie
4365
+ * @author huangbo
4366
+ * @param {string} [name] cookie名称
4367
+ * @param {string} [value] cookie值
4368
+ * @param {boolean} [isSession] 是否是会话cookie
4369
+ **/
4370
+ var setCookie = function setCookie(name, value) {
4371
+ var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
4372
+ var time = arguments[3];
4373
+
4374
+ try {
4375
+ var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
4376
+ ];
4377
+ // 会话/持久Cookie设置
4378
+ if (!isSession) {
4379
+ if (/MSIE|Trident/.test(navigator.userAgent)) {
4380
+ // IE使用expires
4381
+ var date = new Date();
4382
+ date.setTime(date.getTime() + (time || 7 * 24 * 60 * 60 * 1000));
4383
+ cookieParts.push('expires=' + date.toUTCString());
4384
+ } else {
4385
+ // 其他浏览器使用max-age
4386
+ cookieParts.push('max-age=' + (time || 7 * 24 * 60 * 60));
4387
+ }
4388
+ }
4389
+ // 内核兼容处理
4390
+ if (/MSIE|Trident/.test(navigator.userAgent)) {
4391
+ // IE特殊处理:添加P3P协议头
4392
+ cookieParts.push('P3P=CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
4393
+ } else {
4394
+ // 现代浏览器设置
4395
+ cookieParts.push('samesite=lax');
4396
+ if (window.location.protocol === 'https:') {
4397
+ cookieParts.push('secure');
4398
+ }
4399
+ }
4400
+
4401
+ // 设置Cookie
4402
+ document.cookie = cookieParts.join('; ');
4403
+ return true;
4404
+ } catch (e) {
4405
+ console.error('Cookie设置失败:', e);
4406
+ return false;
4407
+ }
4408
+ };
4409
+
4410
+ /**
4411
+ * getCookie
4412
+ * @desc 获取cookie中指定名称的值
4413
+ * @author huangbo
4414
+ * @param {string} [name] cookie名称
4415
+ **/
4416
+ var getCookie = function getCookie(name) {
4417
+ var cookies = document.cookie.split(';');
4418
+ for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
4419
+ var _ref;
4420
+
4421
+ if (_isArray) {
4422
+ if (_i >= _iterator.length) break;
4423
+ _ref = _iterator[_i++];
4424
+ } else {
4425
+ _i = _iterator.next();
4426
+ if (_i.done) break;
4427
+ _ref = _i.value;
4428
+ }
4429
+
4430
+ var cookie = _ref;
4431
+
4432
+ var _cookie$trim$split = cookie.trim().split('='),
4433
+ cookieName = _cookie$trim$split[0],
4434
+ cookieValue = _cookie$trim$split[1];
4435
+
4436
+ if (decodeURIComponent(cookieName) === name) {
4437
+ return decodeURIComponent(cookieValue);
4438
+ }
4439
+ }
4440
+ return null;
4441
+ };
4442
+
4443
+ /**
4444
+ * removeCookie
4445
+ * @desc:删除cookie
4446
+ * @author huangbo
4447
+ * @date 2022年5月7日
4448
+ * @param {String, Array} [key] - 获取的名称
4449
+ **/
4450
+ var removeCookie = function removeCookie(key) {
4451
+ if (Array.isArray(key)) {
4452
+ for (var i = 0; i < key.length; i++) {
4453
+ document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
4454
+ }
4455
+ } else {
4456
+ document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
4457
+ }
4458
+ };
4459
+
4460
+ /***/ }),
4461
+
4462
+ /***/ 20:
4463
+ /***/ (function(module, exports) {
4464
+
4465
+ module.exports = require("lodash/get");
4466
+
4467
+ /***/ }),
4468
+
4469
+ /***/ 21:
4470
+ /***/ (function(module, exports) {
4471
+
4472
+ module.exports = require("lodash/set");
4473
+
4474
+ /***/ }),
4475
+
4476
+ /***/ 22:
4477
+ /***/ (function(module, exports) {
4478
+
4479
+ module.exports = require("lodash/cloneDeep");
4480
+
4481
+ /***/ }),
4482
+
4483
+ /***/ 27:
4484
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4485
+
4486
+ "use strict";
4487
+ /* harmony import */ var eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
4488
+
4489
+ /**
4490
+ * Show migrating guide in browser console.
4491
+ *
4492
+ * Usage:
4493
+ * import Migrating from 'eoss/src/mixins/migrating';
4494
+ *
4495
+ * mixins: [Migrating]
4496
+ *
4497
+ * add getMigratingConfig method for your component.
4498
+ * getMigratingConfig() {
4499
+ * return {
4500
+ * props: {
4501
+ * 'allow-no-selection': 'allow-no-selection is removed.',
4502
+ * 'selection-mode': 'selection-mode is removed.'
4503
+ * },
4504
+ * events: {
4505
+ * selectionchange: 'selectionchange is renamed to selection-change.'
4506
+ * }
4507
+ * };
4508
+ * },
4509
+ */
4510
+ /* harmony default export */ __webpack_exports__["a"] = ({
4511
+ mounted: function mounted() {
4512
+ if (true) return;
4513
+ if (!this.$vnode) return;
4514
+
4515
+ var _getMigratingConfig = this.getMigratingConfig(),
4516
+ _getMigratingConfig$p = _getMigratingConfig.props,
4517
+ props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
4518
+ _getMigratingConfig$e = _getMigratingConfig.events,
4519
+ events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
4520
+
4521
+ var _$vnode = this.$vnode,
4522
+ data = _$vnode.data,
4523
+ componentOptions = _$vnode.componentOptions;
4524
+
4525
+ var definedProps = data.attrs || {};
4526
+ var definedEvents = componentOptions.listeners || {};
4527
+
4528
+ for (var propName in definedProps) {
4529
+ propName = Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "I"])(propName); // compatible with camel case
4530
+ if (props[propName]) {
4531
+ console.warn('[Eoss Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
4532
+ }
4533
+ }
4534
+
4535
+ for (var eventName in definedEvents) {
4536
+ eventName = Object(eoss_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "I"])(eventName); // compatible with camel case
4537
+ if (events[eventName]) {
4538
+ console.warn('[Eoss Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
4539
+ }
4540
+ }
4541
+ },
4542
+
4543
+ methods: {
4544
+ getMigratingConfig: function getMigratingConfig() {
4545
+ return {
4546
+ props: {},
4547
+ events: {}
4548
+ };
4549
+ }
4550
+ }
4551
+ });
4552
+
4553
+ /***/ }),
4554
+
4555
+ /***/ 3:
4556
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4557
+
4558
+ "use strict";
4559
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
4560
+ /* globals __VUE_SSR_CONTEXT__ */
4561
+
4562
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
4563
+ // This module is a runtime utility for cleaner component module output and will
4564
+ // be included in the final webpack user bundle.
4565
+
4566
+ function normalizeComponent(
4567
+ scriptExports,
4568
+ render,
4569
+ staticRenderFns,
4570
+ functionalTemplate,
4571
+ injectStyles,
4572
+ scopeId,
4573
+ moduleIdentifier /* server only */,
4574
+ shadowMode /* vue-cli only */
4575
+ ) {
4576
+ // Vue.extend constructor export interop
4577
+ var options =
4578
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
4579
+
4580
+ // render functions
4581
+ if (render) {
4582
+ options.render = render
4583
+ options.staticRenderFns = staticRenderFns
4584
+ options._compiled = true
4585
+ }
4586
+
4587
+ // functional template
4588
+ if (functionalTemplate) {
4589
+ options.functional = true
4590
+ }
4591
+
4592
+ // scopedId
4593
+ if (scopeId) {
4594
+ options._scopeId = 'data-v-' + scopeId
4595
+ }
4596
+
4597
+ var hook
4598
+ if (moduleIdentifier) {
4599
+ // server build
4600
+ hook = function (context) {
4601
+ // 2.3 injection
4602
+ context =
4603
+ context || // cached call
4604
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
4605
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
4606
+ // 2.2 with runInNewContext: true
4607
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
4608
+ context = __VUE_SSR_CONTEXT__
4609
+ }
4610
+ // inject component styles
4611
+ if (injectStyles) {
4612
+ injectStyles.call(this, context)
4613
+ }
4614
+ // register component module identifier for async chunk inferrence
4615
+ if (context && context._registeredComponents) {
4616
+ context._registeredComponents.add(moduleIdentifier)
4617
+ }
4618
+ }
4619
+ // used by ssr in case component is cached and beforeCreate
4620
+ // never gets called
4621
+ options._ssrRegister = hook
4622
+ } else if (injectStyles) {
4623
+ hook = shadowMode
4624
+ ? function () {
4625
+ injectStyles.call(
4626
+ this,
4627
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
4628
+ )
4629
+ }
4630
+ : injectStyles
4631
+ }
4632
+
4633
+ if (hook) {
4634
+ if (options.functional) {
4635
+ // for template-only hot-reload because in that case the render fn doesn't
4636
+ // go through the normalizer
4637
+ options._injectStyles = hook
4638
+ // register for functional component in vue file
4639
+ var originalRender = options.render
4640
+ options.render = function renderWithStyleInjection(h, context) {
4641
+ hook.call(context)
4642
+ return originalRender(h, context)
4643
+ }
4644
+ } else {
4645
+ // inject component registration as beforeCreate hook
4646
+ var existing = options.beforeCreate
4647
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
4648
+ }
4649
+ }
4650
+
4651
+ return {
4652
+ exports: scriptExports,
4653
+ options: options
4654
+ }
4655
+ }
4656
+
4657
+
4658
+ /***/ }),
4659
+
4660
+ /***/ 4:
4661
+ /***/ (function(module, exports) {
4662
+
4663
+ module.exports = require("vue");
4664
+
4665
+ /***/ }),
4666
+
4667
+ /***/ 5:
4668
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4669
+
4670
+ "use strict";
4671
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
4672
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
4673
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
4674
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
4675
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
4676
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
4677
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
4678
+ /* unused harmony export setStyle */
4679
+ /* unused harmony export isScroll */
4680
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
4681
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
4682
+ /* unused harmony export insertAfter */
4683
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
4684
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
4685
+ 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; };
4686
+
4687
+ /* istanbul ignore next */
4688
+
4689
+
4690
+
4691
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
4692
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
4693
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
4694
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
4695
+
4696
+ /* istanbul ignore next */
4697
+ var trim = function trim(string) {
4698
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
4699
+ };
4700
+ /* istanbul ignore next */
4701
+ var camelCase = function camelCase(name) {
4702
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
4703
+ return offset ? letter.toUpperCase() : letter;
4704
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
4705
+ };
4706
+
4707
+ /* istanbul ignore next */
4708
+ var on = function () {
4709
+ if (!isServer && document.addEventListener) {
4710
+ return function (element, event, handler) {
4711
+ if (element && event && handler) {
4712
+ element.addEventListener(event, handler, false);
4713
+ }
4714
+ };
4715
+ } else {
4716
+ return function (element, event, handler) {
4717
+ if (element && event && handler) {
4718
+ element.attachEvent('on' + event, handler);
4719
+ }
4720
+ };
4721
+ }
4722
+ }();
4723
+
4724
+ /* istanbul ignore next */
4725
+ var off = function () {
4726
+ if (!isServer && document.removeEventListener) {
4727
+ return function (element, event, handler) {
4728
+ if (element && event) {
4729
+ element.removeEventListener(event, handler, false);
4730
+ }
4731
+ };
4732
+ } else {
4733
+ return function (element, event, handler) {
4734
+ if (element && event) {
4735
+ element.detachEvent('on' + event, handler);
4736
+ }
4737
+ };
4738
+ }
4739
+ }();
4740
+
4741
+ /* istanbul ignore next */
4742
+ var once = function once(el, event, fn) {
4743
+ var listener = function listener() {
4744
+ if (fn) {
4745
+ fn.apply(this, arguments);
4746
+ }
4747
+ off(el, event, listener);
4748
+ };
4749
+ on(el, event, listener);
4750
+ };
4751
+
4752
+ /* istanbul ignore next */
4753
+ function hasClass(el, cls) {
4754
+ if (!el || !cls) return false;
4755
+ if (cls.indexOf(' ') !== -1) {
4756
+ throw new Error('className should not contain space.');
4757
+ }
4758
+ if (el.classList) {
4759
+ return el.classList.contains(cls);
4760
+ } else {
4761
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
4762
+ }
4763
+ }
4764
+
4765
+ /* istanbul ignore next */
4766
+ function addClass(el, cls) {
4767
+ if (!el) return;
4768
+ var curClass = el.className;
4769
+ var classes = (cls || '').split(' ');
4770
+
4771
+ for (var i = 0, j = classes.length; i < j; i++) {
4772
+ var clsName = classes[i];
4773
+ if (!clsName) continue;
4774
+
4775
+ if (el.classList) {
4776
+ el.classList.add(clsName);
4777
+ } else if (!hasClass(el, clsName)) {
4778
+ curClass += ' ' + clsName;
4779
+ }
4780
+ }
4781
+ if (!el.classList) {
4782
+ el.className = curClass;
4783
+ }
4784
+ }
4785
+
4786
+ /* istanbul ignore next */
4787
+ function removeClass(el, cls) {
4788
+ if (!el || !cls) return;
4789
+ var classes = cls.split(' ');
4790
+ var curClass = ' ' + el.className + ' ';
4791
+
4792
+ for (var i = 0, j = classes.length; i < j; i++) {
4793
+ var clsName = classes[i];
4794
+ if (!clsName) continue;
4795
+
4796
+ if (el.classList) {
4797
+ el.classList.remove(clsName);
4798
+ } else if (hasClass(el, clsName)) {
4799
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
4800
+ }
4801
+ }
4802
+ if (!el.classList) {
4803
+ el.className = trim(curClass);
4804
+ }
4805
+ }
4806
+
4807
+ /* istanbul ignore next */
4808
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
4809
+ if (isServer) return;
4810
+ if (!element || !styleName) return null;
4811
+ styleName = camelCase(styleName);
4812
+ if (styleName === 'float') {
4813
+ styleName = 'styleFloat';
4814
+ }
4815
+ try {
4816
+ switch (styleName) {
4817
+ case 'opacity':
4818
+ try {
4819
+ return element.filters.item('alpha').opacity / 100;
4820
+ } catch (e) {
4821
+ return 1.0;
4822
+ }
4823
+ default:
4824
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
4825
+ }
4826
+ } catch (e) {
4827
+ return element.style[styleName];
4828
+ }
4829
+ } : function (element, styleName) {
4830
+ if (isServer) return;
4831
+ if (!element || !styleName) return null;
4832
+ styleName = camelCase(styleName);
4833
+ if (styleName === 'float') {
4834
+ styleName = 'cssFloat';
4835
+ }
4836
+ try {
4837
+ var computed = document.defaultView.getComputedStyle(element, '');
4838
+ return element.style[styleName] || computed ? computed[styleName] : null;
4839
+ } catch (e) {
4840
+ return element.style[styleName];
4841
+ }
4842
+ };
4843
+
4844
+ /* istanbul ignore next */
4845
+ function setStyle(element, styleName, value) {
4846
+ if (!element || !styleName) return;
4847
+
4848
+ if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
4849
+ for (var prop in styleName) {
4850
+ if (styleName.hasOwnProperty(prop)) {
4851
+ setStyle(element, prop, styleName[prop]);
4852
+ }
4853
+ }
4854
+ } else {
4855
+ styleName = camelCase(styleName);
4856
+ if (styleName === 'opacity' && ieVersion < 9) {
4857
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
4858
+ } else {
4859
+ element.style[styleName] = value;
4860
+ }
4861
+ }
4862
+ }
4863
+
4864
+ var isScroll = function isScroll(el, vertical) {
4865
+ if (isServer) return;
4866
+
4867
+ var determinedDirection = vertical !== null || vertical !== undefined;
4868
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
4869
+
4870
+ return overflow.match(/(scroll|auto)/);
4871
+ };
4872
+
4873
+ var getScrollContainer = function getScrollContainer(el, vertical) {
4874
+ if (isServer) return;
4875
+
4876
+ var parent = el;
4877
+ while (parent) {
4878
+ if ([window, document, document.documentElement].includes(parent)) {
4879
+ return window;
4880
+ }
4881
+ if (isScroll(parent, vertical)) {
4882
+ return parent;
4883
+ }
4884
+ parent = parent.parentNode;
4885
+ }
4886
+
4887
+ return parent;
4888
+ };
4889
+
4890
+ var isInContainer = function isInContainer(el, container) {
4891
+ if (isServer || !el || !container) return false;
4892
+
4893
+ var elRect = el.getBoundingClientRect();
4894
+ var containerRect = void 0;
4895
+
4896
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
4897
+ containerRect = {
4898
+ top: 0,
4899
+ right: window.innerWidth,
4900
+ bottom: window.innerHeight,
4901
+ left: 0
4902
+ };
4903
+ } else {
4904
+ containerRect = container.getBoundingClientRect();
4905
+ }
4906
+
4907
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
4908
+ };
4909
+
4815
4910
  /**
4816
- * 获取月份
4817
- * @date 2022年5月7日
4818
- * @param {Date|string} [date] - 日期对象或日期字符串
4819
- * @returns {number} 月份数(1-12)
4820
- */
4821
- const getMonth = function (date) {
4822
- if (!date) {
4823
- return new Date().getMonth() + 1;
4824
- }
4825
- if (typeof date === 'string') {
4826
- date = new Date(date);
4827
- }
4828
- return date.getMonth() + 1;
4829
- };
4830
-
4911
+ * 在元素前插入元素
4912
+ * @param {HTMLElement} newEl 新DOM元素
4913
+ * @param {HTMLElement} targetEl 在指定目标DOM元素前插入
4914
+ */
4915
+ function insertAfter(newEl, targetEl) {
4916
+ var parentEl = targetEl.parentNode;
4917
+ if (parentEl.lastChild === targetEl) {
4918
+ parentEl.appendChild(newEl);
4919
+ } else {
4920
+ parentEl.insertBefore(newEl, targetEl.nextSibling);
4921
+ }
4922
+ }
4923
+
4924
+ /***/ }),
4925
+
4926
+ /***/ 6:
4927
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4928
+
4929
+ "use strict";
4930
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
4931
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
4932
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
4933
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
4934
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
4935
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
4831
4936
  /**
4832
- * 获取秒
4833
- * @date 2022年5月7日
4834
- * @param {Date|string} [date] - 日期对象或日期字符串
4835
- * @returns {number} 秒数(0-59)
4836
- */
4837
- const getSecond = function (date) {
4838
- if (!date) {
4839
- return new Date().getSeconds();
4840
- }
4841
- if (typeof date === 'string') {
4842
- date = new Date(date);
4843
- }
4844
- return date.getSeconds();
4845
- };
4846
-
4937
+ * 检查一个值是否为字符串类型
4938
+ * @param {*} obj 要检查的值
4939
+ * @returns {boolean} 如果值为字符串则返回true,否则返回false
4940
+ */
4941
+ function isString(obj) {
4942
+ return Object.prototype.toString.call(obj) === '[object String]';
4943
+ }
4944
+
4847
4945
  /**
4848
- * 获取星期几
4849
- * @date 2022年5月7日
4850
- * @param {Date|string} [date] - 日期对象或日期字符串
4851
- * @returns {number} 星期几(0-6,0表示星期日)
4852
- */
4853
- const getWeekday = function (date) {
4854
- if (!date) {
4855
- return new Date().getDay();
4856
- }
4857
- if (typeof date === 'string') {
4858
- date = new Date(date);
4859
- }
4860
- return date.getDay();
4861
- };
4862
-
4863
-
4946
+ * 检查一个值是否为对象类型
4947
+ * @param {*} obj 要检查的值
4948
+ * @returns {boolean} 如果值为对象则返回true,否则返回false
4949
+ */
4950
+ function isObject(obj) {
4951
+ return Object.prototype.toString.call(obj) === '[object Object]';
4952
+ }
4953
+
4864
4954
  /**
4865
- * @desc 获取上午/下午/晚上
4866
- * @author huangbo
4867
- * @date 2022年5月7日
4868
- * @param {String} [time] - 时间
4869
- **/
4870
- const timeCycle = function (time) {
4871
- let hour = 0;
4872
- if (!time) {
4873
- hour = new Date().getHours();
4874
- } else if (typeof time === 'string') {
4875
- // 从时间字符串中提取小时
4876
- const match = time.match(/^(\d{1,2})/);
4877
- if (match) {
4878
- hour = parseInt(match[1], 10);
4879
- }
4880
- } else if (typeof time === 'number') {
4881
- hour = time;
4882
- }
4883
- // 判断时间段
4884
- if (hour >= 5 && hour < 12) {
4885
- return '上午';
4886
- } else if (hour >= 12 && hour < 18) {
4887
- return '下午';
4888
- } else {
4889
- return '晚上';
4890
- }
4891
- };
4955
+ * 检查一个节点是否为HTML元素
4956
+ * @param {Node} node 要检查的节点
4957
+ * @returns {boolean} 如果节点为HTML元素则返回true,否则返回false
4958
+ */
4959
+ function isHtmlElement(node) {
4960
+ return node && node.nodeType === Node.ELEMENT_NODE;
4961
+ }
4892
4962
 
4893
- /***/ }),
4963
+ /**
4964
+ * 检查一个值是否为函数类型
4965
+ * @param {*} functionToCheck 要检查的值
4966
+ * @returns {boolean} 如果值为函数则返回true,否则返回false
4967
+ */
4968
+ function isFunction(functionToCheck) {
4969
+ var getType = {};
4970
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
4971
+ }
4894
4972
 
4895
- /***/ 8:
4896
- /***/ (function(module, exports) {
4973
+ /**
4974
+ * 检查一个值是否为undefined
4975
+ * @param {*} val 要检查的值
4976
+ * @returns {boolean} 如果值为undefined则返回true,否则返回false
4977
+ */
4978
+ function isUndefined(val) {
4979
+ return val === void 0;
4980
+ }
4897
4981
 
4898
- module.exports = require("eoss/lib/message-box");
4982
+ /**
4983
+ * 检查一个值是否已定义(不是undefined或null)
4984
+ * @param {*} val 要检查的值
4985
+ * @returns {boolean} 如果值已定义则返回true,否则返回false
4986
+ */
4987
+ function isDefined(val) {
4988
+ return val !== undefined && val !== null;
4989
+ }
4899
4990
 
4900
4991
  /***/ }),
4901
4992
 
4902
- /***/ 84:
4993
+ /***/ 73:
4903
4994
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4904
4995
 
4905
4996
  "use strict";
@@ -4983,13 +5074,13 @@ render._withStripped = true
4983
5074
  // CONCATENATED MODULE: ./packages/rate/src/rate.vue?vue&type=template&id=045e5c7c&
4984
5075
 
4985
5076
  // EXTERNAL MODULE: ./src/utils/dom.js
4986
- var dom = __webpack_require__(4);
5077
+ var dom = __webpack_require__(5);
4987
5078
 
4988
5079
  // EXTERNAL MODULE: ./src/utils/types.js
4989
- var types = __webpack_require__(3);
5080
+ var types = __webpack_require__(6);
4990
5081
 
4991
5082
  // EXTERNAL MODULE: ./src/mixins/migrating.js
4992
- var migrating = __webpack_require__(32);
5083
+ var migrating = __webpack_require__(27);
4993
5084
 
4994
5085
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/rate.vue?vue&type=script&lang=js&
4995
5086
  //
@@ -5498,7 +5589,7 @@ var migrating = __webpack_require__(32);
5498
5589
  // CONCATENATED MODULE: ./packages/rate/src/rate.vue?vue&type=script&lang=js&
5499
5590
  /* harmony default export */ var src_ratevue_type_script_lang_js_ = (ratevue_type_script_lang_js_);
5500
5591
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
5501
- var componentNormalizer = __webpack_require__(5);
5592
+ var componentNormalizer = __webpack_require__(3);
5502
5593
 
5503
5594
  // CONCATENATED MODULE: ./packages/rate/src/rate.vue
5504
5595
 
@@ -5521,6 +5612,13 @@ var component = Object(componentNormalizer["a" /* default */])(
5521
5612
 
5522
5613
  /* harmony default export */ var rate = __webpack_exports__["a"] = (component.exports);
5523
5614
 
5615
+ /***/ }),
5616
+
5617
+ /***/ 8:
5618
+ /***/ (function(module, exports) {
5619
+
5620
+ module.exports = require("eoss/lib/message-box");
5621
+
5524
5622
  /***/ })
5525
5623
 
5526
5624
  /******/ });