mirror of https://github.com/ElemeFE/element
Merge pull request #140 from Leopoldthecoder/next
cancel inline-style for table <td> white-spacepull/2/head
commit
a8f6ae8db9
|
@ -2,9 +2,7 @@
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
this.$alert('操作失败, 请稍后重试', '提示', {
|
this.$alert('这是一段内容', '标题名称');
|
||||||
type: 'error'
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
open2() {
|
open2() {
|
||||||
|
@ -74,7 +72,7 @@
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
this.$alert('操作失败, 请稍后重试', '提示');
|
this.$alert('这是一段内容', '标题名称');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ export default {
|
||||||
{
|
{
|
||||||
this._l(this.columns, (column) =>
|
this._l(this.columns, (column) =>
|
||||||
<td
|
<td
|
||||||
style={{ 'white-space': column.showTooltipWhenOverflow ? 'nowrap' : 'normal' }}
|
style={ this.getColumnWhiteSpaceStyle(column) }
|
||||||
class={ column.id }
|
class={ column.id }
|
||||||
on-mouseenter={ ($event) => this.handleCellMouseEnter($event, row) }
|
on-mouseenter={ ($event) => this.handleCellMouseEnter($event, row) }
|
||||||
on-mouseleave={ this.handleCellMouseLeave }>
|
on-mouseleave={ this.handleCellMouseLeave }>
|
||||||
|
@ -84,6 +84,10 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
getColumnWhiteSpaceStyle(column) {
|
||||||
|
return column.showTooltipWhenOverflow ? { 'white-space': 'nowrap' } : {};
|
||||||
|
},
|
||||||
|
|
||||||
checkProperty(row) {
|
checkProperty(row) {
|
||||||
if (this.criteria && this.criteria.length > 0) {
|
if (this.criteria && this.criteria.length > 0) {
|
||||||
for (let i = 0, len = this.criteria.length; i < len; i++) {
|
for (let i = 0, len = this.criteria.length; i < len; i++) {
|
||||||
|
|
Loading…
Reference in New Issue