8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and cont 8755 act its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table表格新增最小高度min-height,方便使用最小高度 props: { minHeight: { type: [Number, String] } } computed-->styles styles () { let style = {}; if (this.height) { const height = parseInt(this.height); style.height =${height}px; } if (this.maxHeight) { const maxHeight = parseInt(this.maxHeight); style.maxHeight = ${maxHeight}px; } if (this.minHeight) { const minHeight = parseInt(this.minHeight); style.minHeight = ${minHeight}px; } if (this.width) style.width = ${this.width}px; return style; }, computed-->bodyStyle bodyStyle () { let style = {}; if (this.bodyHeight !== 0) { const height = this.bodyHeight; if (this.height) { style.height =${height}px; } else if (this.maxHeight) { style.maxHeight = ${height}px; } else if (this.minHeight) { style.minHeight = ${height}px; } } return style; } computed-->toggleExpand ` toggleExpand (_index) { let data = {};
props: { minHeight: { type: [Number, String] } }
styles () { let style = {}; if (this.height) { const height = parseInt(this.height); style.height =
; } if (this.maxHeight) { const maxHeight = parseInt(this.maxHeight); style.maxHeight =
; } if (this.minHeight) { const minHeight = parseInt(this.minHeight); style.minHeight =
; } if (this.width) style.width =
; return style; },
bodyStyle () { let style = {}; if (this.bodyHeight !== 0) { const height = this.bodyHeight; if (this.height) { style.height =
; } else if (this.maxHeight) { style.maxHeight =
; } else if (this.minHeight) { style.minHeight =
; } } return style; }
for (let i in this.objData) { if (parseInt(i) === _index) { data = this.objData[i]; break; } } const status = !data._isExpanded; this.objData[_index]._isExpanded = status; this.$emit('on-expand', JSON.parse(JSON.stringify(this.cloneData[_index])), status); if(this.height || this.maxHeight || this.minHeight){ this.$nextTick(()=>this.fixedBody()); } }
computed-->fixedHeader fixedHeader () { if (this.height || this.maxHeight || this.minHeight) { this.$nextTick(() => { const titleHeight = parseInt(getStyle(this.$refs.title, 'height')) || 0; const headerHeight = parseInt(getStyle(this.$refs.header, 'height')) || 0; const footerHeight = parseInt(getStyle(this.$refs.footer, 'height')) || 0; if (this.height) { this.bodyHeight = this.height - titleHeight - headerHeight - footerHeight; } else if (this.maxHeight) { this.bodyHeight = this.maxHeight - titleHeight - headerHeight - footerHeight; } else if (this.minHeight) { this.bodyHeight = this.minHeight - titleHeight - headerHeight - footerHeight; } this.$nextTick(()=>this.fixedBody()); }); } else { this.bodyHeight = 0; this.$nextTick(()=>this.fixedBody()); } } watch-->minHeight minHeight () { this.handleResize(); }, `
computed-->fixedHeader
watch-->minHeight
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Table表格新增最小高度min-height,方便使用最小高度
props: { minHeight: { type: [Number, String] } }
computed-->styles
styles () { let style = {}; if (this.height) { const height = parseInt(this.height); style.height =
${height}px; } if (this.maxHeight) { const maxHeight = parseInt(this.maxHeight); style.maxHeight =
${maxHeight}px; } if (this.minHeight) { const minHeight = parseInt(this.minHeight); style.minHeight =
${minHeight}px; } if (this.width) style.width =
${this.width}px; return style; },
computed-->bodyStyle
bodyStyle () { let style = {}; if (this.bodyHeight !== 0) { const height = this.bodyHeight; if (this.height) { style.height =
${height}px; } else if (this.maxHeight) { style.maxHeight =
${height}px; } else if (this.minHeight) { style.minHeight =
${height}px; } } return style; }
computed-->toggleExpand
`
toggleExpand (_index) {
let data = {};
computed-->fixedHeader
fixedHeader () {
if (this.height || this.maxHeight || this.minHeight) {
this.$nextTick(() => {
const titleHeight = parseInt(getStyle(this.$refs.title, 'height')) || 0;
const headerHeight = parseInt(getStyle(this.$refs.header, 'height')) || 0;
const footerHeight = parseInt(getStyle(this.$refs.footer, 'height')) || 0;
if (this.height) {
this.bodyHeight = this.height - titleHeight - headerHeight - footerHeight;
} else if (this.maxHeight) {
this.bodyHeight = this.maxHeight - titleHeight - headerHeight - footerHeight;
} else if (this.minHeight) {
this.bodyHeight = this.minHeight - titleHeight - headerHeight - footerHeight;
}
this.$nextTick(()=>this.fixedBody());
});
} else {
this.bodyHeight = 0;
this.$nextTick(()=>this.fixedBody());
}
}
watch-->minHeight
minHeight () {
this.handleResize();
},
`
The text was updated successfully, but these errors were encountered: