cnhis-design-vue 2.1.40 → 2.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -31
- package/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +91 -91
- package/es/big-table/style.css +1 -1
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +92 -46
- package/es/button/style.css +1 -1
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +104 -96
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +62 -62
- package/es/index/index.js +969 -609
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +80 -82
- package/es/multi-chat-client/index.js +74 -76
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +27 -29
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-view/index.js +33 -33
- package/es/select/index.js +353 -45
- package/es/select/style.css +1 -1
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- package/es/shortcut-setter/index.js +10 -10
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +199 -112
- package/es/table-filter/style.css +1 -1
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/utils/UniRTCv2.js +2 -2
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +972 -593
- package/lib/cui.umd.js +972 -593
- package/lib/cui.umd.min.js +22 -22
- package/package.json +2 -2
- package/packages/big-table/src/BigTable.vue +1 -1
- package/packages/button/src/ButtonPrint/index.vue +47 -9
- package/packages/fabric-chart/src/const/defaultVaule.js +59 -59
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +56 -50
- package/packages/multi-chat/store/actions.js +6 -6
- package/packages/scale-view/scaleView.vue +2010 -2010
- package/packages/select/src/Select/Select.vue +231 -0
- package/packages/select/src/{Select.jsx → Select/index.js} +2 -1
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +37 -4
- package/src/utils/UniRTCv2.js +2 -2
package/es/fabric-chart/index.js
CHANGED
|
@@ -306,7 +306,7 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
306
306
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
307
307
|
var es_function_name_js_ = __webpack_require__("db0a");
|
|
308
308
|
|
|
309
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
309
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f2e636-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/fabric-chart/src/FabricChart.vue?vue&type=template&id=3a1ac827&scoped=true&
|
|
310
310
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-fabric-chart",style:({ width: _vm.canvasWidth })},[(_vm.rendercanvas)?_c('fabric-canvas',_vm._b({ref:"canvasEle",attrs:{"templateData":_vm.templateData}},'fabric-canvas',_vm.$attrs,false),[(_vm.hasXScalevalue)?_c('fabric-text-group',_vm._g({attrs:{"templateData":_vm.templateData}},_vm.$listeners)):_vm._e(),_c('fabric-grid'),(_vm.hasTable)?_c('fabric-scale-value',{attrs:{"templateData":_vm.templateData}}):_vm._e(),(_vm.hasTopTable)?_c('fabric-lines',_vm._g({ref:"lines",attrs:{"linesObj":_vm.templateData.top}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-polylines',_vm._g({ref:"polylines",attrs:{"polyline":_vm.polylines,"other":_vm.templateData.left.other || {}},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners)):_vm._e()],1):_vm._e()],1)}
|
|
311
311
|
var staticRenderFns = []
|
|
312
312
|
|
|
@@ -319,7 +319,7 @@ var objectSpread2 = __webpack_require__("5530");
|
|
|
319
319
|
// EXTERNAL MODULE: ./src/core/create.js
|
|
320
320
|
var create = __webpack_require__("8aef");
|
|
321
321
|
|
|
322
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
322
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f2e636-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/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=25f6fbee&
|
|
323
323
|
var FabricCanvasvue_type_template_id_25f6fbee_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('canvas',{attrs:{"id":_vm.id}}),_vm._t("default")],2)}
|
|
324
324
|
var FabricCanvasvue_type_template_id_25f6fbee_staticRenderFns = []
|
|
325
325
|
|
|
@@ -806,12 +806,12 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
806
806
|
)
|
|
807
807
|
|
|
808
808
|
/* harmony default export */ var FabricCanvas = (component.exports);
|
|
809
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
810
|
-
var
|
|
811
|
-
var
|
|
809
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f2e636-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/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=30eed6ee&
|
|
810
|
+
var FabricPolylinesvue_type_template_id_30eed6ee_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"poly-line"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
811
|
+
var FabricPolylinesvue_type_template_id_30eed6ee_staticRenderFns = []
|
|
812
812
|
|
|
813
813
|
|
|
814
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=
|
|
814
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=30eed6ee&
|
|
815
815
|
|
|
816
816
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
817
817
|
var asyncToGenerator = __webpack_require__("1da1");
|
|
@@ -1447,7 +1447,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
});
|
|
1450
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1450
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f2e636-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/fabric-chart/src/components/MouseRightClick.vue?vue&type=template&id=25d4407a&scoped=true&
|
|
1451
1451
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-mouse-right-menu-popup c-animation-in",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-mouse-right-menu"},_vm._l((_vm.nodeList),function(item,index){return _c('div',{key:index,staticClass:"c-mouse-menu-item",on:{"click":function($event){return _vm.handleNodeClick(item)}}},[_c('span',[_vm._v(_vm._s(item.name))])])}),0)])}
|
|
1452
1452
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
|
|
1453
1453
|
|
|
@@ -1555,7 +1555,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1555
1555
|
)
|
|
1556
1556
|
|
|
1557
1557
|
/* harmony default export */ var MouseRightClick = (MouseRightClick_component.exports);
|
|
1558
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1558
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f2e636-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/fabric-chart/src/components/DropPopup.vue?vue&type=template&id=c4db0ace&scoped=true&
|
|
1559
1559
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-drop-popup",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-drop-popup-list"},[_c('span',[_vm._v(_vm._s(_vm.val.title))]),_vm._l((_vm.val.list),function(item){return _c('span',{key:item.id},[_vm._v(" "+_vm._s(((item.name) + ": " + (item.value)))+" ")])})],2)])}
|
|
1560
1560
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
|
|
1561
1561
|
|
|
@@ -1811,6 +1811,15 @@ var rightClickNodeConnect = [{
|
|
|
1811
1811
|
computed: {
|
|
1812
1812
|
eventStyle: function eventStyle() {
|
|
1813
1813
|
return this.propItems.eventStyle;
|
|
1814
|
+
},
|
|
1815
|
+
spaceWidth: function spaceWidth() {
|
|
1816
|
+
var _this$propItems = this.propItems,
|
|
1817
|
+
xCellWidth = _this$propItems.xCellWidth,
|
|
1818
|
+
table = _this$propItems.table; // const addPointSpaceGridNumbers = table.addPointSpaceGridNumbers || [];
|
|
1819
|
+
|
|
1820
|
+
var addPointSpaceGridNumber = table.addPointSpaceGridNumber || 1;
|
|
1821
|
+
var spaceWidth = xCellWidth * addPointSpaceGridNumber;
|
|
1822
|
+
return spaceWidth;
|
|
1814
1823
|
}
|
|
1815
1824
|
},
|
|
1816
1825
|
watch: {},
|
|
@@ -1939,13 +1948,13 @@ var rightClickNodeConnect = [{
|
|
|
1939
1948
|
var _this$other,
|
|
1940
1949
|
_this6 = this;
|
|
1941
1950
|
|
|
1942
|
-
var _this$
|
|
1943
|
-
canvasHeight = _this$
|
|
1944
|
-
treeTableminCellWidth = _this$
|
|
1945
|
-
originX = _this$
|
|
1946
|
-
xScaleList = _this$
|
|
1947
|
-
xScaleCellList = _this$
|
|
1948
|
-
endX = _this$
|
|
1951
|
+
var _this$propItems2 = this.propItems,
|
|
1952
|
+
canvasHeight = _this$propItems2.canvasHeight,
|
|
1953
|
+
treeTableminCellWidth = _this$propItems2.treeTableminCellWidth,
|
|
1954
|
+
originX = _this$propItems2.originX,
|
|
1955
|
+
xScaleList = _this$propItems2.xScaleList,
|
|
1956
|
+
xScaleCellList = _this$propItems2.xScaleCellList,
|
|
1957
|
+
endX = _this$propItems2.endX;
|
|
1949
1958
|
var leftYScalevalue = this.polyline.find(function (v) {
|
|
1950
1959
|
return v.position === 'left';
|
|
1951
1960
|
});
|
|
@@ -2214,9 +2223,9 @@ var rightClickNodeConnect = [{
|
|
|
2214
2223
|
var list = polyline.list;
|
|
2215
2224
|
var valueObj = polyline[attr] || {};
|
|
2216
2225
|
if (!valueObj.max && !valueObj.min) return;
|
|
2217
|
-
var _this$
|
|
2218
|
-
originX = _this$
|
|
2219
|
-
endX = _this$
|
|
2226
|
+
var _this$propItems3 = this.propItems,
|
|
2227
|
+
originX = _this$propItems3.originX,
|
|
2228
|
+
endX = _this$propItems3.endX;
|
|
2220
2229
|
var isMax = ((_valueObj$max = valueObj.max) === null || _valueObj$max === void 0 ? void 0 : _valueObj$max.show) && ((_valueObj$max2 = valueObj.max) === null || _valueObj$max2 === void 0 ? void 0 : _valueObj$max2.value) && list.some(function (v) {
|
|
2221
2230
|
return +v.value >= +valueObj.max.value && _this8.isLimit(v.time);
|
|
2222
2231
|
});
|
|
@@ -2279,9 +2288,9 @@ var rightClickNodeConnect = [{
|
|
|
2279
2288
|
drawPolyline: function drawPolyline(polyline, polylineIndex, polylineType, polylineTypeId) {
|
|
2280
2289
|
var _this9 = this;
|
|
2281
2290
|
|
|
2282
|
-
var _this$
|
|
2283
|
-
originY = _this$
|
|
2284
|
-
endY = _this$
|
|
2291
|
+
var _this$propItems4 = this.propItems,
|
|
2292
|
+
originY = _this$propItems4.originY,
|
|
2293
|
+
endY = _this$propItems4.endY;
|
|
2285
2294
|
var pointAttr = polyline.pointAttr,
|
|
2286
2295
|
lineAttr = polyline.lineAttr;
|
|
2287
2296
|
this._iconClassName = polyline.type === 'img' && pointAttr.iconClassName ? pointAttr.iconClassName : '';
|
|
@@ -2651,6 +2660,67 @@ var rightClickNodeConnect = [{
|
|
|
2651
2660
|
_loop(i, len);
|
|
2652
2661
|
}
|
|
2653
2662
|
},
|
|
2663
|
+
// 检查批量新增拖动过程中是否存在漏点的情况
|
|
2664
|
+
checkPoints: function checkPoints(point) {
|
|
2665
|
+
var _this$addPointList2,
|
|
2666
|
+
_this13 = this;
|
|
2667
|
+
|
|
2668
|
+
var originLeft = point.originLeft,
|
|
2669
|
+
originTop = point.originTop,
|
|
2670
|
+
left = point.left,
|
|
2671
|
+
polylineTypeId = point.polylineTypeId;
|
|
2672
|
+
var PointLens = Math.floor((left - originLeft) / this.spaceWidth);
|
|
2673
|
+
|
|
2674
|
+
if (PointLens > 1 && ((_this$addPointList2 = this.addPointList) === null || _this$addPointList2 === void 0 ? void 0 : _this$addPointList2.length) <= PointLens) {
|
|
2675
|
+
var position = this.polyline[polylineTypeId].position;
|
|
2676
|
+
|
|
2677
|
+
for (var k = 0; k <= PointLens; k++) {
|
|
2678
|
+
if (k > 0) {
|
|
2679
|
+
(function () {
|
|
2680
|
+
var curLeft = originLeft + _this13.spaceWidth * k; // 判断this.addPointList中的left是否包含curLeft,不包含就说明是漏了
|
|
2681
|
+
|
|
2682
|
+
var hasPoint = _this13.addPointList.some(function (p) {
|
|
2683
|
+
return Math.abs(p.left - curLeft) <= 0.001;
|
|
2684
|
+
}); // const hasPoint = this.addPointList.some(v => v.left == curLeft);
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
if (!hasPoint) {
|
|
2688
|
+
var index;
|
|
2689
|
+
|
|
2690
|
+
var pointObj = _this13.addPointList.find(function (v, i) {
|
|
2691
|
+
if (v.left > curLeft) {
|
|
2692
|
+
index = i;
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
return v.left > curLeft;
|
|
2696
|
+
});
|
|
2697
|
+
|
|
2698
|
+
if (pointObj) {
|
|
2699
|
+
var cloneObj = JSON.parse(JSON.stringify(pointObj));
|
|
2700
|
+
var prePoint = _this13.addPointList[index - 1] || {
|
|
2701
|
+
left: originLeft,
|
|
2702
|
+
top: originTop
|
|
2703
|
+
};
|
|
2704
|
+
var len = ~~((pointObj.left - (curLeft - _this13.spaceWidth)) / _this13.spaceWidth);
|
|
2705
|
+
var spaceHeight = (pointObj.top - prePoint.top) / len;
|
|
2706
|
+
cloneObj.top = prePoint.top + spaceHeight;
|
|
2707
|
+
cloneObj.value.time = _this13.getXValue(curLeft);
|
|
2708
|
+
cloneObj.value.value = _this13.getYValue(position, cloneObj.top);
|
|
2709
|
+
cloneObj.left = curLeft;
|
|
2710
|
+
|
|
2711
|
+
_this13.addPointList.splice(index, 0, cloneObj);
|
|
2712
|
+
|
|
2713
|
+
_this13.clonePoint(point, [prePoint.left, prePoint.top, cloneObj.left, cloneObj.top]);
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
})();
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
} // 纠正节点上的line1的坐标
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
this.setLinePatch(point);
|
|
2723
|
+
},
|
|
2654
2724
|
|
|
2655
2725
|
/**
|
|
2656
2726
|
* @description: 拖动批量新增节点
|
|
@@ -2658,14 +2728,6 @@ var rightClickNodeConnect = [{
|
|
|
2658
2728
|
* @return {*}
|
|
2659
2729
|
*/
|
|
2660
2730
|
addPoint: function addPoint(point) {
|
|
2661
|
-
var _this13 = this;
|
|
2662
|
-
|
|
2663
|
-
var _this$propItems4 = this.propItems,
|
|
2664
|
-
xCellWidth = _this$propItems4.xCellWidth,
|
|
2665
|
-
table = _this$propItems4.table,
|
|
2666
|
-
originX = _this$propItems4.originX; // const addPointSpaceGridNumbers = table.addPointSpaceGridNumbers || [];
|
|
2667
|
-
|
|
2668
|
-
var addPointSpaceGridNumber = table.addPointSpaceGridNumber || 1;
|
|
2669
2731
|
var left = point.left,
|
|
2670
2732
|
top = point.top,
|
|
2671
2733
|
originLeft = point.originLeft,
|
|
@@ -2674,73 +2736,19 @@ var rightClickNodeConnect = [{
|
|
|
2674
2736
|
var startLength = this.addPointList.length;
|
|
2675
2737
|
var n = 6; // 拖动范围,在需要增加节点的刻度左右吸入的范围值
|
|
2676
2738
|
|
|
2677
|
-
var
|
|
2678
|
-
var
|
|
2679
|
-
var condition = residue > 0 && (residue > spaceWidth - n || residue < n);
|
|
2739
|
+
var residue = (left - originLeft) % this.spaceWidth;
|
|
2740
|
+
var condition = residue > 0 && (residue > this.spaceWidth - n || residue < n);
|
|
2680
2741
|
var conditionNoLine2 = !point.line2 && left > originLeft;
|
|
2681
|
-
var conditionHasLine2 = point.line2 && left > originLeft + spaceWidth; // if (!point.line2 && left > originLeft && condition) {
|
|
2742
|
+
var conditionHasLine2 = point.line2 && left > originLeft + this.spaceWidth; // if (!point.line2 && left > originLeft && condition) {
|
|
2682
2743
|
|
|
2683
2744
|
if (condition && (conditionNoLine2 || conditionHasLine2)) {
|
|
2684
|
-
if (residue > spaceWidth - n) left = left - residue + spaceWidth;
|
|
2745
|
+
if (residue > this.spaceWidth - n) left = left - residue + this.spaceWidth;
|
|
2685
2746
|
if (residue < n) left = left - residue;
|
|
2686
2747
|
point.set({
|
|
2687
2748
|
left: left
|
|
2688
|
-
});
|
|
2689
|
-
|
|
2690
|
-
var checkPoints = function checkPoints() {
|
|
2691
|
-
var _this13$addPointList;
|
|
2692
|
-
|
|
2693
|
-
var PointLens = Math.floor((left - originLeft) / spaceWidth);
|
|
2694
|
-
|
|
2695
|
-
if (PointLens > 1 && ((_this13$addPointList = _this13.addPointList) === null || _this13$addPointList === void 0 ? void 0 : _this13$addPointList.length) <= PointLens) {
|
|
2696
|
-
for (var k = 0; k <= PointLens; k++) {
|
|
2697
|
-
if (k > 0) {
|
|
2698
|
-
(function () {
|
|
2699
|
-
var curLeft = originLeft + spaceWidth * k; // 判断this.addPointList中的left是否包含curLeft,不包含就说明是漏了
|
|
2700
|
-
|
|
2701
|
-
var hasPoint = _this13.addPointList.some(function (p) {
|
|
2702
|
-
return Math.abs(p.left - curLeft) <= 0.001;
|
|
2703
|
-
}); // const hasPoint = this.addPointList.some(v => v.left == curLeft);
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
if (!hasPoint) {
|
|
2707
|
-
var index;
|
|
2708
|
-
|
|
2709
|
-
var pointObj = _this13.addPointList.find(function (v, i) {
|
|
2710
|
-
if (v.left > curLeft) {
|
|
2711
|
-
index = i;
|
|
2712
|
-
}
|
|
2713
|
-
|
|
2714
|
-
return v.left > curLeft;
|
|
2715
|
-
});
|
|
2716
|
-
|
|
2717
|
-
if (pointObj) {
|
|
2718
|
-
var cloneObj = JSON.parse(JSON.stringify(pointObj));
|
|
2719
|
-
var len = ~~((pointObj.left - (curLeft - spaceWidth)) / spaceWidth);
|
|
2720
|
-
var prePoint = _this13.addPointList[index - 1] || pointObj;
|
|
2721
|
-
var spaceHeight = (pointObj.top - prePoint.top) / len;
|
|
2722
|
-
var position = _this13.polyline[point.polylineTypeId].position;
|
|
2723
|
-
cloneObj.top = prePoint.top + spaceHeight;
|
|
2724
|
-
cloneObj.value.time = _this13.getXValue(curLeft);
|
|
2725
|
-
cloneObj.value.value = _this13.getYValue(position, cloneObj.top);
|
|
2726
|
-
cloneObj.left = curLeft;
|
|
2727
|
-
|
|
2728
|
-
_this13.addPointList.splice(index, 0, cloneObj);
|
|
2729
|
-
|
|
2730
|
-
_this13.clonePoint(point, [prePoint.left, prePoint.top, cloneObj.left, cloneObj.top]);
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
})();
|
|
2734
|
-
}
|
|
2735
|
-
}
|
|
2736
|
-
} // 纠正节点上的line1的坐标
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
_this13.setLinePatch(point);
|
|
2740
|
-
}; // const i = Math.floor((left - originLeft) / spaceWidth);
|
|
2749
|
+
}); // const i = Math.floor((left - originLeft) / this.spaceWidth);
|
|
2741
2750
|
// 复制点和线
|
|
2742
2751
|
|
|
2743
|
-
|
|
2744
2752
|
if (conditionNoLine2 || conditionHasLine2) {
|
|
2745
2753
|
// point.line1 && this.removePolyline(point.line1.id);
|
|
2746
2754
|
setPointLineColor(point, 'transparent', conditionHasLine2);
|
|
@@ -2776,7 +2784,7 @@ var rightClickNodeConnect = [{
|
|
|
2776
2784
|
}
|
|
2777
2785
|
}
|
|
2778
2786
|
|
|
2779
|
-
checkPoints();
|
|
2787
|
+
this.checkPoints(point);
|
|
2780
2788
|
}
|
|
2781
2789
|
} // 断点相连
|
|
2782
2790
|
|
|
@@ -2850,7 +2858,7 @@ var rightClickNodeConnect = [{
|
|
|
2850
2858
|
}
|
|
2851
2859
|
});
|
|
2852
2860
|
|
|
2853
|
-
if ((point.line1 || point.line2) && left < originLeft + spaceWidth) {
|
|
2861
|
+
if ((point.line1 || point.line2) && left < originLeft + this.spaceWidth) {
|
|
2854
2862
|
setPointLineColor(point, polylineObj.color, true);
|
|
2855
2863
|
} else {
|
|
2856
2864
|
setPointLineColor(point, 'transparent', true);
|
|
@@ -3253,8 +3261,8 @@ var rightClickNodeConnect = [{
|
|
|
3253
3261
|
|
|
3254
3262
|
var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
|
|
3255
3263
|
fabric_chart_FabricPolylinesvue_type_script_lang_js_,
|
|
3256
|
-
|
|
3257
|
-
|
|
3264
|
+
FabricPolylinesvue_type_template_id_30eed6ee_render,
|
|
3265
|
+
FabricPolylinesvue_type_template_id_30eed6ee_staticRenderFns,
|
|
3258
3266
|
false,
|
|
3259
3267
|
null,
|
|
3260
3268
|
null,
|
|
@@ -3350,7 +3358,7 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
|
|
|
3350
3358
|
)
|
|
3351
3359
|
|
|
3352
3360
|
/* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
|
|
3353
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3361
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f2e636-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/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=44a2641e&
|
|
3354
3362
|
var FabricTextGroupvue_type_template_id_44a2641e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-group"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),(_vm.isDropVisible)?_c('DropPopup',{attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}}):_vm._e()],1)}
|
|
3355
3363
|
var FabricTextGroupvue_type_template_id_44a2641e_staticRenderFns = []
|
|
3356
3364
|
|
|
@@ -4138,14 +4146,14 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4138
4146
|
)
|
|
4139
4147
|
|
|
4140
4148
|
/* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
|
|
4141
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4149
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f2e636-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/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=9c461680&
|
|
4142
4150
|
var FabricScaleValuevue_type_template_id_9c461680_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.templateData.top.xScalevalue.popupTop)?_c('TimeScaleValue',{attrs:{"times":_vm.timeList,"templateData":_vm.templateData}}):_vm._e()}
|
|
4143
4151
|
var FabricScaleValuevue_type_template_id_9c461680_staticRenderFns = []
|
|
4144
4152
|
|
|
4145
4153
|
|
|
4146
4154
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=9c461680&
|
|
4147
4155
|
|
|
4148
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4156
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f2e636-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/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=184c584a&scoped=true&
|
|
4149
4157
|
var TimeScaleValuevue_type_template_id_184c584a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"}],staticClass:"c-time-scalevalue",style:({ '--left': _vm.popupStyle.left, '--top': _vm.popupStyle.top, '--height': _vm.popupStyle.height, '--width': _vm.popupStyle.width })},_vm._l((_vm.times),function(item,index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(index % 2 == 0),expression:"index % 2 == 0"}],key:item.left,staticClass:"c-time-scalevalue-list",style:({ left: ((item.left - item.width / 2) + "px"), '--font-size': _vm.popupStyle.fontSize })},[_vm._v(" "+_vm._s(item.time)+" ")])}),0)}
|
|
4150
4158
|
var TimeScaleValuevue_type_template_id_184c584a_scoped_true_staticRenderFns = []
|
|
4151
4159
|
|
|
@@ -4475,7 +4483,7 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4475
4483
|
)
|
|
4476
4484
|
|
|
4477
4485
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
4478
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4486
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f2e636-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/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=c6adb3bc&
|
|
4479
4487
|
var FabricLinesvue_type_template_id_c6adb3bc_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"line"},[(_vm.isRightVisible)?_c('MouseRightClick',{attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}):_vm._e(),(_vm.isDropVisible)?_c('DropPopup',{attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}}):_vm._e()],1)}
|
|
4480
4488
|
var FabricLinesvue_type_template_id_c6adb3bc_staticRenderFns = []
|
|
4481
4489
|
|
package/es/form/index.js
CHANGED
|
@@ -726,14 +726,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
726
726
|
/* harmony import */ var ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0__);
|
|
727
727
|
/* harmony import */ var ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be79");
|
|
728
728
|
/* harmony import */ var ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
729
|
-
/* harmony import */ var
|
|
730
|
-
/* harmony import */ var
|
|
731
|
-
/* harmony import */ var
|
|
732
|
-
/* harmony import */ var
|
|
733
|
-
/* harmony import */ var
|
|
734
|
-
/* harmony import */ var
|
|
735
|
-
/* harmony import */ var
|
|
736
|
-
/* harmony import */ var
|
|
729
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("e260");
|
|
730
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
731
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("e6cf");
|
|
732
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
733
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("cca6");
|
|
734
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
735
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a79d");
|
|
736
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
737
737
|
|
|
738
738
|
|
|
739
739
|
|
package/es/form-model/index.js
CHANGED
|
@@ -799,14 +799,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
799
799
|
/* harmony import */ var ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0__);
|
|
800
800
|
/* harmony import */ var ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be79");
|
|
801
801
|
/* harmony import */ var ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
802
|
-
/* harmony import */ var
|
|
803
|
-
/* harmony import */ var
|
|
804
|
-
/* harmony import */ var
|
|
805
|
-
/* harmony import */ var
|
|
806
|
-
/* harmony import */ var
|
|
807
|
-
/* harmony import */ var
|
|
808
|
-
/* harmony import */ var
|
|
809
|
-
/* harmony import */ var
|
|
802
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("e260");
|
|
803
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
804
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("e6cf");
|
|
805
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
806
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("cca6");
|
|
807
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
808
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a79d");
|
|
809
|
+
/* harmony import */ var F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_high_cnhis_design_vue_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
810
810
|
|
|
811
811
|
|
|
812
812
|
|