cnhis-design-vue 2.1.122 → 2.1.125

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 (110) hide show
  1. package/CHANGELOG.md +33 -11
  2. package/es/affix/index.js +8 -8
  3. package/es/age/index.js +10 -10
  4. package/es/alert/index.js +8 -8
  5. package/es/anchor/index.js +8 -8
  6. package/es/auto-complete/index.js +8 -8
  7. package/es/avatar/index.js +8 -8
  8. package/es/back-top/index.js +8 -8
  9. package/es/badge/index.js +8 -8
  10. package/es/base/index.js +8 -8
  11. package/es/big-table/index.js +1629 -338
  12. package/es/big-table/style.css +1 -1
  13. package/es/breadcrumb/index.js +8 -8
  14. package/es/button/index.js +22 -22
  15. package/es/calendar/index.js +8 -8
  16. package/es/captcha/index.js +3 -3
  17. package/es/card/index.js +8 -8
  18. package/es/card-reader-sdk/index.js +1 -1
  19. package/es/carousel/index.js +8 -8
  20. package/es/cascader/index.js +8 -8
  21. package/es/checkbox/index.js +9 -9
  22. package/es/col/index.js +8 -8
  23. package/es/collapse/index.js +8 -8
  24. package/es/color-picker/index.js +1 -1
  25. package/es/comment/index.js +8 -8
  26. package/es/config-provider/index.js +8 -8
  27. package/es/date-picker/index.js +8 -8
  28. package/es/descriptions/index.js +8 -8
  29. package/es/direct/index.js +16 -16
  30. package/es/divider/index.js +8 -8
  31. package/es/drag-layout/index.js +3 -3
  32. package/es/drawer/index.js +8 -8
  33. package/es/dropdown/index.js +8 -8
  34. package/es/editor/index.js +1 -1
  35. package/es/ellipsis/index.js +1 -1
  36. package/es/empty/index.js +8 -8
  37. package/es/fabric-chart/index.js +81 -50
  38. package/es/form/index.js +8 -8
  39. package/es/form-model/index.js +8 -8
  40. package/es/form-table/index.js +698 -697
  41. package/es/full-calendar/index.js +4 -4
  42. package/es/grid/index.js +0 -1
  43. package/es/index/index.js +1238 -959
  44. package/es/index/style.css +1 -1
  45. package/es/input/index.js +9 -9
  46. package/es/input-number/index.js +8 -8
  47. package/es/layout/index.js +8 -8
  48. package/es/list/index.js +8 -8
  49. package/es/locale-provider/index.js +8 -8
  50. package/es/map/index.js +9 -9
  51. package/es/mentions/index.js +8 -8
  52. package/es/menu/index.js +8 -8
  53. package/es/message/index.js +8 -8
  54. package/es/multi-chat/index.js +76 -76
  55. package/es/multi-chat-client/index.js +70 -70
  56. package/es/multi-chat-history/index.js +4 -4
  57. package/es/multi-chat-record/index.js +14 -14
  58. package/es/multi-chat-setting/index.js +22 -22
  59. package/es/multi-chat-sip/index.js +1 -1
  60. package/es/notification/index.js +8 -8
  61. package/es/page-header/index.js +8 -8
  62. package/es/pagination/index.js +8 -8
  63. package/es/popconfirm/index.js +8 -8
  64. package/es/popover/index.js +8 -8
  65. package/es/progress/index.js +8 -8
  66. package/es/radio/index.js +9 -9
  67. package/es/rate/index.js +8 -8
  68. package/es/result/index.js +8 -8
  69. package/es/row/index.js +8 -8
  70. package/es/scale-container/index.js +386 -385
  71. package/es/scale-view/index.js +27 -27
  72. package/es/select/index.js +12 -12
  73. package/es/select-label/index.js +11 -11
  74. package/es/select-person/index.js +2 -2
  75. package/es/select-tag/index.js +4 -4
  76. package/es/shortcut-setter/index.js +10 -10
  77. package/es/skeleton/index.js +8 -8
  78. package/es/slider/index.js +8 -8
  79. package/es/slider-tree/index.js +9 -9
  80. package/es/space/index.js +8 -8
  81. package/es/spin/index.js +8 -8
  82. package/es/statistic/index.js +8 -8
  83. package/es/steps/index.js +8 -8
  84. package/es/switch/index.js +8 -8
  85. package/es/table-filter/index.js +65 -65
  86. package/es/tabs/index.js +8 -8
  87. package/es/tag/index.js +9 -9
  88. package/es/time-picker/index.js +8 -8
  89. package/es/timeline/index.js +8 -8
  90. package/es/tooltip/index.js +8 -8
  91. package/es/transfer/index.js +8 -8
  92. package/es/tree/index.js +8 -8
  93. package/es/tree-select/index.js +8 -8
  94. package/es/upload/index.js +8 -8
  95. package/es/verification-code/index.js +2 -2
  96. package/lib/cui.common.js +1458 -1118
  97. package/lib/cui.umd.js +1458 -1118
  98. package/lib/cui.umd.min.js +75 -75
  99. package/package.json +2 -2
  100. package/packages/big-table/index.js +4 -0
  101. package/packages/big-table/src/BigTable.vue +6 -8
  102. package/packages/big-table/src/components/edit-form/edit-component/edit-search/edit-search.vue +81 -7
  103. package/packages/big-table/src/components/edit-form/edit-component/edit-search-more/edit-search-more.vue +63 -7
  104. package/packages/big-table/src/components/edit-form/edit-component/mixins/search.js +21 -0
  105. package/packages/button/src/ButtonPrint/js/print.es.min.js +3 -3
  106. package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +4 -1
  107. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +12 -8
  108. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +15 -11
  109. package/packages/fabric-chart/src/utils/index.js +1 -1
  110. package/packages/grid/src/grid.js +2 -3
@@ -1307,6 +1307,273 @@ var TEMPLATE = String(String).split('String');
1307
1307
  });
1308
1308
 
1309
1309
 
1310
+ /***/ }),
1311
+
1312
+ /***/ "73d2":
1313
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1314
+
1315
+ "use strict";
1316
+
1317
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"77d0f074-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-container/src/ScaleContainer.vue?vue&type=template&id=a95c6fe0&scoped=true&
1318
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"containerRef",staticClass:"scale-container",style:(_vm.style)},[_vm._t("default"),(_vm.open)?_c('img',{ref:"handleRef",staticClass:"scale-handle",attrs:{"src":__webpack_require__("467b"),"draggable":"false","alt":""}}):_vm._e()],2)}
1319
+ var staticRenderFns = []
1320
+
1321
+
1322
+ // CONCATENATED MODULE: ./packages/scale-container/src/ScaleContainer.vue?vue&type=template&id=a95c6fe0&scoped=true&
1323
+
1324
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
1325
+ var es_number_constructor_js_ = __webpack_require__("f989");
1326
+
1327
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
1328
+ var web_dom_collections_for_each_js_ = __webpack_require__("13e3");
1329
+
1330
+ // EXTERNAL MODULE: external "@vue/composition-api"
1331
+ var composition_api_ = __webpack_require__("8165");
1332
+
1333
+ // EXTERNAL MODULE: ./src/core/create.js
1334
+ var create = __webpack_require__("8aef");
1335
+
1336
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-container/src/ScaleContainer.vue?vue&type=script&lang=js&
1337
+
1338
+
1339
+ //
1340
+ //
1341
+ //
1342
+ //
1343
+ //
1344
+ //
1345
+ //
1346
+ //
1347
+ //
1348
+ //
1349
+ //
1350
+ //
1351
+ //
1352
+ //
1353
+ //
1354
+ //
1355
+ //
1356
+ //
1357
+
1358
+
1359
+
1360
+ var isNil = function isNil(val) {
1361
+ return val === undefined || val === null;
1362
+ };
1363
+
1364
+ /* harmony default export */ var ScaleContainervue_type_script_lang_js_ = (Object(create["a" /* default */])(Object(composition_api_["defineComponent"])({
1365
+ name: "scale-container",
1366
+ props: {
1367
+ // 不开启,则相当于div
1368
+ open: {
1369
+ type: Boolean,
1370
+ default: true
1371
+ },
1372
+ // 限制为容器mounted后的大小,与 min 互斥
1373
+ limitOriginSize: {
1374
+ type: Boolean,
1375
+ default: false
1376
+ },
1377
+ minW: {
1378
+ type: Number
1379
+ },
1380
+ minH: {
1381
+ type: Number
1382
+ },
1383
+ defaultMaxH: {
1384
+ type: Number
1385
+ }
1386
+ },
1387
+ emits: ["changeHeight", "changeWidth"],
1388
+ setup: function setup(props, _ref) {
1389
+ var emit = _ref.emit;
1390
+
1391
+ var _toRefs = Object(composition_api_["toRefs"])(props),
1392
+ limitOriginSize = _toRefs.limitOriginSize,
1393
+ minW = _toRefs.minW,
1394
+ minH = _toRefs.minH,
1395
+ defaultMaxH = _toRefs.defaultMaxH,
1396
+ open = _toRefs.open;
1397
+
1398
+ var containerRef = Object(composition_api_["ref"])();
1399
+ var handleRef = Object(composition_api_["ref"])();
1400
+ var State = Object(composition_api_["reactive"])({
1401
+ height: null,
1402
+ width: null
1403
+ });
1404
+ var Height = Object(composition_api_["computed"])(function () {
1405
+ return isNil(State.height) ? "inherit" : "".concat(State.height, "px");
1406
+ });
1407
+ var Width = Object(composition_api_["computed"])(function () {
1408
+ return isNil(State.width) ? "100%" : "".concat(State.width, "px");
1409
+ });
1410
+ var MaxHeight = Object(composition_api_["computed"])(function () {
1411
+ return isNil(defaultMaxH.value) || !isNil(State.height) ? "none" : "".concat(defaultMaxH.value, "px");
1412
+ });
1413
+ var style = Object(composition_api_["computed"])(function () {
1414
+ if (!open.value) return {};
1415
+ return {
1416
+ width: Width.value,
1417
+ height: Height.value,
1418
+ maxHeight: MaxHeight.value
1419
+ };
1420
+ });
1421
+ var defH, defW; // attr: width / height
1422
+
1423
+ var updateSize = function updateSize(size, attr) {
1424
+ if (!containerRef.value || attr !== "width" && attr !== "height") return false; // containerRef.value.style[attr] = size + "px";
1425
+
1426
+ if (attr === "width") {
1427
+ State.width = size;
1428
+ emit("changeWidth", size);
1429
+ }
1430
+
1431
+ if (attr === "height") {
1432
+ State.height = size;
1433
+ emit("changeHeight", size);
1434
+ }
1435
+
1436
+ return true;
1437
+ };
1438
+
1439
+ var updateSizeProxy = function updateSizeProxy(size, attr, successCB) {
1440
+ var isSuccess = false;
1441
+
1442
+ if (attr === "width") {
1443
+ if (limitOriginSize.value) {
1444
+ if (size > defW) isSuccess = updateSize(size, attr);
1445
+ } else if (!isNil(minW.value)) {
1446
+ if (size > minW.value) isSuccess = updateSize(size, attr);
1447
+ } else {
1448
+ isSuccess = updateSize(size, attr);
1449
+ }
1450
+ }
1451
+
1452
+ if (attr === "height") {
1453
+ if (limitOriginSize.value) {
1454
+ if (size > defH) isSuccess = updateSize(size, attr);
1455
+ } else if (!isNil(minH.value)) {
1456
+ if (size > minH.value) isSuccess = updateSize(size, attr);
1457
+ } else {
1458
+ isSuccess = updateSize(size, attr);
1459
+ }
1460
+ }
1461
+
1462
+ if (isSuccess && successCB) successCB();
1463
+ };
1464
+
1465
+ var setDefSize = function setDefSize() {
1466
+ // const { height, width } = containerRef.value.getBoundingClientRect();
1467
+ var width = containerRef.value.offsetWidth;
1468
+ var height = containerRef.value.offsetHeight;
1469
+ defW = width;
1470
+ defH = height;
1471
+ };
1472
+
1473
+ var changePointerEventsForIframe = function changePointerEventsForIframe() {
1474
+ var _document$querySelect;
1475
+
1476
+ var disabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1477
+ (_document$querySelect = document.querySelectorAll("iframe")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.forEach(function (el) {
1478
+ if (disabled) {
1479
+ el.classList.add("disabled-pointer-events");
1480
+ } else {
1481
+ el.classList.remove("disabled-pointer-events");
1482
+ }
1483
+ });
1484
+ };
1485
+
1486
+ var initEvents = function initEvents() {
1487
+ Object(composition_api_["nextTick"])(function () {
1488
+ var _handleRef$value;
1489
+
1490
+ (_handleRef$value = handleRef.value) === null || _handleRef$value === void 0 ? void 0 : _handleRef$value.addEventListener("mousedown", function (evt) {
1491
+ evt.preventDefault();
1492
+ changePointerEventsForIframe(true);
1493
+ var x = evt.clientX;
1494
+ var y = evt.clientY;
1495
+
1496
+ var resize = function resize(evtM) {
1497
+ var deltaX = evtM.clientX - x;
1498
+ var deltaY = evtM.clientY - y; // 页面缩小有bug
1499
+ // const { height, width } = containerRef.value.getBoundingClientRect();
1500
+
1501
+ var width = containerRef.value.offsetWidth;
1502
+ var height = containerRef.value.offsetHeight;
1503
+ var W = width + deltaX;
1504
+ var H = height + deltaY;
1505
+ updateSizeProxy(W, "width", function () {
1506
+ x = evtM.clientX;
1507
+ });
1508
+ updateSizeProxy(H, "height", function () {
1509
+ y = evtM.clientY;
1510
+ });
1511
+ };
1512
+
1513
+ document.addEventListener("mousemove", resize);
1514
+
1515
+ document.onmouseup = function () {
1516
+ document.removeEventListener("mousemove", resize);
1517
+ changePointerEventsForIframe(false);
1518
+ document.onmouseup = null;
1519
+ };
1520
+ });
1521
+ });
1522
+ };
1523
+
1524
+ Object(composition_api_["onMounted"])(function () {
1525
+ setDefSize();
1526
+
1527
+ if (!isNil(minW.value) && defW < minW.value) {
1528
+ State.width = minW.value;
1529
+ }
1530
+
1531
+ open.value && initEvents();
1532
+ });
1533
+ Object(composition_api_["watch"])(open, function (val) {
1534
+ val && initEvents();
1535
+ });
1536
+ return {
1537
+ style: style,
1538
+ containerRef: containerRef,
1539
+ handleRef: handleRef
1540
+ };
1541
+ }
1542
+ })));
1543
+ // CONCATENATED MODULE: ./packages/scale-container/src/ScaleContainer.vue?vue&type=script&lang=js&
1544
+ /* harmony default export */ var src_ScaleContainervue_type_script_lang_js_ = (ScaleContainervue_type_script_lang_js_);
1545
+ // EXTERNAL MODULE: ./packages/scale-container/src/ScaleContainer.vue?vue&type=style&index=0&id=a95c6fe0&lang=less&scoped=true&
1546
+ var ScaleContainervue_type_style_index_0_id_a95c6fe0_lang_less_scoped_true_ = __webpack_require__("13d0");
1547
+
1548
+ // EXTERNAL MODULE: ./packages/scale-container/src/ScaleContainer.vue?vue&type=style&index=1&lang=less&
1549
+ var ScaleContainervue_type_style_index_1_lang_less_ = __webpack_require__("5df5");
1550
+
1551
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1552
+ var componentNormalizer = __webpack_require__("2877");
1553
+
1554
+ // CONCATENATED MODULE: ./packages/scale-container/src/ScaleContainer.vue
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+ /* normalize component */
1563
+
1564
+ var component = Object(componentNormalizer["a" /* default */])(
1565
+ src_ScaleContainervue_type_script_lang_js_,
1566
+ render,
1567
+ staticRenderFns,
1568
+ false,
1569
+ null,
1570
+ "a95c6fe0",
1571
+ null
1572
+
1573
+ )
1574
+
1575
+ /* harmony default export */ var ScaleContainer = __webpack_exports__["a"] = (component.exports);
1576
+
1310
1577
  /***/ }),
1311
1578
 
1312
1579
  /***/ "7418":
@@ -1701,422 +1968,156 @@ module.exports = isForced;
1701
1968
  var DESCRIPTORS = __webpack_require__("83ab");
1702
1969
  var IE8_DOM_DEFINE = __webpack_require__("0cfb");
1703
1970
  var anObject = __webpack_require__("825a");
1704
- var toPropertyKey = __webpack_require__("a04b");
1705
-
1706
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1707
- var $defineProperty = Object.defineProperty;
1708
-
1709
- // `Object.defineProperty` method
1710
- // https://tc39.es/ecma262/#sec-object.defineproperty
1711
- exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {
1712
- anObject(O);
1713
- P = toPropertyKey(P);
1714
- anObject(Attributes);
1715
- if (IE8_DOM_DEFINE) try {
1716
- return $defineProperty(O, P, Attributes);
1717
- } catch (error) { /* empty */ }
1718
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
1719
- if ('value' in Attributes) O[P] = Attributes.value;
1720
- return O;
1721
- };
1722
-
1723
-
1724
- /***/ }),
1725
-
1726
- /***/ "9ed3":
1727
- /***/ (function(module, exports, __webpack_require__) {
1728
-
1729
- "use strict";
1730
-
1731
- var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype;
1732
- var create = __webpack_require__("7c73");
1733
- var createPropertyDescriptor = __webpack_require__("5c6c");
1734
- var setToStringTag = __webpack_require__("d44e");
1735
- var Iterators = __webpack_require__("3f8c");
1736
-
1737
- var returnThis = function () { return this; };
1738
-
1739
- module.exports = function (IteratorConstructor, NAME, next) {
1740
- var TO_STRING_TAG = NAME + ' Iterator';
1741
- IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
1742
- setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
1743
- Iterators[TO_STRING_TAG] = returnThis;
1744
- return IteratorConstructor;
1745
- };
1746
-
1747
-
1748
- /***/ }),
1749
-
1750
- /***/ "a04b":
1751
- /***/ (function(module, exports, __webpack_require__) {
1752
-
1753
- var toPrimitive = __webpack_require__("c04e");
1754
- var isSymbol = __webpack_require__("d9b5");
1755
-
1756
- // `ToPropertyKey` abstract operation
1757
- // https://tc39.es/ecma262/#sec-topropertykey
1758
- module.exports = function (argument) {
1759
- var key = toPrimitive(argument, 'string');
1760
- return isSymbol(key) ? key : String(key);
1761
- };
1762
-
1763
-
1764
- /***/ }),
1765
-
1766
- /***/ "a4b4":
1767
- /***/ (function(module, exports, __webpack_require__) {
1768
-
1769
- var userAgent = __webpack_require__("342f");
1770
-
1771
- module.exports = /web0s(?!.*chrome)/i.test(userAgent);
1772
-
1773
-
1774
- /***/ }),
1775
-
1776
- /***/ "a691":
1777
- /***/ (function(module, exports) {
1778
-
1779
- var ceil = Math.ceil;
1780
- var floor = Math.floor;
1781
-
1782
- // `ToInteger` abstract operation
1783
- // https://tc39.es/ecma262/#sec-tointeger
1784
- module.exports = function (argument) {
1785
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
1786
- };
1787
-
1788
-
1789
- /***/ }),
1790
-
1791
- /***/ "a79d":
1792
- /***/ (function(module, exports, __webpack_require__) {
1793
-
1794
- "use strict";
1795
-
1796
- var $ = __webpack_require__("23e7");
1797
- var IS_PURE = __webpack_require__("c430");
1798
- var NativePromise = __webpack_require__("fea9");
1799
- var fails = __webpack_require__("d039");
1800
- var getBuiltIn = __webpack_require__("d066");
1801
- var speciesConstructor = __webpack_require__("4840");
1802
- var promiseResolve = __webpack_require__("cdf9");
1803
- var redefine = __webpack_require__("6eeb");
1804
-
1805
- // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
1806
- var NON_GENERIC = !!NativePromise && fails(function () {
1807
- NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
1808
- });
1809
-
1810
- // `Promise.prototype.finally` method
1811
- // https://tc39.es/ecma262/#sec-promise.prototype.finally
1812
- $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
1813
- 'finally': function (onFinally) {
1814
- var C = speciesConstructor(this, getBuiltIn('Promise'));
1815
- var isFunction = typeof onFinally == 'function';
1816
- return this.then(
1817
- isFunction ? function (x) {
1818
- return promiseResolve(C, onFinally()).then(function () { return x; });
1819
- } : onFinally,
1820
- isFunction ? function (e) {
1821
- return promiseResolve(C, onFinally()).then(function () { throw e; });
1822
- } : onFinally
1823
- );
1824
- }
1825
- });
1826
-
1827
- // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
1828
- if (!IS_PURE && typeof NativePromise == 'function') {
1829
- var method = getBuiltIn('Promise').prototype['finally'];
1830
- if (NativePromise.prototype['finally'] !== method) {
1831
- redefine(NativePromise.prototype, 'finally', method, { unsafe: true });
1832
- }
1833
- }
1834
-
1835
-
1836
- /***/ }),
1837
-
1838
- /***/ "a8af":
1839
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1840
-
1841
- "use strict";
1842
- // ESM COMPAT FLAG
1843
- __webpack_require__.r(__webpack_exports__);
1844
-
1845
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
1846
- var es_array_iterator = __webpack_require__("e260");
1847
-
1848
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
1849
- var es_promise = __webpack_require__("e6cf");
1850
-
1851
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
1852
- var es_object_assign = __webpack_require__("cca6");
1853
-
1854
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
1855
- var es_promise_finally = __webpack_require__("a79d");
1856
-
1857
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
1858
- var es_function_name_js_ = __webpack_require__("db0a");
1859
-
1860
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c3eaeea-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-container/src/ScaleContainer.vue?vue&type=template&id=a95c6fe0&scoped=true&
1861
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"containerRef",staticClass:"scale-container",style:(_vm.style)},[_vm._t("default"),(_vm.open)?_c('img',{ref:"handleRef",staticClass:"scale-handle",attrs:{"src":__webpack_require__("467b"),"draggable":"false","alt":""}}):_vm._e()],2)}
1862
- var staticRenderFns = []
1863
-
1864
-
1865
- // CONCATENATED MODULE: ./packages/scale-container/src/ScaleContainer.vue?vue&type=template&id=a95c6fe0&scoped=true&
1866
-
1867
- // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
1868
- var es_number_constructor_js_ = __webpack_require__("f989");
1869
-
1870
- // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
1871
- var web_dom_collections_for_each_js_ = __webpack_require__("13e3");
1872
-
1873
- // EXTERNAL MODULE: external "@vue/composition-api"
1874
- var composition_api_ = __webpack_require__("8165");
1875
-
1876
- // EXTERNAL MODULE: ./src/core/create.js
1877
- var create = __webpack_require__("8aef");
1878
-
1879
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-container/src/ScaleContainer.vue?vue&type=script&lang=js&
1880
-
1881
-
1882
- //
1883
- //
1884
- //
1885
- //
1886
- //
1887
- //
1888
- //
1889
- //
1890
- //
1891
- //
1892
- //
1893
- //
1894
- //
1895
- //
1896
- //
1897
- //
1898
- //
1899
- //
1900
-
1901
-
1902
-
1903
- var isNil = function isNil(val) {
1904
- return val === undefined || val === null;
1905
- };
1906
-
1907
- /* harmony default export */ var ScaleContainervue_type_script_lang_js_ = (Object(create["a" /* default */])(Object(composition_api_["defineComponent"])({
1908
- name: "scale-container",
1909
- props: {
1910
- // 不开启,则相当于div
1911
- open: {
1912
- type: Boolean,
1913
- default: true
1914
- },
1915
- // 限制为容器mounted后的大小,与 min 互斥
1916
- limitOriginSize: {
1917
- type: Boolean,
1918
- default: false
1919
- },
1920
- minW: {
1921
- type: Number
1922
- },
1923
- minH: {
1924
- type: Number
1925
- },
1926
- defaultMaxH: {
1927
- type: Number
1928
- }
1929
- },
1930
- emits: ["changeHeight", "changeWidth"],
1931
- setup: function setup(props, _ref) {
1932
- var emit = _ref.emit;
1971
+ var toPropertyKey = __webpack_require__("a04b");
1933
1972
 
1934
- var _toRefs = Object(composition_api_["toRefs"])(props),
1935
- limitOriginSize = _toRefs.limitOriginSize,
1936
- minW = _toRefs.minW,
1937
- minH = _toRefs.minH,
1938
- defaultMaxH = _toRefs.defaultMaxH,
1939
- open = _toRefs.open;
1973
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1974
+ var $defineProperty = Object.defineProperty;
1940
1975
 
1941
- var containerRef = Object(composition_api_["ref"])();
1942
- var handleRef = Object(composition_api_["ref"])();
1943
- var State = Object(composition_api_["reactive"])({
1944
- height: null,
1945
- width: null
1946
- });
1947
- var Height = Object(composition_api_["computed"])(function () {
1948
- return isNil(State.height) ? "inherit" : "".concat(State.height, "px");
1949
- });
1950
- var Width = Object(composition_api_["computed"])(function () {
1951
- return isNil(State.width) ? "100%" : "".concat(State.width, "px");
1952
- });
1953
- var MaxHeight = Object(composition_api_["computed"])(function () {
1954
- return isNil(defaultMaxH.value) || !isNil(State.height) ? "none" : "".concat(defaultMaxH.value, "px");
1955
- });
1956
- var style = Object(composition_api_["computed"])(function () {
1957
- if (!open.value) return {};
1958
- return {
1959
- width: Width.value,
1960
- height: Height.value,
1961
- maxHeight: MaxHeight.value
1962
- };
1963
- });
1964
- var defH, defW; // attr: width / height
1976
+ // `Object.defineProperty` method
1977
+ // https://tc39.es/ecma262/#sec-object.defineproperty
1978
+ exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {
1979
+ anObject(O);
1980
+ P = toPropertyKey(P);
1981
+ anObject(Attributes);
1982
+ if (IE8_DOM_DEFINE) try {
1983
+ return $defineProperty(O, P, Attributes);
1984
+ } catch (error) { /* empty */ }
1985
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
1986
+ if ('value' in Attributes) O[P] = Attributes.value;
1987
+ return O;
1988
+ };
1965
1989
 
1966
- var updateSize = function updateSize(size, attr) {
1967
- if (!containerRef.value || attr !== "width" && attr !== "height") return false; // containerRef.value.style[attr] = size + "px";
1968
1990
 
1969
- if (attr === "width") {
1970
- State.width = size;
1971
- emit("changeWidth", size);
1972
- }
1991
+ /***/ }),
1973
1992
 
1974
- if (attr === "height") {
1975
- State.height = size;
1976
- emit("changeHeight", size);
1977
- }
1993
+ /***/ "9ed3":
1994
+ /***/ (function(module, exports, __webpack_require__) {
1978
1995
 
1979
- return true;
1980
- };
1996
+ "use strict";
1981
1997
 
1982
- var updateSizeProxy = function updateSizeProxy(size, attr, successCB) {
1983
- var isSuccess = false;
1998
+ var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype;
1999
+ var create = __webpack_require__("7c73");
2000
+ var createPropertyDescriptor = __webpack_require__("5c6c");
2001
+ var setToStringTag = __webpack_require__("d44e");
2002
+ var Iterators = __webpack_require__("3f8c");
1984
2003
 
1985
- if (attr === "width") {
1986
- if (limitOriginSize.value) {
1987
- if (size > defW) isSuccess = updateSize(size, attr);
1988
- } else if (!isNil(minW.value)) {
1989
- if (size > minW.value) isSuccess = updateSize(size, attr);
1990
- } else {
1991
- isSuccess = updateSize(size, attr);
1992
- }
1993
- }
2004
+ var returnThis = function () { return this; };
1994
2005
 
1995
- if (attr === "height") {
1996
- if (limitOriginSize.value) {
1997
- if (size > defH) isSuccess = updateSize(size, attr);
1998
- } else if (!isNil(minH.value)) {
1999
- if (size > minH.value) isSuccess = updateSize(size, attr);
2000
- } else {
2001
- isSuccess = updateSize(size, attr);
2002
- }
2003
- }
2006
+ module.exports = function (IteratorConstructor, NAME, next) {
2007
+ var TO_STRING_TAG = NAME + ' Iterator';
2008
+ IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
2009
+ setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
2010
+ Iterators[TO_STRING_TAG] = returnThis;
2011
+ return IteratorConstructor;
2012
+ };
2004
2013
 
2005
- if (isSuccess && successCB) successCB();
2006
- };
2007
2014
 
2008
- var setDefSize = function setDefSize() {
2009
- // const { height, width } = containerRef.value.getBoundingClientRect();
2010
- var width = containerRef.value.offsetWidth;
2011
- var height = containerRef.value.offsetHeight;
2012
- defW = width;
2013
- defH = height;
2014
- };
2015
+ /***/ }),
2015
2016
 
2016
- var changePointerEventsForIframe = function changePointerEventsForIframe() {
2017
- var _document$querySelect;
2017
+ /***/ "a04b":
2018
+ /***/ (function(module, exports, __webpack_require__) {
2018
2019
 
2019
- var disabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2020
- (_document$querySelect = document.querySelectorAll("iframe")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.forEach(function (el) {
2021
- if (disabled) {
2022
- el.classList.add("disabled-pointer-events");
2023
- } else {
2024
- el.classList.remove("disabled-pointer-events");
2025
- }
2026
- });
2027
- };
2020
+ var toPrimitive = __webpack_require__("c04e");
2021
+ var isSymbol = __webpack_require__("d9b5");
2028
2022
 
2029
- var initEvents = function initEvents() {
2030
- Object(composition_api_["nextTick"])(function () {
2031
- var _handleRef$value;
2023
+ // `ToPropertyKey` abstract operation
2024
+ // https://tc39.es/ecma262/#sec-topropertykey
2025
+ module.exports = function (argument) {
2026
+ var key = toPrimitive(argument, 'string');
2027
+ return isSymbol(key) ? key : String(key);
2028
+ };
2032
2029
 
2033
- (_handleRef$value = handleRef.value) === null || _handleRef$value === void 0 ? void 0 : _handleRef$value.addEventListener("mousedown", function (evt) {
2034
- evt.preventDefault();
2035
- changePointerEventsForIframe(true);
2036
- var x = evt.clientX;
2037
- var y = evt.clientY;
2038
2030
 
2039
- var resize = function resize(evtM) {
2040
- var deltaX = evtM.clientX - x;
2041
- var deltaY = evtM.clientY - y; // 页面缩小有bug
2042
- // const { height, width } = containerRef.value.getBoundingClientRect();
2031
+ /***/ }),
2043
2032
 
2044
- var width = containerRef.value.offsetWidth;
2045
- var height = containerRef.value.offsetHeight;
2046
- var W = width + deltaX;
2047
- var H = height + deltaY;
2048
- updateSizeProxy(W, "width", function () {
2049
- x = evtM.clientX;
2050
- });
2051
- updateSizeProxy(H, "height", function () {
2052
- y = evtM.clientY;
2053
- });
2054
- };
2033
+ /***/ "a4b4":
2034
+ /***/ (function(module, exports, __webpack_require__) {
2055
2035
 
2056
- document.addEventListener("mousemove", resize);
2036
+ var userAgent = __webpack_require__("342f");
2057
2037
 
2058
- document.onmouseup = function () {
2059
- document.removeEventListener("mousemove", resize);
2060
- changePointerEventsForIframe(false);
2061
- document.onmouseup = null;
2062
- };
2063
- });
2064
- });
2065
- };
2038
+ module.exports = /web0s(?!.*chrome)/i.test(userAgent);
2066
2039
 
2067
- Object(composition_api_["onMounted"])(function () {
2068
- setDefSize();
2069
2040
 
2070
- if (!isNil(minW.value) && defW < minW.value) {
2071
- State.width = minW.value;
2072
- }
2041
+ /***/ }),
2073
2042
 
2074
- open.value && initEvents();
2075
- });
2076
- Object(composition_api_["watch"])(open, function (val) {
2077
- val && initEvents();
2078
- });
2079
- return {
2080
- style: style,
2081
- containerRef: containerRef,
2082
- handleRef: handleRef
2083
- };
2084
- }
2085
- })));
2086
- // CONCATENATED MODULE: ./packages/scale-container/src/ScaleContainer.vue?vue&type=script&lang=js&
2087
- /* harmony default export */ var src_ScaleContainervue_type_script_lang_js_ = (ScaleContainervue_type_script_lang_js_);
2088
- // EXTERNAL MODULE: ./packages/scale-container/src/ScaleContainer.vue?vue&type=style&index=0&id=a95c6fe0&lang=less&scoped=true&
2089
- var ScaleContainervue_type_style_index_0_id_a95c6fe0_lang_less_scoped_true_ = __webpack_require__("13d0");
2043
+ /***/ "a691":
2044
+ /***/ (function(module, exports) {
2090
2045
 
2091
- // EXTERNAL MODULE: ./packages/scale-container/src/ScaleContainer.vue?vue&type=style&index=1&lang=less&
2092
- var ScaleContainervue_type_style_index_1_lang_less_ = __webpack_require__("5df5");
2046
+ var ceil = Math.ceil;
2047
+ var floor = Math.floor;
2093
2048
 
2094
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2095
- var componentNormalizer = __webpack_require__("2877");
2049
+ // `ToInteger` abstract operation
2050
+ // https://tc39.es/ecma262/#sec-tointeger
2051
+ module.exports = function (argument) {
2052
+ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
2053
+ };
2096
2054
 
2097
- // CONCATENATED MODULE: ./packages/scale-container/src/ScaleContainer.vue
2098
2055
 
2056
+ /***/ }),
2057
+
2058
+ /***/ "a79d":
2059
+ /***/ (function(module, exports, __webpack_require__) {
2060
+
2061
+ "use strict";
2099
2062
 
2063
+ var $ = __webpack_require__("23e7");
2064
+ var IS_PURE = __webpack_require__("c430");
2065
+ var NativePromise = __webpack_require__("fea9");
2066
+ var fails = __webpack_require__("d039");
2067
+ var getBuiltIn = __webpack_require__("d066");
2068
+ var speciesConstructor = __webpack_require__("4840");
2069
+ var promiseResolve = __webpack_require__("cdf9");
2070
+ var redefine = __webpack_require__("6eeb");
2100
2071
 
2072
+ // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
2073
+ var NON_GENERIC = !!NativePromise && fails(function () {
2074
+ NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
2075
+ });
2101
2076
 
2077
+ // `Promise.prototype.finally` method
2078
+ // https://tc39.es/ecma262/#sec-promise.prototype.finally
2079
+ $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
2080
+ 'finally': function (onFinally) {
2081
+ var C = speciesConstructor(this, getBuiltIn('Promise'));
2082
+ var isFunction = typeof onFinally == 'function';
2083
+ return this.then(
2084
+ isFunction ? function (x) {
2085
+ return promiseResolve(C, onFinally()).then(function () { return x; });
2086
+ } : onFinally,
2087
+ isFunction ? function (e) {
2088
+ return promiseResolve(C, onFinally()).then(function () { throw e; });
2089
+ } : onFinally
2090
+ );
2091
+ }
2092
+ });
2102
2093
 
2094
+ // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
2095
+ if (!IS_PURE && typeof NativePromise == 'function') {
2096
+ var method = getBuiltIn('Promise').prototype['finally'];
2097
+ if (NativePromise.prototype['finally'] !== method) {
2098
+ redefine(NativePromise.prototype, 'finally', method, { unsafe: true });
2099
+ }
2100
+ }
2103
2101
 
2104
2102
 
2105
- /* normalize component */
2103
+ /***/ }),
2106
2104
 
2107
- var component = Object(componentNormalizer["a" /* default */])(
2108
- src_ScaleContainervue_type_script_lang_js_,
2109
- render,
2110
- staticRenderFns,
2111
- false,
2112
- null,
2113
- "a95c6fe0",
2114
- null
2115
-
2116
- )
2105
+ /***/ "a8af":
2106
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2117
2107
 
2118
- /* harmony default export */ var ScaleContainer = (component.exports);
2119
- // CONCATENATED MODULE: ./packages/scale-container/index.js
2108
+ "use strict";
2109
+ __webpack_require__.r(__webpack_exports__);
2110
+ /* harmony import */ var F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e260");
2111
+ /* harmony import */ var F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);
2112
+ /* harmony import */ var F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e6cf");
2113
+ /* harmony import */ var F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__);
2114
+ /* harmony import */ var F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("cca6");
2115
+ /* harmony import */ var F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__);
2116
+ /* harmony import */ var F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a79d");
2117
+ /* harmony import */ var F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_new_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__);
2118
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("db0a");
2119
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__);
2120
+ /* harmony import */ var _src_ScaleContainer_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("73d2");
2120
2121
 
2121
2122
 
2122
2123
 
@@ -2124,12 +2125,12 @@ var component = Object(componentNormalizer["a" /* default */])(
2124
2125
 
2125
2126
  // 为组件提供 install 安装方法,供按需引入
2126
2127
 
2127
- ScaleContainer.install = function (Vue) {
2128
- Vue.component(ScaleContainer.name, ScaleContainer);
2128
+ _src_ScaleContainer_vue__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"].install = function (Vue) {
2129
+ Vue.component(_src_ScaleContainer_vue__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"].name, _src_ScaleContainer_vue__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"]);
2129
2130
  }; // 默认导出组件
2130
2131
 
2131
2132
 
2132
- /* harmony default export */ var scale_container = __webpack_exports__["default"] = (ScaleContainer);
2133
+ /* harmony default export */ __webpack_exports__["default"] = (_src_ScaleContainer_vue__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"]);
2133
2134
 
2134
2135
  /***/ }),
2135
2136