cnhis-design-vue 2.1.75 → 2.1.77
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 +21 -7
- 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 +68 -68
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +22 -22
- 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/ellipsis/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +72 -57
- package/es/fabric-chart/style.css +1 -1
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +66 -66
- package/es/grid/index.js +2 -12
- package/es/index/index.js +485 -480
- 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 +76 -76
- package/es/multi-chat-client/index.js +70 -70
- 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 +22 -22
- 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-container/index.js +1 -1
- package/es/scale-view/index.js +27 -27
- package/es/select/index.js +12 -12
- 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 +75 -75
- 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/verification-code/index.js +2 -2
- package/lib/cui.common.js +454 -472
- package/lib/cui.umd.js +454 -472
- package/lib/cui.umd.min.js +148 -148
- package/package.json +1 -1
- package/packages/fabric-chart/src/components/TimeScaleValue.vue +20 -9
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +10 -3
- package/packages/grid/src/grid.js +1 -1
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +8 -1
package/package.json
CHANGED
|
@@ -37,7 +37,6 @@ export default {
|
|
|
37
37
|
return {
|
|
38
38
|
cFabricChart: null,
|
|
39
39
|
scrollEvent: null,
|
|
40
|
-
top: 0,
|
|
41
40
|
popupStyle: {
|
|
42
41
|
width: '1000px',
|
|
43
42
|
height: '80px',
|
|
@@ -48,6 +47,18 @@ export default {
|
|
|
48
47
|
isShow: false
|
|
49
48
|
};
|
|
50
49
|
},
|
|
50
|
+
computed: {
|
|
51
|
+
popupTop() {
|
|
52
|
+
return this.$attrs.templateData.top?.xScalevalue?.popupTop ?? 0;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
watch: {
|
|
56
|
+
popupTop: {
|
|
57
|
+
handler(value) {
|
|
58
|
+
this.popupStyle.top = `${value}px`;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
51
62
|
mounted() {
|
|
52
63
|
this._timer = setInterval(() => {
|
|
53
64
|
if (document.readyState === 'complete') {
|
|
@@ -63,10 +74,10 @@ export default {
|
|
|
63
74
|
const { canvasWidth, spaceHeight, xCellWidth } = this.propItems;
|
|
64
75
|
this.cFabricChart = this.canvas.wrapperEl.parentNode.parentNode;
|
|
65
76
|
// this.bodyHeight = document.body.getBoundingClientRect().height;
|
|
66
|
-
|
|
77
|
+
|
|
67
78
|
this.popupStyle = {
|
|
68
79
|
left: `${this.cFabricChart?.getBoundingClientRect()?.left || 0}px`,
|
|
69
|
-
top: `${
|
|
80
|
+
top: `${this.popupTop}px`,
|
|
70
81
|
width: `${canvasWidth}px`,
|
|
71
82
|
height: `${spaceHeight}px`,
|
|
72
83
|
fontSize: `${xScalevalue.style?.fontSize || 12}px`
|
|
@@ -74,22 +85,22 @@ export default {
|
|
|
74
85
|
// const spaceGridNumber = xScalevalue.spaceGridNumber || 3;
|
|
75
86
|
// this.marginLeft = `${xCellWidth * spaceGridNumber}px`;
|
|
76
87
|
// 节流的间隔时间不宜太大,因为实际top值不准,会造成判断条件不准确
|
|
77
|
-
|
|
78
|
-
|
|
88
|
+
if (!this.scrollEvent) {
|
|
89
|
+
this.scrollEvent = vexutils.debounce(this.scroll, 80);
|
|
90
|
+
window.addEventListener('scroll', this.scrollEvent, true);
|
|
91
|
+
}
|
|
79
92
|
},
|
|
80
93
|
scroll() {
|
|
81
94
|
if (this.cFabricChart) {
|
|
82
95
|
const { originYTime } = this.propItems;
|
|
83
96
|
const top = this.cFabricChart.getBoundingClientRect().top;
|
|
84
|
-
|
|
85
|
-
const popupTop = xScalevalue?.popupTop || 0;
|
|
86
|
-
this.isShow = top + originYTime < popupTop ? true : false;
|
|
97
|
+
this.isShow = top + originYTime < this.popupTop ? true : false;
|
|
87
98
|
}
|
|
88
99
|
}
|
|
89
100
|
},
|
|
90
101
|
beforeDestroy() {
|
|
91
102
|
this._timer && clearInterval(this._timer);
|
|
92
|
-
window.removeEventListener('scroll', this.
|
|
103
|
+
window.removeEventListener('scroll', this.scrollEvent, true);
|
|
93
104
|
}
|
|
94
105
|
};
|
|
95
106
|
</script>
|
|
@@ -165,7 +165,8 @@ export default {
|
|
|
165
165
|
drawTopTotal(topTotalList) {
|
|
166
166
|
const { endX, canvasWidth, yCellHeightTop, topTotal, endYTop, spaceHeight, originYTop } = this.propItems;
|
|
167
167
|
const textList = [];
|
|
168
|
-
const
|
|
168
|
+
const totalWidth = canvasWidth - endX;
|
|
169
|
+
const left = endX + totalWidth / 2;
|
|
169
170
|
topTotalList.forEach((v, i) => {
|
|
170
171
|
const top = i * yCellHeightTop + yCellHeightTop / 2 + originYTop;
|
|
171
172
|
const text = v
|
|
@@ -178,10 +179,16 @@ export default {
|
|
|
178
179
|
originY: 'center'
|
|
179
180
|
})
|
|
180
181
|
: null;
|
|
181
|
-
|
|
182
|
+
if (!text) return;
|
|
183
|
+
if (text.width > totalWidth)
|
|
184
|
+
text.set({
|
|
185
|
+
originX: 'right',
|
|
186
|
+
left: canvasWidth - 1
|
|
187
|
+
});
|
|
188
|
+
textList.push(text);
|
|
182
189
|
});
|
|
183
190
|
const title = this.drawTextGroup(
|
|
184
|
-
{ width:
|
|
191
|
+
{ width: totalWidth, height: spaceHeight, strokeWidth: 1 },
|
|
185
192
|
{ text: String(topTotal.title), ...(topTotal.style || defaultVaule.textStyle) },
|
|
186
193
|
{ left: endX, top: originYTop > 0 ? 0 : endYTop }
|
|
187
194
|
);
|
|
@@ -8,7 +8,7 @@ import 'xe-utils';
|
|
|
8
8
|
import VXETable from 'vxe-table';
|
|
9
9
|
import VXETablePluginAntd from 'vxe-table-plugin-antd'
|
|
10
10
|
import Grid from 'vxe-table/lib/grid';
|
|
11
|
-
import 'vxe-table/lib/style.css';
|
|
11
|
+
// import 'vxe-table/lib/style.css';
|
|
12
12
|
import 'vxe-table-plugin-antd/dist/style.css'
|
|
13
13
|
|
|
14
14
|
VXETable.use(VXETablePluginAntd);
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</div>
|
|
47
47
|
<slot name="classification"></slot>
|
|
48
48
|
<li v-if="showQuickSearch" ref="quickSearchLi">
|
|
49
|
-
<a-button class="search-default" type="default" @click="foldQuickSearch">
|
|
49
|
+
<a-button class="search-default" type="default" @click="foldQuickSearch" :class="{'search-default-count': qqConObjCount}">
|
|
50
50
|
<svg-icon icon-class="anniushaixuan" style="color: inherit; margin-right: 6px"></svg-icon>
|
|
51
51
|
筛选 {{ qqConObjCount ? `(${qqConObjCount})` : '' }}
|
|
52
52
|
</a-button>
|
|
@@ -2355,6 +2355,13 @@ export default create({
|
|
|
2355
2355
|
border-color: #d5d5d5;
|
|
2356
2356
|
color: #212121;
|
|
2357
2357
|
}
|
|
2358
|
+
&.search-default-count {
|
|
2359
|
+
border-color: #2d7aff;
|
|
2360
|
+
color: #2d7aff;
|
|
2361
|
+
.ant-btn {
|
|
2362
|
+
color: #2d7aff;
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2358
2365
|
}
|
|
2359
2366
|
/deep/ .out-filter-input {
|
|
2360
2367
|
width: 200px;
|