bri-components 1.1.2 → 1.1.4
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/lib/0.bri-components.min.js +1 -1
- package/lib/1.bri-components.min.js +1 -1
- package/lib/10.bri-components.min.js +1 -0
- package/lib/2.bri-components.min.js +1 -1
- package/lib/3.bri-components.min.js +1 -1
- package/lib/4.bri-components.min.js +1 -1
- package/lib/5.bri-components.min.js +1 -1
- package/lib/6.bri-components.min.js +1 -1
- package/lib/7.bri-components.min.js +1 -1
- package/lib/8.bri-components.min.js +1 -1
- package/lib/9.bri-components.min.js +1 -1
- package/lib/bri-components.min.js +6 -6
- package/lib/styles/bri-components.css +1 -1
- package/package.json +1 -1
- package/src/abolish/DshCascaders.less +11 -0
- package/src/{components/controls/base/DshCascaderMultiple.vue → abolish/DshCascaders.vue} +17 -27
- package/src/{components/list → abolish}/DshFlatTable.vue +1 -1
- package/src/abolish/DshTexts.less +13 -0
- package/src/{components/controls/base/textMultiple/DshTextMultiple.vue → abolish/DshTexts.vue} +17 -25
- package/src/components/controls/base/{textMultiple/MultipleInput.vue → BriInputs.vue} +18 -17
- package/src/components/controls/base/{ZUpload/YUploadImage.vue → BriUpload/BriUploadImage.vue} +56 -15
- package/src/components/controls/base/{ZUpload → BriUpload}/index.vue +24 -21
- package/src/components/controls/base/{ZUpload → BriUpload}/upload-list.vue +20 -13
- package/src/components/controls/base/{ZUpload → BriUpload}/uploadMixin.js +7 -3
- package/src/components/controls/base/{DshCascader.vue → DshCascader/DshCascader.vue} +33 -26
- package/src/components/controls/base/DshCheckbox.vue +17 -20
- package/src/components/controls/base/DshCoordinates.vue +119 -110
- package/src/components/controls/base/DshDate.vue +24 -37
- package/src/components/controls/base/DshDaterange.vue +3 -1
- package/src/components/controls/base/DshEditor.vue +73 -60
- package/src/components/controls/base/DshInput.vue +72 -60
- package/src/components/controls/base/DshNumber/BriInputNumber/BriInputNumber.vue +1 -1
- package/src/components/controls/base/DshNumber/DshNumber.vue +52 -48
- package/src/components/controls/base/DshNumberange.vue +11 -21
- package/src/components/controls/base/DshSelect.vue +13 -17
- package/src/components/controls/controlMap.js +12 -11
- package/src/components/controls/controlMixin.js +40 -29
- package/src/components/controls/controlShow.vue +44 -0
- package/src/components/controls/{base → senior}/BriLabels.vue +7 -12
- package/src/components/controls/{base → senior}/DshPackage.vue +6 -25
- package/src/components/controls/senior/cascaderTable.vue +52 -51
- package/src/components/controls/senior/flatTable.vue +20 -17
- package/src/components/controls/{base → special}/DshBack.vue +4 -4
- package/src/components/controls/{base → special}/DshUndeveloped.vue +3 -1
- package/src/components/form/DshAdvSearchForm.vue +10 -1
- package/src/components/form/DshForm.vue +10 -3
- package/src/components/list/BriFlatTable.vue +5 -5
- package/src/components/list/BriTable.vue +6 -8
- package/src/components/list/DshBox/DshBox.vue +7 -24
- package/src/components/list/DshBox/DshCard.vue +15 -74
- package/src/components/list/DshBox/DshCrossTable.vue +4 -8
- package/src/components/list/DshBox/DshList.vue +8 -136
- package/src/components/list/DshBox/DshPanel.vue +0 -110
- package/src/components/list/DshBox/DshTable.vue +1 -4
- package/src/components/list/DshCascaderTable.vue +1 -1
- package/src/components/list/ZTree.vue +0 -58
- package/src/components/other/ZIframe.vue +5 -0
- package/src/components/small/DshControlDefine.vue +6 -2
- package/src/components/small/DshModal.vue +0 -134
- package/src/components/small/DshPage.vue +1 -0
- package/src/components/unit/DshFormItem.vue +7 -10
- package/src/components/unit/DshUnit.vue +1 -11
- package/src/components/unit/unitMixin.js +8 -5
- package/src/index.js +16 -33
- package/src/styles/common/control.less +63 -27
- package/src/styles/components/controls/{MultipleInput.less → BriInputs.less} +1 -1
- package/src/styles/components/controls/BriLabels.less +4 -2
- package/src/styles/components/controls/{ZUpload.less → BriUpload.less} +5 -6
- package/src/styles/components/controls/DshCheckbox.less +45 -42
- package/src/styles/components/controls/DshCoordinates.less +66 -59
- package/src/styles/components/controls/DshDate.less +1 -52
- package/src/styles/components/controls/DshEditor.less +51 -34
- package/src/styles/components/controls/DshInput.less +13 -34
- package/src/styles/components/controls/DshNumber.less +51 -0
- package/src/styles/components/controls/DshNumberange.less +8 -3
- package/src/styles/components/controls/DshSelect.less +78 -92
- package/src/styles/components/{other → controls}/InfoCascader.less +4 -4
- package/src/styles/components/controls/cascaderTable.less +10 -24
- package/src/styles/components/controls/controlShow.less +3 -1
- package/src/styles/components/controls/flatTable.less +10 -23
- package/src/styles/components/form/DshAdvSearchForm.less +0 -9
- package/src/styles/components/form/DshDefaultSearch.less +0 -20
- package/src/styles/components/index.less +24 -17
- package/src/styles/components/list/DshBox/DshBox.less +20 -0
- package/src/styles/components/list/DshBox/DshCard.less +59 -0
- package/src/styles/components/list/DshBox/DshList.less +142 -0
- package/src/styles/components/list/DshBox/DshPanel.less +107 -0
- package/src/styles/components/list/DshBox/DshTable.less +4 -0
- package/src/styles/components/list/ZTree.less +52 -0
- package/src/styles/components/small/DshControlDefine.less +4 -7
- package/src/styles/components/small/DshDropdown.less +1 -0
- package/src/styles/components/small/DshModal.less +207 -0
- package/src/styles/components/unit/DshFormItem.less +2 -0
- package/src/styles/reset.less +14 -0
- package/src/styles/variables.less +1 -0
- package/src/utils/table.js +5 -4
- package/src/components/controls/base/DshLabels.vue +0 -309
- package/src/components/controls/base/YSerialNumber.vue +0 -36
- package/src/components/controls/base/controlShow.vue +0 -52
- package/src/components/list/easyTable/index.js +0 -23
- package/src/components/list/easyTable/src/directives/clickoutside.js +0 -32
- package/src/components/list/easyTable/src/mixins/layerAdjustment.js +0 -62
- package/src/components/list/easyTable/src/settings/settings.js +0 -11
- package/src/components/list/easyTable/src/utils/deepClone.js +0 -256
- package/src/components/list/easyTable/src/utils/dom.js +0 -41
- package/src/components/list/easyTable/src/utils/utils.js +0 -190
- package/src/components/list/easyTable/v-checkbox/index.js +0 -7
- package/src/components/list/easyTable/v-checkbox/src/checkbox.vue +0 -127
- package/src/components/list/easyTable/v-checkbox-group/index.js +0 -7
- package/src/components/list/easyTable/v-checkbox-group/src/checkbox-group.vue +0 -68
- package/src/components/list/easyTable/v-dropdown/index.js +0 -7
- package/src/components/list/easyTable/v-dropdown/src/dropdown.vue +0 -337
- package/src/components/list/easyTable/v-table/index.js +0 -7
- package/src/components/list/easyTable/v-table/src/body-cell-merge-mixin.js +0 -141
- package/src/components/list/easyTable/v-table/src/cell-edit-mixin.js +0 -102
- package/src/components/list/easyTable/v-table/src/checkbox-selection-mixin.js +0 -189
- package/src/components/list/easyTable/v-table/src/classes-mixin.js +0 -56
- package/src/components/list/easyTable/v-table/src/drag-width-mixin.js +0 -202
- package/src/components/list/easyTable/v-table/src/export-csv.js +0 -74
- package/src/components/list/easyTable/v-table/src/frozen-columns-mixin.js +0 -134
- package/src/components/list/easyTable/v-table/src/loading.vue +0 -49
- package/src/components/list/easyTable/v-table/src/scroll-bar-control-mixin.js +0 -21
- package/src/components/list/easyTable/v-table/src/scroll-control-mixin.js +0 -92
- package/src/components/list/easyTable/v-table/src/sort-control-mixin.js +0 -108
- package/src/components/list/easyTable/v-table/src/table-empty-mixin.js +0 -73
- package/src/components/list/easyTable/v-table/src/table-empty.vue +0 -66
- package/src/components/list/easyTable/v-table/src/table-filters-mixin.js +0 -126
- package/src/components/list/easyTable/v-table/src/table-footer-mixin.js +0 -122
- package/src/components/list/easyTable/v-table/src/table-resize-mixin.js +0 -279
- package/src/components/list/easyTable/v-table/src/table-row-mouse-events-mixin.js +0 -123
- package/src/components/list/easyTable/v-table/src/table.vue +0 -1565
- package/src/components/list/easyTable/v-table/src/title-cell-merge-mixin.js +0 -115
- package/src/components/list/evTable/EvTable.vue +0 -321
- package/src/components/list/evTable/EvTableMixin.js +0 -26
- package/src/styles/components/controls/DshLabels.less +0 -187
- package/src/styles/components/list/evTable.less +0 -79
- package/src/styles/components/list/evtable/animation.less +0 -141
- package/src/styles/components/list/evtable/font/fontello.eot +0 -0
- package/src/styles/components/list/evtable/font/fontello.svg +0 -32
- package/src/styles/components/list/evtable/font/fontello.ttf +0 -0
- package/src/styles/components/list/evtable/font/fontello.woff +0 -0
- package/src/styles/components/list/evtable/font/fontello.woff2 +0 -0
- package/src/styles/components/list/evtable/fontello.less +0 -68
- package/src/styles/components/list/evtable/index.less +0 -5
- package/src/styles/components/list/evtable/v-checkbox.less +0 -167
- package/src/styles/components/list/evtable/v-dropdown.less +0 -235
- package/src/styles/components/list/evtable/v-table.less +0 -334
- package/src/styles/components/list/ivu_reset.less +0 -49
- /package/src/{styles/components/list → abolish}/DshFlatTable.less +0 -0
- /package/src/components/{pages/Error → Error}/Error403.vue +0 -0
- /package/src/components/{pages/Error → Error}/Error404.vue +0 -0
- /package/src/components/{pages/Error → Error}/Error500.vue +0 -0
- /package/src/components/{pages/Error → Error}/error.less +0 -0
- /package/src/components/{pages/Error → Error}/errorBack.vue +0 -0
- /package/src/components/controls/base/{ZUpload → BriUpload}/upload-listItem.vue +0 -0
- /package/src/components/{other → controls/base/DshCascader}/InfoCascader.vue +0 -0
- /package/src/styles/components/list/{DshCrossTable.less → DshBox/DshCrossTable.less} +0 -0
- /package/src/styles/components/list/{DshSingleData.less → DshBox/DshSingleData.less} +0 -0
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
|
|
3
|
-
computed: {
|
|
4
|
-
|
|
5
|
-
// 获取表头行合并的数量
|
|
6
|
-
getTitleRowspanTotalCount () {
|
|
7
|
-
|
|
8
|
-
let titleRowspanTotalCount1 = 0;
|
|
9
|
-
let titleRowspanTotalCount2 = 0;
|
|
10
|
-
let rowspanCountArr;
|
|
11
|
-
let minVal;
|
|
12
|
-
|
|
13
|
-
// 不能用noFrozenTitleCols 要用原始数据处理
|
|
14
|
-
this.noFrozenTitleCols.forEach(row => {
|
|
15
|
-
|
|
16
|
-
rowspanCountArr = this.getTitleRowspanCountArr(row);
|
|
17
|
-
|
|
18
|
-
// 如果每一项的rowspan值都大于1则继续处理
|
|
19
|
-
if (Array.isArray(rowspanCountArr) && rowspanCountArr.length > 0) {
|
|
20
|
-
|
|
21
|
-
minVal = Math.min.apply(null, rowspanCountArr);
|
|
22
|
-
|
|
23
|
-
titleRowspanTotalCount1 += minVal - 1;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
this.frozenTitleCols.forEach(row => {
|
|
28
|
-
|
|
29
|
-
rowspanCountArr = this.getTitleRowspanCountArr(row);
|
|
30
|
-
|
|
31
|
-
// 如果每一项的rowspan值都大于1则继续处理
|
|
32
|
-
if (Array.isArray(rowspanCountArr) && rowspanCountArr.length > 0) {
|
|
33
|
-
|
|
34
|
-
minVal = Math.min.apply(null, rowspanCountArr);
|
|
35
|
-
|
|
36
|
-
titleRowspanTotalCount2 += minVal - 1;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
return titleRowspanTotalCount1 < titleRowspanTotalCount2 ? titleRowspanTotalCount1 : titleRowspanTotalCount2;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
|
|
46
|
-
// return array
|
|
47
|
-
getTitleRowspanCountArr (row) {
|
|
48
|
-
|
|
49
|
-
let rowspanCountArr = [];
|
|
50
|
-
|
|
51
|
-
let shouldDeal = row.every(col => {
|
|
52
|
-
|
|
53
|
-
if (col.rowspan && parseInt(col.rowspan) > 1) {
|
|
54
|
-
|
|
55
|
-
rowspanCountArr.push(parseInt(col.rowspan));
|
|
56
|
-
return true;
|
|
57
|
-
} else {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
if (shouldDeal) {
|
|
63
|
-
return rowspanCountArr;
|
|
64
|
-
} else {
|
|
65
|
-
return [];
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
/*
|
|
70
|
-
* row :行信息
|
|
71
|
-
* rowspan:当前列的rowspan值
|
|
72
|
-
* */
|
|
73
|
-
/* dealTitleRowspan(row, rowspan){
|
|
74
|
-
|
|
75
|
-
let result = rowspan,
|
|
76
|
-
rowspanCountArr,
|
|
77
|
-
minVal;
|
|
78
|
-
|
|
79
|
-
rowspanCountArr = this.getTitleRowspanCountArr(row);
|
|
80
|
-
|
|
81
|
-
// 如果每一项的rowspan值都大于1则继续处理
|
|
82
|
-
if (Array.isArray(rowspanCountArr) && rowspanCountArr.length > 0) {
|
|
83
|
-
|
|
84
|
-
rowspan = parseInt(rowspan);
|
|
85
|
-
|
|
86
|
-
minVal = Math.min.apply(null, rowspanCountArr);
|
|
87
|
-
|
|
88
|
-
if (rowspan === minVal) {
|
|
89
|
-
|
|
90
|
-
result = 1;
|
|
91
|
-
} else {
|
|
92
|
-
|
|
93
|
-
result = rowspan - minVal + 1;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return result;
|
|
97
|
-
}, */
|
|
98
|
-
|
|
99
|
-
// 获取最小的 rowspan
|
|
100
|
-
getMinRowspan (row) {
|
|
101
|
-
|
|
102
|
-
let result;
|
|
103
|
-
|
|
104
|
-
let rowspanCountArr = this.getTitleRowspanCountArr(row);
|
|
105
|
-
|
|
106
|
-
// 如果每一项的rowspan值都大于1则继续处理
|
|
107
|
-
if (Array.isArray(rowspanCountArr) && rowspanCountArr.length > 0) {
|
|
108
|
-
|
|
109
|
-
result = Math.min.apply(null, rowspanCountArr);
|
|
110
|
-
}
|
|
111
|
-
return result - 1;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
};
|
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="EvTable"
|
|
4
|
-
ref="EvTable"
|
|
5
|
-
>
|
|
6
|
-
<v-table
|
|
7
|
-
:className="className"
|
|
8
|
-
:height="height"
|
|
9
|
-
:table-data="data"
|
|
10
|
-
:columns="temporaryColumns"
|
|
11
|
-
:fixTitle="fixTitle"
|
|
12
|
-
:is-horizontal-resize="true"
|
|
13
|
-
:column-width-drag="true"
|
|
14
|
-
:column-width-drag-resize="columnWidthDragResize"
|
|
15
|
-
:show-sort="showSort"
|
|
16
|
-
:multiple-sort="multipleSort"
|
|
17
|
-
:sort-always="sortAlways"
|
|
18
|
-
style="width:100%"
|
|
19
|
-
:tableBgColor="tableBgColor"
|
|
20
|
-
:title-bg-color="titleBgColor"
|
|
21
|
-
:title-font-color="titleFontColor"
|
|
22
|
-
:odd-bg-color="oddBgColor"
|
|
23
|
-
:even-bg-color="evenBgColor"
|
|
24
|
-
:row-hover-color="rowHoverColor"
|
|
25
|
-
:row-click-color="rowClickColor"
|
|
26
|
-
:row-click="rowClick"
|
|
27
|
-
:row-dblclick="rowDblclick"
|
|
28
|
-
:column-cell-class-name="columnCellClassName"
|
|
29
|
-
:show-vertical-border="showVerticalBorder"
|
|
30
|
-
:show-horizontal-border="showHorizontalBorder"
|
|
31
|
-
:title-row-height="titleRowHeight"
|
|
32
|
-
:row-height="rowHeight"
|
|
33
|
-
:footer-row-height="footerRowHeight"
|
|
34
|
-
:cell-edit-done="cellEditDone"
|
|
35
|
-
:select-change="selectChange"
|
|
36
|
-
:select-all="selectAll"
|
|
37
|
-
:is-loading="isLoading"
|
|
38
|
-
:errorContent="noDataText"
|
|
39
|
-
@click-row="clickRow"
|
|
40
|
-
@sort-change="sortChange"
|
|
41
|
-
></v-table>
|
|
42
|
-
</div>
|
|
43
|
-
</template>
|
|
44
|
-
<script>
|
|
45
|
-
// import boxMixin from "../boxMixin.js";
|
|
46
|
-
import EvTableMixin from "./EvTableMixin.js";
|
|
47
|
-
|
|
48
|
-
export default {
|
|
49
|
-
name: "EvTable",
|
|
50
|
-
mixins: [
|
|
51
|
-
// boxMixin,
|
|
52
|
-
EvTableMixin
|
|
53
|
-
],
|
|
54
|
-
props: {
|
|
55
|
-
data: Array,
|
|
56
|
-
columnsList: {
|
|
57
|
-
type: Array,
|
|
58
|
-
default () {
|
|
59
|
-
return [];
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
columnWidthDragResize: Function,
|
|
63
|
-
tableBgColor: {
|
|
64
|
-
type: String,
|
|
65
|
-
default: () => {
|
|
66
|
-
return "#fff";
|
|
67
|
-
// return tableStyle.tableBgColor || "#fff";
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
titleBgColor: {
|
|
71
|
-
type: String,
|
|
72
|
-
default: "#F0F0F0"
|
|
73
|
-
},
|
|
74
|
-
// 表格首行字体颜色
|
|
75
|
-
titleFontColor: {
|
|
76
|
-
type: String,
|
|
77
|
-
default: () => {
|
|
78
|
-
return "#5d5d5d";
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
fixTitle: {
|
|
82
|
-
type: Boolean,
|
|
83
|
-
default: true
|
|
84
|
-
},
|
|
85
|
-
// 表格自定义class
|
|
86
|
-
className: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: () => {
|
|
89
|
-
return "";
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
oddBgColor: {
|
|
93
|
-
type: String,
|
|
94
|
-
default: () => {
|
|
95
|
-
return "";
|
|
96
|
-
// return tableStyle.oddBgColor || "#fff";
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
evenBgColor: {
|
|
100
|
-
type: String,
|
|
101
|
-
default: () => {
|
|
102
|
-
return "";
|
|
103
|
-
// return tableStyle.evenBgColor || "#F7F9FC";
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
rowHoverColor: {
|
|
107
|
-
type: String,
|
|
108
|
-
default: () => {
|
|
109
|
-
return "";
|
|
110
|
-
// return "#F1F4FA";
|
|
111
|
-
// return tableStyle.rowHoverColor || "#F1F4FA";
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
rowClickColor: {
|
|
115
|
-
type: String,
|
|
116
|
-
default: () => {
|
|
117
|
-
return "";
|
|
118
|
-
// return "#F1F4FA";
|
|
119
|
-
// return tableStyle.rowClickColor || "#F1F4FA";
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
// 表体单元格设置className
|
|
123
|
-
columnCellClassName: {
|
|
124
|
-
type: Function,
|
|
125
|
-
default: () => {
|
|
126
|
-
return () => {
|
|
127
|
-
return "column-cell-class-name";
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
// 是否显示垂直border,false 时列拖动失效
|
|
132
|
-
showVerticalBorder: {
|
|
133
|
-
type: Boolean,
|
|
134
|
-
default: () => {
|
|
135
|
-
return true;
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
showHorizontalBorder: {
|
|
139
|
-
type: Boolean,
|
|
140
|
-
default: () => {
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
titleRowHeight: {
|
|
145
|
-
type: Number,
|
|
146
|
-
default: 52
|
|
147
|
-
},
|
|
148
|
-
// 内容行高
|
|
149
|
-
rowHeight: {
|
|
150
|
-
type: Number,
|
|
151
|
-
default: 52
|
|
152
|
-
},
|
|
153
|
-
footerRowHeight: {
|
|
154
|
-
type: Number,
|
|
155
|
-
default: 52
|
|
156
|
-
},
|
|
157
|
-
showSort: {
|
|
158
|
-
type: Boolean,
|
|
159
|
-
default: false
|
|
160
|
-
},
|
|
161
|
-
multipleSort: {
|
|
162
|
-
type: Boolean,
|
|
163
|
-
default: false
|
|
164
|
-
},
|
|
165
|
-
sortAlways: {
|
|
166
|
-
type: Boolean,
|
|
167
|
-
default: false
|
|
168
|
-
},
|
|
169
|
-
isLoading: {
|
|
170
|
-
type: Boolean,
|
|
171
|
-
default: false
|
|
172
|
-
},
|
|
173
|
-
height: Number,
|
|
174
|
-
noDataText: {
|
|
175
|
-
type: String,
|
|
176
|
-
default: "暂无内容..."
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
data () {
|
|
180
|
-
return {};
|
|
181
|
-
},
|
|
182
|
-
computed: {
|
|
183
|
-
temporaryColumns () {
|
|
184
|
-
return this.columnsList.map(colItem => {
|
|
185
|
-
return {
|
|
186
|
-
...colItem,
|
|
187
|
-
isFrozen: false,
|
|
188
|
-
isFrozenRight: false
|
|
189
|
-
};
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
created () {},
|
|
194
|
-
mounted () {},
|
|
195
|
-
methods: {
|
|
196
|
-
clickRow (row, index) {
|
|
197
|
-
this.$emit("click-row", row, index);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
</script>
|
|
202
|
-
|
|
203
|
-
<style lang="less">
|
|
204
|
-
.EvTable{
|
|
205
|
-
width: 100%;
|
|
206
|
-
height: 100%;
|
|
207
|
-
overflow: auto;
|
|
208
|
-
font-size: 14px;
|
|
209
|
-
box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.1);
|
|
210
|
-
border: 0;
|
|
211
|
-
|
|
212
|
-
table {
|
|
213
|
-
border-spacing: 0;
|
|
214
|
-
border-collapse: collapse;
|
|
215
|
-
|
|
216
|
-
tbody {
|
|
217
|
-
td {
|
|
218
|
-
.vertical-border {
|
|
219
|
-
border-right-width: 0px !important;
|
|
220
|
-
}
|
|
221
|
-
.v-table-body-cell {
|
|
222
|
-
white-space: normal;
|
|
223
|
-
overflow: visible; // 有无都可
|
|
224
|
-
text-overflow: auto; // 有无都可
|
|
225
|
-
word-wrap: break-word;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.v-table{
|
|
232
|
-
&-views {
|
|
233
|
-
box-shadow:0px 4px 20px 0px rgba(0,0,0,0.1);
|
|
234
|
-
}
|
|
235
|
-
.v-table-rightview .vertical-border {
|
|
236
|
-
border-right-width: 0px !important;
|
|
237
|
-
}
|
|
238
|
-
.v-table-leftview .vertical-border{
|
|
239
|
-
border-right-width: 0px !important;
|
|
240
|
-
}
|
|
241
|
-
&-title-cell{
|
|
242
|
-
padding: 0 15px;
|
|
243
|
-
border-color: #F1F4FA;
|
|
244
|
-
.table-title{
|
|
245
|
-
padding: 0;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
&-header{
|
|
249
|
-
font-weight: 700;
|
|
250
|
-
color: rgba(93,93,93,1);
|
|
251
|
-
letter-spacing: 2px;
|
|
252
|
-
font-size: 14px;
|
|
253
|
-
}
|
|
254
|
-
&-body{
|
|
255
|
-
font-weight:400;
|
|
256
|
-
color:rgba(135,135,135,1);
|
|
257
|
-
}
|
|
258
|
-
&-body-cell{
|
|
259
|
-
padding: 0 15px;
|
|
260
|
-
color: #666666;
|
|
261
|
-
border-color: #F1F4FA;
|
|
262
|
-
}
|
|
263
|
-
&-empty-inner{
|
|
264
|
-
border-top: 1px solid rgba(221, 221, 221, 1);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
.v-scrollbar-wrap{
|
|
268
|
-
&::-webkit-scrollbar{
|
|
269
|
-
width: 12px;
|
|
270
|
-
height: 12px;
|
|
271
|
-
}
|
|
272
|
-
&::-webkit-scrollbar-thumb{
|
|
273
|
-
background: #E1E8ED;
|
|
274
|
-
border-radius: 3px;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
.v-table-empty-scroll{
|
|
278
|
-
&::-webkit-scrollbar{
|
|
279
|
-
width: 12px;
|
|
280
|
-
height: 12px;
|
|
281
|
-
}
|
|
282
|
-
&::-webkit-scrollbar-thumb{
|
|
283
|
-
background: #E1E8ED;
|
|
284
|
-
border-radius: 3px;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
&::-webkit-scrollbar{
|
|
289
|
-
width: 12px;
|
|
290
|
-
height: 12px;
|
|
291
|
-
}
|
|
292
|
-
&::-webkit-scrollbar-thumb{
|
|
293
|
-
background: #E1E8ED;
|
|
294
|
-
border-radius: 3px;
|
|
295
|
-
}
|
|
296
|
-
// etable 多条关联等带框的样式
|
|
297
|
-
.EvTable-box {
|
|
298
|
-
width: auto;
|
|
299
|
-
height: 24px;
|
|
300
|
-
margin-top: 7px;
|
|
301
|
-
padding: 5px;
|
|
302
|
-
line-height: 12px;
|
|
303
|
-
display: inline-block;
|
|
304
|
-
background: #f2f8ff;
|
|
305
|
-
border-radius: 2px;
|
|
306
|
-
border: 1px solid #6daef2;
|
|
307
|
-
font-size: 12px!important;
|
|
308
|
-
color: #6DAEF2;
|
|
309
|
-
cursor: pointer;
|
|
310
|
-
|
|
311
|
-
overflow: hidden;
|
|
312
|
-
word-break: keep-all;
|
|
313
|
-
white-space: nowrap;
|
|
314
|
-
text-overflow: ellipsis;
|
|
315
|
-
i {
|
|
316
|
-
margin-right: 5px;
|
|
317
|
-
font-size: 12px!important;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
</style>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
data () {
|
|
3
|
-
return {};
|
|
4
|
-
},
|
|
5
|
-
props: {
|
|
6
|
-
rowClick: Function,
|
|
7
|
-
// 行双击回调
|
|
8
|
-
rowDblclick: Function,
|
|
9
|
-
// 表头单元格单击回调
|
|
10
|
-
titleClick: Function,
|
|
11
|
-
// 表头单元格双击回调
|
|
12
|
-
titleDblclick: Function,
|
|
13
|
-
// 单元格编辑完成回调
|
|
14
|
-
cellEditDone: Function,
|
|
15
|
-
// 某一项 checkbox 触发
|
|
16
|
-
selectChange: Function,
|
|
17
|
-
// 全选时触发
|
|
18
|
-
selectAll: Function
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
methods: {
|
|
22
|
-
sortChange (params) {
|
|
23
|
-
this.$emit("sort-change", params);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
};
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
.DshLabels {
|
|
2
|
-
width: 100%;
|
|
3
|
-
position: relative;
|
|
4
|
-
|
|
5
|
-
i {
|
|
6
|
-
font-size: 16px;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&-input{
|
|
11
|
-
.ivu-input{
|
|
12
|
-
height: 30px;
|
|
13
|
-
border: 1px solid #e5e5e5;
|
|
14
|
-
border-radius: 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-show {
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
border: 1px solid #e5e5e5;
|
|
22
|
-
border-radius: 4px;
|
|
23
|
-
background: @white;
|
|
24
|
-
color: #515a6e;
|
|
25
|
-
padding-left: 5px;
|
|
26
|
-
height: 30px;
|
|
27
|
-
|
|
28
|
-
&-content {
|
|
29
|
-
display: flex;
|
|
30
|
-
width: calc(100% - 20px);
|
|
31
|
-
height: 100%;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
|
|
34
|
-
div{
|
|
35
|
-
width: 100%;
|
|
36
|
-
height: 38px;
|
|
37
|
-
display: flex;
|
|
38
|
-
overflow-x: scroll;
|
|
39
|
-
overflow-y: hidden;
|
|
40
|
-
|
|
41
|
-
.DshLabels-show-content-item {
|
|
42
|
-
display: flex;
|
|
43
|
-
width: fit-content;
|
|
44
|
-
max-width: 50%;
|
|
45
|
-
height: 28px;
|
|
46
|
-
margin: 0 4px 1px 0;
|
|
47
|
-
padding-left: 8px;
|
|
48
|
-
background: #f7f7f7;
|
|
49
|
-
border: 1px solid #e8eaec;
|
|
50
|
-
border-radius: 3px;
|
|
51
|
-
font-size: 14px;
|
|
52
|
-
cursor: pointer;
|
|
53
|
-
|
|
54
|
-
&-content {
|
|
55
|
-
width: fit-content;
|
|
56
|
-
line-height: 28px;
|
|
57
|
-
vertical-align: middle;
|
|
58
|
-
display: inline-block;
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
white-space: nowrap;
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
text-overflow: ellipsis;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-del {
|
|
66
|
-
display: inline-block;
|
|
67
|
-
width: 20px;
|
|
68
|
-
vertical-align: middle;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&-add {
|
|
75
|
-
.dsh-flex ();
|
|
76
|
-
position: absolute;
|
|
77
|
-
right: 5px;
|
|
78
|
-
width: 24px;
|
|
79
|
-
height: 28px;
|
|
80
|
-
background: #fff;
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&-showReadOnly{
|
|
86
|
-
cursor: not-allowed;
|
|
87
|
-
|
|
88
|
-
.DshLabels-show-content{
|
|
89
|
-
width: 100%;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&-view{
|
|
94
|
-
.dsh-flex-row-start-start();
|
|
95
|
-
flex-wrap: wrap;
|
|
96
|
-
height: 32px;
|
|
97
|
-
overflow-y: hidden;
|
|
98
|
-
|
|
99
|
-
&-readonly{
|
|
100
|
-
width: 100%;
|
|
101
|
-
background: @white;
|
|
102
|
-
border: 1px solid #eee;
|
|
103
|
-
border-radius: 4px;
|
|
104
|
-
height: 32px;
|
|
105
|
-
cursor: not-allowed;
|
|
106
|
-
|
|
107
|
-
.DshLabels-view-nodata{
|
|
108
|
-
display: none;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&-tag {
|
|
113
|
-
width: fit-content;
|
|
114
|
-
margin-right: 10px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&-nodata {
|
|
118
|
-
color: @textColor;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&-searchResult {
|
|
123
|
-
position: fixed;
|
|
124
|
-
z-index: 333;
|
|
125
|
-
max-height: 150px;
|
|
126
|
-
overflow: auto;
|
|
127
|
-
padding: 5px 10px;
|
|
128
|
-
background: @white;
|
|
129
|
-
box-sizing: border-box;
|
|
130
|
-
border-radius: 4px;
|
|
131
|
-
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
|
|
132
|
-
|
|
133
|
-
&-close{
|
|
134
|
-
position: absolute;
|
|
135
|
-
top: 5px;
|
|
136
|
-
right: 5px;
|
|
137
|
-
z-index: 670;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&-select{
|
|
141
|
-
position: relative;
|
|
142
|
-
z-index: 666;
|
|
143
|
-
margin-right: 16px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&-list{
|
|
147
|
-
.dsh-flex-row-start-start();
|
|
148
|
-
flex-wrap: wrap;
|
|
149
|
-
|
|
150
|
-
&>li{
|
|
151
|
-
display: inline-block;
|
|
152
|
-
width: fit-content;
|
|
153
|
-
background: #f5f5f5;
|
|
154
|
-
margin: 5px 10px 5px 0;
|
|
155
|
-
cursor: pointer;
|
|
156
|
-
font-size: @textSize;
|
|
157
|
-
line-height: 28px;
|
|
158
|
-
padding: 0 5px;
|
|
159
|
-
border-radius: 3px;
|
|
160
|
-
|
|
161
|
-
&:hover{
|
|
162
|
-
background: #f0faff;
|
|
163
|
-
color:@themeColor;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&.active{
|
|
167
|
-
background: #f0faff;
|
|
168
|
-
color:@themeColor;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&.selected{
|
|
172
|
-
cursor: not-allowed;
|
|
173
|
-
background: #f0faff;
|
|
174
|
-
color:@themeColor;
|
|
175
|
-
&:hover{
|
|
176
|
-
background: #f0faff;
|
|
177
|
-
color:@themeColor;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
}
|