cnhis-design-vue 2.1.123 → 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.
- package/CHANGELOG.md +14 -0
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +58 -59
- package/es/big-table/style.css +1 -1
- package/es/button/index.js +2 -2
- package/es/captcha/index.js +3 -3
- package/es/card-reader-sdk/index.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/fabric-chart/index.js +74 -42
- package/es/form-table/index.js +20 -20
- package/es/full-calendar/index.js +4 -4
- package/es/grid/index.js +0 -1
- package/es/index/index.js +280 -250
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +25 -25
- package/es/multi-chat-client/index.js +19 -19
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +20 -20
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +27 -27
- package/es/select/index.js +4 -4
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +2 -2
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +2 -2
- package/es/slider-tree/index.js +1 -1
- package/es/table-filter/index.js +30 -30
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +314 -275
- package/lib/cui.umd.js +314 -275
- package/lib/cui.umd.min.js +8 -8
- package/package.json +2 -2
- package/packages/big-table/src/BigTable.vue +6 -8
- package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +4 -1
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +5 -2
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +15 -11
- package/packages/grid/src/grid.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.125",
|
|
4
4
|
"description": "前端业务UI库",
|
|
5
5
|
"keyword": "cnhis-design-vue vue cnhis",
|
|
6
6
|
"homepage": "http://dv.cnhis.com/",
|
|
@@ -114,4 +114,4 @@
|
|
|
114
114
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
}
|
|
117
|
+
}
|
|
@@ -2143,13 +2143,11 @@ export default create({
|
|
|
2143
2143
|
let forbiddenBatchSelect = !this.checkMethod(data);
|
|
2144
2144
|
// 如果该行禁止批量多选,则选择/取消单行 并触发单击事件
|
|
2145
2145
|
if (this.selectType == 'checkbox' && forbiddenBatchSelect) {
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
*/
|
|
2150
|
-
const value = this.getRowClassName({ row }) == 'single--checked' ? [] : [row];
|
|
2146
|
+
// 选中“禁用”行,需要清空其它选择数据, 并且再次点击不要取消选中
|
|
2147
|
+
table?.setAllCheckboxRow(false);
|
|
2148
|
+
const value = [row];
|
|
2151
2149
|
this.$set(this, 'checkedRows', value);
|
|
2152
|
-
this.pubCheckChange(value);
|
|
2150
|
+
this.pubCheckChange(value, { forbiddenBatchSelect });
|
|
2153
2151
|
this.$emit('handlerClickRow', row, rowIndex, { source, column, trigger });
|
|
2154
2152
|
return;
|
|
2155
2153
|
}
|
|
@@ -2493,13 +2491,13 @@ export default create({
|
|
|
2493
2491
|
|
|
2494
2492
|
this.setCurrentCheckedLength();
|
|
2495
2493
|
},
|
|
2496
|
-
pubCheckChange(rows = []) {
|
|
2494
|
+
pubCheckChange(rows = [], config = {}) {
|
|
2497
2495
|
this.treeTableLength = rows.filter(item => {
|
|
2498
2496
|
let isGroupRow = vexutils.has(item, GROUP_TITLE_KEY);
|
|
2499
2497
|
return !isGroupRow;
|
|
2500
2498
|
}).length;
|
|
2501
2499
|
this.visibleTreeCheck = rows.length > 1;
|
|
2502
|
-
this.$emit('selectionChange', rows);
|
|
2500
|
+
this.$emit('selectionChange', rows, config);
|
|
2503
2501
|
},
|
|
2504
2502
|
setCurrentPageRowChecked() {
|
|
2505
2503
|
let table = this.$refs.xGrid;
|
|
@@ -265,7 +265,10 @@ export default {
|
|
|
265
265
|
const [preItem0] = lineList[j + 1];
|
|
266
266
|
if (preItem0) {
|
|
267
267
|
const preStartMinute = new Date(preItem0).getTime();
|
|
268
|
-
if (preStartMinute > minMinute && preStartMinute <= maxMinute)
|
|
268
|
+
if (preStartMinute > minMinute && preStartMinute <= maxMinute) {
|
|
269
|
+
rightLimit.x2 = this.computedX(preItem0);
|
|
270
|
+
if (!x2) leftLimit.x2 = rightLimit.x2;
|
|
271
|
+
}
|
|
269
272
|
}
|
|
270
273
|
}
|
|
271
274
|
|
|
@@ -610,7 +610,7 @@ export default {
|
|
|
610
610
|
* @param {polylineIndex} 当前折线 index
|
|
611
611
|
*/
|
|
612
612
|
drawPolyline(polyline, polylineIndex, polylineType, polylineTypeId) {
|
|
613
|
-
const { originY, endY } = this.propItems;
|
|
613
|
+
const { originY, endY, xCellWidth, table } = this.propItems;
|
|
614
614
|
const { list = [], critical = {}, diffValue = {} } = polyline;
|
|
615
615
|
|
|
616
616
|
const pointList = [];
|
|
@@ -649,7 +649,10 @@ export default {
|
|
|
649
649
|
let line;
|
|
650
650
|
let point;
|
|
651
651
|
let previousLine;
|
|
652
|
-
line =
|
|
652
|
+
line =
|
|
653
|
+
!points || !nextPoint || linePoints.data?.breakpoint || (table.breakpoint && nextPoint[0] - points[0] > xCellWidth)
|
|
654
|
+
? null
|
|
655
|
+
: this.drawLine([...points, ...nextPoint], { polylineIndex, polylineTypeId, lineIndex: index, ...lineAttr });
|
|
653
656
|
previousLine = lineList[index - 1];
|
|
654
657
|
const pointOthers = { polylineTypeId, polylineIndex, pointIndex: index, ...pointAttr, lineAttr };
|
|
655
658
|
if (points) {
|
|
@@ -322,29 +322,33 @@ export default {
|
|
|
322
322
|
};
|
|
323
323
|
const left = this.computedX(v.time);
|
|
324
324
|
title.dataList.push(left);
|
|
325
|
-
const icon =
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
325
|
+
const icon =
|
|
326
|
+
!Reflect.has(_icon, 'show') || _icon.show
|
|
327
|
+
? await this.createPoint(_icon.type, {
|
|
328
|
+
originX: 'center',
|
|
329
|
+
left,
|
|
330
|
+
...item.style,
|
|
331
|
+
...(item.style ? { stroke: item.style.fill } : {}),
|
|
332
|
+
...(_icon.style || {}),
|
|
333
|
+
...commonOptions
|
|
334
|
+
})
|
|
335
|
+
: null;
|
|
336
|
+
const iconHalfWidth = icon ? icon.width / 2 : 0;
|
|
333
337
|
const text = new this.fabric.Text(String(v.value), {
|
|
334
338
|
...defaultVaule.style,
|
|
335
339
|
...defaultVaule.textStyle,
|
|
336
340
|
...item.style,
|
|
337
|
-
left: left +
|
|
341
|
+
left: left + iconHalfWidth,
|
|
338
342
|
name: v.value,
|
|
339
343
|
...commonOptions
|
|
340
344
|
});
|
|
341
|
-
const groupObj = new this.fabric.Group([icon, text], {
|
|
345
|
+
const groupObj = new this.fabric.Group(icon ? [icon, text] : [text], {
|
|
342
346
|
id: `${index}_${i}_other_${Date.now()}`,
|
|
343
347
|
lockMovementY: true,
|
|
344
348
|
...commonOptions,
|
|
345
349
|
...this.eventStyle,
|
|
346
350
|
realLeft: left,
|
|
347
|
-
iconHalfWidth
|
|
351
|
+
iconHalfWidth
|
|
348
352
|
});
|
|
349
353
|
if (prevPoint) {
|
|
350
354
|
prevPoint.nextPoint = groupObj;
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
import Vue from 'vue';
|
|
7
7
|
import 'xe-utils';
|
|
8
8
|
import VXETable from 'vxe-table';
|
|
9
|
-
import VXETablePluginAntd from 'vxe-table-plugin-antd'
|
|
9
|
+
import VXETablePluginAntd from 'vxe-table-plugin-antd';
|
|
10
10
|
import Grid from 'vxe-table/lib/grid';
|
|
11
|
-
|
|
12
|
-
import 'vxe-table-plugin-antd/dist/style.css'
|
|
11
|
+
import 'vxe-table-plugin-antd/dist/style.css';
|
|
13
12
|
|
|
14
13
|
VXETable.use(VXETablePluginAntd);
|
|
15
14
|
import create from '@/core/create';
|