答案 0 :(得分:1)
您可以在这些user-select: none
元素上设置td
,以防止它们被选中。
请注意,user-select
需要-webkit
和-moz
前缀。
const app = new Vue({
el: "#app",
data: {
items: [{
col1: "123",
col2: "456"
},{
col1: "789",
col2: "012"
}]
}
});

.no-select {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
}
.blur {
filter: blur(3px);
}

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.2/vue.min.js"></script>
<div id="app">
<table>
<thead>
<tr>
<th>Col1</th>
<th>Col2 (with no-select)</th>
<th>Col2 (without no-select)</th>
</tr>
</thead>
<tbody>
<tr v-for="item in items">
<td>{{ item.col1 }}</td>
<td class="no-select blur">{{ item.col2 }}</td>
<td class=" blur">{{ item.col2 }}</td>
</tr>
</tbody>
</table>
</div>
&#13;