meixioacomponent 0.5.76 → 0.5.78
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/meixioacomponent.common.js +79 -52
- package/lib/meixioacomponent.umd.js +79 -52
- package/lib/meixioacomponent.umd.min.js +6 -6
- package/package.json +1 -1
- package/packages/components/base/basePlainTable/basePlainTable.vue +47 -10
- package/packages/components/style/element/index.css +2 -2
- package/lib/style/element/common_class.less +0 -3
- package/lib/style/element/fonts/element-icons.ttf +0 -0
- package/lib/style/element/fonts/element-icons.woff +0 -0
- package/lib/style/element/index.css +0 -30584
- package/lib/style/font-family.less +0 -6
- package/lib/style/index.less +0 -126
- package/lib/style/meixioacomponenticonfont/iconfont.ttf +0 -0
- package/lib/style/meixioacomponenticonfont/iconfont.woff +0 -0
- package/lib/style/meixioacomponenticonfont/iconfont.woff2 +0 -0
- package/lib/style/meixioacomponenticonfont/meixicomponenticonfont.css +0 -251
- package/lib/style/theme/dark.less +0 -144
- package/lib/style/theme/light.less +0 -36
- package/lib/style/theme/theme.less +0 -2
- package/lib/style/variables.less +0 -83
package/package.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
<template slot="empty">
|
|
8
8
|
<baseDefaultSvgVue
|
|
9
9
|
v-if="tableData.length <= 0"
|
|
10
|
-
:height="
|
|
10
|
+
:height="emptyHeight"
|
|
11
11
|
:svgName="`no-data`"
|
|
12
12
|
:text="`表格无数据`"
|
|
13
|
-
:width="
|
|
13
|
+
:width="emptyWidth"
|
|
14
14
|
></baseDefaultSvgVue>
|
|
15
15
|
<span></span>
|
|
16
16
|
</template>
|
|
@@ -35,25 +35,35 @@
|
|
|
35
35
|
:name="item.value"
|
|
36
36
|
:scope="scope.row"
|
|
37
37
|
></slot>
|
|
38
|
-
|
|
38
|
+
<el-tooltip
|
|
39
|
+
v-else-if="
|
|
40
|
+
isToolTip(scope.row[`${item.value}`]) && !item.type
|
|
41
|
+
"
|
|
42
|
+
:content="scope.row[`${item.value}`].toString()"
|
|
43
|
+
effect="dark"
|
|
44
|
+
placement="top"
|
|
45
|
+
>
|
|
46
|
+
<span
|
|
47
|
+
:class="[ item.fn ? 'handle-primary' : '', ]"
|
|
48
|
+
class="cell-content-text"
|
|
49
|
+
@click="rowClick(item, scope.row)"
|
|
50
|
+
>
|
|
51
|
+
{{ nomalRowValue(scope.row, item) }}
|
|
52
|
+
</span>
|
|
53
|
+
</el-tooltip>
|
|
39
54
|
<span
|
|
40
|
-
|
|
41
|
-
:class="[
|
|
42
|
-
item.fn ? 'handle-primary' : '',
|
|
43
|
-
]"
|
|
55
|
+
|
|
44
56
|
:style="{
|
|
45
57
|
color: item.color,
|
|
46
58
|
}"
|
|
59
|
+
v-else-if="!item.type"
|
|
47
60
|
class="cell-content-text"
|
|
48
61
|
@click="rowClick(item, scope.row)"
|
|
49
62
|
>
|
|
50
63
|
{{ nomalRowValue(scope.row, item) }}
|
|
51
64
|
</span>
|
|
52
|
-
|
|
53
65
|
<baseText v-else-if="item.type" :content="scope.row[item.value]"
|
|
54
66
|
:type="item.type"></baseText>
|
|
55
|
-
|
|
56
|
-
|
|
57
67
|
</template>
|
|
58
68
|
</el-table-column>
|
|
59
69
|
</el-table>
|
|
@@ -105,8 +115,25 @@ export default {
|
|
|
105
115
|
type: Boolean,
|
|
106
116
|
default: false,
|
|
107
117
|
},
|
|
118
|
+
emptyWidth:{
|
|
119
|
+
type:Number,
|
|
120
|
+
default:280,
|
|
121
|
+
},
|
|
122
|
+
emptyHeight:{
|
|
123
|
+
type:Number,
|
|
124
|
+
default:280,
|
|
125
|
+
}
|
|
108
126
|
},
|
|
109
127
|
methods: {
|
|
128
|
+
|
|
129
|
+
isToolTip(value) {
|
|
130
|
+
if (!value) {
|
|
131
|
+
return false
|
|
132
|
+
}
|
|
133
|
+
return value.toString().length > 10
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
|
|
110
137
|
rowClick(item, row) {
|
|
111
138
|
if (!item.fn) return
|
|
112
139
|
item.fn(row)
|
|
@@ -146,6 +173,16 @@ export default {
|
|
|
146
173
|
background: var(--color-table-header) !important;
|
|
147
174
|
}
|
|
148
175
|
|
|
176
|
+
.cell-content-text {
|
|
177
|
+
width: 100%;
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
white-space: nowrap;
|
|
180
|
+
text-overflow: ellipsis;
|
|
181
|
+
font-weight: var(--font-weight-m);
|
|
182
|
+
color: var(--font-color-d) !important;
|
|
183
|
+
font-size: var(--font-size-base) !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
149
186
|
|
|
150
187
|
.handle-primary {
|
|
151
188
|
cursor: pointer;
|
|
@@ -4538,7 +4538,7 @@
|
|
|
4538
4538
|
position: relative;
|
|
4539
4539
|
margin: 0;
|
|
4540
4540
|
padding-left: 0;
|
|
4541
|
-
background-color: var(--
|
|
4541
|
+
background-color: var(--bg-white);
|
|
4542
4542
|
border: none !important;
|
|
4543
4543
|
}
|
|
4544
4544
|
|
|
@@ -4771,7 +4771,7 @@
|
|
|
4771
4771
|
.el-menu-item.is-active {
|
|
4772
4772
|
color: var(--font-color-d);
|
|
4773
4773
|
font-weight: var(--font-weight-g);
|
|
4774
|
-
background-color: var(--color-gray-
|
|
4774
|
+
background-color: var(--color-gray-m);
|
|
4775
4775
|
}
|
|
4776
4776
|
|
|
4777
4777
|
.el-menu-item.is-active i {
|
|
Binary file
|
|
Binary file
|