@xilonglab/vue-main 1.3.18 → 1.3.19
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/package.json +1 -1
- package/packages/view/XlDataView.vue +25 -0
package/package.json
CHANGED
|
@@ -130,6 +130,15 @@ const { refs, api, params, obj, chartOptions, total } = inject('injections')
|
|
|
130
130
|
:l="col.label"
|
|
131
131
|
:p="col.prop"
|
|
132
132
|
/>
|
|
133
|
+
<xl-col v-else-if="col.type === 'clamp'"
|
|
134
|
+
:l="col.label"
|
|
135
|
+
:width="col.width"
|
|
136
|
+
v-slot="{ row }"
|
|
137
|
+
>
|
|
138
|
+
<p class="text-left clamp1" :title="row[col.prop]">
|
|
139
|
+
{{ row[col.prop] }}
|
|
140
|
+
</p>
|
|
141
|
+
</xl-col>
|
|
133
142
|
<xl-map-col
|
|
134
143
|
v-else-if="col.type === 'map'"
|
|
135
144
|
:l="col.label"
|
|
@@ -194,5 +203,21 @@ const { refs, api, params, obj, chartOptions, total } = inject('injections')
|
|
|
194
203
|
padding: 0 !important;
|
|
195
204
|
|
|
196
205
|
}
|
|
206
|
+
|
|
207
|
+
.clamp(@lines) {
|
|
208
|
+
overflow: hidden;
|
|
209
|
+
display: -webkit-box;
|
|
210
|
+
-webkit-line-clamp: @lines;
|
|
211
|
+
-webkit-box-orient: vertical;
|
|
212
|
+
text-align: left;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.clamp1 {
|
|
216
|
+
.clamp(1);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.text-left {
|
|
220
|
+
text-align: left;
|
|
221
|
+
}
|
|
197
222
|
}
|
|
198
223
|
</style>
|