cnhis-design-vue 2.1.126 → 2.1.128

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 (115) hide show
  1. package/CHANGELOG.md +5 -30
  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 +339 -1630
  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 +99 -224
  38. package/es/form/index.js +8 -8
  39. package/es/form-model/index.js +8 -8
  40. package/es/form-table/index.js +696 -697
  41. package/es/full-calendar/index.js +52 -52
  42. package/es/full-calendar/style.css +1 -1
  43. package/es/grid/index.js +2 -12
  44. package/es/index/index.js +1104 -1472
  45. package/es/index/style.css +1 -1
  46. package/es/input/index.js +9 -9
  47. package/es/input-number/index.js +8 -8
  48. package/es/layout/index.js +8 -8
  49. package/es/list/index.js +8 -8
  50. package/es/locale-provider/index.js +8 -8
  51. package/es/map/index.js +9 -9
  52. package/es/mentions/index.js +8 -8
  53. package/es/menu/index.js +8 -8
  54. package/es/message/index.js +8 -8
  55. package/es/multi-chat/index.js +76 -76
  56. package/es/multi-chat-client/index.js +70 -70
  57. package/es/multi-chat-history/index.js +4 -4
  58. package/es/multi-chat-record/index.js +14 -14
  59. package/es/multi-chat-setting/index.js +22 -22
  60. package/es/multi-chat-sip/index.js +1 -1
  61. package/es/notification/index.js +8 -8
  62. package/es/page-header/index.js +8 -8
  63. package/es/pagination/index.js +8 -8
  64. package/es/popconfirm/index.js +8 -8
  65. package/es/popover/index.js +8 -8
  66. package/es/progress/index.js +8 -8
  67. package/es/radio/index.js +9 -9
  68. package/es/rate/index.js +8 -8
  69. package/es/result/index.js +8 -8
  70. package/es/row/index.js +8 -8
  71. package/es/scale-container/index.js +367 -368
  72. package/es/scale-view/index.js +74 -65
  73. package/es/scale-view/style.css +1 -1
  74. package/es/select/index.js +12 -12
  75. package/es/select-label/index.js +11 -11
  76. package/es/select-person/index.js +2 -2
  77. package/es/select-tag/index.js +4 -4
  78. package/es/shortcut-setter/index.js +10 -10
  79. package/es/skeleton/index.js +8 -8
  80. package/es/slider/index.js +8 -8
  81. package/es/slider-tree/index.js +9 -9
  82. package/es/space/index.js +8 -8
  83. package/es/spin/index.js +8 -8
  84. package/es/statistic/index.js +8 -8
  85. package/es/steps/index.js +8 -8
  86. package/es/switch/index.js +8 -8
  87. package/es/table-filter/index.js +65 -65
  88. package/es/tabs/index.js +8 -8
  89. package/es/tag/index.js +9 -9
  90. package/es/time-picker/index.js +8 -8
  91. package/es/timeline/index.js +8 -8
  92. package/es/tooltip/index.js +8 -8
  93. package/es/transfer/index.js +8 -8
  94. package/es/tree/index.js +8 -8
  95. package/es/tree-select/index.js +8 -8
  96. package/es/upload/index.js +8 -8
  97. package/es/verification-code/index.js +2 -2
  98. package/lib/cui.common.js +1008 -1488
  99. package/lib/cui.umd.js +1008 -1488
  100. package/lib/cui.umd.min.js +70 -70
  101. package/package.json +1 -1
  102. package/packages/big-table/index.js +0 -4
  103. package/packages/big-table/src/BigTable.vue +8 -6
  104. package/packages/big-table/src/components/edit-form/edit-component/edit-search/edit-search.vue +7 -81
  105. package/packages/big-table/src/components/edit-form/edit-component/edit-search-more/edit-search-more.vue +7 -63
  106. package/packages/big-table/src/components/edit-form/edit-component/mixins/search.js +0 -21
  107. package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +1 -4
  108. package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +8 -12
  109. package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +28 -80
  110. package/packages/fabric-chart/src/mixins/drawExtracorporealCirculation.js +6 -2
  111. package/packages/fabric-chart/src/utils/index.js +1 -9
  112. package/packages/full-calendar/src/FullCalendar.vue +11 -16
  113. package/packages/full-calendar/src/components/ListTag.vue +4 -6
  114. package/packages/grid/src/grid.js +3 -3
  115. package/packages/scale-view/formitem/r-choice.vue +10 -2
@@ -1307,273 +1307,6 @@ 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":"b9a15ef4-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
-
1577
1310
  /***/ }),
1578
1311
 
1579
1312
  /***/ "7418":
@@ -1988,136 +1721,402 @@ exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attrib
1988
1721
  };
1989
1722
 
1990
1723
 
1991
- /***/ }),
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":"f5c77da2-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;
1933
+
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;
1940
+
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
1992
1965
 
1993
- /***/ "9ed3":
1994
- /***/ (function(module, exports, __webpack_require__) {
1966
+ var updateSize = function updateSize(size, attr) {
1967
+ if (!containerRef.value || attr !== "width" && attr !== "height") return false; // containerRef.value.style[attr] = size + "px";
1995
1968
 
1996
- "use strict";
1969
+ if (attr === "width") {
1970
+ State.width = size;
1971
+ emit("changeWidth", size);
1972
+ }
1997
1973
 
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");
1974
+ if (attr === "height") {
1975
+ State.height = size;
1976
+ emit("changeHeight", size);
1977
+ }
2003
1978
 
2004
- var returnThis = function () { return this; };
1979
+ return true;
1980
+ };
2005
1981
 
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
- };
1982
+ var updateSizeProxy = function updateSizeProxy(size, attr, successCB) {
1983
+ var isSuccess = false;
2013
1984
 
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
+ }
2014
1994
 
2015
- /***/ }),
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
+ }
2016
2004
 
2017
- /***/ "a04b":
2018
- /***/ (function(module, exports, __webpack_require__) {
2005
+ if (isSuccess && successCB) successCB();
2006
+ };
2019
2007
 
2020
- var toPrimitive = __webpack_require__("c04e");
2021
- var isSymbol = __webpack_require__("d9b5");
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
+ };
2022
2015
 
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
- };
2016
+ var changePointerEventsForIframe = function changePointerEventsForIframe() {
2017
+ var _document$querySelect;
2029
2018
 
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
+ };
2030
2028
 
2031
- /***/ }),
2029
+ var initEvents = function initEvents() {
2030
+ Object(composition_api_["nextTick"])(function () {
2031
+ var _handleRef$value;
2032
2032
 
2033
- /***/ "a4b4":
2034
- /***/ (function(module, exports, __webpack_require__) {
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;
2035
2038
 
2036
- var userAgent = __webpack_require__("342f");
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();
2037
2043
 
2038
- module.exports = /web0s(?!.*chrome)/i.test(userAgent);
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
+ };
2039
2055
 
2056
+ document.addEventListener("mousemove", resize);
2040
2057
 
2041
- /***/ }),
2058
+ document.onmouseup = function () {
2059
+ document.removeEventListener("mousemove", resize);
2060
+ changePointerEventsForIframe(false);
2061
+ document.onmouseup = null;
2062
+ };
2063
+ });
2064
+ });
2065
+ };
2042
2066
 
2043
- /***/ "a691":
2044
- /***/ (function(module, exports) {
2067
+ Object(composition_api_["onMounted"])(function () {
2068
+ setDefSize();
2045
2069
 
2046
- var ceil = Math.ceil;
2047
- var floor = Math.floor;
2070
+ if (!isNil(minW.value) && defW < minW.value) {
2071
+ State.width = minW.value;
2072
+ }
2048
2073
 
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
- };
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");
2054
2090
 
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");
2055
2093
 
2056
- /***/ }),
2094
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2095
+ var componentNormalizer = __webpack_require__("2877");
2057
2096
 
2058
- /***/ "a79d":
2059
- /***/ (function(module, exports, __webpack_require__) {
2097
+ // CONCATENATED MODULE: ./packages/scale-container/src/ScaleContainer.vue
2060
2098
 
2061
- "use strict";
2062
2099
 
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");
2071
2100
 
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
- });
2076
2101
 
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
- });
2093
2102
 
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
- }
2101
2103
 
2102
2104
 
2103
- /***/ }),
2105
+ /* normalize component */
2104
2106
 
2105
- /***/ "a8af":
2106
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
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
+ )
2107
2117
 
2108
- "use strict";
2109
- __webpack_require__.r(__webpack_exports__);
2110
- /* harmony import */ var E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e260");
2111
- /* harmony import */ var E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);
2112
- /* harmony import */ var E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e6cf");
2113
- /* harmony import */ var E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__);
2114
- /* harmony import */ var E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("cca6");
2115
- /* harmony import */ var E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__);
2116
- /* harmony import */ var E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("a79d");
2117
- /* harmony import */ var E_project_cnhis_design_vue2_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(E_project_cnhis_design_vue2_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");
2118
+ /* harmony default export */ var ScaleContainer = (component.exports);
2119
+ // CONCATENATED MODULE: ./packages/scale-container/index.js
2121
2120
 
2122
2121
 
2123
2122
 
@@ -2125,12 +2124,12 @@ __webpack_require__.r(__webpack_exports__);
2125
2124
 
2126
2125
  // 为组件提供 install 安装方法,供按需引入
2127
2126
 
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"]);
2127
+ ScaleContainer.install = function (Vue) {
2128
+ Vue.component(ScaleContainer.name, ScaleContainer);
2130
2129
  }; // 默认导出组件
2131
2130
 
2132
2131
 
2133
- /* harmony default export */ __webpack_exports__["default"] = (_src_ScaleContainer_vue__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"]);
2132
+ /* harmony default export */ var scale_container = __webpack_exports__["default"] = (ScaleContainer);
2134
2133
 
2135
2134
  /***/ }),
2136
2135